problem
stringlengths
26
131k
labels
class label
2 classes
Using PHP to split url : <p>I'm trying to split my url and have them in two variables.</p> <p>For Example:</p> <p>url = <a href="https://example.com/page@01" rel="nofollow noreferrer">https://example.com/page@01</a></p> <p>I want to be able split this url into two and create two variable.</p> <pre><code>$part_1 = e...
0debug
Quiz project stuck : My quiz is getting caught and wont pass through on to the next question when the right answer is given. Im very new to Javascript, this is the first thing ive really tried to write. Any help (and explanation) would be massively appreciated! HTML: <!DOCTYPE> <html xmlns="http://www.w3...
0debug
static void test_flush_event_notifier(void) { EventNotifierTestData data = { .n = 0, .active = 10, .auto_set = true }; event_notifier_init(&data.e, false); aio_set_event_notifier(ctx, &data.e, event_ready_cb, event_active_cb); g_assert(aio_poll(ctx, false)); g_assert_cmpint(data.n, ==, 0); ...
1threat
My slider is not working ( please help me ) : Hello everybody I recently tried to add one slider but it not working,PLEASE IF YOU help me I AM OFFERING A REWARD .. THIS IS SLIDER : ht tps://codepen.io/amitasaurus/pen/OMbmPO THIS IS SITE INDEX : ht tps://code pen.io/GARDFIELD3/pen/oBVzLP And look what comes out me ...
0debug
regex sorting from vertical into horizontal : <p>Thank you in advance if you could help me save a huge amount of time.</p> <p>I have tests that look like this:</p> <pre><code>These questions refer to the audio file 001_TOEIC_part3.mp3 1). Where is the conversation taking place? (A) In a church (B) In an office (...
0debug
static void enable_device(PIIX4PMState *s, int slot) { s->ar.gpe.sts[0] |= PIIX4_PCI_HOTPLUG_STATUS; s->pci0_status.up |= (1 << slot); }
1threat
Javascript/Jquery Identify every row in a textdocument : <p>What I need to be able to do is a to identify every row in a textfield or a text-file. So I can print any single row I want. For example push every row into an array (like this [row1][row2][row3]). I have no idea how to do this or if it's even possible. If it ...
0debug
RuntimeError: Expected object of type torch.DoubleTensor but found type torch.FloatTensor for argument #2 'weight' : <p>My input tensor is torch.DoubleTensor type. But I got the RuntimeError below:</p> <pre><code>RuntimeError: Expected object of type torch.DoubleTensor but found type torch.FloatTensor for argument #2 ...
0debug
How to do a javascript array sort based on the count of a character in a string? : I have a couple of strings in an array for example: String 1: "path/to/file" String 2: "path" String 3: "path/to/" String 4: "path2/to/file" String 5: "path2/to/file" String 5: "path2/to" etc... T...
0debug
Spark Data Frame Random Splitting : <p>I have a spark data frame which I want to divide into train, validation and test in the ratio 0.60, 0.20,0.20. </p> <p>I used the following code for the same: </p> <pre><code>def data_split(x): global data_map_var d_map = data_map_var.value data_row = x.asDict() ...
0debug
How to access web api from visual c++ : <p>Does anybody have an idea about how to get data from web api in visual c++? Thanks.</p>
0debug
Android SharedPreference - Please help me improve my method : I want to run another application whose package name is obtained from EditText in AlertDialog. My problem is that I want to display Dialog only when PackageName has not been specified or when the application is not available. Here is my code: public s...
0debug
static uint32_t virtio_net_bad_features(VirtIODevice *vdev) { uint32_t features = 0; features |= (1 << VIRTIO_NET_F_MAC); features |= (1 << VIRTIO_NET_F_GUEST_CSUM); features |= (1 << VIRTIO_NET_F_GUEST_TSO4); features |= (1 << VIRTIO_NET_F_GUEST_TSO6); features |= (1 << VIRTIO_...
1threat
How to send hidden info to database : <p>so I have a Dropbox and I have 3 selections. </p> <pre><code>car boat plane </code></pre> <p>The value of each one is an image which sends to the database, and reads correctly, by displaying the image of their choice on my page. However, I would like to insert into the databas...
0debug
I don't know how to fix the error. [Lines 207 to 219] : // ZakAttack.cpp--A program for calculating student grades and // displaying the overall GPA // Shaheen Fathima Abdul Jamal Nazar, CISP 360 // Instructor: Professor Fowler // Date: 04/27/2018 #include <iomanip> #include <ios...
0debug
Trick to loop/autorefresh docker ps view like top/htop in bash : <p>Is it possible - and if yes, how - to have a self-refreshing view of current Docker containers printed by "docker ps" alike top/htop utilities?</p>
0debug
how to get frame rate of video in android os? : <p>I want to get frame rate of video, but i don't want to use FFMPEG,JAVACV lib. is that possible to get frame rate of video in android?</p> <p>I read <a href="https://developer.android.com/reference/android/media/MediaFormat.html#KEY_FRAME_RATE" rel="noreferrer">KEY_FRA...
0debug
BottomNavigationView - How to get selected menu item? : <p>I used BottomNavigationView to switch fragments. How to get currently selected menu item, to prevent reopening fragment ? </p> <pre><code> BottomNavigationView bottomNavigationView = (BottomNavigationView) findViewById(R.id.bottom_naviga...
0debug
Is it possible to embed a clickable url into certain part of a image? : <p>For example i have a jpeg image of a man standing on a table. I want to insert a clickable url to his shirt and also the table which he is standing. Is it possible to do?</p>
0debug
why the "?>" tag won't close the php part? : <p>So I was writing some PHP scripts and also some HTML codes but this was what happened:</p> <pre><code>&lt;?php /* some php scripts */ $q = "SELECT * FROM users WHERE id='1' AND username='test' AND pass='123'; /* the last line of php */ ?&gt; </code></pre> <p>this was th...
0debug
Chrome debugger doesn't show Fetch requests : <p>I don't see my <a href="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch" rel="noreferrer">Fetch</a> AJAX data requests in the Chrome debugger? Where are they?</p>
0debug
Erro pattern output : I have a shell script which writes sqlplus errors to a log with the following output. I only want to capture @DB with errors and redirect to output to a error log. any tips? : @DB_1 ERROR-123 ORA-123 @DB_2 @DB_3 @DB_4 ERROR-2222 ORA-3333 thx.
0debug
What is the simplest way to make a button press to start a method repeatedly (infinite time) in JavaFX? : <p>It would be nice, if I could use a simple timer (seconds or milliseconds) for the repeated method invocation. </p> <p>If it is possible, I would use another button to stop this method if necessary.</p> <pre><...
0debug
LATEST RECORD AND SUM SQL : I'm looking for solution for this problem. Kindly need anyone help. Thanks. Table: [table set][1] i want this output (show latest tier based on maximum transaction id) [output][2] [1]: https://i.stack.imgur.com/76lYu.jpg [2]: https://i.stack.imgur.com/NqhwO.jpg Thanks...
0debug
Divide by zero and no error? : <p>Just threw together a simple test, not for any particular reason other than I like to try to have tests for all my methods even though this one is quite straightforward, or so I thought.</p> <pre><code> [TestMethod] public void Test_GetToolRating() { var rating = Ge...
0debug
static void dca_exss_parse_header(DCAContext *s) { int asset_size[8]; int ss_index; int blownup; int num_audiop = 1; int num_assets = 1; int active_ss_mask[8]; int i, j; int start_posn; int hdrsize; uint32_t mkr; if (get_bits_left(&s->gb) < 52) return; start_posn ...
1threat
How to increase icon size in android bottom navigation layout? : <p>I am using the bottom layout navigation style in android that was recently introduced by google in design library 25. In all the tutorials and questions i see, the images in their icons are a normal size, but mine are extra small, despite the fact that...
0debug
Object has no attribute '.__dict__' in python3 : <p>I have a test that passes in Python2 and fails in Python3, I'm trying to find out why. The test fails at the following line:</p> <pre><code>self._timeseries[0].resource.__dict__ </code></pre> <p>With the error:</p> <pre><code>AttributeError: 'Resource' object has n...
0debug
How to replace and matches a specific String with input string : <p>My database table column contains several Strings like below mentioned:</p> <pre><code>--------------------------- id | string | --------------------------- 1 | I love C# Code | --------------------------- 2 | I love Java Code...
0debug
void error_set_field(Error *err, const char *field, const char *value) { QDict *dict = qdict_get_qdict(err->obj, "data"); return qdict_put(dict, field, qstring_from_str(value)); }
1threat
OOP concepts abstraction and encapsulation : <p>I am learning about OOP and I was wondering about abstraction and encapsulation. Would it be correct to say that abstraction is to chose what information to show and encapsulation is the way it is achieved? If I said this in an interview would it be a correct way to expl...
0debug
How to make round corners for image with percent icon? : How to make round corners for image with percent icon? I try to use negative margin for imageView but is not works. Thx. <LinearLayout android:gravity="center_vertical" android:layout_marginTop="15dp" ...
0debug
so I need to pick the cube vaules between 1 and 100 : cubos = [valor**3 for valor in range(1,101)]#creates a list the cubes from 1 to 100 for cubo in cubos:#loop and create the internal values if cubo >= 100:#pick the values bigger then 100 del cubo #delete them print (cubos)#print the values lower then 100
0debug
Divide by zero error input into tkinter message for a calculator : I built a calculator in python and it works, except that if someone tries to a number divided by zero, they don't receive an "Invalid Syntax!" error in the calculator input. How could I make it so the message "Invalid Syntax!" shows in the calculator in...
0debug
How to create smooth transition (animation) of layouts : <p>I have designed my app for both Android and iOS. Now I need to create smooth transitions like in this app. <a href="https://www.youtube.com/watch?v=gFUQ182HT0g" rel="nofollow noreferrer">Video of app</a> .I need it for both devices. Can anyone link me some tut...
0debug
to write a python code that that takes a positive integer argument and returns True if the integer is square free, and False otherwise : enter code here def squarefree(n): for i in range (2,n-1): if n%(i**2)==0: return False else: return True
0debug
void DMA_run (void) { }
1threat
Select areas of an image with Jquery : <p>I started a web application with C# and mvc5.</p> <p>In my application I read images from database and show them in an image slider.</p> <p>I want to add a button to the page and when user click on this button User can click on one area of image and I save this x and y of are...
0debug
Determine months with 5 or more Sundays using Calendar module in Python? : <p>I need to write a code to find which month in a year 2018 for example has 5 or more Sundays? I want to use calendar module in Python and save the resulting months in abbreviated form. I saw documentation for calendar module but couldnt figure...
0debug
OpenGL shader error with wxwidgets : I'm writing an openGL program using the wxWidgets library, I have it mostly working, but I am getting shader compilation errors due to bad characters being inserted (I think), only I can't find where the characters are or what is causing them. The error is : error 0(1) : erro...
0debug
Write the SQL code that will list Physician-Person appointments only ONCE. : This one is confusing me? This is what I have so far : <code>SELECT DISTINCT Appointment_date_time FROM Appointment INNER JOIN Person ON Appointment.Person_ID = Person.Person_ID INNER JOIN Physician ON Physician.Physician_ID = P...
0debug
Reverse iterator returns garbage when optimized : <p>I have a <code>AsIterator</code> template class which takes a numeric-like type, in this example just an <code>int</code>, and converts it into an iterator (<code>++</code> and <code>--</code> increment and decrement the number, and <code>operator*</code> just return...
0debug
How to fix 'Uncaught ReferenceError: $ is not defined' : <p>This is for a navigation header and it works, but I still get an error on line 2. VM4582 header.js:2 Uncaught ReferenceError: $ is not defined I don't understand why it says $(window) is not defined.</p> <pre><code>// Sticky Header $(window).scroll(function(...
0debug
loop through arguments, setting as object properties : <p>I have defined a class which uses a constructor that's meant to allow any number of a set of properties be attributed:</p> <pre><code>class CalendarEvent: """Represents a macOS calendar event.""" def __init__(self, **keyword_arguments): self.__a...
0debug
Prevent program from getting terminated after exception handling : <p>Is there anyway to handle the exceptions in Java and prevent the program from getting terminated? For instance when the user enters an invalid number into a calculator, zero in this example for division in the denominator, I don't want the program to...
0debug
Sample program for GDbus signals : <p>I am new to GDbus programming. I need to implement a simple Dbus send-receive message (Signals) using Dbus Glib. I tried to google some sample programs, but couldn't find.</p> <p>Can anyone post any such sample program or point me to some sample program tutorial?</p> <p>Thanks in...
0debug
With binomial prediction where the output is either 1 or 0 the h2o based randomforest predict model build on java pojo always returns 1. : With binomial prediction where the output is either 1 or 0 the h2o based randomforest predict model build on java pojo always returns 1?
0debug
doing many to many join in oracle : I have these tables in oracle TABLE A ID GROUP NUMBER1 1 CAT1 0.4 2 CAT2 0.5 TABLE B ID VALUE1 VALUE2 1 5 9 1 6 10 2 7 11 2 8 12 TABLE C ID NUM1 NUM2 1 1...
0debug
What is the best approach database structure for teacher, students and address table? : <p>I have the following tables in my database</p> <ul> <li>students</li> <li>teachers </li> <li>address</li> </ul> <p>I Want to store basic information about students and teacher in its own table, but the address and contact infor...
0debug
a document (a buffer of ASCII bytes) which has the CRC32 hash (the gzip variant of CRC32), of 0xbbd1264f : <p>so i had a homework to get a document (a buffer of ASCII bytes) which has the CRC32 hash (the gzip variant of CRC32), of 0xbbd1264f and unti now i don't know how to get it so if someone know how to do that plea...
0debug
WampServer - mysqld.exe can't start because MSVCR120.dll is missing : <p>I've tried to run wampserver on my local side, but mysql server doesn't run. when I try to <strong>install service</strong>, it give me error. I searched the answer all day and found some answers on here and there.</p> <p>but any solution doesn'...
0debug
variable in C# SQL Query not working : So I have a loop in which I grab certain ID's to make a call in a database. There are 2 variable within the query. The first one works fine but the second one returns nothing. I have tested it a lot and know that the correct value is coming through to the query. Not sure what I am...
0debug
How to delete or replace ´ in JavaScript? : <p>I get this string</p> <pre><code>var cadena = "I´m from Mexico" </code></pre> <p>And need replace or delete ´ </p> <pre><code>var cadena = "Im from Mexico " </code></pre>
0debug
Is there a comprehensive list of all Linq Statements? : <p>I would like to have a list of all Linq Staments (Methods and Queryies) I have googled for a while but with no results. So is there a list with all LinQ statements somewhere? It doesn't even need explanations, just all the features listed.</p>
0debug
int target_to_host_signal(int sig) { if (sig >= _NSIG) return sig; return target_to_host_signal_table[sig]; }
1threat
void MPV_common_init_altivec(MpegEncContext *s) { if (s->avctx->lowres==0) { if ((s->avctx->idct_algo == FF_IDCT_AUTO) || (s->avctx->idct_algo == FF_IDCT_ALTIVEC)) { s->dsp.idct_put = idct_put_altivec; s->dsp.idct_add = idct_add_altivec; s->dsp...
1threat
How to pull with rebase by default in IntelliJ Idea? : <p>By company policy, all pulls unless agreed with tech lead must be done with rebase rather than merge.</p> <p>I use Eclipse and successfully set the default pull mode to rebase to all my branches (despite Eclipse suggests merge as default mode).</p> <p>My deskm...
0debug
Global and Ambient Dependencies - typings : <p>I am really confused between the ambient and global dependencies. I understood the concept of global dependencies, which means that installing the dependencies globally. But coming to ambient dependencies, I did not understand what it is and now typings recently declared t...
0debug
static av_noinline void FUNC(hl_decode_mb)(H264Context *h, H264SliceContext *sl) { const int mb_x = h->mb_x; const int mb_y = h->mb_y; const int mb_xy = h->mb_xy; const int mb_type = h->cur_pic.mb_type[mb_xy]; uint8_t *dest_y, *dest_cb, *dest_cr; int linesize, uvlinesize ; in...
1threat
static int proxy_lstat(FsContext *fs_ctx, V9fsPath *fs_path, struct stat *stbuf) { int retval; retval = v9fs_request(fs_ctx->private, T_LSTAT, stbuf, "s", fs_path); if (retval < 0) { errno = -retval; return -1; } return retval; }
1threat
difference between 'global varName' and 'self.varName' in python : <p>what is the use of writing 'global varName' in the body of constructor ? I mean we can achive the same goal by writting 'self.varName' ? For Example</p> <pre><code>class Mine_Global: def __init__(self): global varName varName = ...
0debug
static void iothread_complete(UserCreatable *obj, Error **errp) { IOThread *iothread = IOTHREAD(obj); iothread->stopping = false; iothread->ctx = aio_context_new(); iothread->thread_id = -1; qemu_mutex_init(&iothread->init_done_lock); qemu_cond_init(&iothread->init_done_cond); ...
1threat
Cordova / Ionic build android Gradle error: Minimum supported Gradle version is 2.14.1. Current version is 2.13 : <p>This is a solution to the above error that I want to document. I found other similar posts, but none described how this error can be associated with Cordova or Ionic.</p> <p>If you are not careful, the...
0debug
confused with babel preset configs between @babel/env and @babel/preset-env : <p>I try to config a environment to develop javascript with babel and webpack.</p> <p>But I don't understand babel configuration about <code>presets</code>.</p> <p>In <a href="https://babeljs.io/docs/en/usage" rel="noreferrer">Usage Guide</...
0debug
Dart MD5 From String : <p>How to generate md5 hash from string?</p> <pre><code>import 'package:crypto/crypto.dart' as crypto; ///Generate MD5 hash generateMd5(String data) { var content = UTF8.encode(data); var md5 = crypto.md5; } </code></pre> <p>I have no idea what next to do</p>
0debug
static int bdrv_check_request(BlockDriverState *bs, int64_t sector_num, int nb_sectors) { return bdrv_check_byte_request(bs, sector_num * BDRV_SECTOR_SIZE, nb_sectors * BDRV_SECTOR_SIZE);
1threat
Why won't my C code compile? : <p>I'm running "gcc foo.c"</p> <p>foo.c:</p> <pre><code>#include "foo.h" FILE* foo(char* fileName) { ... } </code></pre> <p>foo.h:</p> <pre><code>#ifndef FOO_H #def FOO_H #include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; FILE* foo(char* fileName); #endif </code></pre> <p>The erro...
0debug
static int protocol_client_vencrypt_init(VncState *vs, uint8_t *data, size_t len) { if (data[0] != 0 || data[1] != 2) { VNC_DEBUG("Unsupported VeNCrypt protocol %d.%d\n", (int)data[0], (int)data[1]); vnc_write_u8(vs, 1); vnc_flush(vs); vnc_client_error(vs); } els...
1threat
asp.net web form client with identity server 4 : <p>I have a asp.net solution which consists of</p> <pre><code>1). asp.net identity server rc 3 2). asp.net Core web api 3). asp.net webform ( not in asp.net core, client) </code></pre> <p>I don't see any sample with identity server 4 and web form client. Can you please...
0debug
static int filter_frame(AVFilterLink *inlink, AVFrame *insamples) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; ShowCQTContext *s = ctx->priv; int remaining, step, ret, x, i, j, m; float *audio_data; AVFrame *out = NULL; if (!insamples) { w...
1threat
Having some problems : so I have some problems with my dictionaries in python. For example I have dictionary d1 = {123456:xyz, 892019:kjl, 102930491:{[plm,kop]} d2= {xyz:987, kjl: 0902, plm: 019240, kop:09829} And I would like to have nested dictionary that looks something like that. d={123456 :{xyz:987}, 8...
0debug
How to use new c# 8.0 features in Razor views : <p>I've updated my ASP.NET Mvc 5 web application to use the new c# 8.0 features through Visual Studio 2019 and everything works fine until I try to use these new features inside a Razor view.</p> <p>For example, if I try to use the new switch expression:</p> <pre class=...
0debug
void qpci_device_foreach(QPCIBus *bus, int vendor_id, int device_id, void (*func)(QPCIDevice *dev, int devfn, void *data), void *data) { int slot; for (slot = 0; slot < 32; slot++) { int fn; for (fn = 0; fn < 8; fn++) { QP...
1threat
the receiving end does not support push options : <p>At first my server's git version was 2.7.4 and the error was accurate. Afterwards, however, I updated and have confirmed this with git version:</p> <p>Server</p> <pre><code>$ git --version git version 2.13.0 </code></pre> <p>Client</p> <pre><code>$ git --versio...
0debug
static void set_next_tick(rc4030State *s) { qemu_irq_lower(s->timer_irq); uint32_t hz; hz = 1000 / (s->itr + 1); qemu_mod_timer(s->periodic_timer, qemu_get_clock(vm_clock) + ticks_per_sec / hz); }
1threat
ubuntu-16.10 unable to locate package : <p>I have recently setup Ubuntu 16.10 and am trying to install PuTTY but keep getting an 'E: Unable to locate package putty' error. I have run both 'sudo apt-get update' and 'sudo apt-get upgrade'. Both complete with success. I have verified that 'main', 'universe', 'restricted',...
0debug
C++ Random doubles from -1 to 1 : <p>I need to randomly generate numbers (using random()) from -1 to 1 that are doubles. For example the output would be something like:</p> <p>1, -0.3324, 0.7821, 0.9823, -0.111</p> <p>etc... this is what I was trying to do <code>walk_Length = (double)rand()%2 - 1;</code></p>
0debug
c# is there a better or more efficient way of displaying database entries to textboxes? : foreach (DataRow dr in ds.Tables["Login"].Rows) { textBox1.Text = dr["Id"].ToString(); textBox2.Text = dr["username"].ToString(); textBox3.Text = dr["u_password"].ToString(); ...
0debug
What is the name of the code? : Does somebody know about the following code D00077B4-EBFB-4BD8-9E3F-1F3943CBCE35 How to generate the code like this using Java program and What can we use to generate the code like the above mentioned using programming language?
0debug
Rendering dynamic HTML dropdown client-side VS server-side? : I always find it difficult to decide if I should render my HTML server-side or client-side. Let's say I want to render a dynamic HTML dropdown with following requirements: - Shows records from a database table at page load - Must stay up-to-date (us...
0debug
Building one web project breaks the compiled version of the second in solution : <p>I have a big solution with 30 projects of which 2 are web projects (MVC and WebAPI) with a bunch of background class library projects.</p> <p>I have visual studio set up to host the web projects in IIS.</p> <p>If I do a clean build, f...
0debug
static uint32_t nam_readb (void *opaque, uint32_t addr) { PCIAC97LinkState *d = opaque; AC97LinkState *s = &d->ac97; dolog ("U nam readb %#x\n", addr); s->cas = 0; return ~0U; }
1threat
static void free_picture(MpegEncContext *s, Picture *pic){ int i; if(pic->data[0] && pic->type!=FF_BUFFER_TYPE_SHARED){ free_frame_buffer(s, pic); } av_freep(&pic->mb_var); av_freep(&pic->mc_mb_var); av_freep(&pic->mb_mean); av_freep(&pic->mbskip_table); av_freep(&pi...
1threat
void syscall_init(void) { IOCTLEntry *ie; const argtype *arg_type; int size; int i; #define STRUCT(name, ...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def); #define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def); #include "sys...
1threat
React-Native cannot write first letter with noncapital : <p>I have some trouble with react-native. I have an Input component(like textfield) for user to enter his email address, but the thing is that, first letter always comes as capital letter default and it is impossible to make it non-capital. How can I change it li...
0debug
static int vnc_display_get_addresses(QemuOpts *opts, bool reverse, SocketAddress ***retsaddr, size_t *retnsaddr, SocketAddress ***retwsaddr, ...
1threat
type parameter `U` of call of method `then`. Missing annotation : <p>I have an object which might contain a promise property declared thus:</p> <pre><code>type PromiseAction = { +type: string, promise: ?Promise&lt;any&gt;, }; </code></pre> <p>The <code>action</code> argument to a function is declared to be of typ...
0debug
RxJS observable which emits both previous and current value starting from first emission : <p>I have a <a href="http://reactivex.io/rxjs/manual/overview.html#behaviorsubject" rel="noreferrer">BehaviorSubject</a> which emits JavaScript objects periodically. I want to construct another observable which will emit both pre...
0debug
static av_cold int v4l2_decode_init(AVCodecContext *avctx) { V4L2m2mContext *s = avctx->priv_data; V4L2Context *capture = &s->capture; V4L2Context *output = &s->output; int ret; output->height = capture->height = avctx->coded_height; output->width = capture->width = avctx->c...
1threat
"pod init" giving error "-bash: pod: command not found" : <p>I am trying to create a Podfile for my Xcode project for Firebase compatibility, but when I try to create it within the same file that my Xcode project is stored in, using my terminal and typing "pod init", it throws the error "-bash: pod: command not found"....
0debug
How i can make an array of the five most popular elements in an another array? : `int[] a ={1, 2, 5, 2, 4, 6, 8, 9, 1, 19}; int[] fiveMostPopular = new int[5]; for(int i=0; i<5;i++){ System.out.println(fiveMostPopular[i]); }`
0debug
Displayb the node value of given xml in proper format as mentioned with thier tag : <!DOCTYPE html> <html> <body> <p>I am normal</p> <p style="color:red;">I am<b> r<i>e</i>d</b></p> <p style="color:blue;">I am <b>blue</b></p> <p><b>I am <i>big</i></b></p> </body> </html>
0debug
CSS center div with <p> to parent div, vertically and horizontally : <p>I have the following HTML/CSS where I try to center a <code>div</code> with some <code>&lt;p&gt;</code> to their parent <code>div</code> wrapper. I tried to use the well known <code>translate(-50%, -50%)</code> solution, but it does not work. I als...
0debug
int spapr_ovec_populate_dt(void *fdt, int fdt_offset, sPAPROptionVector *ov, const char *name) { uint8_t vec[OV_MAXBYTES + 1]; uint16_t vec_len; unsigned long lastbit; int i; g_assert(ov); lastbit = find_last_bit(ov->bitmap, OV_MAXBITS); ve...
1threat
Why is only one table row updated? (MySQL & PHP) : I'm trying to update the `rank` column in the `users` table in MySQL using PHP, but when i try to change the values and press the `update` button, **only the last one** of the table rows is actually being updated. [Here][1] is an image of what the PHP table looks like ...
0debug
ssize_t nbd_send_request(QIOChannel *ioc, NBDRequest *request) { uint8_t buf[NBD_REQUEST_SIZE]; TRACE("Sending request to server: " "{ .from = %" PRIu64", .len = %" PRIu32 ", .handle = %" PRIu64 ", .flags = %" PRIx16 ", .type = %" PRIu16 " }", request->from, request->len, r...
1threat
static int config_props(AVFilterLink *outlink) { AVFilterContext *ctx = outlink->src; AVFilterLink *inlink = outlink->src->inputs[0]; ScaleContext *scale = ctx->priv; int64_t w, h; double var_values[VARS_NB], res; char *expr; int ret; var_values[VAR_PI] = M_PI; var_val...
1threat
Laravel Distinct Count : <p>Any way to make this query work using laravel? DB::raw or Eloquent usage doesn't matter.</p> <pre><code>SELECT count(DISTINCT name) FROM tablename; </code></pre> <p>Here's what i've tried but cannot get the proper output:</p> <pre><code>EloquentTableName::select(DB::raw('count(DISTINCT na...
0debug
static int y41p_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *pic = data; uint8_t *src = avpkt->data; uint8_t *y, *u, *v; int i, j, ret; if (avpkt->size < 3LL * avctx->height * avctx->width / 2) { av_log(avc...
1threat
React Navigation - navigating to another tab and reset stack : <p>I'm trying to route from one StackNavigator to another, both of which are inside a TabNavigator. I'm currently able to get there by simply doing:</p> <pre><code>this.props.navigation.navigate('Screen3') </code></pre> <p>But I also want to reset that ta...
0debug