problem
stringlengths
26
131k
labels
class label
2 classes
static int buffered_get_fd(void *opaque) { QEMUFileBuffered *s = opaque; return qemu_get_fd(s->file); }
1threat
int net_init_bridge(const NetClientOptions *opts, const char *name, NetClientState *peer, Error **errp) { const NetdevBridgeOptions *bridge; const char *helper, *br; TAPState *s; int fd, vnet_hdr; assert(opts->type == NET_CLIENT_OPTIONS_KIND_BRIDGE); bridge = opts->...
1threat
Can't remove .I. AND ..I. files : <p>could you suggest any idea how to remove two files from filesystem:<br> <strong>..I.</strong><br> and<br> <strong>.I.</strong><br> ?? <br> While experimenting I created them with command<br> <strong>$ git touch .I.</strong><br> I tried to use these commands:<br> <strong>$ git rm .I....
0debug
static int decode_ref_pic_marking(H264Context *h){ MpegEncContext * const s = &h->s; int i; if(h->nal_unit_type == NAL_IDR_SLICE){ s->broken_link= get_bits1(&s->gb) -1; h->mmco[0].long_index= get_bits1(&s->gb) - 1; if(h->mmco[0].long_index == -1) h->mmco_index=...
1threat
How do I Intentionally cause a database validation error on insert : <p>I am trying to cause a database validation error when inserting into (or editing) the database to test the try/catch</p> <p>C# is too smart and catches my type casting errors.</p>
0debug
static void net_socket_send(void *opaque) { NetSocketState *s = opaque; int size, err; unsigned l; uint8_t buf1[NET_BUFSIZE]; const uint8_t *buf; size = qemu_recv(s->fd, buf1, sizeof(buf1), 0); if (size < 0) { err = socket_error(); if (err != EWOULDBLOCK) ...
1threat
Apple File System (APFS) Check if file is a clone on Terminal (shell) : <p>With macOS High Sierra a new file system is available: APFS.</p> <p>This file system supports clone operations for files: No data duplication on storage.</p> <p><code>cp</code> command has a flag (-c) that enables cloning in Terminal (shell).<...
0debug
Converting each individual letter of a string to ASCII equivalent - Python : <p>How would one write a code to display the conversion of individual letters in a string to it's ASCII equivalent? One example of the output in shell would look like this:</p> <pre><code>Enter a 3-letter word: Hey H = 72 e = 101 y = 121 </co...
0debug
Extracting data from a web page to excel sheet : Is there anyone who knows how I can extract information from a web page into an excel sheet. The website is https://www.proudlysa.co.za/members.php and I would like to extract all the companies listed there and all their respective information and put it into an excel fi...
0debug
What is the difference between retq and ret? : <p>Let's consider the following program, which computes an unsigned square of the argument:</p> <pre><code>.global foo .text foo: mov %rdi, %rax mul %rdi ret </code></pre> <p>This is properly compiled by <code>as</code>, but disassembles to </p> <pre><code>0...
0debug
what are python closures good for? : <p>I understand the technical definition of python closures: let's make it concrete.</p> <pre><code>def foo(x): def bar(y): print(x+y) return bar </code></pre> <p>In this example <code>x</code> will get bound with <code>bar</code>. But what are these things actuall...
0debug
Java - make class required for other class : <p>i have 2 class, planet and moon, my plan is to make moon class require planet class, so first i create planet and then create moon, how to do it? my planet class :</p> <pre><code>public class planet { //planet name private String namaPlanet; //total moon per ...
0debug
nil slices vs non-nil slices vs empty slices in Go language : <p>I am a newbee to Go programming. I have read in go programming book that slice consists of three things: a pointer to an array, length and capacity.</p> <p>I am getting confused between nil slices(slice has no underlying array to point to, len = 0,cap=0)...
0debug
how to use array_push() : <p>I want to push new data in array which each value of them.</p> <pre><code>$array = array("menu1" =&gt; "101", "menu2" =&gt; "201"); array_push($array, "menu3" =&gt; "301"); </code></pre> <p>But I got an error syntax.</p> <p>And if I use like this :</p> <pre><code>$array = array("menu1"...
0debug
gitlab-ci SSH key invalid format : <p>I would like run deploy script with gitlab-ci, but step ssh-add <code>$SSH_PRIVATE_KEY</code> return an error :</p> <pre><code>echo "$SSH_PRIVATE_KEY" | ssh-add - Error loading key "(stdin)": invalid format </code></pre> <p>You can see my <code>.gitlab-ci.yml</code> :</p> <pre><...
0debug
What is the downside of using one-line if statements? : <p>I see most code-bases using bracketed if-statements in all cases including cases in which only one statement needs to be executed after the if.</p> <p>Are there any clear benefits to always using bracketed if-statements or has it just become a standard over ti...
0debug
2 simple "unresolved identitier" errors that I can't fix in Swift : <p>I am a Swift beginner currently following an Apple Intro to Developing iOS Apps in Swift tutorial. I have the follow error codes " Use of unresolved identifier 'UIImagePickerController' " and "Use of unresolved identifier 'imagePickController' " on ...
0debug
How to put a simple passsword on SQLIte database like other database? : I am asking about just put password not encryption using [SQLClipher][1] or SEE or AES but when I want to access file I need come password like 'VISHAL' or Nothing else [1]: https://www.zetetic.net/sqlcipher/
0debug
Change image color dynamically : <p>I have a .png or .jpeg image. I want to change the color of the image ( previously may be it was white I want to change it to red ) according to the theme selected. How can I do this. </p>
0debug
I want to get all the group(key) in my spinner then after that school no(key) into another spinner from firebase database : I'm a beginner & currently in a learning phase, please help me with this problem This post might look like a duplicate to you but it's none of the previous questions had this much keys. I wa...
0debug
static int bitpacked_decode_yuv422p10(AVCodecContext *avctx, AVFrame *frame, AVPacket *avpkt) { uint64_t frame_size = (uint64_t)avctx->width * (uint64_t)avctx->height * 20; uint64_t packet_size = avpkt->size * 8; GetBitContext bc; uint16_t *y, *u, *v; int...
1threat
How to get Coursera API Docs ? : <p>Hi I want to use Coursera API for a tech blog purpose, like retrieving list of courses (course details, course duration , etc...) I try in coursera website to enroll for their developer program : <a href="https://building.coursera.org/developer-program/" rel="noreferrer">https://bu...
0debug
How to disable input text while the radio button is checked in javascript? : <label for="position"><b>Position:</b></label><br/><br/> <input type="radio" name="position" id="r1" value="Dean" />Dean <input type="radio" name="position" id="r2" value="Instructor"/>Instructor <input type="radio" name="position" id="r3" ...
0debug
static av_cold int atrac3_decode_init(AVCodecContext *avctx) { int i, ret; int version, delay, samples_per_frame, frame_factor; const uint8_t *edata_ptr = avctx->extradata; ATRAC3Context *q = avctx->priv_data; if (avctx->channels <= 0 || avctx->channels > 2) { av_log(avctx, AV_LOG_E...
1threat
jquery not sending date in query string : i have this html code. <form class="" role="form"> <div class="col-lg-2"> <div class="form-group"> <label for="streams">Select Stream</label> <select name="streams" id="streams" class="form-control"> <option ...
0debug
convert TextField to Var Int (swift) : <p>Hi Im new to swift programming. I would like to get the input of a textfield, convert it to an int and then work with that int (decreasing it). Here is my code:</p> <pre><code> @IBOutlet weak var minutes: UITextField! @IBOutlet weak var seconds: UITextField! @IBOutlet weak ...
0debug
JAVA - How do I generate a random number that is weighted towards certain numbers? : <p>How do I generate a random number in Java, (using Eclipse) that is weighted towards certain numbers?</p> <p>Example, I have 100 numbers, each can be equally chosen 1% of the time. However, if a certain number, lets say 5, is displa...
0debug
Why comparing strings inside a method doesn't work? : <p>I've got 2 classes, object of the second class is created inside the first class. I'm using next() method to increase the value of seconds, then I want to check if its value is 0 and cannot get through by using .equals("0") method. </p> <p>I'm writing in Eclipse...
0debug
static int dvdsub_decode(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { DVDSubContext *ctx = avctx->priv_data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; AVSubtitle *sub = data; int is_menu; if...
1threat
Ruby Alphabet Upcase : So i can print the alphabet in Ruby. alphabet = (a..z) I can convert strings into Uppercase string.upcase However I can't figure out the right syntax to print the alphabet in uppercase. I have the below code, which maps a frequency count to the displayed alphabet, I just...
0debug
hqo can i make a correct regex in dajngo? : I need to make regex to make a button witch put me on other website this is my re_path: re_path (r'^detaletournament(?P<turnament_id>[0-9]+)/$',detaletournament) Using the URLconf defined in projekt.urls, Django tried these URL patterns, in this order: admin/ tir ...
0debug
def overlapping(list1,list2): c=0 d=0 for i in list1: c+=1 for i in list2: d+=1 for i in range(0,c): for j in range(0,d): if(list1[i]==list2[j]): return 1 return 0
0debug
Deploy a specific directory to npm with Travis-CI : <p>I want to deploy the <code>dist</code> folder after success. But instead, it keeps deploying the whole repository.</p> <p>What I want to achieve is the same effect with:</p> <pre><code>npm publish dist </code></pre> <p>Here is the related part from my <code>.tra...
0debug
How To Compile An Electron Application To A .exe : <p>I've been learning how to create applications in <a href="http://electron.atom.io/" rel="noreferrer">Electron</a> and I need help compiling a simple project to a Windows executable. The program is a clone from this Github repo: <a href="https://github.com/electron/e...
0debug
Simulate Lens flare and chromatic aberration using python : <p>I have a set of images. I have to use them for training a network. I want to simulate a lens flare effect and chromatic aberration on the images. I have tried to find some function in OpenCV, scikit and other python image library but no help from there. How...
0debug
target_ulong helper_dvpe(CPUMIPSState *env) { CPUMIPSState *other_cpu = first_cpu; target_ulong prev = env->mvp->CP0_MVPControl; do { if (other_cpu != env) { other_cpu->mvp->CP0_MVPControl &= ~(1 << CP0MVPCo_EVP); mips_vpe_sleep(other_cpu); } ...
1threat
Illegal instruction(core dumped) tensorflow : <p>I am importing tensorflow in my ubuntu python using following commands-</p> <pre><code>$ python3 Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import tens...
0debug
Piping not working with echo command : <p>When I run the following <code>Bash</code> script, I would expect it to print <code>Hello</code>. Instead, it prints a blank line and exits.</p> <pre><code>echo 'Hello' | echo </code></pre> <p>Why doesn't <code>piping</code> output from <code>echo</code> to <code>echo</code>...
0debug
DECL_IMDCT_BLOCKS(sse,sse) #endif DECL_IMDCT_BLOCKS(sse2,sse) DECL_IMDCT_BLOCKS(sse3,sse) DECL_IMDCT_BLOCKS(ssse3,sse) #endif #if HAVE_AVX_EXTERNAL DECL_IMDCT_BLOCKS(avx,avx) #endif #endif av_cold void ff_mpadsp_init_x86(MPADSPContext *s) { int cpu_flags = av_get_cpu_flags(); int i, j; fo...
1threat
int MPA_encode_init(AVCodecContext *avctx) { MpegAudioContext *s = avctx->priv_data; int freq = avctx->sample_rate; int bitrate = avctx->bit_rate; int channels = avctx->channels; int i, v, table; float a; if (channels > 2) return -1; bitrate = bitrate / 1000; s->...
1threat
It always returns the none value but I want to print the bool in result : [It always returns the none value but I want to print the bool in result][1] [1]: https://i.stack.imgur.com/iRJum.png
0debug
destructor c++ make leak memory : <p>I'm having a hard time figuring out how this destructor call</p> <p>So I have class A with virtual destructor and inline virtual clone function</p> <pre><code>class A{ public: A(){ } virtual ~A(){ qDebug() &lt;&lt; "Class A destructor"; } inline virtual A ...
0debug
How to print data from a block of data? : I am trying to read a file as a block of data and then get certain values from that data and store them in a struct, and I don't understand the professor's example. I have a header file that contains a struct: #ifndef _STRUC_H #define _STRUC_H #define NAM...
0debug
How to remove all git origin and local tags? : <p>How do you remove a git tag that has already been pushed? Delete all git remote (origin) tags and Delete all git local tags.</p>
0debug
uint32_t HELPER(ucf64_get_fpscr)(CPUUniCore32State *env) { int i; uint32_t fpscr; fpscr = (env->ucf64.xregs[UC32_UCF64_FPSCR] & UCF64_FPSCR_MASK); i = get_float_exception_flags(&env->ucf64.fp_status); fpscr |= ucf64_exceptbits_from_host(i); return fpscr; }
1threat
Python: ImportError: No module named 'HTMLParser' : <p>I am new to Python. I have tried to ran this code but I am getting an error message for ImportError: No module named 'HTMLParser'. I am using Python 3.x. Any reason why this is not working ?</p> <pre><code>#Import the HTMLParser model from HTMLParser import HTMLPa...
0debug
Eclipse progra does not run with no errors : So i need to create a program for the user to input match scores and exit by inputting "exit" when prompted. However this code does not run even though there is no errors package Main; import java.util.Scanner; public class Assignment { public static...
0debug
static MemoryRegionSection phys_page_find(target_phys_addr_t index) { uint16_t *p = phys_page_find_alloc(index, 0); uint16_t s_index = phys_section_unassigned; MemoryRegionSection section; target_phys_addr_t delta; if (p) { s_index = *p; } section = phys_sections[s_index];...
1threat
this code for loop and set-interval not work : i try to make a count that count from 10 to 0 by JavaScript with loop function and set interval but not work for me this is a html file <div id="countDown">10</div> this is the JavaScript code var numbers = document.getElementById('countDown'); function count() ...
0debug
Need to optimize a webpage for a course and the timeline shows this function as causing a forced sunchronous : Need to fix this piece of code in Javascript which is causing a forced synchronous layout. Any ideas or help as to how? function updatePositions() { frame++; window.performance.mark("mark_sta...
0debug
Persistent profile error in Google Chrome : <p>When I open Google Chrome I constantly get the error "A PROFILE ERROR OCCURRED: Something went wrong when opening your profile. Some features may be unavailable". Further, when I close Chrome, it will then refuse to open again unless I log out and log back in. This problem...
0debug
static void virtio_net_add_queue(VirtIONet *n, int index) { VirtIODevice *vdev = VIRTIO_DEVICE(n); n->vqs[index].rx_vq = virtio_add_queue(vdev, n->net_conf.rx_queue_size, virtio_net_handle_rx); if (n->net_conf.tx && !strcmp(n->net_conf.tx, "timer")) { ...
1threat
static void tci_out_label(TCGContext *s, TCGArg arg) { TCGLabel *label = &s->labels[arg]; if (label->has_value) { tcg_out_i(s, label->u.value); assert(label->u.value); } else { tcg_out_reloc(s, s->code_ptr, sizeof(tcg_target_ulong), arg, 0); tcg_out_i(s, 0); } }...
1threat
def count_X(tup, x): count = 0 for ele in tup: if (ele == x): count = count + 1 return count
0debug
def remove_negs(num_list): for item in num_list: if item < 0: num_list.remove(item) return num_list
0debug
app.get - is there any difference between res.send vs return res.send : <p>I am new to node and express. I have seen app.get and app.post examples using both "res.send" and "return res.send". Are these the same? </p> <pre><code>var express = require('express'); var app = express(); app.get('/', function(req, res) { ...
0debug
How to bubble up angular2 custom event : <p>Parent template:</p> <pre><code>&lt;ul&gt; &lt;tree-item [model]="tree" (addChild)="addChild($event)"&gt;&lt;/tree-item&gt; &lt;/ul&gt; </code></pre> <p>Tree item template:</p> <pre><code>&lt;li&gt; &lt;div&gt;{{model.name}} &lt;span [hidden]="!isFolder" (click)="...
0debug
What is wrong in this code php? : <p>What is wrong in this code php ? netbeans 8.1 program have been tried and when I write $ _GET problem that occurs</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre class="snippet-code-html lang-ht...
0debug
Updating Column Values using DateLine : <p>Here is my sql table</p> <pre><code>create table Poll_Question_Table ( PollQuestionId int primary key, PollQuestionTex varchar(max), PollStatus int , PollStartDate date, PollEndDate date ) </code></pre> <p>i Want to change th status value from 1 to 0 if the current date pass...
0debug
Is there any process of running application after terminate in ios? : I was developing application which trigger some function every time after application is terminate but in iOS I havent found any solution for this process. Can anyone suggest me the process to run application after terminate application in iOS.
0debug
int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx) { int ret; if ((ret = graph_check_validity(graphctx, log_ctx))) if ((ret = graph_insert_fifos(graphctx, log_ctx)) < 0) if ((ret = graph_config_formats(graphctx, log_ctx))) if ((ret = graph_config_links(graphctx, log_ctx))) ...
1threat
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = ...
1threat
Convert String containing bytes to Noramal String in java : I am having String containing bytes and i want to convert it to normal String but getting exception String a ="[B@45466625</"; byte[] btDataFile = new sun.misc.BASE64Decoder().decodeBuffer(a); String b = new String(btDataFile); System.out.prin...
0debug
Concatenate string and int : <p>I want to concatenate integer and string value, where integer is in a 2D list and string is in a 1D list.</p> <pre><code>['VDM', 'MDM', 'OM'] </code></pre> <p>The above mentions list is my string list.</p> <pre><code>[[1, 2, 3, 4, 5], [1, 2, 3, 4, 5], [1, 2, 3, 4, 5]] </code></pre> <...
0debug
What does '->' mean in python? : <p>All,</p> <p>Can you please tell me what this line means in Python? I don't know if I'm using it properly. </p> <p>def read_places_file(filename) -> List[PlaceInformation]: </p> <p>We are defining a method that takes a parameter called, 'filename'. And then what does the rest of...
0debug
Get the Text of a specific Textbox (not all) inside a Panel control : <p>How can I get the text from a Textbox and only this Textbox inside a Panel control in a visual studio Form. Panel is Panel1 and Textbox is txtbox. Thank you.</p>
0debug
Significance of trivial destruction : <p>In C++17, the new <code>std::optional</code> mandates that it be trivially destructible if <code>T</code> is trivially destructible in [optional.object.dtor]:</p> <blockquote> <p><code>~optional();</code><br> 1 <em>Effects</em>: If <code>is_trivially_destructible_v&lt;T&gt;...
0debug
C++ primer array? : It might be a boring question! thanks! Here's the code: #include <iostream> #include <cstring> using namespace std; int main() { int a[5] = {0}; int b[5]; cout << a << endl; cout << b << endl; ...
0debug
Intellij gradle - using explicit module groups VS using qualified names : <p>I am trying to create a Gradle Java application.</p> <p>In the New Project wizard, two options are available: </p> <ul> <li>using explicit module groups</li> <li>using qualified names</li> </ul> <p>What do those two options mean? What are ...
0debug
Why did this guy use '\\n' : Ok so i was watching a python 3 tutorial about how to download a file and this is what it kinda looks like from urllib import request import requests goog="http://realchart.finance.yahoo.com/table.csvs=GOOG&d=8&e=7&f=2016&g=d&a=7&b=19&c=2004&ignore=.csv" rp=requ...
0debug
static void vfio_vga_probe_ati_3c3_quirk(VFIOPCIDevice *vdev) { VFIOQuirk *quirk; if (!vfio_pci_is(vdev, PCI_VENDOR_ID_ATI, PCI_ANY_ID) || !vdev->bars[4].ioport || vdev->bars[4].region.size < 256) { return; } quirk = g_malloc0(sizeof(*quirk)); quirk->mem = g_m...
1threat
What is Default value of array on heap in c++? : <p>When I print the default value of array on heap memory I'm getting random big numbers in code block. I know that the default value of array is 0 but I am getting random number . </p>
0debug
Can I Have Redux-Saga and Redux-Thunk Working Together? : <p>I was working with redux-saga but I'm with a problem: the redux-auth-wrapper needs the redux-thunk to do the redirects, so I simply added the thunk in my store:</p> <pre><code> import {createStore, compose, applyMiddleware} from 'redux'; import createLogg...
0debug
How to change screen on rotation : <p>I would like to change the View(to new xml with activity) when I rotate the screen on android studio. </p> <p>Is there anyway I can do this?</p>
0debug
What perl web framework to use for the old CGI based perl code? : <p>Yes, while i'm working on node.js, i still love perl, :)</p> <p>The old web product is based on old perl CGI, i'm looking to the simplest way to fix XSS/Sql injection/etc. web security holes, within a week including testing, :(</p> <p>So for Catalys...
0debug
static void process_incoming_migration_bh(void *opaque) { Error *local_err = NULL; MigrationIncomingState *mis = opaque; bdrv_invalidate_cache_all(&local_err); if (!local_err) { blk_resume_after_migration(&local_err); } if (local_err) { error_report_err(local_e...
1threat
How to set Azure SQL to rebuild indexes automatically? : <p>In on premise SQL databases, it is normal to have a maintenance plan for rebuilding the indexes once in a while, when it is not being used that much.</p> <p>How can I set it up in Azure SQL DB?</p> <p>P.S: I tried it before, but since I couldn't find any opt...
0debug
Golang struct inheritance not working as intended? : <p>Check out <a href="https://play.golang.org/p/elIHgHAZjT" rel="noreferrer" title="this sandbox">this sandbox</a></p> <p>When declaring a struct that inherits from a different struct:</p> <pre><code>type Base struct { a string b string } type Something st...
0debug
What do unit tests not test? : <p>I was asked this in an interview, I have always read about what unit tests do, but what do they not do?</p> <p><a href="https://stackoverflow.com/questions/67299/is-unit-testing-worth-the-effort">Is Unit Testing worth the effort?</a></p> <p>Any insights? Thanks!</p>
0debug
Python : save dictionaries through numpy.save : <p>I have a large data set (millions of rows) in memory, in the form of <strong>numpy arrays</strong> and <strong>dictionaries</strong>. </p> <p>Once this data is constructed I want to store them into files; so, later I can load these files into memory quickly, without ...
0debug
static void xics_reset(void *opaque) { struct icp_state *icp = (struct icp_state *)opaque; struct ics_state *ics = icp->ics; int i; for (i = 0; i < icp->nr_servers; i++) { icp->ss[i].xirr = 0; icp->ss[i].pending_priority = 0; icp->ss[i].mfrr = 0xff; q...
1threat
Please, help: Can't create xcarchive to ipa with xcode 9? : I am trying to convert my xcarchive to ipa. I tried using these advise with no success: https://stackoverflow.com/questions/14934808/how-to-convert-xcarchive-to-ipa-for-client-to-submit-app-to-app-store-using-ap I am an absolute beginner to Mac and Apple Pr...
0debug
How to access :cause, :via and :trace keys of an exception in Clojure? : <p>I could not find a way to access <code>:cause, :via and :trace</code> keys of an exception.</p> <p>Here is the code:</p> <pre><code>(try (throw (IllegalArgumentException. "1")) (catch Exception e e)) </code></pre> <p>Output:</p> <pr...
0debug
VBA With SQl Quereis : I work in a FMCG company, I work in data department almost with reports so i on daily basis have to refresh a SQL query to get the updated data of yesterday's sales and transactions on excel environment So now i have an idea, Why do not i design a report that can be automatically updated from s...
0debug
Bitset membership function : <p>I'm writing a bitset membership predicate which should handle all values of x:</p> <pre><code>int Contains(unsigned int A, int x) { return (x &gt;= 0) &amp;&amp; (x &lt; 8 * sizeof A) &amp;&amp; (((1u &lt;&lt; x) &amp; A) != 0); } </code></pre> <p>Is there a more efficient implemen...
0debug
static void raw_aio_flush_io_queue(BlockDriverState *bs) { #ifdef CONFIG_LINUX_AIO BDRVRawState *s = bs->opaque; if (s->use_aio) { laio_io_unplug(bs, s->aio_ctx, false); } #endif }
1threat
How to get the local ip address using php? : <p>I 'm creating a web app in which i need to save the sessions in the database including the Ip address of the user and the date and time of the session , for that i want to know how to do that ,knowing that the app will be used in LAN . i 'm using codeIgniter framework.</p...
0debug
Using MS SQL how to use select criteria based on sum : Given the below table and using SQL (sql-server preferred), how can I do a select so that only the ProductID's that sum to the first 200 orders or less is returned. In other works, I'd like ID's for 'Corn Flakes', 'Wheeties' returned since this is close to the sum ...
0debug
void op_dmfc0_ebase (void) { T0 = env->CP0_EBase; RETURN(); }
1threat
CondaValueError: The target prefix is the base prefix. Aborting : <p>I have the following conda environment file <code>environment.yml</code>:</p> <pre><code>name: testproject channels: - defaults dependencies: - python=3.7 prefix: /opt/projects/testproject </code></pre> <p>Before creating the environment, only the b...
0debug
i am android studio beginner...see this guys please clear that : In android studio..., I have two java files First one is extends AppCompactActivity And second one extends SQLiteDataBaseHelper So this is the question.., Can i access an EditText variable from first one to second one
0debug
Check any new Latitude and Longitude is within 100 meter range or not? from my current location : <p>I have data set with shops Latitude and Longitude, how do i find shops in 100 meter range from my current location(latitude,longitude)?</p>
0debug
PostgreSQL Why where does not work with age function : I use age function in where but i don't know why it dose not work ``` select t1.id,date_part('year',age(t1.tdate,t2.birthday)) as age FROM table t1 LEFT JOIN table2 t2 ON t1.id = t1.id WHERE date_part('year',age(t1.tdate,t2.birthday)) >= 10 ``` the...
0debug
Insert record into two Sql table : [This is First table of database and it is in relation with second table ][1] [This is the Second Table][2] [1]: http://i.stack.imgur.com/yqQHq.png [2]: http://i.stack.imgur.com/gG59m.png but i want to do that when user get logged in he/she will give answers of quest...
0debug
Deprecation: Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware is deprecated : <p>I'm using Symfony 4.3.8 and I can't find any information about thoses deprecations :</p> <blockquote> <p>User Deprecated: Creating Doctrine\ORM\Mapping\UnderscoreNamingStrategy without making it number aware ...
0debug
Formatting LocalDate in Java : <p>I defined the following format in Java :</p> <pre><code>//define format of YYYYMMDD private final DateTimeFormatter dtf = DateTimeFormatter.BASIC_ISO_DATE; </code></pre> <p>My application fetches a certain date from the calendar:</p> <pre><code>LocalDate localDate = fetchDate(); // ...
0debug
Showing step by step solving of sudoku : <p>Is there any way to show the steps of solving a sudoku? My code just solve it within 0.5 second and I wish to modify it to show the changes on the sudoku grid step by step on processing. (I am using python)</p>
0debug
save switch state even if the app gets restarted : I am trying to save the switch statement in objective-c but it will go back to the default state (which is off) whenever I reopen the app or go to another page and come back to the page that has switch @property (strong, nonatomic) IBOutlet UISwitch *switch1; ...
0debug
How to use regexp to extract the digit within { customer:490 } bought a car { car:6441 } : <p>I have a json object with value in this pattern: { customer:1501 } bought a car { car:6333 } How to use regexp to extract the digit of customer and car. I am very new to regex, I can only extract the string between the curly b...
0debug
onmouseover not working with React.js : <p>The click event works fine, but the onmouseover event does not work. </p> <pre><code>ProfImage = React.createClass({ getInitialState: function() { return { showIcons: false }; }, onClick: function() { if(this.state.showIcons == true) { ...
0debug