Questions tagged [raw]

204 questions
0
votes
0 answers

Pagination with Sequelize raw query

I am trying to paginate my queries but there are raw queries. So I don't know how to do it. So far I have seen two solutions: use LIMIT but from what I have read it is not a reliable method. The second is to use FETCH but that is not a good solution…
Lucaz
  • 1
  • 2
0
votes
0 answers

How to read .raw image files in MATLAB

I have a .raw image file that is encoded as uint16. When I open it in ImageJ, I can see the image dimensions immediately. Now, when I use MATLAB, I use fid = fopen('image1.raw') pixelData = fread(fid,'uint16') fclose(fid) Now, I have the data in…
SEU
  • 1,304
  • 4
  • 15
  • 36
0
votes
0 answers

Convert latlng raw query to Eloquent query

$markerResult = Accommodation::with('images') ->whereRaw($lat <= (`lat`+(0.00898315284 * $radius))) ->whereRaw($lat >= (`lat`-(0.00898315284 * $radius))) ->whereRaw($lng <= (`lng`+(0.00898315284 * $radius))) ->whereRaw($lng >=…
0
votes
1 answer

Problem finding the max color on an image

Here is the code for to find the max color in image but it returns always wrong coordinates. The code search and find the max and return the 2D array of image but when he finds the max color it creates a cross and return the image with the cross…
Lilfio
  • 5
  • 5
0
votes
1 answer

Convert raw word document to readable document in Flutter

I'm building a Flutter app and need to read files from an API. But the API delivers raw data like: Postman screenshot: https://i.stack.imgur.com/tzqUA.png Does anyone know how to parse this raw data in Flutter?
0
votes
1 answer

Make The Logic Inside The Tags {% Raw %}...{% Endraw %}

In shopify. I have some of the code wrapped in a {% raw %}...{% endraw %} tag, but I need to make logic through if inside that tag. It goes like this: {% raw %} ... {%- if any != 0 -%}...{%- endif -%} ... {% endraw %} But this way the logic code is…
s.kuznetsov
  • 14,870
  • 3
  • 10
  • 25
0
votes
1 answer

Load and execute a full python script from a raw link?

I'm facing some problems trying to load a full python script from my pastebin/github pages. I followed this link, trying to convert the raw into a temp file and use it like a module: How to load a python script from a raw link (such as…
0
votes
1 answer

How to send gson object using retrofit

This is my cart items data getting into gson…
0
votes
0 answers

Oracle RAW read as string in Java (equivalent of UTL_RAW.cast_to_varchar2)

Oracle RAW format when read and converted to base64 works fine: UTL_RAW.cast_to_varchar2(UTL_ENCODE.base64_encode(DBMS_LOB.substr(p_blob, len, 1))) The above function requires looping though. But, I am trying to achieve this with mix-match of Oracle…
user3499836
  • 87
  • 1
  • 9
0
votes
2 answers

I try API request post with body type raw to get a token but need understand what is wrong

My method to get tokenKey is : HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(url); httpRequest.Method = "POST"; httpRequest.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,…
0
votes
1 answer

Changing Raw Background Color

I would like to change the background color of the raw but it wont change i have typed but still wont change
Ak98
  • 13
  • 4
0
votes
1 answer

Why do I get a seg fault when copying to data buffer with PACKET_TX_RING?

The following code generates a segmentation fault on iteration 33. The offending line of code is memcpy(data, datagram, 4096);. How could a simple memcpy generate a segmentation fault? The output of my program in gdb is as follows: (gdb) r Starting…
James Read
  • 419
  • 2
  • 7
  • 13
0
votes
0 answers

Why is recvfrom blocking forever with PF_PACKET socket?

The following code reads an IPv4 address from an input file which has an IPv4 address of a known web server on each line. It sends a TCP SYN with a PF_PACKET type socket. The main function launches two threads. One to send the TCP SYN packet and one…
James Read
  • 419
  • 2
  • 7
  • 13
0
votes
1 answer

Why is my non blocking raw sockets program running so slowly?

I have a program which uses PF_PACKET raw sockets to send TCP SYN packets to a list of web servers. The program reads in a file which has an IPv4 address on each line of a web server. The program is the beginnings of an attempt to connect to…
James Read
  • 419
  • 2
  • 7
  • 13
0
votes
1 answer

Why is my router dropping packets from my raw sockets application?

I have an application that is sending hand crafted SOCK_RAW packets from a PF_PACKET socket. The packets are being created and sent as the screenshot from Wireshark shows. The packets being sent are TCP SYN packets with an expected TCP SYN/ACK…
James Read
  • 419
  • 2
  • 7
  • 13