problem
stringlengths
26
131k
labels
class label
2 classes
static void load_linux(void *fw_cfg, target_phys_addr_t option_rom, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, target_phys_addr_t max_ram_size) { uint16_t protocol; uint32_t gpr[8]; ...
1threat
angular 2 http withCredentials : <p>I'm am trying to use withCredentials to send a cookie along to my service but can't find out how to implement it. The docs say "If the server requires user credentials, we'll enable them in the request headers" With no examples. I have tried several different ways but it still will n...
0debug
void sample_dump(int fnum, INT32 *tab, int n) { static FILE *files[16], *f; char buf[512]; f = files[fnum]; if (!f) { sprintf(buf, "/tmp/out%d.pcm", fnum); f = fopen(buf, "w"); if (!f) return; files[fnum] = f; } if (fnum == 0) { ...
1threat
Update TimeStamp on Signle Column Update : I have one table called `number_list` which have column like `id, name, number, server, status, last_act, user_id, created_at, disable, notify and fcm`. I want update `last_act` when there any changes in `status` column only. Currently its updating `last_act` whenever any chan...
0debug
Spark train test split : <p>I am curious if there is something similar to sklearn's <a href="http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.StratifiedShuffleSplit.html" rel="noreferrer">http://scikit-learn.org/stable/modules/generated/sklearn.model_selection.StratifiedShuffleSplit.html</a> fo...
0debug
Can anyone suggest me how to write my own header-file of AT commands for BLE in Quectel MC60 module, just for a reference? : <p>I am new with Embedded firmware development and first time working with MC60. I have to write my own header files and libraries for all the features I'll be using in MC60, be it UART, BLE, GSM...
0debug
static target_ulong h_client_architecture_support(PowerPCCPU *cpu, sPAPRMachineState *spapr, target_ulong opcode, target_ulong *args) { target_ulong addr =...
1threat
Can you explain me the difference static and class in swift? : <p>Can you show me when and why I should use keyword static and when I should use keyword class? (This is Type Property Syntax in Swift)</p>
0debug
Download binary file with Axios : <p>For example, downloading of PDF file:</p> <pre><code>axios.get('/file.pdf', { responseType: 'arraybuffer', headers: { 'Accept': 'application/pdf' } }).then(response =&gt; { const blob = new Blob([response.data], { type: 'application/pdf', });...
0debug
static void bt_hci_done(struct HCIInfo *info) { struct bt_hci_s *hci = hci_from_info(info); int handle; bt_device_done(&hci->device); if (hci->device.lmp_name) g_free((void *) hci->device.lmp_name); if (hci->conn_req_host) { bt_hci_connection_reject(hci, ...
1threat
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
Call dotNET from Delphi and return a string : <p>How does a Delphi application call an exported function (non-COM) dotNET assembly and have the function return a string?</p> <p>COM is not a possible solution for my particular application. I have control over both ends of the call.</p> <h2>What I have tried so far - D...
0debug
int ff_h264_fill_default_ref_list(H264Context *h, H264SliceContext *sl) { int i, len; int j; if (sl->slice_type_nos == AV_PICTURE_TYPE_B) { H264Picture *sorted[32]; int cur_poc, list; int lens[2]; if (FIELD_PICTURE(h)) cur_poc = h->cur_pic_ptr->field_...
1threat
Convert a number to a specific format : Using PHP's `[number_format()][1]` function, returns a formatted number. I want to convert the number to that format, not replace it. So i am trying to use a void function but the number is not converted. The number `10500100` should be converted to : `10,500,100.00` ...
0debug
static inline void cvtyuvtoRGB (SwsContext *c, vector signed short Y, vector signed short U, vector signed short V, vector signed short *R, vector signed short *G, vector signed short *B) { vector signed short vx,ux,uvx; Y = vec_mradds (Y, c->CY, c->OY); U = vec_sub (U,(vector signed short...
1threat
Errors in my PL/SQL code for Cursor (Need HELP Please) : Declare vStudent_id grade.student_id%TYPE; vSection_id grade.section_id%TYPE; vNumeric_grade grade.numeric_grade%TYPE; CURSOR gradeCursor IS SELECT student_id,section_id,numeric_grade FROM ...
0debug
What this sentence means? : <p>i have read this sentence in the object oriented paradigm approach.</p> <blockquote> <p>A class can never have property values or state. Only objects can.</p> </blockquote> <p>Can anybody elaborate this ?</p>
0debug
static int flic_decode_frame_8BPP(AVCodecContext *avctx, void *data, int *got_frame, const uint8_t *buf, int buf_size) { FlicDecodeContext *s = avctx->priv_data; GetByteContext g2; int pixel_ptr; int palette_ptr; unsigned char palet...
1threat
static void tftp_handle_rrq(struct tftp_t *tp, int pktlen) { struct tftp_session *spt; int s, k, n; u_int8_t *src, *dst; s = tftp_session_allocate(tp); if (s < 0) { return; } spt = &tftp_sessions[s]; src = tp->x.tp_buf; dst = spt->filename; n = pktlen - ((uint8_t *)&tp->x.tp_...
1threat
static void sb16_realizefn (DeviceState *dev, Error **errp) { ISADevice *isadev = ISA_DEVICE (dev); SB16State *s = SB16 (dev); IsaDmaClass *k; isa_init_irq (isadev, &s->pic, s->irq); s->mixer_regs[0x80] = magic_of_irq (s->irq); s->mixer_regs[0x81] = (1 << s->dma) | (1 << s->hdma); ...
1threat
A function does not work : A document contains script $(document).ready(function() { $(function reset(){ $("#select-result").empty().html("&nbsp;"); userInputSumm = 0; userInput = []; console.log('reser was executed!'); }); $("#reset").click(f...
0debug
How to add a dynamic class to body tag in Gatsby.js? : <p>Obviously, that's not an easy task, as the only thing that changes in the <code>html.js</code> template file by default are the head meta tags and the content.</p> <p>The meta tags are handled by the Helmet component (<code>{head.title.toComponent()}</code> and...
0debug
Python: Too long raw string, multiple lines : <p>I am using python on windows and the path of my project folder is way too long. For example:</p> <pre><code>pathProject = r'C:\Users\Account\OneDrive\Documents\Projects\2016\Shared\Project-1\Administrative\Phase-1\Final' os.chdir(pathProject) </code></pre> <p>How can ...
0debug
Is there any reason why declaring a variable default outside of a method would be better or worse than defining a default in a no-arg constructor : <p>Is there any reason to one way over the other?</p> <pre><code>public ExampleClass{ private exampleVariable = 1; public ExampleClass(){ } } </code></pre> <...
0debug
Updating a collection name in Cloud Firestore : <p>Can we change the name of a collection in Cloud Firestore? I have created a collection with 200 documents. Now I want to change the name of the collection. In the Firebase console, I could not find a way to do this.</p> <p>Is it possible to change a collection's name ...
0debug
static void scsi_cd_class_initfn(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SCSIDeviceClass *sc = SCSI_DEVICE_CLASS(klass); sc->init = scsi_cd_initfn; sc->destroy = scsi_destroy; sc->alloc_req = scsi_new_request; sc->unit_attention_reported ...
1threat
static void vnc_convert_pixel(VncState *vs, uint8_t *buf, uint32_t v) { uint8_t r, g, b; r = ((v >> vs->server_red_shift) & vs->server_red_max) * (vs->client_red_max + 1) / (vs->server_red_max + 1); g = ((v >> vs->server_green_shift) & vs->server_green_max) * (vs->client_green_max + 1) / ...
1threat
Java 2D Array return not correct, why? : <p>Why I get <code>-1</code> returned? For sure the name is in <code>stadiumSeats[i][j]</code>.</p> <pre><code>`public int searchForGuest(final String name){ for(int i=0; i&lt;stadiumSeats.length; i++){ for(int j=0; j&lt;stadiumSeats.length; j++){ ...
0debug
Connect smartphone to website : <p>I've come across this link a while ago: <a href="https://lightsaber.withgoogle.com" rel="nofollow">https://lightsaber.withgoogle.com</a></p> <p>I thought it was really cool, the ability to connect your phone to a website and let it control certain things. And just now I found this li...
0debug
static int update_rom_mapping(VAPICROMState *s, CPUX86State *env, target_ulong ip) { target_phys_addr_t paddr; uint32_t rom_state_vaddr; uint32_t pos, patch, offset; if (s->state == VAPIC_ACTIVE) { return 0; } if (s->state == VAPIC_INACTIVE) { return -1; ...
1threat
Pandas convert string to int : <p>I have a large dataframe with ID numbers:</p> <pre><code>ID.head() Out[64]: 0 4806105017087 1 4806105017087 2 4806105017087 3 4901295030089 4 4901295030089 </code></pre> <p>These are all strings at the moment.</p> <p>I want to convert to <code>int</code> without usin...
0debug
Console.ReadLine().Split (',') does not work : <p>I have the simple snippet of my C# project below.</p> <pre><code>char[] Delimiters = new char[] { ',' }; string[] Input = Console.ReadLine ().Split (Delimiters); Console.WriteLine (Input[0], Input[1]); </code></pre> <p>I only seem to be getting Input[0]. I've checked ...
0debug
Microsoft.ServiceBus.Messaging vs Microsoft.Azure.ServiceBus : <p>MS has recently introduced the <strong>Microsoft.Azure.ServiceBus</strong> namespace.<br> <a href="https://github.com/Azure/azure-service-bus/blob/master/samples/readme.md" rel="noreferrer">https://github.com/Azure/azure-service-bus/blob/master/samples/r...
0debug
How to get text from a number in a select query : <p>there I have MYSQL DB, and it has an ID INT, however this identifier has a meaning in the system, I would like to get the meaning instead of the number for example something like this.</p> <pre><code>select ID from payments; if(ID==0) returns "No payment made" else ...
0debug
sql connections : ** > Query 1: Results in 87 rows: ** SELECT MIN(LEFT(Date_Last_Updated, 4)) AS Year_of_Transfer, MIN(RIGHT(LEFT(Date_Last_Updated, 6), 2)) AS Month_of_Transfer, MIN(RIGHT(LEFT(Date_Last_Updated, 8), 2)) AS Day_of_Transfer, CRS, Loan_Code...
0debug
Automatic Summarization : Extraction Based : <p>What is the algorithm of extraction based automatic summarization ? googled alot, couldnt find anything related to it . I want to implement the algo on python</p>
0debug
count equal strings in a list of string and make them unique : I have a list of words which are bi-gram as an example: welcome guys guys and and ladies ladies repeat repeat welcome welcome guys now i want to count the equal strings and return get this output: welcome guys, 2 ...
0debug
SQL - Schemas - MS SQL Server : <p>I'm in a new job using Microsoft SQL Server. Is there a way to show how all of these tables link together?</p>
0debug
Exclude div on single page : <p>On a Wordpress site my page.php contains a div that I want to exclude from a single article. I've messed around with the is_single function but I can't get it working.</p> <p>Any good ideas on how I solve this?</p>
0debug
Argument 1 passed to App\Http\Controllers\Auth\RegisterController::validator() must be an instance of Illuminate\Http\Request : Can anyone help me with this error? I am making an application, I am using the Laravel Framework version 5.8.35. ERROR : Argument 1 passed to App\Http\Controllers\Auth\RegisterContro...
0debug
Read the vaue from array in perl : I have array defined as below I am able to fetch the value for email and uid as mentioned below , how do I get the user display name 'userdn' . Sorry I am new to perl. my ($mesg) = $ldap->search( scope => 'one', base => $userdn, filter => $filte...
0debug
void block_job_enter(BlockJob *job) { if (!block_job_started(job)) { return; } if (job->deferred_to_main_loop) { return; } if (!job->busy) { bdrv_coroutine_enter(blk_bs(job->blk), job->co); } }
1threat
Pandas html: Don't truncate long values : <p>I understand that pandas does cut-off long elements. However, why does it do that in the html output?</p> <pre><code>import pandas as pd df = pd.DataFrame(columns=['url'], index=[0]) df['url'] = 'd12dn1928d1n298dn18d9n219d8n18n118219d8n21e12903e21kj9012j9301j2391023j209d12d...
0debug
Why does ScanF take two inputs from string : <p>The first ScanF takes both inputs when I type a character and an integer is expected.</p> <p>see image below:<a href="https://i.stack.imgur.com/DgvyH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DgvyH.png" alt="enter image description here"></a></p>...
0debug
I have three Arraylist of different types how can add these list in a single list : <p>firstlist secondlist thirdlist newlist.add(firstlist) newlist.add(secondlist) newlist.add(thirdlist)<code>enter code here</code> how can i add these aray list into single arralist and these list are different types</p>
0debug
How to expose my angular 4 to internet using ngrok? : <p>i have an angular app running on localhost with port 80, when i use <strong>ngrok http 80</strong> command it shows invalid host header. how to use ngrok to work with my angular 4?</p>
0debug
Need Help in understanding the scala function : i am completely new to scala programming and trying to understand a function written (functional programming )by our architect. can someone please help me in understanding this logic. def checkS3BValidity(rows: Vector[Map[String, Object]]): Vector[Map[String, Objec...
0debug
Angular2: @HostBinding or host: {}? : <p>I was wondering if there was a drastic difference (and if there is, what is it?) between using <code>@HostBinding</code> and the <code>host</code> attribute of the component ?</p> <p>I have been asking myself that question while I was using animations because I was in these cas...
0debug
Choose if array element repeats itself twice -- Javascript : <p>There is a javascript array</p> <pre><code>var arr = [0, 1, 2, 2, 3, 3, 5]; </code></pre> <p>I want to choose elements that repeats twice. In this case its <code>2</code> and <code>3</code>. and i want attach them into a variable.</p> <pre><code>var a ...
0debug
static int qemu_chr_open_win_stdio(QemuOpts *opts, CharDriverState **_chr) { CharDriverState *chr; WinStdioCharState *stdio; DWORD dwMode; int is_console = 0; if (stdio_nb_clients >= STDIO_MAX_CLIENTS || ((display_type != DT_NOGRAPHIC) && (stdio_nb_clie...
1threat
How to multiply two float variables in masm, assembly user enters an input as 3.02 and multiply it with 0.008 and then print it : .data fin dd 5.0 .code main proc fld fin fmul fin ;to multiply fin with fin fstp dword [eax] ;cannot mov result in eax call writefloat exit main EndP end main
0debug
static int virtio_scsi_parse_req(VirtIOSCSIReq *req, unsigned req_size, unsigned resp_size) { VirtIODevice *vdev = (VirtIODevice *) req->dev; size_t in_size, out_size; if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0, &req->req, req_size) < re...
1threat
How to auto press enter when input leng 6 char : input is "captcha_code" https://faucet.raiblockscommunity.net/form.php How to auto press enter
0debug
import re def split_upperstring(text): return (re.findall('[A-Z][^A-Z]*', text))
0debug
Spring Boot test - overriding bootstrap.properties : <p>We are using bootstrap.properties in a Spring Boot app to configure Spring Cloud Config related properties. </p> <p>We want to ignore these properties during the testing as we don't want to connect to config server for unit testing. So we are looking for a way to...
0debug
uint64_t cpu_get_apic_base(DeviceState *d) { if (d) { APICCommonState *s = APIC_COMMON(d); trace_cpu_get_apic_base((uint64_t)s->apicbase); return s->apicbase; } else { trace_cpu_get_apic_base(0); return 0; } }
1threat
how to get 0 or 1 in mysql according to my input in jsp form? : i've converted String into Boolean in servlet and want to use this status for inserting 0 or 1 status in Mysql database, getting always true [1 in database] and my set and get method is in bean class with boolean as data type. Can anyone tell me how to g...
0debug
Android: How to disable specific dates in calendar : not previous or future dates. the specified dates should be disabled like holidays. please help me. Thanx in advance.
0debug
static void sunmouse_event(void *opaque, int dx, int dy, int dz, int buttons_state) { ChannelState *s = opaque; int ch; MS_DPRINTF("dx=%d dy=%d buttons=%01x\n", dx, dy, buttons_state); ch = 0x80 | 0x7; if (buttons_state & MOUSE_EVENT_LBUTTON) ch ...
1threat
static int mov_write_trak_tag(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track, AVStream *st) { int64_t pos = avio_tell(pb); avio_wb32(pb, 0); ffio_wfourcc(pb, "trak"); mov_write_tkhd_tag(pb, track, st); if (supports_edts(mov)) mov_write_edts_tag(pb...
1threat
document.location = 'http://evil.com?username=' + user_input;
1threat
Add a new entrypoint to a docker image : <p>Recently, we decided to move one of our services to docker container. The service is product of another company and they have provided us the docker image. However, we need to do some extra configuration steps in the container entrypoint. </p> <p>The first thing I tried, was...
0debug
a "link" that works on unwanted other lines of code : i have just started learning HTML and CSS code and have the following problem. I have a link to a site using an image. The link works fine, but it also works on other code on the next lines. (a heading and a paragraph) How can I prevent this. Terrys
0debug
How to unzip abc.txt.gz file in react js? : - hi i am having problem to read a .gz file compressed by *php code:* - i am using $compressed = gzcompress('Compress me', 9); in php for compressing in .gz - In php i am able to uncompress, but *i dont know if there is any way to read .gz file in react js*....
0debug
Why is When I changed my windows display size from 125% to 150% , My program's forms which i made it with Visual C# will be so big and nasty : If there is a way to make these forms and its' controls stay of its' sizes without any changing whether i changed windows display size or not, and please don't tell me to use ta...
0debug
static int av_encode(AVFormatContext **output_files, int nb_output_files, AVFormatContext **input_files, int nb_input_files, AVStreamMap *stream_maps, int nb_stream_maps) { int ret, i, j, k, n, nb_istreams = 0, nb_ostreams = 0, pts_...
1threat
def inversion_elements(test_tup): res = tuple(list(map(lambda x: ~x, list(test_tup)))) return (res)
0debug
Kubernetes Secrets Volumes vs Environment Variables : <p>Is there a recommended way to use <a href="https://kubernetes.io/docs/concepts/configuration/secret/" rel="noreferrer">Kubernetes Secrets</a>? They can be exposed as environment variables or using a volume mount. Is one more secure than the other?</p>
0debug
static unsigned tget_short(const uint8_t **p, int le) { unsigned v = le ? AV_RL16(*p) : AV_RB16(*p); *p += 2; return v; }
1threat
Excel - VBA - SQL Server - ADO - XML Parsing (Performance Problems) : Before anything, let me state that I'm stuck with the current stack that I'm using and I'm currently not able to transition to something else. Rather than letting me know that I should be using other stuff, I can't... so let's skip that. **My user...
0debug
void av_thread_message_queue_set_err_send(AVThreadMessageQueue *mq, int err) { #if HAVE_THREADS pthread_mutex_lock(&mq->lock); mq->err_send = err; pthread_cond_broadcast(&mq->cond); pthread_mutex_unlock(&mq->lock); #endif }
1threat
TypeError: Cannot read property '$valid' of undefined in Angularjs : Hi I am developing web application in Angularjs. I have below form. <form name="form2" novalidate><multiselect class="input-xlarge" multiple="true" ng-model="selectedCar" options="c.name for c in cars" change="selected()"></multiselect> ...
0debug
What is the PowerShell "Search" verb for? : <p>The MSDN page "<a href="https://msdn.microsoft.com/en-us/library/ms714428(v=vs.85).aspx">Approved Verbs for Windows PowerShell Commands</a>" says:</p> <blockquote> <p>The <strong>Find</strong> verb is used to look for an object. The <strong>Search</strong> verb is used ...
0debug
HTML5 Shiv Google CDN Link Not Working : <p>This Shiv Google CDN Link Not Working. What Should I Do?</p> <pre><code>&lt;!--[if lt IE 9]&gt; &lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"&gt;&lt;/script&gt; &lt;![endif]--&gt; </code></pre>
0debug
ESLint with React gives `no-unused-vars` errors : <p>I've setup <code>eslint</code> &amp; <code>eslint-plugin-react</code>. </p> <p>When I run ESLint, the linter returns <code>no-unused-vars</code> errors for each React component.</p> <p>I'm assuming it's not recognizing that I'm using JSX or React syntax. Any ideas?...
0debug
How can i update status field as approved ; when i click on a button using php? : <script src="jquery.js"> function UpdateRecord(id) { jQuery.ajax({ type: "POST", url: "update.php", data: 'id='+id, cache: false, success: function(response) { al...
0debug
How to store an array in session in Perl : <p>I am using Mojolicious Perl framework in my application. I want to store an array in session, but is not successful.</p> <pre><code>my @returnResult; $returnResult['fn'] = $decoded-&gt;{'fn'}; $returnResult['ln'] = $decoded-&gt;{'ln'}; $self-&gt;session(returnResult =&gt; ...
0debug
Conflict: Multiple assets emit to the same filename : <p>I'm a webpack rookie who wants to learn all about it. I came across a conflict when running my webpack telling me: </p> <p><code>ERROR in chunk html [entry] app.js Conflict: Multiple assets emit to the same filename app.js</code></p> <p>What should I do to av...
0debug
Dot notation in C? : <p>Is it possible to implement dot notation in C (OOP) a la Python? </p> <p>Something like:</p> <pre><code>struct myClass { ... ... } </code></pre> <p>And then have a method on that struct like:</p> <pre><code>myClass.someMethod(); </code></pre>
0debug
static inline void gen_op_fcmpq(int fccno) { switch (fccno) { case 0: gen_helper_fcmpq(cpu_env); break; case 1: gen_helper_fcmpq_fcc1(cpu_env); break; case 2: gen_helper_fcmpq_fcc2(cpu_env); break; case 3: gen_helper_fcmpq_fcc3(cpu...
1threat
Subqueries are not allowed in this context. Only scalar expressions are allowed. : create table employee( Employee_ID int primary key, Name nvarchar(20), Gender nvarchar(2), DOJ datetime, Manager nvarchar(20), Department nvarchar(20), Tenure as (SELECT DATEDIFF(year, GETDATE(),DOJ ) ) )
0debug
static int mjpegb_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { MJpegDecodeContext *s = avctx->priv_data; uint8_t *buf_end, *buf_ptr; AVFrame *picture = data; GetBitContext hgb; uint...
1threat
static int drive_init_func(QemuOpts *opts, void *opaque) { int *use_scsi = opaque; return drive_init(opts, *use_scsi) == NULL; }
1threat
void ff_insert_pad(unsigned idx, unsigned *count, size_t padidx_off, AVFilterPad **pads, AVFilterLink ***links, AVFilterPad *newpad) { unsigned i; idx = FFMIN(idx, *count); *pads = av_realloc(*pads, sizeof(AVFilterPad) * (*count + 1)); *links = av_rea...
1threat
Deleting element from List of object pointers with iterator pointer (C++) : <p>I have a List of object pointers, and I'm trying to delete an element with an iterator pointer and I keep getting build errors as I'm not sure what the proper way to go about this is. Here is some of the code in question. Also, here is my er...
0debug
static int a52_decode_frame(AVCodecContext *avctx, void *data, int *data_size, uint8_t *buf, int buf_size) { AC3DecodeState *s = avctx->priv_data; uint8_t *buf_ptr; int flags, i, len; int sample_rate, bit_rate; short *out_samples = data...
1threat
APFS Container Resize error code is 49153 : <p>I'm trying to resize my Mac Partition, however I always get this error:</p> <blockquote> <p>APFS Container Resize error code is 49153 Error: -69606: A problem occurred while resizing APFS Container structures</p> </blockquote> <p>using the Disk Utility app or termina...
0debug
Python 3.5.2 print function not working : <p>I am using python version 3.5.2 and the print function isn't working for me. THis is the code. I recieve an error saying: "missing preantheses in calling to print"</p> <pre><code>print 'Output After Training:' </code></pre> <p>thanks</p>
0debug
hwaddr sparc_cpu_get_phys_page_debug(CPUState *cs, vaddr addr) { SPARCCPU *cpu = SPARC_CPU(cs); CPUSPARCState *env = &cpu->env; hwaddr phys_addr; int mmu_idx = cpu_mmu_index(env, false); MemoryRegionSection section; if (cpu_sparc_get_phys_page(env, &phys_addr, addr, 2, mmu_idx) != 0) { ...
1threat
Trying to build a web page that can generate an image : <p>I've been having trouble getting started with this project because I'm not sure what I should be searching for. Any help on where/how to start would be greatly appreciated.</p> <p>The idea is, I have an image of a postcard that I want users to be able to uploa...
0debug
search within list to group elements by shared content : <p>if I have list with this content</p> <pre><code>[MNA1 MNA3 MNA3_1 MNA3_2 MNA2 MPA3_3 MPA3_2 MPA3_1 MPA3 MPB] </code></pre> <p>how can I take all values that have the same first four chars in one group example </p> <pre><code>MPA3_3 MPA3_2 MPA3_1 MPA3 </code...
0debug
Overriding non-@objc declarations from extensions is not supported : <p>Seemingly out of nowhere I started getting hundreds of errors associated with two extension functions that I use frequently.</p> <p>I tried commenting out all the new code that preceding this error showing up. I also tried cleaning my build folder...
0debug
Java if statement. user input : i am using scanner to take user input. Scanner scanner = new Scanner(System.in); Int choice = scanner.nextInt(); if(choice==1) { System.out.println(" you chosed number 1!") } if(choice==2) { System.out.println(" you c...
0debug
power shell script to get drive space ( percentage used and free ) : <p>I am trying to get DISK SPACE (Windows) in Percentage used and free.</p> <p>Script from which I get the space, </p> <pre><code> get-psdrive | where Free* </code></pre>
0debug
uncompress a .txt.gz file in mac? : <p>How do I uncompress a .txt.gz file in mac?</p> <p>I already tried unzip file.txt.gz but it says cannot find zipfile directory in one of file.txt.gz or file.txt.gz.zip, and cannot find file.txt.gz.ZIP, period.</p>
0debug
ON CLICK OPEN THREE TABS IN WEB BROWSER : Guys i have just been told to create a link that opens three tabs and i cant figure it out. the javascript i created opens two tabs only. here is the code. <div id="g_image2" style="position:absolute; overflow:hidden; left:760px; top:32px; width:149px; height:45px; z-index:4...
0debug
jQuery: Blur function is not calling on each dynamically added row : <p>I am newbie to jQuery.I am trying to call the Blur function on each dynamically Added row and send the values of each row of both text box to PHP.<br>For first row, it works but dynamically added rows, its not working.<br> My Code is as follows:<br...
0debug
Multiline comments in Dockerfiles : <p>Is there a fast way to comment out multiple lines in a Dockerfile?</p> <p>I know that I can add <code>#</code> at the beginning of each line. But if there are many lines this is too much work. In some languages there are multiline comments such as <code>/* ... */</code>, which ma...
0debug
How do I split a row of text into different columns according to number of characters using a macro? : I want to know if I can use a macro to separate data in a single column into different colums according to number of characters. For example, what I have is this in column A A AB ABC 1A 564 8 What...
0debug
Why am I getting a "Cannot return null for non-nullable field" error when doing a mutation? : <p>I'm trying my hand at (Apollo) GraphQL on the server side and have been having a probably silly issue. I'm trying to sign up a user, but keep getting the error shown in the linked image below. What is the problem? Ignore th...
0debug