problem
stringlengths
26
131k
labels
class label
2 classes
Should I need to remove the app already installed before using brew cask? : <p>I am a Mac user and I download apps on website through installing .dmg files. Recently, I find the Homebrew cask which is simplicity for installing app on Mac. Therefore, I want to switch to download some apps through Homebrew cask. However,...
0debug
"pg_dump: invalid option -- i" when migrating : <p>When I run <code>rake db:migrate</code> on my Rails project (3.2.22.2) I get <code>pg_dump: invalid option -- i</code>. Here's the full trace:</p> <pre><code>Celluloid 0.17.1.1 is running in BACKPORTED mode. [ http://git.io/vJf3J ] [DEPRECATION] `last_comment` is depr...
0debug
Component not showing its content on lazy loading : <p>I am having trouble sharing components in modules in Angular 8. I was trying to build a stackblitz but I got stuck in some problem. I don't know if the problem is related to Angular or stackblitz itselft. My example can be accessed here</p> <p><a href="https://st...
0debug
AVAudioEngine inputNode installTap crash when restarting recording : <p>I am implementing Speech Recognition in my app. When I first present the view controller with the speech recognition logic, everything works fine. However, when I try present the view controller again, I get the following crash:</p> <pre><code>ERR...
0debug
static void ehci_advance_state(EHCIState *ehci, int async) { EHCIQueue *q = NULL; int again; do { switch(ehci_get_state(ehci, async)) { case EST_WAITLISTHEAD: again = ehci_state_waitlisthead(ehci, async); break; case EST_FETCHENTRY: a...
1threat
static inline void RENAME(yuv2yuvX)(SwsContext *c, int16_t *lumFilter, int16_t **lumSrc, int lumFilterSize, int16_t *chrFilter, int16_t **chrSrc, int chrFilterSize, uint8_t *dest, uint8_t *uDest, uint8_t *vDest, int dstW, int chrDstW) { #ifdef HAVE_MMX if(uDest != NULL) { asm volatile( Y...
1threat
Unknow index of session : <p>Ok guys when I try to run my simple php code I get this error: Notice: Undefined index: Status, here is my code:</p> <pre><code>&lt;?php session_start(); ?&gt; &lt;!DOCTYPE HTML&gt; &lt;html&gt; &lt;head&gt; ---&gt;All links &lt;/head&gt; &lt;body&gt; &lt;?...
0debug
static int ipmovie_probe(AVProbeData *p) { if (p->buf_size < IPMOVIE_SIGNATURE_SIZE) return 0; if (strncmp(p->buf, IPMOVIE_SIGNATURE, IPMOVIE_SIGNATURE_SIZE) != 0) return 0; return AVPROBE_SCORE_MAX; }
1threat
Find out who is the admin(s) for a git repo : <p>I am a contributor for a git repo in github for a company.</p> <p>I want to find out who among the contributors are the admins.</p> <p>How do I find out who is the admin besides going around and asking everyone in the company?</p>
0debug
Handling scroll views with (custom, interactive) view controller presentation and dismissal : <p>I have been experimenting with custom interactive view controller presentation and dismissal (using a combination of <code>UIPresentationController</code>, <code>UIPercentDrivenInteractiveTransition</code>, <code>UIViewCont...
0debug
I am using multiple firebase projects in an Android App. I am getting this error : Missing google_app_id. Firebase Analytics disabled : <p>I have added following code to initialise there projects. </p> <pre><code>FirebaseOptions options = new FirebaseOptions.Builder() .setApplicationId("1:129574837465:andr...
0debug
remove sign () in textview : I have textview, and when displaying text there is a sign () in the text, I want to eliminate it, this is my coding self.txtpstn.text = "\(self.no_pstn.self as NSArray)" self.txtmobile.text = "\(self.no_mobile.self as NSArray)" this is the display on the application ...
0debug
Getting error variable is inaccessible : <p>I've been writing some code for a small console based game that features a player and some enemies. So far I have only written one of the methods for my player class. The player class is a child class of a parent class called entity that also has a child class called enemy. I...
0debug
Is it possible to post files to Slack using the incoming Webhook? : <p>I am trying out the Slack's API using the incoming webhook feature, posting messages works flawlessly, but it doesn't seem to allow any file attachments.</p> <p>Looking through I understand I have to use a completely different OAuth based API, but ...
0debug
How do I trim space in an input field? : <p>I am using an input field and when someone types in it they can add spaces as general behavior. I do not want anyone to add spaces into the field and even if someone adds one it should trim there and then.</p> <p>Can someone please help on how to achieve this?</p> <p><div c...
0debug
void put_string(PutBitContext * pbc, char *s) { while(*s){ put_bits(pbc, 8, *s); s++; } put_bits(pbc, 8, 0); }
1threat
static float **alloc_audio_arrays(int channels, int frame_size) { float **audio = av_mallocz_array(channels, sizeof(float *)); if (!audio) return NULL; for (int ch = 0; ch < channels; ch++) { audio[ch] = av_mallocz_array(frame_size, sizeof(float)); if (!audio[ch]) { ...
1threat
Converting a number string to a number? : <p>I have a number string:</p> <pre><code>$1,000,000 </code></pre> <p>Is there an easy way to convert it to a number figure soit can be worked with as a number.</p> <pre><code>1000000 </code></pre>
0debug
How to convert string dd-MMM-yyyy HH:mm int0 datetime format in javascript : <p>I have string value like "26-APR-2019 16:40". I want to convert this in to date time in java script. Please help me.</p>
0debug
Screen of an Old App in iPhone X iOS 11 Adjustment : <p>We updated today to xCode 9 and our Visual Studio for Xamarin Development. I tested my apps on iPhone X and it has a spaces on upper and lower portion. Any idea and work around to update the app? </p> <p>using Visual Studio Xamarin Forms.</p> <p><a href="https:...
0debug
How to convert String List to String in flutter? : <p>I need to convert List into string in dart.</p> <p>i want to extract the value of list from preferences. I have tried this implementation but it is only giving me the last value.</p> <pre><code> Future&lt;List&lt;String&gt;&gt; services=SharedPrefSignUp.get...
0debug
vcard_emul_find_vreader_from_slot(PK11SlotInfo *slot) { VReaderList *reader_list = vreader_get_reader_list(); VReaderListEntry *current_entry = NULL; if (reader_list == NULL) { return NULL; } for (current_entry = vreader_list_get_first(reader_list); current_entry; ...
1threat
void commit_active_start(const char *job_id, BlockDriverState *bs, BlockDriverState *base, int64_t speed, BlockdevOnError on_error, BlockCompletionFunc *cb, void *opaque, Error **errp) { int64_t length, base_le...
1threat
Persistent Warning: "Multiple packages failed to uninstall." : <p>I have a warning message that came to dinner but now won't leave.</p> <blockquote> <p>Multiple packages failed to uninstall. Restart Visual Studio to finish the process.</p> </blockquote> <p><a href="https://i.stack.imgur.com/T8Qui.png" rel="noreferr...
0debug
how to update data by using id in php & mysql i update but data not updated data should be deleted why : [enter image description here][1] I share one image that image contain program. i try to update data by using that program but data is not updated in the table but it shows that data is updated successfully b...
0debug
Beginner's Python- What is my Mistake? : <p>This is Sheldon Cooper's Friendship Algorithm. Python code. Please help me find the mistake. I doubled checked it x200 times but can't seem to find it. I'm in high school so this would be pretty easy for all of you. .</p> <pre><code>print("The Friendship Algorithm \n By Dr. ...
0debug
static int usb_serial_initfn(USBDevice *dev) { USBSerialState *s = DO_UPCAST(USBSerialState, dev, dev); s->dev.speed = USB_SPEED_FULL; qemu_chr_add_handlers(s->cs, usb_serial_can_read, usb_serial_read, usb_serial_event, s); usb_serial_handle_reset(dev); return 0;
1threat
math program with uninitialized local variable choice : <pre><code> void main() { int choice; //printf("You have selected the choice %d",menu()); if (choice == 1) { printf("You have selected addition\n"); additionmenu(); } else if (choice == 2) { printf("You have sel...
0debug
How can I solve No 'Access-Control-Allow-Origin' header is present on the requested resource in axios? : <p>My vue script like this :</p> <pre><code>&lt;script&gt; export default { ... methods : { login() { // uri -&gt; http://my-app.test/login?email=test@gmail.com&amp;password=1234 ...
0debug
Node.js setTimeout in forever loop : <p>Can't explain nodejs behavior. I have code:</p> <pre><code>while (true) { setTimeout(() =&gt; console.log(1), 0) } </code></pre> <p>And this script just hanging...</p> <p>How come? I've been thinking <code>setTimeout</code> is non-blocking and asynchronous, and nodejs use <c...
0debug
How do I work with the alphavantage API to fetch the currency exchange data using either JSON or php? : https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE&from_currency=USD&to_currency=JPY&apikey=demo DATA AS FOLLOWS:- Realtime Currency Exchange Rate 1. From_Currency Code "USD" 2. From_Currency...
0debug
Google Chrome clears CSS styles for current page when opening link in new tab or opening a new window : <p>This is odd one, I was troubleshooting for 3 days.</p> <p>Only happening in <code>Chrome Version 53.0.2785.116 m (64-bit)</code> on Windows.</p> <p>Web server must have header set (meta tag doesn't work in this ...
0debug
can any one please let me know about ratings and reviews of appstore? : <blockquote> <p>In Itunes, I got 248 ratings for my app, but still it is showing only 6 rating in appstore.Can any one please let me know about ratings and reviews of appstore???</p> </blockquote>
0debug
output video/gif file css or javascript animations : <p>Is there any possibility to convert css animations or javascript libraries like (threejs, tweenmax, ... or even simple js) into a video or a gif and output it as a file by code?</p>
0debug
How to break flow of code in Swift? : <p>I am unable to break the execution of code using 'return' keyword in Swift language. Please suggest the another way around for how to break the code execution flow if need be in Swift.</p>
0debug
I'm learning multidimensional arrays and trying to write them out with for. I found it, but I don't understand how it works : <p>so I'm learning Java nad now I'm on multidimensional arrays. I think I understand how they work. And I found how to write them out with for, but the whing is what happens with for and why we ...
0debug
how to return opposite of true or false : I was interview in company and i was asked a question , question was bti strange so wanted to ask with expert guys. The question suppose i have function which returns bool type, Lets say this : public bool func(int param) { bool retVal; //h...
0debug
How to upload files in Laravel directly into public folder? : <p>The server which I'm hosting my website does not support <code>links</code> so I cannot run the <code>php artisan storage:link</code> to link my storage directory into the public directory. I tried to remake the disk configuration in the <strong>filesyste...
0debug
Let's say I have a list. What's the difference between lst[0] and [lst[0]]? : <p>I know what lst[x] means in Python, which is basically the element in that index. But i'm not sure what [lst[x]] means.</p> <p>new to programming btw so go ez</p>
0debug
Replace Validation Monitors with tf.train.SessionRunHook when using Estimators : <p>I am running a DNNClassifier, for which I am monitoring accuracy while training. monitors.ValidationMonitor from contrib/learn has been working great, in my implementation I define it:</p> <pre><code>validation_monitor = skflow.monitor...
0debug
static uint64_t uart_read(void *opaque, target_phys_addr_t offset, unsigned size) { UartState *s = (UartState *)opaque; uint32_t c = 0; offset >>= 2; if (offset >= R_MAX) { return 0; } else if (offset == R_TX_RX) { uart_read_rx_fifo(s, &c); return c; ...
1threat
Remove unnecessary part of a filename in powershell : <p>I'm sorry, I know this is a noob question, but I've researched for more than 5 hours now and can't figure out how to achieve what I want.</p> <p>I have a folder with lots files in the form of:</p> <p>"Artist - Song Tttle (ft. Ruth B) (Prod. Blulake)-28GpKacWLWI...
0debug
How to bind json data : <p>I've json response from server looks like that</p> <pre><code>{ "117":{ "09:00":5, "10:00":5, "11:00":5, "12:00":5, "13:00":5, "14:00":5, "15:00":5, "16:00":5, "17:00":5, "18:00":5, "19:00":5 } } </code></pre> <p>How I can bind ...
0debug
int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush){ AVPacketList *pktl; int stream_count=0, noninterleaved_count=0; int64_t delta_dts_max = 0; int i; if(pkt){ ff_interleave_add_packet(s, pkt, ff_interleave_compare_dts); } for(i=0...
1threat
static int msvideo1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Msvideo1Context *s = avctx->priv_data; int ret; s->buf = buf; s->si...
1threat
Can't git push to Bitbucket: Unauthorized - fatal: Could not read from remote repository : <p>I can't push to Bitbucket and this is the error message:</p> <blockquote> <p>> git push origin master:master<br> Unauthorized<br> fatal: Could not read from remote repository.</p> <p>Please make sure you have the c...
0debug
Python argparse : How can I get Namespace objects for argument groups separately? : <p>I have some command line arguments categorized in groups as follows:</p> <pre><code>cmdParser = argparse.ArgumentParser() cmdParser.add_argument('mainArg') groupOne = cmdParser.add_argument_group('group one') groupOne.add_argument(...
0debug
static int monitor_check_qmp_args(const mon_cmd_t *cmd, QDict *args) { int err; const char *p; CmdArgs cmd_args; QemuOptsList *opts_list; if (cmd->args_type == NULL) { return (qdict_size(args) == 0 ? 0 : -1); } err = 0; cmd_args_init(&cmd_args); opts_list = NUL...
1threat
static void *file_ram_alloc(RAMBlock *block, ram_addr_t memory, const char *path, Error **errp) { bool unlink_on_error = false; char *filename; char *sanitized_name; char *c; void *area = MAP_FAILED; in...
1threat
How can I let the gitlab-ci-runner DinD image cache intermediate images? : <p>I have a Dockerfile that starts with installing the texlive-full package, which is huge and takes a long time. If I <code>docker build</code> it locally, the intermedate image created after installation is cached, and subsequent builds are fa...
0debug
How to use a loop to get the following result in R through loop functions that summarizes my dates with my value box ? : [This is the current form of input data which I want to convert into the other image here][1] [This is the expected output][2] [1]: https://i.stack.imgur.com/WWlRv.png [2]: https://i.stac...
0debug
How to add the chrome binary to run e.g. Karma tests on headless chrome on a CI server : <p>I like to run my karma unit tests on a headless chrome. Using karma-chrome-launcher and setting the browser to "ChromeHeadless" works on my machine. But on the CI server it fails with the message "No binary for ChromeHeadless br...
0debug
int qemu_sendv(int sockfd, struct iovec *iov, int len, int iov_offset) { return do_sendv_recvv(sockfd, iov, len, iov_offset, 1); }
1threat
static int megasas_dcmd_ld_get_list(MegasasState *s, MegasasCmd *cmd) { struct mfi_ld_list info; size_t dcmd_size = sizeof(info), resid; uint32_t num_ld_disks = 0, max_ld_disks = s->fw_luns; uint64_t ld_size; BusChild *kid; memset(&info, 0, dcmd_size); if (cmd->iov_size < dcmd_size...
1threat
void sclp_print(const char *str) { int len = _strlen(str); WriteEventData *sccb = (void*)_sccb; sccb->h.length = sizeof(WriteEventData) + len; sccb->h.function_code = SCLP_FC_NORMAL_WRITE; sccb->ebh.length = sizeof(EventBufferHeader) + len; sccb->ebh.type = SCLP_EVENT_ASCII_CONSOLE_DATA...
1threat
Is there a way to handle generic function in go : <p>I am new to go, and wanted to implement a scheduler that will recieve tasks(i.e interval + handler). I got stuck in the part where I should get the handlers as go is a static language(I can't get a generic function signature). I came up with the following solution: e...
0debug
VSCode Integrated Terminal Doesn't Load .bashrc or .bash_profile : <p>I have the following files to handle shell configuration:</p> <pre><code>#~/.bash_profile if [ -f ~/.bashrc ]; then source ~/.bashrc fi </code></pre> <p>and</p> <pre><code>#~/.bashrc ... configure shell </code></pre> <p>If I open VSCode from t...
0debug
Layouts in xamarin : How to check layout in cross platform application of app1.android.like I m saying without creating cross platform we can check layout in resources-Layout and xaml file,but in cross platform android with pcl I can't check my current layout of label in this middle of the form,In layout in app1.androi...
0debug
Invalid zip file after creating it with System.IO.Compression : <p>I'm trying to create a zip file that contains one or more files.<br/> I'm using the .NET framework 4.5 and more specifically System.IO.Compression namespace.<br/> The objective is to allow a user to download a zip file through a ASP.NET MVC application....
0debug
Angular2 retrieve all elements with class name : <p>Can anyone help with how to find 'All' Elements with a particular class name in Angular 2? I thought it would be trivial but it's giving me more problems that was prepared for. </p> <pre><code>&lt;span class="classImLookingFor"&gt;foo&lt;/span&gt; &lt;span class="cl...
0debug
Cannot assign value of type '[String]?' to type 'String?' (Swift) : This is the var `var types: [String]?` and here i get this error `myLabel3.text = place.types` how can i adjust it? I looked to other similar questions but not find something that is the same to my problem.
0debug
static int tag_tree_decode(Jpeg2000DecoderContext *s, Jpeg2000TgtNode *node, int threshold) { Jpeg2000TgtNode *stack[30]; int sp = -1, curval = 0; while (node && !node->vis) { stack[++sp] = node; node = node->parent; } if (node) curval = node...
1threat
static int mkv_write_track(AVFormatContext *s, MatroskaMuxContext *mkv, int i, AVIOContext *pb) { AVStream *st = s->streams[i]; AVCodecContext *codec = st->codec; ebml_master subinfo, track; int native_id = 0; int qt_id = 0; int bit_depth = av_get_bits_per_samp...
1threat
looping over AWK commands doesn't work : <p>I have a huge dictionary file that contains each word in each line, and would like to split the files by the first character of the words. </p> <p>a.txt --> only contains the words that start with a</p> <p>I used this awk commands to successfully extract words that start wi...
0debug
I have two csv files having 3 columns i have to read this and compare this using hashmap() multiple hashmap) please help me with this code : I have two csv files having 3 columns i have to read this and compare this using hashmap() multiple hashmap) please help me with this code Name,Value, Address aaa,1,sdasdasd ...
0debug
Azure DocumentDB Owner resource does not exist : <p>I having the same error icrosoft.Azure.Documents.DocumentClientException: Message: {"Errors":["Owner resource does not exist"]} , this is my scenario. When I deployed my webapp to Azure and try to get some document from docDb it throws this error. The docdb exists in ...
0debug
static void ioq_init(LaioQueue *io_q) { QSIMPLEQ_INIT(&io_q->pending); io_q->plugged = 0; io_q->n = 0; io_q->blocked = false; }
1threat
understanding code in c++ : <p>This question arose while studying NS-3 codes. There is a for loop as below</p> <pre><code>enter code here for (NetDeviceContainer::Iterator i = periDevice.Begin (); i != periDevice.End (); i++) { (*i)-&gt;GetObject&lt;Bl...
0debug
Type for parameter in TypeScript Arrow Function : <p>With </p> <pre><code>"noImplicitAny": true </code></pre> <p>TypeScript will give the error:</p> <p><em>Parameter 'x' implicitly has an 'any' type</em></p> <p>for</p> <pre><code>.do(x =&gt; console.log(x)); </code></pre> <p>and error</p> <p><em>',' expected</em...
0debug
How to show Spinning Wheel or Busy Icon while waiting in Shiny : <p>Hey i've just started working with R and Shiny. Trying to make a dashboard which displays different charts. As there is a lot of data to process, the plots or charts take some time to display after the action button is clicked i.e. "launch Campaign' I...
0debug
Format Exception - input string was not in a correct format : <p>I found a problem - when I run this program, Visual Studio throws an exception - Format exception: Input string was not in a correct format. </p> <pre><code> string name = Console.ReadLine(); int age = int.Parse(Console.ReadLine()); ...
0debug
Set value in dependency of Helm chart : <p>I want to use the <a href="https://github.com/helm/charts/tree/master/stable/postgresql" rel="noreferrer">postgresql chart</a> as a requirements for my Helm chart.</p> <p>My <code>requirements.yaml</code> file hence looks like this:</p> <pre><code>dependencies: - name: "po...
0debug
static void posix_aio_read(void *opaque) { PosixAioState *s = opaque; ssize_t len; for (;;) { char bytes[16]; len = read(s->rfd, bytes, sizeof(bytes)); if (len == -1 && errno == EINTR) continue; if (len == sizeof(bytes)) continue; ...
1threat
static target_ulong h_put_tce(PowerPCCPU *cpu, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong liobn = args[0]; target_ulong ioba = args[1]; target_ulong tce = args[2]; sPAPRTCETable *tcet = spapr_tce_find_by_liobn(liobn); if (l...
1threat
av_cold int ff_intrax8_common_init(IntraX8Context *w, IDCTDSPContext *idsp, MpegEncContext *const s) { int ret = x8_vlc_init(); if (ret < 0) return ret; w->idsp = *idsp; w->s = s; w->prediction_table = av_mallocz(s->mb_width * 2 * 2); ...
1threat
How do you test the effects of dns-prefetch and preconnect : <p>I'm trying out the <code>&lt;link rel="dns-prefetch"&gt;</code> and <code>&lt;link rel="preconnect"&gt;</code> tags and I'm trying to see whether they help for my site. I can't find any online resources about how verify if these hints are working using bro...
0debug
How to merge/combine columns in pandas? : <p>I have a (example-) dataframe with 4 columns:</p> <pre><code>data = {'A': ['a', 'b', 'c', 'd', 'e', 'f'], 'B': [42, 52, np.nan, np.nan, np.nan, np.nan], 'C': [np.nan, np.nan, 31, 2, np.nan, np.nan], 'D': [np.nan, np.nan, np.nan, np.nan, 62, 70]} df = pd.DataFr...
0debug
Bootstrap button tooltip hide on click : <p>On my site I have some buttons. When a user clicks the button, a modal opens. When a user hovers the button, a tooltip is shown.</p> <p>Is use this code:</p> <pre><code>&lt;button type="button" rel="tooltip" title="Tooltip content" class="btn btn-sm btn-default" data-toggle...
0debug
static inline void cpu_loop_exec_tb(CPUState *cpu, TranslationBlock *tb, TranslationBlock **last_tb, int *tb_exit) { uintptr_t ret; int32_t insns_left; if (unlikely(atomic_read(&cpu->exit_request))) { return; } trace_exec_tb(tb, tb->pc); r...
1threat
sofcantrcvmore(struct socket *so) { if ((so->so_state & SS_NOFDREF) == 0) { shutdown(so->s,0); if(global_writefds) { FD_CLR(so->s,global_writefds); } } so->so_state &= ~(SS_ISFCONNECTING); if (so->so_state & SS_FCANTSENDMORE) { so->so_state &= SS_PERSISTENT_MASK; so->so_state |= SS_NOFD...
1threat
The given artifact contains a string literal with a package reference 'android.support.v4.content' that cannot be safely rewritten. for androidx : <p>I upgraded my <code>android studio to 3.4 canary</code> and now I cannot successfully build anymore due to the following error: </p> <pre><code>The given artifact contai...
0debug
infinite loop when dispatching in componentWillReceiveProps : <p>I have a Profile component that is loaded by react-router (path="profile/:username") and the component itself looks like this:</p> <pre><code>... import { fetchUser } from '../actions/user'; class Profile extends Component { constructor(props) { s...
0debug
Can't figure out how to Add some CRUD to my app : Im a begginer I would like to add (some CRUD fucntionality to my Console app) Im struggling right now since I want to add, remove and display then a Object of type fish and an Object of type Reptile to an array and then print them and I want to make it possible by using...
0debug
Returning a 1 or 0 for checkbox , wheter checked or unchecked in HTML5 : I declared a var and want to pass the status of the checkbox to the dhcp_addr variable and set it to 1 when the checkbox is checked and 0 when its unchecked. Need some help in returning a value to the variable. var dhcp_addr = $('...
0debug
static void cpu_x86_fill_host(x86_def_t *x86_cpu_def) { uint32_t eax = 0, ebx = 0, ecx = 0, edx = 0; x86_cpu_def->name = "host"; host_cpuid(0x0, 0, &eax, &ebx, &ecx, &edx); x86_cpu_def->level = eax; x86_cpu_def->vendor1 = ebx; x86_cpu_def->vendor2 = edx; x86_cpu_def->vendor3 = ecx;...
1threat
ssize_t nbd_send_request(QIOChannel *ioc, struct nbd_request *request) { uint8_t buf[NBD_REQUEST_SIZE]; ssize_t ret; TRACE("Sending request to server: " "{ .from = %" PRIu64", .len = %" PRIu32 ", .handle = %" PRIu64 ", .type=%" PRIu32 " }", request->from, request->len,...
1threat
Hashicorp Vault cli return 403 when trying to use kv : <p>I set up vault backed by a consul cluster. I secured it with https and am trying to use the cli on a separate machine to get and set secrets in the kv engine. I am using version 1.0.2 of both the CLI and Vault server.</p> <p>I have logged in with the root token...
0debug
Check if randomly generated value already exists in hash : <p>If I have a Perl hash, and I randomly generated a numeric value, how can I get my code to check if the randomly generated value already exists in the hash?</p>
0debug
void av_thread_message_queue_free(AVThreadMessageQueue **mq) { #if HAVE_THREADS if (*mq) { av_thread_message_flush(*mq); av_fifo_freep(&(*mq)->fifo); pthread_cond_destroy(&(*mq)->cond); pthread_mutex_destroy(&(*mq)->lock); av_freep(mq); } #endif }
1threat
QEMUTimerList *timerlist_new(QEMUClockType type, QEMUTimerListNotifyCB *cb, void *opaque) { QEMUTimerList *timer_list; QEMUClock *clock = qemu_clock_ptr(type); timer_list = g_malloc0(sizeof(QEMUTimerList)); qemu_event_init(&timer_list->t...
1threat
static int encode_hq_slice(AVCodecContext *avctx, void *arg) { SliceArgs *slice_dat = arg; VC2EncContext *s = slice_dat->ctx; PutBitContext *pb = &slice_dat->pb; const int slice_x = slice_dat->x; const int slice_y = slice_dat->y; const int quant_idx = slice_dat->quant_idx; const int ...
1threat
Beginning C and I have a bug that is killing me : <p>I am writing some code and I have a prompt in the program driven by a while loop where you make a choice. However, it prints the prompt twice every time it goes through the loop and I just can't figure it out.</p> <pre><code> while (choice != 'x'); { ...
0debug
access MONGODB on remote server : <p>i am a newbie.. i know coding language such as python and mongodb(pymongo).. Now i want to make a web based ui to get and display records on the client pc.. there maybe some queries the client enters to get desired records... the mongodb is on a server... I need to know what tools...
0debug
Reading matrices of unkown dimension : <p>I'm trying to read a matrix from a file formatted in this way</p> <pre> 1 2 3 4 4 5 6 7 8 9 10 11 * 1 0 1 0 1 1 1 1 1] </pre> <p>but I don't know how to pass the multidimensional array with its dimension given by rows[] and cols[] arrays to the function read_matrix().</p> <p...
0debug
framework not found GoogleMapsCore Error : <p>I'm using cocoapods in my project and I have googlemaps(2.5.0) and googleplaces(2.5.0) in my podfile(which I've installed with 'pod install'). </p> <p>However, I'm getting this error when I try to build:</p> <pre><code>ld: framework not found GoogleMapsCore clang: error: ...
0debug
static int mov_read_stsd(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; MOVStreamContext *sc; int ret, entries; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams - 1]; sc = st->priv_data; avio_r8(pb); avio_rb24(pb); ent...
1threat
Instant Run missing in Android Studio 3.3 : <p>Currently, in the Android Studio version 3.3, the shortcut for "Apply Changes" option is missing which allows Instant Run. There is another option called "Update Running Application" which does not provide the same functionality.</p> <p>This option was available in older ...
0debug
static void colo_old_packet_check(void *opaque) { CompareState *s = opaque; g_queue_foreach(&s->conn_list, colo_old_packet_check_one_conn, NULL); }
1threat
Is there any way to select some rows in data set whose for some columns they reapet more than once? : <p>I have a data set with 10000 rows and 32 columns. I am wondering is it possible we choose some rows whose have the same value for some features? </p> <p>Here is an example which make my question more clear. </p> <...
0debug
static void show_packets(AVFormatContext *fmt_ctx) { AVPacket pkt; av_init_packet(&pkt); while (!av_read_frame(fmt_ctx, &pkt)) show_packet(fmt_ctx, &pkt); }
1threat