problem
stringlengths
26
131k
labels
class label
2 classes
static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) { PCIDevice *s = container_of(pv, PCIDevice, config); uint8_t *config; int i; assert(size == pci_config_size(s)); config = qemu_malloc(size); qemu_get_buffer(f, config, size); for (i = 0; i < size; ++i) { ...
1threat
angular 5 *ngFor two array : I am getting array from two get method in angular 5. What i want is two combine those two array (JSON) in one array and print it in single for loop my two arrays:- servers3 =[ { sub:'sub', subDesc:'subDesc' }]; public tableData:any; ...
0debug
C Program will not compile : <p>When I try to compile my C program the terminal tells me:</p> <p><code>warning: implicit declaration of function 'strcopy' is invalid in C99 [-Wimplicit-function-declaration]strcopy("test","test");</code></p> <p>I have <code>#include &lt;string.h&gt;</code> at the top of my code ...
0debug
static void ppc_cpu_class_init(ObjectClass *oc, void *data) { PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); DeviceClass *dc = DEVICE_CLASS(oc); pcc->parent_realize = dc->realize; dc->realize = ppc_cpu_realizefn; dc->unrealize = ppc_cpu_unrealizefn; p...
1threat
NodeJS recommended max-old-space-size : <p>I'm having some trouble to understand how NodeJS acts based on the parameter max-old-space-size.</p> <p>In my case for example, I'm running two t2.small aws instances (2GB of RAM).</p> <p>Not sure why but I did set max-old-space-size=4096 (4GB). What does node do in this cas...
0debug
require a SQL query to split a column into 3 columns : I have designed a table named as 'customeradd'. Till now no data has been entered into it. Can anyone suggest me any SQL query to split 'customeradd'. column into 3 sub columns so that it looks like this in the schema:- **customeradd** | A | B | C | | | |...
0debug
Which data structure should I use for storing eye retina? : <p>I need to develop and application for opening/closing of main gate of my office. That application will recognize human eye retina and then open the gate if it is valid. The image of retina is to be stored in database where it matches the upcoming image with...
0debug
static GThread *trace_thread_create(GThreadFunc fn) { GThread *thread; #ifndef _WIN32 sigset_t set, oldset; sigfillset(&set); pthread_sigmask(SIG_SETMASK, &set, &oldset); #endif thread = g_thread_create(writeout_thread, NULL, FALSE, NULL); #ifndef _WIN32 pthread_sigmask(SIG_SETMASK, ...
1threat
static av_always_inline void predict_slice_buffered(SnowContext *s, slice_buffer * sb, IDWTELEM * old_buffer, int plane_index, int add, int mb_y){ Plane *p= &s->plane[plane_index]; const int mb_w= s->b_width << s->block_max_depth; const int mb_h= s->b_height << s->block_max_depth; int x, y, mb_x; ...
1threat
static void gic_dist_writeb(void *opaque, hwaddr offset, uint32_t value, MemTxAttrs attrs) { GICState *s = (GICState *)opaque; int irq; int i; int cpu; cpu = gic_get_current_cpu(s); if (offset < 0x100) { if (offset == 0) { if (s->securi...
1threat
Is it possible to make money with ads if you have few users? : <p>Hello everyone let's say I just published my app at the App Store and set some interstitial ads from Ads mob, If first ”app downloader” or user sees my ad will I make money or there is some kind of fixed quantity of users from where I can make some incom...
0debug
Understanding fetch_assoc() : <p>I am trying to understand how/why fetch_assoc works the way it does. I have the following piece of code: </p> <pre><code>$results = $connectToDb-&gt;fetch("SELECT * FROM customer"); $resultsArray = $results-&gt;fetch_assoc(); print_r($resultsArray); //print_r 1 while($row = $results...
0debug
static int decode_subframe(TAKDecContext *s, int32_t *decoded, int subframe_size, int prev_subframe_size) { GetBitContext *gb = &s->gb; int x, y, i, j, ret = 0; int dshift, size, filter_quant, filter_order, filter_order16; int tfilter[MAX_PREDICTORS]; if (!get_bit...
1threat
android text to speech not speeking : the problem i am having is when i set tts.speak using the s string variable it works perfectly however when i use the text i pass in with the function call it does not work both string veriables are the exact same private void speek(final String text){ tts = new...
0debug
why does datetime.today.minute doesn't give the actual minutes : I'm learning Python. Recently, I have encountered, that while using "datetime.today().minute" gives me o/p by adding 30. When I'm commenting the -30 part that time the output is +30 of what the recent minute is, if I keep the -30 part then it gives the co...
0debug
static void vtd_address_space_unmap(VTDAddressSpace *as, IOMMUNotifier *n) { IOMMUTLBEntry entry; hwaddr size; hwaddr start = n->start; hwaddr end = n->end; if (end > VTD_ADDRESS_SIZE(VTD_HOST_ADDRESS_WIDTH)) { end = VTD_ADDRESS_SIZE(VTD_HOST_ADDRESS_...
1threat
C++ Randomize Different Variables Using a Constructor : <p><pre></p> <p>Robot::Robot()</p> <code>fitness = 5; totalBattery = 5; int randNum; int i = 0; bool valid = true; srand(time(NULL)); //get robot's position on board and check to see if it is not starting on the wall while (valid) { position = (rand()+i+...
0debug
Get Serializable ArrayList on Intent fragment : <p>On my fragment I want to get <code>ArrayList&lt;Animal&gt;</code>. I have created a newInstance function.</p> <pre><code> companion object { private val ARG_TITLE = "ARG_TITLE" private val ARG_ANIMALS = "ARG_ANIMALS" fun newInstance(title: String,animals...
0debug
i just face the problem when run the php function : i just write a function in php.....when i run it on browser it will show the empty page... pls help my code is <?php require_once "conf.php"; function nuser() { $fname=$_POST['name']; $uname=$_POST['user']; $email=$_POST['email']; $pass=$_POS...
0debug
Pyinstaller "Failed to execute script pyi_rth_pkgres" and missing packages : <p>This is my first time posting a question here as most of my questions have already been answered by someone else! I am working on a GUI application in python and am attempting to use pyinstaller to package it into a single folder and .exe ...
0debug
static int put_flac_codecpriv(AVFormatContext *s, AVIOContext *pb, AVCodecContext *codec) { int write_comment = (codec->channel_layout && !(codec->channel_layout & ~0x3ffffULL) && !ff_flac_is_native_layout(codec->channel_layout)); ...
1threat
Android: "Bad Request-Invalid Hostname" When accessing localhost from emulators : <p>I am not able to use localhost with xamarin.android application. I have executed Web project &amp; Service project(not mobile app) on Chrome Browser.</p> <p><a href="https://i.stack.imgur.com/6CLaz.png" rel="noreferrer"><img src="http...
0debug
Cannot invoke equals(string) on the primitive type char : <p>In the if statement in my User class it says cannot invoke equals(String) on the primitive type char what is the problem?</p> <p><a href="https://i.stack.imgur.com/R4lDe.png" rel="nofollow noreferrer">My rock paper scissors code</a></p>
0debug
Expected view to be called with a URL keyword argument named "pk" : <p>I'm writing a test for a Django Rest Framework view following closely the <a href="http://www.django-rest-framework.org/api-guide/testing/" rel="noreferrer">testing documentation</a></p> <p>Here's my simple test: </p> <pre><code>def test_patient_d...
0debug
show user's enter names in alphabetical order : Write a program that asks the user to enter three names, and then displays the names sorted in alphabetical order. Assume that none of the names are the same. For example, if the user entered “Charlie,” “Leslie,” and “Andy,” the program would display: Andy Charlie Leslie...
0debug
Match characters of two strings : <p>Suppose,i have two strings.<code>NameIs</code> and <code>Nam</code>.Now i can check if one string is as same as the other using :</p> <pre><code>If (string1 == string2) </code></pre> <p>But it won't work here as the strings are not the same.But a portion of it is same.What i am tr...
0debug
static int load_data(AVFilterContext *ctx, int azim, int elev, float radius) { struct SOFAlizerContext *s = ctx->priv; const int n_samples = s->sofa.n_samples; int n_conv = s->n_conv; int n_fft = s->n_fft; int delay_l[16]; int delay_r[16]; int nb_input_channels = ctx->inputs[0]->ch...
1threat
Object doesn't support property or method 'startsWith' : <p>In my webpack:</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-js lang-js prettyprint-override"><code>{ "presets": [ ["env", { "targets":...
0debug
void visit_type_uint16(Visitor *v, uint16_t *obj, const char *name, Error **errp) { int64_t value; if (v->type_uint16) { v->type_uint16(v, obj, name, errp); } else { value = *obj; v->type_int64(v, &value, name, errp); if (value < 0 || value > UINT16_MAX) { ...
1threat
static void test_visitor_in_intList(TestInputVisitorData *data, const void *unused) { int64_t value[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 20}; int16List *res = NULL, *tmp; Error *err = NULL; Visitor *v; int i = 0; v = visitor_input_test_init(data, "1,2,...
1threat
int kvm_arch_init(KVMState *s, int smp_cpus) { int ret; struct utsname utsname; uname(&utsname); lm_capable_kernel = strcmp(utsname.machine, "x86_64") == 0; ret = kvm_check_extension(s, KVM_CAP_SET_TSS_ADDR); if (ret <= 0) { fprintf(stderr, "kvm does not sup...
1threat
visualvm fails with "No jdkhome found" on Ubuntu 15.10 with Oracle JDK : <p>I installed Oracle JDK from the <code>webupd8team/java</code> PPA, and then installed the <code>visualvm</code> package. When starting <code>visualvm</code>, I get the following error message:</p> <pre><code>[beni:~]$ visualvm No jdkhome found...
0debug
c# intialize static variable from different class : I am doing this public static class IDs{ public static string someID{ get; set; } static IDs(){ log.info(someID); //use someID here } } pulic class otherClass{ ...
0debug
static void error_setv(Error **errp, ErrorClass err_class, const char *fmt, va_list ap) { Error *err; int saved_errno = errno; if (errp == NULL) { return; } assert(*errp == NULL); err = g_malloc0(sizeof(*err)); err->msg = g_strdup_vprintf(fmt, ap)...
1threat
HOW CAN I ALTERNATE row colors but 4 row at a time? : for example, row 1-4 would have red background, row 5-9 would be blue, then 10-13 would be back to red, etc all the tutorial i found only covers alternating each row
0debug
document.write('<script src="evil.js"></script>');
1threat
how to represent floating point in assembly by 36 instructions of pic16? : hey guys I have a question, how is floating point represented in assembly for pic16? for example, if I wanna save a value of 1.623 in memory, how can I save it using the 36 assembly instructions in pic16? your help is appreciated
0debug
Google script - sum of arrays : I'm using the following code to get all the value of all my sheets that have a numeric name. Once it find a numeric sheet name, it must sum row 8 to 108 of column 6. All the sheets must be sum in the right array. Right now, my script add the data in the array after then it crash instead ...
0debug
static void render_slice(Vp3DecodeContext *s, int slice) { int x, y; int m, n; int i; int16_t *dequantizer; DCTELEM __align16 block[64]; unsigned char *output_plane; unsigned char *last_plane; unsigned char *golden_plane; int stride; int motion_x = 0xdeadbeef, motion...
1threat
static void set_sar(TiffContext *s, unsigned tag, unsigned num, unsigned den) { int offset = tag == TIFF_YRES ? 2 : 0; s->res[offset++] = num; s->res[offset] = den; if (s->res[0] && s->res[1] && s->res[2] && s->res[3]) av_reduce(&s->avctx->sample_aspect_ratio.num, &s->avctx->sample_aspec...
1threat
SyntaxError: Generator expression must be parenthezised / python manage.py migrate : <p>I'm really new in programming and I wanted to follow the Djangogirls tutorial, but I'm stucked now. In the tutorial, I am <a href="https://tutorial.djangogirls.org/en/django_start_project/" rel="noreferrer">here</a>:</p> <blockquot...
0debug
is code sharing between react and react native possible? : <p>I want to know whether, is it possible to create an app which works both on web and mobile app with same code. I think it is possible in angular 2 ionic. But, I'm not sure about react. Can anyone help me on this?</p> <p>Thanks in advance!</p>
0debug
i cant see the onactivityresult in android studio : <p>heres my code i cant see the activity result when i type "on" please help there is no pop up on onActivityResult.</p> <p>heres my code i cant see the activity result when i type "on" please help there is no pop up on onActivityResult.</p> <p>heres my code i cant ...
0debug
Add description attribute to enum and read this description in TypeScript : <p>I’m wondering how to add description attributes to enum in TypeScript. I would like to create enum as follows(or something similar):</p> <pre><code>public enum Sample { [Display(Name = "Blah V")] V, [Display(Name = " Blah IV")]...
0debug
Hibernate dialect for MySQL 8? : <p>Is there a Hibernate dialect for MySQL 8? Or should I use the org.hibernate.dialect.MySQL57Dialect that ships with Hibernate? I'm using hibernate 5.2.16</p>
0debug
Format Curly Braces on Same Line in C++ VSCode : <p>I'm using the <a href="https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools" rel="noreferrer">C++ Extension</a> for <a href="https://code.visualstudio.com/" rel="noreferrer">VSCode</a> <em>(Visual Studio Code)</em>.</p> <p>Currently, I have the sett...
0debug
Error with LINQ in MVC : First of all, sorry for my bad english. Im developing a MVC website. In one of the View i need to use: return View(db.Logs.OrderByDescending(l => l.Date) .Where(l => ((DateTime)l.Date).ToLocalTime().ToString().Contains(search) || l.Name.Contains(search)).ToList(...
0debug
Switch between icons when using FontAwesome 5.0 SVG Framework : <p>I'm looking to be able to switch between icons in Javascript while using the new FontAwesome SVG framework.</p> <p>Previously in the old WebFont method, this was achieved by toggling or changing the class on the tag, however as these are now rendered ...
0debug
How to run these asynchronous functions in loop, sequentially? : <p>Below written javascript code runs asynchronously and produces output in the following format.</p> <pre><code>const check = () =&gt; { const arr = [3,2,1] arr.forEach(async (val) =&gt; { await setTimeout(() =&gt; console.log(val), val...
0debug
void qmp_change_blockdev(const char *device, const char *filename, const char *format, Error **errp) { BlockBackend *blk; BlockDriverState *bs; BlockDriver *drv = NULL; int bdrv_flags; Error *err = NULL; blk = blk_by_name(device); if (!blk) { erro...
1threat
void usb_info(Monitor *mon) { USBBus *bus; USBDevice *dev; USBPort *port; if (TAILQ_EMPTY(&busses)) { monitor_printf(mon, "USB support not enabled\n"); return; } TAILQ_FOREACH(bus, &busses, next) { TAILQ_FOREACH(port, &bus->used, next) { dev = p...
1threat
Robot framwork how to verify value of element in window : [enter image description here][1] [1]: https://i.stack.imgur.com/qS0yw.png I want to validate the value 'Ping Information For' that it exists in window
0debug
int xen_be_init(void) { xenstore = xs_daemon_open(); if (!xenstore) { xen_be_printf(NULL, 0, "can't connect to xenstored\n"); return -1; } if (qemu_set_fd_handler(xs_fileno(xenstore), xenstore_update, NULL, NULL) < 0) { goto err; } if (xen_xc == XC_HANDLER_I...
1threat
.NET CLI how to run app after publish on Linux : <p>I spent ~4 hours investigation and still can't find out how to run published application ( <code>dotnet publish</code> )</p> <p>Now I can download sources to my remote machine, then call <code>dotnet build</code> and <code>dotnet run</code> - then my app runs as inte...
0debug
How to have a set of sets in Python? : <p>In Python there's no full support for heterogeneous data structures. For example this fails:</p> <pre><code>set(set(1,2),set(2,3)) </code></pre> <p>What's the best way to treat sets of sets?</p>
0debug
PageCache *cache_init(size_t num_pages, size_t page_size) { int64_t i; PageCache *cache; if (num_pages <= 0) { DPRINTF("invalid number of pages\n"); return NULL; } cache = g_try_malloc(sizeof(*cache)); if (!cache) { DPRINTF("Failed to allocate cache\...
1threat
Why use json format when read mode and write mode are available? : Why do we use `json files` when we can as easily store and load data with two other functions, namely `read()` and `write()`? Since I am a beginner in Python I don't know what else `json` can be used for except to store and load data from different f...
0debug
hopefully a simple Mysql/php query : I'm working with a mysql date column called 'class_of' that has dates ranging from 2014-08-01 to 2019-08-01, all formatted as a date. These dates coincide to what year an article was written. I have set up my php execution page to grab the year through a url action. for examp...
0debug
document.location = 'http://evil.com?username=' + user_input;
1threat
alert('Hello ' + user_input);
1threat
Use the same value for the next 10 occurrences in python : <p>I have a column with values and I need to create a new column where the first instance of 1 is repeated for the next 5 occurrences.</p>
0debug
learning c wrote code.whats wrong.(no error acoording to compiler) : #include <stdio.h> #include <stdlib.h> int main() {int array1[10],i=0,sum=0; while(i<10) {scanf("%d",&array1[i]); i=i+1; } while(i<10) {sum=sum+array1[i];i=i+1; } print...
0debug
"Index out of range" while reading contents from a file through cat PYTHON : <p>I am trying to get input from a file, through cat command, into a python file. My python version is 3.5. The code looks like this. </p> <pre><code>with open(sys.argv[1]) as f: while True: if f.readline()== '': break...
0debug
putsum(uint8_t *data, uint32_t n, uint32_t sloc, uint32_t css, uint32_t cse) { if (cse && cse < n) n = cse + 1; if (sloc < n-1) cpu_to_be16wu((uint16_t *)(data + sloc), do_cksum(data + css, data + n)); }
1threat
Probability of happening function : <p>Basically I have a race, in every lap of the race each pilot have 5% probability of crashing.</p> <p>How can I make a function that test the probability of crashing?</p> <pre><code> //the professor gave us this code but wasn't able to use it/ or understand it //Returns the valu...
0debug
void MPV_common_end(MpegEncContext *s) { int i; av_freep(&s->mb_type); av_freep(&s->p_mv_table); av_freep(&s->b_forw_mv_table); av_freep(&s->b_back_mv_table); av_freep(&s->b_bidir_forw_mv_table); av_freep(&s->b_bidir_back_mv_table); av_freep(&s->b_direct_mv_table); av_fre...
1threat
How to get string formate from response of HTTP GET in Python? : <p>I have the following task </p> <p>Write a function named "get_response" that three string parameters representing the protocol, name of a server, and a path for an HTTP GET request in this order. Return the response of an HTTPS GET request to the url ...
0debug
static int megasas_handle_dcmd(MegasasState *s, MegasasCmd *cmd) { int opcode, len; int retval = 0; const struct dcmd_cmd_tbl_t *cmdptr = dcmd_cmd_tbl; opcode = le32_to_cpu(cmd->frame->dcmd.opcode); trace_megasas_handle_dcmd(cmd->index, opcode); len = megasas_map_dcmd(s, cmd); if (...
1threat
How would I make a basic alert for Android : I have a `if then` statement. If the `if then` statement is true, I want the android system to fire a basic alert with 1 button that says ok. I have done plenty of recchearch, but nothing I can find will work. Thanks in advance.
0debug
AWS CodeBuild – Build does not have internet connectivity. Please check subnet network configuration : <p>I am experimenting with CodeBuild but have reached a dead-end. My build always fails with the error message:</p> <blockquote> <p>Build does not have internet connectivity. Please check subnet network configurati...
0debug
static unsigned tget_long(const uint8_t **p, int le) { unsigned v = le ? AV_RL32(*p) : AV_RB32(*p); *p += 4; return v; }
1threat
static void fsl_imx6_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); dc->realize = fsl_imx6_realize; dc->desc = "i.MX6 SOC"; }
1threat
BigQuery - IFERROR for standardSQL : <p>I'm about to migrate queries from Legacy to Standard in BQ. In Legacy I used to have <code>x/y</code> returning <code>null</code> if <code>y=0</code>, however, I'm stuck in StandardSQL with the error:</p> <blockquote> <p>Error: division by zero</p> </blockquote> <p>I'd like t...
0debug
Why are these two algorithms for finding the n-th Fabonacci number so inefficient? : When calculating the 64th Fabonacci number, the first algorithm takes several hours, and the second one takes less than a second. Why is the efficiency of the second algorithm so much higher than that of the first one? They look ...
0debug
duplicate data when insert to db through form : the problem is when insert it duplicate the data like this in photo its added 2 times in Database[mysql table][1] [page][2] submit redirect to menu_submit when done insert it redirect to create_menu.php here is menu_submit.php enter code here <!-- begin sn...
0debug
Is there any way to emulate perfectly a OnePlus device? : <p>I'm trying to debug a problem that seems to be happening only on OnePlus devices, unfortunately buying this device is not an option for me, so I've been looking on Google how to emulate an OnePlus device but without any success :(</p> <p>Is there any way I c...
0debug
please help me from this module not found error ? github of my code is below : //please visit this github link for full source code. https://github.com/roshantak44/todo var mongoose = require('mongoose'); module.exports = mongoose.model('Todo', { text : String, done : Boolean })...
0debug
jQuery - Can't get the proper id to click : <p>i have html like this</p> <pre><code>&lt;div class="ui pagination menu"&gt; &lt;li class="active item"&gt;1&lt;/li&gt; &lt;li class="item"&gt;&lt;a href="http://localhost/csgorakCI/market/2" data-ci-pagination-page="2"&gt;2&lt;/a&gt;&lt;/li&gt; &lt;li class="item"&gt;&lt;...
0debug
Awareness API & Android O using BroadcastReceiver : <p>I have an Android app which uses the Awareness API to setup a fence when a headset is plugged in. </p> <p>I have implemented the AwarenessFence using code much like in the examples at: <a href="https://developers.google.com/awareness/android-api/fence-register" re...
0debug
How to float list view just below the Edit text (search Box) and over the the others views like Button : <p>I wanna show the List like as shown in the image.Searched a lot on Google but did not get the answer. Please help... <a href="https://i.stack.imgur.com/IlJkl.png" rel="nofollow noreferrer">Example Image Link</a><...
0debug
make a batch file that adds iteself to startup and (windows 10) : so I was wondering is there a way to make a batch file that adds itself to startup without getting the error: access is denied. 0 file moved here is my bat code: move "C:\Users\Deathblade\Desktop\Startup bat\funtime.bat" "C:\Documents and Settings\A...
0debug
static CharDriverState *qemu_chr_open_win_path(const char *filename) { CharDriverState *chr; WinCharState *s; chr = g_malloc0(sizeof(CharDriverState)); s = g_malloc0(sizeof(WinCharState)); chr->opaque = s; chr->chr_write = win_chr_write; chr->chr_close = win_chr_close; if (w...
1threat
hello all,I am new in java...plz tell below program behaviour? : can anybody tell?why it do not give compile time error saying.. Incompatible type cannot convert int to string. public class Test1 { public static void main(String[] args) { String[] a=...
0debug
operand types are incompatible ("bool (*)()" and "bool") : <p>I am trying to create a program in Visual Studio Community 2015 to play Tic-Tac-Toe. Sounds simple, not so much. Anyway, I am using a function [bool playerCheck()] to make a switch for the function that checks whether the space that the user chooses is alre...
0debug
In R, get a subset of the data frame where the value in a column are contained in a list : <p>For instance, let's say I have a dataframe named <code>df</code> with a column <code>"ID"</code> of integers and I want to grab the subset of my dataframe in which the value in <code>"ID"</code> is in the vector <code>[123,198...
0debug
Why doesn't this for loop in Python take ages? : <p>I am running this little loop on a Jupyter notebook</p> <pre><code>import time def time_loop(reps): start = time.clock() count = 0 for i in range(reps): count += 1 return time.clock() - start time_loop(10000^100) </code></pre> <p>No matter...
0debug
Printing all the id names for a class in javascript : <p>I want print the Id of every element that has the class name "test". Right now nothing is printing. I would like this to print </p> <pre><code>myAnchor SecondId </code></pre> <p>I left my comments in there to show how an Id can be printed by accessing the Id na...
0debug
static int local_rename(FsContext *ctx, const char *oldpath, const char *newpath) { char *tmp; int err; tmp = qemu_strdup(rpath(ctx, oldpath)); if (tmp == NULL) { return -1; } err = rename(tmp, rpath(ctx, newpath)); if (err == -1) { int ...
1threat
Bug in Bootstrap carousel when click on next and back : <p>I have integrated bootstrap carousel but when i click on next and prev it shows some bug. Can someone help me what am missing ?</p> <p>here is the link of website <a href="http://logmak.justevent.in/" rel="nofollow noreferrer">http://logmak.justevent.in/</a> p...
0debug
Any way (Best way) to alter user's IP address before passing query onto remote server : <p>We have a script running on a managed server (LAMP) that uses php/curl to post a user's query to a remote server and then display the results that are returned. What we would like to do is anonymize the users by passing our serve...
0debug
Change value of div while scrolling : <p>how could I change a position of a div, based on scroll level of my website? I have a landing screen (whole page fullscreen background) only with big centered logo. What I'm asking is, how to do that it'll scale down and catch into a navbar, where it'll be sticked, untill it wou...
0debug
static int decode_cblk(J2kDecoderContext *s, J2kCodingStyle *codsty, J2kT1Context *t1, J2kCblk *cblk, int width, int height, int bandpos) { int passno = cblk->npasses, pass_t = 2, bpno = cblk->nonzerobits - 1, y, clnpass_cnt = 0; int bpass_csty_symbol = J2K_CBLK_BYPASS & codsty->cblk_...
1threat
Don't get compilation error when using three dots notation for parameters : <p>I want to generate CSV files. I have a <code>generateCSV</code> method which takes a filename as parameters and a bunch of entries</p> <pre><code>private static void generateCSV(String pFilename, String... pColumns) { try(FileWriter fi...
0debug
Setter doesnt work : <p>Iam trying to make login activity I got a problem. My setter doesnt work, i dont know why? I have 3 classes.</p> <p>1st one is Data with server data and getters and setters</p> <pre><code>public class Data{ String addressesURL = "/DataSnap/rest/TServerMethods1/LookupCustomers"; String article...
0debug
static int packed_16bpc_bswap(SwsContext *c, const uint8_t *src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t *dst[], int dstStride[]) { int i, j, p; for (p = 0; p < 4; p++) { int srcstr = srcStride[p] >> 1; int dst...
1threat
Website posting and login : <p>How can I make website where the moderator will be able to publish a post or an image without accessing to the code. To publish something like a facebook status from some part of site. And second question, who can I make that someone can login to my site(moderator/administrator), I know h...
0debug
int64_t url_fseek(ByteIOContext *s, int64_t offset, int whence) { int64_t offset1; int64_t pos; int force = whence & AVSEEK_FORCE; whence &= ~AVSEEK_FORCE; if(!s) return AVERROR(EINVAL); pos = s->pos - (s->write_flag ? 0 : (s->buf_end - s->buffer)); if (whence != SEEK_...
1threat
Get complete UTC offset format in Golang : I need to get the UTC offset from a location. I am getting trouble with the inconsistency of the results from different values. All I need to get are of the format `+AB:CD`. func main() { loc, _:= time.LoadLocation("Asia/Kathmandu") offset, others:= ti...
0debug
how to get output as "select * from employee" ,"select * from salaries","select * from student" and "select * from attendance" : <p>package array;</p> <p>public class A {</p> <pre><code>public static void main(String[] args) { String[] arr = { "employee","salaries","student","attendance"}; for (String x : arr...
0debug
static int mpeg2_decode_block_non_intra(MpegEncContext *s, DCTELEM *block, int n) { int level, i, j, run; int code; RLTable *rl = &rl_mpeg1; const UINT8 *scan_table; const UINT16 *matrix; int mismatch; ...
1threat