problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
unable to delete tomcat server from eclipse : [I am unable to delete the previous existing server from the eclipse.Any help is much appreciated.][1]
[1]: https://i.stack.imgur.com/ugiOg.png | 0debug |
could anyone tell me if he ever saw this error on sql tools? : [enter image description here][1]
[1]: https://i.stack.imgur.com/be10r.png
i do not know what is the problem here
i tried to know better about this exception but all the details refer to the C# programming | 0debug |
Translate Message to Morse Code : <p>I am trying to translate a message into morse code. I am wondering how I can do this without typing a replace line (message = message.replace('a', '.-') for every single letter. Our instructor has provided us with this list of morse code to use. </p>
<pre><code>code = [["a", ".-"],... | 0debug |
Please help me with why the output is an error ? (I faced the question in an exam) : Can't understand why curly braces are making the difference.
#include<stdio.h>
int main
{
{
int a=3;.
}
{
printf("%d", a)... | 0debug |
How do I switch an img when the user clicks it? : <p>I'm using wordpress. I've turned an image that I made into a button, and when the user CLICKS it, I want the image to change to another image of the same size, but a different color. Does anyone have a simple way of doing this?</p>
<p>Can I do everything in the "tex... | 0debug |
static int uhci_broadcast_packet(UHCIState *s, USBPacket *p)
{
UHCIPort *port;
USBDevice *dev;
int i, ret;
#ifdef DEBUG_PACKET
{
const char *pidstr;
switch(p->pid) {
case USB_TOKEN_SETUP: pidstr = "SETUP"; break;
case USB_TOKEN_IN: pidstr = "IN"; break;
... | 1threat |
express routing mocha test : i have this test code for routing , how to make it function
///////////////////////////////////////////////////////////
describe("routing",function(){
it("should call function to return list of obj",function(done){
var server = require('../server.js')
request( server ... | 0debug |
kotlin if (bar == null) vs. bar ?: run : <p>Here is sample</p>
<pre><code>if (bar == null) {
// do something
}
</code></pre>
<p>vs.</p>
<pre><code>bar ?: run {
// do something.
}
</code></pre>
<ol>
<li>which one is best practice? </li>
<li>what is mutating property? </li>
<li>first one dosen't work with ... | 0debug |
static inline void gen_store(DisasContext *s, int opsize, TCGv addr, TCGv val)
{
int index = IS_USER(s);
s->is_mem = 1;
switch(opsize) {
case OS_BYTE:
tcg_gen_qemu_st8(val, addr, index);
break;
case OS_WORD:
tcg_gen_qemu_st16(val, addr, index);
break;
c... | 1threat |
static uint64_t gic_do_cpu_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
GICState **backref = (GICState **)opaque;
GICState *s = *backref;
int id = (backref - s->backref);
return gic_cpu_read(s, id, addr);
}
| 1threat |
Why do I get the error object reference not set to instance of an ojbect while adding an object to a list in c# wpf? : <p>I have a C# WPF application with a form in it. The form is supposed to take two values(firstName and lastName) and then use the Instructor class to add it to my listview element. On the line <code>... | 0debug |
Open Wifi Settings by "prefs:root=WIFI" failed in iOS 10 : <p>I was using prefs:root=WIFI url scheme in my app with prefs entered in info.plist to open directly the iOS settings application in Wi-Fi settings and it was working great on iOS 9 but it does not work anymore on iOS 10.</p>
<p>Does anyone know if this is ju... | 0debug |
How to filter array of dictionaries using nspredicate : <p>I am having an array of dictionaries with keys "name", "image", "email" and "phone" as keys. I want to filter the dictionaries containing email and phones separately using nspredicate, passing the dictionary key as search string. How can I achieve this. </p>
| 0debug |
What does gs protocol mean? : <p>I'm playing with <a href="https://cloud.google.com/speech/" rel="noreferrer">Google Speech Recognition API</a></p>
<p>After a successfully <a href="https://cloud.google.com/speech/docs/getting-started" rel="noreferrer">Getting started</a> I'm trying to understand and made some changes ... | 0debug |
Intl.NumberFormat either 0 or two fraction digits : <p>My formatter looks like this</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>const formatter = new Intl.NumberFormat('... | 0debug |
Bootstrap 3 and vertically centering responsive image in div : <p>How do I get the image to vertically center in a Div/Row. I have searched but all the solutions seem to point to this being a good one - but it won't work for me. I'm using Bootstrap 3...</p>
<p><a href="https://www.bootply.com/vQFalT6KxG" rel="nofollow... | 0debug |
Javascript - Auto click on a button on page load : <p>I am trying to auto click on a button with id btn on page load. This is my snippet.</p>
<pre><code><button id="btn">Click me</button>
<script>
document.getElementById('btn').click();
alert("h")
</script>
</code></pre>
<p>How can I give ... | 0debug |
Why having assert before main() causing compilation error? : Why assert is causing compilation error if I use it before main() call ?
It causes compilation error (Syntax error):
***"test.cpp:4:8: error: expected ')' before numeric constant"***
#include <stdio.h>
#include <assert.h>
asse... | 0debug |
Control multiple cameras with the same controls : <p>I have two different threejs scenes and each has its own camera. I can control each camera individually with a corresponding <code>TrackballControls</code> instance.</p>
<p>Is there a reliable way to 'lock' or 'bind' these controls together, so that manipulating one... | 0debug |
One-time login link in asp.net identity : <p>Some mobile apps like slack have popularized the idea of allowing your users to get a one-time use login link (Slack calls this the magic login link). </p>
<p>The idea is that you enter your email and instead of having to enter your password of a mobile, you request a magic... | 0debug |
ByteArrayOutputStream - get bytes from string : <p>How can I get similar result</p>
<pre><code>OutputStream outputStream = new ByteArrayOutputStream("asd".bytes())
</code></pre>
<p>this code don't compile</p>
| 0debug |
Dropdown on alert bootsrap v3 : ## Dropdown on alert box ##
I wanted to display a dropdown on my alert box
[What I have][1]
[1]: https://i.stack.imgur.com/Qefdk.png
I did this but nothing appears when I click on it.
That's my code :
[https://ghostbin.com/paste/wfqzv](https://ghostbin.com/paste/wf... | 0debug |
uint64_t mcf_uart_read(void *opaque, target_phys_addr_t addr,
unsigned size)
{
mcf_uart_state *s = (mcf_uart_state *)opaque;
switch (addr & 0x3f) {
case 0x00:
return s->mr[s->current_mr];
case 0x04:
return s->sr;
case 0x0c:
{
uint... | 1threat |
Use Tensorflow Object Detection API to detect small objects in images : <p>I'd like to use the Tensorflow <a href="https://github.com/tensorflow/models/tree/master/research/object_detection" rel="noreferrer">Object Detection API</a> to identify objects in a series of webcam images. The <a href="https://github.com/tens... | 0debug |
Forced Update of first two letter or mark as null if empty : Forced update of first letters if present else mark it as null when empty | 0debug |
YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48be, PIX_FMT_RGB48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, rgb48le, PIX_FMT_RGB48LE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48be, PIX_FMT_BGR48BE)
YUV2PACKED16WRAPPER(yuv2, rgb48, bgr48le, PIX_FMT_BGR48LE)
static av_always_inline void
yuv2rgb_write(uint8_t *_dest, in... | 1threat |
What kind of database I should use and how to design a database for ad network platform : <p>I want to build a ad serving platform like serving ads by words in the content. I want to make word as affiliated link. I have some campaigns with some tags words. When request comes to ad serving API it should serve suitable c... | 0debug |
static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args,
int opc)
{
int addr_reg, data_reg, arg0, arg1, arg2, mem_index, s_bits;
#if defined(CONFIG_SOFTMMU)
uint32_t *label1_ptr, *label2_ptr;
data_reg = *args++;
addr_reg = *args++;
mem_index = *args;
s_bits = op... | 1threat |
An array that takes the size depending on what I enter : <pre><code>import java.util.Scanner;
public class Singleton{
public static void main(String args[]){
Scanner input = new Scanner(System.in);
System.out.println("Enter number of students: ");
int number = input.nextInt();
String... | 0debug |
How to fix warning init() is deprecated : <p>For the code line:</p>
<pre><code>let bytesDecrypted = UnsafeMutablePointer<Int>()
</code></pre>
<p>I am getting the warning:
<strong>'init()' is deprecated: init() will be removed in Swift 3. Use <code>nil</code> instead</strong></p>
<p>What is the correct way ... | 0debug |
Add column to data frames with specific condition in Spark/scala : <p>I have a data frame of the form (shown below) where for every id has a corresponding count of elements in the bucket. The bucket takes 3 values low, med and high.</p>
<pre><code>+---+------+-----+
| id|bucket|count|
+---+------+-----+
|id1| low| ... | 0debug |
Incorrect results when validating email addresses with JavaScript : <p>I have the following regex pattern that I like to use to validate email addresses:</p>
<pre><code>^[a-zA-Z0-9!#\$%&'\*\+\-\/=\?\^_`\{\|\}~\.]+@[a-zA-Z0-9-_]+\.[a-zA-Z0-9-.]+[a-zA-Z0-9]$
</code></pre>
<p>It's intended for user input and to be p... | 0debug |
void tcg_prologue_init(TCGContext *s)
{
size_t prologue_size, total_size;
void *buf0, *buf1;
buf0 = s->code_gen_buffer;
s->code_ptr = buf0;
s->code_buf = buf0;
s->code_gen_prologue = buf0;
tcg_target_qemu_prologue(s);
buf1 = s->code_ptr;
flush_icache_range((... | 1threat |
void op_cp1_enabled(void)
{
if (!(env->CP0_Status & (1 << CP0St_CU1))) {
CALL_FROM_TB2(do_raise_exception_err, EXCP_CpU, 1);
}
RETURN();
}
| 1threat |
HttpClient POST request using x-www-form-urlencoded : <p>I'm trying to make a POST request with <code>x-www-form-urlencoded</code>content type header as follows:</p>
<pre><code>login(username, password): Observable<any> {
return this.http.post('/login', {
username: username,
password: password
... | 0debug |
conflicting types for 'main' in leetcode platform : <pre><code> #include<stdio.h>
#include<stdlib.h>
int* twoSum(int* nums, int numsSize, int target) {
int *a=(int *)malloc(2*sizeof(int));
int i,j;
for(i=0;i<numsSize;i++)
for(j=i+1;j<numsSize;j++)
if(nums[i]+nums[j]==target)
... | 0debug |
how to open web page and click on element in java android? : I'm building an app on Android android,
And I want it when I press any button in the application
It will open a web page and enter Text TextBox and click the button
On this web page automatically,
(All this should be run behind the scenes - אhat the user ... | 0debug |
static int parse_bsfs(void *log_ctx, const char *bsfs_spec,
AVBitStreamFilterContext **bsfs)
{
char *bsf_name, *buf, *saveptr;
int ret = 0;
if (!(buf = av_strdup(bsfs_spec)))
return AVERROR(ENOMEM);
while (bsf_name = av_strtok(buf, ",", &saveptr)) {
AVBi... | 1threat |
How to split up a large string into an array of individual sentences : <p>I have a string, with a bunch of sentences separated by periods. For example:</p>
<pre><code>const test = 'Dolore nostrud enim ea fugiat amet cupidatat enim. Fugiat qui tempor adipisicing velit et officia aliqua aliqua culpa ad veniam fugiat. Ve... | 0debug |
"non-declaration statement outside function body" error golang : <p>I keep getting an non-declaration statement outside function body error for my http func method. I'm not sure why it keeps coming up after I fixed some global variables.</p>
<pre><code> package main
import (
"net/http"
"github.com/gorilla/webs... | 0debug |
Can I setup VirtualHost with same Domain name and same Port : <p>AS topic, does my I idea come to true<br>
I need to define the DocumentRoot, ErrorLog and RedirectMatch for my symfony</p>
| 0debug |
static void gen_mtpr(int rb, int regno)
{
TCGv tmp;
int data;
if (rb == 31) {
tmp = tcg_const_i64(0);
} else {
tmp = cpu_ir[rb];
}
data = cpu_pr_data(regno);
if (data != 0) {
if (data & PR_BYTE) {
tcg_gen_st8_i64(tmp, cpu_env, data ... | 1threat |
static int reg_irqs(CPUS390XState *env, S390PCIBusDevice *pbdev, ZpciFib fib)
{
int ret, len;
ret = css_register_io_adapter(S390_PCIPT_ADAPTER,
FIB_DATA_ISC(ldl_p(&fib.data)), true, false,
&pbdev->routes.adapter.adapter_id);
assert(... | 1threat |
Jenkins Pipeline: How to write UTF-8 files with writeFile? : <p>I'm hoping this is not a bug and that I'm just doing something wrong. I have a Jenkins (v2.19.1) Pipeline job and in it's groovy script, I need to search and replace some text in an existing text file, on a Windows node.</p>
<p>I've used fart.exe and powe... | 0debug |
def check_String(str):
flag_l = False
flag_n = False
for i in str:
if i.isalpha():
flag_l = True
if i.isdigit():
flag_n = True
return flag_l and flag_n | 0debug |
Issue with connecting to sql database from visual studio : I've created a simple windows forms application in C# and now find it hard to connect it to an SQL database. I've created the database within visual studio itself. However, once I try to insert data I get an SQL exeption. My guess is there is problem in the con... | 0debug |
Qcow2Cache *qcow2_cache_create(BlockDriverState *bs, int num_tables)
{
BDRVQcowState *s = bs->opaque;
Qcow2Cache *c;
int i;
c = g_malloc0(sizeof(*c));
c->size = num_tables;
c->entries = g_malloc0(sizeof(*c->entries) * num_tables);
for (i = 0; i < c->size; i++) {
c->entri... | 1threat |
How to set state as an array and how to access them with setState and this.state : <p>I have created an array like this:</p>
<pre><code>state = {
arr: [ ]
}
</code></pre>
<p>I want to update state as well as access them </p>
<p>In my function I am using want to use it like </p>
<p><div class="snippet" d... | 0debug |
static void decode_p_block(FourXContext *f, uint16_t *dst, uint16_t *src, int log2w, int log2h, int stride){
const int index= size2index[log2h][log2w];
const int h= 1<<log2h;
int code= get_vlc2(&f->gb, block_type_vlc[1-(f->version>1)][index].table, BLOCK_TYPE_VLC_BITS, 1);
uint16_t *start= (uint16_t... | 1threat |
How to consolidate all applicable projects and nuget packages from the command line? : <p>I'm merging two solutions and now have the following situation</p>
<p><a href="https://i.stack.imgur.com/xpM4U.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xpM4U.png" alt="enter image description here"></a></p>
<p><... | 0debug |
@types/styled-components Duplicate identifier FormData : <p>If I add @types/styled-components in my project, I will have a bunch of errors in the build output:</p>
<pre><code>ERROR in /Users/me/projects/react/node_modules/@types/react-native/globals.d.ts(36,15):
TS2300: Duplicate identifier 'FormData'.
ERROR in /Use... | 0debug |
`this` is undefined in expressJS route handler : <p><strong>groups.js</strong></p>
<pre><code>class groupsCtrl {
constructor() {
this.info = "test";
}
get(res, req) {
console.log("LOG ! ", JSON.stringify(this));
}
}
module.exports = new groupsCtrl(); //singleton
</code></pre>
<p><strong>routes.js</st... | 0debug |
void helper_ctc1(CPUMIPSState *env, target_ulong arg1, uint32_t fs, uint32_t rt)
{
switch (fs) {
case 1:
if (!((env->active_fpu.fcr0 & (1 << FCR0_UFRP)) && (rt == 0))) {
return;
}
if (env->CP0_Config5 & (1 << CP0C5_UFR)) {
env->CP0_Status &= ~(1 ... | 1threat |
How do I make a property private in a class? : <pre><code>class makeAccount {
public $username;
public function __construct ($username,$password) {
$this->username = $username;
}
public function password($password) {
if(isset($password)) {
$this->password = $password;
return;
}
}
}
$u... | 0debug |
The iPhone 4 and iPhone 4s simulators disappeared after upgrading to Xcode 8. How do I get them back? : <p>I have these iPhone simulators:</p>
<ul>
<li>iPhone 5</li>
<li>iPhone 5s</li>
<li>iPhone 6</li>
<li>iPhone 6 Plus</li>
<li>iPhone 6s</li>
<li>iPhone 6s Plus</li>
<li>iPhone 7</li>
<li>iPhone 7 Plus</li>
<li>iPhon... | 0debug |
static void kvm_openpic_realize(DeviceState *dev, Error **errp)
{
SysBusDevice *d = SYS_BUS_DEVICE(dev);
KVMOpenPICState *opp = KVM_OPENPIC(dev);
KVMState *s = kvm_state;
int kvm_openpic_model;
struct kvm_create_device cd = {0};
int ret, i;
if (!kvm_check_extension(s, KVM_CAP_DEVIC... | 1threat |
How to disable "Run execution to here" in Visual Studio 15? : <p>How do I disable "Run execution to here" button that appears when moving cursor to the left of the code? It's really annoying when I accidentally click it while selecting code.</p>
<p><a href="https://i.stack.imgur.com/oWnc4.png" rel="noreferrer"><img sr... | 0debug |
static void png_filter_row(PNGDSPContext *dsp, uint8_t *dst, int filter_type,
uint8_t *src, uint8_t *last, int size, int bpp)
{
int i, p, r, g, b, a;
switch (filter_type) {
case PNG_FILTER_VALUE_NONE:
memcpy(dst, src, size);
break;
case PNG_FILTER_VAL... | 1threat |
How to find people near me using google maps in android : <p>I want to store user longitude and latitude in mysql and want to push a notification when user is in 2Km Range In Android </p>
| 0debug |
Make the page the same before the form was submitted : <p>I have tab panels created using jquery. Each contains forms. First tab is the default active.</p>
<p>After entering data in form, for example, at the third tab and submit it, the page refreshes, the data were gone. Also the active tab went back to the first tab... | 0debug |
App is rendering larger than viewport when I try to apply dynamic css sizing attributes : <p>I have tried applying 100vh to the divs root/body/application (these are my top 3 level divs) and my app continues to render larger than the viewport or browser window. I am using display: flex on the child divs.</p>
<p>I am t... | 0debug |
static int rm_assemble_video_frame(AVFormatContext *s, ByteIOContext *pb,
RMDemuxContext *rm, RMStream *vst,
AVPacket *pkt, int len)
{
int hdr, seq, pic_num, len2, pos;
int type;
hdr = get_byte(pb); len--;
type = hdr >> 6;
... | 1threat |
Difference between heartbeat.interval.ms and session.timeout.ms in Kafka consumer config : <p>I'm currently running kafka 0.10.0.1 and the corresponding docs for the two values in question are as follows:</p>
<p><strong>heartbeat.interval.ms -</strong>
The expected time between heartbeats to the consumer coordinator w... | 0debug |
HTML Table maximize-able to full screen : <p>I've been searching a lot to find a sample table that has a maximize button to occupy the full screen.</p>
<p>Imagine having a table that has this <a href="https://cdn0.iconfinder.com/data/icons/controls-add-on/48/v-12-512.png" rel="nofollow noreferrer">icon</a> as a button... | 0debug |
static void setup_rt_frame(int sig, struct target_sigaction *ka,
target_siginfo_t *info,
target_sigset_t *set, CPUS390XState *env)
{
int i;
rt_sigframe *frame;
abi_ulong frame_addr;
frame_addr = get_sigframe(ka, env, sizeof *frame);
qem... | 1threat |
static int mp3_seek(AVFormatContext *s, int stream_index, int64_t timestamp,
int flags)
{
MP3DecContext *mp3 = s->priv_data;
AVIndexEntry *ie, ie1;
AVStream *st = s->streams[0];
int64_t ret = av_index_search_timestamp(st, timestamp, flags);
int64_t best_pos;
int fast... | 1threat |
jspm or npm to install packages? : <p>I'm new to jspm, transitioning from npm-only. I have one fundamental question. I have some dependencies in the package.json, and I runned jspm init, which created a nice jspm config.js file. My question is, what it the point of installing these packages from jspm (via <code>jspm in... | 0debug |
int avfilter_default_config_output_link(AVFilterLink *link)
{
if (link->src->input_count && link->src->inputs[0]) {
if (link->type == AVMEDIA_TYPE_VIDEO) {
link->w = link->src->inputs[0]->w;
link->h = link->src->inputs[0]->h;
link->time_base = link->src->inputs[0]->... | 1threat |
void helper_cpuid(void)
{
if (EAX == 0) {
EAX = 1;
EBX = 0x756e6547;
ECX = 0x6c65746e;
EDX = 0x49656e69;
} else {
EAX = 0x52b;
EBX = 0;
ECX = 0;
EDX = CPUID_FP87 | CPUID_VME | CPUID_DE | CPUID_PSE |
CPUID_TSC | CP... | 1threat |
static int get_float64(QEMUFile *f, void *pv, size_t size)
{
float64 *v = pv;
*v = make_float64(qemu_get_be64(f));
return 0;
}
| 1threat |
static unsigned int dec_rfe_etc(DisasContext *dc)
{
cris_cc_mask(dc, 0);
if (dc->op2 == 15)
return 2;
switch (dc->op2 & 7) {
case 2:
DIS(fprintf(logfile, "rfe\n"));
cris_evaluate_flags(dc);
tcg_gen_helper_0_0(helper_rfe);
dc->is_jmp = DISAS_UPDATE;
break;
case 5:
D... | 1threat |
static inline void RENAME(rgb32to16)(const uint8_t *src, uint8_t *dst, long 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
mm_end = end - 15;
#if 1
asm volatile(
"movq %3, %%m... | 1threat |
Bash: get 3 element from string : <p>folks
I have string</p>
<pre><code> str1="MVM GT RT BHHT SYSTEMG RW"
</code></pre>
<p>I need to get "BHHT" and add it to variable str2.</p>
<p>I shouldn't use file. I need something like this:</p>
<p><code>str1 | cut -d ' ' -f 3</code></p>
| 0debug |
Where i can learn about openstack and cloud computing : <p>Where i can learn about openstack and cloud computing
Sites with proper courses and video tutorials will be prefered and i have no knowledge about them.</p>
| 0debug |
static int ff_h261_resync(H261Context *h){
MpegEncContext * const s = &h->s;
int left, ret;
if(show_bits(&s->gb, 15)==0){
ret= h261_decode_gob_header(h);
if(ret>=0)
return 0;
}
s->gb= s->last_resync_gb;
align_get_bits(&s->gb);
left= s->gb.size_in... | 1threat |
Swig tool and C++. Being too clever : <p><a href="http://www.swig.org/papers/PyTutorial98/PyTutorial98.pdf" rel="noreferrer">http://www.swig.org/papers/PyTutorial98/PyTutorial98.pdf</a>
It comes from above link:</p>
<p><a href="https://i.stack.imgur.com/G2kuq.png" rel="noreferrer"><img src="https://i.stack.imgur.com/G... | 0debug |
Converting a Letter to a Number in C : <p>Alright so pretty simple, I want to convert a letter to a number so that a = 0, b = 1, etc. Now I know I can do</p>
<pre><code>number = letter + '0';
</code></pre>
<p>so when I input the letter 'a' it gives me the number 145. My question is, if I am to run this on a different... | 0debug |
Pong game bugging out - mayby pointer to class : <p>get a problem with my code, this is just an extract from a larger piece of code involving OpenGL but still demonstrates the problem. It works without the collision detection call (col.detect()) - if you consider unbouncy walls working - but when I uncomment it the pro... | 0debug |
static inline void RENAME(rgb16to15)(const uint8_t *src, uint8_t *dst, long src_size)
{
register const uint8_t* s=src;
register uint8_t* d=dst;
register const uint8_t *end;
const uint8_t *mm_end;
end = s + src_size;
#if COMPILE_TEMPLATE_MMX
__asm__ volatile(PREFETCH" %0"::"m"(*s));
... | 1threat |
What IP's are in this IP block and how to use them? : <p>I am very new to this IP block thing so please excuse any "nooby" mistakes.</p>
<p>I just purchased a dedicated server and in my control panel it says:</p>
<blockquote>
<p>IPv4 Assignment #1: 192.151.150.194/29</p>
</blockquote>
<p>Does this mean the followi... | 0debug |
No reference documentation in Android Studio : <p>A new problem just popped up yesterday. When I hover over a method or press Ctrl-Q, I used to get documentation info for that particular method.</p>
<p>But now I just get (pressing Ctrl-Q on <code>SharedPreferences.getLong()</code>):</p>
<pre><code>Following external ... | 0debug |
When are .NET Core dependency injected instances disposed? : <p>ASP.NET Core uses extension methods on <code>IServiceCollection</code> to set up dependency injection, then when a type is needed it uses the appropriate method to create a new instance:</p>
<ul>
<li><code>AddTransient<T></code> - adds a type that i... | 0debug |
Angular2 - How to best handle expired authentication token? : <p>I am using Angular 2.1.2.</p>
<p>I have an authentication token (using angular2-jwt) and if it expires my webApi call fails with a 401 error. I am looking for a solution where the user will not lose any input data.</p>
<p>I can catch this 401 and open ... | 0debug |
int float32_le_quiet( float32 a, float32 b STATUS_PARAM )
{
flag aSign, bSign;
if ( ( ( extractFloat32Exp( a ) == 0xFF ) && extractFloat32Frac( a ) )
|| ( ( extractFloat32Exp( b ) == 0xFF ) && extractFloat32Frac( b ) )
) {
if ( float32_is_signaling_nan( a ) || float32_is_signa... | 1threat |
converting daily stock data to weekly-based via pandas in Python : <p>I've got a <code>DataFrame</code> storing daily-based data which is as below:</p>
<pre><code>Date Open High Low Close Volume
2010-01-04 38.660000 39.299999 38.509998 39.279999 1293400
2010-01-05 39.3... | 0debug |
How to convert the given date to dd-mm-yy format in javascript? : <p>How to convert the given date to format.</p>
<p>Input: Sun, 11 Jun 2017 14:14:37 GMT</p>
<p>Output: 11-06-17 DD-MM-YY</p>
<p>I have tried <code>split</code> and then the mapping of month text to month number. </p>
| 0debug |
Fragment not attached to a context : <p>In activity in Toolbar I got a button which need to call method from fragment and update list in that fragment. Now it is an error.
Calling in activity</p>
<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()){
case R.i... | 0debug |
Cannot Resolve method getActivity()); : I am trying to take a screenshot while doing an esspresso test
here is my code and i cannot resolve the method getActivity and ive tried using this and that didnt work ethier.
@RunWith(AndroidJUnit4.class)
@LargeTest
// Name of the activity + Test
... | 0debug |
How to break/continue across nested for each loops in Type Script : <p>I tried to use break inside nested for each loop and it says <strong>jump target cannot cross function boundary</strong>. please let me know how can i break nested for each loop when certain condition is met in type script.</p>
<pre><code>groups =[... | 0debug |
webpack-dev-server proxy dosen't work : <p>I want to proxy /v1/* to <a href="http://myserver.com" rel="noreferrer">http://myserver.com</a>, and here is my script</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-j... | 0debug |
R Studio: ctrl+shift+enter runs the entire code instead of the selected lines only : <p>I am using R Studio and I have encountered a problem: ctrl+shift+enter is running the entire code instead of the selected lines only. I can always use "Run", but I am used to ctrl+shift+enter... Anybody has any clue on how to fix ... | 0debug |
static void add_codec(FFServerStream *stream, AVCodecContext *av)
{
AVStream *st;
if(stream->nb_streams >= FF_ARRAY_ELEMS(stream->streams))
return;
switch(av->codec_type) {
case AVMEDIA_TYPE_AUDIO:
if (av->bit_rate == 0)
av->bit_rate = 64000;
if (av... | 1threat |
static int combine_residual_frame(DCAXllDecoder *s, DCAXllChSet *c)
{
DCAContext *dca = s->avctx->priv_data;
int ch, nsamples = s->nframesamples;
DCAXllChSet *o;
if (!(dca->packet & DCA_PACKET_CORE)) {
av_log(s->avctx, AV_LOG_ERROR, "Residual encoded channels are present without co... | 1threat |
Setting local repository ID when installing POMs : <p>I need a local repository for my project for a JAR file not available via the Maven Central repository. I install my JAR using <code>mvn install:install-file …</code> as per <a href="http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html" rel="noreferre... | 0debug |
static void nvdimm_dsm_reserved_root(AcpiNVDIMMState *state, NvdimmDsmIn *in,
hwaddr dsm_mem_addr)
{
switch (in->function) {
case 0x0:
nvdimm_dsm_function0(0x1 | 1 << 1 , dsm_mem_addr);
return;
case 0x1 :
nvdimm_dsm_func_read_fit(state, in... | 1threat |
Stuck at VS's unable to start program : So I am new to C, so I was writing really basic code on Visual Studio. The first program (Hello World) worked out perfectly. But when I added a second program (a loop) I can an "unable to start program, System could cannot find the file specified"
Exact error (I added the 3 do... | 0debug |
alert('Hello ' + user_input); | 1threat |
Can i find comma separated value in table row in clause in sql query : [Can i find comma separated value in table row in clause in sql query ][1]
[1]: https://i.stack.imgur.com/KSAck.png
<!-- begin snippet: js hide: false console: true babel: false -->
<!-- language: lang-js -->
$model = array(
... | 0debug |
S3 Invalid Resource in bucket policy : <p>I'm trying to make my entire S3 bucket public, but when I try to add the policy:</p>
<pre><code>{
"Id": "Policy1454540872039",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1454540868094",
"Action": [
"s3:GetObject"
],
"Effect"... | 0debug |
How do I set multipart in axios with react? : <p>When I curl something, it works fine:</p>
<pre><code>curl -L -i -H 'x-device-id: abc' -F "url=http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4" http://example.com/upload
</code></pre>
<p>How do I get this to work right with axios? I'm using react if that matters:</p>... | 0debug |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.