problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
source insight 4087 can not parse smart point in boost : followings are my code:
class test{public:void fun(){}};int main(){boost::scoped_ptr<test> a;a.fun();}
when I click fun() in main ,souceInsight tell me symbol not found;
what can I do to fix it? thanks for you answer.
| 0debug |
static void do_order_test(void)
{
Coroutine *co;
co = qemu_coroutine_create(co_order_test);
record_push(1, 1);
qemu_coroutine_enter(co, NULL);
record_push(1, 2);
g_assert(!qemu_in_coroutine());
qemu_coroutine_enter(co, NULL);
record_push(1, 3);
g_assert(!qemu_in_coroutine... | 1threat |
how to Styling classes with the same name in a file css : <p>i have one problem .I can not give each one a particular style.help me<a href="https://i.stack.imgur.com/WwMe6.png" rel="nofollow noreferrer">enter image description here</a></p>
| 0debug |
In Redux, is it necessary to do deep copy : <p>The below object is <code>action.data</code> has a nested object <code>address</code></p>
<pre><code>{
name: 'Ben',
address: {
country: 'Australia',
state: 'NSW'
}
}
</code></pre>
<p>How should I handle it in the reducer?</p>
<pre><code>const... | 0debug |
How to check whether openpyxl package exist and if it is not exist how to download and install it within the script in Python 3.5.1? : I started writing python codes two weeks ago and until now I have manipulate some excel data after converting it to txt file. I want to manipulate excel data directly, so I need to inst... | 0debug |
alert('Hello ' + user_input); | 1threat |
Kotlin TextView.text += : [I want to keep the text in the text view and add 0 to it][1]
i have tried txtCalc.text = "The text" + "0" and it doesn't work
[1]: https://i.stack.imgur.com/lDAVD.png | 0debug |
Is there any merit about assembly language? : <p>I heard some of developers use assembly language in embedded system. </p>
<p>I wonder what merit they have from learning assembly language and what field use assembly language. </p>
<p>Do you have any experience? </p>
| 0debug |
After running the above code why I am getting just one o\p for type() function ? Why not for all three ? : x = input("enter a name = ")
y = input("enter a integer = ")
z = input("enter a decimal number = ")
type(x)
type(y)
type(z)
After running the above code why I am getting just one o\p for type() f... | 0debug |
How to stop Golang from replacing double-quotes with backslashes when executing a DOS command : I am writing a program in Golang that will use Mozilla's Thunderbird email client to send email. The DOS command that should be executed is:
```DOS
start "" "C:\Program Files (x86)\Mozilla Thunderbird\thunderbird.exe" -c... | 0debug |
malformed query, expected END_OBJECT but found FIELD_NAME error in Kibana (Elastic Search) : <p>I am running the following GET query within my Kibana Console and for some reason I am getting a error in the response window as follows :</p>
<p>// error </p>
<pre><code>[match] malformed query, expected [END_OBJECT] but ... | 0debug |
void Y8950UpdateOne(FM_OPL *OPL, INT16 *buffer, int length)
{
int i;
int data;
OPLSAMPLE *buf = buffer;
UINT32 amsCnt = OPL->amsCnt;
UINT32 vibCnt = OPL->vibCnt;
UINT8 rythm = OPL->rythm&0x20;
OPL_CH *CH,*R_CH;
YM_DELTAT *DELTAT = OPL->deltat;
YM_DELTAT_DECODE_PRESET(DELTAT);
if( (void ... | 1threat |
how to count comparison selectionsort? : how to count comparison selectionsort?
terms :
when the statements you perform to find the maximum value is 'true'
then count comparison.
The value to get the maximum value is held at the first element in the array, not at random.
i try with c
variable count position... | 0debug |
static int vmstate_n_elems(void *opaque, VMStateField *field)
{
int n_elems = 1;
if (field->flags & VMS_ARRAY) {
n_elems = field->num;
} else if (field->flags & VMS_VARRAY_INT32) {
n_elems = *(int32_t *)(opaque+field->num_offset);
} else if (field->flags & VMS_VARRAY_UINT32) {
... | 1threat |
static void qemu_paio_submit(struct qemu_paiocb *aiocb)
{
aiocb->ret = -EINPROGRESS;
aiocb->active = 0;
mutex_lock(&lock);
if (idle_threads == 0 && cur_threads < max_threads)
spawn_thread();
TAILQ_INSERT_TAIL(&request_list, aiocb, node);
mutex_unlock(&lock);
cond_signal(&con... | 1threat |
static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
{
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
AVStream *st = avctx->streams[mv->stream_index];
const AVIndexEntry *index;
int frame = mv->frame[mv->stream_index];
int ret;
uint64_t pos;
if (fra... | 1threat |
converting csv to Json without pandas (python) : <p>I am a student and I have an assignment where I have to convert a csv file to Json format without using Pandas. Is there a way to achieve this in python?</p>
<p>Thank you,</p>
| 0debug |
Smooth vue collapse transition on v-if : <p>I'm struggling with vue transitions trying to show / hide content using v-if smoothly. Whilst I understand the css classes and transitions, I can make the content appear 'smoothly' using things like opacity or translation etc...but once the animation is complete (or rather a... | 0debug |
av_cold void ff_fft_init_mmx(FFTContext *s)
{
#if HAVE_YASM
int has_vectors = av_get_cpu_flags();
#if ARCH_X86_32
if (has_vectors & AV_CPU_FLAG_3DNOW && HAVE_AMD3DNOW) {
s->imdct_calc = ff_imdct_calc_3dnow;
s->imdct_half = ff_imdct_half_3dnow;
s->fft_calc = ff_fft_cal... | 1threat |
SQL Query Select That User Don't Have The Products : <p>Im trying to make a feature called "Edit Profile User" this</p>
<p>so in this feature im as Admin that can Edit User's Profile such as Name, username , DOB, etc. </p>
<p>in this feature we also can edit/Assign Product to this user. Example </p>
<p>User A have p... | 0debug |
What does the Atomics object do in JavaScript? : <p>This is the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics" rel="noreferrer">MDN documentation on Atomics</a>.</p>
<p>I can't understand how an atomic object could be used in a real-life situation or if they are for ... | 0debug |
Python psycopg2 DELETE data in AWS, no result, no error : <p>I try to delete data in a table in AWS. The code below works well if I pull data from AWS.</p>
<pre><code>import psycopg2
import pandas as pd
con=psycopg2.connect(dbname= My_Credential.....)
cur = con.cursor()
sql = """
DELETE FROM my_table
"""
cur.execut... | 0debug |
static inline struct rgbvec interp_trilinear(const LUT3DContext *lut3d,
const struct rgbvec *s)
{
const struct rgbvec d = {s->r - PREV(s->r), s->g - PREV(s->g), s->b - PREV(s->b)};
const struct rgbvec c000 = lut3d->lut[PREV(s->r)][PREV(s->g)][PREV(s->b)];
co... | 1threat |
delete all new lines '\n' between two intances of a pattern using sed or awk : I have this input file as input.txt as shown below
In the output
I am trying to delete all new lines between the all occurances of pattern '------'.
Then delete that pattern from the output file
print_me(0034 bla bla bla bla bla bla bla ... | 0debug |
Error: Nock: No match for request : <p>I am receiving following error</p>
<pre><code>{ error:
{ Error: Nock: No match for request {
"method": "GET",
"url": "http://localhost:3000/admin/orders/30075889/transactions.json",
"headers": {
"content-type": "application/json",
"host": "localho... | 0debug |
void cpu_stop_current(void)
{
}
| 1threat |
Adding Variables in Tkinter : <p>I have been working on a tkinter calculator which adds 2 numbers together. I am planning on making this more advanced by adding in set numbers that when you type a number in it multiplies the number by that set varible. However, even after extensive research I cannot find some help for ... | 0debug |
C# How to open an application that is in the taskbar? : I have Bluestacks opened in my taskbar, and I wanted to put it at the top of my screen, how can i do it?
InitializeComponent();
bool bluestack = false;
Process[] processlist = Process.GetProcesses();//getting all the processes... | 0debug |
How to select 3 columns and get data from mysql table? : I want to select 3 columns and want to retrieve data from the mysql table. All the columns exist on a single table called "orderTable". Please check what I am doing:
SELECT * FROM `orderTable` WHERE shipped = 0, reject_order = 0 AND customer_id = '26898'
... | 0debug |
establishing a virtually bigger display buffer via code : I don't know if this is a programming question but it is a issue that may be possible to solve via code.
Given my little knowledge about how the display processing pipeline in our computers really work, I had the idea that the pixels on the monitor are allo... | 0debug |
How to replace the How to replace the <div> <br></div> with space using javascript? with space using javascript? : In the body search all the instances of <div> <br></div> and replace with space using javascript | 0debug |
Closing the main menu on mouse out : <p>we are using default nav-bar of bootstrap in our website <a href="https://mihanmag.com" rel="nofollow noreferrer">mihanmag</a> </p>
<p>I want to close the menu, when mouse go out of it. can anyone help me?</p>
| 0debug |
Laravel 5.4 redirection to custom url after login : <p>I am using Laravel Framework 5.4.10, and I am using the regular authentication that </p>
<pre><code>php artisan make:auth
</code></pre>
<p>provides. I want to protect the entire app, and to redirect users to /themes after login.</p>
<p>I have 4 controllers: Forg... | 0debug |
static void curl_multi_timeout_do(void *arg)
{
#ifdef NEED_CURL_TIMER_CALLBACK
BDRVCURLState *s = (BDRVCURLState *)arg;
int running;
if (!s->multi) {
return;
}
aio_context_acquire(s->aio_context);
curl_multi_socket_action(s->multi, CURL_SOCKET_TIMEOUT, 0, &running);
c... | 1threat |
my image is leaving space left side even though background size is cover : Ques: My image is leaving space on the left side instead of covering 100% on both the left and right side.
background-image: url("https://images.unsplash.com/photo-1491336238524-c990bd671778?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=form... | 0debug |
How to create T4 text templates(.tt) in ASP.NET core on Visual Studio 2015 : <p>I want to create T4 text templates to achieve code generation. All the tutorials I found on msdn suggest following to add a new text template: <code>Add > New Item > Text Template</code>, (eg <a href="https://msdn.microsoft.com/en-us/... | 0debug |
ValueError: Series lengths must match to compare when matching dates in Pandas : <p>I apologize in advance for asking such a basic question but I am stumped.</p>
<p>This is a very simple, dummy example. I'm having some issue matching dates in Pandas and I can't figure out why.</p>
<pre><code>df = pd.DataFrame([[1,'20... | 0debug |
Powershell Import-CSV where date-column -lt/ -gt (dd.MM.YYYY) : I am working on a small Powershell script to process CSV files.
CSV-File-Example:
lastname;firstname;birthday
| 0debug |
static av_cold int j2kenc_init(AVCodecContext *avctx)
{
int i, ret;
Jpeg2000EncoderContext *s = avctx->priv_data;
Jpeg2000CodingStyle *codsty = &s->codsty;
Jpeg2000QuantStyle *qntsty = &s->qntsty;
s->avctx = avctx;
av_log(s->avctx, AV_LOG_DEBUG, "init\n");
memset(cod... | 1threat |
ld: library not found for -lstdc++.6 : <p>After updating Xcode Version to 10.0 beta start getting "ld: library not found for -lstdc++.6" error. same code working fine in Xcode 9.2</p>
<p>Also updated macOS to 10.13.5</p>
| 0debug |
Visual studio code suppress pep8 warnings : <p>How can I suppress pep8 warnings, in Visual studio code? What I want to do is to suppress E501 warning I don't want to get warnings where my code length is more than 80 chars. I'm using <a href="https://marketplace.visualstudio.com/items?itemName=donjayamanne.python" rel="... | 0debug |
static void test_qemu_strtoull_full_max(void)
{
const char *str = g_strdup_printf("%lld", ULLONG_MAX);
uint64_t res = 999;
int err;
err = qemu_strtoull(str, NULL, 0, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, ULLONG_MAX);
}
| 1threat |
How to create a loop that will make regression models in R? : <p>I have data that looks something like this, there is time series data for many species over multiple years.</p>
<pre><code>Species year x
species1 2000 56
species1 2001 12
species1 2002 40
species2 2000 30
species2 2001 40
species2 2... | 0debug |
static int img_create(int argc, char **argv)
{
int c, ret = 0;
uint64_t img_size = -1;
const char *fmt = "raw";
const char *base_fmt = NULL;
const char *filename;
const char *base_filename = NULL;
char *options = NULL;
for(;;) {
c = getopt(argc, argv, "F:b:f:he6o:");
... | 1threat |
static int count_cow_clusters(BDRVQcow2State *s, int nb_clusters,
uint64_t *l2_table, int l2_index)
{
int i;
for (i = 0; i < nb_clusters; i++) {
uint64_t l2_entry = be64_to_cpu(l2_table[l2_index + i]);
QCow2ClusterType cluster_type = qcow2_get_cluster_type(l2_entry);
switc... | 1threat |
Control key not working on embedded terminal (mac os) : <p>I probably changed some setting by mistake, how do I get the control key to work again??</p>
<p><strong>Given</strong> I open a terminal in IntelliJ (2016.2.3)<br>
<strong>And</strong> I run a command that takes some time to run<br>
<strong>When</strong> I pre... | 0debug |
static int qpel_motion_search(MpegEncContext * s,
int *mx_ptr, int *my_ptr, int dmin,
int src_index, int ref_index,
int size, int h)
{
MotionEstContext * const c= &s->me;
const int mx = *mx_ptr;
... | 1threat |
How to show/hide content on button click? : <p>I have some content in p tag</p>
<pre><code><p>Some Content</p>
</code></pre>
<p>I also have two button 'Hide' and 'Show'.</p>
<pre><code><button>Hide</button>
<button>Show</button>
</code></pre>
<p>I want to hide the content if i cl... | 0debug |
void mips_cpu_do_unaligned_access(CPUState *cs, vaddr addr,
int is_write, int is_user, uintptr_t retaddr)
{
MIPSCPU *cpu = MIPS_CPU(cs);
CPUMIPSState *env = &cpu->env;
env->CP0_BadVAddr = addr;
do_raise_exception(env, (is_write == 1) ? EXCP_AdES : EXCP_AdEL, ret... | 1threat |
Unfortunately Stopped android app : Logcat code
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.aj.admin.bcombooks/com.aj.admin.bcombooks.MainActivity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class android.support.design.widget.Navi... | 0debug |
int rom_add_file(const char *file, const char *fw_dir,
hwaddr addr, int32_t bootindex,
bool option_rom, MemoryRegion *mr)
{
MachineClass *mc = MACHINE_GET_CLASS(qdev_get_machine());
Rom *rom;
int rc, fd = -1;
char devpath[100];
rom = g_malloc0(sizeof(*rom));
rom... | 1threat |
How to efficiently concatenate multiple arrays in Ruby? : <p>I just wanted to concatenate multiple arrays in Ruby and couldn't find a satisfying way to do so.</p>
<p><strong>Example input:</strong></p>
<pre><code>foo = [1, 2, 3]
bar = [4, 5, 6]
baz = [7, 8, 9]
</code></pre>
<p><strong>Expected result:</strong> (with... | 0debug |
Do I have to unsubscribe from ActivatedRoute (e.g. params) observables? : <p>I find many examples where <code>ActivatedRoute</code> Observables like <code>params</code> or <code>url</code> are subscribed but not unsubscribed.</p>
<pre><code>constructor(private route: ActivatedRoute) {}
ngOnInit() {
this.route.param... | 0debug |
static void release_drive(Object *obj, const char *name, void *opaque)
{
DeviceState *dev = DEVICE(obj);
Property *prop = opaque;
BlockDriverState **ptr = qdev_get_prop_ptr(dev, prop);
if (*ptr) {
bdrv_detach_dev(*ptr, dev);
blockdev_auto_del(*ptr);
}
}
| 1threat |
I am trying to set attributes string to UITableViewCell's text label I am using following code : NSDictionary * dic = [arrayForTableView objectAtIndex:indexPath.row];
NSNumber* lostPets = [dic valueForKey:@"lostPets"];
NSNumber * foundPets = [dic valueForKey:@"foundPe... | 0debug |
Not possible to transfer the data back to the ViewController (Swift) : It is not possible to transfer the data back to the ViewController **(From BarCodeScannerViewController to TableViewController)**
**SecondVC-(BarCodeScannerViewController.swift)**
@objc func SendDataBack(_ button:UIBarButtonItem!) {
... | 0debug |
Why does .loc have inclusive behavior for slices? : <p>For some reason, the following 2 calls to <code>iloc</code> / <code>loc</code> produce different behavior:</p>
<pre><code>>>> import pandas as pd
>>> df = pd.DataFrame(dict(A=range(3), B=range(3)))
>>> df.iloc[:1]
A B
0 0 0
>>... | 0debug |
TypeError: 'int' object is not callable and I don't know why : <p>I got the above error on this code and I do not know why:</p>
<pre><code>P=input('P=')
r=input('r=')
n=input('n=')
t=input('t=')
P=int (P)
r=float (r)
n=int (n)
t=int (t)
A=P(1+(r/n))^(n*t)
print("A=",A)
</code></pre>
| 0debug |
def repeat_tuples(test_tup, N):
res = ((test_tup, ) * N)
return (res) | 0debug |
How to present data from a server into graph? : <p>I'm try to make a project by using php:</p>
<p>The user input their health data and upload to the server.
Assume the server is local host.</p>
<p>Now how will I present those data to the user in graph?
What is the logic behind that?</p>
| 0debug |
static void mpeg_decode_sequence_extension(Mpeg1Context *s1)
{
MpegEncContext *s = &s1->mpeg_enc_ctx;
int horiz_size_ext, vert_size_ext;
int bit_rate_ext;
skip_bits(&s->gb, 1);
s->avctx->profile = get_bits(&s->gb, 3);
s->avctx->level = get_bits(&s->gb, 4);
s->progres... | 1threat |
Iam trying to write an SQL server Query using joins and having some difficulty : Tables are explained in detail as below:
I have 3 tables:
Table A
(It serves as a mastertable for information about the employees)
EmployeeId(Primary key)|Employee Designation|EmployeeName|(More columns of employee data which is... | 0debug |
k-means clustering performance benchmarking : I have a 157 dimensional data-set with 688 data-points on which I need to perform clustering. Since k-means is the simplest, I decided to begin with that.
Here is the sklearn function call:
`KMeans(init='k-means++', n_clusters=4, n_init=10),name="k-means++", data=sales... | 0debug |
static void decode_block(BinkAudioContext *s, short *out, int use_dct)
{
int ch, i, j, k;
float q, quant[25];
int width, coeff;
GetBitContext *gb = &s->gb;
if (use_dct)
skip_bits(gb, 2);
for (ch = 0; ch < s->channels; ch++) {
FFTSample *coeffs = s->coeffs_ptr[ch];
... | 1threat |
static void do_audio_out(AVFormatContext *s, OutputStream *ost,
AVFrame *frame)
{
AVCodecContext *enc = ost->st->codec;
AVPacket pkt;
int got_packet = 0;
av_init_packet(&pkt);
pkt.data = NULL;
pkt.size = 0;
#if 0
if (!check_recording_time(ost))
r... | 1threat |
Call function when input is changed on text box? : <p>I'm trying to create a button that changes color when username and password fields have both been entered with some sort of input (IE; neither username or password text boxes are empty)</p>
<p>Is there a way I can get a function to trigger when input of a text box ... | 0debug |
How are std::arrays of smart pointers initialized? : <p>I currently try to initialize the following array, Spot is a class that is defined elsewhere:</p>
<pre><code>static const int WIDTH = 7;
static const int HEIGHT = 6;
std::array<std::array<std::unique_ptr<Spot>, WIDTH>, HEIGHT> field;
</code></pr... | 0debug |
Create a time object? : <p>I have a vast number of files that need to be deleted past a certain date.
I can't use the datestamp of the file because the files are created some time before they are used. A file called OCT21.txt needs to be deleted a few days after October 21st, but it could have been created in May.</p>
... | 0debug |
static void uart_rx_reset(UartState *s)
{
s->rx_wpos = 0;
s->rx_count = 0;
qemu_chr_accept_input(s->chr);
s->r[R_SR] |= UART_SR_INTR_REMPTY;
s->r[R_SR] &= ~UART_SR_INTR_RFUL;
}
| 1threat |
capture but don't consume characters in string : <p>is it possible? for example the capture group in the pattern '(ab)' wouldn't consume characters in the string 'ab' somehow?</p>
| 0debug |
Jetbrains Rider + Visual Studio WPF : <p>I'm about to have a project with C# again. As I love using Jetbrains IDE's I came along Rider. The main problem for me is that I need a Windows Forms or WPF Designer for the GUI.</p>
<p>Is there any external software available for it or does anybody knows a convenient work pipe... | 0debug |
static void bt_vhci_add(int vlan_id)
{
struct bt_scatternet_s *vlan = qemu_find_bt_vlan(vlan_id);
if (!vlan->slave)
fprintf(stderr, "qemu: warning: adding a VHCI to "
"an empty scatternet %i\n", vlan_id);
bt_vhci_init(bt_new_hci(vlan));
}
| 1threat |
Is any way to generate a multiplataform exe/executable from a python file? : <p>I want to convert a .py file into a multiplataform (Windows, Linux,..) onefile (without librarys or other folders) executable file for using it without a Python installation.</p>
| 0debug |
Is it necessary to use Class in Python every time You write a complex Program : <p>I have a like 50 lines code of python program converted into exe using pyinstaller</p>
<p>So is it necessary for me to use class in my python program ? because it works perfectly fine without class</p>
| 0debug |
Multiply by transposing rows by date in R : I want to convert this table :
[![enter image description here][1]][1]
to that table with **R**
[![enter image description here][2]][2]
In brief : converting the time periods between start date and end date to months table vertically
Thanks!
[1]: https... | 0debug |
pp_context_t *pp_get_context(int width, int height, int cpuCaps){
PPContext *c= memalign(32, sizeof(PPContext));
int i;
int stride= (width+15)&(~15);
memset(c, 0, sizeof(PPContext));
c->cpuCaps= cpuCaps;
if(cpuCaps&PP_FORMAT){
c->hChromaSubSample= cpuCaps&0x3;
c->vChromaSubSample= (cpuCaps>... | 1threat |
how too summary values in specyfic range : $srv2 = 0;
foreach ($result as $value) {
for($i = 0; $i >= 11 && $i <= 20; $i++){
$srv2 += $value['words_count'];
}
if ($i > 20)
{
break;
}
}
Can sam... | 0debug |
Python3 pass lists to function with functools.lru_cache : <p>I want to cache a function that takes a list as a parameter, but when I try to do so with the <a href="https://docs.python.org/3/library/functools.html#functools.lru_cache" rel="noreferrer"><code>functools.lru_cache</code></a> decorator, it fails with <code>T... | 0debug |
int ff_jpeg2000_init_component(Jpeg2000Component *comp,
Jpeg2000CodingStyle *codsty,
Jpeg2000QuantStyle *qntsty,
int cbps, int dx, int dy,
AVCodecContext *avctx)
{
int reslevelno, bandno, gban... | 1threat |
How to plot a system of linear equations in python? : <p>I have a set of linear equations like: <code>2x+3y+4z = 3</code> and <code>3x+3y+2z = 0</code>. How to plot them and highlight the common are in Python?</p>
| 0debug |
break circle into sections for heading : <p>I am attempting to break a circle into 3 sections given an angle, this angle determines where the sections will be, for more details on what the sections are search online for aircraft holding patterns.</p>
<p>I'm having trouble getting the logic to work correctly, in the si... | 0debug |
How to add dynamic values to java new new Object[] with diffrent type of values : I am currently using like below, but i don't know how to add values dynamically to this array,
Object[] oParams = new Object[] {
Integer.valueOf(this.userId),
Date.valueOf(this.startDate),
Date.valueOf(this.endDa... | 0debug |
How can I seperate data with typecasting in an array? : I want to add 2 different types in the same array of size 100x4.In the first column I want to add names of foods(with use of pointers) and in the second and third some numbers such as calories and hour of eating.(WITH TYPECASTING)
I've been trying for this many... | 0debug |
iOS build size with Swift 3 and pods : <p>I just noticed cocoapods with Swift increases build size, however when I use same libraries manually then build size is normal.</p>
<p>I created a blank project with some pods and the build size goes to the 10MB and .app file is around 40MB.</p>
<p>I also notices that my .app... | 0debug |
C++ opencv remove small areas : I managed to do what I need by finding a python code (I found it in stackexchange):
<code>gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
labelnum, labelimg, contours, GoCs = cv2.connectedComponentsWithStats(gray)
for label in xrange(1, labelnum):
x,y,w,h,size = conto... | 0debug |
Number connect 2d array c : Number connect game,I am expecting the selected number to loop/move multiple times to connect another number.But I only manage to loop/move the number once,I am not sure why.I have attach an example below.I really need help.
Here's my code:
#include <stdio.h>
#include <s... | 0debug |
Create an empty text file : <p>I've been reading and googling all over but I can't seem to find this simple answer. </p>
<p>I have a function that reads a file, but if the files doesn't exists it panics. What I want to do is a function that before reading, checks if the files exists, and if not, it creates an empty fi... | 0debug |
Regex for multi line search that should select text "abc" which comes before the text "xyz" and should not select anything except "abc" : <p>Regex for multi line search that should select text "abc" which comes before the text "xyz" and should not select anything except "abc"</p>
<p>suppose if the text is as below,</p... | 0debug |
static int mxf_read_local_tags(MXFContext *mxf, KLVPacket *klv, int (*read_child)(), int ctx_size, enum MXFMetadataSetType type)
{
ByteIOContext *pb = mxf->fc->pb;
MXFMetadataSet *ctx = ctx_size ? av_mallocz(ctx_size) : mxf;
uint64_t klv_end = url_ftell(pb) + klv->length;
if (!ctx)
retur... | 1threat |
static inline int copy_siginfo_to_user(target_siginfo_t *tinfo,
const target_siginfo_t *info)
{
tswap_siginfo(tinfo, info);
return 0;
}
| 1threat |
static int do_token_setup(USBDevice *s, USBPacket *p)
{
int request, value, index;
int ret = 0;
if (p->len != 8)
memcpy(s->setup_buf, p->data, 8);
s->setup_len = (s->setup_buf[7] << 8) | s->setup_buf[6];
s->setup_index = 0;
request = (s->setup_buf[0] << 8) | s->setup_buf[1]... | 1threat |
How to set core profile context for OpenGL in glfw? : <p>I am looking for a way in c++ to do something like this <a href="https://stackoverflow.com/questions/25951198/opengl-glsl-3-30-in-ubuntu-14-10-mesa-10-1-3">OpenGL GLSL 3.30 in Ubuntu 14.10 mesa 10.1.3</a></p>
| 0debug |
git commit hash in dockerfile as label : <p>How to add git commit hash or any other dynamically inferred value in Dockerfile.</p>
<pre><code>LABEL vcs-ref=$(git rev-parse --short HEAD)
</code></pre>
<p>Something like this?</p>
| 0debug |
static int buf_get_buffer(void *opaque, uint8_t *buf, int64_t pos, int size)
{
QEMUBuffer *s = opaque;
ssize_t len = qsb_get_length(s->qsb) - pos;
if (len <= 0) {
return 0;
}
if (len > size) {
len = size;
}
return qsb_get_buffer(s->qsb, pos, len, buf);
}
| 1threat |
A java program that generates 100 random numbers : <p>Can someone help me with this exercise? Write a program that generates 100 random numbers and stores each number into an integer array. For this program, you must meet the following technical requirements: 1) In main, generate the 100 random numbers and store eac... | 0debug |
please help me out to understanding this array sorting (bubble sort) : how did it working when both the loop is starting from 0 and comparison between both indexes have the same value
public class BubbleSort {
public static void main(String[] args)
{
int arr[]={5,1,2,1,1,4,4,4,4,4,3};
f... | 0debug |
If block error handling in bash : <p>I have if statements with multiple lines of code in bash, sometimes while running the script any of lines of code thrown error message so could you please let me know how to handle errors. I just wanna catch the error and display some error message to identify, and also I do not wa... | 0debug |
android studio imagebutton from internet : <p>i am programming an app with AndroidStudio and want to use an <strong>ImageButton</strong> to Display an Image. The Problem is, that this <strong>Image is from the Internet</strong> and I just found a method to use Pictures in the R.mipmap.*** for the ImageButton.</p>
<p>D... | 0debug |
static X86CPU *pc_new_cpu(const char *cpu_model, int64_t apic_id,
DeviceState *icc_bridge, Error **errp)
{
X86CPU *cpu = NULL;
Error *local_err = NULL;
if (icc_bridge == NULL) {
error_setg(&local_err, "Invalid icc-bridge value");
goto out;
}
cpu... | 1threat |
SocketAddressLegacy *socket_parse(const char *str, Error **errp)
{
SocketAddressLegacy *addr;
addr = g_new0(SocketAddressLegacy, 1);
if (strstart(str, "unix:", NULL)) {
if (str[5] == '\0') {
error_setg(errp, "invalid Unix socket address");
goto fail;
} else ... | 1threat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.