problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
what shebang to use for python scripts run under a pyenv virtualenv : <p>When a python script is supposed to be run from a <code>pyenv</code> <code>virtualenv</code> what is the correct shebang for the file?</p>
<p>As an example test case, the default python on my system (OSX) does not have <code>pandas</code> install... | 0debug |
I am getting error when open new activity on button click android studio : <p>i created one android project . i tried to open new activity. but i got error.</p>
<p>my code:</p>
<pre><code> <Button
android:text="Button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android... | 0debug |
R 3.4.1 Console Interface Very Slow on Mac : <p>I have upgraded R from 3.3.3 to 3.4.1 and am finding that typing text directly into the R Console quickly becomes very laggy, even when R isn't using a lot of resources. I have observed this behavior running the last couple versions of macos sierra (10.12.6, etc.).</p>
<... | 0debug |
How can I add 20px margin only to divs on the left hand side (flex) : <p>The divs are using flex & flex-wrap, and I only want to apply margin-right to the divs on the left hand side as when clicked the border is pushed up against the divs on the right hand side. Any ideas how to achieve this?</p>
<p><a href="https... | 0debug |
static void v9fs_wstat(void *opaque)
{
int32_t fid;
int err = 0;
int16_t unused;
V9fsStat v9stat;
size_t offset = 7;
struct stat stbuf;
V9fsFidState *fidp;
V9fsPDU *pdu = opaque;
V9fsState *s = pdu->s;
pdu_unmarshal(pdu, offset, "dwS", &fid, &unused, &v9stat);
t... | 1threat |
How to split data into training and validation in R? : <p>The question says:</p>
<p>Load the data and split it into 75% training and 25% validation data using set.seed(4650).</p>
<p>this is what I have:</p>
<pre><code>setwd("C:/Users/Downloads")
cat = read.csv("cat.csv")
set.seed(4650)
train = sample(c(TRUE, TRUE, T... | 0debug |
Last ID inserted with c# and Microsoft Access : <p>How to have last ID inserted? I need new ID for child table.
Thanks.</p>
| 0debug |
How can I parse a string of an array into an array? : <pre><code>{scenarios: "[{purchasePrice:11,downPayment:1,term:30,rate:1}]"}
</code></pre>
<p>That's my object. I want to turn the value of scenarios into the array its trying to be from the string it is. </p>
<p>Is there a quick tool so I don't have to hack it tog... | 0debug |
Why do ajax returns a TypeError undefined error if it calls a function on success? : <p>Im trying to get the contents of a json file from my localhost and display it on my page, i made a custom function <code>displayProfile</code> that is called inside the <code>success</code> whenever the file exist on the directory. ... | 0debug |
How to make code? : <p>I have 3 data.</p>
<pre><code>code2 data : code data(ex:a1,b1,c1)
field data : field data(ex:a2,b2,c2)
file data: row data
</code></pre>
<p>row data format is next line</p>
<pre><code>field1|field2|field3
a1 |a2 |value1
a1 |b2 |value2
a1 |c2 |value3
b1 |a2 |value4
b1 ... | 0debug |
static void print_type_size(Visitor *v, const char *name, uint64_t *obj,
Error **errp)
{
StringOutputVisitor *sov = to_sov(v);
static const char suffixes[] = { 'B', 'K', 'M', 'G', 'T', 'P', 'E' };
uint64_t div, val;
char *out;
int i;
if (!sov->human) {
... | 1threat |
How to resolve ' error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.'? : <p>I am importing a .js file (so not a .ts-file) called Auth.js into my reactjs&typescript application, so in my component I have this:</p>
<pre><code>import * as Auth from '../Auth/Auth';
..
cons... | 0debug |
Error: Initializer 'init(_:)' requires that 'Binding<String>' conform to 'StringProtocol' : <p>I am getting the above error and couldn't figure out how to solve it. I have an array of objects that contain a boolean value, and need to show a toggle for each of these boolean.</p>
<p>Below is the code.</p>
<pre><code>cl... | 0debug |
static int64_t coroutine_fn cow_co_get_block_status(BlockDriverState *bs,
int64_t sector_num, int nb_sectors, int *num_same)
{
BDRVCowState *s = bs->opaque;
int ret = cow_co_is_allocated(bs, sector_num, nb_sectors, num_same);
int64_t offset = s->cow_sectors_offset + (sector_num << BDRV_SECTOR_B... | 1threat |
Why am I having Invalid Syntax? : Why am I having Invalid Syntax, please don't be mad at me if I am so stupid thanks
`import os
gateway = raw_input("What is your gateway IP: ")
target = raw_input("What is your target IP: ")
interface = raw_input("What is your network interface: ")
o... | 0debug |
Reading integers from a text file containing integers and strings : So here is my code and the only options I have in the chapter we are on are the while (!scan.hasNextInt()). This is my code and it works until I try to read a file with strings. The file looks like this:
1
2
John
3
4
Black
5
Jason
7
8
I... | 0debug |
Interval calculation in Python : <p>I am writing a program where I need to calculate the total watch time of a movie.</p>
<pre><code>1st watch = (0,10)
2nd Watch =(13,18)
3rd watch =(15,23)
4th watch =(21,26)
</code></pre>
<p>Total movie watched=10+5+5+3=23 min</p>
<p>How can I implement this in Python</p>
| 0debug |
Can anyone help me how to pass multiple values to a popup form through button ??like : <button class="btn btn-success edit-company" data-id="{{ $cp->companyId }}" data-name="{{ $cp->companyName }}" data-nature="{{ $cp->businessNature }}" data-address="{{ $cp->companyAddress }}" data-zip="{{ $cp->companyZipcode }}" data... | 0debug |
static void create_gic(VirtBoardInfo *vbi, qemu_irq *pic, int type, bool secure)
{
DeviceState *gicdev;
SysBusDevice *gicbusdev;
const char *gictype;
int i;
gictype = (type == 3) ? gicv3_class_name() : gic_class_name();
gicdev = qdev_create(NULL, gictype);
qdev_prop_set_uin... | 1threat |
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in : <p>I have this problem with short php code I am using in to get suggestions for JQuery autocomplete. I have tried many things but I am unable to find solution:</p>
<pre><code>//connect to your database
<?php require('Connections/co... | 0debug |
generate reports on agent per environment in UDeploy : We have a requirement to generate reports on agents per application /Environment in UDeploy
Do we have an API from Udeploy for this ?
Do we have any way to do this ?
you help is much appreciated
| 0debug |
SQL skip a number in sequence of numbers generated using connect by : Select Rownum From dual Connect By Rownum <= '4' ;
Am using this SQL to list numbers from 1 to 4.
i want to list 1 to 4 skipping 3. so that the result looks like
1
2
4
Kindly help | 0debug |
bool memory_region_get_dirty(MemoryRegion *mr, hwaddr addr,
hwaddr size, unsigned client)
{
assert(mr->terminates);
return cpu_physical_memory_get_dirty(mr->ram_addr + addr, size, client);
}
| 1threat |
void kvmppc_set_papr(CPUPPCState *env)
{
struct kvm_enable_cap cap = {};
struct kvm_one_reg reg = {};
struct kvm_sregs sregs = {};
int ret;
uint64_t hior = env->spr[SPR_HIOR];
cap.cap = KVM_CAP_PPC_PAPR;
ret = kvm_vcpu_ioctl(env, KVM_ENABLE_CAP, &cap);
if (ret) {
go... | 1threat |
Angular 7, IE11 throw Expected identifier SCRIPT1010 on vendor.js in WEBPACK VAR INJECTION : I have issue with Expected identifier ERROR code: SCRIPT1010 which points on vendor.js in WEBPACK VAR INJECTION section. Debugger points on line with:
const { keccak256, keccak256s } = __webpack_require__(/*! ./hash */ ... | 0debug |
I am trying to connect twitter API from angularJS i am not able to. can anyone please help me on this : how to connect twitter api from angularJS.
$http.get('https://api.twitter.com/1.1/search/tweets.json).then(function(data){
$scope.data = data;
},
function(error){
}); | 0debug |
Adding Google Analytics to React : <p>I am trying to add Google Analytics to a React Web Application.</p>
<p>I know how to do it in HTML/CSS/JS sites and I have integrated it in an AngularJS app too. But, I'm not quite sure how to go about it when it comes to react.</p>
<p>With HTML/CSS/JS, I had just added it to eve... | 0debug |
Python Restful API : <p>I have written a python script that will connect to the oracle database using cx_oracle and gets data and performs some action on it. </p>
<p>I want to expose this python script as a Restful API. In google, I read that using flask we can deploy a Python script as a Web service.</p>
<p>What I a... | 0debug |
static void extrapolate_isf(float out[LP_ORDER_16k], float isf[LP_ORDER])
{
float diff_isf[LP_ORDER - 2], diff_mean;
float *diff_hi = diff_isf - LP_ORDER + 1;
float corr_lag[3];
float est, scale;
int i, i_max_corr;
memcpy(out, isf, (LP_ORDER - 1) * sizeof(float));
out[LP_ORDER_16k... | 1threat |
Azure web app service time zone change issue : <p>We are using azure web app service for multi tenant application. But default time zone of app service is UTC taking i want to change that time zone for that region only.</p>
<p>I have tried WEB_TIMEZONE variable in app setting but not working.</p>
| 0debug |
private arguments not saving things help c++ : main.cpp
#include <iostream>
#include <string>
#include <vector>
#include "Figuras.h"
using namespace std;
void error(){
cout<<"algo ha ido mal vuelve a empezar"<<endl;
exit(0);
}
int main(){
... | 0debug |
Visual Studio (2017) - How do you separate integers into two separate variables? : I encountered a problem with my code. I made a program which asks the user(s) to enter a 'number of days' which is then separated into weeks and remainder of days.
Here is the code I've written so far (please click the link because I ... | 0debug |
Date picker card for Facebook Messenger bot : <p>I know that there are various CTA cards that Facebook bot can use as seen <a href="https://developers.facebook.com/blog/post/2016/04/12/bots-for-messenger/" rel="noreferrer">here</a>.</p>
<p>What I really need is a datepicker card that can be sent to the user where they... | 0debug |
Python making list of lists from list : <p>My code now: <code>random_lst = [1,2,3,4,5,6,7,8,9]</code></p>
<p>What's practical way in Python to make list of lists from list?</p>
<p>My goal: <code>[[1,2,3],[4,5,6],[7,8,9]]</code></p>
| 0debug |
static int vpx_decode(AVCodecContext *avctx,
void *data, int *got_frame, AVPacket *avpkt)
{
VPxContext *ctx = avctx->priv_data;
AVFrame *picture = data;
const void *iter = NULL;
const void *iter_alpha = NULL;
struct vpx_image *img, *img_alpha;
int ret;
uint8_t *side_dat... | 1threat |
Eight Queens Python - Kattis : Attempting the Eight Queens problem in python (https://open.kattis.com/problems/8queens).
I've written some code which works for all input I've been able to imagine for the last hour - but the program still fails the Kattis test cases.
This is the code:
https://paste.ofcode.org/9... | 0debug |
In Android How do I change colour of status bar transparent as shown in bellow photograph : <p><a href="https://i.stack.imgur.com/Y9rDh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y9rDh.png" alt="This is a image of Android home screen."></a></p>
<p>Can I change status bar colour like this in my ... | 0debug |
static void rtsp_cmd_setup(HTTPContext *c, const char *url,
RTSPHeader *h)
{
FFStream *stream;
int stream_index, port;
char buf[1024];
char path1[1024];
const char *path;
HTTPContext *rtp_c;
RTSPTransportField *th;
struct sockaddr_in dest_addr;
R... | 1threat |
Pandas reset inner level of MultiIndex : <p>I have a DF in the following format:</p>
<pre><code> col1 col2
ID Date
1 1993-12-31 4 6
1994-12-31 8 5
1995-12-31 4 7
1996-12-31 3 3
2 2000-12-31 7 8
2001-12-... | 0debug |
Do i need an iphone to build in xcode and upload to appstore? : I'm building a unity game ready to be uploaded to appstore. Xcode gives me this error.
[image][1]
I do not have an iphone.
So the question is: do i need an iphone to build in xcode and upload to appstore?
Is there other way around this?
Thanks.
... | 0debug |
How do I make a reset button for a simple xcode application? : I am making my first non "hello World app". I have a very simple application that I am making. My app has a date field, some input fields, some switches and a text view. I want to make a reset button that will put the app back to how it was when you first o... | 0debug |
void vnc_init_state(VncState *vs)
{
vs->initialized = true;
VncDisplay *vd = vs->vd;
bool first_client = QTAILQ_EMPTY(&vd->clients);
vs->last_x = -1;
vs->last_y = -1;
vs->as.freq = 44100;
vs->as.nchannels = 2;
vs->as.fmt = AUD_FMT_S16;
vs->as.endianness = 0;
qemu... | 1threat |
Javascript if a<x<b and c<y<d and x>y return value : ----------
Can some one explain if this is correct in javascript?
Or how to achieve that?
X - constant imput
y - constant imput
X>Y
if a<x<b and c<y<d and x>y return value
Option 1: if(100=<x=<500 && 1=<y=<7) return 5;
or
Option 2: if(100<=x... | 0debug |
compile a java program in serverside and display the output in client side : <p>I have a website,my problem is how to run and compile a java program in server side and display the output or error in client side</p>
| 0debug |
How to remove the default CRA react favicon? : <p>I already remove the link in the head tag and still the favicon gets rendered, is there anyway this can be remove or change?</p>
| 0debug |
How to manually add a path to be resolved in eslintrc : <p>I have a folder in my project <code>main</code> that I am resolving like a module. For instance <code>import x from 'main/src'</code> imports <code>main/src/index.js</code>. This is done through webpack's resolve alias configuration.</p>
<p>An issue I am havin... | 0debug |
Is Comment consider as a token? : Usually we consider Identifiers, keywords, separators, operators and literals as token. Can we also consider comment as a token. | 0debug |
void ff_jpeg2000_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
{
int reslevelno, bandno, precno;
for (reslevelno = 0;
comp->reslevel && reslevelno < codsty->nreslevels;
reslevelno++) {
Jpeg2000ResLevel *reslevel;
if (!comp->reslevel)
contin... | 1threat |
Object with ID '203618703567212' does not exist, cannot be loaded due to missing permissions, or does not support this operation : <p>After the facebook have updated the Graph API and it's request I am facing this error</p>
<blockquote>
<p>Unsupported get request. Object with ID '203618703567212' does not exist, can... | 0debug |
How to display integers in android studio using for loop : How can i display integers inside this loop? When i run this code it only display 1 value.
public View.OnClickListener buttonClick = new View.OnClickListener() {
@Override
public void onClick(View v) {
int inp... | 0debug |
static void scsi_cancel_io(SCSIDevice *d, uint32_t tag)
{
DPRINTF("scsi_cancel_io 0x%x\n", tag);
SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);
SCSIGenericReq *r;
DPRINTF("Cancel tag=0x%x\n", tag);
r = scsi_find_request(s, tag);
if (r) {
if (r->req.aiocb)
... | 1threat |
static void nic_cleanup(NetClientState *nc)
{
dp8393xState *s = qemu_get_nic_opaque(nc);
memory_region_del_subregion(s->address_space, &s->mmio);
memory_region_destroy(&s->mmio);
timer_del(s->watchdog);
timer_free(s->watchdog);
g_free(s);
}
| 1threat |
static void vmxnet3_complete_packet(VMXNET3State *s, int qidx, uint32_t tx_ridx)
{
struct Vmxnet3_TxCompDesc txcq_descr;
PCIDevice *d = PCI_DEVICE(s);
VMXNET3_RING_DUMP(VMW_RIPRN, "TXC", qidx, &s->txq_descr[qidx].comp_ring);
txcq_descr.txdIdx = tx_ridx;
txcq_descr.gen = vmxnet3_ring_curr_... | 1threat |
inserting column in database in kotlin android : I'm facing a problem in inserting column in the database in kotlin android.
I'm programming a note app in kotlin
this the error
> 08-04 19:45:03.781 14302-14302/com.example.hello.note E/Zygote: v2
08-04 19:45:03.781 14302-14302/com.example.hello.note E/Zygote... | 0debug |
static int vfio_connect_container(VFIOGroup *group, AddressSpace *as,
Error **errp)
{
VFIOContainer *container;
int ret, fd;
VFIOAddressSpace *space;
space = vfio_get_address_space(as);
QLIST_FOREACH(container, &space->containers, next) {
if (!io... | 1threat |
Import Range Into Every Nth Row in Google Sheets : I have a Column of data in one sheet.
I want to copy that Column into *another* sheet, but this one has cells that are merged.
If I do an import range, or a simple formula like ='Sheet'!A1, it will only get some of the data, because the formula doesn't work tha... | 0debug |
Select MySQL rows with timestamp older than 12 hours? : <p>In my table <code>monitoring</code>, I want to select the content from the content <code>domain</code>. But I only want to select it for rows where the timestamp on them is older than 12 hours and it should list the oldest entries first.</p>
<p>Here's what I'... | 0debug |
AndroidX Build Fails in Release Mode regarding appComponentFactory : <p>I'm using Android P and compiling against AndroidX. Works great in debug/beta, but when I make a release I get a cryptic crash during runtime:</p>
<blockquote>
<p>2018-06-24 00:21:26.080 11971-11971/? E/LoadedApk: Unable to
instantiate appComp... | 0debug |
db.execute('SELECT * FROM employees WHERE id = ' + user_input) | 1threat |
Javascript Ad Banner Rotator for my website? : <p>I have a website that I want to rotate my affiliate links on a stream player that I have created. I have searched everywhere for a script but can not find one. I am not trying to use a service that does it for me. I want to script it myself. Any suggestions?</p>
| 0debug |
static void scsi_dma_complete_noio(SCSIDiskReq *r, int ret)
{
assert(r->req.aiocb == NULL);
if (r->req.io_canceled) {
scsi_req_cancel_complete(&r->req);
goto done;
}
if (ret < 0) {
if (scsi_handle_rw_error(r, -ret, false)) {
goto done;
}
}
... | 1threat |
static void h264_h_loop_filter_chroma_c(uint8_t *pix, int stride, int alpha, int beta, int8_t *tc0)
{
h264_loop_filter_chroma_c(pix, 1, stride, alpha, beta, tc0);
}
| 1threat |
How to Submit generic "runtime.Object" to Kubernetes API using client-go : <p>I'm using AWS' EKS which is Kubernetes v1.10 and I'm using client-go v7.0.0.</p>
<p>What I'm trying to do is parse a .yml file with multiple Kubernetes resource definitions in a file and submit those resources to the Kubernetes API. I can su... | 0debug |
Find text and show value iif condition is met : Can someone help me a little bit. Picture is attached.
What I need is a code that will find "TOTAL PURCHASE" that has offset(-9)="USD" and then in cell D1 show the value of 100.
[1] https://imgur.com/a/oa0n0
| 0debug |
Js, function not working : <pre><code>`var y = 0 ;
var x = 0;
function atm(num1, num2){
console.log((num1 - num2));
return num1 - num2 ;
}
var items =[1,2,3,4,5,6,7,8,9,10];
function vm(y, x){
if( atm(y , items[x]) < 0 ){
result = "U Do not have enough money to pay";
}
else if ( atm(y , items[x]) === 0 );{
... | 0debug |
How to assign values to Nested Json array : <p>I am using C#. I want the Json array in the below structure</p>
<pre><code>"bed_configurations": [
[{
"type": "standard",
"code": 3,
"count": 1
},
{
"type": "custom",
"... | 0debug |
static int h261_decode_gob(H261Context *h){
MpegEncContext * const s = &h->s;
int v;
ff_set_qscale(s, s->qscale);
v= show_bits(&s->gb, 15);
if(get_bits_count(&s->gb) + 15 > s->gb.size_in_bits){
v>>= get_bits_count(&s->gb) + 15 - s->gb.size_in_bits;
}
if(v==0... | 1threat |
Random button generator needs fixing. Any help would be very much appreciated : My web page:
-http://www.theeventlister.com/landingpage/events/uk/boardmasters.html
Okay so on this website, I have a random button generator, named 'next event'. The button is okay however needs an improvement. Sometimes this button ... | 0debug |
static void sigchld_bh_handler(void *opaque)
{
ChildProcessRecord *rec, *next;
QLIST_FOREACH_SAFE(rec, &child_watches, next, next) {
if (waitpid(rec->pid, NULL, WNOHANG) == rec->pid) {
QLIST_REMOVE(rec, next);
g_free(rec);
}
}
}
| 1threat |
Issues iterating through JSON list in Python? : <p>I have a file with JSON data in it, like so:</p>
<pre><code>{
"Results": [
{"Id": "001",
"Name": "Bob",
"Items": {
"Cars": "1",
"Books": "3",
"Phones": "1"}
},
... | 0debug |
static int configure_output_video_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
{
char *pix_fmts;
OutputStream *ost = ofilter->ost;
AVCodecContext *codec = ost->st->codec;
AVFilterContext *last_filter = out->filter_ctx;
int pad_idx = out->pad_idx;
int ret;
char n... | 1threat |
Check that if-statement was true several times at a stretch : I have a loop
count = 0;
do
{
...
if (statement)
count++;
...
} while (count != 3);
How to check that if statement was true three times at a stretch? | 0debug |
What is the better and secure way to login and logout in PHP? : <p>I'm a beginner in PHP. my login page is a <strong><em>login.html</em></strong> page and it posts inputted data to a <strong><em>logged.php</em></strong> page. and in this page it checks inputted data with my DB and if it was true, it showed this <strong... | 0debug |
Finding remaining months from given Ruby Array : I am building a tax calculation system in Ruby. In our country fiscal year starts from 4th month of the year. I need to calculate the number of remaining months from the given month. For example I have the array
months = [4,5,6,7,8,9,10,11,12,1,2,3]
Now... | 0debug |
int net_init_tap(QemuOpts *opts, Monitor *mon, const char *name, VLANState *vlan)
{
TAPState *s;
int fd, vnet_hdr = 0;
if (qemu_opt_get(opts, "fd")) {
if (qemu_opt_get(opts, "ifname") ||
qemu_opt_get(opts, "script") ||
qemu_opt_get(opts, "downscript") ||
... | 1threat |
I want to open a page when a button is pressed in React js : I am creating a function in react js where a user will be redirected to the dashboard when he click sign in.
handleSubmit(){
this.props.history.push('/blog-overview');
}
When i click on the button, the page is refreshed rather ... | 0debug |
How to extend String Prototype and use it next, in Typescript? : <p>I am extending String prototype chain with a new method but when I try to use it it throws me an error: <code>property 'padZero' does not exist on type 'string'</code>. Could anyone solve this for me?</p>
<p>The code is below. You can also see the sam... | 0debug |
void virtio_queue_set_notification(VirtQueue *vq, int enable)
{
vq->notification = enable;
if (vq->vdev->guest_features & (1 << VIRTIO_RING_F_EVENT_IDX)) {
vring_avail_event(vq, vring_avail_idx(vq));
} else if (enable) {
vring_used_flags_unset_bit(vq, VRING_USED_F_NO_NOTIFY);
} el... | 1threat |
static int ffm_write_packet(AVFormatContext *s, int stream_index,
UINT8 *buf, int size, int force_pts)
{
AVStream *st = s->streams[stream_index];
FFMStream *fst = st->priv_data;
INT64 pts;
UINT8 header[FRAME_HEADER_SIZE];
int duration;
if (st->codec.codec_ty... | 1threat |
Python - What are some Alternatives to enumerate function. : I have a question I need to solve using python, using a def function. Basically take a list of numbers, and then and add a letter at the end of each element in the list.
I was finally able to do it, but for various reasons I need to find an alternative wa... | 0debug |
Convert std::chrono::system_clock::time_point to struct timeval and back : <p>I´m writing a C++ code that needs to access an old C library that uses timeval as a representation of the current time.</p>
<p>In the old package to get the current date/time we used:</p>
<pre><code>struct timeval dateTime;
gettimeofday(&am... | 0debug |
How to create a 2D Array list in Android Studio? : Looking at a few articles on here i learned that To declare a 2D array in android studio you must do something like
String[][] stations=new String[1][10];
And to insert data into the 2D array i just created I Did This
stations[1][0]= "New York";
st... | 0debug |
static int load_ipmovie_packet(IPMVEContext *s, AVIOContext *pb,
AVPacket *pkt) {
int chunk_type;
if (s->audio_chunk_offset && s->audio_channels && s->audio_bits) {
if (s->audio_type == AV_CODEC_ID_NONE) {
av_log(s->avf, AV_LOG_ERROR, "Can not read audio packet before"
... | 1threat |
static inline void RENAME(rgb32tobgr16)(const uint8_t *src, uint8_t *dst, unsigned int src_size)
{
const uint8_t *s = src;
const uint8_t *end;
#ifdef HAVE_MMX
const uint8_t *mm_end;
#endif
uint16_t *d = (uint16_t *)dst;
end = s + src_size;
#ifdef HAVE_MMX
__asm __volatile(PREFETCH" %0"::"m"(*src):"memor... | 1threat |
static int oss_init_out (HWVoiceOut *hw, struct audsettings *as)
{
OSSVoiceOut *oss = (OSSVoiceOut *) hw;
struct oss_params req, obt;
int endianness;
int err;
int fd;
audfmt_e effective_fmt;
struct audsettings obt_as;
oss->fd = -1;
req.fmt = aud_to_ossfmt (as->fmt, as->... | 1threat |
SonarQube Runner vs Scanner : <p>What is the difference btw Sonar Runner and Sonar Scanner?.</p>
<p>And which version of "Sonarqube" and Sonar runner is required for JDK7?</p>
| 0debug |
HTML <a herf link does not work : So i wanted to create link to YouTube, but it does not work when i click on the text nothing hapens. Here is the code:
<div>
<p>Source to <a herf="https://www.youtube.com/">
<span style="clolor:red">Youtube</span></a>.</p>
</div>
Thanks for answers | 0debug |
static uint32_t bonito_sbridge_pciaddr(void *opaque, target_phys_addr_t addr)
{
PCIBonitoState *s = opaque;
PCIHostState *phb = PCI_HOST_BRIDGE(s->pcihost);
uint32_t cfgaddr;
uint32_t idsel;
uint32_t devno;
uint32_t funno;
uint32_t regno;
uint32_t pciaddr;
if ((s->r... | 1threat |
static int vnc_zlib_stop(VncState *vs, int stream_id)
{
z_streamp zstream = &vs->zlib_stream[stream_id];
int previous_out;
vs->zlib = vs->output;
vs->output = vs->zlib_tmp;
if (zstream->opaque != vs) {
int err;
VNC_DEBUG("VNC: initializing zlib... | 1threat |
int av_find_best_stream(AVFormatContext *ic, enum AVMediaType type,
int wanted_stream_nb, int related_stream,
AVCodec **decoder_ret, int flags)
{
int i, nb_streams = ic->nb_streams;
int ret = AVERROR_STREAM_NOT_FOUND, best_count = -1, best_bitrate = -1, best_... | 1threat |
I am trying to display information from decoded JSON (Swift 4) in a label, but I can't seem to do it. How does one do this? : I am trying to display information taken from JSON. I've used .decode to get it. Now I want to put its text onto a simple label on my storyboard. At the bottom under ".resume()" is my attempt a... | 0debug |
Can someone please thoroughly explain what a URI is? : <p>I understand it has something to do with databases but I am not exactly sure what it does.. I looked on the android developer page and they don't explain it very well. </p>
| 0debug |
Loop while checking if element in a list in Python : <p>Let's say I have a simple piece of code like this:</p>
<pre><code>for i in range(1000):
if i in [150, 300, 500, 750]:
print(i)
</code></pre>
<p>Does the list <code>[150, 300, 500, 750]</code> get created every iteration of the loop? Or can I assume t... | 0debug |
How to create a slant button looks like this in xcode? : i want the result to be exact as the given image
how can i create a slant button like the image given below
https://i.stack.imgur.com/0GRjd.jpg
i don't want to use image as backgroud. | 0debug |
static void unblock_io_signals(void)
{
sigset_t set;
sigemptyset(&set);
sigaddset(&set, SIGUSR2);
sigaddset(&set, SIGIO);
sigaddset(&set, SIGALRM);
pthread_sigmask(SIG_UNBLOCK, &set, NULL);
sigemptyset(&set);
sigaddset(&set, SIGUSR1);
pthread_sigmask(SIG_BLOCK, &set, NU... | 1threat |
static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt)
{
int delay = FFMAX(st->codec->has_b_frames, st->codec->max_b_frames > 0);
int num, den, frame_size, i;
av_dlog(s, "compute_pkt_fields2: pts:%s dts:%s cur_dts:%s b:%d size:%d st:%d\n",
av_ts2str(pkt->pts), av_ts2str(... | 1threat |
Laravel installer has been install but laravel command not found ... wtf? : I've got an issue with trying tu use laravel installer.
I follow each steps to install laravel installer globally from https://laravel.com/docs/6.x,
- sudo composer global require laravel/installer
- export PATH="/home/hedwin/.composer... | 0debug |
ASP.Net Core SAML authentication : <p>I am trying to add SAML 2.0 authentication to an ASP.Net Core solution. I can't find any documentation on the subject, so I am unsure where to start. There is probably documentation out there, but I don't want to spend 3 days becoming an expert on this.</p>
<p>From what I can see ... | 0debug |
Golang unable to parse TOML file in GoLand : I am using the GoLand editor on Windows and initially I installed dependency using:
go get github.com/BurntSushi/toml
I created a toml file in the same folder as my `main.go`:
```
.
|-- cloud.toml
`-- main.go
```
### cloud.toml
[database]
ho... | 0debug |
IndexError: index 5 is out of bounds for axis 1 with size 5 python : I am using a dataset that I created it should have 5 classes and it contain 500 samples for training and 100 samples for testing
I can't perform this operation
Y_train = np_utils.to_categorical(y_train, num_classes)
Y_test = np_utils.to... | 0debug |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.