problem
stringlengths
26
131k
labels
class label
2 classes
void do_raise_exception_err (uint32_t exception, int error_code) { #if 0 printf("Raise exception %3x code : %d\n", exception, error_code); #endif switch (exception) { case EXCP_PROGRAM: if (error_code == EXCP_FP && msr_fe0 == 0 && msr_fe1 == 0) return; break; defaul...
1threat
Flatten and restructure linq in Asp.Net : <p>I want to restructure the original <strong>json data with a list of trips</strong> and <strong>return a converted and flatten list</strong> based on the <strong>boarding points</strong> and the <strong>dropping points</strong> using <strong>Linq</strong>. Below is the exampl...
0debug
void init_clocks(void) { QEMUClockType type; for (type = 0; type < QEMU_CLOCK_MAX; type++) { qemu_clock_init(type); } #ifdef CONFIG_PRCTL_PR_SET_TIMERSLACK prctl(PR_SET_TIMERSLACK, 1, 0, 0, 0); #endif }
1threat
How to make verlet integration collisions more stable? : <p>I'm not using any engine, but instead trying to build my own softbody dynamics for fun using verlet integeration. I made a cube defined by 4x4 points with segments keeping its shape like so:</p> <p><a href="https://i.stack.imgur.com/3RzPH.jpg" rel="noreferrer...
0debug
Using the Tkinter module in Python 3.5 : import time, random from tkinter import * class Box( Frame ): def __init__( self ): # __init__ runs when Box() executes Frame.__init__( self ) # Frame is the top level component self.pack() self.mast...
0debug
The most easier LocalStorage example in JS : i know that there were similar question about it, but can you explain in the most easy way how can i use localStorage when user insert data in one page, but this data should be used in another file. for example: in registration.html we have <input name="name" type=...
0debug
Android Capture Image and record voice through service even if device is locked : I am working on my fyp and i am developing android antilost so how can i make service that will capture image or record voice even when device is locked i figured how to trigger that service. but how to write code that will do the job ev...
0debug
Convert rank and partition query to SqlAlchemy : <p>I would like to convert the following query to SqlAlchemy, but the documentation isn't very helpful:</p> <pre><code>select * from ( select *, RANK() OVER (PARTITION BY id ORDER BY date desc) AS RNK from table1 ) d where RNK = 1 </code></pre> <p>Any suggestions?</p...
0debug
Python 3 - Get n greatest values in dict : <p>I have a dict, with strings as keys and lists as values and want to find the n keys with the longest lists (length). </p> <p>How could I approach this problem?</p>
0debug
Could not find play-services-basement.aar : <p>Yesterday I tried building my app and everything worked fine.</p> <p>Today, without any changes to the project... All of a sudden I'm greeted with this warning message telling me:</p> <pre><code>Error:Could not find play-services-basement.aar (com.google.android.gms:play...
0debug
how does a router advertise itself and the hotspot? : <p>In which protocol does router use to advertise itself and the network(including the name of the netwrok, like hotspot)? I haven't found it on the interent, do you have any ideas?</p>
0debug
int qio_channel_socket_connect_sync(QIOChannelSocket *ioc, SocketAddressLegacy *addr, Error **errp) { int fd; trace_qio_channel_socket_connect_sync(ioc, addr); fd = socket_connect(addr, NULL, NULL, errp); if (fd < 0) { ...
1threat
What to download in order to make nltk.tokenize.word_tokenize work? : <p>I am going to use <code>nltk.tokenize.word_tokenize</code> on a cluster where my account is very limited by space quota. At home, I downloaded all <code>nltk</code> resources by <code>nltk.download()</code> but, as I found out, it takes ~2.5GB.</p...
0debug
static int mov_read_enda(MOVContext *c, ByteIOContext *pb, MOVAtom atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; int little_endian = get_be16(pb); dprintf(c->fc, "enda %d\n", little_endian); if (little_endian == 1) { switch (st->codec->codec_id) { case CODEC_ID_PCM...
1threat
static inline bool object_property_is_link(ObjectProperty *prop) { return strstart(prop->type, "link<", NULL); }
1threat
int vp78_decode_mb_row_sliced(AVCodecContext *avctx, void *tdata, int jobnr, int threadnr, int is_vp7) { VP8Context *s = avctx->priv_data; VP8ThreadData *td = &s->thread_data[jobnr]; VP8ThreadData *next_td = NULL, *prev_td = NULL; VP8Frame *curframe = s->curframe; ...
1threat
Need Regular Expression Logic to find string in C# : I want to find a particular string (word) from a sentence. Given String: "In a given health plan your Plan Name: Medical and Plan Type: PPO whose effective date: 2019-01-01 and coverage value $100 and $200". 1) if I pass "Plan Name:" then my output would be "M...
0debug
Create a program that asks the user for an age. It tells them their grade (9, 10, 11 or 12) based on their response. Python : age = (int(input("How old are you?"))) if (age == 14 or age ==15): print ("you are in grade 9") if (age == 15): print("or") if (age == 15 or age == 16): ...
0debug
PHP equivalent of Python's requests.get : <p>I'm trying to access an API using PHP but for which the tutorial is only written in Python. The tutorial shows how to retrieve the data from a URL using</p> <p>res = requests.get(API_URL, auth=(UID, SECRET))</p> <p>Please can someone tell me what the equivalent statement w...
0debug
Parsing server logs python : I've been struggling to try and parse some server logs with python and regex. I want to be able parse useragent string in these lines and then eventually put them into a Panda Dataframe or a simple excel spreadsheet. So the following extract: 14/Aug/2018:00:44:50 +0000] 330 95.144.101...
0debug
int ff_hevc_decode_nal_pps(HEVCContext *s) { GetBitContext *gb = &s->HEVClc->gb; HEVCSPS *sps = NULL; int pic_area_in_ctbs; int log2_diff_ctb_min_tb_size; int i, j, x, y, ctb_addr_rs, tile_id; int ret = 0; unsigned int pps_id = 0; AVBufferRef *pps_buf; HEVCPPS *pps =...
1threat
How to load a pickle file from S3 to use in AWS Lambda? : <p>I am currently trying to load a pickled file from S3 into AWS lambda and store it to a list (the pickle is a list).</p> <p>Here is my code:</p> <pre><code>import pickle import boto3 s3 = boto3.resource('s3') with open('oldscreenurls.pkl', 'rb') as data: ...
0debug
SwiftUI: Tabview, keep state when changing tab : <p>I create an application, with several tabs, for each tab there is a webview.</p> <p>My webview:</p> <pre><code>struct WebView : UIViewRepresentable { let request: URLRequest func makeUIView(context: Context) -&gt; WKWebView { return WKWebView() ...
0debug
static const MXFCodecUL *mxf_get_essence_container_ul(enum CodecID type) { const MXFCodecUL *uls = ff_mxf_essence_container_uls; while (uls->id != CODEC_ID_NONE) { if (uls->id == type) break; uls++; } return uls; }
1threat
static int parse_bintree(Indeo3DecodeContext *ctx, AVCodecContext *avctx, Plane *plane, int code, Cell *ref_cell, const int depth, const int strip_width) { Cell curr_cell; int bytes_used; if (depth <= 0) { av_log(avctx, AV_LOG_ERROR, ...
1threat
C++ template: The static member in a global object is not initialized : <p>I have a piece of simple C++ code, in which I defined a template and a global object by specializing the template. The object constructor accesses a static member in the specialized template. But it turns out the static member is not initialized...
0debug
static uint32_t hpet_ram_readl(void *opaque, target_phys_addr_t addr) { HPETState *s = opaque; uint64_t cur_tick, index; DPRINTF("qemu: Enter hpet_ram_readl at %" PRIx64 "\n", addr); index = addr; if (index >= 0x100 && index <= 0x3ff) { uint8_t timer_id = (addr - 0x100) / 0x20...
1threat
static uint8_t send_read_command(void) { uint8_t drive = 0; uint8_t head = 0; uint8_t cyl = 0; uint8_t sect_addr = 1; uint8_t sect_size = 2; uint8_t eot = 1; uint8_t gap = 0x1b; uint8_t gpl = 0xff; uint8_t msr = 0; uint8_t st0; uint8_t ret = 0; floppy_s...
1threat
Knowing how many repeat the letters in the String : <p>i have an interview Question which is Knowing repeat the letters in the String i solve it like this </p> <pre><code>String str = "my name is Java Developer"; int count = 0; for (int i = 0; i &lt; str.length(); i++) { for (int j = 0; j &lt; str.le...
0debug
Why We Don't Need To Import the java.lang package to use the Integer Class(Wrapper Classes) In Java : <p>Suppose i want to make the object of an <strong>Integer</strong>(not int) Class,Since the Integer Class is in another package, i should have to import the java.lang package for creating the object of the <strong>Int...
0debug
create_iovec(QEMUIOVector *qiov, char **argv, int nr_iov, int pattern) { size_t *sizes = calloc(nr_iov, sizeof(size_t)); size_t count = 0; void *buf, *p; int i; for (i = 0; i < nr_iov; i++) { char *arg = argv[i]; long long len; len = cvtnum(arg); if (len < 0) { printf("non-numeric length ...
1threat
How to run the Go executable file generated after building the Go file? : <p>After I build the main.go file using <code>go build go.main</code>, I get the main executable file. How do I run the main file? If I do <code>go run main.go</code>, it automatically builds + runs the executable. But I want to know the command ...
0debug
What are scars useful for? : <p>In the paper titled "The Zipper" by Huet, he also mentions scars as a variation of zippers. Compared to zippers, which became pretty well known in the Haskell community, scars are pretty much unheard of. There is very little information about them in the paper itself and anywhere on the ...
0debug
How to convert subarray to an array without repeating the array value : Array ( [0] => Array ( [id] => 21153 [genre] => ["History","Drama", "Thriller"] ) [1] => Array ( [id] => 21152 [genre] => ["ACTION"] ) [...
0debug
How to determine what version of python3 tkinter is installed on my linux machine? : <p>Hi have been scavenging the web for answers on how to do this but there was no direct answer. Does anyone know how I can find the version number of tkinter?</p>
0debug
Searh engine using url : Hey i started making site for songs. It is lyrics site and i wanted a search engine that works something like picture below. [Like this][1] [1]: https://i.stack.imgur.com/Z76qF.png anybody help?
0debug
static uint32_t uhci_ioport_readw(void *opaque, uint32_t addr) { UHCIState *s = opaque; uint32_t val; addr &= 0x1f; switch(addr) { case 0x00: val = s->cmd; break; case 0x02: val = s->status; break; case 0x04: val = s->intr; brea...
1threat
Ranking list RecyclerView Android : <p>I'm pretty new to Android development. Want to ask how to make the first three rank special than others? For example, I will set a gold badge/icon for 1st rank, 2nd rank will be silver and so on? </p> <p><a href="https://i.stack.imgur.com/b6VxG.jpg" rel="nofollow noreferrer"><img...
0debug
static int spapr_populate_drconf_memory(sPAPRMachineState *spapr, void *fdt) { MachineState *machine = MACHINE(spapr); int ret, i, offset; uint64_t lmb_size = SPAPR_MEMORY_BLOCK_SIZE; uint32_t prop_lmb_size[] = {0, cpu_to_be32(lmb_size)}; uint32_t nr_lmbs = (machine->maxram_size - machine->ram...
1threat
How to prevent CMake from issuing /IMPLIB : <p>I have a CMake build that sends /IMPLIB to the linker on Windows. This is a problem in my case because the argument to implib is the same path as one of the input files. It looks to me that CMake will <em>always</em> issue /IMPLIB when building with Visual Studio, and the ...
0debug
static int vc1_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size, n_slices = 0, i, ret; VC1Context *v = avctx->priv_data; MpegEncContext *s = &v->s; AVFrame *pict = data; ...
1threat
static void qmp_deserialize(void **native_out, void *datap, VisitorFunc visit, Error **errp) { QmpSerializeData *d = datap; QString *output_json; QObject *obj_orig, *obj; obj_orig = qmp_output_get_qobject(d->qov); output_json = qobject_to_json(obj_orig); obj...
1threat
All rows getting update in sql server : I am trying to update a single row but found all rows are getting update. Stucted since morning. Idon't want to use datatable also create proc [dbo].[spUserProfile] @FirstName nvarchar(50), @MiddleName nvarchar(50), @LastName nvarchar(50), @Mobile nvar...
0debug
Setting differnet onclick listener to each button in recyclerview : hi im making a cheats app which have cheat codes for a game (gtav) how can i set a differen onclicklistener to each button in reyclerview for example i have a button in recycleview called copytoclip board and i want each button in the recycler view t...
0debug
Shopify - Add new custom tab to product detail page : <p>I have a Shopify based website. On my product details page I have 3 tabs already one that shows the product description the other that shows website shipping info and a third that shows the customer reviews for the product. However I need to add a new column call...
0debug
How do I convert string to list in Python? : <p>How do I convert <strong><em>def stringParametre(x)</em></strong> x to a list so that if x is hello then it will become a list like ["H","E","l","l","O"] . Capitals don't matter .</p>
0debug
Is there a way to keep screen awake in a progressive-web-app? : <p>I plan to make a progressive web app to display the time remaining in a meeting. I need this to keep the display always on. Is there any way for a progressive web app to avoid screen to go to sleep and blank ?</p>
0debug
static void probe_group_enter(const char *name, int type) { int64_t count = -1; octx.prefix = av_realloc(octx.prefix, sizeof(PrintElement) * (octx.level + 1)); if (!octx.prefix || !name) { fprintf(stderr, "Out of memory\n"); exit(1); } if (octx.level) { ...
1threat
CSS. Non rectangular rectangle : I'm currently doing some, atleast for me, advanced CSS. I want to make a rectangle (preferable without using canvas) that looks somewhat like the image below. The blue box is what i want to make. [![enter image description here][1]][1] [1]: https://i.stack.imgur.com/ZO7Uj.png
0debug
static int get_phys_addr_mpu(CPUARMState *env, uint32_t address, int access_type, int is_user, hwaddr *phys_ptr, int *prot) { int n; uint32_t mask; uint32_t base; *phys_ptr = address; for (n = 7; n >= 0; n--) { base = env->cp15.c6...
1threat
I am trying to make a little game in python but somethings not working : <p>This is the code:</p> <pre><code>secret_number = 7 guess = input("What number am i thinking of?") if secret_number == guess: print("Yay you got it") else: print("No that's not it") </code></pre> <p>When I run the code I always get "...
0debug
Wierd Error I recieve from Tkinter in Python, I have no idea : So, I was going to attempt to make a tkinter project but as i tried to run for like the third time it gives me this error: Traceback (most recent call last): File "/Users/cool/Documents/STM Wisepay Service.py", line 63, in <module> ...
0debug
static OutputStream *new_output_stream(OptionsContext *o, AVFormatContext *oc, enum AVMediaType type) { OutputStream *ost; AVStream *st = avformat_new_stream(oc, NULL); int idx = oc->nb_streams - 1, ret = 0; int64_t max_frames = INT64_MAX; char *bsf = NULL, *next, *codec_tag = NULL; ...
1threat
static void smp_parse(QemuOpts *opts) { if (opts) { unsigned cpus = qemu_opt_get_number(opts, "cpus", 0); unsigned sockets = qemu_opt_get_number(opts, "sockets", 0); unsigned cores = qemu_opt_get_number(opts, "cores", 0); unsigned threads = qemu_opt_get_number(opts, "thr...
1threat
registration form validate username before press Register : <p>my site running on php I like to add registration users form, with unique username.How make validation username before sending request to DB " Press Registration".</p>
0debug
Is there any way to set environment variables in Visual Studio Code? : <p>Could you please help me, how to setup environment variables in visual studio code?</p>
0debug
Modifying a @FetchRequest : <p>Xcode beta 5 introduced <code>@FetchRequest</code> for SwiftUI.</p> <p>I have a View, which has a <code>@FetchRequest</code>. The <code>NSFetchRequest</code> is created within a manager that makes a static instance of itself available to property wrappers (they cannot use self). The same...
0debug
av_cold void ff_vp8dsp_init(VP8DSPContext *dsp) { dsp->vp8_luma_dc_wht = vp8_luma_dc_wht_c; dsp->vp8_luma_dc_wht_dc = vp8_luma_dc_wht_dc_c; dsp->vp8_idct_add = vp8_idct_add_c; dsp->vp8_idct_dc_add = vp8_idct_dc_add_c; dsp->vp8_idct_dc_add4y = vp8_idct_dc_add4y_c; dsp->vp8_idc...
1threat
import emails from outlook 2013 with exchange server with excel vba : This is regarding import emails from outlook 2013 code works perfectly with home desktop as outlook 2013 is connected to SMTP/POP server...but the same code does not work in my office as outlook 2013 is connected exchange server.. **Error at .Send...
0debug
How to disable widget tree printing in flutter CLI (Pressing "T" key accidently is annoying) : <p>I accidentally press the key "T" in terminal when I reach to "R" to hot reload and always my app's widget tree is printed and it takes minutes to finish so It annoyes me so much. I really need to turn this feature off if i...
0debug
Which number appeared once? : <blockquote> <p>Given a list of 2n-1 numbers: all between 1 to n, all but one occur twice. Determine the number that occurs only once. Multiple ways preferred. </p> </blockquote> <p>I think the problem is at fault, how can you determine which number without knowing the list of numbers?<...
0debug
static int qemu_rdma_source_init(RDMAContext *rdma, Error **errp, bool pin_all) { int ret, idx; Error *local_err = NULL, **temp = &local_err; rdma->pin_all = pin_all; ret = qemu_rdma_resolve_host(rdma, temp); if (ret) { goto err_rdma_source_init; } ret = qe...
1threat
The result of php code is wrong? : When i tried to code a simple php code, i had a problem that the result had showed some things which weren't expected such as "***' . "\n"; echo'*** ". Where is my code wrong? Here is my code: <html> <head> <title>Putting Data in the DB</title> </head> <bod...
0debug
Time complexity of typecasting dictionary to list in Python : <p>If we have a dictionary with 'n' key-value pairs, then, does typecasting it to a list a linear time operation (i.e. O(n))?</p>
0debug
The Current .Net SDK does not support targeting .Net Core 2.2 Target .Net Core 2.1 or Lower : <p>I have some projects in the preview version of .net core 2.2 preview 3. It was working fine until i updated my VS Studio Community Edition to Version 15.9.2. After that targeting .net core 2.2 preview is no longer possible....
0debug
Make SQL query fail on trying to delete non-existent record : <p>Is there standard SQL syntax for causing query to fail when a query tries to delete a non-existent entity? E.g.</p> <pre><code>DELETE FROM entity WHERE id = 501; </code></pre> <p>does not fail, even when there is no entity with id = 501. Can it be done ...
0debug
static int enable_write_target(BDRVVVFATState *s, Error **errp) { BlockDriver *bdrv_qcow = NULL; QemuOpts *opts = NULL; int ret; int size = sector2cluster(s, s->sector_count); s->used_clusters = calloc(size, 1); array_init(&(s->commits), sizeof(commit_t)); s->qcow_filename = g_ma...
1threat
Javascript for loop with if statement not reaching the else if statement : <p>why wont this reach the else if and return (i + 0) / 2? Also, why wont the alert give me i + 0 for a 2 digit value? (ie: 10, 20, 30, 40, etc. Any help would be appreciated.</p> <pre><code>var key= "OSN0MSA9991UNAAM8ELDPBD9F57BD6PU6BVBN54CDL...
0debug
What's the difference between MySQLdb, mysqlclient and MySQL connector/Python? : <p>So I've been trying to do some database update with python and while setting up the whole dev environment, I came across these three things which made me dizzy.</p> <ol> <li><p>There's <a href="http://mysql-python.sourceforge.net/MySQL...
0debug
Scala | operator '=>' and other these types of operator : <p>can some help me to under stand this code and operator types used or may be used here</p> <pre><code>def times [A](f: =&gt;A): Unit={ def loop(current: Int): Unit= if(current &gt; 0){ f loop(current - 1) } loop(x) } </code></pre>
0debug
i want play video through url of you tube in android application plz help me? : i want play video through url of you tube in android application plz help me??i want play video Using Video View .
0debug
static int qemu_rdma_close(void *opaque) { DPRINTF("Shutting down connection.\n"); QEMUFileRDMA *r = opaque; if (r->rdma) { qemu_rdma_cleanup(r->rdma); g_free(r->rdma); } g_free(r); return 0; }
1threat
static bool release_pending(sPAPRDRConnector *drc) { return drc->awaiting_release; }
1threat
static BlockBackend *img_open_file(const char *filename, QDict *options, const char *fmt, int flags, bool writethrough, bool quiet, bool force_share) { BlockBackend *blk;...
1threat
Elasticsearch :found jar hell in test classpath : <p>I want to perform unit testing in Elasticsearch for that I am using <code>Java-test-framework</code><br> I am using <code>Elasticsearch-1.6.0</code> and referring to these link for help <a href="https://www.elastic.co/guide/en/elasticsearch/reference/1.6/using-elast...
0debug
long do_rt_sigreturn(CPUS390XState *env) { rt_sigframe *frame; abi_ulong frame_addr = env->regs[15]; sigset_t set; trace_user_do_rt_sigreturn(env, frame_addr); if (!lock_user_struct(VERIFY_READ, frame, frame_addr, 1)) { goto badframe; } target_to_host_sigset(&set, &frame->...
1threat
static void uhci_async_cancel_all(UHCIState *s) { UHCIQueue *queue; UHCIAsync *curr, *n; QTAILQ_FOREACH(queue, &s->queues, next) { QTAILQ_FOREACH_SAFE(curr, &queue->asyncs, next, n) { uhci_async_unlink(curr); uhci_async_cancel(curr); } uhci_queue_fr...
1threat
Pygame Grid and Entry, Correct Alignment : [What I want][1] [1]: https://i.stack.imgur.com/xneY2.png How would I implement this in TkInter with Python? Two numbers are input as the width and height, and are then saved to Mapwidth and Mapheight respectively. When the Confirm button is hit, the window close...
0debug
Conceptual - How does arithmetic work on a basic level in Java and code in general? : Excuse me for the vagueness of the question, but I'm a relatively new programmer. How exactly does the computer know how to do arithmetic? Does every language - specifically Java, have an add, subtract, addition, subtraction, modular ...
0debug
static int decode_vol_header(MpegEncContext *s, GetBitContext *gb){ int width, height, vo_ver_id; skip_bits(gb, 1); s->vo_type= get_bits(gb, 8); if (get_bits1(gb) != 0) { vo_ver_id = get_bits(gb, 4); skip_bits(gb, 3); } else { vo_ver_id = 1; s->asp...
1threat
How to access color from App.xaml in C# in Xamarin Forms? : <p>In App.xaml I have this code:</p> <pre><code>&lt;Application.Resources&gt; &lt;ResourceDictionary&gt; &lt;Color x:Key="Yellow"&gt;#ffd966&lt;/Color&gt; &lt;/ResourceDictionary&gt; &lt;/Application.Resources&gt; </code></pre> <p>and in C# I...
0debug
What is the best practice for organizing a piece of reusable code? Python : I am building a text-based encryption and decryption game. There are different levels, and each level uses a different cipher for encrypting a text. I am trying to figure out the best practice for the series of questions and prompts (the narr...
0debug
static int filter_query_formats(AVFilterContext *ctx) { int ret, i; AVFilterFormats *formats; AVFilterChannelLayouts *chlayouts; AVFilterFormats *samplerates; enum AVMediaType type = ctx->inputs && ctx->inputs [0] ? ctx->inputs [0]->type : ctx->outputs && ctx->out...
1threat
How do I identify and label similar rows in a pandas data frame : I have a data set and I want to identify and label similar rows as such in python: [1, 1000] [1] [2, 10 ] [2] [2, 100 ] [3] [2, 10 ] -> [2] [3, 1000] [4] [2, 100 ] [3] [2, 10...
0debug
static void nvdimm_build_nfit(GSList *device_list, GArray *table_offsets, GArray *table_data, GArray *linker) { GArray *structures = nvdimm_build_device_structure(device_list); unsigned int header; acpi_add_table(table_offsets, table_data); header = table_da...
1threat
static inline int ppcemb_tlb_check(CPUState *env, ppcemb_tlb_t *tlb, target_phys_addr_t *raddrp, target_ulong address, uint32_t pid, int ext, int i) { target_ulong mask; if (!(tlb->prot & PAGE_...
1threat
static void default_drive(int enable, int snapshot, int use_scsi, BlockInterfaceType type, int index, const char *optstr) { QemuOpts *opts; if (type == IF_DEFAULT) { type = use_scsi ? IF_SCSI : IF_IDE; } if (!enable || drive_get_by_...
1threat
static void modified_levinson_durbin(int *window, int window_entries, int *out, int out_entries, int channels, int *tap_quant) { int i; int *state = av_calloc(window_entries, sizeof(*state)); memcpy(state, window, 4* window_entries); for (i = 0; i < out_entries; i++) { in...
1threat
static void gen_tlbsx_40x(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else TCGv t0; if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } t0 = tcg_temp_new(); gen_addr_reg_index(ctx,...
1threat
static int gdb_get_spe_reg(CPUState *env, uint8_t *mem_buf, int n) { if (n < 32) { #if defined(TARGET_PPC64) stl_p(mem_buf, env->gpr[n] >> 32); #else stl_p(mem_buf, env->gprh[n]); #endif return 4; } if (n == 33) { stq_p(mem_buf, env->spe_acc); return 8; ...
1threat
Identityserver 4 and Azure AD : <p>I'm looking into using Identity Server 4 for authentication within a C# based MVC application. I'd like to use accounts stored in Azure AD as a source of valid users but the documentation only seems to refer to Google and OpenID &amp; only mentions Azure in passing.</p> <p>Does anybo...
0debug
Where can I put a startup script in Jupyter? : <p>I'm looking for a way to put my startup script in Jupyter. In IPython, I put it under the <code>$IPYTHON_DIR/profile_default/startup/</code>. </p> <p>In Jupyter, it seems that the config file should be <code>$JUPYTER_CONFIG_DIR/jupyter_notebook_config.py</code>. Howeve...
0debug
Compare a MySql table with an excel table using java : I have a marks table with attributes student_id and total_marks. Here student_id refers to the primary key of student table. I have same marks table stored as an Excel file. Now I want to write a java program to find out the students who are having a mismatc...
0debug
Convert List to String and back to List Python 3 : <p>If I type:</p> <pre><code>&gt;&gt;&gt; list(str([0, 0, 0])) </code></pre> <p>I get: <code>['[', '0', ',', ' ', '0', ',', ' ', '0', ']']</code></p> <p>How would I make it so that I get <code>[0, 0, 0]</code> instead?</p>
0debug
How to insert a list as a key in Python dictionary : <p>I'm using Python 3.5 and I want to know if its possible or if there's a way to use a list as a key in a dictionary in this way.</p> <pre><code>dict = {['a', 'c', 'b']: 1, ['a', 'b', 'c']: 2, ['b', 'a', 'c']: 5} </code></pre> <p>I need so hard to work w...
0debug
Node Modular Architecture : <p>I am building a nodejs application that is fairly large now. In an attempt to avoid a monolithic node application I have gone down the architectural route of a more modular system breaking out several components into separate npm modules. These are published using npm and installed in the...
0debug
iOS 10.1 and Xcode 8 issue : <p>Just installed iOS 10.1 (non beta) today, as well as the latest (non-beta) version of Xcode via the App Store and am encountering the following error:</p> <p><a href="https://i.stack.imgur.com/tdDCX.png"><img src="https://i.stack.imgur.com/tdDCX.png" alt="enter image description here"><...
0debug
Function if in javascript ever return true : I have the function below: $("#botao").on("click", function(){ s = $("#municipio").val(); alert(s); if (s == 1){ $("#imagem").attr("src","https://gatolovers.com.br/uf/popup1.png"); $("#mensagem").html('Uhul! Nós atendemos sua região. Temos uma unidade...
0debug
how to get the dates in an array in ios swift : I have an array like ["2018-03-21 11:09:25","2018-03-22 11:09:25","2018-03-23 11:09:25","2018-03-24 11:09:25"] I need to display only dates[2018-03-21] in this array. How to split this array?
0debug
R Functions Return Value : <p>I am a new R user coming from the world of Java and SQL. I have been struggling the with the configuration or format of data that functions return in R. So far I have encountered three:</p> <ul> <li>Return actual data: for example, if you search through a data.frame, the return will be th...
0debug