problem
stringlengths
26
131k
labels
class label
2 classes
static inline void gen_op_eval_fbule(TCGv dst, TCGv src, unsigned int fcc_offset) { gen_mov_reg_FCC0(dst, src, fcc_offset); tcg_gen_xori_tl(dst, dst, 0x1); gen_mov_reg_FCC1(cpu_tmp0, src, fcc_offset); tcg_gen_and_tl(dst, dst, cpu_tmp0); tcg_gen_xori_tl(dst,...
1threat
How to exclude a value : I need to create a clause to restrict the data returned. if supplier returns values 'approved' and 'in process' then do not return supplier. Is there a way of doing this? thanks
0debug
static int xen_remove_from_physmap(XenIOState *state, hwaddr start_addr, ram_addr_t size) { unsigned long i = 0; int rc = 0; XenPhysmap *physmap = NULL; hwaddr phys_offset = 0; physmap = get_physmapping(state, start_addr...
1threat
API to allow user with a (+) signed in their username to log in : <p>Currently right now, user with an email such as test+test@email.com are not getting through are API because of the (+) sign. When making a database call with such a user ID, it brings results. However, when making an api call such as this.</p> <pre...
0debug
How do I Generate a Text Message to a Predefined Phone Number in Swift for iOS 10? : Let's say I have the user of my app define a phone number in a setup step of my program, saved in the plist as a number with the key "PhoneNum". Now lets say that I want to have a button in the program which, when pressed, generates a ...
0debug
Is there a Java library for all HTML tag names? : <p>I was wondering if there exists any Java library that contains all HTML tags. I am writing selenium tests for fairly complex web sites using the Java binding, and often needing to find an element by tag name. I thought having a class with constants referring to each ...
0debug
How to disable splash highlight of FlatButton in Flutter? : <p>I have a FlatButton. I don't want the splash highlight when the button is clicked. I tried changing the splash colour to transparent, but that didn't work. Here is the code for my FlatButton.</p> <pre><code>Widget button = new Container( child: new Conta...
0debug
Cypress: Test if element does not exist : <p>I want to be able to click on a check box and test that an element is no longer in the DOM in Cypress. Can someone suggest how you do it?</p> <pre><code>//This is the Test when the check box is clicked and the element is there cy.get('[type="checkbox"]').click(); cy.get('.c...
0debug
static struct omap_32khz_timer_s *omap_os_timer_init(MemoryRegion *memory, target_phys_addr_t base, qemu_irq irq, omap_clk clk) { struct omap_32khz_timer_s *s = (struct omap_32khz_timer_s *) g_malloc0(sizeof(struct omap_32khz_timer_s)); s->timer.irq = irq; ...
1threat
av_cold void ff_dsputil_init_x86(DSPContext *c, AVCodecContext *avctx) { int cpu_flags = av_get_cpu_flags(); #if HAVE_7REGS && HAVE_INLINE_ASM if (cpu_flags & AV_CPU_FLAG_CMOV) c->add_hfyu_median_prediction = ff_add_hfyu_median_prediction_cmov; #endif if (cpu_flags & AV_CPU_FLAG_MMX) ...
1threat
How can I store objects into an ArrayList without them duplicating in Java? : <p>So i have some code that takes a bunch of data and creates objects from that data. Here is the pseudo code. The main class looks like this:</p> <pre><code>public static void main(String[] args) { storage.addObject(2, 20, Jake, JE); storag...
0debug
I know Redis is fast for a database, but is Redis cheap? : <p>RAM storage costs many times what hard disc storage does. </p> <p>Wouldn't that make storing data in Redis many times more expensive than if you used MongoDB or mySQL?</p>
0debug
I wanna create a timestamp folder with today's date and time and copy some folder to it, how to do this? : I'm trying to create a folder in windows with current timestamp details and copy some folder to it. I tried as below bat 'for /f "tokens=2-4 delims=/ " %%i in ("%date%") do SET today_fname=%%i_%%j_%...
0debug
static av_cold int vc1_decode_init(AVCodecContext *avctx) { VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; GetBitContext gb; int ret; v->output_width = avctx->width; v->output_height = avctx->height; if (!avctx->extradata_size || !avctx->extradata) return -1; ...
1threat
static int enable_write_target(BlockDriverState *bs, Error **errp) { BDRVVVFATState *s = bs->opaque; BlockDriver *bdrv_qcow = NULL; BlockDriverState *backing; QemuOpts *opts = NULL; int ret; int size = sector2cluster(s, s->sector_count); QDict *options; s->used_clusters = call...
1threat
static void qemu_clock_init(QEMUClockType type) { QEMUClock *clock = qemu_clock_ptr(type); clock->type = type; clock->enabled = true; clock->last = INT64_MIN; QLIST_INIT(&clock->timerlists); notifier_list_init(&clock->reset_notifiers); main_loop_tlg.tl[type] = timerlist_new(type, NULL, NULL)...
1threat
static int rtp_read_header(AVFormatContext *s) { uint8_t recvbuf[RTP_MAX_PACKET_LENGTH]; char host[500], sdp[500]; int ret, port; URLContext* in = NULL; int payload_type; AVCodecContext codec = { 0 }; struct sockaddr_storage addr; AVIOContext pb; socklen_t addrlen = sizeof(...
1threat
static void dump_json_image_check(ImageCheck *check, bool quiet) { Error *local_err = NULL; QString *str; QmpOutputVisitor *ov = qmp_output_visitor_new(); QObject *obj; visit_type_ImageCheck(qmp_output_get_visitor(ov), NULL, &check, &local_err); obj = qmp_output...
1threat
polymorphic_allocator: when and why should I use it? : <p><a href="http://en.cppreference.com/w/cpp/memory/polymorphic_allocator">Here</a> is the documentation on <em>cppreference</em>, <a href="http://eel.is/c++draft/memory.polymorphic.allocator.class">here</a> is the working draft.</p> <p>I must admit that I didn't ...
0debug
static void net_slirp_cleanup(VLANClientState *vc) { SlirpState *s = vc->opaque; slirp_cleanup(s->slirp); slirp_smb_cleanup(s); TAILQ_REMOVE(&slirp_stacks, s, entry); qemu_free(s); }
1threat
Mouse wheel events in Reactjs : <p>How do you go about getting mouse wheel events in reactjs?</p> <p>I have tried onWheel</p> <pre><code> render: function() { return &lt;div onWheel = {this.wheel} &gt; &lt; /div&gt;; }, </code></pre> <p>and I have tried onScroll</p> <pre><code> render: function() { ...
0debug
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
Laravel migrations change default value of column : <p>I have a table with a default value already assigned. For an example we can look at the following:</p> <pre><code>Schema::create('users', function (Blueprint $table) { $table-&gt;increments('id')-&gt;unsigned(); $table-&gt;integer('active')...
0debug
how to implement the cutomize button for facebbok and goolge in swift3 : Hi implement facebbok and google button but i cant set the corner radious for the button here is my code @IBOutlet var fb_login_btn: FBSDKLoginButton! fb_login_btn.layer.cornerRadius = 20 @IBOutlet var google_...
0debug
What are the possible reasons to get APNs responses BadDeviceToken or Unregistered? : <p>When sending notifications to iOS users, for some of them I get response status code 400 (BadDeviceToken) or code 410 (Unregistered).</p> <p>From Apple documentation about "BadDeviceToken":</p> <blockquote> <p>The specified dev...
0debug
Should cookie values be URL encoded? : <p>When setting cookies, PHP url-encodes the cookie value (at least when not using <code>setrawcookie</code>) <strong>and it url-decodes the cookie value</strong> before making it available to the application in <code>$_COOKIE</code>.</p> <p>Is this an accepted standard? If I set...
0debug
av_cold int ff_ac3_encode_close(AVCodecContext *avctx) { int blk, ch; AC3EncodeContext *s = avctx->priv_data; av_freep(&s->windowed_samples); for (ch = 0; ch < s->channels; ch++) av_freep(&s->planar_samples[ch]); av_freep(&s->planar_samples); av_freep(&s->bap_buffer); av_...
1threat
import math def even_binomial_Coeff_Sum( n): return (1 << (n - 1))
0debug
How to git commit & push as another user : <p>I've heard it is possible to push a commit as another user but unsure how is that possible or done, as an example where i saw it was <a href="https://github.com/jayphelps/git-blame-someone-else/commit/e5cfe4bb2190a2ae406d5f0b8f49c32ac0f01cd7" rel="nofollow noreferrer">https...
0debug
How do i change my code to not include build in functions : I've got a assignment for school with the test to make a code that checks password strength. as you cn see below i've made this code and turned it in but received it back afterwards beccause it's to convenient to use the build in function any. how can i adjust...
0debug
Nunjucks: 'if' with multiple 'and' or 'or' condition : <p>Today my team mate was struggling on how to add multiple conditions with 'and' or 'or' in an if statement in Nunjucks template. After a lot of search he found the answer but not on Stackoverflow. I am not sure if the answer is already posted somewhere in SO but ...
0debug
Reshape an array in Python : <p>I have an NumPy array of size <code>100x32</code> that I would like to reshape it to <code>10x10x32</code>. Therefore, the first 10 rows to be the first element of the new matrix 1x10x32, the next 10 rows to be the second element and so on. I tried to use reshape, however, I am not sure ...
0debug
static inline void RENAME(palToUV)(uint8_t *dstU, uint8_t *dstV, uint8_t *src1, uint8_t *src2, int width, uint32_t *pal) { int i; assert(src1 == src2); for(i=0; i<width; i++) { int p= pal[src1[i]]; dstU[i]= p>>8; dstV[i]= p>>16; } }
1threat
static inline int l2_unscale_group(int steps, int mant, int scale_factor) { int shift, mod, val; shift = scale_factor_modshift[scale_factor]; mod = shift & 3; shift >>= 2; val = (2 * (mant - (steps >> 1))) * scale_factor_mult2[steps >> 2][mod]; return (val + (1 << (shift - 1))) >>...
1threat
convert "23-11-2016" format string to date in javascript : <p>Hi i have a variable result of some function with string in a date format (mm-dd-yyyy). I need to convert this string to date in same format like String "23-11-2016" should be converted to Date as 23-11-2016. I dont want any hours or minutes just date like 2...
0debug
VS Code quick fix always give "no code actions available" : <p>VS Code with Go, the quick fix always give "no code actions available". No matter what's the error or warning, no fix is given.</p> <p><a href="https://i.stack.imgur.com/UXNZQ.gif" rel="noreferrer"><img src="https://i.stack.imgur.com/UXNZQ.gif" alt="enter ...
0debug
Python Charecter Casing : From a given string need o/p as If Index Position is Even - Upper Case If Index Position is Odd - Lower Case What's wrong with my code please help me. def Fun_Case(*args): n=0 for x in (args): if n%2==0: print(x[n].upper()) else: p...
0debug
Using tkinter to input into a variable, to be called : <p>I'm currently working on a scraper-sort of program, which will enter a Wikipedia page, and in its current form, will scrape the references from the page.</p> <p>I'd like to have a gui that will allow the user to input a Wikipedia page. I want the input to be at...
0debug
A debugger has been found running in your system : When I try to use Delphi Tokyo debugging an application that uses functions of a DLL, when I run LoadLibrary, it shows a message that there is a debugger running and does not allow loading it. I've disabled everything I could, antivirus, firewall, windows defender, ...
0debug
What does the "!!" operator mean in Kotlin? : <p>I'm reading this <a href="https://developer.android.com/jetpack/docs/guide" rel="nofollow noreferrer">guide</a> from Google for Android and they have the snippet bellow.</p> <p>What does the <code>!!</code> do in <code>userDao.save(response.body()!!)</code>?</p> <pre><...
0debug
static inline void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val) { if (val != 0) { if (val == (val & 0xfff)) tcg_out_arithi(s, reg, reg, val, ARITH_ADD); else fprintf(stderr, "unimplemented addi %ld\n", (long)val); } }
1threat
void spapr_core_unplug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { sPAPRCPUCore *core = SPAPR_CPU_CORE(OBJECT(dev)); PowerPCCPU *cpu = POWERPC_CPU(core->threads); int id = ppc_get_vcpu_dt_id(cpu); sPAPRDRConnector *drc = spapr_dr_connector_by_id(S...
1threat
I want to draw a flow chart using HTML, what are the best packages out there : <p>I want to draw a flow chart in my app using HTML. I was wondering if there are libraries or examples out there.</p>
0debug
What is the difference between a node, stage, and step in Jenkins pipelines? : <p>I'm trying to understand how to structure my Jenkins 2.7 pipeline groovy script. I've read through the <a href="https://github.com/jenkinsci/pipeline-plugin/blob/master/TUTORIAL.md" rel="noreferrer">pipeline tutorial</a>, but feel that i...
0debug
How to use InputFormatter on Flutter TextField? : <p>What do I need to insert into <code>TextField(inputFormatters:</code>?</p> <p>I want to disallow <kbd>\</kbd> and <kbd>/</kbd> in one <code>TextField</code> and only allow <kbd>a</kbd> to <kbd>Z</kbd> in another.</p>
0debug
Changing to uppercase letters using ASCII : <p>I have to create a function that changes lower case letters to upper case letters using only the ord and chr functions. </p> <p>This is what I have so far, but the problem is it is not returning all the letters, only the first letter.</p> <pre><code>def changeToUpperCase...
0debug
Error on dump or dd laravel adding a character before result : <p>All request and dumps in laravel add a ^before a result, that's only do that in dd or dump</p> <p><a href="https://i.stack.imgur.com/Apq0X.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Apq0X.png" alt="exemple of error"></a></p> <p><a href="...
0debug
Adding timestamp to each line on Zsh : <p>I just fresh installed Sierra and wanted to use zsh with oh-my-zsh and power shell...</p> <p>I ended up with a terminal like this:</p> <p><a href="https://i.stack.imgur.com/M9lh1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/M9lh1.png" alt="enter image description...
0debug
Scopes and Pointers : <p>This is the code that I have a question about: </p> <pre><code>int* getPtrToFive() { int x = 5; return &amp;x; } int main() { int *p = getPtrToFive(); cout &lt;&lt; *p &lt;&lt; endl; // ??? } </code></pre> <p>The lecture slides say that *p wouldn't give a valid resu...
0debug
Django: How to edit value and store back in database : <p>I'm working on an attendance register. So I've got an HTMl checkbox form where user can tick if person is here. If they are then the views will pull out the number of lessons person has in database and subtract 1 from the value. How can I achieve this? This is d...
0debug
Parse error: syntax error, unexpected '$query' (T_VARIABLE) in c : <p>I am trying to upload information to a database. The page I created is a registration page where users can type in their email username and password. The below code is the database connection and upload code I have written. But I keep getting the abo...
0debug
object oriented programming in C plus plus : when I use following code than priority is given first to the constructor rather than cast operator so did there is any priority which will be called first #include<iostream> using namespace std; class C1; class C2 { int x; pu...
0debug
(Very simple) JavaScript error : <p>I have this JS code, the commented line of which prevents a JSON to work correctly (when I comment the line, it works; when I uncomment it, it stops working):</p> <pre><code>function GenSpecieChg() { var selText = document.getElementById("textGenSpecie"); var sca = selText.value; //...
0debug
Make a custom progress bar in Android : <p>I need to make a custom progress bar that looks like this: <a href="https://i.stack.imgur.com/Tp13k.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tp13k.png" alt="enter image description here"></a></p> <p>I'd love some advice for the best way to do this. t...
0debug
C# application permenant store variable value : I m using Properties.setting.default.var trick to store permanently a value in c# application on same pc. Now I m facing a problem that when I saves the value but copy the application to another pc the permanent value does not remains. Is properties.setting trick not wor...
0debug
C# - Parse Array from Checkbox Post : I'm trying to parse posted checkbox's into an array variable in csharp. Example: <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> <input type="checkbox" name="ID[]" value="1" /> <input type="checkbox" name="ID[]" val...
0debug
static int av_thread_message_queue_send_locked(AVThreadMessageQueue *mq, void *msg, unsigned flags) { while (!mq->err_send && av_fifo_space(mq->fifo) < mq->elsize) { if ((flags & AV_THREAD_MESSAGE_NONBLOCK)) ...
1threat
static void dct_unquantize_mpeg2_c(MpegEncContext *s, DCTELEM *block, int n, int qscale) { int i, level, nCoeffs; const UINT16 *quant_matrix; if(s->alternate_scan) nCoeffs= 64; else nCoeffs= s->block_last_index[n]+1; if (s->mb_intra) { if (...
1threat
Why do i keep throwing a NullPointerException? : <p>I am trying to load the active users information into a new activity and display it. I have done similar things in different activities and they have worked fine, but for some reason this is not and I am not sure. Whenever android studio tries to invoke a method on us...
0debug
Python: create a Class which attributes are objects from another classes possible? : <p>Is it possible to create a class with some of its attributes = object of other classes?</p> <p>class SENSORS:</p> <pre><code>def __init__(self): # The attributes of the class that will be available for external use self.te...
0debug
How to create web push notification wen insert data in database with php : <pre><code>&lt;script src='push.min.js' type="text/javascript"&gt;&lt;/script&gt; &lt;?php require_once 'dbconfig.php'; $task = $db_con-&gt;prepare('SELECT * FROM table WHERE notification = "unread"'); $task-&gt;execute(); ...
0debug
static void raw_aio_cancel(BlockDriverAIOCB *blockacb) { int ret; RawAIOCB *acb = (RawAIOCB *)blockacb; RawAIOCB **pacb; ret = aio_cancel(acb->aiocb.aio_fildes, &acb->aiocb); if (ret == AIO_NOTCANCELED) { while (aio_error(&acb->aiocb) == EINPROGRESS); } ...
1threat
Issue with gist indentation : <p>When creating a Gist on Github there is a setting for indentation (tabs or spaces; size 2, 4, or 8). After setting indents to tabs size 4, it changes to tabs size 8 after I save it. Editing it afterwords doesn't do anything. Other settings don't produce the expected result either. Am I ...
0debug
static int decode_band(IVI5DecContext *ctx, int plane_num, IVIBandDesc *band, AVCodecContext *avctx) { int result, i, t, idx1, idx2; IVITile *tile; band->buf = band->bufs[ctx->dst_buf]; band->ref_buf = band->bufs[ctx->ref_buf]; band->data_ptr = ctx->fr...
1threat
MariaDB - cannot login as root : <p>I am trying to setup MariaDB (10.0.29) on Ubuntu (16.04.02). After I installed it and started the process (<code>sudo service mysql start</code>), I cannot login as <code>root</code> even though I originally set the password to blank.</p> <p>Ie <code>mysql -u root</code> will deny m...
0debug
how to create and save doc file using php and database : im doing a program for online leave application after loging in the data is to be saved in a .doc file , which will be used afterwards. the creation of .doc file is completed using the following code ... $pdf_data = $pdf->Output('C:\wamp\www\finalproject\myw...
0debug
OAuth 2.0 and Azure Active Directory - error AADSTS90009 : <p>I'm trying to authorize access to our web application by using OAuth 2.0 and Azure AD. Guide <a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-protocols-oauth-code" rel="noreferrer">here</a>.</p> <p>The user is redire...
0debug
Does a thread waiting on IO also block a core? : <p>In the synchronous/blocking model of computation we usually say that a thread of execution will wait (be <em>blocked</em>) while it waits for an IO task to complete.</p> <p>My question is simply will this usually cause the CPU core executing the thread to be idle, or...
0debug
Does random.randint() generate the random number? All my guesses are always wrong? : <p>I have set the guess_limit to 6 and random.randint(0, 6), even if I guess 1,2,3,4,5,6, it will always return "Out of guesses!" So my question is does random.randint() is calling the function or there is no random number if the funct...
0debug
Encrypt a String in Python That Just Can Decrypt with str encrypted with : <p>I Want To Encrypt User Passwords With Their Password <br /> I Mean That The Encrypted String <br /> Can Only Decrypt With The Main Password User Entered</p> <blockquote> <p>User Entered 12345 for Password <br /> The Encrypted Value Only Ca...
0debug
static void inc_refcounts(BlockDriverState *bs, BdrvCheckResult *res, uint16_t *refcount_table, int refcount_table_size, int64_t offset, int64_t size) { BDRVQcowState *s = bs->opaque; int64_t start, la...
1threat
android rxjava sort list with comparator class : <p>I started to use rxjava with my android projects. I need to sort returning event list from api call. I wrote comparator class to sort list :</p> <pre><code>public class EventParticipantComparator { public static class StatusComparator implements Comparator&lt;Ev...
0debug
Java sorting ArrayList of String Array : <p>I have an ArrayList in the form <code>ArrayList&lt;String[]&gt; table_list = new ArrayList&lt;String[]&gt;();</code></p> <p>So for example <code>table_list.get(0)</code> would look like <code>{"Title", "Yes", "No"}</code>.</p> <p>Now let's say I have a lot of titles and wan...
0debug
How to use css modules with create-react-app? : <p>According to a <a href="https://twitter.com/dan_abramov/status/953651118147604480" rel="noreferrer">tweet</a> by Dan Abramov, CSS modules support is there in create-react-app (CRA). One just needs to give extension of <code>module.css</code> to his stylesheets to enabl...
0debug
INLINE float32 packFloat32( flag zSign, int16 zExp, bits32 zSig ) { return ( ( (bits32) zSign )<<31 ) + ( ( (bits32) zExp )<<23 ) + zSig; }
1threat
How to use pipenv to install package from github : <p>Using pipenv to install the spaCy package from github with</p> <pre><code>pipenv install -e git+https://github.com/explosion/spaCy#egg=spacy </code></pre> <p>I run into two problems:</p> <p>(1) Install fails, because the following packages need to be installed be...
0debug
Questions regarding default integer value : <p>I noticed some differences when I make some minor changes on the following codes:</p> <pre><code>#include&lt;stdio.h&gt; int main() { int arrow; printf("%d\n", arrow); int wheel[12]={17, 38, 23, 17, 19, 41, 13, 17, 12, 11, 15, 23}; int initialValue = wh...
0debug
int av_vdpau_bind_context(AVCodecContext *avctx, VdpDevice device, VdpGetProcAddress *get_proc, unsigned flags) { VDPAUHWContext *hwctx; if (flags != 0) return AVERROR(EINVAL); if (av_reallocp(&avctx->hwaccel_context, sizeof(*hwctx))) return AVERROR(ENOME...
1threat
void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) { int downsampled = ac->m4ac.ext_sample_rate < sbr->sample_rate; int ch; int nch = (id_aac == TYPE_CPE) ? 2 : 1; if (sbr->start) { sbr_dequant(sbr, id_aac); } for ...
1threat
Javascript change .css with variable from text box : Seems real simple but im missing something... lets say I want this code below but I dont want the "12px" to be static.. i want to use the variable fontInput . How would I rewrite this? ``` var fontInput = document.getElementById("changesize").value; ...
0debug
Strange symbol shows up on website (L SEP)? : <p>I noticed on my website, <a href="http://www.cscc.org.sg/" rel="noreferrer">http://www.cscc.org.sg/</a>, there's this odd symbol that shows up.</p> <p><a href="https://i.stack.imgur.com/NR8n9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NR8n9.png" alt="ente...
0debug
Can't use System.Configuration.Configuration manager in a .NET Standard2.0 library on .NET FX4.6 : <p>I have an assembly created in <em>NetStandard2.0</em>. It reads AppSettings using <strong>System.Configuration.ConfigurationManager</strong>. I have installed nuget package of <strong>System.Configuration.Configuration...
0debug
static void reclaim_list_el(struct rcu_head *prcu) { struct list_element *el = container_of(prcu, struct list_element, rcu); g_free(el); atomic_add(&n_reclaims, 1); }
1threat
xampp phpmyadmin, Incorrect format parameter : <p>Im trying to import the database of my client side (wordpress platform) to localhost (using xampp). </p> <p>Other clients' sites work OK, except for this one particular site. When I want to import it, it just showed "phpMyAdmin - Error. Incorrect format parameter". <a ...
0debug
Group same object key in array javascript : I have data like this : [ { "ru":"R401", "tot":[1, 1, 1, 1], "unit":["OFFSITE","OFFSITE","OFFSITE","RCU"] } ] I want to groupping the object 'tot' and 'unit' then push it into a new array if the 'tot' and...
0debug
3dtouch to present(peek without pop) UIView like contacts app : <p>I'm trying to implement 3D Touch feature that presents a summary of information (like Peek). But I don't want that it pops. I just want to preview the information like contacts app does with contatcs:</p> <p><a href="https://i.stack.imgur.com/71H3o.png...
0debug
static int encode_codebook(CinepakEncContext *s, int *codebook, int size, int chunk_type_yuv, int chunk_type_gray, unsigned char *buf) { int x, y, ret, entry_size = s->pix_fmt == AV_PIX_FMT_YUV420P ? 6 : 4; ret = write_chunk_header(buf, s->pix_fmt == AV_PIX_FMT_YUV420P ? chunk_type_yuv : chunk_type_gray, e...
1threat
Pure CSS Continuous Horizontal Text Scroll Without Break : <p>I'm trying to create a news ticker with horizontal text that scrolls continuously without a break between loops. Ideally, the solution would be pure css/html, but I don't know if that's possible. Here's my rudimentary attempt so far: <a href="http://jsfiddle...
0debug
CSS background-image width 100% height auto : <p>I need some kind of an elegant solution for background-image width 100% height auto. It must be the same way as it behaves like as if you use image src. I will use the example of another question on stackoverflow as the answers there did not work for me, nor did they wor...
0debug
Does Azure WebJob look at the app.config once deployed : <p>I have a Web site running on Azure App Services. It has a WebJob that deploys with it, and thus gets put in it's App_data folder once deployed.</p> <p>If I FTP to the wwwroot/app_data folder of my site once deployed, the app.config file has none of the config...
0debug
Optional value returning nil with ?? operator : <p>I'm trying to convert an optional string to a Double, but when I unwrap my value is not taken:</p> <pre><code>let currentSwimDistanceTravelled = defaults.string(forKey: "SwimTotal") ?? "0.0" </code></pre> <p>After this code is run currentSwimDistanceTravelled is assi...
0debug
Remove same value in associative array : <p>I have following associative array I wanna remove those ones that which have same value and keep one of theme(for example there is tow 124 value one of theme should be removed):</p> <pre><code>Array ( [0] =&gt; 124 [1] =&gt; 124 [2...
0debug
LDAP Authentication with a service account in Java : <p>I am trying to authenticate users from LDAP with a service account created. Im getting below error on <strong>ctx = new InitialDirContext(env);</strong></p> <blockquote> <p>[LDAP: error code 49 - 8009030C: LdapErr: DSID-0C0903A8, comment: AcceptSecurityContext ...
0debug
What is the difference between kafka earliest and latest offset values : <p><code>producer</code> sends messages 1, 2, 3, 4</p> <p><code>consumer</code> receives messages 1, 2, 3, 4</p> <p><code>consumer</code> crashes/disconnects</p> <p><code>producer</code> sends messages 5, 6, 7</p> <p><code>consumer</code> come...
0debug
void OPPROTO op_srli_T0 (void) { T0 = T0 >> PARAM1; RETURN(); }
1threat
Searching in XML file - PHP : <p>My XML looks like this</p> <pre><code>&lt;root lastUpdated="20180101120330" ttl="24"&gt; &lt;Parent1&gt;...&lt;/Parent1&gt; &lt;Parent2&gt; &lt;sub parm1="google.com" parm2="email@email.com" parm3="5343243434" parm4="google" parm5="876787" parm6="" parm7="ACTIVE"&gt;...&lt;/sub&gt; &lt...
0debug
CSS Grid Layout Gap Box Sizing : <p>I have a CSS grid that occupies 100% width and 100% height of a window (the body element has <code>display: grid;</code>). The grid has row and column templates and elements which occupy 100% of their allocated space. However, when I add a <code>grid-gap</code> to the grid, it makes ...
0debug
static void generate_codebook(RoqContext *enc, RoqTempdata *tempdata, int *points, int inputCount, roq_cell *results, int size, int cbsize) { int i, j, k; int c_size = size*size/4; int *buf; int *codebook = av_malloc(6*c_size*cbsize*size...
1threat
def sum_difference(n): sumofsquares = 0 squareofsum = 0 for num in range(1, n+1): sumofsquares += num * num squareofsum += num squareofsum = squareofsum ** 2 return squareofsum - sumofsquares
0debug
What is the best C++ data structure that could be used for storing and managing a collection of integers? : <p>this is my first StackOverflow question so please let me know if I didn't follow community guidelines with this question and if I should delete it.</p> <p>I got my first ever interview question and I got reje...
0debug