problem
stringlengths
26
131k
labels
class label
2 classes
static int decode_block_coeffs_internal(VP56RangeCoder *c, DCTELEM block[16], uint8_t probs[16][3][NUM_DCT_TOKENS-1], int i, uint8_t *token_prob, int16_t qmul[2]) { goto skip_eob; do { int coeff; if (!vp56_rac...
1threat
static int kvmppc_get_pvinfo(CPUPPCState *env, struct kvm_ppc_pvinfo *pvinfo) { PowerPCCPU *cpu = ppc_env_get_cpu(env); CPUState *cs = CPU(cpu); if (kvm_check_extension(cs->kvm_state, KVM_CAP_PPC_GET_PVINFO) && !kvm_vm_ioctl(cs->kvm_state, KVM_PPC_GET_PVINFO, pvinfo)) { return 0; ...
1threat
unexpected end of declaration for class variable - Android : I am facing weird error: unexpected end of declaration. And I am very sure that there is no typo. Please help. package test.anyname; import android.app.*; import android.os.*; public class MainActivity extends Activity { boolean...
0debug
static inline int gen_intermediate_code_internal(CPUState *env, TranslationBlock *tb, int search_pc) { DisasContext dc1, *dc = &dc1; uint8_t *pc_ptr; uint16_t *gen_opc_end; int flags, j, lj; ui...
1threat
C++: Mapping float values into a new value within a specified range : I am working with accelerometer data which I need to "map/convert" into a new range of values. So, of the following example accelerometer data: X: [0.363209] Y: [0.723211] Z: [-9.806650] I need to convert the **X** acceleromete...
0debug
Javascript sort array of objects by KEY : <p>I want to sort an array like this DESC by the key "score"</p> <pre><code>[{user : 'a' , score : 45},{user: 'c', score: 90},{user : 'r' , score : 56}] </code></pre> <p>result would be </p> <pre><code>[{user: 'c', score: 90},{user : 'r' , score : 56}, {user : 'a' , score : ...
0debug
sql server login failed for user client computer : I am using sql sever r2 dadabase as a remote server having mixed mode sql authentication... when run my c# program from client computer to access database with following connection string:- "Data Source=192.168.1.101\SQLEXPRESS,1433;Initial Catalog=Login; Integrated ...
0debug
static int targa_decode_rle(AVCodecContext *avctx, TargaContext *s, const uint8_t *src, int src_size, uint8_t *dst, int w, int h, int stride, int bpp) { int i, x, y; int depth = (bpp + 1) >> 3; int type, count; int diff; const uint8_t *src_end = src + src_size; diff = stride - w * depth...
1threat
The colored image turned to have no color and just a grey vector in drawable? : <p>I have created a new Image Assets in the Drawable cus I need to insert a new image in my app, but every time I create a new image asset, the output turns to be no colour at all. I've attached the pic of it.<a href="https://i.stack.imgur....
0debug
Does the binary search algorithm always return the number less than the given number if the given number is missing? : <p>If I perform binary search on an array, such that my required number is missing does the mid eventually point to the number less than the required number? This is my code-</p> <pre><code>void binar...
0debug
def snake_to_camel(word): import re return ''.join(x.capitalize() or '_' for x in word.split('_'))
0debug
How to use the write() system call in C++? : <p>I am a beginner in C++ and I want to know how to use the write() system call in C++ instead of using cout for my success and error messages.</p> <pre><code>#include &lt;iostream&gt; #include &lt;stdio.h&gt; using namespace std; int rename(const char *oldpath, const char...
0debug
static int usb_msd_initfn(USBDevice *dev) { MSDState *s = DO_UPCAST(MSDState, dev, dev); BlockDriverState *bs = s->conf.bs; DriveInfo *dinfo; if (!bs) { error_report("usb-msd: drive property not set"); return -1; } bdrv_detach_dev(bs, &s->dev.qd...
1threat
How to constantly execute an if statement : <p>I guess it is not possible, but I just wanted to know if it could be possible to have an if statement always "active". I am creating a text-based game and the health variable of the character is changing often, so when it reaches 0 or below, i want to execute a "dead" func...
0debug
static void neon_store_reg(int reg, int pass, TCGv var) { tcg_gen_st_i32(var, cpu_env, neon_reg_offset(reg, pass)); dead_tmp(var); }
1threat
Getting ConcurrentException when working with list : <p>I am working with below code : </p> <pre><code>List&lt;String&gt; layerDataList = new ArrayList&lt;String&gt;(); if (layerDataList.isEmpty()) { layerDataList.add(layerData); } Iterator&lt;String&gt; lir = layerDataList.iterator(); // Iterator created while (l...
0debug
How to call a method of another class without creating an object of it and static in java? : <p>I have a method in a class which should be called in another class. I do not want to call it by instantiating an object as it leads to new object creation, instead I want to have the data processed in previous class. So how ...
0debug
Multiple apps in one project or one project per app in Firebase? : <p>I have, at the moment 2 android apps in which I want to add notifications and maybe ads and analytics, using Firebase, since it's free and easy to implement.</p> <p>I see that I have 2 options:</p> <ol> <li>Create a new project with my company's na...
0debug
How to break a single line in csv to multiple lines using java script : Ex: Input: This is a collaboratively edited question and answer site for professional and enthusiast programmers~It's 100% free~This is a collaboratively edited question and answer site for professional and enthusiast programmers~It's 100% f...
0debug
AttributeError: 'NoneType' object has no attribute 'append' no matter what : <p>I'm (trying to) parsing outputs from a software used by my research group and, so far, I was able to iterate, line by line, the lists I need (ok, there is this little annoying empty list [] at the end of the loop). The real problem starts w...
0debug
Why I get an empty file when I try to sort it? : <p>I am trying to sort a file with following command : <code>sort ${filename} &gt; ${filename}</code> , and I get as result - an empty file.<br> Can someone explain why I get this result and how can I fix it? </p>
0debug
C# - SQL how many rows are listed as number : SELECT ogrno, COUNT(ogrno) FROM Sonuc WHERE sinavno='" + sinavno + "' GROUP BY ogrno my sql code is that. I want to show a messagebox on C# how many rows are listed screenshot -> http://imgur.com/FcXfqLb in this case I want to show "2" as Messagebox in C#
0debug
int kvm_arch_fixup_msi_route(struct kvm_irq_routing_entry *route, uint64_t address, uint32_t data, PCIDevice *dev) { S390PCIBusDevice *pbdev; uint32_t fid = data >> ZPCI_MSI_VEC_BITS; uint32_t vec = data & ZPCI_MSI_VEC_MASK; pbdev = s390_pci_find_dev_by_fid(fid); ...
1threat
remove selected value from dropdown using javascript : i have 3 drop down field with same name.need to remove selected option from second drop down field .i tried with this $(".salaryAdd option:selected").remove();
0debug
int bdrv_read_unthrottled(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { bool enabled; int ret; enabled = bs->io_limits_enabled; bs->io_limits_enabled = false; ret = bdrv_read(bs, sector_num, buf, nb_sectors); bs->io_limits_enabled =...
1threat
static void ich_ahci_register(void) { type_register_static(&ich_ahci_info); type_register_static_alias(&ich_ahci_info, "ahci"); }
1threat
Make the `drop` argument in `dcast` only look at the RHS of the formula : <p>The <code>drop</code> argument in <code>dcast</code> (from "reshape2" or "dplyr") can be useful when going from a "long" to a "wide" dataset and you want to create columns even for combinations that do not exist in the long form.</p> <p>It tu...
0debug
Can I use LINQ with .net Framework version 4.5? : <p>Can anyone tell me if I will be able to use LINQ after upgrading from 4.0 to 4.5? </p> <p>My project currently targets the 4.0 Framework. I need to upgrade to version 4.5 or later to be able to use the Braintree payment processing api. I've had problems in the pas...
0debug
Java: How to turn a text file with string in format {i,j},{i,j},{i,j} into a 2-dimensional array? : <p>My text file is as follows : {11-11,22},{33-33,44},...{88-88,99}</p> <p>How can I turn this into a 2 dimensional array in Java in the form: [[11-11,22],[33-33,44],...[88-88,99]]</p>
0debug
static void isa_mmio_writel(void *opaque, target_phys_addr_t addr, uint32_t val) { cpu_outl(addr & IOPORTS_MASK, val); }
1threat
PHP - Managing A Lot of Data Without Database : <p>The Problem</p> <p>I have an app that scrapes data and presents it to the user, directly, because of lack of disk space.</p> <p>This data is very volatile, it can change within minutes. Much like the stock market.</p> <p>Since the data changes so often, and it varie...
0debug
Why is PageSpeed Insights summarizing the page speed/field data as slow? : <p>I see the two values of FCP and DCL, but then above them, the page says this is "Slow". How is that determined?</p>
0debug
AOP in Dotnet core : Dynamic Proxy with Real Proxy in Dotnet core : <p>I am migrating my application from .Net Framework 4.5.1 to Dot Net Core. I was using <a href="https://msdn.microsoft.com/en-us/library/system.runtime.remoting.proxies.realproxy(v=vs.110).aspx" rel="noreferrer">RealProxy</a> Class for logging user i...
0debug
static inline void neon_load_reg64(TCGv var, int reg) { tcg_gen_ld_i64(var, cpu_env, vfp_reg_offset(1, reg)); }
1threat
how to filter data table column for null or white space i use this filter but it dosn't work : dt.DefaultView.RowFilter = string.Format("[{0}] = '%{1}%'(string.IsNullOrWhiteSpace(dt.Columns[int.Parse(comboBox8.Text) - 1].ColumnName.ToString())),true);
0debug
static void pre_calc_cosmod(DCAContext * s) { int i, j, k; static int cosmod_inited = 0; if(cosmod_inited) return; for (j = 0, k = 0; k < 16; k++) for (i = 0; i < 16; i++) cos_mod[j++] = cos((2 * i + 1) * (2 * k + 1) * M_PI / 64); for (k = 0; k < 16; k++) for...
1threat
void HELPER(cpsr_write_eret)(CPUARMState *env, uint32_t val) { cpsr_write(env, val, CPSR_ERET_MASK, CPSRWriteExceptionReturn); arm_call_el_change_hook(arm_env_get_cpu(env)); }
1threat
how to take a request in ajax from nodejs : <p>i ask this question previous <a href="https://stackoverflow.com/questions/48479788/how-to-take-a-response-in-ajax-from-nodejs/48480078#48480078">how to take a response in ajax from nodejs</a> but no answer that.</p> <p>Please someone help me in this</p>
0debug
C++ Nested class functions access : im having a little problem access Nested Class functions. i created a function in the nested class that return one of the fields of the nested class (class B) , and i want use this field in Class A functions. it looks like this: class A{ int x,y,z class B{ ...
0debug
Why not always use the index as the key in a vue.js for loop? : <p>I have used vue.js for a couple of projects and I have been using the index as the key in the for loops</p> <pre><code>&lt;div v-for="(item, index) in items" :key="index"&gt;&lt;/div&gt; </code></pre> <p>...and have started to wonder if there are prob...
0debug
Where is the insecure content "was loaded over HTTPS, but requested an insecure prefetch resource" : <p>This URL: <a href="https://steakovercooked.com/wedding/schedule-wedding-ceremony/" rel="noreferrer">https://steakovercooked.com/wedding/schedule-wedding-ceremony/</a></p> <p>I can't find the insecure content and th...
0debug
Excel - Find cell value below certain text : I am trying to figure out how to add some cell values together from different sheets but I don't know what the cells references are as they vary! Basically the values i need will appear 2 rows below some certain text. So I was looking for a formula that searches multiple ...
0debug
static int fileTest(uint8_t *ref[4], int refStride[4], int w, int h, FILE *fp, enum AVPixelFormat srcFormat_in, enum AVPixelFormat dstFormat_in) { char buf[256]; while (fgets(buf, sizeof(buf), fp)) { struct Results r; enum AVPixelFormat srcFormat;...
1threat
Adding/Updating key, val for python dictionary : I would like to set up an empty dictionary `ind_dict` at the beginning, and then when i get a pair of `(key, val)`, if the `key` already exists in the `ind_dict`, i will just adding up the `val`(float type), otherwise i will add the new `(key, val)` pair.
0debug
def front_and_rear(test_tup): res = (test_tup[0], test_tup[-1]) return (res)
0debug
Is access to the heap serialized? : <p>One rule every programmer quickly learns about multithreading is: </p> <p><em>If more than one thread has access to a data structure, and at least one of threads might modify that data structure, then you'd better serialize all accesses to that data structure, or you're in for a...
0debug
I am trying to calculate someones age, but it keeps giving me an error : <p>We had an assignment on school to calculate someones age using an Calendar. I think I am almost finished but I am stuck.</p> <pre><code> int todaysYear; int selectedYear; todaysYear = DateTime.Now.Year; selectedYear = kalVerjaar...
0debug
why we cant't import agular4 as librairy like angularJS? : <p>why angularJS came as script to import in html page </p> <p>but in the new version Angular4, we must use web server to lunch application?</p> <p>is because angularJS is not a framwork and angular4 it is?</p> <p>thanks</p>
0debug
int qdev_prop_set_drive(DeviceState *dev, const char *name, BlockDriverState *value) { int res; res = bdrv_attach(value, dev); if (res < 0) { error_report("Can't attach drive %s to %s.%s: %s", bdrv_get_device_name(value), dev->id ? dev->id : dev->in...
1threat
static int mov_read_colr(MOVContext *c, AVIOContext *pb, MOVAtom atom) { AVStream *st; char color_parameter_type[5] = { 0 }; int color_primaries, color_trc, color_matrix; if (c->fc->nb_streams < 1) return 0; st = c->fc->streams[c->fc->nb_streams - 1]; avio_read(pb, color_para...
1threat
Javascript: Combining Strings into Array : <p>I have 3 strings that I need to convert into a single array, from there I want to filter out the <code>type: "bundle"</code>. </p> <p>I need to note that I'm using Javascript Code by Zapier and their javascript library is a bit limited as far as the functions that I can us...
0debug
about game of craps homework : <p>this is the first time for my asking a question here. im new to java and i hava a problem with the loop in this code i dont know where to break the loop.</p> <p>thank you for helping me :) <a href="https://i.stack.imgur.com/BmWfk.jpg" rel="nofollow noreferrer">this image is from the ...
0debug
How to write in terminal commands previously used? : <p>As simple as that. My programming teacher do it and I want to know how to do it.</p> <p>Thanks!</p>
0debug
static bool sensor_type_is_dr(uint32_t sensor_type) { switch (sensor_type) { case RTAS_SENSOR_TYPE_ISOLATION_STATE: case RTAS_SENSOR_TYPE_DR: case RTAS_SENSOR_TYPE_ALLOCATION_STATE: return true; } return false; }
1threat
VBScript regex not working to grab status code : <p>I am getting a no match with the below VBScript. Is something off in my code?</p> <p><strong>Test</strong></p> <pre><code>Error Type: SMTP[nl] Remote server (166.216.149.129) issued an error.[nl] hMailServer sent: RCPT TO:&lt;8583390609@txt.att.net&gt;[nl] Remote s...
0debug
QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm alg, QCryptoCipherMode mode, const uint8_t *key, size_t nkey, Error **errp) { QCryptoCipher *cipher; QCryptoCipherNettle *ctx; uint8_t *rfbkey...
1threat
static inline void futex_wake(QemuEvent *ev, int n) { if (n == 1) { pthread_cond_signal(&ev->cond); } else { pthread_cond_broadcast(&ev->cond); } }
1threat
React Table dynamic columns and rows : So here is my question. How can I display the header names and its respective rows dynamically? I am using a simple react table right now. I have hardcoded the names as you can see in the table (2017-8, 2017-9, .....) from the image. [enter image description here][1] ...
0debug
C# if else user input handling issue : <p>I'm building a simple console based monster battling game for training purposes. </p> <p>I've created a while loop which is almost where I need it to be but when the user enters an incorrect choice, the final "incorrect input" type message just loops infinitely on the screen.<...
0debug
How To Write Query To Show The Result like Picture : I want to use query showing top two best Quantity. But If My table like picture,How to show the result like this? Thanks! [Lick here to see picture][1] [1]: https://i.stack.imgur.com/IZ26g.png
0debug
static int img_read_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) { VideoDemuxData *s1 = s->priv_data; if (timestamp < 0 || timestamp > s1->img_last - s1->img_first) return -1; s1->img_number = timestamp + s1->img_first; return 0; }
1threat
static void virtio_net_handle_tx_bh(VirtIODevice *vdev, VirtQueue *vq) { VirtIONet *n = to_virtio_net(vdev); if (unlikely(n->tx_waiting)) { return; } virtio_queue_set_notification(vq, 0); qemu_bh_schedule(n->tx_bh); n->tx_waiting = 1; }
1threat
Why is my overloaded assignment operator is not being invoked on initialization? : <p>I created a test class to demonstrate the use of the overloaded assignment operator, and the pitfalls associated with double freeing memory. The code for this class is below:</p> <pre><code>class Test { public: Test() : ptr{new...
0debug
How to add random numbers together. Python : number_checker = 0 for random_variables in range(1,11): import random random = random.randint(1,25) print(random) if random % 2 == 0: print("This number is even") even_numbers = number_checker + random else: print("Thi...
0debug
Why doesn't `std::stringstream::stringstream(std::string&&)` exist? : <p>I was hoping <code>stringstream</code> has a constructor that steals its initial content from a <code>string&amp;&amp;</code>. Do such inter-species "move constructors" generally not exist in the STL? If not, why not?</p>
0debug
is there a dropdown menu as a component? Can't find it online : I am trying to make a website which is accessible to download pdf and mp3 files of sermons but I am not able because I can't find out how to make a drop down menu thing. I tried looking it up going on bootstrap, W3schools etc to no avail. <script> ...
0debug
static void ppc_spapr_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_f...
1threat
static int parse_drive(DeviceState *dev, const char *str, void **ptr) { BlockDriverState *bs; bs = bdrv_find(str); if (bs == NULL) { return -ENOENT; } if (bdrv_attach_dev(bs, dev) < 0) { return -EEXIST; } *ptr = bs; return 0; }
1threat
static int fic_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { FICContext *ctx = avctx->priv_data; uint8_t *src = avpkt->data; int ret; int slice, nslices; int msize; int tsize; int cur_x, cur_y; int skip_cursor = c...
1threat
Import class atributes with json : <p>I want to know how to import class attributes with json, but I don't know how and every time I try to learn I get confused and it doesn't work. Can anybody give me resources on how to learn this?</p>
0debug
Trying to figure out how to calculate mean in mtcars using loop's : <p>I am very new to R and was looking for some answers. I am trying to figure out how to calculate mean of all variables from mtcars data set,using any loop function . Any help/suggestion would be of great help </p>
0debug
Java scanner as an attribute in a class : <p>So I don't know how to use scanner as an attribute of my class and then use that attribute to read things.</p> <pre><code>private Scanner scannerName; public theClassImUsing(){ in = new Scanner(System.in); } System.out.println("Command &gt; "); String comando = in.next...
0debug
static void init_blk_migration_it(void *opaque, BlockDriverState *bs) { BlkMigDevState *bmds; int64_t sectors; if (!bdrv_is_read_only(bs)) { sectors = bdrv_nb_sectors(bs); if (sectors <= 0) { return; } bmds = g_malloc0(sizeof(BlkMigDevState)); ...
1threat
Angular 2 http.post() is not sending the request : <p>When I make a post request the angular 2 http is not sending this request</p> <pre><code>this.http.post(this.adminUsersControllerRoute, JSON.stringify(user), this.getRequestOptions()) </code></pre> <p>the http post is not sent to the server but if I make the reque...
0debug
static int read_var_block_data(ALSDecContext *ctx, ALSBlockData *bd) { ALSSpecificConfig *sconf = &ctx->sconf; AVCodecContext *avctx = ctx->avctx; GetBitContext *gb = &ctx->gb; unsigned int k; unsigned int s[8]; unsigned int sx[8]; unsigned int sub_blocks, log2_sub_blocks, ...
1threat
Integrate Paytm PGSDK_V2.0 Android : <p>I am Integrating <code>Paytm PGSDK_V2.0</code> in my android app. I have read all documentation on <a href="https://github.com/Paytm-Payments/Paytm_Android_App_Kit" rel="noreferrer">Github</a>. I have understand everything.but the problem is in its earlier SDK where we can simpl...
0debug
Why dollar ($) operator is so complex in GHC 8.0.1? : <pre><code>Prelude&gt; :i ($) ($) :: forall (r :: GHC.Types.RuntimeRep) a (b :: TYPE r). (a -&gt; b) -&gt; a -&gt; b -- Defined in ‘GHC.Base’ infixr 0 $ </code></pre> <p>How is it different from <code>(a -&gt; b) -&gt; a -&gt; b</code>? Is there any <co...
0debug
static void xenfb_mouse_event(DeviceState *dev, QemuConsole *src, InputEvent *evt) { struct XenInput *xenfb = (struct XenInput *)dev; InputBtnEvent *btn; InputMoveEvent *move; QemuConsole *con; DisplaySurface *surface; int scale; switch (evt->type) { ...
1threat
static int teletext_close_decoder(AVCodecContext *avctx) { TeletextContext *ctx = avctx->priv_data; av_dlog(avctx, "lines_total=%u\n", ctx->lines_processed); while (ctx->nb_pages) subtitle_rect_free(&ctx->pages[--ctx->nb_pages].sub_rect); av_freep(&ctx->pages); vbi_dvb_demux_delet...
1threat
What's the difference between angular-cli and @angular/cli on npm : <p>There are 2 angular cli packages available on npm:</p> <p><a href="https://www.npmjs.com/package/angular-cli" rel="noreferrer">angular-cli</a> which is currently at 1.0.0-beta.28.3</p> <p><a href="https://www.npmjs.com/package/@angular/cli" rel="n...
0debug
What does "keyof typeof" mean in TypeScript? : <p>Example:</p> <p>Explain to me what <code>keyof typeof</code> means in TypeScript</p> <pre><code>enum ColorsEnum { white = '#ffffff', black = '#000000', } type Colors = keyof typeof ColorsEnum; </code></pre> <p>The last row is equivalent to:</p> <pre><code>t...
0debug
int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { int ret; AVPacket user_pkt = *avpkt; ...
1threat
How to call webservice using ExecutorService : <p><strong>I would like to know the right way to consume a webservice using ExecutorService in java application, I suppose that the webservice call should be parallel and queues but i don't know how to do it.</strong></p>
0debug
static float64 addFloat64Sigs( float64 a, float64 b, flag zSign STATUS_PARAM ) { int16 aExp, bExp, zExp; uint64_t aSig, bSig, zSig; int16 expDiff; aSig = extractFloat64Frac( a ); aExp = extractFloat64Exp( a ); bSig = extractFloat64Frac( b ); bExp = extractFloat64Exp( b ); expD...
1threat
The content of the adapter has changed but ListView did not receive a notification. : <p>i have list view with custom BaseAdapter, and i have menus list coming from web service and storing in SQLite database using thread(in background), so that Main Thread will not hang, and performance will increase but while setting ...
0debug
how to add Favicon icon in email template? : We are using word-press website with Email template , all emails working fine , but our requirement is showing Favicon icon in our Email template . How to pass Favicon icon in my email template ?
0debug
static void tcg_out_qemu_ld(TCGContext *s, const TCGArg *args, int opc) { int addr_regl, addr_reg1, addr_meml; int data_regl, data_regh, data_reg1, data_reg2; int mem_index, s_bits; #if defined(CONFIG_SOFTMMU) void *label1_ptr, *label2_ptr; int sp_args; #endif #...
1threat
how do I style an Alert element in react-native? : <p>I'm working with react-native and I have created an Alert element.</p> <pre><code>Alert.alert( 'Warning', 'bla bla bla', [ {text: 'OK', onPress: () =&gt; console.log('OK Pressed')}, ] ) </code></pre> <p>Now I'd like to apply some style t...
0debug
How do I get the top_header and the nav on top of my page to a max-width of 1920px and the main_section centered underneath to a 1000px? : i am new to html and css and have a problem with the layout of the side i am building. i want the "top_header" and the "top_menu" of the side to have a width of 1920px and the "main...
0debug
static void dxva_adjust_hwframes(AVCodecContext *avctx, AVHWFramesContext *frames_ctx) { FFDXVASharedContext *sctx = DXVA_SHARED_CONTEXT(avctx); int surface_alignment, num_surfaces; frames_ctx->format = sctx->pix_fmt; if (avctx->codec_id == AV_CODEC_ID_MPEG2VIDEO) surface_align...
1threat
How to add info from textbox to SQL : <p>How to insert every line in HTML texbox to new row in MySQL database using PHP.</p>
0debug
static int proxy_lremovexattr(FsContext *ctx, V9fsPath *fs_path, const char *name) { int retval; V9fsString xname; v9fs_string_init(&xname); v9fs_string_sprintf(&xname, "%s", name); retval = v9fs_request(ctx->private, T_LREMOVEXATTR, NULL, "ss", ...
1threat
Removing header column from pandas dataframe : <p>I have the foll. dataframe:</p> <p>df</p> <pre><code> A B 0 23 12 1 21 44 2 98 21 </code></pre> <p>How do I remove the column names <code>A</code> and <code>B</code> from this dataframe? One way might be to write it into a csv file and then read it in speci...
0debug
int ff_lock_avcodec(AVCodecContext *log_ctx, const AVCodec *codec) { _Bool exp = 0; if (codec->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE || !codec->init) return 0; if (lockmgr_cb) { if ((*lockmgr_cb)(&codec_mutex, AV_LOCK_OBTAIN)) return -1; } if (atomic_f...
1threat
Excel VBA: need alphabetical sorting algorithm for block of rows : my data is looking like this: Name #modules module_name etc ... Machine1 3 module1 data module2 data module3 data Machine2 1 module1 data Machine3 2 module1 data ...
0debug
I am writing a C program and getting message 'Segmentation fault (core dumped) ' : <p>The program is to find out the smallest positive number which is not in the array. When I try to test my code, it shows the message 'Segmentation fault (core dumped)'. I am new to program c, are there anyone can help?</p> <pre><code>...
0debug
How to extract text from excel column : [{"task":"Start","started":0},{"task":"security-oauth2-validate","started":27},{"task":"EncryptClientId.xsl","started":31},{"task":"set HTTP Header","started":70},{"task":"switch","started":74},{"task":"validate GetMemberRequest","started":77},{"task":"invoke MBEv2 REST Interface...
0debug
How to debug "webpack.config.js" file? : <p>I want to debug the "webpack.config.js" file, not the application using "devtool: 'source-map'". I want the webpack configuration file to be debuged. Is there any option?</p>
0debug
What is the right command to convert an mp3 file to the required codec version (MPEG version 2) and bit rate (48 kbps) for Amazon Alexa SSML? : <p>I am trying to convert an mp3 file to the format expected by the audio tag in the Amazon Alexa SSML markup language as described here: <a href="https://developer.amazon.com/...
0debug
static int shorten_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ShortenContext *s = avctx->priv_data; int i, input_buf_size = 0; int16_t *samples = data; if(s->max_framesi...
1threat