problem
stringlengths
26
131k
labels
class label
2 classes
Determine when DOM Loaded : <p>I am in need of some JS assistance.</p> <p>I need to run some code after the DOM was updated.</p> <p>For example: when I click a button, it fires a function. I need to run that function code and when the DOM is fully updated, run some more code. How could I go about doing this in a clea...
0debug
static MemTxResult gic_cpu_write(GICState *s, int cpu, int offset, uint32_t value, MemTxAttrs attrs) { switch (offset) { case 0x00: gic_set_cpu_control(s, cpu, value, attrs); break; case 0x04: s->priority_mask[cpu] = (value & 0xff); ...
1threat
Retrieve multiple data from firebase to my android applciation : I am building an application that needs to retrieve a multiple data from my firebase database and store the data in my application. > This is my Database Structure, and I want to retrieve all data from 1 upto the last number as well as retrieve the da...
0debug
NumPy: consequences of using 'np.save()' with 'allow_pickle=False' : <p>According to NumPy documentation <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.save.html">here</a>, by default, a matrix is saved with <code>allow_pickle=True</code>, and furthermore, they tell what could be problematic with t...
0debug
Why can’t name the variable const, but in objects can : <p>I wrote.</p> <pre><code>let const = 10; </code></pre> <p>and got error.and for objects everything works</p> <pre><code>let x = {const:10} </code></pre> <p>What is the difference.</p>
0debug
static int encrypt_sectors(BDRVQcowState *s, int64_t sector_num, uint8_t *buf, int nb_sectors, bool enc, Error **errp) { union { uint64_t ll[2]; uint8_t b[16]; } ivec; int i; int ret; for(i = 0; i < nb_sectors; i++) { ...
1threat
static void mem_add(MemoryListener *listener, MemoryRegionSection *section) { AddressSpaceDispatch *d = container_of(listener, AddressSpaceDispatch, listener); MemoryRegionSection now = limit(*section), remain = limit(*section); if ((now.offset_within_address_space & ~TARGET_PAGE_MASK) || (no...
1threat
The line number on the SQL Editor in DBeaver : <p>How to toggle the line number on the SQL Editor in <em>DBeaver</em>?</p> <p>I can't find this option in <em>Window / Preferences / General / Editors / SQL Editor</em>.</p> <p>Is it possible to do this?</p>
0debug
static int vnc_display_connect(VncDisplay *vd, SocketAddress **saddr, size_t nsaddr, SocketAddress **wsaddr, size_t nwsaddr, Error **errp) { QIOChan...
1threat
static int http_connect(URLContext *h, const char *path, const char *local_path, const char *hoststr, const char *auth, const char *proxyauth, int *new_location) { HTTPContext *s = h->priv_data; int post, err; char headers[1024] = ""; char *authstr ...
1threat
Download fb videos, I have attached two images, just need download after on click : I have attached two image: -------------------------- first is: my link where fb video link second is: after click video opening & play **Actually I want to download this video from the url when user click on the link then vid...
0debug
What does %d do in this line? : <p>What does %d do in this line of my code?</p> <pre><code>puppy+="and Puppy %d (User %d) "%((j+1),(i+1)) </code></pre> <p>Here's my code.</p> <pre><code>u=int(input("Number of users:")) puppy="" for i in range (0,u): upos=input("Position of User "+str(i+1)+":") upos_list=upos.sp...
0debug
UWP ObservableCollection sorting and grouping : <p>In UWP apps, how can you group and sort an ObservableCollection and keep all the live notification goodness? </p> <p>In most simple UWP examples I've seen, there is generally a ViewModel that exposes an ObservableCollection which is then bound to a ListView in the Vi...
0debug
Mystical anomaly with getch(); : Today i was testing how key pressing might work in C++ and made simple loop for it,and found that getch() duplicate itself for some reason or idk what is going on honestly,just look at that: #include <iostream> #include <windows.h> #include <conio.h> #defin...
0debug
How can I validate email in this PHP contact form? : <p>is there a way to validate an email in this form without rewriting it completely? It'd be great if I could just add something to this. I'm new to PHP and this form is taken from mmtuts video. If you know how to help, I'd be glad if you did.</p> <pre><code>&lt;?ph...
0debug
C++ Why make new int is error ?? : Why my code error ? int *x ; x = new int[5]; x[0] = 3; x[1] = 4; x[2] = 5; x[3] = 1; x[4] = 2; x[5] = 11; x[6] = 90; int *y ; y = new int[5]; cout << "if no error, then this command should be run" << endl; but the output...
0debug
startActivity cannot start another activty without any exception : <p>My application got crash when tried to call startActivity(intent) to start new activity. But there is no any exception in LogCat. Is there any best way to catch the root cause?</p>
0debug
int inet_connect(const char *str, bool block, Error **errp) { QemuOpts *opts; int sock = -1; opts = qemu_opts_create(&dummy_opts, NULL, 0); if (inet_parse(opts, str) == 0) { if (block) { qemu_opt_set(opts, "block", "on"); } sock = inet_connect_opts(opts, er...
1threat
Pet.Acropromazine(): Not all code paths return a value : <p>I am trying to make a class for a pet name, age, weight and if it is a dog or cat and the have to methods to calculate the dosage for Aceptomazine and Carprofen. I want to return a different value for both the Aceptomazine and Carprofen method for a cat and a ...
0debug
static void ehci_queues_rip_device(EHCIState *ehci, USBDevice *dev) { EHCIQueue *q, *tmp; QTAILQ_FOREACH_SAFE(q, &ehci->queues, next, tmp) { if (q->packet.owner == NULL || q->packet.owner->dev != dev) { continue; } ehci_free_queue(q); } }
1threat
static void qobject_input_start_struct(Visitor *v, const char *name, void **obj, size_t size, Error **errp) { QObjectInputVisitor *qiv = to_qiv(v); QObject *qobj = qobject_input_get_object(qiv, name, true, errp); if (obj) { *obj = NULL; } if (...
1threat
Prorgam not outputting variable : I am new to C++ and want to make a simple program to find common factors between 2 numbers. I am using MSYS2 to compile. My code compiles with no errors, however the program won't output anything after defining the lrg variable Here is the code: #include <iostream> #inclu...
0debug
static S390PCIBusDevice *s390_pci_find_dev_by_uid(uint16_t uid) { int i; S390PCIBusDevice *pbdev; S390pciState *s = s390_get_phb(); for (i = 0; i < PCI_SLOT_MAX; i++) { pbdev = s->pbdev[i]; if (!pbdev) { continue; } if (pbdev->uid == uid) { ...
1threat
Bash Regex: Remove charcters from filenames : <p>How we can bulk rename multiple files? What I seek is a regex approach to remove random characters from the beginning of the filenames?</p> <p>For example suppose I have the following files in a directory </p> <pre><code>_3cc10c0294ce15295e17e737a1d4dde1_C1W2L08.pptx _...
0debug
static int adpcm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ADPCMDecodeContext *c = avctx->priv_data; ADPCMChannelStatus *cs; int n, m, channel, i; shor...
1threat
Bundle Config in MVC 5 is not referring after hosting in IIS : We are developing an application in MVC5 and using Visual studio 2017. We have added all the common jquery and css files in bundle config but those are not rendering after the application is getting hosted in IIS. In the development phase, the application ...
0debug
(p ∧ q) ∧ (p ⇒ ¬q) prove contradiction? : <p>So I have reached dead end after this I tried doing de Morgan rule after this but and faced dead end after that. I have tried this</p> <pre><code>(p ∧ q) ∧ (¬p ∨ ¬q) (p ∧ q) ∧ ¬(p ∧ q) </code></pre>
0debug
void qmp_block_resize(bool has_device, const char *device, bool has_node_name, const char *node_name, int64_t size, Error **errp) { Error *local_err = NULL; BlockDriverState *bs; AioContext *aio_context; int ret; bs = bdrv_lookup_bs(has_device ? ...
1threat
static int aiff_read_packet(AVFormatContext *s, AVPacket *pkt) { AVStream *st = s->streams[0]; AIFFInputContext *aiff = s->priv_data; int64_t max_size; int res, size; max_size = aiff->data_end - avio_tell(s->pb); if (max_size <= 0) return AVER...
1threat
static void qnull_visit_test(void) { QObject *obj; QmpOutputVisitor *qov; Visitor *v; g_assert(qnull_.refcnt == 1); obj = qnull(); v = qmp_input_visitor_new(obj, true); qobject_decref(obj); visit_type_null(v, NULL, &error_abort); visit_free(v); qov ...
1threat
Preserve component state with vue-router? : <p>I have a listing/detail use case, where the user can double-click an item in a product list, go to the detail screen to edit and then go back to the listing screen when they're done. I've already done this using the dynamic components technique described here: <a href="htt...
0debug
React Native - TouchableOpacity not working inside an absolute positioned View : <p>I've got an absolute positioned View that holds 3 TouchableOpacity components and the 3 fail to respond they are just not working at all, what is going wrong here please help me :)</p> <p><strong>Code</strong></p> <pre><code>&lt;View ...
0debug
static int monitor_fprintf(FILE *stream, const char *fmt, ...) { va_list ap; va_start(ap, fmt); monitor_vprintf((Monitor *)stream, fmt, ap); va_end(ap); return 0; }
1threat
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
System.IdentityModel.Tokens.JwtSecurityToken custom properties : <p>My AuthServer is currently using the following code to generate a JwtSecurityToken:</p> <pre><code>var token = new JwtSecurityToken(_issuer, audienceId, data.Identity.Claims, issued.Value.UtcDateTime, expires.Value.UtcDateTime, signingKey); var handle...
0debug
Search for folder name in VS Code : <p>How can I search for a folder name and see it in Explorer?</p> <p>File search using <kbd>CMD</kbd> + <kbd>P</kbd> required me to know file name. Sometimes I know the folder which have desired file.</p>
0debug
Finding minimum String length of all lines in a CSV and printing them : <p>So let's say I have a CSV file of random alphabets in columns for example's sake:</p> <pre><code>a wrrq jt pkto b </code></pre> <p>They are in String format and I want to be able to find the minimum String length in this CSV list. In the ex...
0debug
How to detect if building with address sanitizer when building with gcc 4.8? : <p>I'm working on a program written in C that I occasionally build with address sanitizer, basically to catch bugs. The program prints a banner in the logs when it starts up with info such as: who built it, the branch it was built on, compil...
0debug
Xcode 8.2 cannot set entitlements membership : <p>I am trying to configure universal links on my App, but is not working. I read that a common cause of universal links are not working is that the entitlements file is not include in the build.</p> <p>But I am not able to set the target membership of my entitlements (sc...
0debug
When I Use Persian Calendar I Get Error: "Additional information: String was not recognized as a valid DateTime" : I use Persian Date (Iranian Date Format or Jalali Calendar) in my program. and when i use this: string A = "1396/2/30"; string Test = String.Format("{0:yyyy/MM/dd}", Convert.ToDateTime(A)); ...
0debug
static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child)(), int ctx_size, enum MXFMetadataSetType type) { ByteIOContext *pb = mxf->fc->pb; MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf; uint64_t klv_end = url_ftell(pb) + klv->length; if (!ctx) retur...
1threat
Selenium not working Mac : <p>I am just starting to learn web scraping with selenium. I am not sure why I am getting the following errors. I have shared the image below. The following code seems to not work.</p> <pre><code>chrome_path = r"\\Users\\prateek\\Desktop\\MSc\\MWA\\chromedriver.exe" browser = webdriver.Chro...
0debug
AWS Security Groups -- Name vs. Group Name : <p>In AWS Security Groups, what is the difference between "Name" and "Group Name"? It's confusing because when one creates a "Security Group", "Name" would seem to be interpreted as "name of the security group"...but then there is "Group Name". Seems redundant to the point...
0debug
static int64_t coroutine_fn iscsi_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int *pnum, BlockDriverState **file) { IscsiLun *i...
1threat
Extract n words from string : i have a text containing sentences in each line, and in front of each word its lemmetize form exemple: he "he" went "go" to "to" school "school" with "with" his "his" freinds "freind" i would like to extract for example three by three word in in each line. The result seems like this: ...
0debug
static void test_smbios_ep_table(test_data *data) { struct smbios_entry_point *ep_table = &data->smbios_ep_table; uint32_t addr = data->smbios_ep_addr; ACPI_READ_ARRAY(ep_table->anchor_string, addr); g_assert(!memcmp(ep_table->anchor_string, "_SM_", 4)); ACPI_READ_FIELD(ep_table->checksum, a...
1threat
UINavigationBar change colors on push : <p>I'm using 2 different bar tint colors at <code>UINavigationBar</code> in different views. I'n changing color with that method in both views:</p> <pre><code>override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) self.navigationController?.navigat...
0debug
static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int **recodes, int *last, int size) { int res; HuffContext huff; HuffContext tmp1, tmp2; VLC vlc[2]; int escapes[3]; DBCtx ctx; tmp1.length = 256; tmp1.maxlength = 0; tmp1.current = 0; tmp1.bits = av_mal...
1threat
void virt_acpi_build(VirtMachineState *vms, AcpiBuildTables *tables) { VirtMachineClass *vmc = VIRT_MACHINE_GET_CLASS(vms); GArray *table_offsets; unsigned dsdt, rsdt; GArray *tables_blob = tables->table_data; table_offsets = g_array_new(false, true , ...
1threat
Não consigo enviar meu campo de data para o backend, está vindo como nulo! Uso o date-fns : - Tenho o meu frontend em React - Tenho o meu backend em Java - SpringBoot - O formato que meu backend entende é: 2011-10-05T14:48:00.000Z - Para isso, tentei usar o date-fns para enviar correto do front para o back, mas ...
0debug
How can I change my Source code into a real application which can be install in windows or other OS systems using java programming language? : <p>I would like to know, if I have calculator source code in java and I want that source code to be changed into a real application which could be able to install in any OS(oper...
0debug
Azure Service Fabric activation error : <p>The deployment of one of my apps to a <code>Service Fabric Cluster</code> failed and triggered an Unhealthy Evaluation with an error event saying: <code>There was an error during CodePackage activation.The service host terminated with exit code:3762504530</code></p> <p>Howeve...
0debug
Retry connection to Cassandra node upon startup : <p>I want to use Docker to start my application and Cassandra database, and I would like to use Docker Compose for that. Unfortunately, Cassandra starts much slower than my application, and since my application eagerly initializes the <code>Cluster</code> object, I get ...
0debug
MemdevList *qmp_query_memdev(Error **errp) { Object *obj; MemdevList *list = NULL; obj = object_get_objects_root(); if (obj == NULL) { return NULL; } if (object_child_foreach(obj, query_memdev, &list) != 0) { goto error; } return list; error: qapi...
1threat
static uint64_t lan9118_readl(void *opaque, hwaddr offset, unsigned size) { lan9118_state *s = (lan9118_state *)opaque; if (offset < 0x20) { return rx_fifo_pop(s); } switch (offset) { case 0x40: return rx_status_fifo_pop(s); ...
1threat
embedded sql in c,how to check if records exist : <p>I have tried these:</p> <pre><code>1.if (EXEC SQL EXIST SELECT ...) 2.EXEC SQL IF EXIST SELECT ... </code></pre> <p>but none of these work,any help?</p>
0debug
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
AWS Batch executor with Airflow : <p>I'm currently using airflow on Amazon Web services using EC2 instances. The big issue is that the average usage of the instances are about 2%... </p> <p>I'd like to use a scalable architecture and creating instances only for the duration of the job and kill it. I saw on the roadmap...
0debug
void pc_basic_device_init(qemu_irq *isa_irq, FDCtrl **floppy_controller, ISADevice **rtc_state) { int i; DriveInfo *fd[MAX_FD]; PITState *pit; qemu_irq rtc_irq = NULL; qemu_irq *a20_line; ISADevice *i8042, *port92, *vmmouse; qemu_...
1threat
static int check_timecode(void *log_ctx, AVTimecode *tc) { if (tc->fps <= 0) { av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); return AVERROR(EINVAL); } if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) { av_log(log_ctx, ...
1threat
static void vhost_virtqueue_stop(struct vhost_dev *dev, struct VirtIODevice *vdev, struct vhost_virtqueue *vq, unsigned idx) { int vhost_vq_index = dev->vhost_ops->vhost_get_vq_index(dev, idx); stru...
1threat
How do I add a second die to this elm effects example? : <p>I am new to Elm and have been looking at the following example (note this is under the newer 0.17 architecture, where Action is now Command): <a href="http://elm-lang.org/examples/random" rel="noreferrer">http://elm-lang.org/examples/random</a></p> <p>There i...
0debug
How get Environment Variables from lambda (nodejs aws-sdk) : <p>We can set up Environment Variables in aws-lambda for example via AWS SAM:</p> <pre><code>Environment: Variables: TABLE_NAME: !Ref Table </code></pre> <p>How can I get this variables from current lambda via Node JS AWS-SDK?</p>
0debug
def count_charac(str1): total = 0 for i in str1: total = total + 1 return total
0debug
+= and -= expressions in Python (?) : <p>I am trying to follow the example in <a href="http://cs231n.github.io/neural-networks-case-study/#loss" rel="nofollow noreferrer">this post</a>, and it was going smoothly until I ran into the lines of code with <code>-=</code> and <code>+=</code> calls.</p> <p>I believe this mi...
0debug
Create View - Declare a variable : <p>I am creating a view that is using that <code>STUFF</code> function. I want to put the result of <code>STUFF</code> in a variable for my view. The problem I am having is declaring my variable. It gives me the message <em>"Incorrect Syntax near 'DECLARE'. Expecting '(' or SELECT."</...
0debug
static void generic_loader_realize(DeviceState *dev, Error **errp) { GenericLoaderState *s = GENERIC_LOADER(dev); hwaddr entry; int big_endian; int size = 0; s->set_pc = false; if (s->data || s->data_len || s->data_be) { if (s->file) { error_setg...
1threat
order by most frequent occurence sql : I have a table CARDUSR.SPPAYTB with transaction informations. The table contains ACAUREQ_AUREQ_ENV_M_CMONNM which is the Common Merchant Name. Now I want an output like this: orders ACAUREQ_AUREQ_ENV_M_CMONNM ---------+---------+---------------- ...
0debug
static int raw_open(BlockDriverState *bs, const char *filename, int flags) { BDRVRawState *s = bs->opaque; int access_flags, create_flags; DWORD overlapped; s->type = FTYPE_FILE; if ((flags & BDRV_O_ACCESS) == O_RDWR) { access_flags = GENERIC_READ | GENERIC_WRITE; } else { ...
1threat
Angular Dynamic Components - Add Class and other attributes : <p>I am using the following code for creating the dynamic components</p> <pre><code>import { Component, OnInit, ViewContainerRef, ViewChild, ViewChildren, ReflectiveInjector, ComponentFactoryResolver, ViewEncapsulation, QueryList, Input, AfterViewInit }...
0debug
Flutter image preload : <p>Is it possible to preload somehow the image on the app start? Like I have an background image in my drawer but for the first time when I open the drawer I can see the image blinks like it is fetched from assets and then displayed and it gives bad experience to me once I see it for the first t...
0debug
do_command(GIOChannel *source, GIOCondition condition, gpointer data) { char *string; VCardEmulError error; static unsigned int default_reader_id; unsigned int reader_id; VReader *reader = NULL; GError *err = NULL; g_assert(condition & G_IO_IN); reade...
1threat
SQL Server Management Studio Setting : <p>How to enable the more accurate help, please ?</p> <p>Because I have this :</p> <p><a href="https://i.stack.imgur.com/2DsgH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2DsgH.png" alt="enter image description here"></a></p>
0debug
static int open_f(BlockBackend *blk, int argc, char **argv) { int flags = BDRV_O_UNMAP; int readonly = 0; bool writethrough = true; int c; QemuOpts *qopts; QDict *opts; bool force_share = false; while ((c = getopt(argc, argv, "snro:kt:d:U")) != -1) { switch (c) { ...
1threat
What is the proper way to put divider lines between navigation links? : <p>I have a CSS/HTML homework assignment to make a page look like the page my instructor gave me. I need to add "pipes" in between the links. I added pipe characters to my HTML, but I don't feel like that is the proper way to do it. Thanks! Here is...
0debug
opts_next_list(Visitor *v, GenericList **list, size_t size) { OptsVisitor *ov = to_ov(v); GenericList **link; switch (ov->list_mode) { case LM_STARTED: ov->list_mode = LM_IN_PROGRESS; link = list; break; case LM_SIGNED_INTERVAL: case LM_UNSIGNED_INTERVAL: ...
1threat
static inline int dmg_read_chunk(BDRVDMGState *s,int sector_num) { if(!is_sector_in_chunk(s,s->current_chunk,sector_num)) { int ret; uint32_t chunk = search_chunk(s,sector_num); if(chunk>=s->n_chunks) return -1; s->current_chunk = s->n_chunks; switch(s->types[chunk]) { case 0x80000005: { ...
1threat
Split assets by ABI on Android : <p>I've seen <a href="https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split" rel="noreferrer">this guide</a> on how to build split APKs for each ABI.</p> <p>However my app embeds a bunch of native executables as assets. Is it possible to filter them based ...
0debug
com.google.android.gms.auth.GoogleAuthException: UNREGISTERED_ON_API_CONSOLE : <p>Im implementing an android app that enables users to stream to a youtube channel straight from the app. I have created an API key and a OAuth 2.0 client ID <a href="https://i.stack.imgur.com/3CVJ8.png" rel="noreferrer"><img src="https://i...
0debug
static int vnc_display_listen(VncDisplay *vd, SocketAddressLegacy **saddr, size_t nsaddr, SocketAddressLegacy **wsaddr, size_t nwsaddr, Error **errp) { size_t ...
1threat
How to setup a simple email server to send and receive email in localhost in Ubuntu? : <p>I am using Ubuntu 16.04 LTS. I would like to setup a simple email server in my box, to test email sending and receiving capabilities of my application. I am looking for a simple-to-setup solution, which enable this capability. My ...
0debug
Error on parsing json result? : Greeting! After I removed hardcoded json data and moved to request data from url. I am having exception error. The code is pretty much same as final official git but I am getting these errors. > Problem parsing the earthquake JSON results org.json.JSONException: > Index 10 out of ran...
0debug
static void spapr_dr_connector_class_init(ObjectClass *k, void *data) { DeviceClass *dk = DEVICE_CLASS(k); sPAPRDRConnectorClass *drck = SPAPR_DR_CONNECTOR_CLASS(k); dk->reset = reset; dk->realize = realize; dk->unrealize = unrealize; drck->set_isolation_state = set_isolation_state; ...
1threat
Find the mode in array : <p>This code can only get the mode when single mode exist. I want to know how to return -1 when 2 modes exist. For example : 1 1 1 2 2 2 3. And return -1 when no mode exist, 1 2 3 4 5 6.</p> <pre><code> public Long getMode() { long [] num = this.getElements(); long maxValue=0, m...
0debug
Find and replace text in a file between range of lines using sed : <p>I have a big text file (URL.txt) and I wish to perform the following using a single <em>sed</em> command:</p> <ol> <li><p>Find and replace text 'google' with 'facebook' between line numbers 19 and 33. </p></li> <li><p>Display the output on the termi...
0debug
Razor Generating Html : <p>my razor code</p> <pre><code>@Html.CheckBox("cbMSSProvider",true) </code></pre> <p>is generating HTML like</p> <pre><code> &lt;input checked="checked" id="cbHHAProvider" name="cbHHAProvider" type="checkbox" value="true"&gt; &lt;input name="cbHHAProvider" type="hidden" value="false"&...
0debug
I need the sequence in the list starting with 'b' and the next value is 'e' in sql server quering and eliminate all he other : [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/qwaTK.png Here is the image and i need the query which shows a value 'b' followed by 'e' and eliminate rest of...
0debug
When I submit my form, not all the information is being sent to my email : <p>I'm relatively new at coding and I've run into an issue. When I submit the filled out data in the form to my email, it won't submit the name or phone number so I essentially see it as a random, authorless message in my inbox. For obvious reas...
0debug
How do I get the size (width x height) of my pygame window : <p>I have created a window using</p> <pre><code>pygame.display.set_mode((width, height), pygame.OPENGL | pygame.DOUBLEBUF | pygame.RESIZABLE) </code></pre> <p>Later on in the app I want to be able to ask that window its width and he...
0debug
Get only numbers from strings that are in the list : <p>So I have list that looks like this</p> <pre><code>mylist = ['storeitem_1','storeitem_2','storeitem_3'] </code></pre> <p>How would I go about getting only numbers from those strings? I tried following but it came out totally wrong.</p> <pre><code>for items in m...
0debug
static void strongarm_ppc_handler_update(StrongARMPPCInfo *s) { uint32_t level, diff; int bit; level = s->olevel & s->dir; for (diff = s->prev_level ^ level; diff; diff ^= 1 << bit) { bit = ffs(diff) - 1; qemu_set_irq(s->handler[bit], (level >> bit) & 1); } s->prev...
1threat
how to Increase Form Size?? Thisn't working : private void button2_Click(object sender, EventArgs e) { int i; for (i = 243; i >= 850; i++) { this.Width = i; } }
0debug
What is the design pattern used to write this code ? : what is the design pattern for this code ? class Foo { private $_connection; private static $_instance; private $_host = "Host"; private $_username = "Name"; private $_password = "encrypted Word"; private $_database = "Name"; public static functio...
0debug
Deep Link with Push Notification - FCM - Android : <p><strong>What I want:</strong> I want to send push notification to users. When user tap on that notification, user should navigate to specific activity.</p> <p><strong>What I did:</strong> I created one deep link in Firebase console. I implemented <strong>FirebaseIn...
0debug
Translate my website content : <p>Guys I know that this question asked before but its not the same.</p> <p>I have a website that I want to translate its content.</p> <p><strong>What I came up with:</strong></p> <p>1-gettext //its not good for me</p> <p>2-google api //google translate is very bad and also google add...
0debug
Extracting variables from data printed to screen : <p>I am working on older code, oldCode.py Basically it prints to screen some data, like the sales of items 1,2 and 3.</p> <p>print '1 500' print '2 842' print '3 734'</p> <p>I want to extract this data for further processing. I know I can stop python from prin...
0debug
static uint16_t *phys_page_find_alloc(target_phys_addr_t index, int alloc) { PhysPageEntry *lp, *p; int i, j; lp = &phys_map; for (i = P_L2_LEVELS - 1; i >= 0; i--) { if (lp->u.node == NULL) { if (!alloc) { return NULL; } lp...
1threat
how to execute simultaneous builds in jenkins? : build 1 is started to execute, I want to execute build 2 even if the build 1 is not fully executed(during the execution of build 1 only).but build 1 should start first,because first build is server we need to start first,it wont stop during this execution only we need t...
0debug
how to print u32string and u16string to the console in c++ : <p>I recently bumped into string literals and found some new strings like u16string and u32string. I found that wstring can be printed to the console using std::wcout, but that doesn't work for u16string or u32string. How can i print these to the Console??</p...
0debug
static int nvdec_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) { NVDECContext *ctx = avctx->internal->hwaccel_priv_data; void *tmp; tmp = av_fast_realloc(ctx->slice_offsets, &ctx->slice_offsets_allocated, (ctx->nb_slices + 1) * sizeof(*ctx->sl...
1threat