Questions tagged [raw]

204 questions
0
votes
0 answers

SQLAlchemy - raw SQL - slow when returning large dataset

I am trying to run a raw SQL statement to grab some data for reporting. The query itself is big and takes about 2seconds to execute. When I remove the 'GROUP BY' in my query in order to make it faster (of course in this case I'll handle the grouping…
0
votes
0 answers

CrudRepostiroy findBy query/method to fetch records based on Raw Type value which is a ArrayList

Can someone please advice how to filter records based on a raw data column value in JPA ? I have entity class as below : @Entity public class TableAbc { @Id @Type(type = "uuid-char") private UUID id; private String fieldA; …
0
votes
0 answers

How to use aliases for calculation in Laravel raw query?

I want to use aliases column for calculations, and then I want to apply the orderBy on that calculated value, below is the query in which I have two aliases products_total_cost and sales, what I want to do is making a new aliases by this…
0
votes
0 answers

How to use raw socket to send udp packet to local process with fake source ip and port

As the title said. I want to construct udp packets and send them to local process which has bound specific port. I want to make the process believe in that the packets are from other host(such as 8.8.8.8). What arguments should I pass to socket()…
DannyLiu
  • 23
  • 2
0
votes
2 answers

How can I raw post using HttpURLConnection

I need to raw post to authorization system. POST /v1 HTTP/1.1 Host: api.auth.gg Content-Type: application/x-www-form-urlencoded Content-Length:…
0
votes
1 answer

Dynamic LINQ instead of ExecuteSqlRaw

Because I'm going to use Entity Framework Core, I'm trying to convert a SqlRaw statement var sql = @$" update ItemList set flag = 1 where …
Zeneri
  • 3
  • 3
0
votes
0 answers

How to convert binary string to binary python

I have a problem and I searched a lot and I didn't found an answer. I read from file as example : "video.mp4" by binary I get as an example : b'\x00\x02\x1a\x00' (binary list) I saved it as string in file : b'\x00\x02\x1a\x00' (string) I read it…
XSC
  • 1
  • 3
0
votes
2 answers

OpenCV put text on raw files

I need help to put a timestamp on images taken by an IP camera, I made a version of the code that save the image as a local file, then opencv write on it, now i'd like to write on it without saving it before, but i'm stucked. This is the…
0
votes
1 answer

How can I assign to an uninitialised vector without dropping the previous value?

I have a situation where I know how to initialise a vector, but I don't know the exact order of those elements. let mut vector = todo!(); for (index, element) in &hash_map { vector[index] = element; } Now the problem is how to initialise the…
alagris
  • 1,838
  • 16
  • 31
0
votes
1 answer

Jquery datatable Invalid Argument exception - message - Trailing data on Laravel eloquent raw query

I have setup Laravel Yajra datatable backend package to handle the work for the ajax query calls to view via a jquery datatable. Everything worked great until I changed the eloquent query from: static function for_table($farm_ids) { …
Hmerman6006
  • 1,622
  • 1
  • 20
  • 45
0
votes
1 answer

How to insert a string slice into a raw string?

Whenever provided with a_new_phone_number of type &str I want to insert it somehow into a raw string for further input into Regex::new(). Is there a macro similar to format!() for that? phone_number = Regex::new(r"(?xm)^.*{a_new_phone_number}.*$…
radionnazmiev
  • 153
  • 3
  • 8
0
votes
1 answer

How to give mic input as stdin to C program

I currently have written a code which takes in a raw file as input and does some audio processing and writes it to another different raw file. The way I am currently inputting is .\my_code_binary < input.raw > output.raw as you can see, I am making…
Tharun K
  • 1,160
  • 1
  • 7
  • 20
0
votes
1 answer

Hibernate: ManyToOne generating field raw(255)

I recently upgraded from hibernate-core 4.1.7 to 5.0.9 and Have problem with this code: @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH}) @JoinColumn(name = "FK_AAA", foreignKey = @ForeignKey(name =…
0
votes
1 answer

Android - Get a pixel from a RAW format Image

It is possible to convert a pure RAW_SENSOR Image to a bitmap with 16bits of precision and get their pixels out of it?
Jotarata
  • 93
  • 2
  • 7
0
votes
1 answer

Get data in SQL RAW query in same format as we get in Laravel with eager loading method

I've been working with Laravel Eloquent, now I want to write RAW query and get data with it. My Query(Eloquent) is this: $jobs = CompanyJob::where('fair_id',$fair_id); $jobs = $jobs->with('company'); // dd($jobs->toSql()); if…
Ali Bhutta
  • 457
  • 5
  • 20