problem
stringlengths
26
131k
labels
class label
2 classes
static void setup_rt_frame_v1(int usig, struct target_sigaction *ka, target_siginfo_t *info, target_sigset_t *set, CPUARMState *env) { struct rt_sigframe_v1 *frame; abi_ulong frame_addr = get_sigframe(ka, env, sizeof(*frame)); struct target_sigaltstac...
1threat
Code returning adress : I'm currently learning C at home (already know java from university). I'm just trying to run some basic functions but It seems I'm getting the adrees instead of the value.. #include <stdio.h> int getDepartureDate (int day, int month, int year); int getReturningDate (int retDay, in...
0debug
In "h2, h3 a {}", who is a's parent element? : <p>In the following CSS code:</p> <pre><code>h2, h3 a { color: black; } </code></pre> <p>Is a's parent element h3, h2, or both?</p>
0debug
static int get_packet_payload_size(AVFormatContext *ctx, int stream_index, int64_t pts, int64_t dts) { MpegMuxContext *s = ctx->priv_data; int buf_index; StreamInfo *stream; stream = ctx->streams[stream_index]->priv_data; buf_index = 0; if (((s->pac...
1threat
Delphi: react in the program on the signal change : I would like to react in the program (VLC) on the signal change of a Boolean variable (call the different functions, for example- start/stop the measurement). How can I realize it? Is there an another way without timer? I use Delphi 7 and I work with Delphi for just...
0debug
Linux date timezone : <p>I have a question about timezone and the output of the linux <code>date</code> command. Is it standard or daylight? <code>date +%Z</code> returns <code>EDT</code>. </p> <p>Is there a way to change the timezone returned by <code>date +%Z</code> from <code>EDT</code> to <code>EST</code>?</p>
0debug
static int resample(ResampleContext *c, void *dst, const void *src, int *consumed, int src_size, int dst_size, int update_ctx, int nearest_neighbour) { int dst_index; int index = c->index; int frac = c->frac; int dst_incr_frac = c->dst_incr...
1threat
I'm can't quite wrap my head around this code for checking for a perfect square. : I'm a novice as may be obvious, in advanced c++ at my school and I was working on home work and was having issues with try to figure out how to decide if an integer is a perfect square or not when I stumbled across this piece of code. ...
0debug
C# Make form invisible : i know this question seems very simple but its not working for me, i think i changed a property by accident so the form wont go invisible. on load, i have : this.Visible = false; this.ShowInTaskbar = false; this.ShowIcon = false; it doesnt show in ...
0debug
static void gen_wsr_ps(DisasContext *dc, uint32_t sr, TCGv_i32 v) { uint32_t mask = PS_WOE | PS_CALLINC | PS_OWB | PS_UM | PS_EXCM | PS_INTLEVEL; if (option_enabled(dc, XTENSA_OPTION_MMU)) { mask |= PS_RING; } tcg_gen_andi_i32(cpu_SR[sr], v, mask); gen_jumpi(dc, dc->n...
1threat
static void vc1_decode_b_mb_intfi(VC1Context *v) { MpegEncContext *s = &v->s; GetBitContext *gb = &s->gb; int i, j; int mb_pos = s->mb_x + s->mb_y * s->mb_stride; int cbp = 0; int mqdiff, mquant; int ttmb = v->ttfrm; int mb_has_coeffs = 0; int val; int first_block...
1threat
Sublime Text 3, how to add to right click? : <p>How do I add Sublime Text just like how Edit with Notepad++ is there it's nothing big but it saves time.</p> <p><a href="https://i.stack.imgur.com/mGOPJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/mGOPJ.png" alt="enter image description here"></a></p>
0debug
static void eval_cond_jmp(DisasContext *dc, TCGv pc_true, TCGv pc_false) { int l1; l1 = gen_new_label(); tcg_gen_mov_tl(cpu_SR[SR_PC], pc_false); tcg_gen_brcondi_tl(TCG_COND_EQ, env_btaken, 0, l1); tcg_gen_mov_tl(cpu_SR[SR_PC], pc_true); gen_set_label(l1); }
1threat
How to get Name from second table by referring ID from fist table : I am new to the SQL Server world. I've two tables for example **gameDetails(gid,name,categoryid,companyid,year)** and **gameSubDetails(id,name,delflag).** In gameDetails i've stored ids of gameSubDetails in categoryid and companyid. Now if I ...
0debug
Does not evaluate the condition : Good day, that does not happen in my code, but when running, does not fall to assess the condition, otherwise I run the line of the "else" could help me have I got wrong. Thank you. public class LoginActivity extends AppCompatActivity { private EditText usern; pri...
0debug
static void video_image_display(VideoState *is) { Frame *vp; Frame *sp; AVPicture pict; SDL_Rect rect; int i; vp = frame_queue_peek(&is->pictq); if (vp->bmp) { if (is->subtitle_st) { if (frame_queue_nb_remaining(&is->subpq) > 0) { sp = frame_q...
1threat
Subclassing Numpy Array - Propagate Attributes : <p>I would like to know how custom attributes of numpy arrays can be propagated, even when the array passes through functions like <code>np.fromfunction</code>. </p> <p>For example, my class <code>ExampleTensor</code> defines an attribute <code>attr</code> that is set t...
0debug
What is the correct css for the list of results to show correctly in this situation? : <p>What is the correct css for the list of results to show correctly? Here are the steps to view the results:</p> <p>1) Navigate to <a href="http://mypubguide.com/good-pubs/east-region" rel="nofollow">http://mypubguide.com/good-pubs...
0debug
static int get_cluster_table(BlockDriverState *bs, uint64_t offset, uint64_t **new_l2_table, int *new_l2_index) { BDRVQcowState *s = bs->opaque; unsigned int l1_index, l2_index; uint64_t l2_offset; uint64_t *l2_table = NULL; int ret; ...
1threat
How to call an async task inside a timer? : <p>I figured out how to use a repeat a normal method with a timer, and it worked fine. But now I have to use some async methods inside of this method, so I had to make it a Task instead of a normal method. This is the code I currently have now:</p> <pre><code>public async Ta...
0debug
How can install arm-linux-gcc-3.3.2.tar.bz2 on ubuntu : <p>I'm trying to make cross compiler. And I commend like tar xvjf arm-linux-gcc-3.3.2.tar.bz2. But when ls /usr/local/arm there is nothing. arm directory doesn't exsist.... I dont know what to do.....</p>
0debug
static void typhoon_pcihost_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass); k->init = typhoon_pcihost_init; dc->no_user = 1; }
1threat
User registration on PHP with MySQL : <p>I create a simple code for user registration, and when user submit the data was not recorded to MySQL.</p> <p>Here is my logic code </p> <pre><code>&lt;?php $username = $_POST["user"]; $password = $_POST["pass"]; $confirmPassword = $_POST["repass"]; $email = $_...
0debug
Remove the following redirect chain if possible from Google : <p>We have recently started using <strong>Google Analytics</strong> and activated Google Re Marketting on <strong>Analytics panel</strong> </p> <p>Now we are seeing the following error messages when testing with <strong>Pingdom</strong>:</p> <p>Its says Re...
0debug
void mixeng_clear (st_sample_t *buf, int len) { memset (buf, 0, len * sizeof (st_sample_t)); }
1threat
static void pc_dimm_plug(HotplugHandler *hotplug_dev, DeviceState *dev, Error **errp) { HotplugHandlerClass *hhc; Error *local_err = NULL; PCMachineState *pcms = PC_MACHINE(hotplug_dev); PCMachineClass *pcmc = PC_MACHINE_GET_CLASS(pcms); PCDIMMDevice *dimm = PC_DIMM(d...
1threat
aio_ctx_prepare(GSource *source, gint *timeout) { AioContext *ctx = (AioContext *) source; uint32_t wait = -1; aio_bh_update_timeout(ctx, &wait); if (wait != -1) { *timeout = MIN(*timeout, wait); return wait == 0; } return false; }
1threat
The imported project "C:\Program Files\dotnet\sdk\2.1.201\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" was not found : <p>In Visual Studio 2017, I go to the Package Manager to do a dotnet restore. Then I get an error message</p> <blockquote> <p>error MSB4019: The imported project "C...
0debug
void HELPER(srst)(CPUS390XState *env, uint32_t r1, uint32_t r2) { uintptr_t ra = GETPC(); uint64_t end, str; uint32_t len; uint8_t v, c = env->regs[0]; if (env->regs[0] & 0xffffff00u) { cpu_restore_state(ENV_GET_CPU(env), ra); program_interrupt(env, PGM_SPECIFICATION,...
1threat
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
void gen_intermediate_code(CPUARMState *env, TranslationBlock *tb) { ARMCPU *cpu = arm_env_get_cpu(env); CPUState *cs = CPU(cpu); DisasContext dc1, *dc = &dc1; target_ulong pc_start; target_ulong next_page_start; int num_insns; int max_insns; bool end_of_page; ...
1threat
how get data json in php : <p>I'm not getting any information from Json as I try I want to get every single information and save it in the database</p> <pre><code> { "data":[ { "name":"چلوکباب چنجه", "price":"20000", "phone":"0930", "number":"2", "orider_id":"1", "img_name":"Changea.jpg" }, { "name":"سالاد فصل", "p...
0debug
Minio: How's bucket policy related to anonymous/authorized access? : <p>Minio has policies for <a href="https://github.com/minio/minio-java/blob/6a4cf897df8c55cf4b46ed32617bf8bf41efe53c/api/src/main/java/io/minio/policy/PolicyType.java#L20" rel="noreferrer">each bucket</a>. Which contains: </p> <ul> <li>ReadOnly </li>...
0debug
How to read JSON with multiple key value pair : <p>On AJAX request response is following :</p> <pre><code>[ {"status":{"login":"invalid"}}, {"user":{"username":false,"pwd":false}} ] </code></pre> <p>How to read values in Jquery.</p>
0debug
Merging duplicate values in a single row sql but keeping other information for crystal report : I have a sql query and i got the following result [SQL Query Result][1] But i want to merge the MemberName column for same members but the values in other columns will remain same so i can make the crystal report prop...
0debug
Docker Bad owner or permissions on /root/.ssh/config : <p>So, I've set up <code>docker 17.03</code> on <code>Ubuntu 16.04.5 LTS</code>. The problem is, the application needs to <code>ssh</code> to an external server. Since <code>docker</code> binds current users <code>ssh</code> files, it should allow me to <code>ssh</...
0debug
How to embed new Youtube's live video permanent URL? : <p>I stream live on youtube a lot and since yesterday I experience a weird thing:</p> <p>I embedded the livestream URL in my site. it was <code>youtube.com/embed/ABCDE</code> (normal embed link). That link used to show the <strong>current</strong> livestream and n...
0debug
Identfy "Start" and "End" date of a trip in SQL? : I want to get the start and end date of the trip from a table as shown below - [enter image description here][1] I have tried Min(Date) and then Max(Date) Group by Line_Number,Country Also LEAD function Preferred Outcome [enter image description here][...
0debug
static int rsd_probe(AVProbeData *p) { if (!memcmp(p->buf, "RSD", 3) && p->buf[3] - '0' >= 2 && p->buf[3] - '0' <= 6) return AVPROBE_SCORE_EXTENSION; return 0; }
1threat
Filling user card with the information from the form : <p>I need to create the card which is filled with the information as soon as the user types something into the form. For example, he enters his name and the name appears on the card. The page shouldn't be reloaded, the info on the card must appear instantly. </p>
0debug
Browser navigation broken by use of React Error Boundaries : <p>When an error is thrown in our React 16 codebase, it is caught by our top-level error boundary. The <code>ErrorBoundary</code> component happily renders an error page when this happens.</p> <p>Where the ErrorBoundary sits</p> <pre><code> return ( ...
0debug
static int ast_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; ASTMuxContext *ast = s->priv_data; AVCodecContext *enc = s->streams[0]->codec; int64_t file_size = avio_tell(pb); int64_t samples = (file_size - 64 - (32 * enc->frame_number)) / enc->block_align; av_log(s, AV_L...
1threat
NDK not configured (although it is installed)—how to fix without Android Studio : <p>I am trying to build an Android project with Gradle. The project uses native code and thus needs NDK, which I have installed.</p> <p>However, Gradle fails with the following error:</p> <pre><code>&gt; NDK not configured. Download ...
0debug
static int get_fw_cfg_order(FWCfgState *s, const char *name) { int i; if (s->fw_cfg_order_override > 0) { return s->fw_cfg_order_override; } for (i = 0; i < ARRAY_SIZE(fw_cfg_order); i++) { if (fw_cfg_order[i].name == NULL) { continue; } if (st...
1threat
long do_rt_sigreturn(CPUSH4State *regs) { struct target_rt_sigframe *frame; abi_ulong frame_addr; sigset_t blocked; target_ulong r0; #if defined(DEBUG_SIGNAL) fprintf(stderr, "do_rt_sigreturn\n"); #endif frame_addr = regs->gregs[15]; if (!lock_user_struct(VERIFY_READ, frame, fram...
1threat
I get an error when I'm trying to use Firefox In Debian Vagrant : <p>I installed firefox in my debian vagrant using these commands:</p> <pre><code>sudo nano /etc/apt/sources.list Add line in this file: deb http://packages.linuxmint.com debian import sudo apt-get update sudo apt-get install firefox </code></pre> <p>Wh...
0debug
static BlockDriverState *bdrv_open_inherit(const char *filename, const char *reference, QDict *options, int flags, BlockDriverState *parent, con...
1threat
Asyncronous texture object allocation in multi-GPU code : I have some code for texture object allocation and Host to Device copy. It is just a modification of the answer [here](https://stackoverflow.com/questions/53524944/array-of-cudaarray-for-multi-gpu-texture-code). I do not explicitly use streams, just `cudaSetDevi...
0debug
Java - Get Objects to Arraylist and stream it : I want to write Objects from a Jlist(with DefaultListModel) into Arraylist, so that I can use it to save/load (stream) them. How can I get the Objects into the Arraylist? Which is the best way to stream it? (buffered/filewriter,reader) Thanks for answering
0debug
static void bastardized_rice_decompress(ALACContext *alac, int32_t *output_buffer, int output_size, int readsamplesize, int rice_initialhistory, int...
1threat
How to addClass to an element that appears later in the page? : <p>I have the following jquery code:</p> <pre><code>$('.kv-editable-reset').addClass('green'); </code></pre> <p>which should add the class 'green' to this element:</p> <pre><code>&lt;button type="button" class="btn kv-editable-reset"&gt;&lt;/button&gt; ...
0debug
PHP code not connecting with html : <p>I'm having a very difficult time getting my PHP and HTML to work together on an email form. This is a website I've adopted and I'm not sure what I'm missing. I'm basically building a form within a modal so users have to register their email before downloading assets. So, once the ...
0debug
alert('Hello ' + user_input);
1threat
How does char* map to a string : <p>In C, the character * makes a variable a pointer. Thus one would assume that some variable char* would be a pointer to a char, but somehow it can become an array of chars. How is this possible?</p>
0debug
jQuery: Stop the progress bar animation when it reaches 100%? : I'm trying to create a progress bar using jQuery and CSS. At the moment, I have created the progress bar using CSS and I can animate it using jQuery. However, I can't stop the progress bar (loading animation) from stopping when it reaches the `100%`....
0debug
Python Anaconda: should I use `conda activate` or `source activate` in linux : <p>So I am used to typing <code>source activate &lt;environment&gt;</code> when starting a python Anaconda environment. That works just fine. But when I create new conda environments I am seeing the message on Ubuntu 16.04 to start the envir...
0debug
static int e1000_post_load(void *opaque, int version_id) { E1000State *s = opaque; NetClientState *nc = qemu_get_queue(s->nic); nc->link_down = (s->mac_reg[STATUS] & E1000_STATUS_LU) == 0; return 0; }
1threat
generic binary search for string case in c++ : I am a beginner. I tried to find an answer, but I couldn't. If I asked a duplicate question, I am sorry. Here is my question. I use template to do generic binary search, but in string case I cannot get the result. It keeps showing me error messeage of "error: no matchi...
0debug
Javascript simple taks : So, my task is to sort an array in Javascript by one parameter - value. It is calculated via .map method which applies a formula to some object parameters, calculating them. .map is supposed to return an array so that I could use is for sorting, but somehow I get undefined. This Javascript ta...
0debug
Pace.Js help to link another page when loader finish : <p>i have the index, but i want to load another page, after he pace.js loader finish, i modify the default properties of time the time intervals, but i want to show the some another page after this loader finish, i think some pace script code is required. please h...
0debug
static av_cold int pcm_decode_init(AVCodecContext *avctx) { PCMDecode *s = avctx->priv_data; int i; if (avctx->channels <= 0) { av_log(avctx, AV_LOG_ERROR, "PCM channels out of bounds\n"); return AVERROR(EINVAL); } switch (avctx->codec->id) { case AV_CODEC_ID_PCM_ALA...
1threat
static inline void gen_scas(DisasContext *s, int ot) { gen_op_mov_TN_reg(OT_LONG, 0, R_EAX); gen_string_movl_A0_EDI(s); gen_op_ld_T1_A0(ot + s->mem_index); gen_op_cmpl_T0_T1_cc(); gen_op_movl_T0_Dshift[ot](); #ifdef TARGET_X86_64 if (s->aflag == 2) { gen_op_addq_EDI_T0(); }...
1threat
PHP error: "The zip extension and unzip command are both missing, skipping." : <p>When I run a <code>composer update</code> I get this error message:</p> <pre><code>Loading composer repositories with package information Updating dependencies (including require-dev) Failed to download psr/log from dist: The zip ext...
0debug
How to to compare numbers in a list, to the average of all the numbers in the same list. : import random def average(): infile = open("pa8_numbers.py") global mylist mylist = [] num = infile.readline() while num != "": mylist.append(eval(num)) num = infil...
0debug
winston: Attempt to write logs with no transports - using default logger : <p>I followed a tutorial to set up winston (2.x) default logger in my express app. When updating to the current version of winston (3.0.0) I have a problem with adding the transports. I have followed the <a href="https://github.com/winstonjs/win...
0debug
Convert String "MM/dd/yy" in to date MM/dd/yyyy : <p>I am try to convert string 11/08/91(MM/dd/yy) into 11/08/1991(MM/dd/yyyy) but it is give wrong output link <strong>Date is :0091-11-07 18:06:32 +0000</strong></p> <ul> <li>My original output is 11/08/1991</li> </ul> <p>My Code</p> <pre><code>NSString *strdate = @...
0debug
static int nbd_negotiate_read(QIOChannel *ioc, void *buffer, size_t size) { ssize_t ret; guint watch; assert(qemu_in_coroutine()); watch = qio_channel_add_watch(ioc, G_IO_IN, nbd_negotiate_continue, ...
1threat
QObject *object_property_get_qobject(Object *obj, const char *name, Error **errp) { QObject *ret = NULL; Error *local_err = NULL; Visitor *v; v = qmp_output_visitor_new(&ret); object_property_get(obj, v, name, &local_err); if (!local_err) { ...
1threat
static char *regname(uint32_t addr) { static char buf[16]; if (addr < PCI_IO_SIZE) { const char *r = reg[addr / 4]; if (r != 0) { sprintf(buf, "%s+%u", r, addr % 4); } else { sprintf(buf, "0x%02x", addr); } } else { sprintf(buf, "???...
1threat
Angular 2 scroll to top on route change not working : <p>I am trying to scroll to the top of my page on my angular 2 site when the route changes, I have tried the following, but nothing happens, when I change the route from one page to another, the page is scrolled to where it was on the first page:</p> <pre><code>imp...
0debug
How dose Angular or Typescripts work? : I dont know exactly how Angular or Typescripts works, I think in this code , it should be 3 1 2. but it is 1 2 3. Please help me. confirmDelete(id: number) { this.commentService.queryByStoryId(id).subscribe( (res: ResponseWrapper) => { ...
0debug
Custom HTML,CSS Scrollbar : <p>Looking for scrollbar that has no inside body, only arrows should available to scroll content. Is it possible? In the snippet, the body has a scrollbar with up and down arrow, I don't want a mid area of scrollbar, just custom arrows that do the same thing(maybe it's called scroll thumb or...
0debug
Java io: Create folder and print to text file from command : for example you this command where the second word is directory plus file name: String fileName = "createF dir/text.txt"; String textToFile="apples, oranges"; How can I make "dir/text.txt" to make folder called dir and create a txtfile and write to it. ...
0debug
How to create a redis cloud connection url with an auth password : <p>I'm switching over from a heroku addon to a direct redis cloud account and am a bit puzzled on how to generate the redis url with the auth info.</p> <p>The old heroku add-on url was in the format of <code>redis://rediscloud:mypassword@redis...</code...
0debug
void avcodec_get_channel_layout_string(char *buf, int buf_size, int nb_channels, int64_t channel_layout) { int i; if (channel_layout==0) channel_layout = avcodec_guess_channel_layout(nb_channels, CODEC_ID_NONE, NULL); for (i=0; channel_layout_map[i].name; i++) if (nb_channels ==...
1threat
Is it possible to use a foreach to make new objects inside an IEnumberable? : Using *xunit* I want to pass a list of strings to a test (using ClassData or MemberData) Is there a way to do something like this but with a list: **before:** public static IEnumerable<object[]> GetPersonFromDataGenerator() { ...
0debug
Html to content management system : <p>Hi I started learning web design couple of months ago and I just made my first functional site using HTML, CSS and JavaScript and PHP for my form. I wanted to find out if there is anyway I can transfer my whole site to a CMS without redesigning it. Thanks</p>
0debug
Kotlin "ternary operator" using WHEN : How to write Kotlin conditional if (a) b else c using WHEN
0debug
creating a simple electrical circuit using Three.JS : <p>I am a beginner to three.Js library.How can i implement/create a circuit having batteries,bulbs,ammeter,switches using Three.js with simple features like glowing of a bulb when circuit is closed,toggling of existing state(open/closed) of button when clicked ,i tr...
0debug
static int init_directory(BDRVVVFATState* s,const char* dirname) { bootsector_t* bootsector=(bootsector_t*)&(s->first_sectors[(s->first_sectors_number-1)*0x200]); unsigned int i; unsigned int cluster; memset(&(s->first_sectors[0]),0,0x40*0x200); s->sectors_per_fat=0xfc; s->secto...
1threat
How i can get Data from Wordpress plugin in json, like if a plugin showing data on wordpress , i want also get json and use in android : i upload a plugin on wordpress and all set it is working fine and fetching data, but same data i have to use in android as web service, How can this happen. is it possible? i downl...
0debug
How to store a cell value in excel and increment it with adjacent changing value? : <p>Example - I have cell A2 = 10 and B2= 300+A2. The value in B2 will be 310. Now, if I change the value in A2 to 20, I want the value in B2 to automatically change to 330 (and not 300+20). Is there any VBA code or Excel formula which c...
0debug
static void pci_bridge_region_cleanup(PCIBridge *br) { PCIBus *parent = br->dev.bus; pci_bridge_cleanup_alias(&br->alias_io, parent->address_space_io); pci_bridge_cleanup_alias(&br->alias_mem, parent->address_space_mem); pci_bridge_cleanup...
1threat
How to Trim leading and trailing tab spaces in MSSQL query : <p>I have data which has leading and trailing spaces in the string. when storing that data in database I want to trim the space in query itself before storing into DB.</p> <p>Normal spaces are trimming properly with RTRIM and LTRIM function but if a string c...
0debug
static void arm_cpu_class_init(ObjectClass *oc, void *data) { ARMCPUClass *acc = ARM_CPU_CLASS(oc); CPUClass *cc = CPU_CLASS(acc); DeviceClass *dc = DEVICE_CLASS(oc); acc->parent_realize = dc->realize; dc->realize = arm_cpu_realizefn; dc->props = arm_cpu_properties; acc->parent_reset = cc->r...
1threat
Update one column based on the first 3 letters of another : <p>can someone help show me how to update one field in my table based on the first 3 letters in another field in MySql?</p> <p>in my tblpeople I have a column called location, in it are various codes but where the code starts VOL- then I need to update the co...
0debug
Plotting multi histograms in one. with R : I have a set of data with 5 columns of data. Im looking to put all 5 into a single histagram/ or similar, to compare them. `ggplot()+geom_histogram(data=Ft_max, aes(x=1,2,3,4,5)) does not seem to be having anyt effect and I was hoping to get some advise.
0debug
VBA: Single line if statement with multiple actions : <p>I really should be able to google this, but I can't find what I wanna know about.</p> <p>I want to check if a file exists. If not, a MessageBox should pop up and VBA should exit the sub.</p> <pre><code>If Dir("C:\file.txt", vbDirectory) = "" Then MsgBox "F...
0debug
Mac .bash_profile double quotes (straight and curly) : <p><a href="https://i.stack.imgur.com/of0DT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/of0DT.png" alt="enter image description here"></a></p> <p>While running alias <strong>bb</strong> I was getting error.</p> <pre><code>. .bash_profile -...
0debug
Name of method same like class, what it means? : Need help, I couldn't to figure out why no error class DerivedPoint { public DerivedPoint(string fName, string Name, double sallary) { } }
0debug
def unique_sublists(list1): result ={} for l in list1: result.setdefault(tuple(l), list()).append(1) for a, b in result.items(): result[a] = sum(b) return result
0debug
link textbox with listbox in userform : guys i have two textbox one for search to show data from sheet to listbox and the other to show value what i would is any code to show value in textbox2 after show the data in list box the list box have 7 column the total value which show in textbox from the column7 automatical...
0debug
Why is size() function of std::string[] array returning an incorrect number of parameters : <p>This is a simple 2 line question that I just don't understand. </p> <p>I just created an array with 3 members, and immediately afterwards, the size is reported as 6. It was working before, but all of sudden changed. I tried ...
0debug
Create custom UI Button with 2 text colors? : <p>I have a UIButton mock-up and I want to make the number red as the mock-up. can someone help me to how to do it?</p> <p><a href="https://i.stack.imgur.com/SF5W1.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SF5W1.png" alt="enter image description he...
0debug
how to avoid java.util.zip.ZipException in android studio at build time : Do not suggest to clean build or ./gredlew clean solution already tried a lot. I simply want to avoid this error without excluding any jar file. Error details com.android.build.api.transform.TransformException: java.util.zip.ZipException: ...
0debug
static int nbd_opt_go(QIOChannel *ioc, const char *wantname, NBDExportInfo *info, Error **errp) { nbd_opt_reply reply; uint32_t len = strlen(wantname); uint16_t type; int error; char *buf; info->flags = 0; trace_nbd_opt_go_start(wantname); bu...
1threat
static MemTxResult gic_cpu_read(GICState *s, int cpu, int offset, uint64_t *data, MemTxAttrs attrs) { switch (offset) { case 0x00: *data = s->cpu_enabled[cpu]; break; case 0x04: *data = s->priority_mask[cpu]; break; case 0x08: ...
1threat
static void gen_dmtc0 (CPUState *env, DisasContext *ctx, int reg, int sel) { const char *rn = "invalid"; if (sel != 0) check_insn(env, ctx, ISA_MIPS64); switch (reg) { case 0: switch (sel) { case 0: gen_op_mtc0_index(); rn = "Index"; ...
1threat
Error when I tried create new maven module in IntellijIDE 15 : <p>I tried add new module to project in IntellijIDE 15 and I have error</p> <pre><code>Failed to create a Maven project 'C:/gitProjects/mayProj/pom.xml' already exists in VFS </code></pre> <p>And in my project create file <code>moduleName.iml</code> but i...
0debug
Can't add setOnClickListener on function showInputDialog : I write a function to handle showing dialog but I can't use on click Listeriner to it what wrong with my code can any one tell me? Here is my function private void showInputDialog() { final Dialog dialog=new Dialog(MainDashboard...
0debug