problem
stringlengths
26
131k
labels
class label
2 classes
Error: Could not find or load main class : <p>I am new to java and I am currently trying to run a program for a class assignment and it compiles however, every time I run it I get this error "Error: Could not find or load main class sailboat.java" To make things worse I need to submit this in a different way from stan...
0debug
static int segment_start(AVFormatContext *s, int write_header) { SegmentContext *c = s->priv_data; AVFormatContext *oc = c->avf; int err = 0; if (write_header) { avformat_free_context(oc); c->avf = NULL; if ((err = segment_mux_init(s)) < 0) return err; ...
1threat
Google Maps not loading after publishing on play store even after updating SHA 1 fingerprint for release key : <p>A newbie here to google maps api and android app development. I am facing some strange issue and struggling with this from two days. I have developed an app in which I have used Google maps. I have launched...
0debug
void cpu_loop(CPUCRISState *env) { CPUState *cs = CPU(cris_env_get_cpu(env)); int trapnr, ret; target_siginfo_t info; while (1) { cpu_exec_start(cs); trapnr = cpu_cris_exec(cs); cpu_exec_end(cs); switch (trapnr) { case 0xaa: { ...
1threat
Webpack output is empty object : <p>I want to build a react component library as a node module to then import it into different projects. But if I try to import a component it just returns an empty object.</p> <p>button.jsx:</p> <pre><code>import React, {Component} from 'react' export class Button extends Component ...
0debug
static av_cold int truemotion1_decode_init(AVCodecContext *avctx) { TrueMotion1Context *s = avctx->priv_data; s->avctx = avctx; s->frame = av_frame_alloc(); if (!s->frame) return AVERROR(ENOMEM); av_fast_malloc(&s->vert_pred, &s->vert_pred_size, s->avctx-...
1threat
How to request a url with % witouth making it be %25? : <p>URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.</p> <pre><code>% %25 %25 </code></pre> <p>I have this form with a hidden input that has the value something like "%56756%234" but when i submit the form it replaces...
0debug
How to install sagemath kernel in Jupyter : <p>I could use Python Kernel with Jupyter. I am looking for a way to use sagemath inside Jupyter.I couldnt see a way for installing it. How to do that?</p>
0debug
boto3: Spot Instance Creation : <p>I'm trying to create a spot instance using boto3. Although I follow the <a href="http://boto3.readthedocs.org/en/latest/reference/services/ec2.html#EC2.Client.request_spot_instances" rel="noreferrer">API documentation</a>, I receive an exception I couldn't be able to figure out. The c...
0debug
Check if a value exists in an object : <p>I'm trying do some validations based of an object with key-value pairs like below</p> <p><code>var map = {'1': ['a','b','c'], '2': ['d','e'], '3': 'f'}</code></p> <p>and I want to check if my desired value is in a particular key segment <code>if('a' in map[1])</code></p> <p>...
0debug
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt) { MvContext *mv = avctx->priv_data; AVIOContext *pb = avctx->pb; AVStream *st = avctx->streams[mv->stream_index]; const AVIndexEntry *index; int frame = mv->frame[mv->stream_index]; int ret; uint64_t pos; if (fra...
1threat
int ff_MPV_encode_picture(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic_arg, int *got_packet) { MpegEncContext *s = avctx->priv_data; int i, stuffing_count, ret; int context_count = s->slice_context_count; s->picture_in_gop_number++; if (load_input_pic...
1threat
static void arm_gic_common_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); dc->reset = arm_gic_common_reset; dc->realize = arm_gic_common_realize; dc->props = arm_gic_common_properties; dc->vmsd = &vmstate_gic; dc->no_user = 1; }
1threat
int avresample_get_matrix(AVAudioResampleContext *avr, double *matrix, int stride) { int in_channels, out_channels, i, o; in_channels = av_get_channel_layout_nb_channels(avr->in_channel_layout); out_channels = av_get_channel_layout_nb_channels(avr->out_channel_layout); ...
1threat
static void gen_arm_parallel_addsub(int op1, int op2, TCGv a, TCGv b) { TCGv tmp; switch (op1) { #define gen_pas_helper(name) glue(gen_helper_,name)(a, a, b, tmp) case 1: tmp = tcg_temp_new(TCG_TYPE_PTR); tcg_gen_addi_ptr(tmp, cpu_env, offsetof(CPUState, GE)); PAS_OP(s) ...
1threat
Why does AWS Lambda function always time out? : <p>I am testing out aws lambda, using nodejs with the 4.3 version. I'm able to successfully complete all the statements in my handler function within the console test, which includes connecting to a mongodb host within our vpc. But, the function always times out. I've fou...
0debug
How to declare multiple dimensional array in TypeScript : In my app, I need to define an element like: commandsList:[RegExp, string, string]; but when I tried to push the array elements into it, as below: public registerCommand(command:RegExp, cb:string, phrase:string):void{ this.commandsL...
0debug
Convert factor to number with this command correct : <p>Im trying to convert the following factor to number in RStudio, can I use this commands?</p> <p><code>NewFactor &lt;- factor(c(31, 764, 9.6, 513, 125.344, 3131.657, 9853));as.numeric(NewFactor)</code></p>
0debug
c# don't understand calling methods. object orientated programming : I've just started object orientated programming and i don't quite understand how to call another method. I wanted to calculate the percentage increase and then put out the resulting overall price. This would be done by calling the method to do the wor...
0debug
Can you run a macro from one excel sheet in another? Xlwings : I want to run a macro on CSV files that are sent to me using an xlwings script. As such storing the Macro in each new file would be a pain. Is there anyway to run the scrip from another workbook, or even just directly send the code to the CSV file?
0debug
need help i have table in sql server with set of colunms i just want to select values between from and to columns in sql : select Q.mem_id from tb_mem_share Q,tb_member MB where MB.mem_id=Q.mem_id AND Q.share_num_from between '42368' and '42378' select * from tb_mem_share where share_num_from >= 42368 and share_num...
0debug
import math def find_Index(n): x = math.sqrt(2 * math.pow(10,(n - 1))); return round(x);
0debug
ASP.NET Core 2 + Get instance of db context : <p>I am trying to get an instance of the DbContext (so I can do some additional work upon startup with it), I get the following error when trying to get an instance in the Configure method:</p> <p>System.InvalidOperationException: 'Cannot resolve scoped service 'MyApp.Data...
0debug
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
static off_t read_uint32(BlockDriverState *bs, int64_t offset) { uint32_t buffer; if (bdrv_pread(bs->file, offset, &buffer, 4) < 4) return 0; return be32_to_cpu(buffer); }
1threat
Remove transparency/alpha from any image using PIL : <p>How do I replace the alpha channel of any image (png, jpg, rgb, rbga) with specified background color? It must also work with images that do not have an alpha channel.</p>
0debug
Not able to comment, android developers please read! WebView display : since i don't have the 50 rep required to comment -.- stupid idea... This is my first app development so please bare with me on this ^^. ill simply have to ask this question here again, it's topic related to this: https://stackoverflow.com/que...
0debug
How can parse the dunamic json with newtonsoft? : I have this json:<br/> > "{'service_list': [], 'session_id': '234234DSSF', 'user': > {'basic_info': {'recharge_deposit': 0.0, 'status': 'Recharged', > 'user_id': 8, 'deposit': 0.0, 'isp_id': 0, 'group_id': 5, > 'creation_date': '2017-04-19 08:11:26.882558', 'neare...
0debug
void slirp_select_fill(int *pnfds, fd_set *readfds, fd_set *writefds, fd_set *xfds) { }
1threat
Pandas - Slice Large Dataframe in Chunks : <p>I have a large dataframe (>3MM rows) that I'm trying to pass through a function (the one below is largely simplified), and I keep getting a <code>Memory Error</code> message. </p> <p>I think I'm passing too large of a dataframe into the function, so I'm trying to:</p> <p>...
0debug
void fw_cfg_add_i64(FWCfgState *s, uint16_t key, uint64_t value) { uint64_t *copy; copy = g_malloc(sizeof(value)); *copy = cpu_to_le64(value); fw_cfg_add_bytes(s, key, (uint8_t *)copy, sizeof(value)); }
1threat
void tb_target_set_jmp_target(uintptr_t tc_ptr, uintptr_t jmp_addr, uintptr_t addr) { if (TCG_TARGET_REG_BITS == 64) { tcg_insn_unit i1, i2; intptr_t tb_diff = addr - tc_ptr; intptr_t br_diff = addr - (jmp_addr + 4); uint64_t pair; ...
1threat
What is the difference between ACL and SCO Link in Bluetooth? : <p>ACL= Asynchronous Connection-Less. SCO = Synchronous Connection Oriented.</p> <p>SCO is Point to Point Connection between only one master and only one slave.</p> <p>ACL is multipoint connection between one master and many slaves. </p> <p>What are the...
0debug
static void handle_windowevent(SDL_Event *ev) { struct sdl2_console *scon = get_scon_from_window(ev->window.windowID); switch (ev->window.event) { case SDL_WINDOWEVENT_RESIZED: { QemuUIInfo info; memset(&info, 0, sizeof(info)); info.width = ev->window.data1; ...
1threat
Turn on/off gps using button without getting into setting menu : <p>I want to ask about turn on gps in android without getting into setting menu. 1. Does that method possibly to do? 2. If yes how to do that? Thank you.</p>
0debug
How to traverse a treeview in WPF and get values from all nodes : Okay, I'm ready for the downvotes and the snide comments but I can't find an answer to this question now matter how I ask it. There appears to be solutions if the treeview is in WinForms but not if it's in WPF. I'm loading an XML file at runtime that ...
0debug
void enable_kvm_pv_eoi(void) { kvm_default_features |= kvm_pv_eoi_features; }
1threat
Boolean - Int conversion in Kotlin : <p>Is there no built-in way to convert between boolean - int in Kotlin? I am talking about the usual:</p> <pre><code>true -&gt; 1 false -&gt; 0 </code></pre> <p>If not, what is an idiomatic way to do it?</p>
0debug
int find_utlb_entry(CPUState * env, target_ulong address, int use_asid) { uint8_t urb, urc; urb = ((env->mmucr) >> 18) & 0x3f; urc = ((env->mmucr) >> 10) & 0x3f; urc++; if (urc == urb || urc == UTLB_SIZE - 1) urc = 0; env->mmucr = (env->mmucr & 0xffff03ff) | (urc << 10); ...
1threat
static void pxa2xx_pic_mem_write(void *opaque, hwaddr offset, uint64_t value, unsigned size) { PXA2xxPICState *s = (PXA2xxPICState *) opaque; switch (offset) { case ICMR: s->int_enabled[0] = value; break; case ICMR2: s->int_enabled[1]...
1threat
Create networks automatically in Docker Compose : <p>When using custom networks in Docker like</p> <pre><code>networks: default: external: name: service-tier </code></pre> <p>And try to run that, I´m getting the error</p> <blockquote> <p>ERROR: Network service-tier declared as external, but could not b...
0debug
static void tight_pack24(VncState *vs, uint8_t *buf, size_t count, size_t *ret) { uint32_t *buf32; uint32_t pix; int rshift, gshift, bshift; buf32 = (uint32_t *)buf; if ((vs->clientds.flags & QEMU_BIG_ENDIAN_FLAG) == (vs->ds->surface->flags & QEMU_BIG_ENDIAN_FLAG)) { rshi...
1threat
Access Jupyter notebook running on Docker container : <p>I created a docker image with python libraries and Jupyter. I start the container with the option <code>-p 8888:8888</code>, to link ports between host and container. When I launch a Jupyter kernel inside the container, it is running on <code>localhost:8888</co...
0debug
static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt) { SMJPEGContext *sc = s->priv_data; uint32_t dtype, ret, size, timestamp; int64_t pos; if (s->pb->eof_reached) return AVERROR_EOF; pos = avio_tell(s->pb); dtype = avio_rl32(s->pb); switch (dtype) { cas...
1threat
static void migrate_fd_put_notify(void *opaque) { MigrationState *s = opaque; qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); qemu_file_put_notify(s->file); if (qemu_file_get_error(s->file)) { migrate_fd_error(s); } }
1threat
Error with OMP_NUM_THREADS when using dask distributed : <p>I am using <a href="http://distributed.readthedocs.io/en/latest/" rel="noreferrer">distributed</a>, a framework to allow parallel computation. In this, my primary use case is with NumPy. When I include NumPy code that relies on <code>np.linalg</code>, I get an...
0debug
static int mjpeg_decode_init(AVCodecContext *avctx) { MJpegDecodeContext *s = avctx->priv_data; MpegEncContext s2; s->avctx = avctx; memset(&s2, 0, sizeof(MpegEncContext)); s2.flags= avctx->flags; s2.avctx= avctx; s2.width = 8; s2.height = 8; if (MPV_common_init...
1threat
Controlling motors from html web page : I am working on a project and the ultimate goal is to control some simple motors through a web page. I have created the web page using HTML and I am wondering what would be the best way to go about doing this is? I am wanting to send a command after the button is clicked to the s...
0debug
Hooks and Redux Saga : <p>I am learning redux hooks and wondering how to use it along with redux saga.</p> <p>Currently the code written in saga is as follows.</p> <blockquote> <p>centers.js</p> </blockquote> <pre><code>componentDidMount() { this.props.getCenters(); } ... &lt;tbody&gt; ...
0debug
convert Java to Json Array please assist : I have to convert an Arraylist of users to from java to Json I figured out how to get the user to convert I don't know how to use the syntax for the array This is in the driver: // Convert a User to JSON String testStr = JsonUserConverter.convertUserToJson(bob...
0debug
int ff_alloc_picture(MpegEncContext *s, Picture *pic, int shared) { int i, ret; if (shared) { assert(pic->f.data[0]); pic->shared = 1; } else { assert(!pic->f.data[0]); if (alloc_frame_buffer(s, pic) < 0) return -1; s->linesize = pic->f.l...
1threat
Deploying Java SE application on AWS : <p>Hello I want to know how to deploy Java SE application on aws? I have created one java application.Now I want to run that application on aws </p>
0debug
void blk_io_limits_disable(BlockBackend *blk) { assert(blk->public.throttle_group_member.throttle_state); bdrv_drained_begin(blk_bs(blk)); throttle_group_unregister_tgm(&blk->public.throttle_group_member); bdrv_drained_end(blk_bs(blk)); }
1threat
Vue + Laravel: How to properly download a PDF file? : <p><strong>THE SITUATION:</strong></p> <p>Frontend: Vue. Backend: Laravel.</p> <p>Inside the web app I need to let the user download certain pdf files:</p> <ul> <li>I need Laravel to take the file and return it as a response of an API GET request.</li> <li>Then i...
0debug
SP taking more time : I have an Stored procedure in my database. When i am calling stored procedure, some time it takes 1 minute, some time it takes 10 minutes, some time it takes more than that. the below step alone taking more time in the whole process, not sure if this poor query and need to re-write the SP o...
0debug
How do you use Python to clean API results to get say just the headlines of the news articles? : I am very new to programming using Python and have been having trouble finding a way to pull out specific text info from the Guardian API for my dissertation. I have managed to get all my text onto Python but how do you the...
0debug
static int x8_decode_intra_mb(IntraX8Context* const w, const int chroma){ MpegEncContext * const s= w->s; uint8_t * scantable; int final,run,level; int ac_mode,dc_mode,est_run,dc_level; int pos,n; int zeros_only; int use_quant_matrix; int sign; assert(w->orient<12); ...
1threat
Compare substring of elements in one list to strings in another list (convert my for loop to list comprehension) : I'd like to compare a substring of each element in a list of strings to the elements in another list of strings...BUT I want it in a list comprehension (for loops aren't as concise for my tastes) The c...
0debug
ReactJS: How to determine if the application is being viewed on mobile or desktop browser : <p>In ReactJS, is there a way to determine if the website is being viewed on mobile or desktop? Because, depending on which device I would like to render different things.</p> <p>Thank you</p>
0debug
python blackjack -- dictionary output : def get_card_value(s): s = ' ' cards ={'A':1,'2':2,'3':3,'4':4,'5':5,'6':6,'7':7,'8':8,'9':9,'10':10,'J':10,'Q':10,'K':10} for s in cards.keys(): return cards.values(s) else: raise ValueError("No card found") get_card_value(A) Hi,...
0debug
static uint64_t ntohll(uint64_t v) { union { uint32_t lv[2]; uint64_t llv; } u; u.llv = v; return ((uint64_t)ntohl(u.lv[0]) << 32) | (uint64_t) ntohl(u.lv[1]); }
1threat
void ff_rtsp_close_streams(AVFormatContext *s) { RTSPState *rt = s->priv_data; int i; RTSPStream *rtsp_st; ff_rtsp_undo_setup(s); for (i = 0; i < rt->nb_rtsp_streams; i++) { rtsp_st = rt->rtsp_streams[i]; if (rtsp_st) { if (rtsp_st->dynamic_handler && rtsp_st->...
1threat
Reversing the order of a linked-list FORTRAN (gen_ll.f90) : I've recently adopted the use of linked lists in FORTRAN and after some reading decided to use the [gen_ll.f90 package][1] from the [FORTRAN WIKI][2] which seemed simple and sufficient to my needs. It was only later that I realized that I must reverse the o...
0debug
int ff_jpegls_decode_lse(MJpegDecodeContext *s) { int id; int tid, wt, maxtab, i, j; int len = get_bits(&s->gb, 16); id = get_bits(&s->gb, 8); switch (id) { case 1: s->maxval = get_bits(&s->gb, 16); s->t1 = get_bits(&s->gb, 16); s->t2 = get_bits(&s...
1threat
Can Spring Data REST's QueryDSL integration be used to perform more complex queries? : <p>I'm currently building a REST API in which I want clients to easily filter on most properties of a specific entity. Using <a href="http://querydsl.com/" rel="noreferrer">QueryDSL</a> in combination with <a href="http://projects.sp...
0debug
Android replace strings doesnt work : <p>in this below String arrays i have this tags:</p> <pre><code>String[] tags = { "&lt;mft:A&gt;", "&lt;mft:S&gt;", "&lt;mft:R&gt;", "&lt;/mft:A&gt;", "&lt;/mft:S&gt;", "&lt;/mft:R&gt;" }; </code></pre> <p>and i want to replace them...
0debug
static void do_video_out(AVFormatContext *s, OutputStream *ost, AVFrame *in_picture, int *frame_size) { int ret, format_video_sync; AVPacket pkt; AVCodecContext *enc = ost->st->codec; *frame_size = 0; format_vide...
1threat
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
how to keep spaces with escape sequences stringbuilder c# : I have a `stringbuilder` setup with escape sequences to show a ASCII like art to text. Here is my code: sb.AppendLine(@" _____ ______ ___ ___ ________ "); sb.AppendLine(@" |...
0debug
void RENAME(interleaveBytes)(uint8_t *src1, uint8_t *src2, uint8_t *dest, long width, long height, long src1Stride, long src2Stride, long dstStride){ long h; for(h=0; h < height; h++) { long w; #ifdef HAVE_MMX #ifdef HAVE_SSE2 asm( "xor %%"REG_a", %%"REG_a" \n\t" "1: \n\t" ...
1threat
C - Trying to do bubble sort : I think this is C. but trying to figure out why my bubble sort isn't working. I was following an existing example so perhaps my integration with this code isn't right but not too sure. #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { ...
0debug
NLTK: corpus-level bleu vs sentence-level BLEU score : <p>I have imported nltk in python to calculate BLEU Score on Ubuntu. I understand how sentence-level BLEU score works, but I don't understand how corpus-level BLEU score work.</p> <p>Below is my code for corpus-level BLEU score:</p> <pre><code>import nltk hypoth...
0debug
static inline int RENAME(yuv420_rgb32)(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ int y, h_size; if(c->srcFormat == PIX_FMT_YUV422P){ srcStride[1] *= 2; srcStride[2] *= 2; } h_size= (c->dstW+7)&~7; if(h_s...
1threat
static OSStatus ffat_decode_callback(AudioConverterRef converter, UInt32 *nb_packets, AudioBufferList *data, AudioStreamPacketDescription **packets, void *inctx) { AVCodecContext *avctx = inctx; ...
1threat
Ho to convert CSV file into SQL file easily? : <p>I want to convert the data in a CSV file into SQL queries. What is the easiest and the fastest method to convert a CSV into an SQL file?</p>
0debug
Is it possible to map only a portion of an array? (Array.map()) : <p>I am building a project using React.js as a front-end framework. On one particular page I am displaying a full data set to the user. I have an Array which contains this full data set. It is an array of JSON objects. In terms of presenting this data to...
0debug
How can I combine each string together from two or more lists of strings? : <p>What I am trying to do is say I have a List of Lists of string where the lists are...</p> <pre><code>list1 = "A", "B", "C" list2 = "1", "2", "3" list3 = "Dog" ... </code></pre> <p>then I get a list with </p> <pre><code> newList = ...
0debug
Python: Cannot uninstall 'six' while pip install tld : <pre><code>$ pip install tld Collecting tld Using cached https://files.pythonhosted.org/packages/fa/78/dbeaeb20db795c42deb81271fd65a35c040ce2e946024eaeef5c6b184176/tld-0.9-py2.py3-none-any.whl Collecting six&gt;=1.9 (from tld) Using cached https://files.pythonh...
0debug
static void cdg_load_palette(CDGraphicsContext *cc, uint8_t *data, int low) { uint8_t r, g, b; uint16_t color; int i; int array_offset = low ? 0 : 8; uint32_t *palette = (uint32_t *) cc->frame.data[1]; for (i = 0; i < 8; i++) { color = (data[2 * i] << 6) + (data[2 * i + 1] & 0...
1threat
Items collection must be empty before using ItemsSource. : <p>I Have "Items collection must be empty before using ItemsSource." Error In My Code</p> <p>I Test All Answer in StackOverFlow Links But They Did not Work! My Xaml :</p> <pre><code>&lt;Window x:Class="FirstWpfTestApplication.Main" xmlns="http://schemas.m...
0debug
RUBY: How to read an array from a file and store it in an array : I am trying to read an array from a file and save it in myArray[]. Ex File1.txt is ["abc", "def"...] I want to be able to parse myArray[0] which is "abc", myArray[1] which is "def" and so on..How do I do it in Ruby?
0debug
How to record a video in Selenium webdriver and Java API : <p>I have automated scripts that run every night (around 50 scripts or testcases). I want to record a video of each test case (Selenium Java API + Cucumber). Is there any tool or way that i can use to control video recording for each test case separately? I wan...
0debug
socket_sockaddr_to_address_inet(struct sockaddr_storage *sa, socklen_t salen, Error **errp) { char host[NI_MAXHOST]; char serv[NI_MAXSERV]; SocketAddressLegacy *addr; InetSocketAddress *inet; int ret; ret = getnameinfo((s...
1threat
static void pmuserenr_write(CPUARMState *env, const ARMCPRegInfo *ri, uint64_t value) { env->cp15.c9_pmuserenr = value & 1; }
1threat
static int vqa_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; VqaContext *s = avctx->priv_data; s->buf = buf; s->size = buf_size; ...
1threat
How to verify users current password? : <p>So, maybe I missed this somewhere in the docs but I couldn't find anything of the sort. </p> <p>I wan't my users to have to type in their current password to be able to create a new one. From what I understand if the user is authenticated he is able to update his password wit...
0debug
Detached HEAD Issue in Android Studio : <p>I am new to Android Studio and have began developing a Navigation Drawer app.</p> <p>After having made a mistake in a commit, I played around with the Version control's "Checkout Revision" and now I can no longer push my project onto Github due to a "Detached HEAD".</p> <p>H...
0debug
html css absolute position overlay problem : I got 2 blocks, top and bottom. Bottom block has: position: absolute; bottom: 0 styles. In bottom block there is an image that should overlay top block in one place. it overlays Ok but I can't click on element from top block cause browser think i click on bottom. How can it ...
0debug
How to play streaming audio using pyglet? : <p>The goal of this question is trying to figure out how to play streaming audio using pyglet. The first is just making sure you're able to play mp3 files using pyglet, that's the purpose of this first snippet:</p> <pre><code>import sys import inspect import requests import...
0debug
float32 float32_scalbn( float32 a, int n STATUS_PARAM ) { flag aSign; int16 aExp; uint32_t aSig; a = float32_squash_input_denormal(a STATUS_VAR); aSig = extractFloat32Frac( a ); aExp = extractFloat32Exp( a ); aSign = extractFloat32Sign( a ); if ( aExp == 0xFF ) { re...
1threat
C# Overloaded Method does not use int imput : I'm trying to create console app to understand method overloading. I got Class lib like this namespace GetStringName { public class GetString { public void Player(double num) { double number = num * 2; ...
0debug
Is it true that the dimension of an array is determined the moment the array is created, and cannot be changed later on? : <pre><code>int main() { int a[3]={1,2,3}; int *b; b=&amp;a[10]; printf("%u\n",b); printf("%d",*b); } </code></pre> <p>I thought that the above program would give me an <st...
0debug
what is the regular expressions in "R" that find all words that: Start with a letter1 and End with another letter2? : i'm trying to work out the exercise from a book called "R for data science" on regular expressions. there's this question which i'm unable to solve : 1.Given the corpus of common words in stringr:...
0debug
Multiple And condition in Where Clause in Sql : I have a table like this ID Process Work A1 | 0 | Done A1 | 1 | Progress ...
0debug
void event_notifier_init_fd(EventNotifier *e, int fd) { e->fd = fd; }
1threat
Trying to creat my first class, getting object has no attribute file error : I'm trying to teach myself object programming in python. I want my verbals to be just for that instance of the object, which I thought was done by using self.verbalname. Right now I getting a error for every line that has self.file in it s...
0debug
static int RENAME(swScale)(SwsContext *c, const uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]) { const int srcW= c->srcW; const int dstW= c->dstW; const int dstH= c->dstH; const int chrDstW= c->chrDstW; const in...
1threat
javafx-how to sum up arrayed choiceBox<integer> value : Please I need help ,I think I wrote my java code well but am still getting expection error This is the code : All procedures met,let me go straight to the portion of the code with problem. Int sumofc = 0; VBox vlay = new VBox(10); ChoiceBox<I...
0debug
divide a string into two halves in python : <p>this is my question:</p> <pre><code>F. front_back # Consider dividing a string into two halves. # If the length is even, the front and back halves are the same length. # If the length is odd, we'll say that the extra char goes in the front half. # e.g. 'abcde', the fron...
0debug