problem
stringlengths
26
131k
labels
class label
2 classes
Create one activity to show multiple strings by buttons id : for example, i have to activities, first activity contain three buttons, when i click button 1 they go to second activity and show the string by id in the TextView, if click button 2 they go to same activity that is (second activity) and show the string fo...
0debug
static av_cold int flashsv_encode_end(AVCodecContext *avctx) { FlashSVContext *s = avctx->priv_data; deflateEnd(&s->zstream); av_free(s->encbuffer); av_free(s->previous_frame); av_free(s->tmpblock); av_frame_free(&avctx->coded_frame); return 0; }
1threat
what is wrong is here? : File "/Users/user/Desktop/Dp1/simplesocial/groups/views.py", line 24 messages.warning(self.request=,('Warning already a member!')) SyntaxError: invalid syntax from django.shortcuts import render from django.contrib.auth.mixins import (Logi...
0debug
Express server not listening to specific port 3000 on localhost : <p>app.listen(port, (err) => { if (err) return console.log(err); console.log('Server running on port ' + port); })</p>
0debug
VB.NET - Query will not update SQL Server : In the below code, my second query will not insert into the SQL database, but the first one will update. I can copy the query (from the msgbox i added for testing) and paste it in SQL Server Management Studio, and it will execute fine. I also do not get any error messages ba...
0debug
iOS must run pod install after every checkup : <p>I am using cocoapods for an iOS project and every time I checkout a new branch I have to run <code>pod install</code>, as the pods don't run. </p> <p>Is there a solution to not have to run <code>pod install</code> every time?</p>
0debug
What is the difference between Int and Integer in Kotlin? : <p>I have tried using Int and Integer types in Kotlin.Although I don't see any difference. Is there a difference between Int and Integer types in Kotlin?Or are they the same?</p>
0debug
How to verify call on setter in kotlin using mockito? : <pre><code>interface LoginDisplay { var username: String var password: String } class LoginActivityLoginDisplay : LoginDisplay { override var username: String get() = usernameEditView.text.toString() set(value) { username...
0debug
Naming convention for models that get posted against a controller? : <p>We use the term <em>ViewModel</em> for classes that get returned from a controller and are passed to the view. Instead of using ViewBag or ViewData, we are using a strongly typed class which basically stores every value the view needs.</p> <pre><c...
0debug
How to reverse the exon numbers on the minus strand? : <p>As shown below, the exon numbers (on the 5th column) when the gene is on the minus strand ("-" on the 6th column) should be reversed. For example, for NT5C3B gene, exon numbered from 1, 2....9 should be reversed to 9, 8, ...1 , I don't know how to programmatical...
0debug
iOS 11 URL Scheme for specific Settings section stopped working : <p>My app uses a URL scheme to take users directly to Settings/General/About section, the following URL was working fine in 10.3.x.<br> "App-Prefs:root=General&amp;path=About"</p> <p>However, this URL scheme no longer works in iOS 11 GM build. It o...
0debug
How to get substring out of String in java? : <p>i am getting this String input="One Two Three"; how to get substrings out of it? I want to get optimized solutions. help me!</p>
0debug
Whats best practice for loading keys in a Go web app? : <p>I usually worry about memory corruption with leaving my public and private keys in memory for access throughout my applications. I'm very new to Go and I'm wondering what the best practice is for making these keys available.</p> <p>Is Go safe enough that I sho...
0debug
static void FUNCC(pred16x16_horizontal)(uint8_t *_src, int stride){ int i; pixel *src = (pixel*)_src; stride /= sizeof(pixel); for(i=0; i<16; i++){ ((pixel4*)(src+i*stride))[0] = ((pixel4*)(src+i*stride))[1] = ((pixel4*)(src+i*stride))[2] = ((pixel4*)(src+i*stri...
1threat
Using GraphQL Fragment on multiple types : <p>If I have a set of field that is common to multiple types in my GraphQL schema, is there a way to do something like this?</p> <pre><code>type Address { line1: String city: String state: String zip: String } fragment NameAndAddress on Person, Business { name: St...
0debug
static int ea_read_header(AVFormatContext *s, AVFormatParameters *ap) { EaDemuxContext *ea = s->priv_data; AVStream *st; if (!process_ea_header(s)) return AVERROR(EIO); if (ea->video_codec) { st = av_new_stream(s, 0); if (!st) return...
1threat
static int omap_validate_emifs_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return range_covers_byte(OMAP_EMIFS_BASE, OMAP_EMIFF_BASE - OMAP_EMIFS_BASE, addr); }
1threat
Can't display a string from an array of strings : When i press button VK_LEFT / VK_RIGHT nothing happens, why??? I would like it to print the next string in the array but it won't do it for some reason!!! what am i doing wrong here? thanks for anyone helping me out here! ``` int TotalItems = 0, IntForItem = 0; ...
0debug
I'm getting a stack overflow exception in my get method : <p>while I was refactoring my code, I got a System.StackOverflowException thrown by my <strong>get</strong> method when my view try to access a member of my class. That's the first time that I'm using the <strong>?? (null-coalescing operator)</strong> in c#.</p...
0debug
Negative chat id in log file of telegram bot : <p>I have a telegram bot and save all user activity in a log file. When check log file, find user with negative chat id <code>-107606558</code>. Is this usual?</p>
0debug
Macro to fill down based on number contents of adjacent cell or other sheet : I've seen a few other posts similar to this but I can seem to get mine to work. Right now I have data in Column A, from A5 to A50 but the end point is subject to change. I am looking for a macro to select B5 to Y5 and fill down to the end of ...
0debug
static int get_pci_config_device(QEMUFile *f, void *pv, size_t size) { PCIDevice *s = container_of(pv, PCIDevice, config); uint8_t config[size]; int i; qemu_get_buffer(f, config, size); for (i = 0; i < size; ++i) if ((config[i] ^ s->config[i]) & s->cmask[i] & ~s->wmask[i]) ...
1threat
BlockDriverState *bdrv_find_backing_image(BlockDriverState *bs, const char *backing_file) { char *filename_full = NULL; char *backing_file_full = NULL; char *filename_tmp = NULL; int is_protocol = 0; BlockDriverState *curr_bs = NULL; BlockDriverState *retval = NULL; if (!...
1threat
TREE LIKE STRUCTURE / GRID IN LISTVIEW XAF BUSINESS OBJECT : I have been having super difficulties on creating a view that will display my data grouped in levels (Screenshot attached). I don't know on how to go about this, my data is stored in **ONE single table** in database which is mapped to a business object in ...
0debug
The simplest way to serve webpages with dynamic content with nodejs + express : <p>I'm building a web application with nodejs and express which has two views, one for writing and submitting the written data to a database, and another one for viewing the data from the database. </p> <p>What would be the simplest way to...
0debug
Python invalid syntax on define : <p>I made a piece of code for taking the cpu temp for my rpi and if it's more than 60 C to send a signal on GPIO port 7 and if it's not more than 60 C to not send the signal on the port but I get this error:</p> <pre><code> File "tempgate.py", line 17 def FanController(CPU_temp) :...
0debug
Curl to return http status code along with the response : <p>I use curl to get http headers to find http status code and also return response. I get the http headers with the command</p> <pre><code>curl -I http://localhost </code></pre> <p>To get the response, I use the command </p> <pre><code>curl http://localhost ...
0debug
Docker stuck on "Waiting for SSH to be available..." : <p>I'm using a docker with Windows and Hyper-v to create containers. I've added a docker machine <strong>vmachine</strong> to my docker configuration. First time the machine is created, it gets an IP (although I cannot manage nginx to access it - ERR_CONNECTION_REF...
0debug
javascript variables and google maps distance service : <p>I use Google Maps Distance Service API to get driving distance and time between two points. Here's my code:</p> <pre><code>&lt;div id="right-panel"&gt; &lt;div id="output"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div id="map"&gt;&lt;/div&gt; &lt;script&gt; functi...
0debug
How can this for-loop with range be explained : <p>Can someone please help me how to understand this code:</p> <pre><code>j = 0 for i in range(1, 8, 2): j += i print (j) </code></pre> <p>The output is: 1 4 9 16</p> <p>But I just cannot understand why. I get the concept of for-loops and range. But the involve...
0debug
MySQL: How do I match escaped urls using LIKE or REPLACE : My Situation: I have url's that are stored in my database with escape characters. **Original URL:** http://test01.mysite.com **As Stored in DB:** http:\/\/test01.mysite.com If I run SELECT * FROM table W...
0debug
SceneKit SCNNode init(mdlObject:) missing? : <p>I'm using Xcode 7.3.1, Swift 2.x, iOS target is 9.3. I can find convenience init <code>init(MDLObject mdlObject: MDLObject)</code> in <a href="https://developer.apple.com/library/ios/documentation/SceneKit/Reference/SCNNode_Class/#//apple_ref/occ/clm/SCNNode/nodeWithMDLOb...
0debug
How To Format Email to Send as SMS : <p>I want to be notify people via SMS when certain things happen. Seems like it should be pretty straighforward. But when the SMS arrives it has the sender and subject line in the message, and I can't figure out how to adjust the message to get rid of it.</p> <pre><code>import smtp...
0debug
why is the storage class of global variables in C implicitly defined as "extern"? : when we declare any global variable , for instance int x ; it is equivalent to extern int x; Now by default global variables are intialized to 0 by the compiler ,which means they are allocated memory .But if I simp...
0debug
x11grab_read_header(AVFormatContext *s1, AVFormatParameters *ap) { struct x11_grab *x11grab = s1->priv_data; Display *dpy; AVStream *st = NULL; enum PixelFormat input_pixfmt; XImage *image; int x_off = 0; int y_off = 0; int use_shm; char *param, *offset; int ret = 0; ...
1threat
Using Visual Studio 2010, trying to link a database to the desgin. But it shows error : When I try to connect them. It shows error: The database is version 782, VS 2010 supports version 655 and below. What should I do in such situation please guide me. I'm mentally frustrated coz of this!
0debug
Is decimal quadruple precision? : <p>Float is 32 bits and is single precision (floating point format). Double is 64 bits and is double precision (floating point format). Decimal is 128 bits, but is it quadruple precision (floating point format)?</p>
0debug
iOS 10 barTintColor animation : <p>I've noticed a change in the way bar tint color animates in ios 10. I've created a sample project outlining the change: <a href="https://github.com/johnryan/ios10BarTintDemo" rel="noreferrer">Github: ios10BarTintDemo</a></p> <p>Basically on ios 9 the barTintColor animates smoothly us...
0debug
How to use "find View by id " in non activity class below is my code snippet. Error message "cant resolve method find View by id" : public class Broadcast extends Receiver { @Override protected void Name(Context context) { //................. } @Override public void onButton(Contex...
0debug
static inline void xan_wc3_copy_pixel_run(XanContext *s, AVFrame *frame, int x, int y, int pixel_count, int motion_x, int motion_y) { int stride; int line_inc; int curframe_in...
1threat
Why does console.log("hello") inside console return undefined? : <p>Out of curiosity, why does writing <code>console.log("hello")</code> inside console return undefined?</p> <p>Is it for the same reasons in defining void function in C?</p> <p><a href="https://i.stack.imgur.com/uonpR.png" rel="nofollow noreferrer"><im...
0debug
install not complete mongodb on windows 7 64 bit : <p>when install mongo database on windows 7 is not complete instillation</p> <p><a href="https://i.stack.imgur.com/kUGAp.png" rel="noreferrer">image of the problem</a></p> <p>how to solve this problem </p>
0debug
Why does C# implement anonymous methods and closures as instance methods, rather than as static methods? : <p>As I'm not exactly an expert on programming languages I'm well aware this may be a stupid question, but as best as I can tell C# handles anonymous methods and closures by making them into instance methods of an...
0debug
Please help me write the outcome of is statement to a python file : I have a rather stupid question to ask, but I have, can someone explain to me what I am doing wrong ? I have two files: file1 looks like this NOP7 305 CDC24 78 SSA1 41 NOP7 334 LCB5 94 FUS3 183 file2 looks like this SSA1...
0debug
This iPhone 6 is running iOS 12.3.1 (16F203), which may not be supported by this version of Xcode : <p>Xcode updated to the latest version 10.2 recently and so did the iOS to 12.3.1. My Mac is an older mac that's working on High Sierra and I cannot update to Mojave. I have Xcode 10.1. How do I add the supporting files ...
0debug
Azure storage account: general purpose vs blob storage : <p>Having the need to store and access blobs which type of storage account is the most appropriate? Both types (general purpose and blob storage) seem to support blobs and in addition to this general purpose accounts allow selecting default or premium performance...
0debug
How to add period to only TIME (02:00:00) in PHP : <p>I want to add a specific period like 2 hours to only time. <br /> BUT only TIME. There will be no date related issue.</p> <p>Like my time is 02:00:00 <br /> And I want to add 1 hour to this time. <br /> So, the result will be 03:00:00 <br /></p> <p>Is there any PH...
0debug
Is `using Base::operator T` allowed where `T` is a template type parameter? : <p>Consider this example:</p> <pre><code>struct B { operator int(); }; template&lt;class T&gt; struct X:B { using B::operator T; }; </code></pre> <p><a href="http://coliru.stacked-crooked.com/a/2602ae50955f3977">GCC</a> accepts the cod...
0debug
static int decode_residual(H264Context *h, GetBitContext *gb, DCTELEM *block, int n, const uint8_t *scantable, const uint32_t *qmul, int max_coeff){ MpegEncContext * const s = &h->s; static const int coeff_token_table_index[17]= {0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3}; int level[16]; int...
1threat
unrecognized selector sent to instance in objective c : I have the following code lazy private var _containerView: UIView = { let view = UIView(frame: self.view.frame) let tapGesture = UITapGestureRecognizer( target: self, action: Selector(("didtapConta...
0debug
I want to show Native_Ads_view In XML file in android studio but it give me error? : hope you will be all fine basically my problem is that when i add native_ads_view in XML file it give me error ("Required XML_attribute "adSize" was missing"). i am stuck here i search alot but failed.I hope you guys give me better a ...
0debug
Python web scraping using 're' : I'm running into a wall why this code does not work, even thought it's the same code as on an online tutorial [Python Web Scraping Tutorial 5 (Network Requests)][1]. I tried running the code also via online Python interpreter. import urllib import re htmltext = urllib...
0debug
which version of eclipse for android development is light and stable? : <p>I have started android development recently and i'm working on eclipse but it is very slow, i think because of it's heavy appearance. Please suggest me a good version which is totally light, it may lack in appearance but performance must be good...
0debug
Controller under a controller: Laravel 5.5 : <p>I have two controllers:</p> <pre><code>AdminController ProductController </code></pre> <p><code>AdminController</code> has some functions:</p> <pre><code>index create etc </code></pre> <p><code>ProductController</code> also has some functions:</p> <pre><code> index...
0debug
static void gen_mttr(CPUMIPSState *env, DisasContext *ctx, int rd, int rt, int u, int sel, int h) { int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); TCGv t0 = tcg_temp_local_new(); gen_load_gpr(t0, rt); if ((env->CP0_VPEConf0 & (1 << CP0VPEC0_MVP)) == 0 && ...
1threat
MVC model is null in controller during HTTP Post ASP.NET : <p>When I post data via submit, I see that model is null in controller. I already see that this question is asked many times, and the root cause is the name conflict between model property name and the same name we use in action parameter of controller. But th...
0debug
How to get first char of string in python? : <p>I want to enter a word from keyboard, put it in a string variable and return first and last letter from the word. But I don't know to to do this.</p> <pre><code>input: "Hello" output: "H", "o" </code></pre> <p>P.S: I want to put this 2 letters in a variable:</p> <pre>...
0debug
Image in circle not working in iphone 5 (the circle is not accurate) : In my iphone 7 simulator, my image is an exact circle. For some reason my image in iphone 5 becomes a little squarish. This is the code that I have to make the image a circle: private func setImage(){ self.profileImage.layer.bord...
0debug
How to check bad word in string or not using php? : This is my php code for replace bad word in string to *, it's work good. But i want to check in string have bad word or not. How can i do ? index.php <?php include("badwords.php"); $content = "cat fuck dog"; $badword = new badword(); e...
0debug
static int bmp_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; BMPContext *s = avctx->priv_data; AVFrame *picture = data; AVFrame *p = &s->...
1threat
how to store text field of toast into SQLite database : i have been writing this code for getting location.how to store "mg" in SQLite database of android public void onLocationChanged(Location location) { String mg = " Latitude:" + location.getLatitude() + " Longitude:" + location.getLatitude(); To...
0debug
Match everything between characters in Regex? : <p>I am trying to match everything between</p> <blockquote> <p>/* <strong><em>and</em></strong> */</p> </blockquote> <p>And also include the in between characters.</p> <p>I currently managed to create a pattern that kind of does this</p> <pre><code>\/\*(.+?)\*\/ </c...
0debug
int pcistg_service_call(S390CPU *cpu, uint8_t r1, uint8_t r2) { CPUS390XState *env = &cpu->env; uint64_t offset, data; S390PCIBusDevice *pbdev; uint8_t len; uint32_t fh; uint8_t pcias; cpu_synchronize_state(CPU(cpu)); if (env->psw.mask & PSW_MASK_PSTATE) { program_i...
1threat
How to get the ip address of a windows 7/8/8.1/10 phone programmatically : <p>i am new to this community &amp; windows phone app development. I need to get the ip address of the network (wifi and mobile) to which the device is connected pro-grammatically on a windows phone app (C#). windows version 7/8/8.1/10 is requir...
0debug
static void test_qemu_strtoul_max(void) { char *str = g_strdup_printf("%lu", ULONG_MAX); char f = 'X'; const char *endptr = &f; unsigned long res = 999; int err; err = qemu_strtoul(str, &endptr, 0, &res); g_assert_cmpint(err, ==, 0); g_assert_cmpint(res, ==, ULONG_MAX); ...
1threat
How to setup EF6 Migrations with ASP.NET Core : <p>I am trying to adopt Jimmy Bogard's <a href="https://github.com/jbogard/ContosoUniversityCore" rel="noreferrer">ContosoUniversityCore project</a></p> <p>I would like to do code first migrations, but not sure how to properly set it up. I added Migrator.EF6.Tools to my ...
0debug
static void *colo_compare_thread(void *opaque) { CompareState *s = opaque; GSource *timeout_source; s->worker_context = g_main_context_new(); qemu_chr_fe_set_handlers(&s->chr_pri_in, compare_chr_can_read, compare_pri_chr_in, NULL, NULL, ...
1threat
Angular 5 Breaking change - manually import locale : <p>Changelog says:</p> <blockquote> <p>By default Angular now only contains locale data for the language en-US, if you set the value of LOCALE_ID to another locale, you will have to import new locale data for this language because we don’t use the intl API a...
0debug
static void fill_caches(H264Context *h, int mb_type, int for_deblock){ MpegEncContext * const s = &h->s; const int mb_xy= h->mb_xy; int topleft_xy, top_xy, topright_xy, left_xy[2]; int topleft_type, top_type, topright_type, left_type[2]; int * left_block; int topleft_partition= -1; in...
1threat
Indentation in ERB templates : <p>I have the following entry in an <code>erb</code> template:</p> <pre><code># Lorem Ipsum... &lt;% unless @foo['bar'] == nil %&gt; &lt;% @foo['bar'].each do |property, value| %&gt; &lt;%= "zaz.#{property} #{value}" %&gt; &lt;% end %&gt; &lt;% end %&gt; </code></pre> <p...
0debug
What happens to uninitialized class members in c++? : <p>What happens to uninitialized class members in c++? If I have to do this, what should I take care of?</p> <pre><code>#include &lt;iostream&gt; using namespace std; class Foo { int attr1, attr2; public: Foo (); Foo::Foo () { attr1 = 5; } Foo myTh...
0debug
static int ehci_state_writeback(EHCIQueue *q, int async) { int again = 0; ehci_trace_qtd(q, NLPTR_GET(q->qtdaddr), (EHCIqtd*) &q->qh.next_qtd); put_dwords(NLPTR_GET(q->qtdaddr),(uint32_t *) &q->qh.next_qtd, sizeof(EHCIqtd) >> 2); if (q->qh.token & QTD_...
1threat
How to display dictionary in label like table : <p>I have dictinary</p> <pre><code>var dic = ["A":23,"B":3,"C":13,...] </code></pre> <p>I want to display this dic in one label and it need to be formatted like this</p> <pre><code>A 23 B 3 C 13 ... </code></pre> <p>I want text to be aligned in left and ri...
0debug
Is there a PHP function that can decode a string containing &= : <p>I know this is a basic question but I can't find it or even thing what it might be called.</p> <p>But is there a function to easily decode strings with multiple vars like this?</p> <pre><code>$vars = 'status=true&amp;stackoverflow=great&amp;apple=red...
0debug
int qemu_fdt_setprop_sized_cells_from_array(void *fdt, const char *node_path, const char *property, int numvalues, uint64_t *values) { ...
1threat
How to add multiple attributes with jQuery? : <p>I followed all the answers on this post <a href="https://stackoverflow.com/questions/13014317/jquery-adding-two-attributes-via-the-attr-method">jQuery: Adding two attributes via the .attr(); method</a> and none of them work for multiple attributes, only single attribute ...
0debug
static void encode_window_bands_info(AACEncContext *s, SingleChannelElement *sce, int win, int group_len, const float lambda) { BandCodingPath path[120][CB_TOT_ALL]; int w, swb, cb, start, size; int i, j; const int max_sfb = sce->ics.max_sfb; const int ru...
1threat
c# Update object in List using Linq : <p>I have an viewmodel that has some relationships built.</p> <pre><code>public class object() { public int Id {get; set;} public string Name {get;set;} public decimal Amount {get;set;} } public class myViewModel() { public int Id {get;set;} public List&lt;ob...
0debug
How to open flutter application from url? : <p>For example, i have case in my flutter app when user can recover his password. In that case user will receive link on e-mail, and i want by clicking on that link, my flutter app will open, and route to specific screen.</p>
0debug
static void pc_init1(MachineState *machine) { PCMachineState *pc_machine = PC_MACHINE(machine); MemoryRegion *system_memory = get_system_memory(); MemoryRegion *system_io = get_system_io(); int i; ram_addr_t below_4g_mem_size, above_4g_mem_size; PCIBus *pci_bus; ISABus *isa_bus; ...
1threat
Using MSMTP with CodeIgniter email library : <p>Has anyone successfully been able to send email using the standard CodeIgniter email library when using msmtp?</p> <p>I'm running Ubuntu and I've successfully installed and configured MSMTP. I've been able to send email from the command line and also using the default P...
0debug
static int ape_decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; APEContext *s = avctx->priv_data; int16_t *samples = data; uint32_t nblocks;...
1threat
How to just make a specific link colorful? : <p>I did not want to make all links on my custom blog red. Just specific ones. Only the "Destiny" text and "Read more" should be red color. As you can see the titles is also red and that's what I don't want. All links should be red but not the titles!</p> <p>Screenshot: <a ...
0debug
static void extract_exponents(AC3EncodeContext *s) { int blk, ch, i; for (ch = 0; ch < s->channels; ch++) { for (blk = 0; blk < AC3_MAX_BLOCKS; blk++) { AC3Block *block = &s->blocks[blk]; for (i = 0; i < AC3_MAX_COEFS; i++) { int e; int v...
1threat
C# Console App Unable to load Program.cs or <Project_Name>.csproj : For my console app, I am getting the error Assets file 'D:\Folder Name\Tool Name\Tool Name\obj\project.assets.json' not found. Run a NuGet package restore to generate this file. Tool Name C:\Program Files\dotnet\sdk\2.2.204\Sdks\Microsoft.NET.Sdk\t...
0debug
static QObject *parse_object(JSONParserContext *ctxt, QList **tokens, va_list *ap) { QDict *dict = NULL; QObject *token, *peek; QList *working = qlist_copy(*tokens); token = qlist_pop(working); if (token == NULL) { goto out; } if (!token_is_operator(token, '{')) { ...
1threat
static inline uint64_t vmdk_find_offset_in_cluster(VmdkExtent *extent, int64_t offset) { uint64_t offset_in_cluster, extent_begin_offset, extent_relative_offset; uint64_t cluster_size = extent->cluster_sectors * BDRV_SECTOR_SIZE; extent_begin_offset ...
1threat
duplicate value in lists how can i avoid it : Public Class clsA Public icounter As Integer Public dtime As DateTime End Class Dim list_A As New List(Of clsA) Dim dyus As DateTime = DateTime.Now oB = New clsA ...
0debug
static inline void check_io(CPUX86State *env, int addr, int size) { int io_offset, val, mask; if (!(env->tr.flags & DESC_P_MASK) || ((env->tr.flags >> DESC_TYPE_SHIFT) & 0xf) != 9 || env->tr.limit < 103) { goto fail; } io_offset = cpu_lduw_kernel(env, env->tr.base...
1threat
static gboolean gd_leave_event(GtkWidget *widget, GdkEventCrossing *crossing, gpointer opaque) { VirtualConsole *vc = opaque; GtkDisplayState *s = vc->s; if (!gd_is_grab_active(s) && gd_grab_on_hover(s)) { gd_ungrab_keyboard(s); } return TRUE; }
1threat
Index error :list out of range : <p>the problem statement is :</p> <p>Given an array of integers, calculate the fractions of its elements that are positive, negative, and are zeros. Print the decimal value of each fraction on a new line.</p> <p>Note: This challenge introduces precision problems. The test cases are sc...
0debug
Convert PDF to Excel in Java : <p>How to convert PDF file to Excel using Java. We have generate PDF file using itext. Now we want to convert it to excel. we want sample code to convert pdf to excel. or kindly Suggest API.</p>
0debug
document.location = 'http://evil.com?username=' + user_input;
1threat
static void tmu2_write(void *opaque, target_phys_addr_t addr, uint64_t value, unsigned size) { MilkymistTMU2State *s = opaque; trace_milkymist_tmu2_memory_write(addr, value); addr >>= 2; switch (addr) { case R_CTL: s->regs[addr] = value; if (value ...
1threat
Using JSON.stringify in an expression in Angular2 template : <p>I have a small expression to check whether 2 objects are different or not, in order to display this element (via adding class name):</p> <pre><code>&lt;div ngClass='{{JSON.stringify(obj1) != JSON.stringify(obj2) ? "div-show" : ""}}'&gt;&lt;/div&gt; </code...
0debug
HealthMonitoring Failure Audits Repercussions in ASP.NET : <p>Our event viewer shows two information-level messages that we want to omit from the event logs: </p> <ol> <li>When a user fails authentication (Event code: 4006 Event message: Membership credential verification failed.)</li> <li>When forms authentication ha...
0debug
Need to filter value from string which can have dynamic number with text after that using regex : <p>I want to filter value from string which should result me a number followed by text. For example string looks like "There are 9 steps in the house which can be used to visit first floor". Output :"<strong>9 steps</stron...
0debug
static int x8_setup_spatial_predictor(IntraX8Context * const w, const int chroma){ MpegEncContext * const s= w->s; int range; int sum; int quant; w->dsp.setup_spatial_compensation(s->dest[chroma], s->edge_emu_buffer, s->current_picture.f.linesize[chroma>...
1threat
jquery issue with chekbox : <p>This is my html checkbox --</p> <pre><code>&lt;input type="checkbox" id="export_1_field_title" value="title"&gt; </code></pre> <p>in jquery, i want to check whether checkbox is checked or not, if check then will read the value, so this is my query --</p> <pre><code> var ...
0debug
static inline int cris_swap(const int mode, int x) { switch (mode) { case N: asm ("swapn\t%0\n" : "+r" (x) : "0" (x)); break; case W: asm ("swapw\t%0\n" : "+r" (x) : "0" (x)); break; case B: asm ("swapb\t%0\n" : "+r" (x) : "0" (x)); break; case R: asm ("swapr\t%0\n" : "+r" (x) : "0" (x)); break; cas...
1threat