problem
stringlengths
26
131k
labels
class label
2 classes
how to split a string in a list and use the output to compare with a dictionary? python : suppose my dictionary contains {'one'='1','two'='2'........'hundred' = '100'} and my list contains [['for 30']['for thirty']] i want to split the strings in the list as :- [for],[30] and [for],[thir...
0debug
void helper_ldl_raw(uint64_t t0, uint64_t t1) { ldl_raw(t1, t0); }
1threat
what are the use of "|" operator and "<<" operators in c : <p>PINS_DRV_SetPinsDirection(GPIO_PORT, ((1 &lt;&lt; LED1) | (1 &lt;&lt; LED2)));</p> <p>here "PINS_DRV_SetPinsDirection" is a function and i am passing arguments which are in (). what is the meaning of those arguments "(GPIO_PORT, ((1 &lt;&lt; LED1) | (1 &lt;...
0debug
For loop Syntax in C strange form : <p>I'm analyzing a C program and i find this loop that i can't understand. There is no counter or limit or variable.</p> <pre><code>/* ioloop */ for (;;) { // statements } </code></pre> <p>is this an infinite loop ?</p>
0debug
Check if column value is in other columns in pandas : <p>I have the following dataframe in pandas</p> <pre><code> target A B C 0 cat bridge cat brush 1 brush dog cat shoe 2 bridge cat shoe bridge </code></pre> <p>How do I test whether <code>df.target</code> is in any of the ...
0debug
void phys_mem_set_alloc(void *(*alloc)(size_t)) { phys_mem_alloc = alloc; }
1threat
Lottery program in python from Y Daniel Liang : <p>I am new to python. The following is a practice programming exercise from Y Daniel Liang Python book Chapter 4. if the lottery number is 333, am getting perfect match for different user inputs such as 133, 233, 433, 533, 633, 733, 833, 933, I have no idea why.</p> <pr...
0debug
Disable mouse wheel integration in Android emulator : <p>Is it possible to <strong>disable mouse wheel scrolling in AVD</strong>? Because I am using apple magic mouse and almost every mouse touch (not click - just touch) acts as click in Emulator and it drives me crazy.</p> <p>Same thing is happening even on BlueStack...
0debug
static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, QEMUMachineInitArgs *args) { const char *cpu_model = args->cpu_model; unsigned int i; void *iommu, *espdma, *ledma, *nvram; qemu_irq *cpu_irqs[MAX_CPUS], slavio_irq[32], slavio_cpu_irq[MAX_CPUS], espdma_i...
1threat
HTML special character (& symbol) not rendering in React component : <p>Consider this react code:</p> <pre><code>subTopicOptions = curSubTopics.map((topic) =&gt; { return ( &lt;option value={topic.id}&gt;{topic.name}&lt;/option&gt; ) }); </code></pre> <p>The <code>topic.name</code> output <code>Enviro...
0debug
How to use Alamofires ServerTrustPolicy.disableEvaluation in swift 5 alamofire 5.0.3 : <p>in alamofire 4 I used this code to disable sever evaluation:</p> <pre><code>private var Manager : Alamofire.Session = { // Create the server trust policies let serverTrustPolicies: [String: ServerTrustPolicy] = ["...
0debug
static void xhci_process_commands(XHCIState *xhci) { XHCITRB trb; TRBType type; XHCIEvent event = {ER_COMMAND_COMPLETE, CC_SUCCESS}; dma_addr_t addr; unsigned int i, slotid = 0; DPRINTF("xhci_process_commands()\n"); if (!xhci_running(xhci)) { DPRINTF("xhci_process_commands...
1threat
def round_and_sum(list1): lenght=len(list1) round_and_sum=sum(list(map(round,list1))* lenght) return round_and_sum
0debug
from itertools import groupby def pack_consecutive_duplicates(list1): return [list(group) for key, group in groupby(list1)]
0debug
static void filter_mb( H264Context *h, int mb_x, int mb_y, uint8_t *img_y, uint8_t *img_cb, uint8_t *img_cr, unsigned int linesize, unsigned int uvlinesize) { MpegEncContext * const s = &h->s; const int mb_xy= mb_x + mb_y*s->mb_stride; const int mb_type = s->current_picture.mb_type[mb_xy]; const int...
1threat
static int dma_buf_rw(BMDMAState *bm, int is_write) { IDEState *s = bmdma_active_if(bm); struct { uint32_t addr; uint32_t size; } prd; int l, len; for(;;) { l = s->io_buffer_size - s->io_buffer_index; if (l <= 0) break; if (bm->cur_pr...
1threat
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { skip_bits(gb, 24); ...
1threat
static void* attribute_align_arg worker(void *v) { ThreadContext *c = v; int our_job = c->nb_jobs; int nb_threads = c->nb_threads; unsigned int last_execute = 0; int self_id; pthread_mutex_lock(&c->current_job_lock); self_id = c->current_job++; for (;;) { while...
1threat
int main(int argc, char **argv){ int in_sample_rate, out_sample_rate, ch ,i, flush_count; uint64_t in_ch_layout, out_ch_layout; enum AVSampleFormat in_sample_fmt, out_sample_fmt; uint8_t array_in[SAMPLES*8*8]; uint8_t array_mid[SAMPLES*8*8*3]; uint8_t array_out[SAMPLES*8*8+100]; uint8...
1threat
void cris_cpu_list(FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...)) { unsigned int i; (*cpu_fprintf)(f, "Available CPUs:\n"); for (i = 0; i < ARRAY_SIZE(cris_cores); i++) { (*cpu_fprintf)(f, " %s\n", cris_cores[i].name); } }
1threat
why do we need np.squeeze()? : <p>Very often, arrays are squeezed with <code>np.squeeze()</code>. In the documentation, it says </p> <blockquote> <p>Remove single-dimensional entries from the shape of a.</p> </blockquote> <p>However I'm still wondering: Why <em>are</em> zero and nondimensional entries in the shape ...
0debug
Adding prefix path to static files in Angular using angular-cli : <p>I have an existing django project where I am serving static files over /static/ path. I am migrating a part of the application to angular2, to be specific mobile version of the site. </p> <p>Adding <code>&lt;base href="/"&gt;</code> to index.html loa...
0debug
Replace some Characters in a String : <p>I have this String </p> <pre><code>link="https%3a%2f%2fen.wikipedia.org%2fwiki%2fHuawei/" </code></pre> <p>which shoud be like this:</p> <pre><code>link="https://en.wikipedia.org/wiki/Huawei/" </code></pre> <p>I wrote this code:</p> <pre><code>link.Replace("%2f", "/"); link...
0debug
Golang variable declaration syntax meaning : <p>I am going through some Golang code and came through this block of code, I am not able to comprehend it. I can see that d1,d2,d3 are variables of type int. But what is the last string <code>json:"start"</code></p> <pre><code>type obj1 struct { d1 int `json:"start"`...
0debug
Hello, i need jquery function for symbol counter in text box when click on button : i need jquery function for symbol counter in text box when click on button. I dont know how work this. <!-- begin snippet: js hide: false --> <!-- language: lang-html --> <!doctype html> <html lang="en"> <head> ...
0debug
ImageInfoSpecific *bdrv_get_specific_info(BlockDriverState *bs) { BlockDriver *drv = bs->drv; if (drv && drv->bdrv_get_specific_info) { return drv->bdrv_get_specific_info(bs); } return NULL; }
1threat
static void qemu_aio_wait_all(void) { while (aio_poll(ctx, true)) { } }
1threat
Can I replace an existing method of an object in Python? : <p><strong>Q:</strong> Is there a way to alter a method of an existing object in Python (3.6)? (By "method" I mean a function that is passed <code>self</code> as an argument.)</p> <hr> <p><strong>Example</strong></p> <p>Let's say I have a class <code>Person<...
0debug
getting top 2 rows in each group without row number in sql : i am looking a simple code to get result of 2 rows with latest invoice date in each group . Although this task can be accomplished by a ror_number that you can see in below code , but i need alternative of this with minimum complexity. Code :- create t...
0debug
Jython vs Python3 vs Cython efficiency : <p>I see a lot of questions and answers related to python optimization but because python 3.x is advancing so rapidly, I am a bit confused as to which is the best option where. </p> <p>I'm wondering if I'm misreading <a href="https://pybenchmarks.org/u64q/jython.php" rel="nofol...
0debug
Endless install in android studio : <p>In the recent times I am considering to change my work title from "Android Developer" to "Endless install progress watcher".</p> <p>It has been happening ever more often that when I try to run my applications or tests Android Studio stucks in endless installing progress like the ...
0debug
Write a query to find the rental return date for customers Bill? I want find out the customer "Bill" Car return date : [enter image description here][1] [1]: http://i.stack.imgur.com/RBEdN.jpg Write a query to find the rental return date for customers Bill? I want find out the customer "Bill" Car return date
0debug
Getting a NullReferenceException when trying to compare to null : <p>first time posting on here and a bit of a noob in c#. Basically I'm creating a linkedlist and initializing it to null at the beginning of my class. When I'm ready to use it, I check to make sure that it's not equal to the string passed by the method. ...
0debug
static inline void RENAME(yuv2yuvX)(SwsContext *c, const int16_t *lumFilter, const int16_t **lumSrc, int lumFilterSize, const int16_t *chrFilter, const int16_t **chrUSrc, const int16_t **chrVSrc, ...
1threat
typescript return type of inherited class : <p>This is what I'm trying to do:</p> <pre><code>class Base{ clone(){ //return new instance of the inherited class } } class Derived extends Base{ } const d1=new Derived(); const d2=d2.clone; // I want d2 to be of type Derived </code></pre> <p>What shoul...
0debug
How to create jquery accordion out of this code : i am having problem to enable accordion on this code structure. I have tried the following code but it is not working. <li><?php echo get_field('faq_question_1');?> <span class="readLinkTag"><a class="click_acc" href="#">READ MORE <i class="fa fa-chevron-circle...
0debug
Charles proxy shows IP addresses instead of domain names : <p>Charles for me shows IP addresses instead of domain names. Has anyone else seen this problem. See the attached screenshot.</p> <p><a href="https://i.stack.imgur.com/PXG06.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PXG06.png" alt="Charles scre...
0debug
F# functions vs C# "Func"tions : <p>So I ran across this tour of F#: <a href="https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tour" rel="noreferrer">https://docs.microsoft.com/en-us/dotnet/articles/fsharp/tour</a></p> <p>... and boy howdy is F# interesting! The very beginning of the tour defined a sample funct...
0debug
static void exynos4210_mct_write(void *opaque, target_phys_addr_t offset, uint64_t value, unsigned size) { Exynos4210MCTState *s = (Exynos4210MCTState *)opaque; int index; int shift; int lt_i; uint64_t new_frc; uint32_t i; uint32_t old_val; #ifdef DEBUG_MCT static ui...
1threat
static void user_async_cmd_handler(Monitor *mon, const mon_cmd_t *cmd, const QDict *params) { int ret; MonitorCompletionData *cb_data = g_malloc(sizeof(*cb_data)); cb_data->mon = mon; cb_data->user_print = cmd->user_print; monitor_suspend(mon); ret = ...
1threat
PHP count down every 30 minutes real time : <p>My Boss give me a project in which i have to show a real time count down of every 30 minutes in PHP anyone can help me how to do this ?? sorry for my Bad English</p>
0debug
How can I improve ths logic : I will have to implement following logic in java - 1. execute query Q1 on data D1 based on condition C1 2. if result of Q1 is more than zero then make another query Q2 on data D2 based on condition C2 3. If Q2 size is more than zero then make another query Q3 on data D2 based on cond...
0debug
static int bfi_decode_frame(AVCodecContext * avctx, void *data, int *data_size, const uint8_t * buf, int buf_size) { BFIContext *bfi = avctx->priv_data; uint8_t *dst = bfi->dst; uint8_t *src, *dst_offset, colour1, colour2; uint8_t *frame_end...
1threat
error in a C program using dynamic memory allocation and array : programming in C for finding maximum in 2D aaray using dynamic memory allocation. int main() { int i,arr[m][n],j,m,n; int max=0; int *ptr; printf("enter the value m"); scanf("%d",m); printf("enter the vaue of n"); scanf("%d",n);...
0debug
static void test_nesting(void) { Coroutine *root; NestData nd = { .n_enter = 0, .n_return = 0, .max = 128, }; root = qemu_coroutine_create(nest); qemu_coroutine_enter(root, &nd); g_assert_cmpint(nd.n_enter, ==, nd.max); g_assert_cmpint(nd.n_...
1threat
How construct json I can receive int64 and string using golang? : I have the follow example code: type Num struct { X uint64 `json:"x,string"` Y float64 `json:"y,string"` } Now, I use the command `curl -X POST --data '{"x": "123", "y": "1.23"}' -v "localhost:8080"` it will return OK. But I...
0debug
react / redux-form: how to return promise from onSubmit? : <p>I'm trying to wrap my head around <a href="http://rackt.org/redux/" rel="noreferrer">redux</a>, <a href="http://rackt.org/redux/docs/basics/UsageWithReact.html" rel="noreferrer">react-redux</a> and <a href="http://erikras.github.io/redux-form/" rel="noreferr...
0debug
void qemu_start_incoming_migration(const char *uri, Error **errp) { const char *p; if (strstart(uri, "tcp:", &p)) tcp_start_incoming_migration(p, errp); #ifdef CONFIG_RDMA else if (strstart(uri, "rdma:", &p)) rdma_start_incoming_migration(p, errp); #endif #if !defined(WIN32) ...
1threat
Why demo Jquery plugin isn't working? : <p>I downloaded the autocomplete plugin, just a complete plugin demo. The only thing that i need to do is upload the SQL file to my database and update the database login details:</p> <pre><code>/* Database setup information */ $dbhost = 'localhost:3307'; // Database Host $dbus...
0debug
In docker-compose how to create an alias / link to localhost? : <p>In my docker-compose file there is a need for several containers to know the hostname of a specific container, including this specific container.</p> <p>Links will not work, since a container can not link to itself.</p> <p>Basically, what I am looking...
0debug
Need help: for loop and if statement within a method : I am new to using java and am having some issues in my java class right now and will be needing help with my specific code. I try to look at others questions on here all the time but it's never exactly what I need. Here are my directions: Create a Java file call...
0debug
Julia in Google Colab : <p>I am trying to setup Julia with Google Colab. Installation instructions as in <a href="https://discourse.julialang.org/t/julia-on-google-colab-free-gpu-accelerated-shareable-notebooks/15319" rel="noreferrer">https://discourse.julialang.org/t/julia-on-google-colab-free-gpu-accelerated-shareabl...
0debug
Urgent help , please : hello and thank you very very much in advance for helping me with this , i have this array, that is dumped from woocommerce using this lines : $items = $woocommerce->cart->get_cart(); foreach($items as $item => $values) { } array(1) { ["f584d86...
0debug
static int decode_cce(AACContext * ac, GetBitContext * gb, ChannelElement * che) { int num_gain = 0; int c, g, sfb, ret, idx = 0; int sign; float scale; SingleChannelElement * sce = &che->ch[0]; ChannelCoupling * coup = &che->coup; coup->coupling_point = 2*get_bits1(gb); co...
1threat
Nested-list is giving segmentation-fault : I don't understand why this C++ code is producing segmentation error. Please Someone tell... #include<bits/stdc++.h> using namespace std; typedef long long ll; list<int> *adj; void addEdge(int v, int w) { adj[v].push_back(w); // Add w to v...
0debug
static void check_native_list(QObject *qobj, UserDefNativeListUnionKind kind) { QDict *qdict; QList *qlist; int i; qdict = qobject_to_qdict(qobj); g_assert(qdict); g_assert(qdict_haskey(qdict, "data")); qlist = qlist_copy(qobject_to_qlist(qdict_get(qd...
1threat
html to accept only numbers and alphabhets without script : **Input type must accept only:** -letters(a-z and A-Z) - Numbers(only positive integers) - No Special Characters
0debug
copy list element of key values in dictionary through python language? : I have dictionary which have multiple key and those multiple key have multiple list so i want to copy specific value for a specific key dict1={ '1' : [1,2,3] , '2' : [4,5,6] , '3' :[7,8,9]} output: if key == 1 then print 3 if key == ...
0debug
ATM Account Homework (Classes,Textfiles,Objects) : I am completely lost. Our homework assignment is to: 1. Create an ATM Program that asks a user for their name and pin 2. Program will loop through asking user if they want to check balance, withdraw, deposit, or exit. You exit the loop when user selects exit. The ini...
0debug
How to handle differnt language in selenium? : My application supporting two language i.e English and french and my single Test case support both the language Then phase1 is able to run Test case in English as well as in french so what will be the basic structure of framework to full-fill this criteria?
0debug
How do i use the % placeholder to write something in python? : <p>I have been asked to use the % placeholder to write something in python. I don't know how to do it can you help. </p>
0debug
My constructor function is not found in main() : <p>I'm getting a for me inexplicable error:</p> <pre><code>PageRankReader.java:19: error: cannot find symbol PageRankReader(args[0]); ^ symbol: method PageRankReader(String) location: class PageRankReader 1 error </code></pre> <p>Which I cannot un...
0debug
def count_Rotation(arr,n): for i in range (1,n): if (arr[i] < arr[i - 1]): return i return 0
0debug
Generate single physical javascript file using create-react-app : <p>This is perhaps a newbie question. I have created a small reactjs app using create-react-app and I see that the bundle.js file is being served from <a href="http://localhost:3000/static/js/bundle.js" rel="noreferrer">http://localhost:3000/static/js/bu...
0debug
static int check_bd(VIOsPAPRVLANDevice *dev, vlan_bd_t bd, target_ulong alignment) { if ((VLAN_BD_ADDR(bd) % alignment) || (VLAN_BD_LEN(bd) % alignment)) { return -1; } if (spapr_vio_check_tces(&dev->sdev, VLAN_BD_ADDR(bd), VLAN_BD_L...
1threat
static inline int mpeg2_fast_decode_block_non_intra(MpegEncContext *s, int16_t *block, int n) { int level, i, j, run; RLTable *rl = &ff_rl_mpeg1; uint8_t * const scantable = s->intra_scantable.permutated; const int qscale = s->qscale; ...
1threat
jqury on table div : I have table as follows: <table class="mytable"> <div> <tr> <th>h1</th> <th>h1-1</th> <th>h1-2</th> </tr> <tr> <th>h2</th> <th>h2-2</th> <th>h2-3</th> </tr> </div> <div> <tr> <td>1</td> <td>1</td...
0debug
static uint64_t virtio_pci_config_read(void *opaque, hwaddr addr, unsigned size) { VirtIOPCIProxy *proxy = opaque; uint32_t config = VIRTIO_PCI_CONFIG(&proxy->pci_dev); uint64_t val = 0; if (addr < config) { return virtio_ioport_read(proxy, addr); ...
1threat
static float get_band_cost_SQUAD_mips(struct AACEncContext *s, PutBitContext *pb, const float *in, const float *scaled, int size, int scale_idx, int cb, const float lambda, const float uplim, ...
1threat
def find_star_num(n): return (6 * n * (n - 1) + 1)
0debug
Local overrides in chrome – keep active while devtools are closed : <p>I really like the <a href="https://developers.google.com/web/updates/2018/01/devtools#overrides" rel="noreferrer">local overrides feature in chrome</a>. While it is handy during development, I'd also like to use it <strong>while my devtools are clos...
0debug
Javascript and HTML width : I have an html text for example: <table cellspacing="0" width="50%" id='AAA' border='1' cellpadding="0" > <tr > <td width="5%"><div align="center">Nr. rd.</div></td> <td width="50%"><div align="center">Indicator</div></td> <td width="15%"><div align="center">Valoare</div></td>...
0debug
static ssize_t handle_aiocb_discard(RawPosixAIOData *aiocb) { int ret = -EOPNOTSUPP; BDRVRawState *s = aiocb->bs->opaque; if (s->has_discard == 0) { return 0; } if (aiocb->aio_type & QEMU_AIO_BLKDEV) { #ifdef BLKDISCARD do { uint64_t range[2] = { aiocb->aio_...
1threat
In angular 2 im getting response from backend...an im looping it in *ngFor in the html file : In angular 2 after deleting of an item in *ngFor(The item is deleted in the back-End) the item is still visible in the view...DOM is not updating...After the page refresh, the item is not visible in the view...
0debug
AzCopy login fails : <p>After running <code>azcopy login</code> and signing in with my Azure account, I see the following response on the sign in page:</p> <p>“User account from identity provider does not exist in tenant ‘Microsoft’ and cannot access the application in that tenant. This account needs to be added as...
0debug
What's the better approach: serving static files with Express or nginx? : <p>I'm building a Node.js applications and I'm using nginx as a reverse proxy. My application has some static files I need to serve and a Socket.io server. </p> <p>I know that I can serve static files directly with Express (using express.static ...
0debug
Create a list of texts which are seperated by '+' and '-' : I have a text in following manner `@@+aaa+bbb+ccc-asd-asdfg+hhh` I need to separate the text and save it in a list such that the entries of the list are 'aaa','bbb','ccc','asd','asdfg','hhh' <br> I did `$str = substr($str1,2); ` to remove the '@@'
0debug
Is there a difference between type signatures a -> b -> a and c -> a -> c? : <p>This question is a theoretical question about Haskell functions which can take arguments of any type. Is there a difference between the way functions with the type signatures of </p> <pre><code>a -&gt; b -&gt; a </code></pre> <p>and </p>...
0debug
Can't login to GitHub from SourceTree anymore : <p>I was able to login up until today when it just stopped working. I'm using a Windows 7 machine. I have 2-factor authentication.</p> <p>I've tried personal access tokens. I've tried deleting my credentials and re-adding them. I've tried nuking and/or updating credentia...
0debug
Java Convert Integer combined with String amount to Integer : I have to use an int value "nid" to work on. But this int value should be an combination of int "did" and String "a"! int did = 123456; String a = "_b"; int nid = Integer.parseInt((did+a).toString()); But for this code i get the error mes...
0debug
How to get Leaflet for R use 100% of Shiny dashboard height : <p>I am in the process of creating a Shiny dashboard application, where the dashboard body is supposed to show some maps. So far no problem to get the map expand over the entire width of the body, but it's somehow not willing to adjust to the full height. <a...
0debug
static int restore_user_regs(CPUPPCState *env, struct target_mcontext *frame, int sig) { target_ulong save_r2 = 0; target_ulong msr; target_ulong ccr; int i; if (!sig) { save_r2 = env->gpr[2]; } for (i = 0; i < ARRAY_SIZE(env->gpr); ...
1threat
Search creiteria using sql server : I need to create a procedure to return the matching criteria for the passed parameter from the table example parameter - The big related match from the table - The Big Bang The Big The big ...
0debug
Jekyll theme could not be found : <p>Following the jekyll documentation found here: <a href="https://jekyllrb.com/docs/themes/" rel="noreferrer">https://jekyllrb.com/docs/themes/</a> I was trying to install and change a gem based theme so I have chosen the jekyll-theme-primer for this and I've run the following command...
0debug
How to identify letter in an image using Python? : I'm trying to use OpenCV to identify the letters of an image. So far I'm reading the image > Applying Blur > Identifying the Edges of the letters, but for some of them it works well, but most of them I'm facing 2 kind of problems: 1. Sometimes the cv2.Canny() ca...
0debug
static void RENAME(interleaveBytes)(const uint8_t *src1, const uint8_t *src2, uint8_t *dest, long width, long height, long src1Stride, long src2Stride, long dstStride) { long h; for (h=0; h < height; h++) { long w; #if COMPILE_TEMPLATE...
1threat
JavaScript: How do I concatenate two values from a single Object? : <p>I know this is simple but for whatever reason I'm completely stumped right now.</p> <p>I have an array of objects all with their own <code>month</code> and <code>year</code> properties and I'm trying to concatenate both from each object and then di...
0debug
static void rtas_ibm_write_pci_config(sPAPREnvironment *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { uint32_t val, size, addr; uint64_t buid = ...
1threat
Javascript: function to convert an array object and its rewriting : When choosing a currency to convert all the price products according to what they choose and then defend the change in the page I want when I select a coin to convert the sum of all the products in the chunk and then to show the sum of each product ...
0debug
How to add an elasticsearch index during docker build : <p>I use the official elasticsearch docker image and wonder how can I include also during building a custom index, so that the index is already there when I start the container. </p> <p>My attempt was to add the following line to my dockerfile:</p> <pre><code>RU...
0debug
static void gain_scale(G723_1_Context *p, int16_t * buf, int energy) { int num, denom, gain, bits1, bits2; int i; num = energy; denom = 0; for (i = 0; i < SUBFRAME_LEN; i++) { int64_t temp = buf[i] >> 2; temp = av_clipl_int32(MUL64(temp, temp) << 1); denom = av_...
1threat
importing an class from the same directory in Perl : <p>i have a directory with main.pl and Product.pl. in the main.pl i try to import the Product class but the execution fails when i run perl main.pl complaining that cant locate Product.pm in @INC. My directory is not in the @INC list. How can i fix this?</p>
0debug
Why unicode elements of lists would be hide? : <p>If I want to display Unicode elements as string correctly, why should I do, in the English language? </p>
0debug
static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave) { int i, ret; AVDictionary *options = NULL; AVDictionaryEntry *entry; char *filename; char *format = NULL, *select = NULL; AVFormatContext *avf2 = NULL; AVStream *st, *st2; int stream_count; int f...
1threat
float32 helper_fabs_FT(float32 t0) { return float32_abs(t0); }
1threat
static int load_glyph(AVFilterContext *ctx, Glyph **glyph_ptr, uint32_t code) { DrawTextContext *s = ctx->priv; FT_BitmapGlyph bitmapglyph; Glyph *glyph; struct AVTreeNode *node = NULL; int ret; if (FT_Load_Char(s->face, code, s->ft_load_flags)) return AVERROR(EINVAL); ...
1threat
Attribute tag will not work in css as one of my selectors : <p>Is there any reason that this attribute tag a[h2]{color:orange;} wont work in css? I Cant seem to get the attribute tag to work for any elements.</p>
0debug
Node, when I run package.json `bin` `command` , give me `syntax error near unexpected token `(' ` : <p>when I run package.json <code>bin</code> <code>command</code> , give me <code>syntax error near unexpected token</code>(' ` .</p> <p><code>package.json</code>:</p> <pre><code> "bin": { "grabfilenames": "./index....
0debug
Need to expand an inventory journal (log) pandas dataframe to include all dates per product id : <p>I have an inventory journal that contains products and their relative inventory qty (resulting_qty) as well as the loss/gain every time inventory is added or subtracted (delta_qty). </p> <p>The issue is that inventory r...
0debug
void sws_rgb2rgb_init(int flags){ #if (defined(HAVE_MMX2) || defined(HAVE_3DNOW) || defined(HAVE_MMX)) && defined(CONFIG_GPL) if(flags & SWS_CPU_CAPS_MMX2) rgb2rgb_init_MMX2(); else if(flags & SWS_CPU_CAPS_3DNOW) rgb2rgb_init_3DNOW(); else if(flags & SWS_CPU_CAPS_MMX) rgb2rgb_init_MMX(); else #endif...
1threat