problem
stringlengths
26
131k
labels
class label
2 classes
how to input JSON data with dynamic data array : person 1 input data with data array like this : {"type":"1","name":"John", "phone":"898171"} person 2 not set the phone, like this : {"type":"1","name":"Lisa"} // only write 2 array... I have source code in my controller like this : $data = json_deco...
0debug
Singleton with properties in Swift 3 : <p>In Apple's <a href="https://developer.apple.com/library/prerelease/content/documentation/Swift/Conceptual/BuildingCocoaApps/AdoptingCocoaDesignPatterns.html#//apple_ref/doc/uid/TP40014216-CH7-ID6">Using Swift with Cocoa and Objective-C document</a> (updated for Swift 3) they gi...
0debug
static void put_subframe_samples(DCAEncContext *c, int ss, int band, int ch) { if (c->abits[band][ch] <= 7) { int sum, i, j; for (i = 0; i < 8; i += 4) { sum = 0; for (j = 3; j >= 0; j--) { sum *= ff_dca_quant_levels[c->abits[band][ch]]; ...
1threat
when i am installing loopback cli then getting these error in reactjs : [when i install npm install -g loopback-cli than showing this error i have set environment variable like this C:\Python27\python.exe;C:\Program Files\nodejs\ ][1] [1]: https://i.stack.imgur.com/laiiO.png
0debug
static int pci_set_default_subsystem_id(PCIDevice *pci_dev) { uint16_t *id; id = (void*)(&pci_dev->config[PCI_SUBSYSTEM_VENDOR_ID]); id[0] = cpu_to_le16(pci_default_sub_vendor_id); id[1] = cpu_to_le16(pci_default_sub_device_id); return 0; }
1threat
The name 'mousePosition does not exist in the current context : Tried doing 2D and 3D. I want the player to click and drag objects to stack them. I tried copying and pasting code from a video and it still didn't work.
0debug
static int find_pte64(CPUPPCState *env, struct mmu_ctx_hash64 *ctx, int h, int rw, int type, int target_page_bits) { hwaddr pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret, r; ret = -1; pteg_off = (ctx->hash[h] * HASH_PTEG_SIZE_64) & env->htab_mask; ...
1threat
Pass data from parent to child component in vue.js : <p>I am trying to pass data from a parent to a child component. However, the data I am trying to pass keeps printing out as blank in the child component. My code:</p> <p>In <code>Profile.js</code> (Parent component)</p> <pre><code>&lt;template&gt; &lt;div clas...
0debug
static int decode_packet(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket* avpkt) { WMAProDecodeCtx *s = avctx->priv_data; GetBitContext* gb = &s->pgb; const uint8_t* buf = avpkt->data; int buf_size = avpkt->size; int num_bits_prev_frame; in...
1threat
php id encoding to have exact same character length for any given id : <p>i want to encode id such as customer id to unique string (alpha/numeric) to hide the id, also i want to keep encoded string to have same length always, say 16 characters. Also it should be decodable.</p> <p>example: id = 1 encoded id = abcd12345...
0debug
Installing python packages offline : <p>I have a python virtual environment created using virtualenv. Now I want to install different python packages like pandas or numpy. But is there any way to install these packages offline. Given, I already have these packages in base environment. </p>
0debug
static int find_slice_quant(AVCodecContext *avctx, const AVFrame *pic, int trellis_node, int x, int y, int mbs_per_slice, ProresThreadData *td) { ProresContext *ctx = avctx->priv_data; int i, q, pq, xp, yp; const uint16_t *src; int slice_wid...
1threat
Simple password verification function (php) not working? (begginer q) : This is it: function password_matches($username, $password){ //precon: user_exists($username) $u = $GLOBALS['conn']->real_escape_string($username); $q = "SELECT password FROM users WHERE username = '$u'"; $result ...
0debug
I want to change a ternary operator to if and else statements : How to change this shorthand ternary operator to if-else statements header.style.width = header.style.width === "1265px" ? '0px' : '1265px';
0debug
How to sync to specific folder using command line in Perforce : <p>Suppose I have mapped my depot to client workspace as <code>c:/perforce/project</code> but now </p> <p>I want to sync all the files present in <code>c:/perforce/project/fold1/fold2</code> folder. </p> <p>How can we do it, as the command p4 sync takes ...
0debug
static av_always_inline int setup_classifs(vorbis_context *vc, vorbis_residue *vr, uint8_t *do_not_decode, unsigned ch_used, int partition_count...
1threat
dashcode error with java array se.mebe.Lion@7852e922, se.mebe.Zebra@4e25154f, se.mebe.Monkey@70dea4e : <p>public void addAnimalsToZoo() {</p> <pre><code> Animal[] zoo = new Animal[animals.length + 5]; System.arraycopy(animals, 0, zoo, 0, animals.length); for (count = 0; count &lt; zoo.length; count++) ...
0debug
C# ASP.NET Date and Time without jQuery : <p>I am new to ASP.NET and want to use date and time for the user to enter their desired date. I have looked around and saw people using jQuery but is there another way to implement it nicely?</p>
0debug
How to pass the text box data using session to the nextpage in php : I want to pass the text box data to the next page(demo2) and i need to save all the data together in my db i tried using session the value i passed is sending to the next page but i want the textbox data to be passed... Help me out!! Below is my...
0debug
static int amovie_request_frame(AVFilterLink *outlink) { MovieContext *movie = outlink->src->priv; int ret; if (movie->is_done) return AVERROR_EOF; if ((ret = amovie_get_samples(outlink)) < 0) return ret; avfilter_filter_samples(outlink, avfilter_ref_buffer(movie->samples...
1threat
I can't submit form after validation in javascript : I want to validate my form using javascript. I validated all fields successfully but my form is not submitting?
0debug
static int decode_packet(J2kDecoderContext *s, J2kCodingStyle *codsty, J2kResLevel *rlevel, int precno, int layno, uint8_t *expn, int numgbits) { int bandno, cblkny, cblknx, cblkno, ret; if (!(ret = get_bits(s, 1))){ j2k_flush(s); return 0; } else if (ret < ...
1threat
How to change text padding in android bottom navigation view : <p>I am using the bottom navigation view for an android app. I have increased the size of my icon, but now the icon runs over the text. Here is what I see:</p> <p><a href="https://i.stack.imgur.com/9iNJs.png" rel="noreferrer"><img src="https://i.stack.imgu...
0debug
static int zerocodec_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { ZeroCodecContext *zc = avctx->priv_data; AVFrame *pic = avctx->coded_frame; AVFrame *prev_pic = &zc->previous_frame; z_stream *zstream = &zc->zstr...
1threat
Mysql like query search : I am working on crud functionality in php and mysql for user table.I have keep user status "a" and "d" for "active" and "deactive" respectivaly in database .My problem is when user search on frontend lets say "active" then how I can query to fetch all active status record.Please help..
0debug
Better "centerpoint" than centroid : <p>I'm using the centroid of polygons to attach a marker in a map application. This works definitely fine for convex polygons and quite good for many concave polygons.</p> <p>However, some polygons (banana, donut) obviously don't produce the desired result: The centroid is in these...
0debug
void OPPROTO op_sdiv_T1_T0(void) { int64_t x0; int32_t x1; x0 = T0 | ((int64_t) (env->y) << 32); x1 = T1; x0 = x0 / x1; if ((int32_t) x0 != x0) { T0 = x0 < 0? 0x80000000: 0x7fffffff; T1 = 1; } else { T0 = x0; T1 = 0; FORCE_RET();
1threat
C++ doesn't tell you the size of a dynamic array. But why? : <p>I know that there is no way in C++ to obtain the size of a dynamically created array, such as:</p> <pre><code>int* a; a = new int[n]; </code></pre> <p>What I would like to know is: Why? Did people just forget this in the specification of C++, or is ther...
0debug
Iterate with threshold stored in database : <p>I have a variable number of transactions in every month saved in the database. I have to calculate a payment according a structure like as 0-100 transaction, 1 € for every transaction, 101-200 2€ for each, 201 to 300 3€ for each, etc. The first 100 transactions I’ll pay 10...
0debug
looking for a python library to detect post requests inside an url : <p>I'm looking for a library, I don't know if it's exists. I need to parse an url to check if there is a post request form inside it. If there is one, it should list the parameters of that post request. Example process:</p> <p>-url: <a href="http://w...
0debug
Why do both promise .then() and .catch() are called? : <p>I'm beginning to write a discord bot with the Discord.js library (version 11.5.1). Promises returned by methods don't work as expected because then() and catch() callbacks are both called if it's successful.</p> <p>I'm using nodejs version 11.15.0.</p> <p>In t...
0debug
Having trouble with the order of items in the legend of a ggplot bar chart : <p>My data looks like</p> <pre><code> language tone count tone_percent label_pos pos 1 c positive 3460 36.16977 18.08488 7 2 c neutral 2046 21.38825 46.86389 7 3 c...
0debug
static int local_unlinkat_common(FsContext *ctx, int dirfd, const char *name, int flags) { int ret = -1; if (ctx->export_flags & V9FS_SM_MAPPED_FILE) { int map_dirfd; if (flags == AT_REMOVEDIR) { int fd; fd = openat(dirfd, na...
1threat
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
static int create_dynamic_disk(BlockBackend *blk, uint8_t *buf, int64_t total_sectors) { VHDDynDiskHeader *dyndisk_header = (VHDDynDiskHeader *) buf; size_t block_size, num_bat_entries; int i; int ret; int64_t offset = 0; block_size = 0x200...
1threat
Insert Sring on Database : Please help me to : Insert Sring (Sting Inherited from Edit Text) to database by SQLite <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> String et11 = et1.getText().toString(); String et22 = et2.getText...
0debug
Symfony 4, include assets from vendor directory : <p>I would like to load vendor assets, downloaded with composer inside vendor directory, from my twig template.</p> <p>Using a relative path is one solution (in this example I'm going to include bootstrap css, but the same problem is for any other libs required from co...
0debug
How to add a dependency to another project properly using gradle? : <p>Hello I am new to gradle and it is a little bit confusing for me. How should I add a dependency in my gradle configuration to have access to <em>B1.java</em> in <em>projectA1</em>? Project B is gradle project and project A is just a folder with anot...
0debug
Angular 2 Event emitters vs Subject : <p>In Angular 2 what is the difference between Event Emitter and Subject for announcing an event? It seems like event emitters are less complicated to declare....Which way is preferred by Angular 2?</p> <pre><code>dataRefreshEvent = new EventEmitter(); private companyDataAnnounce...
0debug
static int mov_read_packet(AVFormatContext *s, AVPacket *pkt) { MOVContext *mov = s->priv_data; MOVStreamContext *sc; AVIndexEntry *sample; AVStream *st = NULL; int ret; mov->fc = s; retry: sample = mov_find_next_sample(s, &st); if (!sample) { mov->found_mdat = 0; ...
1threat
How to run a mutation on mount with React Apollo 2.1's Mutation component? : <p>We are currently moving from <a href="https://facebook.github.io/relay/docs/en/introduction-to-relay.html" rel="noreferrer">Relay</a> to <a href="https://www.apollographql.com/docs/react/" rel="noreferrer">React Apollo 2.1</a> and something...
0debug
how does Collections.binarySearch() with comparator work when the input is not in sorted? : <p>I am confused that this method doesn't work as expected:</p> <p>public static int binarySearch(List list, T key, Comparator c)</p> <p>here is my code</p> <pre><code>// Create a list ...
0debug
How can I reset the preview window to the right of the screen? : <p>Im not really sure about how my preview window ended up as a different window. I would like to restore it back to the left of the screen, like the default mode. I can't find the way to do it! Thank you!</p>
0debug
C# Beginner - "Use of Unassigned Local Variable" Issue : <p>New to C# (only coding for a week so far) trying to create a practice program. Can't seem to get the data I want stored in 'price1' and 'price2'. Error is CS0165 Use of unassigned local variable 'price1' and 'price2'.</p> <p>I've tried moving lines of code ar...
0debug
Getting a error TypeError: color.charAt is not a function in C:/...../node_modules/@material-ui/core/styles/colorManipulator.js:148 : <p>Here is a link to the screenshot of the error : <a href="https://drive.google.com/open?id=1HL-Fy1M4tHp9qMUpt88PzOfI10AHHem-" rel="noreferrer">https://drive.google.com/open?id=1HL-Fy1M...
0debug
Convert String date YYYY-MM to date in Javascript : <p>I have a date as a String like : <code>2015-12</code> for december 2015.</p> <p>I would like to convert this date to get this date in milliseconds in javascript. (From the first day of the month)</p> <p>How can i do it ?</p>
0debug
how to add zeros to string in php : <p>I have strings: <code>23-65, 123-45, 2-5435, 345-4</code> I want to add zeros to them so all of them will look like <code>###-#### (three digits dash four digits): 023-0065, 123-0045, 002-5435, 345-0004</code> How can i do it in php? Thanks!</p>
0debug
Can anyone give a simple code for houghlines using C#? As i got the transform, i want to detect the lines in images : Heloo all, Can anyone give me a simple code for houghlines in c# since i am new to .net,i didnt know how to do hough transform.Then i found the code for Hough transform but i need to detect the lines i...
0debug
What's the difference between a stack file and a Compose file? : <p>I'm learning about using Docker Compose to deploy applications in multiple containers, across multiple hosts. And I have come across two configuration files - stack file, and Compose file.</p> <p>From the <a href="https://docs.docker.com/docker-cloud/...
0debug
How to resolve : unexpected error occured Initializing Android Designer" in VS 2015 with Xamarin : <p>Bringing up a new PC with Xamarin and VS 2015 Pro I received the following error:</p> <blockquote> <p>An unexpected error occurred trying to initialize Android Designer. Please verify the Android SDK path and the ...
0debug
How to keep context in javascript methods after call ajax? : <p>hi i have a problem with es6 and in particulary the methods of class. See my exemple :</p> <p>my first class :</p> <pre><code>class A{ constructor(){ this.B = new B(); this.test = 5; } methodA1(){ B.methodB1(this.me...
0debug
ofstream reference using string? : <p>I'm making a program with several functions:</p> <pre><code>int totalDays(ofstream &amp;outputFile, int noEmployee) { string fileName = "employeeAbsences.txt"; outputFile.open(fileName); </code></pre> <p>However, I don't know how to call it:</p> <pre><code>int main() { int emp...
0debug
def group_keyvalue(l): result = {} for k, v in l: result.setdefault(k, []).append(v) return result
0debug
scope of do-catch in swift - cannot assign value to outside variable : <p>I have made some code to make POST request to my php script which is placed on my servers. I have tested and that part is working fine. I got the problem with the returning result from the server - I get it in JSON format, and print in inside do-...
0debug
static int decode_b_picture_header(VC9Context *v) { int pqindex; if (v->profile == PROFILE_SIMPLE) { av_log(v, AV_LOG_ERROR, "Found a B frame while in Simple Profile!\n"); return FRAME_SKIPED; } v->bfraction = vc9_bfraction_lut[get_vlc2(&v->gb, vc9_bfraction_vlc.tab...
1threat
java multiple classes exercise : Here is the code below . public class Country{ private String name; private City [] cities; private int index =0; public Country (String n, int nrc){ // nrc as in number of cities name = n; cities = new City[nrc]; } public boolean exists (City str){ for(int...
0debug
Tax Rate in new Stripe Checkout : <p><br> I've implemented the new <code>Stripe Checkout</code> on my <code>NodeJS server</code>, but I cannot specify the <strong>Tax Rate</strong> for Invoicing.</p> <p>As per my understanding <strong>Tax Rates</strong> should be specified in the <a href="https://stripe.com/docs/api/p...
0debug
Python 2 vs Python 3 - Difference in behavior of filter : <p>Could someone please help me understand why the following code that implements the "sieve of Eratosthenes" behaves differently across Python 2 and Python 3.</p> <pre><code>l = range(2, 20) for i in range(2, 6): l = filter(lambda x: x == i or x % i != 0, ...
0debug
(Urgent issue that need to be solved within 2 hours) selenium chromedriver suddenly not working : seesion not created exception : My code, which used to work until yesterday, suddenly stopped working. I'd been running codes from jupyter notebook to auto-collect repeating data from a webpage. It is as follows(url is cha...
0debug
This is my output ,how to merge the arrays . i wnat like this : Array ( [0] => Array ( [ht_amenity_id] => 1 [ht_amenity_name] => Central Air Conditioning [ht_category] => 1 [ht_cat_name] => General ) [1] => Array ( [ht_ame...
0debug
What is the Javascript equivalent of writing 'If not" : <p>Python programmer here. </p> <p>I don't know how to write this. I tried using 'if !in' and '!if in', but I don't know how. Tried to Google it but got no results.</p>
0debug
Translating Arrays in psuedocode to python : Hello I am trying to write a short program using the following psuedocode I can not figure out how to translate the arrays in psuedocode into python for example "declare Names[5] as a string" I tried to put "Name[5] = string" but it will come up with unresolved reference I t...
0debug
Hello. I wanna html, css emmet function on php file in VS CODE : Let me show you my problem. If i code on .php file <div id= ~~ emmet => idate, idn_to_ascii, idn_to_utf-8 ... etc If i code on .htmlfile <div id= ~~ emmet => id I use html,css,js emmets on .html file. But i can't use ...
0debug
textbox user control not displaying date in DD/mm/yyyy format : <p>Aspx Webpage accepting value in DD/mm/yyyy format but while retrieving value from database using datetime object get method it is showing correctly in dd/mm/yyyy but assigning in mm/DD/yyyy format to datebox Instead it should show DD/mm/yyyy format?plea...
0debug
static int bdrv_wr_badreq_sectors(BlockDriverState *bs, int64_t sector_num, int nb_sectors) { if (sector_num < 0 || nb_sectors < 0) return 1; if (sector_num > bs->total_sectors - nb_sectors) { if (bs->autogrow) bs->total_sectors = s...
1threat
static void FUNCC(pred4x4_vertical_add)(uint8_t *_pix, const int16_t *_block, ptrdiff_t stride) { int i; pixel *pix = (pixel*)_pix; const dctcoef *block = (const dctcoef*)_block; stride >>= sizeof(pixel)-1; pix -= stride; for(i=0; i<4; i++){ ...
1threat
Angular 2.0.0 - Testing " imported by the module 'DynamicTestModule' " : <p>I am having a problem in testing app.component.ts in Angular 2. I am using angular-cli. Whenever I run ng test, my app.component.spec.ts makes the console prompt with the error: </p> <pre><code> Failed: Unexpected directive 'HomeModuleComponen...
0debug
R markdown: can I insert a pdf to the r markdown file as an image? : <p>I am trying to insert a pdf image into an r markdown file. I know it is possible to insert jpg or png images. I was just wondering if it is also possible to insert a pdf image. Thanks very much! </p>
0debug
static void mov_fix_index(MOVContext *mov, AVStream *st) { MOVStreamContext *msc = st->priv_data; AVIndexEntry *e_old = st->index_entries; int nb_old = st->nb_index_entries; const AVIndexEntry *e_old_end = e_old + nb_old; const AVIndexEntry *current = NULL; MOVStts *ctts_data_old = msc->c...
1threat
~/.setprompt: No such file or directory : <p>trying to change directory in csh script. But i am getting following error :</p> <p><strong><code>~/.setprompt</code>: No such file or directory</strong></p> <p>permission of above file is like that :</p> <p>-rwxrwxrwx 1 vgangwar 46 Oct 5 2015 /home/vgangwar/.setprompt<...
0debug
static int file_write(URLContext *h, const unsigned char *buf, int size) { FileContext *c = h->priv_data; int r = write(c->fd, buf, size); return (-1 == r)?AVERROR(errno):r; }
1threat
Sending all aspx page as an e-mail body : <p>I have an aspx page that give an exam result. I would like to send copy of this page as an e-mail body. I did a lot of search about this situation but i can not find any solution.</p>
0debug
Can't handle with regexp, could you provide some hint? : I need to split this string by space: ``` <i>Lorem</i> 1 <span class="text-danger">ipsum</span> dolor sit amet, consectetur adipisicing elit. Animi consequuntur, eos? Error facere maiores minima molestiae obcaecati, quis voluptatum. Aspernatur cumque doloremq...
0debug
C++ Class member is nullpointer : <p>I have a class (to render Text):</p> <pre><code>class TextRenderer { public: TextRenderer(); void RenderText(GLFWwindow *window, std::string text); private: FT_Library ft; FT_Face face; }; </code></pre> <p>where I initialize the members <code>ft</code> and <code>face</code...
0debug
mysql query to fetch these results : <p>i have three tables<br> 1.<strong>project_ref_table</strong> with columns<br> project_id(pk)<br> project_name<br> client_id(fk)<br> project_description </p> <p>and 2.<strong>client_ref_table</strong> with column<br> client_id(pk)<br> client_name<br> client_email<br> client_add...
0debug
How to create method that can receive a parameter of both: byte[] and Byte[] : which can be called: method(new byte[5]) and method(new Byte[5]) e.g. i have in my code: Byte[] array = list.toArray(new Byte[list.size()]); byte[] bytes = str.getBytes(); and to work with both arrays i forced to dupli...
0debug
static void omap_pin_cfg_init(MemoryRegion *system_memory, target_phys_addr_t base, struct omap_mpu_state_s *mpu) { memory_region_init_io(&mpu->pin_cfg_iomem, &omap_pin_cfg_ops, mpu, "omap-pin-cfg", 0x800); memory_region_add_subregion(system_memory...
1threat
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
static void qmf_32_subbands(DCAContext * s, int chans, float samples_in[32][8], float *samples_out, float scale) { const float *prCoeff; int i; int sb_act = s->subband_activity[chans]; int subindex; scale *= sqrt(1/8.0); ...
1threat
ios how to show htmlString into webview the html string contains bootstrap image : ******************** The html string is. ****************** "description": "<p> Business Name and City Located In <i class=\"fa fa-check\"></i></p>\r\n <p> Contact Info and Address <i class=\"fa fa-check\"></i><...
0debug
theora_header (AVFormatContext * s, int idx) { struct ogg *ogg = s->priv_data; struct ogg_stream *os = ogg->streams + idx; AVStream *st = s->streams[idx]; struct theora_params *thp = os->private; int cds = st->codec->extradata_size + os->psize + 2; uint8_t *cdp; if(!(os->buf[os->ps...
1threat
static int cuvid_test_dummy_decoder(AVCodecContext *avctx, const CUVIDPARSERPARAMS *cuparseinfo, int probed_width, int probed_height) { CuvidContext *ctx = avctx->priv_data; CUVIDDECODECREATEINFO cu...
1threat
function simple in python : if n is 3, then the sequence ATATATATAG contains 4x ATA, 3x TAT and 1x TAG. The proportion is thus 4/8=0.5. The higher this number, the more repetitive the sequence. Write a function simple(s,n) where s is a sequence and n is the length of the n-gram to consider. The function will return ...
0debug
static int start_frame(AVFilterLink *inlink, AVFilterBufferRef *inpicref) { AVFilterLink *outlink = inlink->dst->outputs[0]; AVFilterBufferRef *outpicref = NULL; int ret = 0; if (inpicref->perms & AV_PERM_PRESERVE) { outpicref = ff_get_video_buffer(outlink, AV_PERM_WRITE, ...
1threat
simple calculator that shows the different between 2 numbers in C# : <p>first of all sorry for my broken language. i would like to create a calculator that shows the different between 2 numbers in C# i tried to make it but i always end up with adding the textbox 1 to the textbox 2 and displaying the total in text box 3...
0debug
How to specify wildcard artifacts subdirectories in .gitlab-ci.yml? : <p>I'm using GitLab CI to build a C# solution and try to pass some build artifacts from one build stage to another.</p> <p>The problem is, that the artifacts are not located in a single directory but in different subdirectories, which however all ha...
0debug
main function in c with arguments that are defined as definitions : i am currently trying to get arguments from the command line to my main function in c. my program is as follows. #include <stdio.h> #include <stdlib.h> #define BANK1 (0X00100) #define BANK2 (0x11010) . . #define B...
0debug
how to implement calling oracle DB operation large number of times : <p>I am writing a report generation program in Java, with oracle DB. I have a stored procedure, that will retrieve one value at a time. From my Java Program I am calling the procedure repeatedly. In extreme case, I have to call the procedure <strong>6...
0debug
I tried and find ways to solve it but this keeps coming out. : java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/ebookshop?useSSL=false at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at project.QueryServlet.doGet(QueryS...
0debug
Materialize css- Is it possibe to CENTER the navbar : I am using Materialize. My site has Navigation centered on top and the site Logo below that. Please see image: [Webpage layout][1] [1]: http://i.stack.imgur.com/VG5wg.png I tried a lot but couldnt center it. Kindly let me know how it is possible.. Thanks...
0debug
How to Save, View & Delete images from sqlite in Android studio? : <p>I am making a note taker android app using android studio for my school project. What it can currently do is save, view, edit &amp; delete text notes. And i used sqlite.</p> <p>But I need one more feature to add, which is saving photos as notes. The...
0debug
Type Properties In Swift : <p>I am unable to get what is 'Type Properties' defined in Swift. I follow below link but unable to get what is exactly. </p> <p><a href="https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Properties.html#//apple_ref/doc/uid/TP40014097-CH14-...
0debug
2 tabstop or 4 tabstop for Python : <p>I am currently using 4 space tabstops in Vim. A work colleague says i should have it as 2 and not to indent 4 spaces in Python. I understand why 2 spaces is better, but PEP8 says to have 4 spaces. What is the better practise?</p> <p>(I could set my tabstop to 2 and then tab twice...
0debug
How to make such database record in php mysql such that A inform B,B inform C,and C inform D such that when I look at who A answer should be B,C,D? : <p>How to make such database record in php mysql such that A inform B,B inform C,and C inform D such that when I look at who A answer should be B,C,D?</p>
0debug
Markdown: Reference to section from another file : <p>I have two markdown files: a <code>parent.md</code> and a <code>child.md</code>.</p> <p>So <code>parent.md</code>:</p> <pre><code># Main section ## sub-section </code></pre> <p>I'd like to make reference to <code>## sub-section</code> from <code>child.md</code>....
0debug
void ppc_hash64_stop_access(uint64_t token) { if (kvmppc_kern_htab) { kvmppc_hash64_free_pteg(token); } }
1threat
I want to open a new window/tab with POST Data, but it's not working : <p>Here is one of the calls that is generated via PHP:</p> <pre><code> &lt;script&gt; var copyrecipient = []; var customhintcopy = []; copyrecipient.push('customer...
0debug
Please help describe what kind of file I'm dealing with and how to dump this into a mysql table : I'm downloading this file from an FTP server and when I open it in VIM it looks like this: [![enter image description here][1]][1] [![enter image description here][2]][2] When I do open this in notepad++, I see this...
0debug
static void tcg_out_qemu_st (TCGContext *s, const TCGArg *args, int opc) { int addr_reg, r0, r1, rbase, data_reg, mem_index, bswap; #ifdef CONFIG_SOFTMMU int r2; void *label1_ptr, *label2_ptr; #endif data_reg = *args++; addr_reg = *args++; mem_index = *args; #ifdef CONFIG_SOFTMMU ...
1threat
get the maximum value of the associative array in php : <p>I have the following array</p> <pre><code>Array ( [anger] =&gt; 0 [disgust] =&gt; 20 [fear] =&gt; 0 [joy] =&gt; 22.853 [sadness] =&gt; 0 [surprise] =&gt; 0 ) Array ( [anger] =&gt; 0 [disgust] =&gt; 20 [fear] =&gt; 0 [joy...
0debug