Questions tagged [raw]

204 questions
1
vote
1 answer

Program crashes when fetching long-raw with OCI

I'm trying to SELECT a LONG RAW column in an Oracle table using the OCI library. For reasons that go beyond the scope of this question, I prefer to fetch the data by pieces, not using a callback therefore. The execution of the statement returns, as…
Robert Kock
  • 5,795
  • 1
  • 12
  • 20
1
vote
1 answer

Changing snps in 00, 11, 20 in a file to biallelic letter allele using another file which has the nucleotides as map file

I have a raw.txt file: FID IID FA MO SEX PHENO SNP1 SNP2 SNP3 SNP4 1 1 0 0 1 1 20 00 20 11 1 2 0 0 1 1 11 00 20 20 1 3 0 0 1 1 11 20 11 20 1 4 0 0 1 1 00 11 11 20 A snp.txt…
1
vote
1 answer

Using path-strings as index in pandas

I am trying to create a dataframe with filepaths as index: import os import pandas as pd pathnames = [] for i in range(5): pathnames.append(os.path.join('a',str(i))) print(pathnames) df = pd.DataFrame(index = pathnames) df[pathnames[0]] When…
1
vote
1 answer

Scapy Ethernet packet from byte string loses information of top layers

I am trying to build scapy Ether packet from raw string. packet = packets[4] # this is the packet I get from pcap file str_packet = str(packet) # I get string form from here packet2 = Ether(str_packet) # I try to make packet2 from the…
Durgesh O Mishra
  • 51
  • 1
  • 2
  • 8
0
votes
0 answers

LWIP RAW why does IP_ADDR_ANY work but as defined IP not when using udp_bind?

I want to listen to UDP packets from a single IP address (in my example the PC). Using LWIP 2.1: udp_bind(upcb, IP_ADDR_ANY, PORT) Allows me to receive data from PC on IP 192.168.1.2 (for example) However using: uint8_t BytesIP[4]; BytesIP[0] =…
Lunch
  • 3
  • 2
0
votes
0 answers

What are the types of data can be used with geoserver wps raw data implementation?

In geoserver, we can create custom wps processes, I want to create a wps process which gets image and video data from client in multipart format. The geoserver wps post request needs body in xml format, how we can send image or video using this? I…
0
votes
0 answers

How to set ringtone in Android from my activity on upcoming Android 14 (UPSIDE_DOWN_CAKE API 34)?

I'm trying to find a way to set a new default ringtone by code from my Android activity. It works well on Android 13 but on Android 14+ on Android Studio Emulator (for example Nexus 6P API 34) the app crashes. My code is below: interface Tone{ …
0
votes
0 answers

Android access generated values.xml contents to encrypt/decrypt

The file values.xml under the folder res(generated)/values. This file contains the firebase database URL, google API key etc information. Will it cause any security issue to the app? Can anybody access the firebase database using these values by…
Abm
  • 271
  • 2
  • 15
0
votes
0 answers

Why does Syslog-ng still add data when I use no-parse and store-raw-message

So this is my syslog-ng configuration: template raw_log { template("${MESSAGE}\n"); }; source s_eve { network( transport(tls) port(6514) tls( key-file("/etc/syslog-ng/ca.d/privkey.pem") …
19mike95
  • 506
  • 2
  • 4
  • 19
0
votes
0 answers

Saving data from firebase storage to view it later within my application in android studio

can anyone help with how I can achieve the saving of videos from firebase storage to my android app and then view them later from my application even if I have lost internet connection. However, I do not want them to appear in the gallery, I just…
0
votes
0 answers

React Native - Reading ByteArray (raw bytes) directly from file

I'm uploading media files (images, wav files) from my phone to AWS S3 bucket. To upload to S3, finally I'll need the Byte array. I'm using react-native-fs package and reading in base64, and then decoding it back to byteArray and then finally…
user1099859
  • 103
  • 1
  • 8
0
votes
3 answers

Replacing characters in R string based on raw hex values

Suppose I have a string in R, mystring = 'help me' but with a twist: The space between 'help' and 'me' is actually a non-breaking space. Non-breaking space is stored in R as , so this string can be created by mystring =…
0
votes
0 answers

Making DNG images available via USB in iOS

Currently when I connect an iOS device to a Linux computer, I can mount the photos directory as if it were a camera. However I can only access the JPEG photos, which are inherently low quality. I were to write an iOS app that takes RAW photos, which…
s_question
  • 21
  • 2
0
votes
0 answers

Exclude json files from index.android.bundle in react native

In my react native app, I have many lottie files (json). I have added these json in res/raw folder, but these json files are getting included in the bundle Aldo. Now I want to exclude these json files from bundle and let the LottieView pick these…
rohit garg
  • 283
  • 3
  • 13
0
votes
0 answers

How do i get data from HTTP requests using Scapy?

My goal is to read responses of my HTTP requests, their data, headers and all that comes with them. I would like to get readable data, similar to what you can read when opening the network tab in developer tools in Chrome. I tried using this…