problem
stringlengths
26
131k
labels
class label
2 classes
what is wrong with this python code? very simple code : <p>for some reason this python code doesn't work. can you please help me? after asking for input it just prints nothing.</p> <p>I need this program to print freezing if the temperature is 0 and if above zero print above freezing and if below zero print below free...
0debug
How do i prevent text jumping into another line : I'm trying out some things with a material designe framework but some things just won't work. Here is what i got: [screenshot][1] But i want the text to start on the top and stay there so the text won't jump into another line like in the picture. i hope you guy...
0debug
Conditional Subtraction VBA/Macro : Good day Excelers, Looking for some assistance programming a report. I'm in the early stages. I've hit a wall when attempting to conditionally subtract using VBA. I would like to Subtract 1 from Column C if Column B is greater than 1. Any assistance would be greatly appreciated. T...
0debug
Gradle build fails: Unable to find method 'org.gradle.api.tasks.testing.Test.getTestClassesDirs()Lorg/gradle/api/file/FileCollection;' : <p>When i am trying to compile a imported <a href="https://github.com/iammert/AndroidArchitecture.git" rel="noreferrer">project</a> from github, my gradle build always fails with the ...
0debug
Create quote summary of calculated fields : <p>I have a form that allows users calculate cost of services. I can use the form to output the total price of the selected services via checkbox and input values * the data-price. However, I would also like to create a summary of the services they selected. </p> <p>I sample...
0debug
Image Effects of 2016 for Website Banner : <p>I've been searching about the name of this image effect but can't find an answer since I don't really know what to put on the search engine. So I decided to visit here to post a question to you guys hoping that I get an answer. Here is the <a href="http://postimg.org/image/...
0debug
How to check mysql if a string matched with parts from database? : i want to do a kind of blacklist so i store in my database id|value ----------- 1|test.com 2|example@ 3|@another. ... Now i looking for the fastes way to check if a given string (a emailadress for example) matched with...
0debug
Flutter: how to load file for testing : <p>File can be read from the directory relative to the dart script file, simply as <code>var file = new File('./fixture/contacts.json')</code>.</p> <p>However the file cannot be read flutter test running inside IDE. </p> <p><a href="https://stackoverflow.com/questions/44816042/...
0debug
datatables for bigners in jquery : how can i use data tables of jquery i want to create table in which i use atributes of freegeoip.net my project is to recieve data from freegeoip.net and put it into datatables..here is my code with html i try to save data into html too <!-- begin snippet: js hide: false console: t...
0debug
static int v9fs_do_mknod(V9fsState *s, V9fsString *path, mode_t mode, dev_t dev) { return s->ops->mknod(&s->ctx, path->data, mode, dev); }
1threat
Class properties must be methods. Expected '(' but instead saw '=' : <p>I have a react app, and I have this code, but it looks like the fetchdata m ethod is full of syntax errors, the first one shown on the title of the question.</p> <p>Whats wrong with the method?</p> <pre><code>import React, { Component } from 're...
0debug
How to cache Gradle dependencies inside Gitlab CI : <p>I add cache property inside my <code>gitlab-ci.yml</code> file in my Android project.</p> <pre><code>cache: paths: - .gradle/wrapper - .gradle/caches </code></pre> <p>But in each pipeline when I run <code>./gradlew assemble</code>, It downloads all grad...
0debug
`method_missing': undefined local variable or method `ture' for #<Class:0x007f9922f68110> (NameError) : <p>Hello guys I'm learning how to test code with RSpec and I'm having this error when I try to run Rspec. I think is a bug on Active Record but I search googling and I don't have nothing for help me with this... so m...
0debug
How to make a picture to cover the width of a div : <p>On this <a href="http://rainmakercorp.ch/" rel="nofollow noreferrer">website</a> I would like to fit the picture for the entire div width. (If you scroll down you'll see the blog section)</p> <p>As you can see from the <a href="https://i.stack.imgur.com/VYzaV.png"...
0debug
/c.xhtml @23,45 value="#{Bonjour.nom}": Target Unreachable, identifier 'Bonjour' resolved to null : <p>I work in eclipse and GlassFish, but when I run my XHTML page this error appears: "/c.xhtml @23,45 value="#{Bonjour.nom}": Target Unreachable, identifier 'Bonjour' resolved to null"</p> <pre><code>this is the first p...
0debug
webpack ERROR in CommonsChunkPlugin: While running in normal mode it's not allowed to use a non-entry chunk : <p>So When I try to split my application into 1 application.js file and 1 libraries.js file, everything works fine. When I try to split it up into 1 application.js file and 2 libraries.js files, I get this err...
0debug
static int read_rle_sgi(const SGIInfo *sgi_info, AVPicture *pict, ByteIOContext *f) { uint8_t *dest_row, *rle_data = NULL; unsigned long *start_table, *length_table; int y, z, xsize, ysize, zsize, tablen; long start_offset, run_length; int ret = 0; xsize = sgi_info->xsize; ...
1threat
static int kvm_get_xsave(CPUState *env) { #ifdef KVM_CAP_XSAVE struct kvm_xsave* xsave; int ret, i; uint16_t cwd, swd, twd, fop; if (!kvm_has_xsave()) { return kvm_get_fpu(env); } xsave = qemu_memalign(4096, sizeof(struct kvm_xsave)); ret = kvm_vcpu_ioctl(env, KVM_GET_X...
1threat
Differences between Akka HTTP and Netty : <p>Can someone please explain the major differences between <a href="http://doc.akka.io/docs/akka-http/current/java/http/index.html" rel="noreferrer">Akka HTTP</a> and <a href="https://netty.io/" rel="noreferrer">Netty</a>? Netty offers other protocols like FTP as well. Akka HT...
0debug
Check if key in json has another keys within in Python : Im trying to print my json content. I know how to print just keys and values but I want to have access to the objects within the keys too. This is my code: json_mini = json.loads('{"one" : {"testing" : 39, "this": 17}, "two" : "2", "three" : "3"}') ...
0debug
static void cuvid_flush(AVCodecContext *avctx) { CuvidContext *ctx = avctx->priv_data; AVHWDeviceContext *device_ctx = (AVHWDeviceContext*)ctx->hwdevice->data; AVCUDADeviceContext *device_hwctx = device_ctx->hwctx; CUcontext dummy, cuda_ctx = device_hwctx->cuda_ctx; CUVIDSOURCEDATAPACKET seq_p...
1threat
SQL Query to convert single row from multiple tables into a single row in table??? : I have 7 tables with same structure. And each table has 2 columns,In these one column is join key( but not a primary key) and 2nd column is Unique. Below is the requirement mentioned for 2 tables. But we need to develop for 7 tables...
0debug
void ff_jpegls_init_state(JLSState *state){ int i; state->twonear = state->near * 2 + 1; state->range = ((state->maxval + state->twonear - 1) / state->twonear) + 1; for(state->qbpp = 0; (1 << state->qbpp) < state->range; state->qbpp++); if(state->bpp < 8) state->limit = 16 ...
1threat
static void test_hbitmap_iter_past(TestHBitmapData *data, const void *unused) { hbitmap_test_init(data, L3, 0); hbitmap_test_set(data, 0, L3); hbitmap_test_check(data, L3); }
1threat
int object_property_get_enum(Object *obj, const char *name, const char *typename, Error **errp) { StringOutputVisitor *sov; StringInputVisitor *siv; char *str; int ret; ObjectProperty *prop = object_property_find(obj, name, errp); EnumProperty *enumprop; ...
1threat
static av_cold int smvjpeg_decode_init(AVCodecContext *avctx) { SMVJpegDecodeContext *s = avctx->priv_data; AVCodec *codec; AVDictionary *thread_opt = NULL; int ret = 0; s->frames_per_jpeg = 0; s->picture[0] = av_frame_alloc(); if (!s->picture[0]) return AVERROR(ENOMEM);...
1threat
Can we deploy a C# 7 web app to Azure using Kudu? : <p>Since Visual Studio 2017 is released and we can use the new C# 7 features I expected this will work when deploying on Azure Web apps.</p> <p>Unfortunately we're seeing compile errors when using continuous deployment (kudu git deploy) so it seems Azure doesn't supp...
0debug
how can I make a bookmark that installs jquery? : <p>how can I make a bookmark that installs jquery?</p> <p>so that when I am in the developer console, I can call jquery functions from whatever websites i'm on?</p>
0debug
Angular Build Process to hash the File Name of Asset and Resource Folders : <p>I have an <strong>Angular 4.4.6</strong> application and I build this using <strong>Angular CLI 1.0.1</strong>. </p> <p>The problem I have is, apart from "inline.bundle.js", "main.bundle", "polyfills.bundle.js", "styles.bundle.js", "vendor....
0debug
static void usb_msd_set_bootindex(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { USBDevice *dev = USB_DEVICE(obj); MSDState *s = USB_STORAGE_DEV(dev); int32_t boot_index; Error *local_err = NULL; visit_type_int32(v, name, &boot_ind...
1threat
Ruby - counting number of string occurence in a string/array : This code returns the word with the most occurences in a given string. But, it's not working if there's for exemple two string equals to the max. For exemple, if i was adding 3 'cool' to the text, it would still return : The words with the most f...
0debug
static void test_validate_union_native_list(TestInputVisitorData *data, const void *unused) { UserDefNativeListUnion *tmp = NULL; Visitor *v; Error *err = NULL; v = validate_test_init(data, "{ 'type': 'integer', 'data' : [ 1, 2 ] }"); visit_type...
1threat
Unable to reverse all the characters in the below code along with spaces : The code below reverses all the characters in a sentence.But it is unable to do so.This is a kid stuff but at this moment it's not compiling.Can anyone figure out the issue Let's say: "Smart geeks are fast coders".The below code should reverse ...
0debug
How to compare value 3.0.1 with 3.0.2 where these two numeric values are in String ? : <p>I have 3.0.1 and 3.0.2 in string data type java. Now I want to check which value is larger therefore I was converting these two into float using Float.parseFloat(str).</p> <p>But Its throwing number format exception.</p> <p>Any ...
0debug
How should I refer to inner enums (defined within an entity) from a JPQL query using Hibernate? : <p>I have an entity class as follows:</p> <pre><code>package stuff; @Entity class Thing { @Id @GeneratedValue private Long id; @Basic @Enumerated private State state; public enum State { ...
0debug
static int cirrus_bitblt_common_patterncopy(CirrusVGAState *s, bool videosrc) { uint32_t patternsize; uint8_t *dst; uint8_t *src; dst = s->vga.vram_ptr + s->cirrus_blt_dstaddr; if (videosrc) { switch (s->vga.get_bpp(&s->vga)) { case 8: patternsize = 64; ...
1threat
static void qdm2_decode_fft_packets(QDM2Context *q) { int i, j, min, max, value, type, unknown_flag; GetBitContext gb; if (q->sub_packet_list_B[0].packet == NULL) return; q->fft_coefs_index = 0; for (i = 0; i < 5; i++) q->fft_coefs_min_index[i] = -1; fo...
1threat
static int process_audio_header_elements(AVFormatContext *s) { int inHeader = 1; EaDemuxContext *ea = s->priv_data; ByteIOContext *pb = &s->pb; int compression_type; ea->num_channels = 1; while (inHeader) { int inSubheader; uint8_t byte; byte = get_byte(pb);...
1threat
Does yarn add package --build-from-source behave like npm install package --build-from-source when passing node-gyp flags to packages? : <p>It looks like <code>yarn</code> does not pass node-gyp flags to native packages the way <code>npm</code> does.</p> <p>For example when attempting to install sqlite3@3.1.6 with:</p...
0debug
static target_ulong put_tce_emu(sPAPRTCETable *tcet, target_ulong ioba, target_ulong tce) { sPAPRTCE *tcep; if (ioba >= tcet->window_size) { hcall_dprintf("spapr_vio_put_tce on out-of-boards IOBA 0x" TARGET_FMT_lx "\n", ioba); return...
1threat
How can I make user not allow to resize textarea? : <p>I have textarea in my website and i want to make user not allow to resize this textarea. But I use this languages only : php - html - jquery - javascript</p>
0debug
Alphabetical Palindrome Trinagle in Python : The word is "racecar" and this is the triangle I'm supposed to get:- e cec aceca racecar I'm using python 2.7 I'm trying to make it using for loops. Thank you.
0debug
how to send mail the fastest with linux : <p>What is the way of sending the fastest mail? I'm using mailx but the fastest comes in 2 min.</p> <pre><code>mailx -r "from" -s "UNIX OPERATIONS ALARM----&gt;$ipNo1 $subject alarmi hk." "to" </code></pre>
0debug
.net Core on Windows vs Linux : <p>ASP.Net Core runs on both Windows and Linux Docker containers. Considering Linux hosts are cheaper than Windows hosts, what is the benefit of running your app on IIS/Windows vs Nginx/Linux if one doesn't require the full .Net framework?</p>
0debug
static int process_ipmovie_chunk(IPMVEContext *s, AVIOContext *pb, AVPacket *pkt) { unsigned char chunk_preamble[CHUNK_PREAMBLE_SIZE]; int chunk_type; int chunk_size; unsigned char opcode_preamble[OPCODE_PREAMBLE_SIZE]; unsigned char opcode_type; unsigned char opcode_version; in...
1threat
static void virtio_blk_dma_restart_cb(void *opaque, int running, RunState state) { VirtIOBlock *s = opaque; if (!running) return; if (!s->bh) { s->bh = qemu_bh_new(virtio_blk_dma_restart_bh, s); qemu_bh_schedule(s->bh); } }
1threat
static int add_shorts_metadata(const uint8_t **buf, int count, const char *name, const char *sep, TiffContext *s) { char *ap; int i; int *sp = av_malloc(count * sizeof(int)); if (!sp) return AVERROR(ENOMEM); for (i = 0; i < count; i++) sp[i] ...
1threat
void av_dump_format(AVFormatContext *ic, int index, const char *url, int is_output) { int i; uint8_t *printed = ic->nb_streams ? av_mallocz(ic->nb_streams) : NULL; if (ic->nb_streams && !printed) return; av_log(NULL, AV_LOG_INFO, "%s #%d, %s, %s '%s':\n", ...
1threat
Intellij annoying formatting : Does exists solution for change method braces from https://i.stack.imgur.com/EzuY1.png to https://i.stack.imgur.com/iNDx0.png
0debug
static void do_interrupt_real(int intno, int is_int, int error_code, unsigned int next_eip) { SegmentCache *dt; uint8_t *ptr, *ssp; int selector; uint32_t offset, esp; uint32_t old_cs, old_eip; dt = &env->idt; if (intno * 4 + 3 > dt->limit) ...
1threat
C++ boolalpha confusion : <p>Hi anyone can explain the following c++ code result?</p> <pre><code>input: true false 1 output: false, true, true, #include &lt;iostream&gt; using namespace std; int main () { bool c1, c2, c3; cin &gt;&gt; c1 &gt;&gt; c2 &gt;&gt; c3; cout &lt;&lt; boolalpha &lt;&lt; c1 &lt;&lt...
0debug
static off_t v9fs_synth_telldir(FsContext *ctx, V9fsFidOpenState *fs) { V9fsSynthOpenState *synth_open = fs->private; return synth_open->offset; }
1threat
How to compare the length of a list in html/template in golang? : <p>I am trying to compare the length of a list in golang html/template. But it is loading forever in html.</p> <pre><code>{{ $length := len .SearchData }} {{ if eq $length "0" }} Sorry. No matching results found {{ end }} </code></pre> <p>Could any...
0debug
compare one value with four tables : <p>I am trying to compare ssn with four tables to find any unmatched ssn. i need assistance with sql query. thanks in advance</p>
0debug
how to Load a file in parallel arrays in java : i have a file that has 30 line of: month-day-year- gas price ex: May 02, 1994 1.04 can someone tell me how to load this file in a parallel arrays of months , days, price in java? because after this i will have to display the lowest price , and also the highest pri...
0debug
static void qemu_rbd_parse_filename(const char *filename, QDict *options, Error **errp) { const char *start; char *p, *buf, *keypairs; char *found_str; size_t max_keypair_size; Error *local_err = NULL; if (!strstart(filename, "rbd:", &start)) { ...
1threat
How to use backgroundworker with main thread functions? : I have some functions in my main thread, and I want to use them in the BackGroundWorker, the problem is that I can't reach to text boxes. I've seen many solutions but non of them worked. I've tried to implement some functions I've seen on web, unfortunately d...
0debug
static int conditional_wait(DBDMA_channel *ch) { dbdma_cmd *current = &ch->current; uint16_t wait; uint16_t sel_mask, sel_value; uint32_t status; int cond; DBDMA_DPRINTF("conditional_wait\n"); wait = le16_to_cpu(current->command) & WAIT_MASK; switch(wait) { case WAIT_...
1threat
Using docker-compose to set containers timezones : <p>I have a docker-compose file running a few Dockerfiles to create my containers. I don't want to edit my Dockerfiles to set timezones because they could change at any time by members of my team and I have a docker-compose.override.yml file to make local environment c...
0debug
Pytorch doesn't support one-hot vector? : <p>I am very confused by how Pytorch deals with one-hot vectors. In this <a href="https://pytorch.org/tutorials/beginner/blitz/cifar10_tutorial.html" rel="noreferrer">tutorial</a>, the neural network will generate a one-hot vector as its output. As far as I understand, the sche...
0debug
static void usbredir_buffered_bulk_packet(void *priv, uint64_t id, struct usb_redir_buffered_bulk_packet_header *buffered_bulk_packet, uint8_t *data, int data_len) { USBRedirDevice *dev = priv; uint8_t status, ep = buffered_bulk_packet->endpoint; void *free_on_destroy; int i, len; ...
1threat
Extract Last Word in String with Swift : <p>What is the way of extracting last word in a String in Swift? So if I have "Lorem ipsum dolor sit amet", return "amet". What is the most efficient way of doing this?</p>
0debug
void ff_avg_h264_qpel4_mc02_msa(uint8_t *dst, const uint8_t *src, ptrdiff_t stride) { avc_luma_vt_and_aver_dst_4x4_msa(src - (stride * 2), stride, dst, stride); }
1threat
Check if value is not on the list : <p>I don't want values from the <code>List&lt;string&gt;</code> to be used. </p> <p>For <code>List&lt;string&gt;</code> I have a function:</p> <pre><code>private List&lt;string&gt; GetManualColumns() { List&lt;string&gt; listColumns = new List&lt;string&gt;(); listColumns.Add("...
0debug
How not to mess up a customers SQL Database? : next week I will create some simple Select Queries for PowerBI for a new customer who wants to have more insight in his business. Until now I have only done this for our own company. I am afraid that by installing the SQL Server Management Studio and building some queri...
0debug
calculating current year and previous year and inserting it into a table in sql server : I have a data range in a table from '2014-06-01' to '2016-06-01'. How to show the values for current date and previous date in a table. Example: The value for the date '2015-01-01'(current year date) is 100 and in '2014-01-01'(pre...
0debug
unable to update on server bt it is working fine on localhost : not working real server but its working fine on localhost > $res=mysql_query("UPDATE ".$table_name." SET item_name='".$name."' > ,item_description='".$item."' ,item_price='".$price."' WHERE > id='".$id."'");
0debug
Error <indentifier> expected : could anyone help me fix this? Im trying to create a basic android app that opens a website on startup. This is my code so far, but im getting a "error <indentifier> expected" error. Im coding in android studio. <!-- begin snippet: js hide: false console: true babel: false --> <!-- ...
0debug
Node, Sequelize, Mysql - How to define collation and charset to models? : <p>Im using sequelize /w node and node-mysql.</p> <p>I create models using the sequelize-cli, and this is the result:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code...
0debug
<Grid> in material ui causes horizontal scroll- React : <p>i'm using material ui version 1. installed by this command:</p> <pre><code>npm install -S material-ui@next </code></pre> <p>every time i wanna use , an unwanted horizontal scroll appears in page. for example this is a simple code:</p> <pre><code>import React...
0debug
Template specialization vs. Function overloading : <p>The question is pretty simple. Is there any difference between:</p> <pre><code>template &lt;typename T&gt; T add(T a, T b) { return a + b; } template &lt;&gt; int add&lt;int&gt;(int a, int b) { return a + b; //no reason to specialize, but still... } </code...
0debug
ip_input(struct mbuf *m) { Slirp *slirp = m->slirp; register struct ip *ip; int hlen; DEBUG_CALL("ip_input"); DEBUG_ARG("m = %p", m); DEBUG_ARG("m_len = %d", m->m_len); if (m->m_len < sizeof (struct ip)) { return; } ip = mtod(m, struct ip *); if (ip->ip_v != IPVERSION) { goto bad; }...
1threat
hi,can anyone help how to push the data in xml view into the newly created json model? : can anyone help how to push the data in xml view into the newly created json model,i have created the comboBox and retrieved the data from json model and also created the text area when i select the item in combo box and insert dat...
0debug
C program with a function which checks if integer A contains integer B ( let's say, A=2345, B=4, in which case it int A does contain int B ) : #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int funkcija(int num, int num2) { int doesContain; if (does...
0debug
void visit_type_size(Visitor *v, uint64_t *obj, const char *name, Error **errp) { int64_t value; if (v->type_size) { v->type_size(v, obj, name, errp); } else if (v->type_uint64) { v->type_uint64(v, obj, name, errp); } else { value = *obj; v->type_int64(v, &valu...
1threat
How to check if Apple Maps is installed : <p>Anyone aware how to check whether Apple Maps is installed or not? I could not find anything in the docs.</p> <p>With iOS10 users can delete the Apple Maps application. While for Google Maps we can use <code>UIApplication.shared.canOpenURL()</code> to check if it's installed...
0debug
How to remove characters from a column and then split the column in R : <p>I have a df called <code>Violations</code>. One of its columns, <code>Violations$Location</code>, has lat, long coordinates written like this for eg.: <code>POINT (-7423249 453982)</code>. I just want to remove the <code>"POINT "</code> and the...
0debug
I'm trying to get the title for this website using BeautifulSoup but i keep getting a type error, how do i fix this? : import requests import bs4 as BeautifulSoup page = requests.get('https://www.basketball-reference.com/friv/dailyleaders.fcgi') soup = BeautifulSoup( page.content, 'html-parser') print (soup.t...
0debug
How to install pymysql on AWS lambda : <p>I've looked <a href="https://github.com/cleesmith/get_html_head_title_tag" rel="noreferrer">here</a> and <a href="http://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html" rel="noreferrer">here</a> as I've been trying to work out how to ge...
0debug
void ptimer_run(ptimer_state *s, int oneshot) { bool was_disabled = !s->enabled; if (was_disabled && s->period == 0) { fprintf(stderr, "Timer with period zero, disabling\n"); return; } s->enabled = oneshot ? 2 : 1; if (was_disabled) { s->next_event = qemu_clock_get...
1threat
void FUNC(ff_simple_idct_put)(uint8_t *dest_, int line_size, DCTELEM *block) { pixel *dest = (pixel *)dest_; int i; line_size /= sizeof(pixel); for (i = 0; i < 8; i++) FUNC(idctRowCondDC)(block + i*8); for (i = 0; i < 8; i++) FUNC(idctSparseColPut)(dest + i, line_size, ...
1threat
static int read_password(char *buf, int buf_size) { uint8_t ch; int i, ret; printf("password: "); fflush(stdout); term_init(); i = 0; for(;;) { ret = read(0, &ch, 1); if (ret == -1) { if (errno == EAGAIN || errno == EINTR) { continue;...
1threat
Problems with Uploading Script : <p>I have a simple script that can upload files on my server and insert the details into database.</p> <p>With code below I am getting two errors..</p> <ol> <li><p>"Notice: Undefined variable: sExt in" .. I tried to fix the issue with if empty statement, but without sucess..</p></li> ...
0debug
Supporting Multiple Screens single layout : <p>I'm developing an app in android and I have to support all different screen sizes and density. Without created different folder for layout : layout-small layout-large and layout.</p>
0debug
Inner Join of three tables with dirty data in MS SQL : I have three tables, T1, T2, T3 T1 has fields A, B, C T2 has fields C, D, E T3 has fields E, F, G The idea is to inner join all of them to get table T T must have fields A, B, C, D, E, F, G I already now how to do the join of three tables, the problem...
0debug
static void cpu_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); CPUClass *k = CPU_CLASS(klass); k->class_by_name = cpu_common_class_by_name; k->reset = cpu_common_reset; k->get_arch_id = cpu_common_get_arch_id; k->get_paging_enabled = cpu_common_get_p...
1threat
How should I use ArrayList<HashMap<String, String>> for adding text data as well as images? : Please help me out guys! What I am trying to do is create an android application to store and retrieve user details. I had completed developing the logic for storing the details. But while retrieving I am a bit confused regard...
0debug
value of steps per epoch passed to keras fit generator function : <p>What is the need for setting <code>steps_per_epoch</code> value when calling the function fit_generator() when ideally it should be <code>number of total samples/ batch size</code>? </p>
0debug
postgresql password encryption whether to use crypt or not : I have gone through postgresql crypt() function documentation . This function is provided as extension for postgresql . If i migrate my data to another database will the passwords still be evaluated properly or not ?. using same encryption algorithm...
0debug
What is the time complexity of the following code in which a variable jumps multiple of 2? : int i, j, k = 0; for (i = n/2; i <= n; i++) { for (j = 2; j <= n; j = j * 2) { k = k + n/2; } } Here the outer loop runs exactly n/2 times and then in the...
0debug
static ssize_t local_llistxattr(FsContext *ctx, const char *path, void *value, size_t size) { ssize_t retval; ssize_t actual_len = 0; char *orig_value, *orig_value_start; char *temp_value, *temp_value_start; ssize_t xattr_len, parsed_len = 0, attr_len; i...
1threat
static inline void FUNC(idctSparseColPut)(pixel *dest, int line_size, DCTELEM *col) { int a0, a1, a2, a3, b0, b1, b2, b3; INIT_CLIP; IDCT_COLS; dest[0] = CLIP((a0 + b0) >> COL_SHIFT); dest += line_size; dest[0] = CLIP((a1 + b1) >> COL_SHIFT);...
1threat
What's wrong? I can't seem to close this code out : <p>I cant figure out how to close this out properly, no matter where i add a bracket it breaks the code. I appreciate the help, thanks :)</p> <pre><code> int NewID = Convert.ToInt32(Adapter.InsertQuery()); // new relationship id if (!Session.Ge...
0debug
What's the docker-compose equivalent of docker run --init? : <p>According to <a href="https://github.com/krallin/tini#using-tini" rel="noreferrer">https://github.com/krallin/tini#using-tini</a>, tini is built into docker, and can be used by passing the <code>--init</code> flag to <code>docker run</code>. In my case I'...
0debug
What is the correct way of fetching data from web api periodically in background even if android app is closed? : I want to create an android app which should fetch data from a WEB-API after equal intervals of time (lets say after every five minutes) even if my app is closed. Also it should generate the notifications i...
0debug
How can i add custome field in wordpress in post in twenty seventeen theme : I am looking for solution to find out my problem on how to add custome field in post in twenty seventeen theme in wordpress. Help me solve out this problem in wordpress twenty seventeen theme.
0debug
Can I make a application frontend for smartphones using Python? : <p>I've done a little predictive program with Python and I would like to transform it in an application for smartphones. Can I accomplish it with Python itself, or should I use another language? If yes, what APIs would you recommend for that?</p> <p>Tha...
0debug
C++ Verify the first input of two on the same line : <pre><code>string a, b; cin &gt;&gt; a &gt;&gt; b; if (a == "yes") break; ... </code></pre> <p>Why does this not work the way it looks like it should work? If the user enters "yes please" or "yes" the program should break out of whatever loop it's in, but that's not...
0debug
static int pl110_init(SysBusDevice *dev) { pl110_state *s = FROM_SYSBUS(pl110_state, dev); memory_region_init_io(&s->iomem, &pl110_ops, s, "pl110", 0x1000); sysbus_init_mmio(dev, &s->iomem); sysbus_init_irq(dev, &s->irq); qdev_init_gpio_in(&s->busdev.qdev, pl110_mux_ctrl_set, 1); s->con...
1threat
external link does not work in IIS express. How do I get links to reach internet? : Ok so when you click a link in my web app it just adds to the URL to the end. like so "http://localhost:8080/http//:www.youtube.com". I'm using visual studio .netto make web rest APIs. The web app lunches on IIS express 10. the home pag...
0debug