problem
stringlengths
26
131k
labels
class label
2 classes
How to get count of number elements which are greater than current element in an arraylist : <p>I have an arraylist [10,11,1,2,3,6,11,10]. For each element, I want to get count of elements which are greater than current element.</p> <p>For example, for 10, only 11 is greater than it and there are 2 occurances of it. F...
0debug
void virtio_setup_block(struct subchannel_id schid) { struct vq_info_block info; struct vq_config_block config = {}; blk_cfg.blk_size = 0; guessed_disk_nature = false; virtio_reset(schid); config.index = 0; if (run_ccw(schid, CCW_CMD_READ_VQ_CONF, &config, size...
1threat
Pointers swap values in void function, but won't return swapped values: C : I'm trying to swap two strings passed in as char pointers. Debugging, I get the right answers at the end of the function, but returning the values after the function ends returns the same values as passed in. Here is the code for main: ...
0debug
Make an array of arrays with 10 items each : <p>I have an array that has X number of values.</p> <p>I'm trying to make an array of arrays with 10 items each of X. How do I go on about in doing something like this?</p> <p>I've tried using a count while iterating it and let's just say I didn't get anywhere with that. <...
0debug
Is there a tool for analyzing what a bash script does line by line? : <p>I need to understand few bash scripts from time to time, but I'm not a bash expert and I'd like to learn it during reading each script. Is there a tool which can tell me what each script line does?</p> <p>for example, it can tell me what each lin...
0debug
GET http://localhost:4200/null 404 (Not Found) in angular2 with angular-cli : <p>I'm working with angular2 project with angular-cli. Today I updated version of below to 2.4.1.</p> <pre><code>"@angular/common": "~2.4.1", "@angular/compiler": "~2.4.1", "@angular/compiler-cli": "^2.4.1", "@angular/core": "~2.4.1", "@angu...
0debug
confused for setup angularjs.Many dependency found : <p>I google for setup angularjs.I found many tutorial but i am confused.I found</p> <ol> <li>angular-seed </li> <li>Yeoman</li> <li>bower</li> <li>etc.</li> </ol> <p>it is necessary to use this dependency. there is any scratch for start angularjs.</p>
0debug
static int line_in_init (HWVoiceIn *hw, struct audsettings *as) { SpiceVoiceIn *in = container_of (hw, SpiceVoiceIn, hw); struct audsettings settings; #if SPICE_INTERFACE_RECORD_MAJOR > 2 || SPICE_INTERFACE_RECORD_MINOR >= 3 settings.freq = spice_server_get_best_record_rate(NULL); #else s...
1threat
static int ide_drive_pio_post_load(void *opaque, int version_id) { IDEState *s = opaque; if (s->end_transfer_fn_idx < 0 || s->end_transfer_fn_idx > ARRAY_SIZE(transfer_end_table)) { return -EINVAL; } s->end_transfer_func = transfer_end_table[s->end_transfer_fn_idx]; s->data...
1threat
int kvm_arch_remove_sw_breakpoint(CPUState *cpu, struct kvm_sw_breakpoint *bp) { return -EINVAL; }
1threat
static int xen_remove_from_physmap(XenIOState *state, hwaddr start_addr, ram_addr_t size) { unsigned long i = 0; int rc = 0; XenPhysmap *physmap = NULL; hwaddr phys_offset = 0; physmap = get_physmapping(state, start_addr...
1threat
how to set up localhost to your domain name? : <p>I have created web page using following program: html,css and php, in mamp plate form. Now i don't not know how to connect the web page created on mamp to my domain. I have tried the following youtube video to set up my domain to local host, but I am not successful:</p>...
0debug
best practice to iterate through array of arrays & create another array [Android] : i have an Array of Arrays such as Arraylist<myObjec> subArray = {item1_1,item1_2, item1_3}<br></br> Arraylist<myObjec> subArray = {item2_1,item2_2, item2_3, item2_4} Arraylist<myObjec> mainArray = {subArray_1,subArray...
0debug
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
Javascript - combine two arrays in every possible way : <p>If I have two arrays:</p> <pre><code>var arrOne = ['a','b','c'] var arrTwo = ['1','2','3'] </code></pre> <p>How can I get a new array from this that will mix every value like so:</p> <pre><code>var result = ['a1','a2','a3','b1','b2','b3','c1','c2','c3'] </co...
0debug
Delete object single property from list - C# : I want to delete object single property from list. -------------------------------------------------- i have class, Public class Employee { public int Id {get;set;} public string Name {get;set;} public string Address {get;set;} } ...
0debug
How to create a .txt file whose name is based on user input using c++ : <p>I wish to create several .txt files to store information about cars. Each .txt file will store the information for one car. I will ask the user to input the car information, such as CarId, Make, Model etc. I wish to name the .txt file using CarI...
0debug
Run html class using JAVASCRIPT : i have html class using two class <div class="container"> <div class="black"> <h1>hello<h1> </div> <div class="green"> <h1>hello<h1> </div> </div> this is my css .black{ background-color: black; ...
0debug
User interface design with Bootstrap : <p>I would like to make UI like in link that i have provided below. How is it possible with Bootstrap or with basic html table?</p> <p><a href="https://imgur.com/COVjhAL" rel="nofollow">https://imgur.com/COVjhAL</a></p>
0debug
How to register .Net 4.5.1 with IIS8 on windows 10 : <p>How to register .Net 4.5.1 with IIS8 on windows 10 machine? it used to be simple as running command "aspnet_regiis -i"...but not anymore. if try to run this command i get error</p> <blockquote> <p>This option is not supported on this version of the operating sy...
0debug
pycharm analysis complete. One typo found. Where is it? : <p>I use Pycharm 2016.1.4 (latest version at the moment) and it has a small box on the right top corner of the window (a checkbox if everything is correct).</p> <p><a href="https://i.stack.imgur.com/6Hc2W.png" rel="noreferrer"><img src="https://i.stack.imgur.co...
0debug
void gdb_exit(CPUState *env, int code) { GDBState *s; char buf[4]; s = &gdbserver_state; if (gdbserver_fd < 0 || s->fd < 0) return; snprintf(buf, sizeof(buf), "W%02x", code); put_packet(s, buf); }
1threat
static void test_validate_fail_union_flat(TestInputVisitorData *data, const void *unused) { UserDefFlatUnion *tmp = NULL; Error *err = NULL; Visitor *v; v = validate_test_init(data, "{ 'string': 'c', 'integer': 41, 'boolean': true }"); visit_type_...
1threat
static int vfio_setup_pcie_cap(VFIOPCIDevice *vdev, int pos, uint8_t size) { uint16_t flags; uint8_t type; flags = pci_get_word(vdev->pdev.config + pos + PCI_CAP_FLAGS); type = (flags & PCI_EXP_FLAGS_TYPE) >> 4; if (type != PCI_EXP_TYPE_ENDPOINT && type != PCI_EXP_TYPE_LEG_END && ...
1threat
static void tight_palette_rgb2buf(uint32_t rgb, int bpp, uint8_t buf[6]) { memset(buf, 0, 6); if (bpp == 32) { buf[0] = ((rgb >> 24) & 0xFF); buf[1] = ((rgb >> 16) & 0xFF); buf[2] = ((rgb >> 8) & 0xFF); buf[3] = ((rgb >> 0) & 0xFF); buf[4] = ((buf[0] & 1) == 0...
1threat
Node js and MongoDB app on AWS : <p>What are the steps for deploying a Node js app, with express.js framework and MongoDB as database on AWS? This is my first such activity and I am not able to find any reliable source over the net.</p>
0debug
Is there any way to detect month change in android calendar view(i.e. when user changes calendar to another month) : <p>I want to get month shown in calendar view and i cant figure it out. i tried </p> <pre><code>calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() { @Override ...
0debug
i want to automatically get a grade value for each subject after calculating the sum for each total field : after i have calculated the sum i want the grade to appear automatically without clicking on any button. <tr class="row1"> <th>Class Name</th><th>1st</th><th>2nd</th><th>3rd</th><th>Total</th><th>...
0debug
static void vmxnet3_reset(VMXNET3State *s) { VMW_CBPRN("Resetting vmxnet3..."); vmxnet3_deactivate_device(s); vmxnet3_reset_interrupt_states(s); vmxnet_tx_pkt_reset(s->tx_pkt); s->drv_shmem = 0; s->tx_sop = true; s->skip_current_tx_pkt = false; }
1threat
static av_always_inline void encode_mb_internal(MpegEncContext *s, int motion_x, int motion_y, int mb_block_height, int mb_block_count) { int16_t weight[8][64]; DCTELEM orig[8][64]; const int mb_x= s->mb_x; const int mb_y= s->mb_y; int i; int skip_dct[8]; int dct_offset = s->linesi...
1threat
static void intra_predict_mad_cow_dc_0lt_8x8_msa(uint8_t *src, int32_t stride) { uint8_t lp_cnt; uint32_t src0, src1, src2 = 0, src3; uint32_t out0, out1, out2, out3; v16u8 src_top; v8u16 add; v4u32 sum; src_top = LD_UB(src - stride); add = __msa_hadd_u_h(src_top, src_top); ...
1threat
Error in my Navigation Drawer : <p>I'm new to android, I have designed a navigation drawer and I want to show a message (as Toast) as every item is clicked, It runs but the message is not shown, can anyone help me please? </p> <p>this is my code for showing the message:</p> <pre><code> @Override public boolean...
0debug
How to convert Metres to Centimetres in Monkey C : serious newbie question, but I can't seem to find the answer anywhere! I'm trying to convert my height from Centimetres to Metres in an application for my Garmin device. This is written in Monkey C (very similar to Java and C++ from what I understand). Here's how...
0debug
What is the best way to create continious html parsing? : I have an html page in my local network. I need to get some figures every 1 second and save in database. What is the best way to do that? I think it may be parser is written using python. But how to do it that script keep passing constantly. Maybe using cron?
0debug
AndroidMy 6.0 targetSdkVersion 23 open failed: EACCES (Permission denied) : <p>I got a error, W/System.err: java.io.FileNotFoundException: open failed: EACCES (Permission denied) </p> <p>Code has :</p> <pre><code>Environment.getExternalStorageDirectory().getAbsolutePath() </code></pre> <p>AndroidManifest.xml has :...
0debug
static inline void load_seg_cache_raw_dt(SegmentCache *sc, uint32_t e1, uint32_t e2) { sc->base = get_seg_base(e1, e2); sc->limit = get_seg_limit(e1, e2); sc->flags = e2; }
1threat
static void pci_error_message(Monitor *mon) { monitor_printf(mon, "PCI devices not supported\n"); }
1threat
How to refactor those quite similar arrow functions? : <p>I'm refactoring some code in a react file, and I have two functions which almost does the same thing... but one return a function and the other one execute some code.</p> <p>I'm not really good for now with ES6 and arrow function. And I don't understand how to ...
0debug
Google Colab is very slow compared to my PC : <p>I've recently started to use Google Colab, and wanted to train my first Convolutional NN. I imported the images from my Google Drive thanks to the answer I got <a href="https://stackoverflow.com/questions/49351071/load-image-dataset-folder-or-zip-located-in-google-drive-...
0debug
static void gen_msgclr(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) GEN_PRIV; #else CHK_SV; gen_helper_msgclr(cpu_env, cpu_gpr[rB(ctx->opcode)]); #endif }
1threat
HTML color of navigation bar : <p>I am designing a web page and I want the top navigation bar of my website to have a color like the image below. This image is taken from the website of Virgin America airlines. See how the color changes from left to right. Any CSS/HTML tricks to accomplish this task.</p> <p><a href="h...
0debug
void visit_type_any(Visitor *v, const char *name, QObject **obj, Error **errp) { v->type_any(v, name, obj, errp); }
1threat
int page_check_range(target_ulong start, target_ulong len, int flags) { PageDesc *p; target_ulong end; target_ulong addr; #if TARGET_ABI_BITS > L1_MAP_ADDR_SPACE_BITS assert(start < ((abi_ulong)1 << L1_MAP_ADDR_SPACE_BITS)); #endif if (len == 0) { return 0; } ...
1threat
static inline void FUNC(idctRowCondDC)(DCTELEM *row) { int a0, a1, a2, a3, b0, b1, b2, b3; #if HAVE_FAST_64BIT #define ROW0_MASK (0xffffLL << 48 * HAVE_BIGENDIAN) if (((((uint64_t *)row)[0] & ~ROW0_MASK) | ((uint64_t *)row)[1]) == 0) { uint64_t temp = (row[0] << DC_SHIFT) & 0xffff; temp...
1threat
Check two elements are both int he same class : Im try to assert two elements are in the same class, image attached. So i want to assert the data-qa-card-id="id number" and data-qa-available-card are in the same class. But then i want to check that the data-qa-card-id="id number" and data-qa-active-card are now in the ...
0debug
node module version conflict when installing modules for electron : <p>I'm trying to make an Electron application (<a href="https://electron.atom.io/" rel="noreferrer">https://electron.atom.io/</a>) that reads data from my serial port. I'm new to web technologies in general, I know some javascript, but I'm a c++ guy. <...
0debug
PHP Parse error: syntax error, unexpected 'lik' (T_STRING), expecting ',' or ';' : <pre><code>echo '&lt;b&gt;&lt;h2&gt;Bu Fiyat İçin Oyun Sistemi Önermiyoruz. Bütçenize Yakın Bir Fiyatla 1800TL'lik Sistemimizi Tercih Ediniz.&lt;/h2&gt;&lt;/b&gt;&lt;br&gt;&lt;br&gt;&lt;a href="'. $sistem1800 .'" target="_blank"&gt;Tıkla...
0debug
void virtio_scsi_dataplane_start(VirtIOSCSI *s) { int i; int rc; BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(s))); VirtioBusClass *k = VIRTIO_BUS_GET_CLASS(qbus); VirtIOSCSICommon *vs = VIRTIO_SCSI_COMMON(s); if (s->dataplane_started || s->dataplane_starting || s->...
1threat
Can't Access Index of Associative Array php : <p>I'm sending my posted data to the server as a block of JSON data due to its size. Once it arrives, I decode it using <code>json_decode</code> and then go about my business. The problem I've run into is I can't access values at indexes. When I <code>print_r</code> the arr...
0debug
static void null_end_frame(AVFilterLink *inlink) { }
1threat
static int mov_read_close(AVFormatContext *s) { int i; MOVContext *mov = s->priv_data; for(i=0; i<mov->total_streams; i++) mov_free_stream_context(mov->streams[i]); for(i=0; i<s->nb_streams; i++) av_free(s->streams[i]); return 0; }
1threat
Is there a Pythonic way to delete common indexes in multiple lists? : <p>Say I want to delete index <code>i</code> from <code>alist</code> and <code>blist</code>. Is there a clean, Pythonic way to achieve this?</p>
0debug
How to subtract multiple string values from another string : <p>With:</p> <pre><code>abc = 'abc' xyz = 'xyz' word = 'begin abc- middle_xyz_ end' </code></pre> <p>I need to extract the values of <code>abc</code> and <code>xyz</code> from <code>word</code>. The result should be </p> <pre><code>result = 'begin - middl...
0debug
Difference between Springboot 1.X and Springboot 2.0 : <p>We have been using Springboot 1.X for our applications. Now were are getting ready to start on a few new applications and was wondering if we should go with SpringBoot2.0 or stick with SpringBoot 1.X?</p> <p>Any thoughts on one way or the other? Also, what are ...
0debug
sinon stub not replacing function. : <p>I tried a dummy module and to stub it, but does not work.</p> <p>the app.js</p> <pre><code>function foo() { return run_func() } function run_func() { return '1' } exports._test = {foo: foo, run_func: run_func} </code></pre> <p>the test.js</p> <pre><code>app = require(...
0debug
static int omap_dma_ch_reg_write(struct omap_dma_s *s, int ch, int reg, uint16_t value) { switch (reg) { case 0x00: s->ch[ch].burst[1] = (value & 0xc000) >> 14; s->ch[ch].pack[1] = (value & 0x2000) >> 13; s->ch[ch].port[1] = (enum omap_dma_port) ((value & 0x1e00) >...
1threat
static BlockDriverAIOCB *raw_aio_readv(BlockDriverState *bs, int64_t sector_num, QEMUIOVector *qiov, int nb_sectors, BlockDriverCompletionFunc *cb, void *opaque) { RawAIOCB *acb; acb = raw_aio_setup(bs, sector_num, qiov, nb_sectors, cb, opaque); if (!acb) return NULL; i...
1threat
print a string n times in c : Having a variable h = get_int() how do I print (using prinft) this variable e = " " h times? I know it may sound stupid, but I´m a rooky.
0debug
why my jquery toggle is not working : **Here why my toggle is not working** <script> $(document).ready(function () { $("#tab").hide() $("#btn1").click(function () { $("#tab").toggle(); }) }) </script> **Html Code** <div> ...
0debug
def is_abundant(n): fctrsum = sum([fctr for fctr in range(1, n) if n % fctr == 0]) return fctrsum > n
0debug
CSS hover/active touch feedback not working on mobile until react-select is shown : <p>I am struggling to debug the issue here. Until a react-select is shown on the UI the feedback on mobile touch elements do not provide feedback on touch.</p> <p>This can be seen here by completing the journey on mobile until step 4: ...
0debug
VS 2015 debugging: how do I know whether 2 object variables have the same object reference? : <p>how do I know during debugging whether <code>obj</code> and <code>obj2</code> reference the same object in the following code?</p> <pre><code>object obj = new object(); object obj2 = new object(); obj2 = obj; </code></pre>...
0debug
void ff_init_elbg(int *points, int dim, int numpoints, int *codebook, int numCB, int max_steps, int *closest_cb, AVLFG *rand_state) { int i, k; if (numpoints > 24*numCB) { int *temp_points = av_malloc(dim*(numpoints/8)*sizeof(int)); for (i...
1threat
void qmp_drive_mirror(const char *device, const char *target, bool has_format, const char *format, enum MirrorSyncMode sync, bool has_mode, enum NewImageMode mode, bool has_speed, int64_t speed, bool has_g...
1threat
static void openrisc_pic_cpu_handler(void *opaque, int irq, int level) { OpenRISCCPU *cpu = (OpenRISCCPU *)opaque; CPUState *cs = CPU(cpu); uint32_t irq_bit = 1 << irq; if (irq > 31 || irq < 0) { return; } if (level) { cpu->env.picsr |= irq_bit; } else { ...
1threat
Double Pointer being modified in an array mysteriously : <p>Hello I have a function which populates a 2D array, consisting of words. I want to simply return the value of the pointer I entered the function with, but for some reason the pointer is now pointing to something else, strangely. I want to know how to fix this....
0debug
static int alloc_tables(H264Context *h){ MpegEncContext * const s = &h->s; const int big_mb_num= s->mb_stride * (s->mb_height+1); int x,y; CHECKED_ALLOCZ(h->intra4x4_pred_mode, big_mb_num * 8 * sizeof(uint8_t)) CHECKED_ALLOCZ(h->non_zero_count , big_mb_num * 16 * sizeof(uint8_t)) C...
1threat
static int vhdx_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVVHDXState *s = bs->opaque; int ret = 0; uint32_t i; uint64_t signature; bool log_flushed = false; s->bat = NULL; s->first_visible_write = true; qemu_co_mutex_ini...
1threat
Lambda implementation of interface in kotlin : <p>What would be the equivalent of that code in kotlin, nothing seems to work of what I try:</p> <pre><code>public interface AnInterface { void doSmth(MyClass inst, int num); } </code></pre> <p>init:</p> <pre><code>AnInterface impl = (inst, num) -&gt; { //... } ...
0debug
Kotlin - how to get annotation attribute value : <p>say, i have one Kotlin class with annotations:</p> <pre><code>@Entity @Table(name="user") data class User (val id:Long, val name:String) </code></pre> <p>How can i get the value of name attribute from @Table annotation?</p> <pre><code>fun &lt;T&gt; tableName(c: KCl...
0debug
Array concatenation function is returning gibberish. : <p>This involves two functions, both of which are listed below: </p> <pre><code>char *catw(char *s1, char sep, char *s2) { char s[strlen(s1) + strlen(s2) + 1]; for(int i = 0; i &lt; strlen(s1); i++) { s[i] = s1[i]; } s[strlen(s1)] = sep; for(int j ...
0debug
Preprocessing function of inception v3 in Keras : <p>This is preprocessing function of inception v3 in Keras. It is totally different from other models preprocessing.</p> <pre><code>def preprocess_input(x): x /= 255. x -= 0.5 x *= 2. return x </code></pre> <p><strong>1. Why there is no mean subtractio...
0debug
Can I keep my Intents and entities on-premise? : For security reasons, I don't want to save the Intents and Entities in the dialogflow cloud, instead I want to keep those on-premise. Is it possible?
0debug
static void decode_blocks(SnowContext *s){ int x, y; int w= s->b_width; int h= s->b_height; for(y=0; y<h; y++){ for(x=0; x<w; x++){ decode_q_branch(s, 0, x, y); } } }
1threat
Parsing Vector<String> into a string. : I'm trying to tokenize a string. The strings I'm working on have the following format.... name,city,major,color,hobbies,age and I'm using the code below to do that. And temp is a string. { cin>>command; vector <string> tokens; string...
0debug
def zip_list(list1,list2): result = list(map(list.__add__, list1, list2)) return result
0debug
Bootstrap 4 Sticky Footer Not Sticking : <p>Not really sure why the sticky footer isn't working in Bootstrap 4. I have a TYPO3 website which I am a beginner at.</p> <p>The sticky footer is not sticking at the bottom of the page.</p> <p>Here is a copy of the page source as it has been rendered.</p> <p>I basically c...
0debug
int float64_le_quiet( float64 a, float64 b STATUS_PARAM ) { flag aSign, bSign; if ( ( ( extractFloat64Exp( a ) == 0x7FF ) && extractFloat64Frac( a ) ) || ( ( extractFloat64Exp( b ) == 0x7FF ) && extractFloat64Frac( b ) ) ) { if ( float64_is_signaling_nan( a ) || float64_is_sig...
1threat
How to make three div with 2nth div is Add and Remove button in CSS : <p>I want to make it like below image: <a href="https://i.stack.imgur.com/h90St.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h90St.png" alt="enter image description here"></a></p>
0debug
static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt) { RTPMuxContext *s = s1->priv_data; AVStream *st = s1->streams[0]; int rtcp_bytes; int size= pkt->size; av_dlog(s1, "%d: write len=%d\n", pkt->stream_index, size); rtcp_bytes = ((s->octet_count - s->last_octet_count) * RT...
1threat
static int decode_picture_header(AVCodecContext *avctx, const uint8_t *buf, const int buf_size) { ProresContext *ctx = avctx->priv_data; int i, hdr_size, slice_count; unsigned pic_data_size; int log2_slice_mb_width, log2_slice_mb_height; int slice_mb_count, mb_x, mb_y; const uint8_t *data...
1threat
Notification vibrates on each progress update : <p>When on Android 8.0 (Oreo), every time there is an update to the progress of the notification, it vibrates. So the phone vibrates 100 times in the process. This only happens on Android 8.0 So i can assume I am having some improper use of their API. I am asking for help...
0debug
Unable to override app name on mac os electron menu : <p>I'm banging my head against the wall on this one. I'm trying to override the name of a demo electron app to give it a custom name instead of just <code>Electron</code>. I created a module for doing this:</p> <pre><code>const {app, Menu} = require('electron') co...
0debug
Get the referer link using PHP or any other language : <p>I am presently working on a project that requires us been able to know the url which our visitors are redirected from.</p> <p>For Example, If we send out newsletters and a visitor clicks the link and get redirected to our website. We want to know what url he wa...
0debug
static int mtv_probe(AVProbeData *p) { if(p->buf_size < 3) return 0; if(*(p->buf) != 'A' || *(p->buf+1) != 'M' || *(p->buf+2) != 'V') return 0; return AVPROBE_SCORE_MAX; }
1threat
How do I surround my line of text with tags : I'm using Visual Studio 2017, trying to do a search and replace using regular expressions to do the following. I would like to surround each line in my text file with `<li>line</li>` For example: This is line 1 to be surrounded with list item tags This is lin...
0debug
Update flutter dependencies in /.pub-cache : <p>I erased in my folder <code>.pub-cache/hosted/pub.dartlang.org/this_plugin</code></p> <p><strong>What is the command to update the dependencies inside <code>pubsec.yaml</code>?</strong> I believe it is</p> <blockquote> <p>flutter packages get</p> </blockquote> <p>Th...
0debug
static void packet_id_queue_add(struct PacketIdQueue *q, uint64_t id) { USBRedirDevice *dev = q->dev; struct PacketIdQueueEntry *e; DPRINTF("adding packet id %"PRIu64" to %s queue\n", id, q->name); e = g_malloc0(sizeof(struct PacketIdQueueEntry)); e->id = id; QTAILQ_INSERT_TAIL(&q->he...
1threat
Jquery UI css doesnt work : I've just watched a youtube video about Jquery UI and here is the link: https://www.youtube.com/watch?v=WrHpzNMlhfo and so i saw that we can try it also with this link: http:// jsbin.com/chromebug/4 but the result turn me crazy, I really dont have any idea about it [enter image desc...
0debug
static int decode_gop_header(IVI45DecContext *ctx, AVCodecContext *avctx) { int result, i, p, tile_size, pic_size_indx, mb_size, blk_size, is_scalable; int quant_mat, blk_size_changed = 0; IVIBandDesc *band, *band1, *band2; IVIPicConfig pic_conf; ctx->gop_flags...
1threat
perl finda text in a file and then a new line addition : <p>Basically my requirement is a replace in a file using perl. The string that to be found is ' = '. The contents of the file should be modified in a way that end of the line where this string is found, it should add one more line as below. Please hep me here. I ...
0debug
static void gen_ldf_asi(DisasContext *dc, TCGv addr, int insn, int size, int rd) { TCGv_i32 r_asi, r_size, r_rd; r_asi = gen_get_asi(dc, insn); r_size = tcg_const_i32(size); r_rd = tcg_const_i32(rd); gen_helper_ldf_asi(cpu_env, addr, r_asi, r_size, r_rd); tcg_te...
1threat
static void *tcg_cpu_thread_fn(void *arg) { CPUState *env = arg; qemu_tcg_init_cpu_signals(); qemu_thread_self(env->thread); qemu_mutex_lock(&qemu_global_mutex); for (env = first_cpu; env != NULL; env = env->next_cpu) env->created = 1; qemu_cond_signal(&qemu_cpu_cond); ...
1threat
static ssize_t drop_sync(int fd, size_t size) { ssize_t ret, dropped = size; uint8_t *buffer = g_malloc(MIN(65536, size)); while (size > 0) { ret = read_sync(fd, buffer, MIN(65536, size)); if (ret < 0) { g_free(buffer); return ret; } asse...
1threat
static av_cold int vtenc_init(AVCodecContext *avctx) { CFMutableDictionaryRef enc_info; CFMutableDictionaryRef pixel_buffer_info; CMVideoCodecType codec_type; VTEncContext *vtctx = avctx->priv_data; CFStringRef profile_level; CFBooleanRef has_b_frames_...
1threat
How Can I pass a PHP array to a Javascript array : <p>I have an array which have some values stored in it but I want to transfer the elements of that array into javascript array for further processing. How can I do so?</p>
0debug
How to use one image as full page background : <p>Please check below web template image. URL - <a href="https://ibb.co/cD3iH8" rel="nofollow noreferrer">https://ibb.co/cD3iH8</a></p> <p>I am expecting to use this bg-image for a full page. how can I achieve this? Shall i cut this image in 7-8 part and then use a bg or ...
0debug
static ssize_t qio_channel_command_writev(QIOChannel *ioc, const struct iovec *iov, size_t niov, int *fds, size_t nfds, ...
1threat
What is the best way to add hover effect using html/js/css in any page builder editor without disturbing its view? : <p>I'm working in one page builder web application which is having page editor where application user can create their web page. In editor, all required components are available in form of widget which u...
0debug
static void dma_bdrv_cb(void *opaque, int ret) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; dma_addr_t cur_addr, cur_len; void *mem; trace_dma_bdrv_cb(dbs, ret); dbs->acb = NULL; dbs->sector_num += dbs->iov.size / 512; if (dbs->sg_cur_index == dbs->sg->nsg || ret < 0) { dma_c...
1threat