problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
What should i do when offset fetch not working in SQL 2017 : Please help me I think it is in correct syntax.
But why it alerts me incorrect in SQL2017
[![enter image description here][1]][1]
[1]: https://i.stack.imgur.com/YXFPR.png | 0debug |
static void evolve(AVFilterContext *ctx)
{
LifeContext *life = ctx->priv;
int i, j;
uint8_t *oldbuf = life->buf[ life->buf_idx];
uint8_t *newbuf = life->buf[!life->buf_idx];
enum { NW, N, NE, W, E, SW, S, SE };
for (i = 0; i < life->h; i++) {
for (j = 0; j < life->w; j+... | 1threat |
Detecting matching bits in C++ : <p>I'm trying to take two <code>bitset</code> objects, for example </p>
<pre><code>a = 10010111
b = 01110010
</code></pre>
<p>and remove bits from both variables if they match in the same position/index. So we'd be left with</p>
<pre><code>a = 100xx1x1 = 10011
b = 011xx0x0 = 01100
</... | 0debug |
Encrypt data before sending to SQL by VB.NET : <p>I need to create an application where most of the data written to DB is encrypted. For that sake it shouldn't be visible/obtainable by any of the super users who can access that DB Server. Which is ok because the data is to be encrypted. The problem is that I should not... | 0debug |
Generating heatmap layer for milions of points : <p>I'm using heatmap layer from Google Maps to display a heatmap, however, I now have too many points and it stopped working, because browser cannot handle it anymore. I've found that they provide Fusion Tables, but they're also limited: to 100k rows, which is way too lo... | 0debug |
static void qcow2_close(BlockDriverState *bs)
{
BDRVQcow2State *s = bs->opaque;
qemu_vfree(s->l1_table);
s->l1_table = NULL;
if (!(s->flags & BDRV_O_INACTIVE)) {
qcow2_inactivate(bs);
}
cache_clean_timer_del(bs);
qcow2_cache_destroy(bs, s->l2_table_cache);
qco... | 1threat |
Serving static javascript in nodejs : I'm trying to serve my bootstrap.min.js to the page. But for some reason it isn't working. But the bootstrap.min.css works perfectly fine. What did I do wrong?
[![Image of the code in Atom][1]][1]
[1]: https://i.stack.imgur.com/L9pGs.png
In the picture you can see my s... | 0debug |
Array pointer data being cleared in between function calls without an explicit command? : <p>I have the following issue:</p>
<p>In a C++ program I have a global data structure declared as <code>Renderer Rendering_Handler</code>, which contains a member field defined as <code>vector<Render_Info> visble objects</c... | 0debug |
"network not manually attachable" when running one-off command against docker swarm network : <p>I'm trying to run a one-off command to initialise a database schema in a new docker swarm which is deployed with 1.13's new support for docker-compose files.</p>
<p>The swarm has the following network:</p>
<pre><code>$ do... | 0debug |
String's hascode value can be changed? : <p>I need one help to understand String class, I wrote a program where i have created one string with new keyword and other one with literal, below is program. here my confusion is why string s (literal one) got changed , as string is immutable so only value have to change why h... | 0debug |
Google Play Store Security Alert Says that your app contains Vulnerable JavaScript libraries how to remove the security warning? : <p>In Google Play Store am getting warning below like this,</p>
<p>Your app contains one or more libraries with known security issues. Please see this <a href="https://support.google.com/f... | 0debug |
plot mulitple lines in ggplot : I need to plot hourly data for different days using ggplot, and here is my dataset:
[enter image description here][1]
[1]: https://i.stack.imgur.com/lN7PN.png.
The data consists of hourly observations, and I want to plot each day's observation into one separate line.
Pleas... | 0debug |
session does not start when user first logs in on on the second attempt : <p>Please can you help, i am new to php but starting to get a bit of grip but sessions are causing me a problem, i have been stuck on this for a while now. </p>
<p>I have a basic html / php log in form, the form should put the username from the ... | 0debug |
Incorrect syntaxis near AND clause : I have this JOIN
LEFT MERGE JOIN
(SELECT VOUCHER,TAXITEMGROUP,TAXCODE,TAXAMOUNT,TAXAMOUNTCUR,SOURCERECID,
GENERALJOURNALACCOUNTENTRY FROM ##TGJAE TT
WHERE (TT.TAXCODE LIKE 'RISR%')) TTRISR
AND TT.POSTINGTYPE IN( 14,236,71)
AND TT.TRANSDATE betw... | 0debug |
static void dead_tmp(TCGv tmp)
{
int i;
num_temps--;
i = num_temps;
if (GET_TCGV(temps[i]) == GET_TCGV(tmp))
return;
while (GET_TCGV(temps[i]) != GET_TCGV(tmp))
i--;
while (i < num_temps) {
temps[i] = temps[i + 1];
i++;
}
temps[i] = tm... | 1threat |
why am i getting this java.lang.NumberFormatException? : Hi i have written the folwing code where i am declaring a string then extracting the numbers and then assigning it into a variable 'result' where i am trying to convert the numbers which is in a form of string into Integer.However i am getting an exception called... | 0debug |
My script works the first time and does anymore not after reload on this online IDE : <p>I have a slight problem with this online code editor. When I launch my snippet, it only works one time. If I try to bring any modification to the code, it crashes for unknown reasons.</p>
<p><a href="https://playcode.io/313059?tab... | 0debug |
Determine user's "Temperature Unit" setting on iOS 10 (Celsius / Fahrenheit) : <p>iOS 10 adds the ability for the user to set their "Temperature Unit" choice under Settings > General > Language & Region > Temperature Unit.</p>
<p>How can my app programmatically determine this setting so it can display the right te... | 0debug |
void helper_sysenter(void)
{
if (env->sysenter_cs == 0) {
raise_exception_err(EXCP0D_GPF, 0);
}
env->eflags &= ~(VM_MASK | IF_MASK | RF_MASK);
cpu_x86_set_cpl(env, 0);
cpu_x86_load_seg_cache(env, R_CS, env->sysenter_cs & 0xfffc,
0, 0xffffffff,
... | 1threat |
SwsVector *sws_cloneVec(SwsVector *a)
{
int i;
SwsVector *vec = sws_allocVec(a->length);
if (!vec)
return NULL;
for (i = 0; i < a->length; i++)
vec->coeff[i] = a->coeff[i];
return vec;
}
| 1threat |
void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *conf,
VirtIOBlockDataPlane **dataplane,
Error **errp)
{
VirtIOBlockDataPlane *s;
Error *local_err = NULL;
BusState *qbus = BUS(qdev_get_parent_bus(DEVICE(vdev)));
... | 1threat |
Get first two digits of a long long number : <p>Hello I have a <code>long long</code> number which varies from 13,15, and 16 digits in length. I want to get the first two digits(from the left) of these numbers.
For example:</p>
<pre><code>Enter Number = 1234567890123;
First 2 digits = 12
Enter Number = 453456789012345... | 0debug |
CharDriverState *qemu_chr_open(const char *filename)
{
const char *p;
if (!strcmp(filename, "vc")) {
return text_console_init(&display_state);
} else if (!strcmp(filename, "null")) {
return qemu_chr_open_null();
} else
if (strstart(filename, "tcp:", &p)) {
return ... | 1threat |
regex find all utf8 text, started with # and end by space or enter : <p>I want render Utf8 text and link all tag that started with <code>#</code> and ended with <code>space</code> or <code>enter</code> or any separator such as <code>\r</code> <code>\t</code> <code>\n</code>.</p>
<p>text example:</p>
<pre><code>Тексто... | 0debug |
Type cannot be used as an index type : <p>Go to <a href="https://www.typescriptlang.org/play/index.html" rel="noreferrer">https://www.typescriptlang.org/play/index.html</a> and paste: </p>
<pre><code>let userTypes = {};
let keys = Object.keys[userTypes];
</code></pre>
<p>receive error:</p>
<pre><code>error TS2538: ... | 0debug |
Is there any way to remove VSTS agent without PAT? : <p>I'm trying to remove a VSTS agent from a system, but I no longer possess the Personal Access Token (PAT) originally used during setup. An answer on <a href="https://social.msdn.microsoft.com/Forums/vstudio/en-US/431f9a06-db69-49d4-8bc0-3bff9911f959/vsts-private-ag... | 0debug |
I'm having some problems when I try localhost:3000 for programming with Google Chrome Browser : <p>I'm having many problems when I try use my localhost:3000 for programming in Ruby On Rails 4.
When I put in the Chrome browser in my Mac OS X "El Capitan".
This redirect's of this link</p>
<pre><code>http://www.free-mer... | 0debug |
Changing words on my website whilesomeone is logged in : <p>How can I set words on a page, in my case the words: "sign up/login" change to "profile" when someone is logged in on my site?</p>
<p>I also want to add words that say, "welcome (profile name)</p>
<p>(Website is in html5 and the page has a .php extension, on... | 0debug |
Python re.search Patterns : <p>I have a bunch of strings that consist of Q, D or T. Below are some examples.</p>
<pre><code> aa= "QDDDDQDTDQTD"
bb = "QDT"
cc = "TDQDQQDTQDQ"
</code></pre>
<p>i am new to re.search, for each string, is it possible to get all patterns with any le... | 0debug |
static int eth_can_rx(NetClientState *nc)
{
struct xlx_ethlite *s = DO_UPCAST(NICState, nc, nc)->opaque;
int r;
r = !(s->regs[R_RX_CTRL0] & CTRL_S);
return r;
}
| 1threat |
float on the <p> now working like float only if i aplied to img : in the next code if u use float left or right for the image work fine but if u use for the <p> i dont know why but is not working, i thinked that float was the same for bot if u applied float left and dont do a clear both will change the overflow but her... | 0debug |
my jsp page gets error while inserting data into mysql databse : com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'gender' in 'field list'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
at com.mysql.jdbc.MysqlIO.sen... | 0debug |
iam beginner in android testing with Mockito : i want to test this method using mockito and unit testing
`public class CurrentIP {
public static String getIPAddress() {
try {
List<NetworkInterface> interfaces = Collections.list(NetworkInterface.getNetworkInterfaces());
for... | 0debug |
static int unpack_block_qpis(Vp3DecodeContext *s, GetBitContext *gb)
{
int qpi, i, j, bit, run_length, blocks_decoded, num_blocks_at_qpi;
int num_blocks = s->coded_fragment_list_index;
for (qpi = 0; qpi < s->nqps-1 && num_blocks > 0; qpi++) {
i = blocks_decoded = num_blocks_at_qpi = 0;
... | 1threat |
Removing spaces while printing with python : I'm printing my output in a file with a command like this
print >> outfile, columns2[0],"\t",columns2[1],"\t",columns2[2]
My problem is that I have a "space" at the end of the content of each column.
I know some times it can be solve with "sep", like this
... | 0debug |
Most efficient Rails query method : <p>I've been looking into a few ways of writing efficient ActiveRecord queries and I thought I might put it out to gather a consensus on who thinks what might be best.</p>
<pre><code>@page = @current_shop.pages.where(state: "home").first
</code></pre>
<p>At the moment, I've surmise... | 0debug |
PHP: How to constantly add to a database : <p>I'll be constantly adding stock prices into a database,
But what "settings/variables" do I put into the database to allow it to accept multiple values for a field?
So later I can echo the SQL Database out?</p>
| 0debug |
Add a random prefix to the key names to improve S3 performance? : <p>You expect this bucket to immediately receive over 150 PUT requests per second. What should the company do to ensure optimal performance?</p>
<p>A) Amazon S3 will automatically manage performance at this scale.</p>
<p>B) Add a random prefix to the k... | 0debug |
Spark UDF for StructType / Row : <p>I have a "StructType" column in spark Dataframe that has an array and a string as sub-fields. I'd like to modify the array and return the new column of the same type. Can I process it with UDF? Or what are the alternatives?</p>
<pre><code>import org.apache.spark.sql.types._
import o... | 0debug |
Flutter: upgrade the version code for play store : <p>i have published an application on the play store with flutter, now i want to upload a new version of the application. I am trying to change the version code with: </p>
<blockquote>
<p>flutter build apk --build-name=1.0.2 --build-number=3 </p>
</blockquote>
<p>o... | 0debug |
How do I convert a list to Uppercase : I am new to coding and I need help with this coding problem .
my problem is that I need to convert the "letter_guessed" input to lower case ,if its upper case and if the uppercase letter is already exists inside the list as a lower case it will return false but I cant get to do ... | 0debug |
cursor.execute('SELECT * FROM users WHERE username = ' + user_input) | 1threat |
Resize dynamic string array : <p>How can I resize a dynamic multidimensional array <code>std::string**</code> in C++ without using C methods like <code>malloc/free</code>?</p>
| 0debug |
static int ljpeg_encode_bgr(AVCodecContext *avctx, PutBitContext *pb,
const AVFrame *frame)
{
LJpegEncContext *s = avctx->priv_data;
const int width = frame->width;
const int height = frame->height;
const int linesize = frame->linesize[0];
uint16_t... | 1threat |
Store Data from formatted text file to Linked List c++ : I'm working on a Project @Student Course Registration System, I'm having problems Reading From a Text File and storing it in Singly Linked List, which gets updated every time a new student is added. The Data is stored in an formatted way. The Problem is my Struct... | 0debug |
Using php expire cookie after 30th visit : <p>I have cookie with useranme "ABC" . How can I set it,such that it would expire after 30th visit.</p>
| 0debug |
why we have to use index!=1 for alphabets in java : Iam unable to get why we should use idx != -1 in a if statement
here is my friend's code
public static String encrypt(String input, int key)
{
String alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
String shifted =alphab... | 0debug |
void helper_retry(CPUSPARCState *env)
{
trap_state *tsptr = cpu_tsptr(env);
env->pc = tsptr->tpc;
env->npc = tsptr->tnpc;
cpu_put_ccr(env, tsptr->tstate >> 32);
env->asi = (tsptr->tstate >> 24) & 0xff;
cpu_change_pstate(env, (tsptr->tstate >> 8) & 0xf3f);
cpu_put_cwp64(env, tsptr->... | 1threat |
Run triggered Azure WebJob from Code : <p>I created a console application upload as Azure trigger Webjob. It is working fine when I run it from Azure Portal. I want to run this from my C# code. I don't want to use Queue or service bus. I just want to trigger it when user perform a specific action in my web app. </p>
<... | 0debug |
int vhost_set_vring_enable(NetClientState *nc, int enable)
{
VHostNetState *net = get_vhost_net(nc);
const VhostOps *vhost_ops;
nc->vring_enable = enable;
if (!net) {
return 0;
}
vhost_ops = net->dev.vhost_ops;
if (vhost_ops->vhost_set_vring_enable) {
return v... | 1threat |
Signing ElasticSearch AWS calls : <p>I'm attempting to sign all of our AWS calls to ElasticSearch however the response is always;</p>
<p><code>User: anonymous is not authorized to perform: es:ESHttpGet on resource:</code></p>
<p>I've tried multiple key pairs and IAM users.</p>
<p>The calls within our PHP are made us... | 0debug |
send file in c# socket worck in same machine but not in different machine : i don't speak English very well so I'm sorry if my question is not clear.
My problem is that I wrote a client/server application to send file. It works if the server and client are on the same machine, but when I put the server on another ma... | 0debug |
How can I define a optional part in the pattern? : <p>Here is <a href="https://regex101.com/r/D6Qas8/3" rel="nofollow noreferrer">my content</a>:</p>
<pre><code><div>something</div>
<div>something else <p>paragraph</p></div>
</code></pre>
<p>And this is my pattern:</p>
<pre><code>... | 0debug |
pvscsi_convert_sglist(PVSCSIRequest *r)
{
int chunk_size;
uint64_t data_length = r->req.dataLen;
PVSCSISGState sg = r->sg;
while (data_length) {
while (!sg.resid) {
pvscsi_get_next_sg_elem(&sg);
trace_pvscsi_convert_sglist(r->req.context, r->sg.dataAddr,
... | 1threat |
static uint8_t *ogg_write_vorbiscomment(int offset, int bitexact,
int *header_len, AVDictionary **m, int framing_bit)
{
const char *vendor = bitexact ? "ffmpeg" : LIBAVFORMAT_IDENT;
int size;
uint8_t *p, *p0;
ff_metadata_conv(m, ff_vorbiscomment_metadata_c... | 1threat |
R: How to ignore case when using str_detect? : <p>stringr package provides good string functions.</p>
<p>To search for a string (ignoring case)</p>
<p>one could use</p>
<pre><code>stringr::str_detect('TOYOTA subaru',ignore.case('toyota'))
</code></pre>
<p>This works but gives warning </p>
<blockquote>
<p>Please ... | 0debug |
How to edit legend labels in google spreadsheet plots? : <p>I'm trying to plot some data in Google spreadsheet:</p>
<p><a href="https://i.stack.imgur.com/qRAuF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qRAuF.png" alt="enter image description here"></a></p>
<p>And as you may see all of the series are i... | 0debug |
PPC_OP(neg)
{
if (T0 != 0x80000000) {
T0 = -Ts0;
}
RETURN();
}
| 1threat |
def max_of_three(num1,num2,num3):
if (num1 >= num2) and (num1 >= num3):
lnum = num1
elif (num2 >= num1) and (num2 >= num3):
lnum = num2
else:
lnum = num3
return lnum | 0debug |
Can't enable phar writing : <p>I am actually using wamp 2.5 with PHP 5.5.12 and when I try to create a <strong>phar</strong> file it returns me the following message : </p>
<blockquote>
<p>Uncaught exception 'UnexpectedValueException' with message 'creating archive "..." disabled by the php.ini setting phar.readonly... | 0debug |
How to skip the first two lines of a file and read those lines that are multiple of 5 : <p>I have a file and I want to skip the first two lines and read those lines that are multiple of 5</p>
<p>line 1
line 2
line 3
line 4
line 5
line 6
line 7
line 8
line 9
line 10</p>
<p>output:
line 3
line 8
..
.
.</p>
| 0debug |
static int mov_finalize_stsd_codec(MOVContext *c, AVIOContext *pb,
AVStream *st, MOVStreamContext *sc)
{
if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
!st->codec->sample_rate && sc->time_scale > 1)
st->codec->sample_rate = sc->time_scale;
swi... | 1threat |
How to automatically toggle Airplane mode on Windows : <p>On my laptop I can toggle Airplane mode manually by pressing <kbd>FN</kbd>+<kbd>F12</kbd>, I want to do the same thing automatically from VB6 project or VBA.</p>
<p>I did a lot of search and only found answers about Enable/Disable wireless adapter or using <cod... | 0debug |
In C I trying to do funtion of sum but the answer isn't the expected : I've been trying to do a program which it can sum to numbers, I want to do the one by funtions althought.
The funtion is call "sum", but program get " the sum is 0". What i need to debug ?
#include <stdio.h>
int sum()
... | 0debug |
Make absolute paths relative to the project root in Webpack : <p>I find that I need to type <code>../</code> a lot to <code>require()</code> files. My directory structure includes these:</p>
<pre><code>js/
components/
...
actions/
...
</code></pre>
<p>From the components folder, I need to do <code>import ... | 0debug |
Making nested lists in python : This was the question " Write a function *find_all(L, i)* that takes a nested list *L* and, an item *i* and, prints the indices of all occurrences of *i* in *L*.
I wrote this code
from string import *
def *find_all(L,i)*:
for *sub_list* in *L*:
if *i* in *sub_list*:
... | 0debug |
Define size for /dev/shm on container engine : <p>I'm running Chrome with xvfb on Debian 8. It works until I open a tab and try to load content. The process dies silently...</p>
<p>Fortunately, I have gotten it to run smoothly on my local docker using <code>docker run --shm-size=1G</code>.</p>
<p>There is <a href="ht... | 0debug |
Jquery auto width for a counter : Guys this is my site:
> codepen.io/anon/pen/KpXBYL
I created a Counter.
With + and - and in the middle you will see the number but if the number is 10000 you can not see it in the box.
Can someone add a Auto width code for the middle box ? | 0debug |
write one specific formula in python : <p>I have a question, everyone knows how can I write this formula with python? </p>
<p><a href="https://i.stack.imgur.com/eg7G5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eg7G5.png" alt="enter image description here"></a></p>
| 0debug |
Stuck with a syntax error with basic php function. : <p>I keep getting the following error for this function.</p>
<blockquote>
<p>Parse error: syntax error, unexpected '$tempsql' (T_VARIABLE) in
/home/vps20119/public_html/outlet/admin/internal/dcOrderFunctions.php
on line 6</p>
</blockquote>
<p>I don't get it. ... | 0debug |
javascript hoisting and execution context : <pre><code>var employeeId = 'abc123';
function foo() {
employeeId = '123bcd';
return;
var employeeId = function(){}
}
foo();
console.log(employeeId);
</code></pre>
<p>I am new to javascript programming, could someone explain to me why above
output is 'abc123' ... | 0debug |
can you please give an idea for our program to ignore spaces and count only alphabets is even small other wise caps : can you please give an idea for our program to ignore spaces and count only alphabets is even small other wise caps
public class evennumbersloop {
public static void main(String[] args) {
Stri... | 0debug |
Equivalent of C++ for loop in python : What will be the python equivalent to this simple C++ code :
for (i = 0; i < 10; i++)
{
for (j = 10; j > i; j--)
{
a[i]*a[j];
}
}
Especially I am having problem in the implementation of the second loop with 'j' using... | 0debug |
Angular validation with Required not working : <p>Simplest example ever not working.
I generated an Angular 4 application using the Angular CLI v1.0.6, changed the content of app.component.html to:</p>
<pre><code><form #form='ngForm' (ngSubmit)='submitForm(form.value)'>
<input type='email'
class='form-con... | 0debug |
I can't view the database content on a php page : <p>I can't view the database content on php page
I want to fetch data using ID
thats the code :</p>
<pre><code><?php
//connect with database
$servername = "localhost";
$userdbname = "root";
$dbpassword = "";
$dbname = "users";
$usid = 0;
$docname = '';
$conn = ne... | 0debug |
Yahoo Finance API changes (2017) : <p>Requesting data from Yahoo Finance seems to have changed or is now blocked. The request below for commodity data no longer works as of May 2017. Does anyone know if there is a new way to make this request? </p>
<pre><code>http://chartapi.finance.yahoo.com/instrument/1.0/GCQ17.CMX/... | 0debug |
float64 HELPER(ucf64_subd)(float64 a, float64 b, CPUUniCore32State *env)
{
return float64_sub(a, b, &env->ucf64.fp_status);
}
| 1threat |
Time complexity of the following function : <p>Please help me by giving the time complexity analysis of the following function.</p>
<pre><code>function (n)
{
for( i = 1 ; i <= n ; i + + )
{
for( j = 1 ; j <= n ; j+ = i )
{
print( “*” ) ;
}... | 0debug |
Can I use AND in a SWITH function in Access? : I have create this function to check holiday prices in MS Access:
Holiday Price: Switch([Holiday Type]="Single",£1000,[Holiday Type]="Couple",£2000,[Holiday Type]="Family",£4000)
This works but I'd like to add another field (Activity) from the table that checks if an... | 0debug |
@angular else angular2 library which one is the latest : I just started learning Angular2 and have a doubt with these two libraries that are present in angular2
Some examples has "@angular" in its import command and some example has "angular2" in its import command
which one among these is the latest library
... | 0debug |
How to create website with 100% reliability? : <p>I have PHP aplication with MySQL database. I want to use something to provide 100% access to website. How to do that when one server fall down another will take over whole traffic?</p>
<p>I was thinking about cloning serwer, add load balancer and set up master-master r... | 0debug |
static int rm_read_header(AVFormatContext *s, AVFormatParameters *ap)
{
RMContext *rm = s->priv_data;
AVStream *st;
ByteIOContext *pb = &s->pb;
unsigned int tag, v;
int tag_size, size, codec_data_size, i;
int64_t codec_pos;
unsigned int h263_hack_version, start_time, duration;
char buf[1... | 1threat |
static int load_elf_binary(struct linux_binprm * bprm, struct target_pt_regs * regs,
struct image_info * info)
{
struct elfhdr elf_ex;
struct elfhdr interp_elf_ex;
struct exec interp_ex;
int interpreter_fd = -1;
unsigned long load_addr, load_bias;
int load_add... | 1threat |
Is it ok to send to token from frontend to backend? : <p>If I have an application in which a user can connect to facebook from the frontend, it is ok to send the access token to the backend?</p>
<p>If there are security risks, what are them?</p>
| 0debug |
static void RENAME(postProcess)(const uint8_t src[], int srcStride, uint8_t dst[], int dstStride, int width, int height,
const QP_STORE_T QPs[], int QPStride, int isColor, PPContext *c2)
{
DECLARE_ALIGNED(8, PPContext, c)= *c2;
int x,y;
#ifdef COMPILE_TIME_MODE
const i... | 1threat |
Incorporating interactive shiny apps into Rmarkdown document for blogdown Hugo blog : <p>I am attempting to upload my first post to a Hugo blog using RMarkdown. Below you can find my code creating the document:</p>
<pre><code>---
title: "Untitled"
author: "Jorge"
date: "September 9, 2017"
output: html_document
runtim... | 0debug |
Adding '' to every character of a tuple sublist : <p>Hello I'm just finishing my Lorenz code but i have struggle with something, I can't add '' to a character of a list.</p>
<pre><code>my_sublist:[(0,0,0,0,0,0,0),(0,0,0,0,0,0,1),(0,0,0,0,0,1,0)]
</code></pre>
<p>and the output that I expect is:</p>
<pre><code>my_sub... | 0debug |
void ff_imdct_calc(MDCTContext *s, FFTSample *output,
const FFTSample *input, FFTSample *tmp)
{
int k, n8, n4, n2, n, j;
const uint16_t *revtab = s->fft.revtab;
const FFTSample *tcos = s->tcos;
const FFTSample *tsin = s->tsin;
const FFTSample *in1, *in2;
FFTComplex *z ... | 1threat |
Swift 2.x to swift 3, XCode complaining error : Non-optional expression of type 'String' used in a check for optionals : Migrating from Swift 2.x to swift 3, I have the warning on my code :
let response=NSString(data:data!,encoding:
String.Encoding.utf8.rawValue)
let responseArray:Array=response!.comp... | 0debug |
Is there a way to confirm a package-lock.json actually resolves all dependencies in a package.json? : <p>We want to add an automated check to our CI server that would prevent code from getting committed that updates a dependency in <code>package.json</code> but does not update the resolved dependency in <code>package-l... | 0debug |
BlockdevOnError bdrv_get_on_error(BlockDriverState *bs, bool is_read)
{
return is_read ? bs->on_read_error : bs->on_write_error;
}
| 1threat |
Changing method return from void to int still pass by value? : <p>I have referred to the various explanations around here on SO about pass by value and pass by reference in Java. So far the notion is that incase of primitive datatypes it goes pass by value and incase of reference and user defined datatypes it is pass b... | 0debug |
static void monitor_protocol_event_handler(void *opaque)
{
MonitorEventState *evstate = opaque;
int64_t now = qemu_clock_get_ns(QEMU_CLOCK_REALTIME);
qemu_mutex_lock(&monitor_event_state_lock);
trace_monitor_protocol_event_handler(evstate->event,
evstat... | 1threat |
Generate Thumbnail of Pdf in Android : <p>I want to generate the image(thumbnail) from pdf file just like done by <strong>WhatsApp</strong> as shown below
<a href="https://i.stack.imgur.com/fVTPy.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/fVTPy.jpg" alt="WhatsApp"></a></p>
<p>I have tried</p>
<ol>
<li>... | 0debug |
Accessing array index greater than the array size : <p>I always thought if I accessed an array index greater than the array size that it would cause a runtime error? But it seems to be happy to run and output zero. Is this compiler specific or OS specific? Will some different environments cause a runtime error when you... | 0debug |
how to show animation only once per applicaton run (Android) : I have 2 activities in my app, Activity 1 (with some elements) and Activity 2 which has Progress Bar (and the user needs to move between those all the time),
i want to show this progress bar in ony th first time the user moves to the activity 2, every tim... | 0debug |
Error:Data Binding does not support Jack builds yet : <p>I am implementing <code>DataBinding</code>, it is working perfect, but it is not allowing me to use <code>jackOptions</code>. It throws error <code>Data Binding does not support Jack builds yet</code> while build.</p>
<p>Here is my <code>build.gradle</code></p>
... | 0debug |
static int create_filtergraph(AVFilterContext *ctx,
const AVFrame *in, const AVFrame *out)
{
ColorSpaceContext *s = ctx->priv;
const AVPixFmtDescriptor *in_desc = av_pix_fmt_desc_get(in->format);
const AVPixFmtDescriptor *out_desc = av_pix_fmt_desc_get(out->format);
... | 1threat |
def neg_nos(list1):
for num in list1:
if num < 0:
return num | 0debug |
static int vmdk_open_vmfs_sparse(BlockDriverState *bs,
BlockDriverState *file,
int flags, Error **errp)
{
int ret;
uint32_t magic;
VMDK3Header header;
VmdkExtent *extent;
ret = bdrv_pread(file, sizeof(magic), &header, sizeof... | 1threat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.