problem
stringlengths
26
131k
labels
class label
2 classes
static inline void RENAME(yuy2ToY)(uint8_t *dst, uint8_t *src, int width) { #ifdef HAVE_MMXFIXME #else int i; for(i=0; i<width; i++) dst[i]= src[2*i]; #endif }
1threat
Undefined member variable : <p>I've created following class:</p> <pre><code>class NotFoundException extends Exception {} class Foo{ private $path; private $array; public static function load($name) { try { return new Foo($name); } catch (NotFoundException $unfe) { r...
0debug
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
Is it possible to invert the order errors are displayed? : <p>When compiling a faulty program with GHC, errors are displayed in ascending line order. That causes the first errors to get pushed up the console, so you need to scroll up if you work by fixing the first errors first, which may be annoying. Is it possible to...
0debug
Efficient string matching in Apache Spark : <p>Using an OCR tool I extracted texts from screenshots (about 1-5 sentences each). However, when manually verifying the extracted text, I noticed several errors that occur from time to time.</p> <p>Given the text "Hello there 😊! I really like Spark ❤️!", I noticed that:</p...
0debug
Create own widget in C# and add to Table : <p>I learning to create android app in C# (VisualStudio) and I need create table with my own widget. I upload data for my server SQL. Any idea how can I do this?</p> <p><a href="https://i.stack.imgur.com/3290t.png" rel="nofollow noreferrer">Presentation</a></p>
0debug
MATLAB how to query a name in google : <p>In MATLAB, we have table of movie information as follows:</p> <pre><code> movieId title genres _______ __________________ ___________________________ 10 'GoldenEye (1995)' 'Action|Adventure|Thriller' </code></pre> <p...
0debug
how to auto create new app in Google Play by API : <p><strong>Hi</strong>,</p> <p>I have to build many app from one source frequently.</p> <p>So i want to create new app auto in Google Play by API for convenient, and after that i will use Supply mobile in <a href="https://fastlane.tools/" rel="nofollow">Fastlane</a> ...
0debug
Cannot invoke initializer for type 'Range<String.Index>' with an argument list of type '(Range<String.Index>)' : <p>After updating to Xcode 10 beta, which apparently comes with Swift 4.1.50, I'm seeing the following error which I'm not sure how to fix:</p> <blockquote> <p>Cannot invoke initializer for type 'Range&lt...
0debug
Html Website Going Crazy when Z00Med out : idk why but when I zoom out of my website, the code seems to fall apart and the whole thing just looks disgusting. I've checked out other answers to this question but NONE of the solutions really tailor towards MY code. Also im new to html so please understand :) AND NO ONE...
0debug
Google Play: Can't RELEASE TO PRODUCTION because "a draft release in production already", what to do? : <p>I am trying to release a new version of my app at Google Play Console.</p> <p>I have one version which I didn't release and then I uploaded a new one to Beta that I want to release.</p> <p>When I press on the "R...
0debug
Screen size in PHP resolution : <p>I want to retrieve the screen size of my screen in PHP . I want to say in my file php : </p> <pre><code>if(screenSize==1024x600){ ... } </code></pre> <p>I know how i can retrieve resolution in JS but how i can use it in PHP ?! </p> <p>Thanks for advance !</p>
0debug
static int nsv_parse_NSVf_header(AVFormatContext *s) { NSVContext *nsv = s->priv_data; AVIOContext *pb = s->pb; unsigned int av_unused file_size; unsigned int size; int64_t duration; int strings_size; int table_entries; int table_entries_used; av_dlog(s, "%s()\n", __FUNCT...
1threat
How to get Current Location using SwiftUI, without ViewControllers? : <p>I've prepared in my project the following class to retrieve the user current location:</p> <pre><code>LocationManager.swift import Foundation import CoreLocation class LocationManager: NSObject { // - Private private let locationManag...
0debug
static int tcp_chr_write(CharDriverState *chr, const uint8_t *buf, int len) { TCPCharDriver *s = chr->opaque; if (s->connected) { return send_all(s->fd, buf, len); } else { tcp_chr_connect(chr); return 0; } }
1threat
How to pass an array by reference to a function in C : I am a beginner coder in C. I have the following code: int main() { struct* Array[malloc(10*sizeOf(struct)]; /*I then fill the struct. (int num,float points)*/ /*I then want to pass this array that I've filled up to a sortList ...
0debug
static void rgba32_to_rgb24(AVPicture *dst, AVPicture *src, int width, int height) { const uint8_t *s; uint8_t *d; int src_wrap, dst_wrap, j, y; unsigned int v; s = src->data[0]; src_wrap = src->linesize[0] - width * 4; d = dst->data[0]; dst_wrap...
1threat
How to check whether any woocommerce order contains a product-ID? : I'm coding a plugin which should check whether an order contains an product-ID. How can I check all orders if any contains the product-ID and then mark this order as finished? I know how to check an order on thankyou-page, but the order-ID there is a...
0debug
static int vp8_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr) { VP8Context *s = avctx->priv_data; VP8ThreadData *td = &s->thread_data[jobnr]; VP8ThreadData *next_td = NULL, *prev_td = NULL; VP8Frame *curframe = s->curframe; ...
1threat
Convert PyTorch tensor to python list : <p>How do I convert a PyTorch <code>Tensor</code> into a python list?</p> <p>My current use case is to convert a tensor of size <code>[1, 2048, 1, 1]</code> into a list of 2048 elements.</p> <p>My tensor has floating point values. Is there a solution which also accounts for int...
0debug
Dynamically resolve property type based on another property value in TypeScript : <p>I have the following TypeScript interface:</p> <pre><code>interface SelectProps { options: Option[]; value: string[]; onChange: (value: string[]) =&gt; void; } </code></pre> <p>I want to add boolean called <code>isMultipl...
0debug
Angular2 get ActivatedRoute url : <p>I want to get the url which comes from this:</p> <p><code>this.router.navigate(./somepath, { relativeTo: this.route })</code></p> <p><code>this.route</code> is of the type <code>ActivatedRoute</code>.</p> <p>I tried <code>url: string = route.snapshot.url.join('');</code> but this...
0debug
static int do_compress_ram_page(CompressParam *param) { int bytes_sent, blen; uint8_t *p; RAMBlock *block = param->block; ram_addr_t offset = param->offset; p = block->host + (offset & TARGET_PAGE_MASK); bytes_sent = save_page_header(param->file, block, offset | ...
1threat
static void slirp_bootp_save(QEMUFile *f, Slirp *slirp) { int i; for (i = 0; i < NB_BOOTP_CLIENTS; i++) { qemu_put_be16(f, slirp->bootp_clients[i].allocated); qemu_put_buffer(f, slirp->bootp_clients[i].macaddr, 6); } }
1threat
using boolean to print invalid commands in java : I am trying to build my own command line interface. most confusing part is that to print out the invalid command base on user input. i tried using boolean function to each commands for its validity. I want my program to continue even if my command is invalid. ...
0debug
Cannot Acess internal directory created : When i try to create a directory in storage/emulator/0/ directory, it becomes invisible and inaccessible. I use `mkdir()` to create, and when i check its existence, `dir.exists()` return true, even though I can not access it. My device run in API 23, so i get the permissions...
0debug
Can somebody please explain this php code to me? : <pre><code>&lt;?php $registers = array( "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", "t8", "t9", "k0", "k1", "gp", "sp", "fp", "ra" ); $typeR = array( "add"...
0debug
cursor.execute('SELECT * FROM users WHERE username = ' + user_input)
1threat
Make an external function behave like a member function (C++) : Assuming I have a function like the following in C++: template<typename Container> void doNothing(Container * container) { for (auto element: container) { std::cout << element; } } Would it be possible to...
0debug
static void decode_postinit(H264Context *h, int setup_finished) { const SPS *sps = h->ps.sps; H264Picture *out = h->cur_pic_ptr; H264Picture *cur = h->cur_pic_ptr; int i, pics, out_of_order, out_idx; int invalid = 0, cnt = 0; h->cur_pic_ptr->f->pict_type = h->pict_type; if (h->ne...
1threat
static int hls_start(AVFormatContext *s, VariantStream *vs) { HLSContext *c = s->priv_data; AVFormatContext *oc = vs->avf; AVFormatContext *vtt_oc = vs->vtt_avf; AVDictionary *options = NULL; char *filename, iv_string[KEYSIZE*2 + 1]; int err = 0; if (c->flags & HLS_SINGLE_FILE) { ...
1threat
CakePHP how to create functions : How can I create functions that can be called in view(like in the index.ctp)? I just wrote a function in one of my controllers but I'm getting this error message: "Error: Call to undefined function getWins()". Basically I want this function to search my database table "Matches" a...
0debug
Java Gson Exclude fields during serialization : <p>I have a <code>ConfigInstance</code> class which contains a <code>password</code> and a <code>password_hash</code>. Now I want to serialize the object using gson but exclude the <code>password</code> field.</p> <pre><code>public class ConfigInstance { public Strin...
0debug
vpc_co_pwritev(BlockDriverState *bs, uint64_t offset, uint64_t bytes, QEMUIOVector *qiov, int flags) { BDRVVPCState *s = bs->opaque; int64_t image_offset; int64_t n_bytes; int64_t bytes_done = 0; int ret; VHDFooter *footer = (VHDFooter *) s->footer_buf; QEMUIOVector ...
1threat
AVResampleContext *swr_resample_init(AVResampleContext *c, int out_rate, int in_rate, int filter_size, int phase_shift, int linear, double cutoff){ double factor= FFMIN(out_rate * cutoff / in_rate, 1.0); int phase_count= 1<<phase_shift; if (!c || c->phase_shift != phase_shift || c->linear!=linear || c-...
1threat
I don't know where to change my Wordpress header! Please help me! It's for my father's business : Firstly, i'm not a native speaker so please forgive me if i made any grammar or spelling mistake! I'm just a wordpress user, actually i've never used wp before until my dad give me his company's website, and i have a hu...
0debug
How to make a document a HTML doctype : <p>I really do not know how to make a document HTML. It really confuses me. Does anyone know how to help me? I have already tried just saving it, but as I use atom it doesn't really work.</p>
0debug
static void test_qemu_strtosz_units(void) { const char *none = "1"; const char *b = "1B"; const char *k = "1K"; const char *m = "1M"; const char *g = "1G"; const char *t = "1T"; const char *p = "1P"; const char *e = "1E"; char *endptr = NULL; int64_t res; ...
1threat
static uint32_t omap_l4_io_readb(void *opaque, target_phys_addr_t addr) { unsigned int i = (addr - OMAP2_L4_BASE) >> TARGET_PAGE_BITS; return omap_l4_io_readb_fn[i](omap_l4_io_opaque[i], addr); }
1threat
Why is this producing a segmentation fault? : <p>I'm not sure why the following is producing a segmentation fault. I've defined a structure and I'm trying to store a value to it.</p> <pre><code>typedef struct { int sourceid; int destid; } TEST_STRUCT; void main( int argc, char *argv[] ) { TEST_STRUCT *t...
0debug
How to convert the OrderedDict to the normal dict but keey the order as the OrderedDict?? python : when i use the dict() the order is changed! how to get the dict follows the order of OrderedDict()?? >>> from collections import OrderedDict >>> OrderedDict([('method', 'constant'), ('data', '1.2...
0debug
static int ivshmem_setup_interrupts(IVShmemState *s) { s->msi_vectors = g_malloc0(s->vectors * sizeof(MSIVector)); if (ivshmem_has_feature(s, IVSHMEM_MSI)) { if (msix_init_exclusive_bar(PCI_DEVICE(s), s->vectors, 1)) { return -1; } IVSHMEM_DPRINTF("msix initi...
1threat
BdrvDirtyBitmap *bdrv_create_dirty_bitmap(BlockDriverState *bs, int granularity, Error **errp) { int64_t bitmap_size; BdrvDirtyBitmap *bitmap; assert((granularity & (granularity - 1)) == 0); granularity >>= BDRV_SECTOR_BITS; assert(granularity); ...
1threat
static int writer_open(WriterContext **wctx, const Writer *writer, const char *args, const struct section *sections, int nb_sections) { int i, ret = 0; if (!(*wctx = av_malloc(sizeof(WriterContext)))) { ret = AVERROR(ENOMEM); goto fail; } if (!((*wctx)-...
1threat
please correct this connection string i dont know whats wrong in this query : SqlConnection con = new SqlConnection("Server=ACER-PC/SQLEXPRESS;Database=coupon;Integrated Security=true");,whats wrong in this please help me,and thank you in advance
0debug
Get Last Month's Adsense Profits Via PHP : This question is asked in various forms (none to specific) on this site and I'd like to build a solution once and for all that attempts to conquer what are a LOT of confusing steps. Loudly stated: I NEED TO EXTRACT MY TOTAL ADSENSE EARNINGS FROM LAST MONTH for use with my w...
0debug
static uint32_t get_elf_hwcap(void) { CPUState *e = thread_env; uint32_t features = 0; #define GET_FEATURE(flag, feature) \ do {if (e->insns_flags & flag) features |= feature; } while(0) GET_FEATURE(PPC_64B, PPC_FEATURE_64); GET_FEATURE(PPC_FLOAT, PPC_FEATURE_HAS_FPU); ...
1threat
void OPPROTO op_divd (void) { if (unlikely(((int64_t)T0 == INT64_MIN && (int64_t)T1 == -1) || (int64_t)T1 == 0)) { T0 = (int64_t)((-1ULL) * ((uint64_t)T0 >> 63)); } else { T0 = (int64_t)T0 / (int64_t)T1; } RETURN(); }
1threat
Android MVP, where check internet connection : <p>I'm implementing MVP pattern on an Andorid App and I have a doubt about where is the <strong>best place</strong> for <strong>checking the internet connection.</strong> I usually check if there is internet connection before doing any network call. </p> <p>So, where shou...
0debug
how to append list which is inside a dict : new_dict = {'0/RP0': ['NCS1K4-CNTLR'], '0/PM1': ['NCS1K4-2KW-AC'], '0/PM0': ['NCS1K4-2KW-AC'], '0/FT2': ['NCS1K4-FAN'], '0/FT0': ['NCS1K4-FAN'], '0/FT1': ['NCS1K4-FAN']} list = ['OPERATIONAL', 'OPERATIONAL', 'OPERATIONAL', 'OPERATIONAL', 'FAILED', 'OPERATIONAL'] i want...
0debug
def set_middle_bits(n): n |= n >> 1; n |= n >> 2; n |= n >> 4; n |= n >> 8; n |= n >> 16; return (n >> 1) ^ 1 def toggle_middle_bits(n): if (n == 1): return 1 return n ^ set_middle_bits(n)
0debug
host 2 website in 1 IP : <p>i have one server with 1 ip without control panel </p> <p>i installed php/mysql/postfix...</p> <p>i followed this tutoriel to setup virtual host beause i have 2 domain </p> <p><a href="https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-6" rel="no...
0debug
How to delete duplicate records in SQL? : <p>This my original table:</p> <p><a href="https://i.stack.imgur.com/zpd4S.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zpd4S.png" alt="enter image description here"></a></p> <p>Intended table:</p> <p><a href="https://i.stack.imgur.com/0m2Lt.png" rel="n...
0debug
static void realview_init(ram_addr_t ram_size, const char *boot_device, const char *kernel_filename, const char *kernel_cmdline, const char *initrd_filename, const char *cpu_model, enum realview_board_type board_type) { CPUSta...
1threat
static void jpeg_init_destination(j_compress_ptr cinfo) { VncState *vs = cinfo->client_data; Buffer *buffer = &vs->tight_jpeg; cinfo->dest->next_output_byte = (JOCTET *)buffer->buffer + buffer->offset; cinfo->dest->free_in_buffer = (size_t)(buffer->capacity - buffer->offset); }
1threat
static int uhci_broadcast_packet(UHCIState *s, USBPacket *p) { int i, ret; DPRINTF("uhci: packet enter. pid %s addr 0x%02x ep %d len %d\n", pid2str(p->pid), p->devaddr, p->devep, p->len); if (p->pid == USB_TOKEN_OUT || p->pid == USB_TOKEN_SETUP) dump_data(p->data, p->len); ...
1threat
Label.text is not updating using ??? most solutions here did not work please heeelpppp? : Guys first of all I have been searching for a whole day trying to find a solution for this issue I found many people asking the same but non of the solutions worked for me ( NON ) .... I am not that expert in swift but I'm sure I ...
0debug
void pci_device_hot_add(Monitor *mon, const QDict *qdict) { PCIDevice *dev = NULL; const char *pci_addr = qdict_get_str(qdict, "pci_addr"); const char *type = qdict_get_str(qdict, "type"); const char *opts = qdict_get_try_str(qdict, "opts"); if (!strncmp(pci_addr, "pci_addr=", 9)) { ...
1threat
How to write websocket output to a text file? : I would like to write the output of a javascript websocket continously to a local textfile. How can I do this? Writing to files seem impossible for javascript (security reasons). That's why I am searching for another solution. This doesnt need to be a browser based sol...
0debug
Keep an integer within bounds? : <p>To keep an integer within certain bounds, currently I'm doing:</p> <pre><code>frame.X = frame.X &lt;= 0 ? 0 : frame.X; frame.X = frame.X + frame.Width &gt; Image.Width ? Image.Width - frame.Width : frame.X; frame.Y = frame.Y &lt;= 0 ? 0 : frame.Y; frame.Y = frame.Y + frame.Height &...
0debug
I just want continue a program when end user press y key with do while loop in this code plz help me .. While('o'!=='y') also tried this : public class clac{ do{ System.out.println("\nwant to try again\n press y/n"); String o; o=sc.next(); }while(!o.contentEquals("y")); }
0debug
Swift 3D Touch iOS 10 Home screen quick actions share Item missing : <p>In my apps that use 3D touch home screen quick actions I do not have the new iOS 10 default sharing option that all apps got for free. </p> <p>I have seen some apps, for example Amazon, that have their 4 custom shortcut items (quick actions) and t...
0debug
How to add delay in Reactjs : <p>I am new to Reactjs. I am not sure how to add <code>delay</code> to render in <code>Reactjs</code>.What is the best way to add delay.</p> <p>I am adding the following code in render but its not working.</p> <pre><code>setTimeout(function() { }, 1000); </code></pre>
0debug
int ff_h264_update_thread_context(AVCodecContext *dst, const AVCodecContext *src) { H264Context *h = dst->priv_data, *h1 = src->priv_data; int inited = h->context_initialized, err = 0; int need_reinit = 0; int i, ret; if (dst == src || !h1->context_initiali...
1threat
IOS Get content from Web page : I need help.I'm trying to get one value from my web page. When i execute first time returns value null but if I execute another time returns correct value... NSString *urlString = @"http://localhost/app/check.aspx"; NSURL *url = [NSURL URLWithString:urlString]; NSURLRe...
0debug
Avoiding "warning: There are too many unreachable loose objects" during git svn clone/fetch : <p>When running a <code>git svn clone</code> or <code>git svn fetch</code> against a large Subversion repository (100k+ commits), the fetch regularly stops with:</p> <pre><code>Auto packing the repository in background for op...
0debug
Sql Server Management Studio closes immediately after startup : <p>Sql Server Management Studio closes in about five seconds after startup. No messages are being displayed (even in a console) and no logs occur in a Windows Event Viewer. I have tried to install different SSMS versions , i.e. 16.X, 17.Y, but it have not ...
0debug
static int read_old_huffman_tables(HYuvContext *s) { GetBitContext gb; int i; init_get_bits(&gb, classic_shift_luma, classic_shift_luma_table_size * 8); if (read_len_table(s->len[0], &gb) < 0) return -1; init_get_bits(&gb, classic_shift_chroma, ...
1threat
def tetrahedral_number(n): return (n * (n + 1) * (n + 2)) / 6
0debug
React Native ios build failed on react-native run-ios : <p>getting this error</p> <blockquote> <p>** BUILD FAILED **</p> <p>The following build commands failed: CompileC /Users/karthikn/AwesomeProject/ios/build/Build/Intermediates/React.build/Debug-iphonesimulator/React.build/Objects-normal/x86_64/RCTTabBarIt...
0debug
what is the meaning of the following command and why its not given at help menu of nmap? : sample command:sudo nmap -sP -n 192.168.0.0-255 sample output: Starting Nmap 7.60 ( https://nmap.org ) at 2017-10-14 16:09 +06 Nmap scan report for 192.168.0.1 Host is up (0.0035s latency). MAC Address: 20:L6:A7:55:3D:44...
0debug
static void absolute_mouse_grab(void) { int mouse_x, mouse_y; if (SDL_GetAppState() & SDL_APPINPUTFOCUS) { SDL_GetMouseState(&mouse_x, &mouse_y); if (mouse_x > 0 && mouse_x < real_screen->w - 1 && mouse_y > 0 && mouse_y < real_screen->h - 1) { sdl_grab_start(); ...
1threat
Python's global variable reference issue of multiple modules : Example code: The result is : {} in b {} in b {} in b ... It is assumed to be: {time1: 1} {time2: 1} {time3: 1} ... Could you tell me why?
0debug
Internal storage hidden : <p>In my android phone, I have both internal storage and SD card. But the internal storage isn't shown in the default write disk. If I download any new app, the app will be stored in internal device as well. But if I take pictures then the picture won't be able to see the internal storage and ...
0debug
Randomize stylesheet.css per page visit : <p>I have a quick question what the best practice approach is with JS or Jquery concerning the randomization of stylesheets.</p> <p>I plan to 5 to 6 different stylesheet.css documents handling only color elements (background, href, color). What I try to achieve is to randomize...
0debug
static void net_socket_accept(void *opaque) { NetSocketListenState *s = opaque; NetSocketState *s1; struct sockaddr_in saddr; socklen_t len; int fd; for(;;) { len = sizeof(saddr); fd = qemu_accept(s->fd, (struct sockaddr *)&saddr, &len); if (fd < 0 && errno !=...
1threat
Unit Testing on a c code which writes on files in a particular directory : <p>I've written a C code which takes a path to a directory and a string s. After opening the directory, the code looks for files with a particular extension and write the string given as a second argument to the last line of these files and a \...
0debug
Windows UI Automation doesn't recognize button controls : <p>I'm having problems trying to identify via <em>Windows UI Automation</em> the button controls that are inside the <em>Notification Area</em> window (classname: <strong>ToolbarWindow32</strong>):</p> <p><a href="https://i.stack.imgur.com/lwe5c.png" rel="noref...
0debug
How can i access a char in string in at specific number? : <p>I tried this code but it is giving me errors. So how can i access a character in a string in kotlin. in java it can be done by charAt() method.</p> <pre><code>private fun abc(x: String) { var i: Int = 0 while (x[i].toString() != "+") { var y...
0debug
static void output_segment_list(OutputStream *os, AVIOContext *out, DASHContext *c) { int i, start_index = 0, start_number = 1; if (c->window_size) { start_index = FFMAX(os->nb_segments - c->window_size, 0); start_number = FFMAX(os->segment_index - c->window_size, 1); } if (c...
1threat
static inline void gen_op_sdivx(TCGv dst, TCGv src1, TCGv src2) { int l1, l2; l1 = gen_new_label(); l2 = gen_new_label(); tcg_gen_mov_tl(cpu_cc_src, src1); tcg_gen_mov_tl(cpu_cc_src2, src2); gen_trap_ifdivzero_tl(cpu_cc_src2); tcg_gen_brcondi_tl(TCG_COND_NE, cpu_cc_src, INT64_MIN, ...
1threat
How can I get the FULL list of slack emoji through API? : <p>I am using the slack API to get the full list of emoji, so that when I get a message, I will just replace <code>:squirrel:</code> with the icon.</p> <p>The method <code>https://slack.com/api/emoji.list</code> works like a charm, but returns 30 icons only. I ...
0debug
void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) { RTPDemuxContext *s = s1->priv_data; int len, h, max_packet_size; uint8_t *q; int begin_of_slice, end_of_slice, frame_type, temporal_reference; max_packet_size = s->max_payload_size; begin_of_slice = 1; ...
1threat
window.location.href = 'http://attack.com?user=' + user_input;
1threat
How to obscure a line behind a surface plot in matplotlib? : <p>I want to plot data using Matplotlib via a colormap on the surface of a sphere. Additionally, I would like to add a 3D line plot. The code I have so far is this:</p> <pre><code>import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d im...
0debug
Regex expressions : <p>What's the regex expression for:</p> <ul> <li>Begins with a certain String? such as: begins with "/retour,merci"</li> <li>Ends with a certain String? such as: ends with "/blog-accueils.html"</li> <li>And Contains String? such as: contains "data/"</li> </ul>
0debug
extract binary value of mantissa : <p>I have a bit problem. Given: some real number(for example -474.875) Task: extract BINARY value of mantissa For number -474.875 I need this value 1,<strong><em>11011010111</em></strong> * 2^8 I have a programm:</p> <pre><code>const float d = -474.875f; int exponent; const float ma...
0debug
sql server queries for cleansing string data : i have a table with name and address columns. i need to create two new columns that will hold modified values from these two columns, with special characters cleansed. please help with the queries
0debug
no match for 'operator=' (operand types are 'String' and 'void') : iv been stuck on this for two days... i am querying a webpage that returns a json string using a nodeMCU ESP8266 microcontroller. response from the webpage looks like this: `{"1":true,"2":false,"3":false,"4":true,"5":true,"6":false,"7":false,"8":fal...
0debug
Designing a responsive web application that supposrts ie6 : <p>I am building a responsive web application for one of my client. the requirement of the client is that he wants the app to be also supported by internet explorer 6 and successors along with all other latest browsers. how do I start and what should I use for...
0debug
Rearrange Data in Python : I received data in the following format: Date ,20100423 Open ,1028.75 High ,1029.5 Low ,1026 Close ,1026 S1 ,1030.62082869339 R1 ,1033.6233971724 S2 ,1026.87917130661 R2 ,1023.8766028276 Date ,20100426 Open ,1037.75 High ,1040.5 Low ,1037 Close ,1038.75 S1 ,1043.86350963032 ...
0debug
static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) { int y; int off_cur; int off_cur_end; for (y = 0; y < lines; y++) { off_cur = off_begin; off_cur_end = off_cur + bytesperline; off_cur &= TARGET_PAGE_MASK...
1threat
Upload from camera and gallery is not working properly in all the versions : <p>I am trying number of tutorials and sample codes for take an image from gallery or camera then crop the image and upload it to server. I was implemented the code for that in that code am facing few problems the are.</p> <ol> <li>In pre Lol...
0debug
How Can i found Nearst City by lat, lng using Google MAP API : I am trying to get City Name Using Google Map API but not getting. I have got Lat, Lng by using Google API now I want to get City Name in 10KM distance. I am using below URL to get Lat, Lng. https://maps.googleapis.com/maps/api/geocode/json?address=Cobur...
0debug
PHP insert ' into SQL : <pre><code>$type_of_poker = "hold'em no limit"; $sql = "INSERT INTO hands (type_of_poker) VALUES ('$type_of_poker')"; </code></pre> <p>Im trying to put <code>hold'em no limit</code> into a SQL database but it won't let me use <code>'</code> i cant upload <code>holdem no limit</code> for a long ...
0debug
Clone a variable in php : <p>I am trying to compute a streak of numbers, I have an array of containing 1 and 0 back to back, I am trying to find out the longest time one appeared consecutively, to calculate a winning streak I am trying this:</p> <pre class="lang- prettyprint-override"><code>$l = 56; $holder = 0; ...
0debug
static void ics_kvm_realize(DeviceState *dev, Error **errp) { ICSState *ics = ICS_SIMPLE(dev); if (!ics->nr_irqs) { error_setg(errp, "Number of interrupts needs to be greater 0"); return; } ics->irqs = g_malloc0(ics->nr_irqs * sizeof(ICSIRQState)); ics->qirqs = qemu_allocat...
1threat
xen_igd_passthrough_isa_bridge_create(XenPCIPassthroughState *s, XenHostPCIDevice *dev) { uint16_t gpu_dev_id; PCIDevice *d = &s->dev; gpu_dev_id = dev->device_id; igd_passthrough_isa_bridge_create(d->bus, gpu_dev_id); }
1threat
static void vtd_handle_gcmd_qie(IntelIOMMUState *s, bool en) { uint64_t iqa_val = vtd_get_quad_raw(s, DMAR_IQA_REG); trace_vtd_inv_qi_enable(en); if (en) { s->iq = iqa_val & VTD_IQA_IQA_MASK(VTD_HOST_ADDRESS_WIDTH); s->iq_size = 1UL << ((iqa_val & VTD_IQA_QS) + 8); ...
1threat
static void vmsvga_update_display(void *opaque) { struct vmsvga_state_s *s = opaque; DisplaySurface *surface; bool dirty = false; if (!s->enable) { s->vga.update(&s->vga); return; } vmsvga_check_size(s); surface = qemu_console_surface(s->vga.con); vmsvga_...
1threat