problem
stringlengths
26
131k
labels
class label
2 classes
Fb login linked to a menu page Objective c : I have set up a facebook login for my app and it works but what I don't know how to do is when you log in the app through facebook, the app should take you to a menu screen. Right now with facebook login it is taking me to the log out page. Any help would be appreciated.
0debug
Cannot run `source` in AWS Codebuild : <p>I am using AWS CodeBuild along with Terraform for automated deployment of a Lambda based service. I have a very simple <code>buildscript.yml</code> that accomplishes the following:</p> <ul> <li>Get dependencies</li> <li>Run Tests</li> <li>Get AWS credentials and save to file (...
0debug
void bdrv_set_dirty(BlockDriverState *bs, int64_t cur_sector, int nr_sectors) { BdrvDirtyBitmap *bitmap; QLIST_FOREACH(bitmap, &bs->dirty_bitmaps, list) { hbitmap_set(bitmap->bitmap, cur_sector, nr_sectors); } }
1threat
static void cchip_write(void *opaque, target_phys_addr_t addr, uint64_t v32, unsigned size) { TyphoonState *s = opaque; uint64_t val, oldval, newval; if (addr & 4) { val = v32 << 32 | s->latch_tmp; addr ^= 4; } else { s->latch_tmp = v32; ...
1threat
Firebase and Crashlytics - Which one to use? : <p>Since the presentation of Firebase Crash Reporting, one of the most prominent questions has been wether moving from Crashlytics or not.</p> <p>What are the pros and cons when comparing the two crash reporting services?</p>
0debug
Convert image to binary to apply Image Steganography : <p>I was trying to convert a ".jpg" image to binary and then change its binary value to hide some data. But couldn't find anything. Any ideas anyone?</p>
0debug
await await vs Unwrap() : <p>Given a method such as</p> <pre><code>public async Task&lt;Task&gt; ActionAsync() { ... } </code></pre> <p>What is the difference between</p> <pre><code>await await ActionAsync(); </code></pre> <p>and</p> <pre><code>await ActionAsync().Unwrap(); </code></pre> <p>if any.</p>
0debug
static void string_serialize(void *native_in, void **datap, VisitorFunc visit, Error **errp) { StringSerializeData *d = g_malloc0(sizeof(*d)); d->sov = string_output_visitor_new(false); visit(string_output_get_visitor(d->sov), &native_in, errp); *datap = d; }
1threat
What is the difference between these instruction : What is the difference between these instruction -Add (R0), R3 -Add R0, (R3) And why the place () have been changed
0debug
How Can Uploads Images To Folder and Sends Image Path to Database And how Change Image Name to my UserName Using ADO.NET : In this code Eror occurs when Save file to disk and I want Want Convert image name to my UserName What I can Do??? please Check the Error and Another problem is that FullUrl are Saved When work Cod...
0debug
Difference between IOptionsMonitor vs. IOptionsSnapshot : <p>According to <a href="https://stackoverflow.com/a/46570073/1987788">this answer</a>, <code>IOptionsMonitor</code> is registered in DI container as <strong>singleton</strong> and is capable of detecting changes through <code>OnChange</code> event subscription....
0debug
Android - How to detect if night mode is on when using AppCompatDelegate.MODE_NIGHT_AUTO : <p>I'm using Androids built in day/night mode functionality and I'd like to add an option to my app for <code>AppCompatDelegate.MODE_NIGHT_AUTO</code></p> <p>I'm having a problem though because my app requires certain things to ...
0debug
static void backup_set_speed(BlockJob *job, int64_t speed, Error **errp) { BackupBlockJob *s = container_of(job, BackupBlockJob, common); if (speed < 0) { error_setg(errp, QERR_INVALID_PARAMETER, "speed"); return; } ratelimit_set_speed(&s->limit, speed / BDRV_SECTOR_SIZE, SLICE_...
1threat
static inline void cris_ftag_i(unsigned int x) { register unsigned int v asm("$r10") = x; asm ("ftagi\t[%0]\n" : : "r" (v) ); }
1threat
unresolved external symbol when passing a function pointer : <p>I'm trying to create a generic button and I want to be able to pass a function to call when I click it.</p> <p>main.cpp:</p> <pre><code>#include "Window.h" int testfunction() { print("Test"); return 1; } ...other stuff... window-&gt;SetButtonFun...
0debug
How to permanently set GOPATH environmental variable - Ubuntu : I set ```GOPATH``` as an environment variable on my **Ubuntu** VM as the following: ```export GOPATH="/go"``` and it works fine. The problem is, after I reboot my machine ```GOPATH``` is no longer an environment variable. Why is that and how c...
0debug
static void omap2_inth_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { struct omap_intr_handler_s *s = (struct omap_intr_handler_s *) opaque; int offset = addr; int bank_no, line_no; struct omap_intr_handler_bank_s *bank = NULL; if ...
1threat
ArrayList or Hashmap in Java Text Files : <p>I'm wondering which to use to write my text file's record into it, ArrayList or Hashmap.</p> <p>Records in my text file looks like this:</p> <pre><code>1,Alice,34 2,James,12 3,Jim,21 </code></pre> <p>I'll be doing adding, deleting, editing, searching in future. Which on s...
0debug
Please help making me do exceptions with random numbers : I've made this code for practicing and I want to make a list that keeps every numbers that this code wrote before so I dont want to get duplicates. Sorry for my english It's just guessing random numbers and I don't want it to guess the number that it already...
0debug
SyntaxError when calling an async static function : <p>I'm playing a bit with async/await of Node 8.3.0 and I have some issue with static function. </p> <p><em>MyClass.js</em></p> <pre><code>class MyClass { static async getSmthg() { return true; } } module.exports = MyClass </code></pre> <p><em>index.js</em>...
0debug
How do I save a text file into an array? : <p>This is how I print out the text file</p> <pre><code>FILE *file; char array[200]; file = fopen("test.txt", "r"); fread(array,1, 200, file); printf("\n%s", array); fclose(file); </code></pre> <p>Instead I want to save the text file rows to an array so i can print out the...
0debug
How to put data from a text file into a form input value using perl : helpers, i have a big problem here and i have tried but it seems not to comply with what i want. I have a text file that shows a list of all the currency exchanges rates that i want to use with the update of all my currency's values. The list has a ...
0debug
void boot_sector_test(void) { uint8_t signature_low; uint8_t signature_high; uint16_t signature; int i; #define TEST_DELAY (1 * G_USEC_PER_SEC / 10) #define TEST_CYCLES MAX((90 * G_USEC_PER_SEC / TEST_DELAY), 1) for (i = 0; i < TEST_CYCLES; ++i) { signature_low...
1threat
System Linq Enumerable error while using intersect : <p>I have 3 lists and I'm trying to display their common items in a text box, and while I am implementing the method</p> <pre><code>var result = l1.Intersect(l2); textBox1.Text = ""; textBox1.Text = result.ToString(); </code></pre> <p>while l1 is ...
0debug
static inline void gen_op_eval_fbne(TCGv dst, TCGv src, unsigned int fcc_offset) { gen_mov_reg_FCC0(dst, src, fcc_offset); gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset); tcg_gen_or_tl(dst, dst, cpu_tmp0); }
1threat
How to write a string and see if it is an expression? : <p>I am solving now an algorithmic problem using recursion. So what you need to find out in this problem is that if the string you inputed is an expression. So for example you have string "256+300-500" - this is an expression. So an expression is a string that con...
0debug
static void piix4_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); PCIDeviceClass *k = PCI_DEVICE_CLASS(klass); k->no_hotplug = 1; k->init = piix4_initfn; k->vendor_id = PCI_VENDOR_ID_INTEL; k->device_id = PCI_DEVICE_ID_INTEL_82371AB_0; k->class_i...
1threat
PHP UPDATE ORDER BY DATE ADDED not working : function post_data($update_data){ $session_user_id = $_SESSION ['user_id']; $user_data = user_data($session_user_id, 'username', 'email'); $email= $user_data['email']; $update= array(); array_walk($update_data, 'array_sanitize'); foreach ($update_data as $f...
0debug
Ruby: syntax error, unexpected end-of-input, expecting keyword_end : <p>I am working on some simple ruby exercises and cannot figure out why I am getting the "syntax error, unexpected end-of-input, expecting keyword_end". I keep running over my code and don't see what is wrong, although I am new to ruby.</p> <pre><cod...
0debug
How can I use function with parameters in stored procedure sql-server : I need use dbo.function(@nb int) in stored procedure sql-server but I cant get the good result (table is empty): CREATE PROCEDURE dbo.procedure (@var int) <br> AS<br> BEGIN<br> DECLARE @Qry varchar(Max)<br> SET <br> 'SELECT * FROM dbo.func...
0debug
How to use companion objects on xml layout? : <p>I am trying to use a companion object property inside the layout but the compiler doesn't recognise it.</p> <p><strong>Kotlin Class</strong></p> <pre><code>class MyClass { companion object { val SomeProperty = "hey" } } </code></pre> <p><strong>XML Layout</str...
0debug
i am intrested in accessing the uibutton method from external method but i getting lot of errors : below is my code , i have 9 buttons in my view whose background image is to be changed.. please help me out. thanks in advance.... import UIKit class ViewController: UIViewController { let alerts = UI...
0debug
static int tgq_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt){ const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; const uint8_t *buf_start = buf; const uint8_t *buf_end = buf + buf_size; TgqCo...
1threat
Xamarin.IOS Error - Can not resolve reference: C:/Program Files (x86)/../Xamarin.iOS/v1.0/Facades/System.Private.CoreLib.InteropServices.dll : <p>I working on Cross-platform PCL Xamarin Forms (Android,IOS) Project.</p> <p>I am using Visual Studio 2015 and Window 10 OS to make xamarin project. I have installed Xamarin ...
0debug
How do you read a password protected excel file into r? : <p>How do you read a password protected excel file into r? </p> <p>I have tried excel.link but its not available for R version 3.2.3 (My version)</p> <p>I also tried RDCOMClient but it is also not available for R version 3.2.3</p>
0debug
Best way to Programatically write HTML : <p>What would be the best way to go about programatically writing many lines of HTML in the following format:</p> <pre><code>&lt;div class="grid-item"&gt; &lt;img src="gifs/image-GLITCH.gif" alt="image-GLITCH"/&gt; &lt;/div&gt; &lt;div class="grid-item"&gt; &lt;img src="gifs/im...
0debug
Chartjs v2 - format tooltip for multiple data sets (bar and line) : <p>Reading up a lot on how to format the tooltip in ChartJS v2.x utilizing the tooltip callback. I've had success thus far, but find that I'm unable to define two separate formats for the two data sets I have.</p> <p>As a bit more context, I have a li...
0debug
static int piix3_post_load(void *opaque, int version_id) { PIIX3State *piix3 = opaque; int pirq; piix3->pic_levels = 0; for (pirq = 0; pirq < PIIX_NUM_PIRQS; pirq++) { piix3_set_irq_level_internal(piix3, pirq, pci_bus_get_irq_level(piix3->...
1threat
include common headers and footers django : I am working with Django templates, most of the templates have common header and footer like CSS, scripts etc, so instead of writing them in every template, how can I attach templates with common header and footer files.
0debug
Select dropdown option redirecting on clicking on button : <p>I had created a sample drop down list, below is the code.</p> <pre><code>&lt;select id="select-id"&gt; &lt;option value="" selected=""&gt;Pick a E-commerce&lt;/option&gt; &lt;option value=""&gt;Amazon&lt;/option&gt; &lt;option value=""&gt;Flipkart&lt;/optio...
0debug
How using inline if statement inside bracket : <p>I want using inline if statement in angular2 template like this?</p> <pre><code>&lt;select [(ngModel)]="value" class="form-control" (blur)="onBlur()"&gt; &lt;option *ngFor="let item of items" [ngValue]="item"&gt;{{item.name?item.name:item}}&lt;/option&gt; &lt;/sele...
0debug
how to get all videos duration before or without playing the video using jquery or javaScript : Hello I have problem in my code to getting duration of all videos. error showing me undefined below my code please help me anyone for that. $("video").each(function(){ var duration = $(this).attr('duration');...
0debug
Adding Marker to Google Maps in google-map-react : <p>I am using the <a href="https://github.com/istarkov/google-map-react" rel="noreferrer"><code>google-map-react</code></a> NPM package to create a Google Map and several markers.</p> <p><strong>Question:</strong> How can we add the default Google Maps markers to the ...
0debug
Python mock call_args_list unpacking tuples for assertion on arguments : <p>I'm having some trouble dealing with the nested tuple which <code>Mock.call_args_list</code> returns.</p> <pre><code>def test_foo(self): def foo(fn): fn('PASS and some other stuff') f = Mock() foo(f) foo(f) foo(f) ...
0debug
Creating an API endpoint in a .NET Windows Service : <p>I have an ASP.NET project and a .NET Windows service running on the same machine, and I want them to communicate (currently only ASP.NET => Service one way). </p> <p>The most convenient way to do this (IMO) would be a REST / other API endpoint in the service whic...
0debug
Is the amount of RAM used in dot-net projects more than other projects? : <p>Is the amount of <strong>RAM</strong> used in <strong>.net-Core</strong> projects more than other projects</p>
0debug
Python max() not working? Not actually giving me the maximum : <p>Having a problem recently when using the max() function in python. Here is my code:</p> <pre><code>x = ["AJK","exit","Down","World","HappyASD"] max(x) </code></pre> <p>But instead of getting "HappyASD", I get "exit". Any help?</p>
0debug
How to Make Ansible variable mandatory : <p>I'm looking for the way how to make Ansible to analyze playbooks for required and mandatory variables before run playbook's execution like:</p> <pre><code>- name: create remote app directory hierarchy file: path: "/opt/{{ app_name | required }}/" state: directory ...
0debug
How do I print out this string from within my class? : <p>I would like to know how to make it so I can print the string variables from my class. I would also like to know if I am using the correct way to to write out my array.</p> <pre><code>#include "stdafx.h" #include &lt;iostream&gt; #include &lt;string&gt; using n...
0debug
window.location.href = 'http://attack.com?user=' + user_input;
1threat
Adding text to my div, shifts my div down. : [Image][1] [1]: https://i.stack.imgur.com/sa9xN.png I tried to do vertical-align: top; on my div id, and nothing will move every thing stays the same. I tried to add position absolute and that wont work either. Am I missing something else?
0debug
How can i create a RegEx for Strings with Tabulator? : I have an input string/text like this: <span id="salutation"> Mister </span><div class="c"></div> With which pattern can i get the string Mister? This pattern: string pattern = "<span id=\"salutation\"> (.*...
0debug
dplyr: transpose a list (length-n) in a cell to n-rows : <p>I have this style of data:</p> <pre><code>df=tibble(a=letters[23:25],b='k',c='m',d=list(runif(4))) df # A tibble: 3 x 4 a b c d &lt;chr&gt; &lt;chr&gt; &lt;chr&gt; &lt;list&gt; 1 w k m &lt;dbl [4]&gt; 2 x k m...
0debug
Passive event listener on JQuery : <p>Passive event listeners are a new feature in the DOM spec that enable developers to improve scroll performance, with a simple javascript piece of code like this:</p> <pre><code>document.addEventListener('touchstart', handler, {passive: true}); </code></pre> <p>Is there a way to p...
0debug
what is the best way to store Numbers of a Bingo Card in database table : <p>I wanna create a web-based bingo game using MVC and EF, I want to store 24 numbers for each card in the database table as a record,I'm not sure how to create my Bingo cards table,one way that comes to my mind is design a table with 24 integer ...
0debug
decode_lpc(WmallDecodeCtx *s) { int ch, i, cbits; s->lpc_order = get_bits(&s->gb, 5) + 1; s->lpc_scaling = get_bits(&s->gb, 4); s->lpc_intbits = get_bits(&s->gb, 3) + 1; cbits = s->lpc_scaling + s->lpc_intbits; for(ch = 0; ch < s->num_channels; ch++) { for(i = 0; i < s->lpc_order; i++) ...
1threat
int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size) { AVCodecContext *avctx = h->s.avctx; if (!buf || size <= 0) return -1; if (buf[0] == 1) { int i, cnt, nalsize; const unsigned char *p = buf; h->is_avc = 1; if (size < 7) { ...
1threat
static void print_final_stats(int64_t total_size) { uint64_t video_size = 0, audio_size = 0, extra_size = 0, other_size = 0; uint64_t subtitle_size = 0; uint64_t data_size = 0; float percent = -1.0; int i, j; for (i = 0; i < nb_output_streams; i++) { OutputStream *ost = output_...
1threat
Adding an Object to an Arraylist results in nullpointerexception : <p>I cannot add any (or maybe just the first?) Objects to my Arraylist</p> <p>A Bikestore is an Object which contains a name and an Arraylist of all it's bikes</p> <p>bikes have 3 different attributes (2 Strings, 1 double)</p> <p>Bikes are added to t...
0debug
How can I change the default compiler of linux mint 18.0 from version 5.3.1 to a version below 4.0? : I need to compile a special program (i.e. configuring, making, and making install processes of nest) by an old version of g++ such as 3.3 or 3.4. however, I don't have such versions in my package manager. I downloaded ...
0debug
Eslint AirBNB with 4 spaces for indent : <p>I am configuring eslint and am using the AirBNB style guide.</p> <p>I want to over-ride the indent (supposed to be 2 spaces) to be 4 spaces. But no matter what I do within my .eslintrc I cannot get this error supressed so that I can use indentation of 4 spaces.</p> <p>I hav...
0debug
How can a container be given to a macro in c++? : #define x.contains(a) x.find(a)!=x.end() void main(){ vector<int> v = {1,2,3,4}; if(v.contains(2)) cout<<"yes"<<endl; else cout<<"no"<<endl; } I have following piece of code where I am ...
0debug
Which directory is the real location that `brew cask install` use? : <p>Which directory is the real location that <code>brew cask install</code> use?</p> <p>I want to find the real location of app, not the symlink in <code>/Application</code></p>
0debug
I am getting error as value of java.lang.String cannot be converted to JSONObject : <p>my JSONResponse looks as follows</p> <p>[["1","somevalue","1234567890","1239876093","some"], ["2","somevalue","1234567890","1234567890","some"]]</p> <p>and code accessing it is as follows</p> <pre><code> try{ ...
0debug
static void rv34_idct_add_c(uint8_t *dst, ptrdiff_t stride, DCTELEM *block){ int temp[16]; uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; int i; rv34_row_transform(temp, block); memset(block, 0, 16*sizeof(DCTELEM)); for(i = 0; i < 4; i++){ const int z0 = 13*(temp[4*0+i] + ...
1threat
void ff_decode_dxt1(const uint8_t *s, uint8_t *dst, const unsigned int w, const unsigned int h, const unsigned int stride) { unsigned int bx, by, qstride = stride/4; uint32_t *d = (uint32_t *) dst; for (by=0; by < h/4; by++, d += stride-w) for (bx=0; b...
1threat
static void ps_add_squares_c(INTFLOAT *dst, const INTFLOAT (*src)[2], int n) { int i; for (i = 0; i < n; i++) dst[i] += AAC_MADD28(src[i][0], src[i][0], src[i][1], src[i][1]); }
1threat
Why people use `rel="noopener noreferrer"` instead of just `rel="noreferrer"` : <p>I often see following pattern:</p> <pre><code>&lt;a href="&lt;external&gt;" target="_blank" rel="noopener noreferrer"&gt;&lt;/a&gt; </code></pre> <p>But as far as I see, <code>noreferrer</code> implies the effect of <code>noopener</cod...
0debug
static void aux_slave_dev_print(Monitor *mon, DeviceState *dev, int indent) { AUXBus *bus = AUX_BUS(qdev_get_parent_bus(dev)); AUXSlave *s; if (aux_bus_is_bridge(bus, dev)) { return; } s = AUX_SLAVE(dev); monitor_printf(mon, "%*smemory " TARGET_FMT_plx "/" TARGET_FMT_...
1threat
What is .build-deps for apk add --virtual command? : <p>What is <code>.build-deps</code> in the following command? I can't find an explanation in the Alpine docs. Is this a file that is predefined? Is see this referenced in many Dockerfiles.</p> <pre><code>RUN apk add --no-cache --virtual .build-deps \ gcc \ freety...
0debug
SQL Server and Azure Websites : <p>I am thinking about putting a SQL Server behind my Azure website. Is the sql server also free when using Windows Azure Websites? </p>
0debug
Hello guys, i'm getting this error while submitting a simple form. i honestly don't know what is : Someone could point me where the error this. package mvc.controller; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.Servlet...
0debug
Mysql query - Count the founded rows on joined table : <p>I have two tables</p> <p>First one: Offers</p> <p>id user_id user_data</p> <p>The second one: Orders</p> <p>id user_id</p> <h2>order_data</h2> <p>Now, the goal is, to get the list of the OFFERS including the count of the orders table, where orders.user_id ...
0debug
static void h264_h_loop_filter_luma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0) { h264_loop_filter_luma_c(pix, 1, stride, alpha, beta, tc0); }
1threat
Oracle MySQL: Appropriate Join/Connection For This Scenario? : I want to join two tables together which I have done I also want to join them based on a condition, where a paricular column has a specific value, and I also have done this successfully. I used an inner join and a where clause so far. However, for thi...
0debug
Docker nodejs image : I'm pretty new to the whole docker thing, I would to create a node-js image from scratch I searched the internet a bit, but all I found was images based on other nodejs images. I tried adding the node executables and editing the path accordingly, but still no luck. (Worked with java) ...
0debug
Angular 4 Nested *ngFor not working : <p>i am getting data from rest API, 1 Level data is repeating good but Children are not working. Somebody help me please.</p> <pre><code>&lt;div *ngFor="let item of list"&gt; &lt;div class="isolate"&gt; &lt;div class="info-box"&gt; &lt;span class="info-box-text"...
0debug
vmxnet3_init_msix(VMXNET3State *s) { PCIDevice *d = PCI_DEVICE(s); int res = msix_init(d, VMXNET3_MAX_INTRS, &s->msix_bar, VMXNET3_MSIX_BAR_IDX, VMXNET3_OFF_MSIX_TABLE, &s->msix_bar, VMXNET3_MSIX_BAR_IDX, VMXN...
1threat
IndexOutOfBoundsException when i write excel document using list of string : <p>i have 2 ArrayList of string and i want to copy their content in an excel document. I am using HSSF class to make this and if i create statically the document it works perfectly, but when i use a for loop to copy arraylist content i get <co...
0debug
Apple Pay iOS in app payments : <p>I am looking at integrating a payment mechanism into an app. </p> <p>I have used stripe and Apple Pay and can successfully take payments.</p> <p>My question is do all Apple iPhones support Apple Pay? </p> <p>Is having just Apple Pay sufficient or do I need another system if Apple P...
0debug
uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size) { AVDictionaryEntry *t = NULL; uint8_t *data = NULL; *size = 0; if (!dict) return NULL; while ((t = av_dict_get(dict, "", t, AV_DICT_IGNORE_SUFFIX))) { const int keylen = strlen(t->key); const int ...
1threat
Login form witout mysql, changepassword in db.txt plz help me : Hay, i have update password any users...but not working my code, plz see function change_pass($user_accounts_file, $username, $oldpass, $newpass) { if(false === file_exists($user_accounts_file)) { trigger_error( sprintf( ...
0debug
Async validation with Formik, Yup and React : <p>I want to make async validation with formik and validationschema with yup but i can't find the example or demo.</p>
0debug
vector iterators incompatible when i have collision detection : <p>so i have DEBUG_ERROR("vector iterators incompatible"); whenever i have collision detection between blackHole &amp; planet. but when i have collision detection between anything else like asteroid &amp; planet or blackHole &amp; asteroid, then its work w...
0debug
static inline CopyRet copy_frame(AVCodecContext *avctx, BC_DTS_PROC_OUT *output, void *data, int *got_frame) { BC_STATUS ret; BC_DTS_STATUS decoder_status = { 0, }; uint8_t trust_interlaced; uint8_t interlaced; CHDContext *p...
1threat
how to delete only 10 digits numbers from a text file which contains array of both alpha numerical and numbers : Let's say i have a text file which contains both alphanumerical values and only numerical values of length 10 digits line by line, like the one shown below. abcdefgh 0123456789 edf6543jewj...
0debug
Processing: How to destroy an object once it leaves the screen? : In my code I have a class, `Key()` that can create a key at a random coordinate. When a key is pressed, that key is added to an `ArrayList`. The `ArrayList` is iterated in the `draw()` method, and the key falls at a certain velocity. Multiple keys can b...
0debug
Base64 encoded string of the Security Credential, which is encrypted using public key : <p>I am working on an API that requires encryption of security credentials. I have not done any encryption.</p> <p>Security credentials are generated by encrypting the base64 encoded password with a public key, a X509 certificate.<...
0debug
AWS security group inbound rule. allow lambda function : <p>I run a service on my EC2 instance and I want to setup an inbound rule that only allows my lambda function to access it. The security group allows me to restrict access by a specific IP, but I don't think that lambda functions have a specific IP assigned. Is t...
0debug
how to make bruteforce without itertools in python : i'm new in python, i try calculate 3 ** 16(¹[0-f] ² [0-f] ³ [0-f] but not working properly. this is my code, please help me to corrected my code. inp = str(input('value len 0-3 digit:')) hexa = ('0123456789abcdef'); //len(hexa) = 16 digit ...
0debug
Is there a way to check an email ID and a value next to it in database from frontend without submitting the form? : <p>I have a registration form and I would like to check if the email is already in database (PSQL) without submitting the form. Vanilla javascript or jQuery only please. No PHP</p>
0debug
How does assignment operator work on a 2D character array? : For the below code snippet , I am not getting how can we assign a value to names[1][2] since it returns the address of the 2nd column in Row 1 ,so how can we assign names[2][1] which returns address of column 1 in Row 2 to names[1][2] ? I am unable to ge...
0debug
Laravel 5.4 change the subject of markdown mail : <p>I have used <a href="https://laravel.com/docs/5.4/mail#markdown-mailables" rel="noreferrer">markdown mailables</a> which is a new feature in laravel 5.4. I have successfully implemented a mail sender. It seems, the subject of the mail is named as the name of the <cod...
0debug
OpenGL (C Language) : Make the shapes to be moved with keyboard (distortion issue) : <p>Well, we have the following C (GLUT Project) for OpenGL. I use CodeBlocks to compile it (with removed the extra main() function file). I have based in some examples, sorry if the way I wrote OpenGL is bad. The main thing is to make ...
0debug
Close Gitlab issue via commit : <p>I spend my day doing this:</p> <ol> <li>Read an issue on a Gitlab-powered issue tracker,</li> <li>Fix the issue,</li> <li>Commit and push to the same Gitlab-powered Git server,</li> <li>Mark the issue as closed.</li> </ol> <p>To remove the 4th step, how can I close the issue automat...
0debug
QemuOpts *qemu_opts_find(QemuOptsList *list, const char *id) { QemuOpts *opts; QTAILQ_FOREACH(opts, &list->head, next) { if (!opts->id) { if (!id) { return opts; } continue; } if (strcmp(opts->id, id) != 0) { co...
1threat
Difference between AXML and XAML? : <p>I'm new to Visual Studio Xamarin Cross-platform mobile development and I keep on searching about AXML I just can't find any tutorial for designing and applying an MVC approach.</p> <p>I have a lot of questions regarding this actually. But i'll just leave this 3 here first.</p> <...
0debug
How to remove more than one elements from list in python at a time? : <p>Let's say i have <code>a=[1,0,1,0,1,1,1,0,0,0,0]</code></p> <p> I want to remove all the zero's at the same time. can i do that?</p>
0debug
static int decode_frame_header (bit_buffer_t *bitbuf,MpegEncContext *s) { int frame_size_code; get_bits (bitbuf, 8); s->pict_type = get_bits (bitbuf, 2); if (s->pict_type == 3) return -1; if (s->pict_type == SVQ1_FRAME_INTRA) { if (s->f_code == 0x50 || s->f_code == 0x60)...
1threat
How to give canvas an id : <p>How can i give these canvas' in JS/html an id?</p> <p>I want to make multiple flashing images on a single page and when I do only one image displays as there is no way to know which canvas to display, below is a link to my project.</p> <p><a href="https://glitch.com/edit/#!/join/4cb25634...
0debug