problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
void ff_put_h264_qpel16_mc11_msa(uint8_t *dst, const uint8_t *src,
ptrdiff_t stride)
{
avc_luma_hv_qrt_16w_msa(src - 2,
src - (stride * 2), stride, dst, stride, 16);
}
| 1threat |
PHP file uploading but can't find in directory : <p>I've checked several methods on stackoverflow but none is able to solve this.
I've made an html form to input <strong>file</strong> type through <strong>SELF_PHP</strong> form.
<em>Seems like PHP is uploading the file correctly but the directory to which it's being up... | 0debug |
How to check Internet connection on a Cordova App? : <p>I tried some suggestions, such as <strong>navigator.onLine</strong>, but even in flight mode, my app "thinks" its online.</p>
<p>I found some suggestions with ajax too, but I just want to check if I'm online to open an external web page. If not, I intend to show ... | 0debug |
React Native 0.57.1 Android Duplicate Resources : <p>When running <code>./android/gradlew assembleRelease</code> I get the following error:</p>
<p>```
* What went wrong:
Execution failed for task ':app:mergeReleaseResources'.</p>
<blockquote>
<p>[drawable-xhdpi-v4/node_modules_reactnavigation_src_views_assets_backi... | 0debug |
$.ajax POST not working but GET works fine : <p>Been on this for a while now. The codes below works perfectly when " type: 'POST' " is changed to " type: 'GET' ". Any help why its not working for POST?</p>
<pre><code> $.ajax({
type: 'POST',
url: 'http://www.example.com/ajax/test.php',
data: ... | 0debug |
Debugger popup message "Getting DataTip text" : <p>This Debugger message pops up randomly while i am attempting to examine a variable while a breakpoint has hit in Visual Studio 2017.</p>
<p>Shortly thereafter, a larger message box appears that shows the following: "Evaluating the function 'System.Reflection.Assembly.... | 0debug |
AVFilterBufferRef *avfilter_ref_buffer(AVFilterBufferRef *ref, int pmask)
{
AVFilterBufferRef *ret = av_malloc(sizeof(AVFilterBufferRef));
if (!ret)
return NULL;
*ret = *ref;
if (ref->type == AVMEDIA_TYPE_VIDEO) {
ret->video = av_malloc(sizeof(AVFilterBufferRefVideoProps));
if (!... | 1threat |
How to collect the id once I click on image linked updat page in php? : This is my image link,
<a href="UpdateStudent.php?SelectionId='."$Carrier".';"><img src="sawiro/EditImage.jpg" alt="Edit Student Image"></a>
I want to add Selectionid, as you can see on it `?SelectionId='."$Carrier".';` where my id vari... | 0debug |
Query Selector is Null when I use insertAdjacentHTML : <p>I'm using insertAdjacentHtml to create a div with a button right after the opening body tag of the page.</p>
<pre><code><script>document.addEventListener('DOMContentLoaded', function(){
var code = '<div class="overlay"><button class="... | 0debug |
Autowrap widgets to new line in flutter : <p>I have 5 widgets with different sizes which would overflow if placed next to each other.</p>
<p>I am looking for a layout helper class that limits the widgets to the horizontal space and auto-wraps the widgets instead to a new line. First I was looking for a grid view but p... | 0debug |
Custom TextSize of BottomNavigationView support android : <p>I am trying to change the textSize of BottomNavigationView from android support library 25.0.0</p>
<pre><code><android.support.design.widget.BottomNavigationView
android:id="@+id/bottom_navigation_view"
android:layout_width="match_parent"
... | 0debug |
static void dump_json_image_info(ImageInfo *info)
{
Error *local_err = NULL;
QString *str;
QmpOutputVisitor *ov = qmp_output_visitor_new();
QObject *obj;
visit_type_ImageInfo(qmp_output_get_visitor(ov), NULL, &info, &local_err);
obj = qmp_output_get_qobject(ov);
str = qobject_to_json... | 1threat |
Why we don't use extensions for files like .bashrc? : <p>I am aware that it's a configuration file, but sourcing .bashrc is in fact executing it in bash line by line. I also know, that extensions don't do much in Linux, but when you write some bash script, you often name it "*.sh", and .bashrc is the same, the only dif... | 0debug |
"Parse" line of code doesn't allow code to execute : <p>Cheers, I've isolated the error but I'm not sure how to fix it. Apparently, this line of code,(C language):</p>
<p>parse(getenv("QUERY_STRING")); </p>
<p>It does successfully compile, however when I run the executable the following pops up: puu.sh/nQi41/40e81c44... | 0debug |
static char *vio_format_dev_name(VIOsPAPRDevice *dev)
{
VIOsPAPRDeviceInfo *info = (VIOsPAPRDeviceInfo *)qdev_get_info(&dev->qdev);
char *name;
if (asprintf(&name, "%s@%x", info->dt_name, dev->reg) < 0) {
return NULL;
}
return name;
}
| 1threat |
find the largest,smallest,sum and ave of an array that stops at 0 in C : enter code hereso basically i have to find the largest, smallest, sum, average
ive gotten the average and sum to work buut not find the largest smallest, the average o the positive and the negative numbers. the array stops when 0 is pressed
... | 0debug |
SQL Server: Displaying result in Java Textfield : <p>I use MS SQL Server and Java with JDBC to connect.
I don't know how to display the result of my simple SQL queries in a Java Texfield. Displaying my data in a JTable is no problem with the external JAR <strong>rs2xml</strong>.</p>
<p>That works and prints my table i... | 0debug |
Logout user via Keycloak REST API doesn't work : <p>I have issue while calling Keycloak's <strong>logout</strong> endpoint from an (mobile) application. </p>
<p>This scenario is supported as stated in <a href="http://www.keycloak.org/docs/latest/securing_apps/topics/oidc/oidc-generic.html" rel="noreferrer">its documen... | 0debug |
static inline void RENAME(yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
long width, long height,
long lumStride, long chromStride, long dstStride)
{
RENAME(yuvPlanartouyvy)(ysrc, usrc, vsrc, dst, width, height, lumStride, chromStride, dstStride, 2);
}
| 1threat |
how to sumup alias columns in case statement in SQL : SELECT E.EMPNO,E.DEPTNO,E.SAL,E.COMM,
COALESCE(SAL,0)+COALESCE(COMM,0) AS T1,
CASE
WHEN E.DEPTNO=10 THEN COALESCE(E.SAL,0)+COALESCE(E.COMM,0)
WHEN D.DNAME='ACCOUNTING' THEN COALESCE(E.SAL,0)-COALESCE(E.COMM,0)
ELSE 0 END AS T,
sum(T+T1) as T2
FROM EMP E LEF... | 0debug |
static uint64_t memory_region_dispatch_read1(MemoryRegion *mr,
hwaddr addr,
unsigned size)
{
uint64_t data = 0;
if (!memory_region_access_valid(mr, addr, size, false)) {
return -1U;
}
if (!mr->... | 1threat |
operator< error in priority queue : <p>I am facing "binary '<': no operator found which takes a left-hand operand of type 'const Baloons' (or there is no acceptable conversion)" error and I cannot find any solution?</p>
<p>I would also like to ask how can I order the priority queue by baloon.end?</p>
<pre><code>#i... | 0debug |
int ff_reget_buffer(AVCodecContext *avctx, AVFrame *frame)
{
AVFrame *tmp;
int ret;
av_assert0(avctx->codec_type == AVMEDIA_TYPE_VIDEO);
if (!frame->data[0])
return ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF);
if (av_frame_is_writable(frame)) {
frame->pkt_pts = ... | 1threat |
static int opt_default(const char *opt, const char *arg){
int type;
const AVOption *o= NULL;
int opt_types[]={AV_OPT_FLAG_VIDEO_PARAM, AV_OPT_FLAG_AUDIO_PARAM, 0, AV_OPT_FLAG_SUBTITLE_PARAM, 0};
for(type=0; type<CODEC_TYPE_NB; type++){
const AVOption *o2 = av_find_opt(avctx_opts[0], opt, ... | 1threat |
c++ segmentation fault switch statement cin : <p>I have this code here </p>
<pre><code>string shapename;
bool warpspace;
const int size = 100;
ShapeTwoD shape2D[size]; // ShapeTwoD is a parent class
int number =0;
static int count = 0;
while(choice !=999)
{
switch(choice)
{
case 1:
{
... | 0debug |
int get_frame_filename(char *buf, int buf_size,
const char *path, int number)
{
const char *p;
char *q, buf1[20];
int nd, len, c, percentd_found;
q = buf;
p = path;
percentd_found = 0;
for(;;) {
c = *p++;
if (c == '\0')
break;
... | 1threat |
object is not callablel web crawler : import requests
from bs4 import BeautifulSoup
def lolz(max_pages):
page = 1
while page <= max_pages:
url = 'https://www.thenewboston.com/search.php?type=1&sort=pop&page=' + str(page)
sorce_code = requests.get(url)
plain_text = sorce_code.text
soup = BeautifulS... | 0debug |
Corpora/stopwords not found when import nltk library : <p>I trying to import the nltk package in python 2.7</p>
<pre><code> import nltk
stopwords = nltk.corpus.stopwords.words('english')
print(stopwords[:10])
</code></pre>
<p>Running this gives me the following error:</p>
<pre><code>LookupError:
**************... | 0debug |
First web app with ASP.NET : <p>I'm sorry if this question does not belong here but I couldn't think of any better place to ask.</p>
<p>I am a c# application developer but I want to try making a web site. Feature wise it should be similar to something like LinkedIn. That means a userbase, where each user have their ow... | 0debug |
Can you make a feature that allows users to choose color C# (Console) : <p>Any ideas? I have a way but that would only change from downwards, and the menu is in the top.</p>
| 0debug |
static int gxf_seek(AVFormatContext *s, int stream_index, int64_t timestamp, int flags) {
int res = 0;
uint64_t pos;
uint64_t maxlen = 100 * 1024 * 1024;
AVStream *st = s->streams[0];
int64_t start_time = s->streams[stream_index]->start_time;
int64_t found;
int idx;
if (timestamp... | 1threat |
Sublime text 3 using massive amount of CPU on idle : <p>I'm running Sublime Text 3 on Windows 10, with all my installed packages disabled. On idle, it is taking up ~31% of my CPU with one file opened. This seems like a ridiculous amount for a text editor - why is this?</p>
| 0debug |
mutate variable if column name contains a string : <p>My data has several columns which contain the string "trait". I'd like to mutate these columns in the same way using dplyr.</p>
<p>My first instinct was to use <code>mutate_if</code> in the following way:</p>
<pre><code>my_data %>% mutate_if(contains('trait'),... | 0debug |
How to remove all emoji from string - php : <p>How to remove all emoji in following string ?</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. 🇬🇧🍁🍃🍂🌰🍁🌿🌾🌼🌻</p>
| 0debug |
iOS OpenCV haarcascade for other facial emotions : <p>I have been trying OpenCV iOS sample to achieve facial emotion recognition.
I got OpenCV sample iOS project 'openCViOSFaceTrackingTutorial' from below link.
<a href="https://github.com/egeorgiou/openCViOSFaceTrackingTutorial/tree/master/openCViOSFaceTrackingTutorial... | 0debug |
How to stop self-referencing loop in .Net Core Web API? : <p>I'm having some issues which I'm guessing are related to self-referencing using .NET Core Web API and Entity Framework Core. My Web API starting choking when I added .Includes for some navigation properties.</p>
<p>I found what appears to be a solution in t... | 0debug |
Compare each element of list with other elements in list : <p>I have two lists </p>
<p>list 1= [Hello How are you]</p>
<p>list 2= [Hello How me you]</p>
<p>I want to compare each element of list 1 to list 2 and then change colour of elements accordingly like matched should be green and unmatched should be red. Pleas... | 0debug |
Dynamic allocation and Arrays to find average : Alright did i implement `float overallavg(float* matrix, int rows, int cols)`correctly? I think i didn't. I'm trying to Return the average value of the elements of the array pointed to by matrix. Should I call the other two functions into the overall one and then divide b... | 0debug |
Getting an item from a nested dictionary using a list of indexes - python : <p>I have an odd question. If I were to have a dictionary like so:</p>
<pre><code>{"foo":{"abc":123},"bar":{"def":456},"biz":789}
</code></pre>
<p>and I had a list of indexes like so:</p>
<pre><code>["foo","abc"]
</code></pre>
<p>How would ... | 0debug |
Convert datetime to specified format in c#? : <p>I want to convert 'yy/MM/dd HH:mm:ss' format like 17/07/18 06:30:20 to Jul.18, 2017 06:30:20 in c#. What is the best way to do that? </p>
| 0debug |
static void spapr_hotplug_req_event(uint8_t hp_id, uint8_t hp_action,
sPAPRDRConnectorType drc_type,
union drc_identifier *drc_id)
{
sPAPRMachineState *spapr = SPAPR_MACHINE(qdev_get_machine());
struct hp_log_full *new_hp;
struct ... | 1threat |
void bdrv_commit_all(void)
{
BlockDriverState *bs;
QTAILQ_FOREACH(bs, &bdrv_states, list) {
bdrv_commit(bs);
}
}
| 1threat |
I need to store keys and values dynamically in hash of hash.I know i can't use %hash[$i]. So how to proceed. Any help will be appreciated : use Data::Dumper;
print "enter number of orders";
$count=<STDIN>;
my @arr;
my @order;
my @protocol;
my @message_length;
my @logon;
my @v... | 0debug |
Using the do while :
I'm completely lost on some homework
Using a while loop, prompt the user to enter 5 numbers
Display the sum of these numbers after they have been entered
Thanks! | 0debug |
void tcg_gen_atomic_cmpxchg_i32(TCGv_i32 retv, TCGv addr, TCGv_i32 cmpv,
TCGv_i32 newv, TCGArg idx, TCGMemOp memop)
{
memop = tcg_canonicalize_memop(memop, 0, 0);
if (!parallel_cpus) {
TCGv_i32 t1 = tcg_temp_new_i32();
TCGv_i32 t2 = tcg_temp_new_i32();
... | 1threat |
add Strings and integers to Collection : <p>i have implemented a interface and now i have to implement a method, where i have to add Strings and Integers into Collections.I tried c.add but it don´t work. Any ideas how i could do that?</p>
<p>Kind Regards.<br>
E.C</p>
<pre><code>public class AnswerList implements Answ... | 0debug |
Function of Base Number 10 to 2,8,16 Ploblem? : <p>I Beginner to Coding and English language maybe not good. (I'm living Bangkok,Thailand)</p>
<p>I created Function Base number 10 to 2,8,16 by using with Switch Case.</p>
<p>You can see my code C++ at here : </p>
<p><a href="https://gist.github.com/anonymous/5d31d216... | 0debug |
Lookup a value and Index Match Table - If a Date is between 2 dates with criteria : I would like to look up first ID match with second ID, if found then match first date with the given range date within same raw and then add type of leave according to the first date if matched
by using Vlookup / Match index /if
[... | 0debug |
No provider for ComponentLoaderFactory : <p>I updated my angular2 project and before it was working fine. However now I am getting the following error:</p>
<pre><code>Error: Uncaught (in promise): Error: Error in ./RibbonComponent class
RibbonComponent - inline template:4:5 caused by: No provider for
ComponentLoader... | 0debug |
How to get back to CMD prompt to resume batch file after ps1 has run : <p>Calling a powershell command from CMD batch file but the CMD stays in powershell mode. How do I exit powershell mode (in command prompt) and continue the batch file?
When I run the current batch file, I have to type exit to exit the powershell s... | 0debug |
Flexbox 3 divs, two columns, one with two rows : <p>I am trying to take</p>
<pre><code><div></div>
<div></div>
<div></div>
</code></pre>
<p>Three sequential divs and turn it into below. Where red is div 1, green is div 2, blue is div 3.</p>
<p>I can do this with floats, something ... | 0debug |
Python + OpenCV: OCR Image Segmentation : <p>I am trying to do OCR from this toy example of Receipts. Using Python 2.7 and OpenCV 3.1.</p>
<p><a href="https://i.stack.imgur.com/WQbGH.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/WQbGH.jpg" alt="enter image description here"></a></p>
<p>Grayscale + Blur + ... | 0debug |
copy from text file into datatable needs to be split : private void button2_Click(object sender, EventArgs e)
{
DataTable dt = new DataTable();
DataColumn col = new DataColumn("test");
col.DataType = System.Type.GetType("System.String");
... | 0debug |
how to enter a base value and an overide value on excel : Let me explain it with an example.
I'm pulling Sales data from a website and doing calculations on it, so that for instance I would have two columns:
Sales Company A | 15000 (from the website)
Sales Company B | 24000 (from the website)
------------------... | 0debug |
Anaconda export Environment file : <p>How can I make anaconda environment file which could be use on other computers?</p>
<p>I exported my anaconda python environment to YML using <code>conda env export > environment.yml</code>. The exported <code>environment.yml</code> contains this line <code>prefix: /home/superd... | 0debug |
int select_watchdog_action(const char *p)
{
int action;
char *qapi_value;
qapi_value = g_ascii_strdown(p, -1);
action = qapi_enum_parse(&WatchdogAction_lookup, qapi_value, -1, NULL);
g_free(qapi_value);
if (action < 0)
return -1;
watchdog_action = action;
return 0;
}... | 1threat |
Substrings in C+ : I am having trouble with this problem any tips on how to solve it would be appreciated. Thanks in advance. "This function finds the first occurrence of toFind in original and returns an integer representing the index of the first element of the toFind substring in original. For example if toFind was... | 0debug |
Unable to insert integer in QString : I have a QString **strLayout** which has value `"3,1,0"`.
I want to change it to "**2,1,0**".
So I extracted the first character, converted to number and subtracted 1 from it:
int temp = (strLayout.at(0).digitValue() - 1);
Now, I want it to write back to original QS... | 0debug |
Keras: model.predict for a single image : <p>I'd like to make a prediction for a single image with Keras. I've trained my model so I'm just loading the weights. </p>
<pre><code>from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D
fro... | 0debug |
void ff_vc1dsp_init_altivec(VC1DSPContext* dsp)
{
if (!(av_get_cpu_flags() & AV_CPU_FLAG_ALTIVEC))
return;
dsp->vc1_inv_trans_8x8 = vc1_inv_trans_8x8_altivec;
dsp->vc1_inv_trans_8x4 = vc1_inv_trans_8x4_altivec;
dsp->put_no_rnd_vc1_chroma_pixels_tab[0] = put_no_rnd_vc1_chroma_mc8_altivec;... | 1threat |
While i am Loging In SqlServer Shoing This Error Plz Help Me Out How To resolve It : [Sql Server Error[\]\[1\]][1]
[1]: http://i.stack.imgur.com/xjFhQ.jpg
While i am Loging In SqlServer Shoing This Error Plz Help Me Out How To resolve It | 0debug |
static void gen_mfmsr(DisasContext *ctx)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
#else
if (unlikely(ctx->pr)) {
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG);
return;
}
tcg_gen_mov_tl(cpu_gpr[rD(ctx->opcode)], cpu_msr);
#endif
}
| 1threat |
static void copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell)
{
int h, w, mv_x, mv_y, offset, offset_dst;
uint8_t *src, *dst;
offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2);
dst = plane->pixels[ctx->buf_sel] + offset_dst;
mv_y = cell-... | 1threat |
static int vnc_zlib_stop(VncState *vs)
{
z_streamp zstream = &vs->zlib.stream;
int previous_out;
vs->zlib.zlib = vs->output;
vs->output = vs->zlib.tmp;
if (zstream->opaque != vs) {
int err;
VNC_DEBUG("VNC: initializing zlib stream\n");
... | 1threat |
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx)
{
const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8;
if (avctx->lowres==1) {
c->idct_put = ff_jref_idct4_put;
c->idct_add = ff_jref_idct4_add;
c->idct = ff_j_rev_dct4;
c->perm_type... | 1threat |
static void clear_program(MpegTSContext *ts, unsigned int programid)
{
int i;
clear_avprogram(ts, programid);
for(i=0; i<ts->nb_prg; i++)
if(ts->prg[i].id == programid)
ts->prg[i].nb_pids = 0;
}
| 1threat |
Haskell: Variable not in scope : <p>I have a code as:</p>
<pre><code>main = interact $ show . maxsubseq . map read . words
maxsubseq :: (Ord a,Num a) => [a] -> (a,[a])
maxsubseq = snd . foldl f ((0,[]),(0,[])) where
f ((h1,h2),sofar) x = (a,b) where
a = max (0,[]) (h1 + x ,h2 ++ [x])
b = max sofar a
</code></... | 0debug |
static av_unused FFPsyWindowInfo psy_3gpp_window(FFPsyContext *ctx,
const int16_t *audio,
const int16_t *la,
int channel, int prev_type)
{
int i, j;
int br ... | 1threat |
static int dca_subsubframe(DCAContext *s, int base_channel, int block_index)
{
int k, l;
int subsubframe = s->current_subsubframe;
const float *quant_step_table;
float (*subband_samples)[DCA_SUBBANDS][8] = s->subband_samples[block_index];
LOCAL_ALIGNED_16(int32_t, block, [8 * DCA_SUB... | 1threat |
static void vhost_log_put(struct vhost_dev *dev, bool sync)
{
struct vhost_log *log = dev->log;
if (!log) {
return;
}
dev->log = NULL;
dev->log_size = 0;
--log->refcnt;
if (log->refcnt == 0) {
if (dev->log_size && sync) {
vhost_log_sync_ra... | 1threat |
MediaRecorder Corrupt Video Recording Samsung : <p>I am trying to run Google sample to record 10 second video using <code>MeadiaRecorder</code> inside my application. But when playing back recorder video it is getting corrupt.</p>
<ul>
<li>Firstly it plays full audio;</li>
<li>Then plays the first first frame of video... | 0debug |
static int vfio_add_ext_cap(VFIOPCIDevice *vdev)
{
PCIDevice *pdev = &vdev->pdev;
uint32_t header;
uint16_t cap_id, next, size;
uint8_t cap_ver;
uint8_t *config;
config = g_memdup(pdev->config, vdev->config_size);
for (next = PCI_CONFIG_SPACE_SIZE; next;
... | 1threat |
IOT , Raspbarry pi, Windows IOT : I want to upload Arduino sketch via Raspberry pi using windows 10 IOT platform (Visual studio universal application), Hava anybody idea how to do this
Sketch from cloud > > > > Raspberry pi ------> Arduino
In this diagram sketch download from the cloud and via Rpi upload to Ardu... | 0debug |
void do_op_602_mfrom (void)
{
if (likely(T0 < 602)) {
#ifdef USE_MFROM_ROM_TABLE
#include "mfrom_table.c"
T0 = mfrom_ROM_table[T0];
#else
double d;
d = T0;
d = float64_div(d, 256, &env->fp_status);
d = float64_chs(d);
d = exp10(d);
... | 1threat |
static void celt_denormalize(CeltFrame *f, CeltBlock *block, float *data)
{
int i, j;
for (i = f->start_band; i < f->end_band; i++) {
float *dst = data + (ff_celt_freq_bands[i] << f->size);
float norm = exp2f(block->energy[i] + ff_celt_mean_energy[i]);
for (j = 0; j < ff_celt_f... | 1threat |
Recoding 0-3 values in STATA : I am working on my thesis and hit a road block. I have speech data set so here is how it is coded now:
Hypernasality (0-3)
Speech understandibility (0-3)
Speech Acceptability (0-3)
Where 0 is good 3 is severe deviation from normal speech.
Hypnasality (0 and 1)
Audible Air Emissio... | 0debug |
How can I deal with the timezone issue with the Angular 4 date pipe? : <p>I have a date value in each of my objects that I can Print like this:</p>
<pre><code><td> {{competition.compStart }}</td>
</code></pre>
<p>And here is how it looks: </p>
<pre><code>1931-05-31T00:00:00.000+0000
</code></pre>
<p>In ... | 0debug |
CheckBox: Is it possible to change check symbol? : <p>Is is possible to change the "tick" in checkbox to "X" on selection of it?</p>
<p>If yes, then please let me know how can i get it working using anything like HTML,CSS,Kendo UI?</p>
<p>Thanks!</p>
| 0debug |
Can someone help me with my Binary Search code please? : I don't konw what's wrong with this binary search code of mine. It seems fine to me, but always displaying "not found" in output. I don't know why. Can someone idenyify the problem?
#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<s... | 0debug |
how can i convert this script of sqlserver to mysql with the same logic? : [enter image description here][1]
[1]: https://i.stack.imgur.com/VfLAV.png
i have this script in sqlserver but how can i use this logic to mySQL.. it has different syntax. thanks in advance for the help. | 0debug |
int monitor_get_fd(Monitor *mon, const char *fdname)
{
mon_fd_t *monfd;
LIST_FOREACH(monfd, &mon->fds, next) {
int fd;
if (strcmp(monfd->name, fdname) != 0) {
continue;
}
fd = monfd->fd;
LIST_REMOVE(monfd, next);
qemu_free(m... | 1threat |
Hide a div element when other div is not found : <p>How can I hide a div element when a other div element with a specifiv ID is not found?</p>
<p>For example if this div is not found in the whole HTML-Code:</p>
<pre><code><div id="found">I'm here</div>
</code></pre>
<p>then hide following div:</p>
<pre>... | 0debug |
expected expression before -return value- : <p>Given the following function:</p>
<pre><code>image_ret* minify_1(image_src img_src, CLIENT* cl) {
image_ret* img_ret;
magickminify_init();
magickminify(img_src.image_src_val, img_src.image_src_len, (ssize_t*)&img_ret->image_ret_len);
return image_ret;
}
</c... | 0debug |
static void adaptive_gain_control(float *out, const float *in,
const float *speech_synth,
int size, float alpha, float *gain_mem)
{
int i;
float speech_energy = 0.0, postfilter_energy = 0.0, gain_scale_factor;
float mem = *gain_mem;
... | 1threat |
I need to replace specific words in a string with the words defined as values in my hash : [My Attempt][1]
[1]: https://i.stack.imgur.com/NnKvI.png
I've been stuck on this exercise for some time now, i need some help on getting the desired output. The aim is to replace specific words in a string by the values... | 0debug |
Cyrillic / Russian characters SQL Server : Im getting data in Cyrillic formats (russian characters) and loaded perfectly in tables with nvarchar datatype. But i have a function which will convert cyrillic into english. That function on table to be applied on fields if its containing russian characters.
Please help... | 0debug |
required variable , found value (beginer) : [ in the if statement is returning as unexpected type– required: variable found: value. I tried == and that obviously didn't work. Any insight?][1]
[1]: https://i.stack.imgur.com/HxORP.png | 0debug |
performance issue while running the web project using tomact : I have build a environment on my laptop in which I build the tomcat server on my main OS (Windows 7) and Oracle server on Virtual Machine using VMWare on Linux OS (Redhat 5).
Now, When I am running my project, tomcat keeps loading the page and shows "wai... | 0debug |
static void check_reserved_space (target_phys_addr_t *start,
target_phys_addr_t *length)
{
target_phys_addr_t begin = *start;
target_phys_addr_t end = *start + *length;
if (end >= 0x1e000000LL && end < 0x1f100000LL)
end = 0x1e000000LL;
if (begin >= 0x1e... | 1threat |
void syscall_init(void)
{
IOCTLEntry *ie;
const argtype *arg_type;
int size;
int i;
#define STRUCT(name, list...) thunk_register_struct(STRUCT_ ## name, #name, struct_ ## name ## _def);
#define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def);
... | 1threat |
static int dnxhd_decode_dct_block_10(const DNXHDContext *ctx,
RowContext *row, int n)
{
return dnxhd_decode_dct_block(ctx, row, n, 6, 8, 4);
}
| 1threat |
Docker ip for windows : <p>I'm testing out Docker with a basic .NET core project. I Build and image from this docker file: </p>
<pre><code>FROM microsoft/dotnet:latest
COPY . /app
WORKDIR /app/API
RUN ["dotnet", "restore"]
RUN ["dotnet", "build"]
EXPOSE 5000/tcp
CMD ["dotnet", "run", "--server.urls", "http://*:5... | 0debug |
error: expected primary-expression before ‘slide’ : <p>I am learning C++ but stuck now. The program of mine is showing the error</p>
<pre><code>error: expected primary-expression before ‘slide’
</code></pre>
<p>I referred <a href="https://stackoverflow.com/questions/11507607/c-expected-primary-expression-before">this... | 0debug |
calling template nonstatic method from partially specialized template method : <p>The following <code>method</code> call fails because it is declared as non-static function. I don't understand why. </p>
<pre><code>struct Test
{
template<typename T> method(){return T();}
template<typename S> struct... | 0debug |
Check if value in list ignoring the last few chars : <p>I have a list of files (some ends with _HHMMss.<strong>* where *</strong> is the extension).</p>
<p>I want to check if a specific file exist in the list ignoring the "_HHMMss", means:
if I have a list:</p>
<pre><code>A_Log_YYYY_MM_DD_121122.csv
B_Log_YYYY_MM_DD_... | 0debug |
One Definition Rule - Multiple definition of inline functions : <p>I was reading ODR and as the rule says <code>"In the entire program, an object or non-inline function cannot have more than one definition"</code> and I tried the following...</p>
<p>file1.cpp</p>
<pre><code>#include <iostream>
using namespace s... | 0debug |
static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int i;
char header[MAX_FRAME_HEADER+1];
int ret;
int64_t off = avio_tell(s->pb);
for (i = 0; i < MAX_FRAME_HEADER; i++) {
header[i] = avio_r8(s->pb);
if (header[i] == '\n') {
header[i + 1] = 0;
... | 1threat |
void bdrv_init(void)
{
bdrv_register(&bdrv_raw);
bdrv_register(&bdrv_host_device);
bdrv_register(&bdrv_cow);
bdrv_register(&bdrv_qcow);
bdrv_register(&bdrv_vmdk);
bdrv_register(&bdrv_cloop);
bdrv_register(&bdrv_dmg);
bdrv_register(&bdrv_bochs);
bdrv_register(&bdrv_vpc);
... | 1threat |
Javascript HTML Redirect : <p>Code Purpose Question</p>
<p>I am trying to determine the purpose of the line:
window.location = "<a href="https://google.com" rel="nofollow noreferrer">https://google.com</a>";</p>
<pre><code><<!-- For IE <= 9 -->
<!--[if IE]>
<script type="text/javascript">
... | 0debug |
DriveInfo *drive_init(QemuOpts *opts, BlockInterfaceType block_default_type)
{
const char *buf;
const char *file = NULL;
const char *serial;
const char *mediastr = "";
BlockInterfaceType type;
enum { MEDIA_DISK, MEDIA_CDROM } media;
int bus_id, unit_id;
int cyls, heads, secs, tr... | 1threat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.