problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
program error exceptions shouldn't be caught by application program : <p>I'm learning java and I don't understand
Why should the program error exception never be caught by the application program?</p>
| 0debug |
how to merge between two arrays by index : i have two arrays .. first array like this :
$questions = [
"type" => "form",
"controls" => []
];
and second array is filled by foreach loop like this :
$count = 0;
foreach($x as $y){
$controls [
... | 0debug |
static int ide_drive_initfn(IDEDevice *dev)
{
return ide_dev_initfn(dev,
bdrv_get_type_hint(dev->conf.bs) == BDRV_TYPE_CDROM
? IDE_CD : IDE_HD);
}
| 1threat |
This app is not allowed to query for scheme tel : <p>I just opened an old project onbjectif-c created in 2010, the application works correctly except an interface
is not working.The error is -canOpenURL: failed for URL: "tel: 0" - error: "This app is not allowed to query for scheme tel".</p>
<p>according to my researc... | 0debug |
When will Uber Pool be added to the Uber Developers API? : <p>As the question says, when will the Uber Developers API support Uber Pool?</p>
<p>Thanks!</p>
| 0debug |
How does this code works in c++? : <p>I participated in Codeforces Round #396 (Div. 2) yesterday.
The (A) problem seemed pretty advanced in my opinion when I read it.
I tried solving it all the competition time yesterday and some time today.
I came up with a 200 lines long(half-working) solution. And then I gave up.</p... | 0debug |
void helper_do_semihosting(CPUMIPSState *env)
{
target_ulong *gpr = env->active_tc.gpr;
const UHIOp op = gpr[25];
char *p, *p2;
switch (op) {
case UHI_exit:
qemu_log("UHI(%d): exit(%d)\n", op, (int)gpr[4]);
exit(gpr[4]);
case UHI_open:
GET_TARGET_STRING(p, gpr... | 1threat |
selecting the table and some columns in another table : <p>I've two tables, and I want ist table and selected columns in another table in one query</p>
| 0debug |
Open AndroidStudio project from command line on OSX : <p>I would like to open an AndroidStudio project from the command line on my Mac. Something like:</p>
<pre><code>~ $ AndroidStudio --path ~/my_android_project
</code></pre>
<p>Is this possible in some way?</p>
| 0debug |
C# Post Increment : <p>While I am testing post increment operator in a simple console application, I realized that I did not understand full concept. It seems weird to me:</p>
<pre><code>int i = 0;
bool b = i++ == i;
Console.WriteLine(b);
</code></pre>
<p>The output has been false. I have expected that it would be tr... | 0debug |
static inline void gen_evmergelo(DisasContext *ctx)
{
if (unlikely(!ctx->spe_enabled)) {
gen_exception(ctx, POWERPC_EXCP_APU);
return;
}
#if defined(TARGET_PPC64)
TCGv t0 = tcg_temp_new();
TCGv t1 = tcg_temp_new();
tcg_gen_ext32u_tl(t0, cpu_gpr[rB(ctx->opcode)]);
tcg_ge... | 1threat |
C++ Array Index : <p>I'm trying to make a black jack like card program in c++, but one of the restrictions is that the array of the cards has to contain both the suit and value of the card, i.e 2H, 3H, 2C, 3C, and so on. How would I do this?</p>
| 0debug |
static void simple_list(void)
{
int i;
struct {
const char *encoded;
LiteralQObject decoded;
} test_cases[] = {
{
.encoded = "[43,42]",
.decoded = QLIT_QLIST(((LiteralQObject[]){
QLIT_QINT(43),
QLIT_QI... | 1threat |
Automate Click On Hyperlink Having Event listener : How to automate click on the hyper link `<a>Reply</a>` using Javascript on below case.
<span class="PostFull__reply"><a>Reply</a><!-- react-text: 276 --> <!-- /react-text --><!-- react-text: 277 --> <!-- /react-text --></span>
[Onclick Events][1]
[1... | 0debug |
How do i create a online forum? : <p>Is there any way that i can create my own forum using php and mysql knowledge?The forum should be able to </p>
<ol>
<li>show points for answered questions</li>
<li>be able to support question and answering</li>
<li>also be able to create a small news feed
I wanna learn this proces... | 0debug |
C Programming Problems( Rate charge) : A call is charged 30 cents
per minute.
The cost for line rental is RM60.00. The tax for the overall bill (including the line
rental) is 15%.
Calculate the amount, that need to be paid by the user given the number of
minutes that the user uses his/her mobile phone.
How... | 0debug |
Gitlab docker executor - cache image after before_script : <p>In <code>gitlab-ci</code> there's an option in the <a href="http://doc.gitlab.com/ce/ci/yaml/README.html" rel="noreferrer"><code>.gitlab-ci.yml</code></a> file to execute commands before any of the actual script runs, called <code>before_script</code>. <code... | 0debug |
Cite various python packages in paper : <p>We have a working tool built off of various packages in python. I am not sure how to cite these packages for a paper I am working on. How do I properly cite python packages? One of them have a way they ask us to cite them via a book. Most say nothing on citations that I can f... | 0debug |
Token null Sign-in Google Account : <p>I am following the example of google to get the token but without success.
Always fails to acquire the token.
This is latest way Google displays on your page developers
I believe the error is not in my code</p>
<pre><code> private String CLIENTE_ID = "...apps.googleusercontent.c... | 0debug |
static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
{
HQDN3DContext *hqdn3d = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0];
AVFilterBufferRef *out;
int direct, c;
if (in->perms & AV_PERM_WRITE) {
direct = 1;
out = in;
} else {
... | 1threat |
Angular 5: remove route history : <p>In my app I have a category page that has links to a various product list pages. If it turns out that when you get to a product list page there is only one product then it automatically navigates to that product detail page. What I want is to remove the product list page route in ... | 0debug |
Still getting CORS error in chrome after adding headers in node express server : I'm trying to do a simple GET request to an XML file, and I'm stuck on this CORS error. I've tried multiple solutions including adding the headers manually in my server.js file, and using the cors npm package. With both of those, If i hit ... | 0debug |
def sum_even_odd(list1):
first_even = next((el for el in list1 if el%2==0),-1)
first_odd = next((el for el in list1 if el%2!=0),-1)
return (first_even+first_odd) | 0debug |
MS SQL Need help returning information where value from Table A falls between a date range in table B : Table A Transaction details
TTime (datetime), TableAValues, TableAValues, <etc>...
Table B Related table
ID, DateTimeStart (datetime), DateTimeEnd (datetime), TableBValues, TableBValues, <etc>...
I need a way... | 0debug |
How do I count by frequency of a letter in index in Pyhton : lets say youre giving 5 inputs like so:
hello
hullo
zeros
It is then stored into a list like so ['hello','hullo','zeros']
I would like it to return a dictionary that counts the frequency of the letter in their index.
It should return something like this... | 0debug |
MainActivity.kt doesn't see button's id. WTF? : [one][1]
[two][2]
[1]: https://i.stack.imgur.com/F8SdN.png
[2]: https://i.stack.imgur.com/2uf7O.png
I haven't idea what the error might be. Reloading, rebuild didn't help | 0debug |
How to check if a dict value contains a word/string? : <p>I have a simple condition where i need to check if a dict value contains say <code>[Complted]</code> in a particular key. </p>
<p><strong>example</strong> :</p>
<pre><code>'Events': [
{
'Code': 'instance-reboot'|'system-rebo... | 0debug |
static int decode_unit(SCPRContext *s, PixelModel *pixel, unsigned step, unsigned *rval)
{
GetByteContext *gb = &s->gb;
RangeCoder *rc = &s->rc;
unsigned totfr = pixel->total_freq;
unsigned value, x = 0, cumfr = 0, cnt_x = 0;
int i, j, ret, c, cnt_c;
if ((ret = s->get_freq(rc, totfr, &v... | 1threat |
Error 503 doing GET operation on survey : <p>I am using the API to GET and FETCH data from my 150 or so Google surveys.
For some surveys I find the FETCH works OK but the GET is rejected with error 503. For instance:</p>
<p><code>HttpError 503 when requesting https://www.googleapis.com/consumersurveys/v2/surveys/6mnde... | 0debug |
db.execute('SELECT * FROM employees WHERE id = ' + user_input) | 1threat |
How are private variables accessed in operator overloading? : <p>How can private variables be accessed in operator overloading (obj.real,obj.imag,res.real,res.imag) in this code. Can someone explain</p>
<pre><code>#include<iostream>
using namespace std;
class Complex {
private:
int real, imag;
public:
C... | 0debug |
void virtio_scsi_handle_ctrl_req(VirtIOSCSI *s, VirtIOSCSIReq *req)
{
VirtIODevice *vdev = (VirtIODevice *)s;
uint32_t type;
int r = 0;
if (iov_to_buf(req->elem.out_sg, req->elem.out_num, 0,
&type, sizeof(type)) < sizeof(type)) {
virtio_scsi_bad_req();
return;
... | 1threat |
static int find_snapshot_by_id(BlockDriverState *bs, const char *id_str)
{
BDRVQcowState *s = bs->opaque;
int i;
for(i = 0; i < s->nb_snapshots; i++) {
if (!strcmp(s->snapshots[i].id_str, id_str))
return i;
}
return -1;
}
| 1threat |
static int local_setuid(FsContext *ctx, uid_t uid)
{
struct passwd *pw;
gid_t groups[33];
int ngroups;
static uid_t cur_uid = -1;
if (cur_uid == uid) {
return 0;
}
if (setreuid(0, 0)) {
return -1;
}
pw = getpwuid(uid);
if (pw == NULL) {
... | 1threat |
How does numpy.reshape() with order = 'F' work? : <p>I thought I understood the reshape function in Numpy until I was messing around with it and came across this example:</p>
<pre><code>a = np.arange(16).reshape((4,4))
</code></pre>
<p>which returns:</p>
<pre><code>array([[ 0, 1, 2, 3],
[ 4, 5, 6, 7],
... | 0debug |
Coverting C script to PHP : <p>I want to study the following script in PHP, it's actually in C, how can I convert the exactly same code to PHP?</p>
<pre><code>int solution(int A[], int N) {
int equi(int arr[], int n) {
if (n==0) return -1;
long long sum = 0;
int i;
for(i=0;i<n;i++) sum+=(long long) arr[i];
long... | 0debug |
void ff_snow_horizontal_compose97i_sse2(DWTELEM *b, int width){
const int w2= (width+1)>>1;
DWTELEM temp_buf[(width>>1) + 4];
DWTELEM * const temp = temp_buf + 4 - (((int)temp_buf & 0xF) >> 2);
const int w_l= (width>>1);
const int w_r= w2 - 1;
int i;
{
DWTELEM * cons... | 1threat |
void tcg_cpu_address_space_init(CPUState *cpu, AddressSpace *as)
{
assert(cpu->as == as);
if (cpu->cpu_ases) {
return;
}
cpu->cpu_ases = g_new0(CPUAddressSpace, 1);
cpu->cpu_ases[0].cpu = cpu;
cpu->cpu_ases[0].as = as;
cpu->cpu_ases[0].tcg_as_listener.com... | 1threat |
static av_cold int vaapi_encode_mjpeg_init(AVCodecContext *avctx)
{
return ff_vaapi_encode_init(avctx, &vaapi_encode_type_mjpeg);
}
| 1threat |
Random forest for important predictor variables : <p>In my data set I've 19 predictor variables which include both categorical and continuous variables. I want to fit a random forest model using only <strong>important predictor variables</strong> (not all the predictor variables) and also I've to repeat the process 100... | 0debug |
static int qemu_rdma_reg_whole_ram_blocks(RDMAContext *rdma)
{
int i;
RDMALocalBlocks *local = &rdma->local_ram_blocks;
for (i = 0; i < local->nb_blocks; i++) {
local->block[i].mr =
ibv_reg_mr(rdma->pd,
local->block[i].local_host_addr,
lo... | 1threat |
Move constant object without compiler warning : <p>I tested the following code using Visual Studio 2017 version 15.3.1. </p>
<p><code>v.push_back(std::move(str1))</code> works as expected. It moves the contents of <code>str1</code> into the vector.</p>
<p><code>str2</code> is a constant string. Since a constant strin... | 0debug |
ImageView/ImageButton overlay on camera preview not dislayed : A very standard overlay [tutorial][1] in this link was followed for developing the camera preview with overlay. However, when I change the `<Button/>` to `<ImageView/>` or `<ImageButton/>` the image doesn't get displayed. All I am getting is camera preview ... | 0debug |
static int nut_write_packet(AVFormatContext *s, AVPacket *pkt){
NUTContext *nut = s->priv_data;
StreamContext *nus= &nut->stream[pkt->stream_index];
AVIOContext *bc = s->pb, *dyn_bc;
FrameCode *fc;
int64_t coded_pts;
int best_length, frame_code, flags, needed_flags, i, header_idx, best_hea... | 1threat |
How i launch particular URL at same time daily in Chrome : I want to launch a particular URL in chrome every day at the same time. How to achieve this using command line. | 0debug |
How to find all id's to an array from array of objects - Javascript : <p>How to find all id's to an array from array of objects. Here through normal for loop I can able to get but using ECMA new features by findAll etc..how to get?</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-b... | 0debug |
compar hashmap<string,arraylist<string>> and arraylist<string> java : I have a hashmap that contains a list of words map<string,arraylist<string>>
And a list that also contains words I want to compare this list with the hashmap Which gives us another hashmap that contains binary values
1 if word exist 0 if not.
[... | 0debug |
In Ansible, how to combine variables from separate files into one array? : <p>In Ansible, in a role, I have vars files like this:</p>
<pre><code>vars/
app1.yml
app2.yml
</code></pre>
<p>Each file contains vars specific to an app/website like this:</p>
<pre><code>name: app1
git_repo: https://github.com/philgy... | 0debug |
AWS Cognito - User stuck in CONFIRMED and email_verified = false : <p>How do I go about email verifying a user who is CONFIRMED yet email_verified is false?</p>
<p>The scenario is roughly an agent signs up user on their behalf, and I confirm the user through the admin call adminConfirmSignUp. At that point, the user ... | 0debug |
How to work with DTO in Spring Data REST projects? : <p>Spring Data REST automates exposing only domain object. But most often we have to deal with Data Transfer Objects. So how to do this in SDR way?</p>
| 0debug |
Replace all letters in a string with an underscore and space : <p>As the title says, I am attempting to replace every letter in a string with an underscore followed by a space. For example: "hello" would be replaced with
"_ _ _ _ _". I can replace letters with just a space or just an underscore, but I am having trouble... | 0debug |
How to print every third element od Array? : I have a problem. I need to take 2 inputs from user (size of array) and then second input (elements of that same array).
After that i need to print every third element of array.
I done it! But with this i can print elements from last element in array and i want to print ... | 0debug |
Access AWS from bash by IP address : <p>Do anyone possibly know how to access AWS having only server IP (239.255.255.255 for example) and .pem file from bash console in Ubuntu?</p>
| 0debug |
Unable to access application container from iPad running on iOS 10 beta : <p>I am not able to download app container using xcode for my application on iOS 10 beta 4. I am using later xcode (beta 4). When I connect my device and go to <code>Device</code> in xcode, I am able to see my app listed but when I click on downl... | 0debug |
Disable Marketplace from Eclipse : <p>I'm running Eclipse Neon on a virtual machine without Internet connection.</p>
<p>I frequently get the annoying prompt "Search Marketplace for compatible editor has encountered a problem", how can I disable the lookup for editors or just entirely the Marketplace?</p>
| 0debug |
What's wrong with this code? : This is the end of my script. I'm getting the error : print "[%s]\t %s " % (item.sharing['access'], item.title)
^
SyntaxError: invalid syntax
`#List titles and sharing status for items in users'home folder
for item in currentUser.items:
print... | 0debug |
static int decode_band_types(AACContext *ac, enum BandType band_type[120],
int band_type_run_end[120], GetBitContext *gb,
IndividualChannelStream *ics)
{
int g, idx = 0;
const int bits = (ics->window_sequence[0] == EIGHT_SHORT_SEQUENCE) ? 3 : 5;
... | 1threat |
Dapper with .NET Core - injected SqlConnection lifetime/scope : <p>I'm using .NET Core Dependency Injection to instantiate a <code>SqlConnection</code> object during the application startup, which I'm then planning to inject in my repository. This <code>SqlConnection</code> will be used by Dapper to read/write data fro... | 0debug |
Is there a way to reuse enums in other classes? : <p>Is there a way to reuse enums in other classes?</p>
<p>For example,
I have a class using another class's enums. However, I want to avoid having to type the other class's namespace every time I use that class's enums for my active class.</p>
| 0debug |
I have a pst file as default mail box, i want to copy structure of Pst file to new pst file thru VBA macro : I want to split my default PST file year wise thru VBA macro Such as New Pst File Name may be Year-2015.pst. It should contain the all the mails which are belongs to year 2015 ( all folders ).
Regards
| 0debug |
Java Data Structures (Most Efficient Structure For Specific Program) : <p>Question from textbook exercise: </p>
<p>A hospital has a capacity of n patients. Each time a patient comes in he is assessed and, if in noncritical condition, has to wait his turn. If in critical condition, he is moved as the next to be treated... | 0debug |
static void commit_complete(BlockJob *job, void *opaque)
{
CommitBlockJob *s = container_of(job, CommitBlockJob, common);
CommitCompleteData *data = opaque;
BlockDriverState *active = s->active;
BlockDriverState *top = blk_bs(s->top);
BlockDriverState *base = blk_bs(s->base);
BlockDriverState *o... | 1threat |
Is it normal that transfer learning (VGG16) performs worse on CIFAR-10? : <p><strong>Note:</strong> I am not sure this is the right website to ask these kind of questions. Please tell me where I should ask them before downvoting this "because this isn't the right place to ask". Thanks!</p>
<p>I am currently experiment... | 0debug |
Operator '-' cannot be applied to operands of type 'double' and 'string' : <p>I am asking this question because I have minimal understanding of the c sharp language and the Object-oriented paradigm. The following program was created, based on a few youtube videos and programming articles, from stack-overflow and variou... | 0debug |
vue-router redirect to default path issue : <p>I want to default to a specific page when user navigates to the root path
ie when used goes to myapp.com I want to redirect them to myapp.com/defaultpage</p>
<p>My current code is</p>
<p>index.js</p>
<pre><code>import Full from '../containers/Full'
import DefaultView fr... | 0debug |
Cant get a informations that's inside an array : Im trying to get a information that's inside an array but can't, everytime returns and undefined statemen.
That's the array, it's inside the variable 'RESULTADO'
debug {"recordType":"customrecord5","id":"1","values":{"CUSTRECORD4.custrecord6":[{"value":"11","text":... | 0debug |
how can i implement click on current location and give desired location in mkmap view in ios : - (nullable MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {
if ([annotation isKindOfClass:[MKUserLocation class]]) {
return nil; } | 0debug |
static int ac3_decode_frame(AVCodecContext * avctx, void *data,
int *got_frame_ptr, AVPacket *avpkt)
{
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
AC3DecodeContext *s = avctx->priv_data;
int blk, ch, err, ret;
const uint8_t *channel_map;
cons... | 1threat |
static int tpm_passthrough_test_tpmdev(int fd)
{
struct tpm_req_hdr req = {
.tag = cpu_to_be16(TPM_TAG_RQU_COMMAND),
.len = cpu_to_be32(sizeof(req)),
.ordinal = cpu_to_be32(TPM_ORD_GetTicks),
};
struct tpm_resp_hdr *resp;
fd_set readfds;
int n;
struct timeval tv... | 1threat |
How to remove highlight on tap of List with SwiftUI? : <p>How to remove highlight on tap of List with SwiftUI?</p>
<pre><code>List {
}.whatModifierToAddHere?
</code></pre>
<p>The <a href="https://developer.apple.com/documentation/swiftui/selectionmanager" rel="noreferrer">selection manager documentation</a> doesnt s... | 0debug |
Duplicate files in DerivedData folder using CoreData generator : <p>I'm trying to generate NSManagedModels from my datamodel. Generation works but after I got many errors :</p>
<blockquote>
<p>error: filename "Station+CoreDataProperties.swift" used twice:
'/Users/Me/MyApp/Models/CoreData/Station+CoreDataProperties... | 0debug |
Upload binary file with retrofit 2 in Android : <p>I want to upload a binary file to the server in Android. I test Api method by postman:</p>
<p><a href="https://i.stack.imgur.com/fP58X.png" rel="noreferrer"><img src="https://i.stack.imgur.com/fP58X.png" alt="enter image description here"></a></p>
<p>And it's OK, as ... | 0debug |
When you press the W button with the Robot class, the character does not go forward : To get acquainted with the class robot decided to make a program that would control the character from the game Minecraft, but unfortunately this code does not work in the game. The letter is printed in a notebook, but can not get the... | 0debug |
SFSpeechRecognizer - detect end of utterance : <p>I am hacking a little project using iOS 10 built-in speech recognition. I have working results using device's microphone, my speech is recognized very accurately.</p>
<p>My problem is that recognition task callback is called for every available partial transcription, a... | 0debug |
Printing random characters instead of the same ones : <p>sorry for the horrible title, I have no idea how I'd describe my problem.</p>
<p>I'm trying to generate a code that contains 15 characters. 7 of these are already given and will be called the "base". The other 8 have to be random from 0 to 9.</p>
<p>This is my ... | 0debug |
Why exactly is void async bad? : <p>So I understand why returning void from async would normally make no sense, but I've ran into a situation where I think it would be perfectly valid. Consider the following contrived example:</p>
<pre><code>protected override void OnLoad(EventArgs e)
{
if (CustomTask == null)
... | 0debug |
how to hold my location after the web page is refreshed :
<?php
echo " <select data-live-search='true' data-live-search-style='startsWith' class='selectpicker' id='locName'>";
$stmt = $conn->prepare('SELECT LocationName From arealistmain');
... | 0debug |
How do you get a Kubernetes pod's name from its IP address? : <p>How do I get a pod's name from its IP address? What's the magic incantation of <code>kubectl</code> + <code>sed</code>/<code>awk</code>/<code>grep</code>/etc regardless of where <code>kubectl</code> is invoked?</p>
| 0debug |
int bdrv_dirty_bitmap_get_meta(BlockDriverState *bs,
BdrvDirtyBitmap *bitmap, int64_t sector,
int nb_sectors)
{
uint64_t i;
int sectors_per_bit = 1 << hbitmap_granularity(bitmap->meta);
for (i = sector; i < sector + nb_sectors; i ... | 1threat |
Visual Studio Code — Insert New Line at the End of Files : <p>When saving files using Visual Studio Code, I noticed that a new line is not automatically added to the end of files, causing all sorts of potential issues.</p>
<p>How does one insert a new line automatically in Visual Studio Code?</p>
| 0debug |
long do_sigreturn(CPUState *env)
{
struct target_signal_frame *sf;
uint32_t up_psr, pc, npc;
target_sigset_t set;
sigset_t host_set;
abi_ulong fpu_save;
int err, i;
sf = (struct target_signal_frame *)g2h(env->regwptr[UREG_FP]);
#if 0
fprintf(stderr, "... | 1threat |
VS Code: keybinding to move cursor to next occurrence of word under cursor : <p>If my cursor is under word <code>foo</code> in text, is there a keybinding in VS Code that will move the cursor to the next occurrence of the word <code>foo</code> in the text?</p>
<p>(I had this feature in my previous IDE, IntelliJ IDEA. ... | 0debug |
alert('Hello ' + user_input); | 1threat |
static TranslationBlock *tb_find_slow(target_ulong pc,
target_ulong cs_base,
uint64_t flags)
{
TranslationBlock *tb, **ptb1;
unsigned int h;
tb_page_addr_t phys_pc, phys_page1, phys_page2;
target_ulong virt_page2;
... | 1threat |
static void test_qemu_strtoull_octal(void)
{
const char *str = "0123";
char f = 'X';
const char *endptr = &f;
uint64_t res = 999;
int err;
err = qemu_strtoull(str, &endptr, 8, &res);
g_assert_cmpint(err, ==, 0);
g_assert_cmpint(res, ==, 0123);
g_assert(endptr == str + s... | 1threat |
static int xhci_fire_ctl_transfer(XHCIState *xhci, XHCITransfer *xfer)
{
XHCITRB *trb_setup, *trb_status;
uint8_t bmRequestType, bRequest;
uint16_t wValue, wLength, wIndex;
XHCIPort *port;
USBDevice *dev;
int ret;
DPRINTF("xhci_fire_ctl_transfer(slot=%d)\n", xfer->slotid);
t... | 1threat |
static void kvmppc_timer_hack(void *opaque)
{
qemu_service_io();
qemu_mod_timer(kvmppc_timer, qemu_get_clock_ns(vm_clock) + kvmppc_timer_rate);
}
| 1threat |
Need help sorting text file in C# : <p>I dont need to sort the text file I just need to be able to tell if the text file is in alphabetical order or not. like true or false
The text file is a list of words like:</p>
<p>apple
dog
cat
bed
for example this text above would come out as false because it is not in order</p>... | 0debug |
I need to create an array with numbers given by the user : System.out.println("Please enter a coefficients of a polynomial’s terms:");
String coefficents = keyboard.nextLine();
String[] three = coefficents.split(" ");
int[] intArray1 = new int[three.length];
//Does anyone know how i can make this work b... | 0debug |
Javascript: Shorter way to format date : <p>i would like format the Date the way i need it to be:
I would like to have it that way:
YYYY-MM-DD HH:MM:SS</p>
<p>I found that solution on the internet:</p>
<pre><code>function js_yyyy_mm_dd_hh_mm_ss () {
now = new Date();
year = "" + now.getFullYear();
month = "" + ... | 0debug |
Delete last character printed in python 3.6 : <p>I'm trying to delete the last character I've printed from the previous line in python, e.g if I do print ("hello world")
I will get hello world outputted, but I'm wondering after it's been outputted would there be a way to remove the d at the end of the output so it woul... | 0debug |
Python - How to decompile python script? : <p>I have a script and i think its compiled with something like <code>Cpython</code>.
I can run this script, but i want to access to source code.
Is there any way to do this? </p>
<p>Thanks</p>
| 0debug |
What is the size of pointers in c++? : <p>What is the size of pointers in c++?</p>
<pre><code>char a;
char *b=a;
cout<<sizeof(b);
</code></pre>
<p>Output is 2 I don't know why.</p>
<pre><code>cout<<sizeof(const); //o/p is 2
cout<<sizeof(NULL); //o/p is 2
</code></pre>
| 0debug |
username using * in the criteria countif excel : [Hello please help me, i m searching sum of class of each student using countif formula, but any student have unique username like A*di (in the image) and so the calculation is false. And any other student using username like </John>, and 'Angel. and make calculation fal... | 0debug |
Is it possible to run a Rails 4.2 app on Ruby 2.4? : <p>I want to try out a Rails 4.2 app on Ruby 2.4.</p>
<p>However, when I try doing it, I get errors about the json gem version 1.8.3 failing to install.</p>
<pre><code>Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users... | 0debug |
HTTP request for Github API : <p>I'm developing a web application in C# to search for users with Github accounts but I have no idea how to start it.
I don't want to use a framework like Octokit. I want to call everything in c#.</p>
<p>How do you link the API with the search box in HTML? </p>
| 0debug |
Printing unicode character from number : <p>In Python I'm trying to print out the character corresponding to a given code like this:</p>
<pre><code>a = 159
print unichr(a)
</code></pre>
<p>It prints out a strange symbol. Can anyone explain why?</p>
| 0debug |
Creating file 'php' after getting data : <p>. I wonder how can my project automatically create php file by itself , after getting some data like product description ?</p>
| 0debug |
Generate random activation code in PHP : <p>How to generate random activation code based on current datetime and username in PHP.</p>
<p>The return value should be like this, i.e: </p>
<p>201605021955Username</p>
<pre><code>function getActivationCode($username){
$activationCode = "";
....
return activatio... | 0debug |
In my application i have 3 date formats PST,CST,EST.but when converting to IST it was showing the any suggestionsdate of 1 day before : In my application i have 3 date formats PST,CST,EST.but when converting to IST it was showing the date of 1 day before
any suggestions | 0debug |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.