problem
stringlengths
26
131k
labels
class label
2 classes
php mysql coding error : plz tell me that where is error..... i am in tention due to this,.. **Fatal error:** Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\kalooo1\includes\db.php:2 Stack trace: #0 C:\xampp\htdocs\kalooo1\index.php(21): include() #1 {main} thrown in C:\xampp\htdocs\ka...
0debug
What will printf do when not enough arguments are passed? : <p>Let's say I used <code>printf</code> without passing enough arguments to match the format specifiers: </p> <pre><code>#include &lt;stdio.h&gt; int main(void) { printf("missing argument: %s\n"); } </code></pre> <p>Are there any guarantees on what the...
0debug
static void spapr_lmb_release(DeviceState *dev, void *opaque) { HotplugHandler *hotplug_ctrl = qdev_get_hotplug_handler(dev); sPAPRMachineState *spapr = SPAPR_MACHINE(hotplug_ctrl); sPAPRDIMMState *ds = spapr_pending_dimm_unplugs_find(spapr, PC_DIMM(dev)); if (--ds->nr_lmbs) { return; ...
1threat
How to remove .php, .html, .htm extensions with .htacess? : <p>I'm Developing one website and want to remove the extensions from my website <a href="https://s7info.in" rel="nofollow">s7info</a> in order to make the URLs more user and search friendly. I stumbled across tutorials on how to remove the .php extension from ...
0debug
How i can use horizontal scroll view in fragments? : I'm working with fragments i have a requirement to use horizontal scroll view inside a fragment.I know how to add it in activity but I have no idea how to add horizontal scroll view in fragment?
0debug
Schedule a message in Slack : <p>I need to send a message in slack at a time set in advance.</p> <p>Is there a way to do it through the Slack API or do I need to have a script running and checking if it's time to send the message and then send it?</p>
0debug
how can i recursively track empty folders and put an .keep file in it? : <p>In order to push empty folders into git, i want to use a recursive windows command to track those empty folders and put a ".keep" file in them.</p> <p>Thanks</p>
0debug
What type of ML algorithm / model should I use for prediction? : <p>I apologize this might be a poorly asked question, Im looking for more of a point in the right direction to start research. </p> <p>So say I have large sets of Array data. Ill be easiest to give an example:</p> <pre><code>[{a: 1}, {h: 3}, {r:7}, {p: ...
0debug
SQL server, get record which having both skills : I have a employee table and a skill table. In skills table, i have entries like (empid, skills) (1, C#) (1, PHP) (2, C#) (2, Java) now i want record which is having both C# and java
0debug
int ioinst_handle_msch(CPUS390XState *env, uint64_t reg1, uint32_t ipb) { int cssid, ssid, schid, m; SubchDev *sch; SCHIB *schib; uint64_t addr; int ret = -ENODEV; int cc; hwaddr len = sizeof(*schib); if (ioinst_disassemble_sch_ident(reg1, &m, &cssid, &ssid, &schid)) { ...
1threat
Ruby array of hashes find values by key : <p>I have an array like below</p> <blockquote> <p>[{500=>{"id"=>1, "name"=>"Hock Tong Bee Pte Ltd/ Corner stone wines", "created_at"=>Thu, 19 Jan 2017 18:10:35 UTC +00:00, "updated_at"=>Thu, 19 Jan 2017 18:10:35 UTC +00:00, "website"=>nil, "status"=>nil, "industry_type...
0debug
static void test_qemu_strtoul_hex(void) { const char *str = "0123"; char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 16, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, 0x123); g_assert(endptr == str ...
1threat
static void fill_yuv_image(AVFrame *pict, int frame_index, int width, int height) { int x, y, i, ret; ret = av_frame_make_writable(pict); if (ret < 0) exit(1); i = frame_index; for (y = 0; y < height; y++) for (x = 0; x < wi...
1threat
Powershell - Copy files from local machine to server machine : <p>local machine = from where you are executing command Server machine = where you copy files.</p> <p>copy (localfile) to server machine</p>
0debug
static int dx2_decode_slice_420(GetBitContext *gb, AVFrame *frame, int line, int left, uint8_t lru[3][8]) { int x, y; int width = frame->width; int ystride = frame->linesize[0]; int ustride = frame->linesize[1]; int vstri...
1threat
HMAC encryption in Swift 2 : <p>Java provides <a href="https://docs.oracle.com/javase/7/docs/api/javax/crypto/Mac.html" rel="nofollow">MAC(Message Authentication Code) algorithm API</a> with which I can encrypt <code>data</code> by: </p> <pre><code>byte[] data = getDataBytes(); Mac mac = Mac.getInstance("HMAC-SHA256")...
0debug
int load_image_targphys(const char *filename, target_phys_addr_t addr, int max_sz) { int size; size = get_image_size(filename); if (size > 0) rom_add_file_fixed(filename, addr, -1); return size; }
1threat
python - space in folder name : <p>I have this next bit of code</p> <pre><code>Path = os.getenv('PATH') Path = Path.split(';') for i, p in enumerate(Path): if len(P) != 0 and p[-1] != "\\": Path[i] = p + "\\" #this adds '\' to the ending of each line </code></pre> <p>printing <code>Path[0]</code> will sho...
0debug
Django (TypeError): __init__() got an unexpected keyword argument 'widget' : <p>I have the problem that, when i run my website it comes with two Type Errors. I do not know what it is i need to edit, but i know it is in the models.py file.</p> <p><strong>Error 1:</strong></p> <pre><code>Unhandled exception in thread s...
0debug
Do I need to use an API to create an Andriod app that will direct to a radio station web site? : I am building an Andriod mobile application which will be coded to direct itself to a web site for a single radio station. Will it open and play what is on the station by coding the url into the app, or do I need an API? If...
0debug
static uint64_t vfio_bar_read(void *opaque, hwaddr addr, unsigned size) { VFIOBAR *bar = opaque; union { uint8_t byte; uint16_t word; uint32_t dword; uint64_t qword; } buf; uint64_t data = 0; if (pread(bar->fd, &buf, size, ba...
1threat
How does reloadOnChange of Microsoft.Extensions.Configuration work for appsettings.json : <p>In two projects (a .NET Core Web API and a .NET Core WindowsService) I am using appsettings.json for the configuration. </p> <pre><code> var configuration = new ConfigurationBuilder() .SetBasePath(System.IO.Director...
0debug
static void *build_pci_bus_begin(PCIBus *bus, void *parent_state) { AcpiBuildPciBusHotplugState *parent = parent_state; AcpiBuildPciBusHotplugState *child = g_malloc(sizeof *child); build_pci_bus_state_init(child, parent, parent->pcihp_bridge_en); return child; }
1threat
How to optimize python snippet? : def nonrep1(n): return sum(all(c != d for c, d in zip(str(i), str(i)[1:])) for i in xrange(1, n+1)) I have to optimize this code, how do I do that?? test case 1 simple input 7 simple output 7 test case 2 simple input 34...
0debug
Cmder bash script executing : <p>I created basic script in Windows.</p> <pre><code>#!/bin/bash echo Hello </code></pre> <p>I am using Cmder, ConEmu derivative. I tried to change the priviliges with chmod, but they are the same. I don't know how can I execute this script. Normal Linux way, which is: ./hello.sh does n...
0debug
Spliting 2 Words in Excel before the last capital Letter? : <p>I am trying to figure out how to split a single word into 2 separate words in excel.</p> <p>e.g. input word: BTCBitcoin</p> <pre><code> Desired output: BTC Bitcoin </code></pre> <p>any suggestions?</p> <p>Thanks.</p>
0debug
I am getting a Fatal Exception: Main : <p>I am very new to android and just learning on the fly mostly from tutorial videos. I am having an issue where I am getting a fatal exception when I try to run the app. I believe the portion of the code generating the error is below, I have a char array of letters that I am tr...
0debug
static av_always_inline int simple_limit(uint8_t *p, ptrdiff_t stride, int flim) { LOAD_PIXELS return 2*FFABS(p0-q0) + (FFABS(p1-q1) >> 1) <= flim; }
1threat
Amazon CodeCommit Error: git: 'credential-aws' is not a git command : <p>I am new to AWS world and I am implementing Continuous Delivery to the company I work for.</p> <p>I followed this instructions to configure CodeCommit Service: <a href="http://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-https-windo...
0debug
android apk faild to build after adding a background image : **Unfortunately app stopped working ** after building apk with background image. I am a newbie to android, I thought of developing a beginner app likely(note app in phones). It was far good till applying a background image in .xml file. after the update, the...
0debug
static void nam_writel (void *opaque, uint32_t addr, uint32_t val) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; dolog ("U nam writel %#x <- %#x\n", addr, val); s->cas = 0; }
1threat
Delphi - How to use Alt Codes? : Delphi RIO - I need to build a string which contains Alt Codes, specifically Alt-16 (Arrow symbol). I have a line of text (aka a string). I append a Carriage return, then want an ARROW symbol and the new line of text. This line will then be passed to PPT. If I manually go into PPT, ...
0debug
Excel Macro to compare two columns in two different sheets and replace thier value with a sequential number : how to create a macro that students ID in two columns in two different worksheets and change their values to a new sequential number
0debug
static void empty_input(void) { const char *empty = ""; QObject *obj = qobject_from_json(empty, NULL); g_assert(obj == NULL); }
1threat
React.js: Set innerHTML vs dangerouslySetInnerHTML : <p>Is there any "behind the scenes" difference from setting an element's innerHTML vs setting the dangerouslySetInnerHTML property on an element? Assume I'm properly sanitizing things for the sake of simplicity.</p> <p>Example:</p> <pre><code>var test = React.creat...
0debug
How do I query this (json looking) data? - Python : I have this data coming via an api and I want to pull all the "confidence" scores that are in there. How would I go about doing that: b'{"time":765,"annotations":[{"start":106,"end":115,"spot":"customers","confidence":0.7198,"id":234206,"title":"Customer","uri"...
0debug
static int mov_read_stss(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; MOVStreamContext *sc = st->priv_data; unsigned int i, entries; get_byte(pb); get_be24(pb); entries = get_be32(pb); dprintf(c->fc, "keyframe_count = %...
1threat
Problems with sessions in cakePHP : <p>Hello I am new to cakePHP and follow some nice online tuts. Now i have a problem i can't solve so here i am.</p> <pre><code> public function beforeFilter(){ parent::beforeFilter(); if($this-&gt;request-&gt;action != 'login' &amp;&amp; !this-&gt;Session-&gt;check('User')...
0debug
Firebase Auth Ui Google Sign In Code:10, message:10: : <p>Firebase Auth Ui Google Sign In Code:10, message:10:</p> <p>I use firebase auth-ui to sign in with google,</p> <p>it toasted</p> <blockquote> <p>Code:10, message:10:</p> </blockquote> <pre><code>implementation 'com.firebaseui:firebase-ui-auth:4.1.0' </code...
0debug
Create object id from JSON key value using jq : <p>I am trying to restructure my JSON by assigning an id to each object in a given array. This id would be created by using an existing key value (osm_id). </p> <p>This is my input:</p> <pre><code>[ { "geometry" : { "coordinates" : [ -0.7118478, 51.0930284 ], ...
0debug
My SQL query ! What's wrong here? : please tell me what's wrong here: INSERT INTO `tbl_verkauf_am`(`fld_kdnr`, `fld_artikelnummer`, `fld_artikelbez1`, `fld_saal_lst`, `fld_anzahl`, `fld_preis`) VALUES (900000, (SELECT `id`, `fld_besch_0`, `fld_class` FROM `tbl_saal_koord` WHERE `id` < 20300), 1, 50) Thanks
0debug
Filtering a dataframe : <p>I have a main dataframe called <code> main </code> and a subset of this dataframe called <code> main1 </code>. I want to create a dataframe <code> main2 </code> which is includes everything in <code> main </code> which is not <code> main1 </code>. How would I do this?</p>
0debug
Align material icon vertically : <p>I am trying to vertically align my "dropdown arrow" in a naviation menu.</p> <p>I have tried varioust hings like vertical-align: middle, display: inline-block and stuff like that but that didn't help at all. <a href="http://img02.imgland.net/jfCmDoW.png" rel="noreferrer">http://img0...
0debug
how to handle Array of column coming from UDF in spark dataframe : I am trying to concatenate the Array of column in spark dataframe i am recieving the Array of column through a spark scala UDF but I am getting below my code :- val sampleDf = sparksession.createDataFrame( List(("00", "DELHI", "11...
0debug
static int __qemu_rdma_delete_block(RDMAContext *rdma, ram_addr_t block_offset) { RDMALocalBlocks *local = &rdma->local_ram_blocks; RDMALocalBlock *block = g_hash_table_lookup(rdma->blockmap, (void *) block_offset); RDMALocalBlock *old = local->block; int x; assert(block); if...
1threat
How to host multiple .NET Core apps under same url : <p>I am building a few web sites in asp.net core (multiple user interface applications and a web api app). They all work together, utilising the web api. For the purpose of my question we'll call them App1, App2 and App3. I am hosting my websites in IIS.</p> <p>T...
0debug
i am getting an error in the cpanel when uploding a laravel project : this is the error note it is on cpanel it works in my local host: Parse error: syntax error, unexpected '?' in /home/hfindcok/public_html/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php on line 242
0debug
int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width, enum PixelFormat pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color) { uint8_t *optr; int y_shift; int x_shift; int yheight; int i, y; if (pix_fmt < 0 ...
1threat
document.write('<script src="evil.js"></script>');
1threat
static void gen_test_cc(int cc, int label) { TCGv tmp; TCGv tmp2; int inv; switch (cc) { case 0: tmp = load_cpu_field(ZF); tcg_gen_brcondi_i32(TCG_COND_EQ, tmp, 0, label); break; case 1: tmp = load_cpu_field(ZF); tcg_gen_brcondi_i32(TCG_CON...
1threat
static int fic_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { FICContext *ctx = avctx->priv_data; uint8_t *src = avpkt->data; int ret; int slice, nslices; int msize; int tsize; uint8_t *sdata; if ((ret = ff_reget...
1threat
How to find the value stored in a particular index of a multiset in C++? : <p>Assume I have a multiset as {1,3,5,7,9}. I want to find what is the 3rd element in this multiset using C++. How can I do that without using a loop?</p>
0debug
static int bochs_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVBochsState *s = bs->opaque; uint32_t i; struct bochs_header bochs; int ret; bs->file = bdrv_open_child(NULL, options, "file", bs, &child_file, fal...
1threat
static int configuration_post_load(void *opaque, int version_id) { SaveState *state = opaque; const char *current_name = MACHINE_GET_CLASS(current_machine)->name; if (strncmp(state->name, current_name, state->len) != 0) { error_report("Machine type received is '%s' and local is '%s'", ...
1threat
What does "unsqueeze" do in Pytorch? : <p>I'm looking at the documentation, and here is their example. I cannot understand how this example corresponds to their explanation: "Returns a new tensor with a dimension of size one inserted at the specified position."</p> <pre><code>&gt;&gt;&gt; x = torch.tensor([1, 2, 3, 4]...
0debug
document.getElementById('input').innerHTML = user_input;
1threat
static inline void RENAME(initFilter)(int16_t *filter, int16_t *filterPos, int *filterSize, int xInc, int srcW, int dstW, int filterAlign, int one) { int i; #ifdef HAVE_MMX asm volatile("emms\n\t"::: "memory"); #endif if(ABS(xInc - 0x10000) <10) { int i; *filterSize= (1 +(filterAlign-1))...
1threat
PCA analysis results on imbalanced data with duplicates : I am using sklearn PCA decomposition and surprised that if I delete duplicates from my dataset, the result differs from the "unclean" one. What is the reason? As I think, the variance is the same.
0debug
static int scsi_hot_add(Monitor *mon, DeviceState *adapter, DriveInfo *dinfo, int printinfo) { SCSIBus *scsibus; SCSIDevice *scsidev; scsibus = DO_UPCAST(SCSIBus, qbus, QLIST_FIRST(&adapter->child_bus)); if (!scsibus || strcmp(scsibus->qbus.info->name, "SCSI") != 0) { ...
1threat
How to make a curl request to get data from clickhouse database | Go : I'm trying to make a cURL request to get data from clickhouse database using Go, I don't have too much experience with cURL and not sure how to get the returned value by the query This is what I have: reader := strings.NewReader("SELECT C...
0debug
How to access state inside Redux reducer? : <p>I have a reducer, and in order to calculate the new state I need data from the action and also data from a part of the state not managed by this reducer. Specifically, in the reducer I will show below, I need access to the <code>accountDetails.stateOfResidenceId</code> fi...
0debug
jQyery output is object Object restful web application : I have been working with an application that i have to use JQuery. And i have an issue my fucntions related to sons and grandsons in my below mentioned code: If i type into my browser http://localhost:8080/fathers I get : >[{"id":1,"fname":"fname",...
0debug
split value and add in to spinner : <p>want to add pipeline seprated value in to spinner. I have String defined below.</p> <blockquote> <p>String value = 12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35;</p> </blockquote> <p>how to split this value and add it in to spinner.</p>
0debug
Echo image php how? Right way : Im just looking for little help to make the right code. It should be very simple for you who know more php. What i want. echo "<a target='_blank' href='https://www.wbesite.kom". get_the_title() ."'>" IMAGE HERE "</a>"; This code deosnt work just because i dont understand ho...
0debug
OS as algorithm? : <p>Can an Operating System be considered as an algorithm? Focus on the finiteness property, please. I have contradicting views on it right now with one prof. telling me something and the other something else.</p>
0debug
static uint64_t watch_mem_read(void *opaque, target_phys_addr_t addr, unsigned size) { check_watchpoint(addr & ~TARGET_PAGE_MASK, ~(size - 1), BP_MEM_READ); switch (size) { case 1: return ldub_phys(addr); case 2: return lduw_phys(addr); case 4: return ldl_phys(a...
1threat
static void network_to_remote_block(RDMARemoteBlock *rb) { rb->remote_host_addr = ntohll(rb->remote_host_addr); rb->offset = ntohll(rb->offset); rb->length = ntohll(rb->length); rb->remote_rkey = ntohl(rb->remote_rkey); }
1threat
Working with spa services in .NetCore 3.0? : <p>I develop SPA web applicaton using ASP.Net Core React+Redux.</p> <p>After update to .Net Core 3.0 I see that UseWebpackDevMiddleware and AddNodeServices is obsolete. </p> <p>I learn new project-template React+Redux, but it isn't use webpack or SSR.</p> <p>1) Where I c...
0debug
Having a little trouble with this Number Sorter : <p>I'm trying to sort numbers in ascending or descending order, depending on the user input. I sorted the numbers in the text fields into an array and using an if-else statement to sort in ascending or descending order depending on the value of the select tag. However, ...
0debug
get speed information (calulate speed information) of a mouving car throug a road : ---------- I would like to detect the speed information of a moving car through a road using Arduino , Wich kind of censor can i use for this project?? Note that all this module (Arduino and censor are Outside of the Car) ---------...
0debug
static void gen_dozo(DisasContext *ctx) { int l1 = gen_new_label(); int l2 = gen_new_label(); TCGv t0 = tcg_temp_new(); TCGv t1 = tcg_temp_new(); TCGv t2 = tcg_temp_new(); tcg_gen_movi_tl(cpu_ov, 0); tcg_gen_brcond_tl(TCG_COND_GE, cpu_gpr[rB(ctx->opcode)], cpu_gpr[rA(ctx->opcod...
1threat
Make Segue programmatically in Swift : <p>I have two VCs: VC1 and VC2. In VC1, I have a <code>finish button</code> which I programmatically made and a <code>result array</code> I want to pass to VC2.</p> <p>I know how to make Segue in Storyboard, but I cannot do that at this moment since the <code>finish button</code>...
0debug
Laravel ShouldQueue How Does It Work : <p>I know how to use <code>ShouldQueue</code> my question is about why does it work the way it does.</p> <p>I need to edit how my <code>new Job</code> is stored in the database, and therefore am digging through Laravel's internals.</p> <p>The job I want to edit is launched from ...
0debug
static int decode_chunks(AVCodecContext *avctx, AVFrame *picture, int *data_size, const uint8_t *buf, int buf_size) { Mpeg1Context *s = avctx->priv_data; MpegEncContext *s2 = &s->mpeg_enc_ctx; const uint8_t *buf_ptr = buf; const uint8_t *b...
1threat
How to use R 3.3.2 to add index column to dataframe based on column value? : <h2>Problem</h2> <p>How to create a index column in a dataframe for R given the categorical values in a column? </p> <p>In other words, assume we have a dataframe as follows: </p> <pre><code>id cat 1 A 2 A 3 A 4 B 5 B 6 C 7 C 8...
0debug
static int _decode_exponents(int expstr, int ngrps, uint8_t absexp, uint8_t *gexps, uint8_t *dexps) { int exps; int i = 0; while (ngrps--) { exps = gexps[i++]; absexp += exp_1[exps]; assert(absexp <= 24); switch (expstr) { case AC3_EXPSTR_D45: ...
1threat
VBA script to send email : I have written the bellow code to request roster from different teams however the code is not working.. need help to check where I am wrong. Sub RosterRequest() Dim counter As Integer Dim outapp As Object Dim outmail As Object Set outapp = CreateObject("Outlo...
0debug
Convert a String from LowerTo Upper (vice-versa) without using type casting or built-in functions in Java : <p>How can we convert a String from lower to upper (Vice-versa ) in Java without using any built-in function or using any type casting ?</p>
0debug
void acpi_pcihp_init(AcpiPciHpState *s, PCIBus *root_bus, MemoryRegion *address_space_io) { s->root= root_bus; memory_region_init_io(&s->io, NULL, &acpi_pcihp_io_ops, s, "acpi-pci-hotplug", PCI_HOTPLUG_SIZE); memory_region_add_s...
1threat
VSTS release pull request build trigger : <p>My team are using the VSTS Build &amp; Release mechanism, combined with pull request branch safety settings, so that code can only be merged in when a pull request is completed.</p> <p>We are experiencing something odd though, in that when a pull-request is created (and a b...
0debug
static void xen_config_cleanup_dir(char *dir) { struct xs_dirs *d; d = qemu_malloc(sizeof(*d)); d->xs_dir = dir; TAILQ_INSERT_TAIL(&xs_cleanup, d, list); }
1threat
Can i fill android app forms in code by decompile it? : I want to fill android forms in android app code it self for example an app is asking email and name while you open the app i want to fill details by decompile that app and fill the respective email and name fields in code itself and compile it again so it can dir...
0debug
Pycharm/Python OpenCV and CV2 install error : <p>I've been trying to install both OpenCV and cv2 from both Pycharm and from the terminal as suggested using:</p> <pre><code>pip install --user opencv pip install --user cv2 </code></pre> <p>but I'm getting the following error for them:</p> <pre><code>Collecting opencv ...
0debug
Are there extensions to let optimizers assume const-ref parameters will stay const? : <p>Related to my former question: <a href="https://stackoverflow.com/questions/49117489/are-compilers-not-allowed-to-assume-const-ref-parameters-will-stay-const">Are compilers not allowed to assume const-ref parameters will stay const...
0debug
Why is System.Net.Http.HttpMethod a class, not an enum? : <p><code>HttpStatusCode</code> is implemented as an <code>enum</code>, with each possible value assigned to its corresponding HTTP status code (e.g. <code>(int)HttpStatusCode.Ok == 200</code>). </p> <p>However, <code>HttpMethod</code> is <a href="https://msdn.m...
0debug
Can you use http POST from a web page? : I am trying to use Jira to REST API to submit issues. This answer gives a POST method to submit issues http://stackoverflow.com/questions/5884960/how-to-create-an-issue-in-jira-via-rest-api Is there a way to integrate POST with html so you could submit things from a webpa...
0debug
I WANT TO KNOW WHY IS THIS CODE NOT TAKING INPUTS FOR "DESIGNATION"? : [WHY IS IT NOT TAKING INPUTS FOR "DESIGNATION"][1] IF U CAN SEE THE OUTPUT FROM THE SCREENSHOT, THE fgets() function is running only once to take in the string "name", but it is not accepting the "designation" string and is skipping onto the "sal...
0debug
static void qed_copy_from_backing_file(BDRVQEDState *s, uint64_t pos, uint64_t len, uint64_t offset, BlockDriverCompletionFunc *cb, void *opaque) { CopyFromBackingFileCB *copy_cb; i...
1threat
Simple Java mistake : <pre><code>package e.power.bhd; </code></pre> <p>import java.util.Scanner;</p> <p>public class EPowerBhd {</p> <pre><code>public static void main(String[] args) { int accountNum = 1; double cMeter; double pMeter; double eUsage; double totalDueAmount = 0.0; double Tot = 0...
0debug
static QOSState *qvirtio_9p_start(void) { const char *cmd = "-fsdev local,id=fsdev0,security_model=none,path=%s " "-device virtio-9p-pci,fsdev=fsdev0,mount_tag=%s"; test_share = g_strdup("/tmp/qtest.XXXXXX"); g_assert_nonnull(mkdtemp(test_share)); return qtest_pc_boot(cmd...
1threat
VS Express dosen't compile the code properly (?) : <p>So I used to use Code::Blocks IDE, and like it a lot. Recently I switched to Visual Studio. I downloaded VS Express, it was 600mb and I can only use 1gb data per day, I don't have Wi-Fi, so I that was my only option.I inserted the same code that compiled properly in...
0debug
static int find_headers_search_validate(FLACParseContext *fpc, int offset) { FLACFrameInfo fi; uint8_t *header_buf; int size = 0; header_buf = flac_fifo_read_wrap(fpc, offset, MAX_FRAME_HEADER_SIZE, &fpc->wrap_buf, ...
1threat
C ampersand operator from command line : I need to develop a client and server program with using sockets. My program should get port number from the command line. I saw an example which says "myprogram 2454 &" I wonder what that & means there. Thanks
0debug
Flutter nested StreamBuilders causing Bad state: Stream has already been listened to : <p>I'm trying to build a Flutter app using the BLoC pattern described in the video <a href="https://www.youtube.com/watch?v=PLHln7wHgPE&amp;feature=youtu.be" rel="noreferrer" title="Flutter / AngularDart – Code sharing, better togeth...
0debug
element not interactable exception in selenium web automation : <p>In the below code i cannot send password keys in the password field, i tried clicking the field, clearing the field and sending the keys. But now working in any of the method. But its working if i debug and test</p> <pre><code> public class TestMail {...
0debug
void video_encode_example(const char *filename) { AVCodec *codec; AVCodecContext *c= NULL; int i, out_size, size, x, y, outbuf_size; FILE *f; AVFrame *picture; uint8_t *outbuf, *picture_buf; printf("Video encoding\n"); codec = avcodec_find_encoder(CODEC_ID_MPEG1VIDEO);...
1threat
const char *small_strptime(const char *p, const char *fmt, struct tm *dt) { int c, val; for(;;) { c = *fmt++; if (c == '\0') { return p; } else if (c == '%') { c = *fmt++; switch(c) { case 'H': ...
1threat
static uint32_t scsi_init_iovec(SCSIDiskReq *r) { r->iov.iov_len = MIN(r->sector_count * 512, SCSI_DMA_BUF_SIZE); qemu_iovec_init_external(&r->qiov, &r->iov, 1); return r->qiov.size / 512; }
1threat
static int ff_filter_frame_framed(AVFilterLink *link, AVFilterBufferRef *frame) { int (*filter_frame)(AVFilterLink *, AVFilterBufferRef *); AVFilterPad *src = link->srcpad; AVFilterPad *dst = link->dstpad; AVFilterBufferRef *out; int perms, ret; AVFilterCommand *cmd= link->dst->command_qu...
1threat
int socket_connect(SocketAddressLegacy *addr, NonBlockingConnectHandler *callback, void *opaque, Error **errp) { int fd; switch (addr->type) { case SOCKET_ADDRESS_LEGACY_KIND_INET: fd = inet_connect_saddr(addr->u.inet.data, callback, opaque, errp); break; c...
1threat