problem
stringlengths
26
131k
labels
class label
2 classes
How can stop show notification when chat activity is already opened using firebase in android? : <p>I want to stop show notification when chat activity is already opened.</p>
0debug
List of values to list of strings : <p>How to convert it:</p> <pre><code>var values = new List&lt;object&gt; { 1, 5, "eeE", MyEnum.Value }; </code></pre> <p>To</p> <pre><code>var stringValues = new List&lt;object&gt; { "1", "5", "eeE", MyEnum.Value.ToString() }; </code></pre> <p>But do it in fast way? </p>
0debug
Use if in sql-server : I have a small query in my stored procedure: (case when t.status =4 and (select top 1 nd.status from tableND nd where nd.Code= t.Code order by nd.ID desc)=4 then 6 else t.status end) as status from tableTC t The problem is the speed performance too slow. So, I wanna change it into anot...
0debug
java pattern ....code for the pattern : 1 1 2 1 1 3 3 1 n lines the logic i made import java.io.*; class pat { public static void main(String[] args)throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); int n,p=0; S...
0debug
static int32_t scsi_send_command(SCSIRequest *req, uint8_t *buf) { SCSIDiskReq *r = DO_UPCAST(SCSIDiskReq, req, req); SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, req->dev); int32_t len; uint8_t command; uint8_t *outbuf; int rc; command = buf[0]; outbuf = (uint8_t *)r->io...
1threat
static void do_change(const char *device, const char *target, const char *fmt) { if (strcmp(device, "vnc") == 0) { do_change_vnc(target); } else { do_change_block(device, target, fmt); } }
1threat
Hi,Do you encounter some problems about linux version and jdk version is not compatible : the same code ,when I use maven to package codes on the linux Linux 6.0.10,the final jar can not run successful,but I do this on Linux 8 ,it works well The jdk version is 1.8 Exception as following: org.springframework.be...
0debug
How to connect to the DB with DBIx::Class without repeating connection details? : https://metacpan.org/pod/distribution/DBIx-Class/lib/DBIx/Class/Manual/Intro.pod suggest to connect to the DB as the following: my $schema = MyApp::Schema->connect(...); explicitly providing the connection details such as the pa...
0debug
Need Db audit info query in SQL server for these columns : Good day will you please provide a single query in SQL Server to fetch Audit information of databases and tables in the server as below Database audit should include records count in each table, tables size, databases size and drives size in the serve...
0debug
how to solve System.Drawing - Parameter is not valid : how to solve System.Drawing Parameter is not valid when i use code: string img2 = "http://13.228.146.249:8080/jcr/groups/629.png; byte[] toBytes = Encoding.ASCII.GetBytes(img2); if (toBytes != null) { MemoryStream ms = new MemorySt...
0debug
How to prevent IIS from shutting down Web Site when not in use? : <p>I have a web application hosted under IIS. It is a data warehouse, and during its startup process it requires instantiating a large set of items in memory (takes roughly ~20 minutes to fully set up). Because this website is critical to our company, th...
0debug
Jupyter command `jupyter-lab` not found : <p>I have tried to install jupyter lab on my Kubuntu machine. If I install jupyter lab with 'pip3 install jupyter jupyterlab' the command 'jupyter notebook' works completly fine. But if I try to run 'jupyter lab' every time I get the message:</p> <pre><code>Traceback (most re...
0debug
static void pulse_get_output_timestamp(AVFormatContext *h, int stream, int64_t *dts, int64_t *wall) { PulseData *s = h->priv_data; pa_usec_t latency; int neg; pa_threaded_mainloop_lock(s->mainloop); pa_stream_get_latency(s->stream, &latency, &neg); pa_threaded_mainloop_unlock(s->mainloop)...
1threat
no writing on output file c++ : <p>a strange thing happens when i try to write on a output file:</p> <pre><code> int main(int argc, char* argv[]) { std::string outputFile = "fitness.out"; ofstream output( outputFile.c_str() ); FitnessFactory fitnessFactory; //if i write on file here it's ok vector&lt;...
0debug
Python: How to show matplotlib in flask : <p>I'm very new to Flask and Matplotlib. I'd like to be able to show a simple chart I generated in some html, but I'm having a very hard time figuring out how. Here is my Python code:</p> <pre><code>from flask import Flask, render_template import numpy as np import pandas im...
0debug
SCSIDevice *scsi_bus_legacy_add_drive(SCSIBus *bus, BlockDriverState *bdrv, int unit) { const char *driver; DeviceState *dev; driver = bdrv_is_sg(bdrv) ? "scsi-generic" : "scsi-disk"; dev = qdev_create(&bus->qbus, driver); qdev_prop_set_uint32(dev, "scsi-id", unit); if (qdev_prop_set_dr...
1threat
Dictionary Contain NSNULL Swift : Is there any way to detect that Dictionary contain NSNull Value. Is there any way to detect that Dictionary contain NSNull Value.
0debug
import sys def find_max_val(n, x, y): ans = -sys.maxsize for k in range(n + 1): if (k % x == y): ans = max(ans, k) return (ans if (ans >= 0 and ans <= n) else -1)
0debug
File download through Angular 2 : <p>I have a backend that I set up to return a file through setting the header</p> <pre><code>Content-Disposition: attachment;filename=somefile.csv </code></pre> <p>It works directly in the browser and downloads the file immediately upon invoking the URL that points to that resource.<...
0debug
static inline void RENAME(rgb15to16)(const uint8_t *src,uint8_t *dst,long src_size) { register const uint8_t* s=src; register uint8_t* d=dst; register const uint8_t *end; const uint8_t *mm_end; end = s + src_size; #ifdef HAVE_MMX __asm __volatile(PREFETCH" %0"::"m"(*s)); __asm __volatile("movq %0...
1threat
order by charindex >0 and SQL concat : <p>I want to order Recordset by setting priority when ID is in an array:</p> <p>This is the comma separated <strong>myString</strong> which holds a series of ID: <code>,1,2,4,6,8,12,34,</code></p> <p>I use concat to add comma before and after ID so I can compare it against the s...
0debug
Getting Permission denied (publickey) : <p>I am trying to do ssh to Google Cloud instance.I am able to do ssh to my username (lets say my pc user name is apple then I can access apple username) but when I am trying to access different username on same instance (lets say info) then its giving me "Permission Denied (publ...
0debug
How to run .exe file within program : <p>In eclipse, if you have a .exe file in the package how would you run it? I know if it is outside you would just add in the path, but what would the path be for something inside the project?</p>
0debug
static void close_file(OutputStream *os) { int64_t pos = avio_tell(os->out); avio_seek(os->out, 0, SEEK_SET); avio_wb32(os->out, pos); avio_flush(os->out); avio_close(os->out); os->out = NULL; }
1threat
Why PHP echo printf adds unexpected symbols : <p>I have php code:</p> <pre><code>$searchTitlePersonType = ($isTravelAgency == true ? "tourists" : "persons"); var_dump($searchTitlePersonType); // Right behavior </code></pre> <p>The same time, when I try to implement it on my template:</p> <pre><code>&lt;?php ech...
0debug
GCC can't find stdio.h in Alpine Linux : <p>In a fresh Alpine Linux I installed GCC by</p> <pre><code>apk add --update-cache gcc </code></pre> <p>but still a simple program</p> <pre><code>#include &lt;stdio.h&gt; int main(int argc, char *argv[]) { return 0; } </code></pre> <p>compiled with message</p> <pre cl...
0debug
Python : list of strings to list of unique characters : <p>I have a list of strings </p> <pre><code>ll = ['abc', 'abd', 'xyz', 'xzk'] </code></pre> <p>I want a list of unique characters across all strings in the given list. </p> <p>For ll, output should be </p> <pre><code>['a','b','c','d','x','y','z','k'] </code></...
0debug
How to properly make REST calls from ReactJS + Redux application? : <p>I'm using ReactJS + Redux, along with Express and Webpack. There is an API built, and I want to be able to make REST calls -- GET, POST, PUT, DELETE -- from the client-side. </p> <p>How and what is the properly way to go about doing so with the Red...
0debug
static void quantize_and_encode_band_cost_NONE_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, float *out, const float *scaled, int size, int scale_idx, ...
1threat
my code doesn't work (php) : <p>my code save info in database but doesn't send the message to email and the alert message not work. can you help me , please ? </p> <p>` <pre><code>if(isset($_POST['send'])){ $to = "nada_26_@hotmail.com"; // this is your Email address $subject = "Form contact"; $subject2 =...
0debug
Ruby - The integers in the array are either entirely odd or entirely even except for a single integer : You are given an array (which will have a length of at least 3, but could be very large) containing integers. The array is either entirely comprised of odd integers or entirely comprised of even integers except fo...
0debug
static int vf_open(vf_instance_t *vf, char *args){ vf->config=config; vf->put_image=put_image; vf->get_image=get_image; vf->query_format=query_format; vf->uninit=uninit; vf->control= control; vf->priv=malloc(sizeof(struct vf_priv_s)); memset(vf->priv, 0, sizeof(struct vf_priv_s))...
1threat
int kvm_s390_cpu_restart(S390CPU *cpu) { kvm_s390_interrupt(cpu, KVM_S390_RESTART, 0); s390_add_running_cpu(cpu); qemu_cpu_kick(CPU(cpu)); DPRINTF("DONE: KVM cpu restart: %p\n", &cpu->env); return 0; }
1threat
void register_watchdogs(void) { wdt_ib700_init(); wdt_i6300esb_init(); }
1threat
static int no_init_in (HWVoiceIn *hw, audsettings_t *as) { audio_pcm_init_info (&hw->info, as); hw->samples = 1024; return 0; }
1threat
static coroutine_fn int qcow_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { BDRVQcowState *s = bs->opaque; int index_in_cluster; uint64_t cluster_offset; int ret = 0, n; struct iovec hd_iov; QEMUIOVector hd_qiov; u...
1threat
Why Angular method binding firing continiously? : <pre><code>@Component({ selector: 'calc', template: '&lt;p *ngIf="isCalculatable()"&gt;&lt;/p&gt;' }) export class CalcComponent { isCalculatable(){ console.log("yes"); return true; } } </code></pre> <p>When I use this component <code>&lt;calc&g...
0debug
static target_ulong h_put_term_char(CPUState *env, sPAPREnvironment *spapr, target_ulong opcode, target_ulong *args) { target_ulong reg = args[0]; target_ulong len = args[1]; target_ulong char0_7 = args[2]; target_ulong char8_15 = args[3]; VIOsPAPRDevice *s...
1threat
DoubleLinkedList adding element doesn't work and somehow it always stays empty : <p>As I said before DoubleLinkedList always stays empty...</p> <p>I have reread code. Firstly add utility seemed a bit suspicious but it looks correct for me. I have tried adding an element into the list but when I'm calling <em>empty()</...
0debug
python regex polish characters fail : I need to replace a string with polish characters. I tried something like that: k = 'aąkkk cdkkk aą xskkk' odp = re.sub('(?<!aą|cd)kkk', '***', k) print (odp) but it doesn't work. I get an error: File "/usr/lib/python2.7/re.py", line 244, in _compile...
0debug
Deserializing json strings with go language : I want to deserialize json strings with the go language. The value types of different keys are different. for example,in string `{\"category\":\"6\",\"cid\":2511993760745787586}`,`category` type is `string`, `cid` type is int64. my code are as follws: ```go func main...
0debug
ClassCastException: java.lang.String cannot be cast : I need help. I have two methods of shared preference. They are getList and setList. This is setList() public static void setList(Application activity, List<tcmb> mValuesList) { StringBuilder valuesBuilder = new StringBuilder(); ...
0debug
I would like to convert 'A+B+C.E+F.G' into 'A.E.G+A.F.G+B.E.G+B.F.G+C.E.G+C.F.G' using R : I would like to convert this:</BR> `v_in <- 'A+B+C.E+F.G'` into this: </BR> `v_out <- 'A.E.G+A.F.G+B.E.G+B.F.G+C.E.G+C.F.G'` using R. ANy idea?
0debug
def mul_even_odd(list1): first_even = next((el for el in list1 if el%2==0),-1) first_odd = next((el for el in list1 if el%2!=0),-1) return (first_even*first_odd)
0debug
Cannot connect to Elasticsearch from Go server running in Docker : <p>I have set up an environment today that runs a <code>golang:1.13-alpine</code> image, along with the latest images for Elasticsearch and Kibana.</p> <p>Elasticsearch and Kibana are running fine when accessing from my local machine, but I cannot conn...
0debug
Why do we need to use import 'babel-polyfill'; in react components? : <p>I wonder if we user babel loader + all the presets, why do we need to include babel-polyfill anyway into our components? I just think that babel-loader should do all the job itself.</p> <p>Examples were taken here <a href="https://github.com/reac...
0debug
static void display_picref(AVFilterBufferRef *picref, AVRational time_base) { int x, y; uint8_t *p0, *p; int64_t delay; if (picref->pts != AV_NOPTS_VALUE) { if (last_pts != AV_NOPTS_VALUE) { delay = av_rescale_q(picref->pts - last_pts, ...
1threat
How do i make random letter from a string? : <p>In python I want to know how to get random letter from string.</p> <p>eg. </p> <pre><code>randomize("HELLO") </code></pre> <blockquote> <pre><code>returns "L" </code></pre> </blockquote>
0debug
how to create ul li autocomplete input using pure JavaScript : <p>How to create ul/li autocomplete input using pure javascript without jquery.do not use option only ul/li.</p>
0debug
void ff_mpeg_unref_picture(MpegEncContext *s, Picture *pic) { int off = offsetof(Picture, mb_mean) + sizeof(pic->mb_mean); pic->tf.f = &pic->f; if (s->codec_id != AV_CODEC_ID_WMV3IMAGE && s->codec_id != AV_CODEC_ID_VC1IMAGE && s->codec_id != AV_CODEC_ID_MSS2) ff_thr...
1threat
Why didn't they design array index to start from 1? : <p>In many programming languages, the array index begins with 0. Is there a reason why it was designed so?</p> <p>According to me, it would have been more convenient if the length of the array was equal to the last index. We could avoid most of the <code>ArrayIndex...
0debug
To JAVA professionals I want change value of the variable to value another to another value : i am try change value the variable NO_OF_QUESTIONS_PER_LEVEL from value 9 to 19 by By a function " IF " public class Constant { public static int NO_OF_QUESTIONS_PER_LEVEL = 9 ; public static int NO_...
0debug
i want last 12 month + current month sale and my date format is string in mysql : select pd.DC_Date,sum(pd.Quantity-pd.Credit_Quantity) as 'Sales' from past_year_data pd inner join idash_tb2_product_list PL ON PD.Product_Name=PL.Product_Name where pd.Branch_Name = 'Delhi' and DATE_FORMAT(STR_TO_DATE(DC_Date,'%m'), '...
0debug
AWS ECS restart Service with the same task definition and image with no downtime : <p>I am trying to restart an AWS service (basically stop and start all tasks within the service) without making any changes to the task definition.</p> <p>The reason for this is because the image has the <code>latest</code> tag attached...
0debug
static int vorbis_encode_frame(AVCodecContext *avccontext, unsigned char *packets, int buf_size, void *data) { vorbis_enc_context *venc = avccontext->priv_data; const signed short *audio = data; int samples = data ? avccontext->frame_size :...
1threat
Why mutex is not working with 2 threads sharing resource c++? : I want to test a scenario where I check weak_ptr for validity and return shared_ptr. between checking and returning if some other thread delete the shared_ptr we would face exception. I tried to simulate same scenario using windows sleep or cout but it see...
0debug
uint8_t *xen_map_cache(hwaddr phys_addr, hwaddr size, uint8_t lock) { MapCacheEntry *entry, *pentry = NULL; hwaddr address_index; hwaddr address_offset; hwaddr cache_size = size; hwaddr test_bit_size; bool translated = false; tryagain: address_index = phys...
1threat
static char *spapr_get_fw_dev_path(FWPathProvider *p, BusState *bus, DeviceState *dev) { #define CAST(type, obj, name) \ ((type *)object_dynamic_cast(OBJECT(obj), (name))) SCSIDevice *d = CAST(SCSIDevice, dev, TYPE_SCSI_DEVICE); sPAPRPHBState *phb = CAST(sPAPRPHBSta...
1threat
PHP - How to rate limit an API? : <p>I have a custom api page. How can I limit the number of requests by IP address?</p> <p>I need some examples in PHP, I'm not too experienced with this.</p> <p>I'm running an apache2 server. </p>
0debug
static void iothread_complete(UserCreatable *obj, Error **errp) { Error *local_error = NULL; IOThread *iothread = IOTHREAD(obj); iothread->stopping = false; iothread->thread_id = -1; iothread->ctx = aio_context_new(&local_error); if (!iothread->ctx) { error_propagate(errp, loca...
1threat
uint32_t ide_status_read(void *opaque, uint32_t addr) { IDEBus *bus = opaque; IDEState *s = idebus_active_if(bus); int ret; if ((!bus->ifs[0].bs && !bus->ifs[1].bs) || (s != bus->ifs && !s->bs)) ret = 0; else ret = s->status; #ifdef DEBUG_IDE printf("ide: rea...
1threat
static void microdrive_realize(DeviceState *dev, Error **errp) { MicroDriveState *md = MICRODRIVE(dev); ide_init2(&md->bus, qemu_allocate_irqs(md_set_irq, md, 1)[0]); }
1threat
bash eval in if with piped command : <p>piped eval in bash for string length comparison</p> <p>i am trying to check if a certain device with a given id is plugged in and trigger a action based on that </p> <p>i tried eval / exec</p> <p>here is what i have so far</p> <pre><code>#!/bin/bash KBP='[["lsusb -d 1c11:b04d...
0debug
static void thread_pool_completion_bh(void *opaque) { ThreadPool *pool = opaque; ThreadPoolElement *elem, *next; restart: QLIST_FOREACH_SAFE(elem, &pool->head, all, next) { if (elem->state != THREAD_DONE) { continue; } trace_thread_pool_complete(pool, elem, e...
1threat
I have an array and I want change it to a multi dimensional array. How can i do this? : This is my array: $array=["a2","a5","a7","b3","b8","b9"]; And i want change it to: $result=["a"=>[2,5,7],"b"=>[3,8,9];
0debug
null is not an object(evaluating this.state.count) : <p>I am facing the above mentioned error when i am trying to set a count for everytime the button is pressed. </p> <pre><code>export default class ViewIdeas extends Component{ get InitialState(){ return { count : 0 } } render(){ return( ....... &lt;But...
0debug
static int oss_open (int in, struct oss_params *req, struct oss_params *obt, int *pfd) { int fd; int oflags; int mmmmssss; audio_buf_info abinfo; int fmt, freq, nchannels; const char *dspname = in ? conf.devpath_in : conf.devpath_out; const char *typ = in ? "ADC...
1threat
Java 8 Stream | Add a value of the stream to another List/Collection without using foreach or any terminal Operation : <p>So far i tried to add values from a stream to a list with peek() but later I found out that peek() is only used "to support debugging, where you want to see the elements as they flow past a certain ...
0debug
static int ipvideo_decode_block_opcode_0xA(IpvideoContext *s, AVFrame *frame) { int x, y; unsigned char P[8]; int flags = 0; bytestream2_get_buffer(&s->stream_ptr, P, 4); if (P[0] <= P[1]) { for (y = 0; y < 16; y++) { if (!(y & 3)) { if...
1threat
notifyicon in visual studio 2015 missing : <p>I have a WPF application and I'm trying to send it to notification tray following the instructions in this page <a href="http://www.developer.com/net/net/article.php/3336751/C-Tip-Placing-Your-C-Application-in-the-System-Tray.htm" rel="nofollow">http://www.developer.com/net...
0debug
Usort multidimensional array in PHP is broken : Using the example straight from the docs, I can't see to figure out why I am getting the results I am. function cmp($a, $b) { return strcmp($a["fruit"], $b["fruit"]); } $fruits[0]["fruit"] = 1000; $fruits[1]["fruit"] = 600; $...
0debug
bdrv_acct_start(BlockDriverState *bs, BlockAcctCookie *cookie, int64_t bytes, enum BlockAcctType type) { assert(type < BDRV_MAX_IOTYPE); cookie->bytes = bytes; cookie->start_time_ns = get_clock(); cookie->type = type; }
1threat
Why I get error: are you missing a using directive or an assembly reference? : <p>I added C# code in <code>aspx</code> file, but it is showing error.</p> <p>This code I add to asp file:</p> <pre><code> [System.Web.Services.WebMethodAttribute, System.Web.Script.Services.ScriptMethodAttribute] public static strin...
0debug
void nand_setio(DeviceState *dev, uint32_t value) { int i; NANDFlashState *s = (NANDFlashState *) dev; if (!s->ce && s->cle) { if (nand_flash_ids[s->chip_id].options & NAND_SAMSUNG_LP) { if (s->cmd == NAND_CMD_READ0 && value == NAND_CMD_LPREAD2) return; ...
1threat
static void filter1(int32_t *dst, const int32_t *src, int32_t coeff, ptrdiff_t len) { int i; for (i = 0; i < len; i++) dst[i] -= mul23(src[i], coeff); }
1threat
USBDevice *usbdevice_create(const char *cmdline) { USBBus *bus = usb_bus_find(-1 ); LegacyUSBFactory *f = NULL; Error *err = NULL; GSList *i; char driver[32]; const char *params; int len; USBDevice *dev; ObjectClass *klass; DeviceClass *dc; params = strchr(cmdline,':'); i...
1threat
Define a Class Function Operator : <p>How can I define in PHP a class <code>Foo</code> that allows to do something like:</p> <pre><code>$foo = new Foo(); $foo-&gt;bar; $foo(); </code></pre>
0debug
import re def text_match_string(text): patterns = '^\w+' if re.search(patterns, text): return 'Found a match!' else: return 'Not matched!'
0debug
patchvalue or setvalue of formbuilder does not mark field as dirty or touched : <p>I have a multi step form where user traverses back and forth to the form. I save the form data in service and when he comes back i use patchvalue to patch all the data to form. I tried setvalue also, but the form fields are not marked as...
0debug
static av_cold int g722_encode_close(AVCodecContext *avctx) { G722Context *c = avctx->priv_data; int i; for (i = 0; i < 2; i++) { av_freep(&c->paths[i]); av_freep(&c->node_buf[i]); av_freep(&c->nodep_buf[i]); } return 0; }
1threat
How to display dependency diagram for java program? : <p>I want to display the dependency relationship (import) on my Java program. I know IntelliJ has diagram > show diagram feature, but it is used for "is-a" relationship, not "has-a" relationship between different class. Which tool provide dependency relationship dia...
0debug
Checking if array is nil or not : <p>I have a array of my custom model, and I want to check if it is not nil and its size is greater then 0. </p> <p>Following is my array with custom object </p> <blockquote> <p><code>var listCountries : [Countries]? = nil</code></p> </blockquote> <p>now In viewDIdLoad I want to ma...
0debug
void qemu_del_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque) { int i, found; WaitObjects *w = &wait_objects; found = 0; for (i = 0; i < w->num; i++) { if (w->events[i] == handle) found = 1; if (found) { w->events[i] = w->events[i + 1]; ...
1threat
gen_intermediate_code_internal(TriCoreCPU *cpu, struct TranslationBlock *tb, int search_pc) { CPUState *cs = CPU(cpu); CPUTriCoreState *env = &cpu->env; DisasContext ctx; target_ulong pc_start; int num_insns; uint16_t *gen_opc_end; if (search_pc) { ...
1threat
Simple Webscraping with Xcode/Swift : I am just getting started with Xcode and Swift. I have done a ton of webscrping with B4S in Python, but I am having trouble with Xcode. Does anyone know how I can request html data from a website? How would I get the html from http://www.example.com/ Or does anyone have a ...
0debug
failed building wheel for Levenshtein : I am trying to install Levenshtein and Fuzzy on my laptop, but for a reason, that i dont understand i get: Failed building wheel for Levenshtein and the same error for Fuzzy every time. I have windows 10 64bit and Python 3.6 on my system. I appreciate it, if somebpdy could he...
0debug
What is the default z-index value of <header>, <main> and <section> tags in html and css? : I just wanted to know if we are using these tags in a code, which layer would be on the top and which would be beneath it. Is there any default value specified for these tags?
0debug
nltk wordpunct_tokenize vs word_tokenize : <p>Does anyone know the difference between <code>nltk</code>'s <code>wordpunct_tokenize</code> and <code>word_tokenize</code>? I'm using <code>nltk=3.2.4</code> and there's nothing on the doc string of <code>wordpunct_tokenize</code> that explains the difference. I couldn't fi...
0debug
Obtain the pdf file path from a website after being execute from a Delphi application? : <p>So I am trying to figure out a way when users open a pdf file from a website then have a Delphi application to execute and show the pdf. Is it possible to somehow copy the url location where the file originated from and pass it ...
0debug
numbers present in an array : <p>i have a text file containing several lines of real numbers, I should count how many numbers are present in each line. My idea is to insert with a for loop each row inside an array of unknown size. But I don't know how to count how many numbers are present in each array per line of text...
0debug
int kvm_arch_post_run(CPUState *env, struct kvm_run *run) { return 0; }
1threat
int ff_eac3_parse_header(AC3DecodeContext *s) { int i, blk, ch; int ac3_exponent_strategy, parse_aht_info, parse_spx_atten_data; int parse_transient_proc_info; int num_cpl_blocks; GetBitContext *gbc = &s->gbc; if (s->frame_type == EAC3_FRAME_TYPE_DEPENDENT) { avpriv_r...
1threat
creating train/test csv files out of a original csv file for 10 fold cross validation experiment : I have a csv file (main.csv) that has a unique column ID that also pertains to my image names (minus their .jpg extension). I want to do 10 fold cross-validation and create train and test CSV such that test csv for ea...
0debug
What are the scenarios we can use for loop in selenium webdriver? : <p>What is the main use of for loop in Automation testing(Selenium Webdriver?</p>
0debug
Disable resubmission of form when the browser is refreshed : <p>I have a form that takes inputs from user then searches the database and displays the result. Everything is working fine except when the user refreshes the browser there comes an alert about re submission. If I re-submit I get the same data but is there a ...
0debug
Gitlab only build for specific tag names : <p>Are there any way to instruct the pipeline to only do a step for certain tags that matches a regex? I would like it to do a deploy when I push a tag on the format 1.2.3 (for example) are there any way to do this?</p>
0debug
Showing true and false : <p>Hi I wrote this program in python and unable to show true and false. Please help out </p> <pre><code>a= raw_input("Enter data") print a b=a.count("e") print b if b &gt;= 0: print True else : print False </code></pre> <p>I also tried with "True " and "False" yet not getting the ans...
0debug
My Sql Sintax Error : I cant find the error in MYSQL Sintax: "SELECT customer.CustomerCode, customer.CustomerName, customer.CustomerAddress, customer.CustomerHandphone, customer,CustomerEmail, product.ProductCode, product.ProductName, product.ProductPrice, orderdetail.OrderCode, orderdetail.ProductCode, orde...
0debug
connection.query('SELECT * FROM users WHERE username = ' + input_string)
1threat
Can someone help: Use Python to count the number of words and mean length of words in each sentence of a text file as input : I cannot use NLTK or Regex :( The sentence in the file ends with a period, exclamation point, or question mark. A hyphen, dash, or apostrophe does not end a sentence. Quotation marks do not end...
0debug