problem
stringlengths
26
131k
labels
class label
2 classes
Weak' must not be applied to non-class-bound consider adding a protocol conformance that has a class bound : <p>I have a made a protocol in my VC in which i'm getting the location placemark from one my my swift file class. In my swift class i have declare the protocol like this,</p> <pre><code> weak var delegate: Hand...
0debug
Count the number of characters without len() and combine the variables : <h1>Q1</h1> <p>Write code that combines the following variables so that the sentence “You are doing a great job, keep it up!” is assigned to the variable message. Do not edit the values assigned to a, b, c, or d.</p> <h1>Q2</h1> <p>Count the nu...
0debug
int avcodec_close(AVCodecContext *avctx) { entangled_thread_counter++; if(entangled_thread_counter != 1){ av_log(avctx, AV_LOG_ERROR, "insufficient thread locking around avcodec_open/close()\n"); entangled_thread_counter--; return -1; } if (ENABLE_THREADS && avctx->thre...
1threat
Why is it bad practice to ask for full name in a form? : <p>In many many forms you see separate inputs for first and last name. I assume that asking for a users full name in one input is bad practice because you cannot rely on simply splitting the string by spaces to get the first and last names.</p> <p>Now I think ab...
0debug
no matching function for call : <p>i am new to c++ and i am currently trying to write a program that uses main to call functions which are seperately written and i tried to write the definitions for the header file declarations and i am getting errors with some functions which i have marked in the code</p> <p>Store.hp...
0debug
static void generate_2_noise_channels(MLPDecodeContext *m, unsigned int substr) { SubStream *s = &m->substream[substr]; unsigned int i; uint32_t seed = s->noisegen_seed; unsigned int maxchan = s->max_matrix_channel; for (i = 0; i < s->blockpos; i++) { uint16_t seed_shr7 = seed >> 7;...
1threat
how to call a subroutine of .pm file to another .pl file using perl : I have a script Attachments.pm which contains below package app::Attachments; use MIME::Lite; BEGIN{ use Exporter(); @ISA = qw(Exporter); @EXPORT = qw(&SendEMmsgAttachments); ...
0debug
static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out) { OutputStream *ost = ofilter->ost; AVCodecContext *codec = ost->st->codec; AVFilterContext *last_filter = out->filter_ctx; int pad_idx = out->pad_idx; char *sample_fmts, *sample_rates, *chann...
1threat
Passing value from ViewController to NSObject in Xcode : I need to pass value from a ViewController to NSObject as soon as the view loaded using Xcode with Objective c. I am using the code below but the value is null. -(void)viewDidAppear:(BOOL)animated { MyHomeModelNSObject *nsOb; ns...
0debug
static inline void ff_mpeg4_set_one_direct_mv(MpegEncContext *s, int mx, int my, int i){ static const int tab_size = sizeof(s->direct_scale_mv[0])/sizeof(int16_t); static const int tab_bias = (tab_size/2); int xy= s->block_index[i]; uint16_t time_pp= s->pp_time; uint16_t time_pb= s->pb_time; ...
1threat
static int decode_profile_tier_level(GetBitContext *gb, AVCodecContext *avctx, PTLCommon *ptl) { int i; if (get_bits_left(gb) < 2+1+5 + 32 + 4 + 16 + 16 + 12) return -1; ptl->profile_space = get_bits(gb, 2); ptl->tier_flag = get_bits1(gb); ...
1threat
create dictionary from lists in python : I have two lists in python of the following structure: [[x1,y1],[x2,y2],[x3,y3],[x4,y4],[x5,y5],[x6,y6],[x7,y7],[x8,y8]] , [1,1,2,2,3,3,3,4] And I want to create a dictionary with keys of the second list and values of the first list, that looks like this: ...
0debug
void qemu_console_resize(QEMUConsole *console, int width, int height) { if (console->g_width != width || console->g_height != height) { console->g_width = width; console->g_height = height; if (active_console == console) { dpy_resize(console->ds, width, height); } ...
1threat
how to replace last 5 digits with 99999 in update query, guide me how to do it : i have one column ,in that column all rows are having 10 digits '1234567890' By using update postgresql update sql i need to update last 5 digits to 99999. ie '1234599999' Can any one provide me update query for above requirement
0debug
How do I find the OS of a running EC2 instance? : <p>I looked at attributes of the EC2 instance, but did not get a clear attribute value that identifies the same.</p> <p>I also, saw the following discussion, but Im wondering whether identifying the os/platform has been simplified by aws since this disscusion. <a href=...
0debug
static void vmsa_ttbcr_reset(CPUARMState *env, const ARMCPRegInfo *ri) { env->cp15.c2_base_mask = 0xffffc000u; env->cp15.c2_control = 0; env->cp15.c2_mask = 0; }
1threat
int opt_default(void *optctx, const char *opt, const char *arg) { const AVOption *o; int consumed = 0; char opt_stripped[128]; const char *p; const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class(); #if CONFIG_AVRESAMPLE const AVClass *rc = avresample_get_class(); #endif ...
1threat
How can I use variables with update query : <pre><code>$b=number_format($number[12],2); $sql01=mysql_query("UPDATE t_maindbfordashboard SET valueVar=".$a." WHERE managementName=dds"); </code></pre> <p>I am absolutely sure that there are no problems connecting to the database or such. This query works when I try "SELEC...
0debug
JS Bitwise Operato to Java : I'm trying to convert a js function to Java but i don't know how to work with JS Bitwise operator in java. I need to translate this: var r = '0x' + a.substring(j, 2) | 0 and ('0x' + a.substr(j, 2) ^ r) Anyone has ever done this? Thnaks!
0debug
Java Project Architecture Samples : <p>What is the best book, source for designing a good project architecture based on Java, JEE, Rest, Spring etc. I know all of the technologies and best practices pretty well, but there is no one who can give me a feed back on the architectural issues of my app. Especially when it co...
0debug
Abnormal mathematical operation in C : <p>I've found this question somewhere and couldn't understand it. Please help me out with this.</p> <pre><code>#include&lt;stdio.h&gt; int main(){ char x = 250; int ans = x + !x + ~x + ++x; printf("%d", ans); } </code></pre> <p>The output comes out to be -6...
0debug
I would like the tag not to change its style until it will be selected by id and class(NOT TAG NAME) : I create extension which create some div in that page where is it open...But in different site it's look different.Cuz it get website div's style.
0debug
Can't decrypt RSA data with open SSL : <p>I try to encrypt some data in matlab using a public key I created with openssl</p> <p>I created the keys using:</p> <pre><code>openssl genrsa -des3 -out private.pem 1024 openssl rsa -in private.pem -pubout -outform DER -out public.der </code></pre> <p>I encrypt my data using...
0debug
ASP.NET Identity Bearer Token vs JWT Pros and Cons : <p>I have used ASP.NET Identity for a while now and have been looking at JWT (JSON Web Token) as they seem really interesting and easy to use.</p> <p><a href="https://jwt.io/" rel="noreferrer">JWT.IO</a> has a great example/tool of debugging the token.</p> <p>Howev...
0debug
Nuget CLI in Visual Studio 2017 - How to run? : <p>According to the page at: <a href="https://dist.nuget.org/index.html" rel="noreferrer">https://dist.nuget.org/index.html</a></p> <blockquote> <p>NuGet 4.x is included in the Visual Studio 2017 installation. Latest NuGet releases are delivered as part of Visual Stu...
0debug
How to setup single Nuget packages folder for multiple solutions and projects in Visual Studio 2015 : <p>We are developing multiple solutions in Visual Studio 2015. The solutions share some core projects that need nuget packages. The nuget references cannot be resolved when the nuget package is added from one solution ...
0debug
static inline bool valid_ptex(PowerPCCPU *cpu, target_ulong ptex) { if (((ptex & ~7ULL) / HPTES_PER_GROUP) & ~cpu->env.htab_mask) { return false; } return true; }
1threat
document.write('<script src="evil.js"></script>');
1threat
Big Nerd Android GeoQuiz - answer not passed to CheatActivity : <p>I'm working on Big Nerd Android GeoQuiz Application, chapter 5. The correct solution is not passed to CheatActivity.</p> <p>This is cheat activity:</p> <pre><code>public class CheatActivity extends AppCompatActivity { private static final String EXTRA...
0debug
Verilog - re-using register valueon Edge vent : ---------- Consider the following code: Module Test (B, A CLK) Input A; CLK Output B Reg RA; Always @(Posedge CLK) Begin RA=A; B=RA; End EndModule Would that work properly to m...
0debug
static sd_rsp_type_t sd_app_command(SDState *sd, SDRequest req) { DPRINTF("ACMD%d 0x%08x\n", req.cmd, req.arg); sd->card_status |= APP_CMD; switch (req.cmd) { case 6: switch (sd->state) { case sd_transfer_state: sd->sd_status[0] &...
1threat
Using local function outside it's scope : while(t!=0) { for(j=1;j <=3;j++) { cin>>size; int arrj[size] for(i=0;i<3;i++) { cin>>arrj [i]; } } } **How do i use arrj [] outside the while loop as the array is a local variable to while loop**
0debug
how to get socket.id of a connection on client side? : <p>Im using the following code in index.js</p> <pre><code>io.on('connection', function(socket){ console.log('a user connected'); console.log(socket.id); }); </code></pre> <p>the above code lets me print the socket.id in console.</p> <p>But when i try to print th...
0debug
static int put_packetheader(NUTContext *nut, ByteIOContext *bc, int max_size, int calculate_checksum) { put_flush_packet(bc); nut->packet_start[2]= url_ftell(bc) - 8; nut->written_packet_size = max_size; if(calculate_checksum) init_checksum(bc, update_adler32, 0); put_v(...
1threat
Plotting a text file by using gnuplot in python : I have a text file called data.txt and it looks like this: 0 0.0025 sec 1 0.254 sec 2 0.5654 sec I want to plot it by using gnuplot in python. When I enter gnuplot my command line look like this; gnuplot > What do I have to do now to plot my text file...
0debug
How you you assign the value of a char pointer to an integer : <p>Is there a way to assign the value of a char pointer to an integer</p>
0debug
What is best practice for sharing database between containers in docker? : <p>Is there anyone knows what is the best practice for sharing database between containers in docker? <br></p> <p>What I mean is I want to create multiple containers in docker. Then, these containers will execute CRUD on the same database with ...
0debug
Angular2: Show activity indicator for every HTTP request and hide views until completed : <p>Im new to Angular2 and I was wondering if there is any way to show an activity indicator for every HTTP request and hide views until completed?</p>
0debug
static void get_sensor_type(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMISensor *sens; IPMI_CHECK_CMD_LEN(3); if ((cmd[2] > MAX...
1threat
Simple JavaScript. Why doesn't it work? : short and simple. yet it does not work, which makes me sad and angry. :( <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> window.onload = function() { var textonaut = { text: '', letters: [] ...
0debug
How to add Google Authenticator to my website? : <p>I have a web app that is Angular2 on the front-end and NodeJS on the back-end. I want to allow clients to use Google Authenticator to make their accounts more secure.</p> <p>How can I implement/use Google Authenticator in my website? I cannot find an API to use or ...
0debug
void cpu_ppc_store_decr (CPUState *env, uint32_t value) { }
1threat
Example for multi user role having Admin, user by using CodeIgniter : I am new to codeigniter i want to learn how to create a different homepage and access controls for user and admin. Give me some basic examples for to learn this. Thank you
0debug
Uncaught exception thrown by finalizer java.lang.IllegalStateException: Binder has been finalized : <p>This code</p> <pre><code>soundPool.release(); soundPool = null; </code></pre> <p>sometimes produces this error:</p> <pre><code>Uncaught exception thrown by finalizer java.lang.IllegalStateException: Binder has been...
0debug
AJAX functionality in WinForms : <p>I am looking for approach and not any code here - What is the best method to implement ajax like content fetch (from DB) in WinForms ?</p>
0debug
Is their a better way to write this code? : <p>I know that this code does what I need it to do for my assignment but I can't help but feel like there is a much more...refined way to get the same results. Note that the last few outputs should only display if there have been at least 1 number(s) that are greater or less ...
0debug
Issue when opening zip file in python : Error when reading a zip file in python I have a problem where I have to read over the zip folder and read the zip files within. I am getting an error while reading one of the text files from the zipped folder. [![enter image description here][1]][1] ```with zipfile.Z...
0debug
static int aiff_read_header(AVFormatContext *s, AVFormatParameters *ap) { int size, filesize; offset_t offset = 0; uint32_t tag; unsigned version = AIFF_C_VERSION1; ByteIOContext *pb = s->pb; AVStream * st = s->streams[0]; filesize = get_tag(pb, &...
1threat
How to relate a version of @types to the versions of the associated package in NodeJS Typescript? : <p>I am working on a nodejs project with typescript 2.2 that is using node 6.3.1 and I want to migrate from using typings to using @types. By doing so I ran into a set of questions related to whether there is a relations...
0debug
Get mean of a distribution Pyhton : So, I generated a vector d of data that follows a normal distribution with some mean and variance. I want then to calculate a vector s such that each component of it is a function of the type si=f(di). Then I want to do the mean. Is there in Python any quick way to do that wit...
0debug
Cycle does not work : <p>I was writing a simple program in Python. Firstly, user inputs some data. If the data equals to 'y', then the cycle starts</p> <pre><code>ans = raw_input() if ans.lower() == 'y': for path in mas[]: print("This is cycle") function() print("End of program") </co...
0debug
static void openpic_src_write(void *opaque, hwaddr addr, uint64_t val, unsigned len) { OpenPICState *opp = opaque; int idx; DPRINTF("%s: addr %#" HWADDR_PRIx " <= %08" PRIx64 "\n", __func__, addr, val); if (addr & 0xF) { return; } add...
1threat
Discriminated Union of Generic type : <p>I'd like to be able to use <a href="https://basarat.gitbooks.io/typescript/docs/types/discriminated-unions.html" rel="noreferrer">union discrimination</a> with a generic. However, it doesn't seem to be working:</p> <p>Example Code (<a href="http://www.typescriptlang.org/play/#...
0debug
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
Adding Routing to a Vue.js cli 3.0 app : <p>The new Vue.js 3.0 plugin architecture is nice, but it seems to to be missing a router plugin. If I choose not to install routing when I first create the project (<code>vue create my-project</code>), I'd expect that I could change my mind later and add routing with something ...
0debug
void qmp_guest_set_time(bool has_time, int64_t time_ns, Error **errp) { int ret; int status; pid_t pid; Error *local_err = NULL; struct timeval tv; if (has_time) { if (time_ns / 1000000000 != (time_t)(time_ns / 1000000000)) { error_setg(errp, "Time %" PRId64 " i...
1threat
void av_url_split(char *proto, int proto_size, char *authorization, int authorization_size, char *hostname, int hostname_size, int *port_ptr, char *path, int path_size, const char *url) { const char *p, *ls, *ls2, *at, ...
1threat
How to add multi users feature to a Delphi app? : <p>Am currently developing a Delphi app for desktop (Data Base: Access) that needs the multi users feature (each user will have his Permissions, history of transactions). </p> <p><strong>How can i do that ?</strong> </p> <p>I found <a href="http://sforsuresh.in/imple...
0debug
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
what does it do *((T**)m_ptr)? : <p>I see this in the code and can't understand what is going here:</p> <pre><code>T * ptr; // we have some pointer and it has proper adress ... // Later I see this and I can't understand what is going here ptr = *((T **)ptr); </code></pre> <p>Also, later in the code I see <code>*((T**...
0debug
void kvm_arch_update_guest_debug(CPUState *cpu, struct kvm_guest_debug *dbg) { }
1threat
static int protocol_client_auth_sasl_mechname_len(VncState *vs, uint8_t *data, size_t len) { uint32_t mechlen = read_u32(data, 0); VNC_DEBUG("Got client mechname len %d\n", mechlen); if (mechlen > 100) { VNC_DEBUG("Too long SASL mechname data %d\n", mechlen); vnc_client_error(vs); ...
1threat
Can I use jQuery UI 1.12.1 with jQuery 3.x? : <p>I changed my jQuery <code>1.7.2</code> to <code>3.1.1</code> and changed my jQuery UI from version <code>1.8.16</code> to version <code>1.12.1</code>.</p> <p>Quite a few of my existing JS stuff broke, like styling of buttons, and <code>dialog</code> behaves in unexpecte...
0debug
static int xen_pt_pci_config_access_check(PCIDevice *d, uint32_t addr, int len) { if (addr >= 0xFF) { XEN_PT_ERR(d, "Failed to access register with offset exceeding 0xFF. " "(addr: 0x%02x, len: %d)\n", addr, len); return -1; } if ((len != 1) && (len !=...
1threat
NestJS enable cors in production : <p>I've enabled CORS in my NestJS app following <a href="https://docs.nestjs.com/techniques/cors" rel="noreferrer">the official tutorial</a>, so my <code>main.ts</code> looks like the following:</p> <pre><code>import { FastifyAdapter, NestFactory } from '@nestjs/core'; import { AppMo...
0debug
Print Kafka Stream Input out to console? : <p>I've been looking through a lot of the Kafka documentation for a java application that I am working on. I've tried getting into the lambda syntax introduced in Java 8, but I am a little sketchy on that ground and don't feel too confident that it should be what I use as of y...
0debug
static BlockAIOCB *blk_aio_prwv(BlockBackend *blk, int64_t offset, int bytes, QEMUIOVector *qiov, CoroutineEntry co_entry, BdrvRequestFlags flags, BlockCompletionFunc *cb, void *opaque) { BlkAioEmAIOCB *acb; Co...
1threat
def find_exponentio(test_tup1, test_tup2): res = tuple(ele1 ** ele2 for ele1, ele2 in zip(test_tup1, test_tup2)) return (res)
0debug
how to save a string to the computer memory? : <p>I want to save a string to "copy" memory in computer (ctrl + c), after clicking a button. how can I save that string to the computer memory (ctrl c) in c#?</p>
0debug
static void notify_guest_bh(void *opaque) { VirtIOBlockDataPlane *s = opaque; unsigned nvqs = s->conf->num_queues; unsigned long bitmap[BITS_TO_LONGS(nvqs)]; unsigned j; memcpy(bitmap, s->batch_notify_vqs, sizeof(bitmap)); memset(s->batch_notify_vqs, 0, sizeof(bitmap)); for (j = ...
1threat
static int vhost_set_vring(struct vhost_dev *dev, unsigned long int request, struct vhost_vring_state *ring) { VhostUserMsg msg = { .request = request, .flags = VHOST_USER_VERSION, .state = *ring, .size = sizeof(*ring), ...
1threat
Using if else statement with json values in jsoncpp : <p>I am trying to do something similar using <code>jsoncpp</code> inside a function which returns json values as strings.</p> <pre><code>std::string some_function(std::string val){ . . . if(val=="date") { Json::Value my=root["data"]["date"]; std::cout&lt;&l...
0debug
How do you filter xunit tests by trait with "dotnet test"? : <p>I have a .NET Core test project that uses Xunit 2.2. Some of my tests are marked with traits.</p> <pre><code>[Fact] [Trait("Color", "Blue")] public void TestBlue() { } </code></pre> <p>What is the right command line syntax for "dotnet test" to only run t...
0debug
static void tlb_info(Monitor *mon) { CPUState *env; int l1, l2; uint32_t pgd, pde, pte; env = mon_get_cpu(); if (!(env->cr[0] & CR0_PG_MASK)) { monitor_printf(mon, "PG disabled\n"); return; } pgd = env->cr[3] & ~0xfff; for(l1 = 0; l1 < 1024; l1++) { ...
1threat
void ich9_pm_init(PCIDevice *lpc_pci, ICH9LPCPMRegs *pm, bool smm_enabled, qemu_irq sci_irq) { memory_region_init(&pm->io, OBJECT(lpc_pci), "ich9-pm", ICH9_PMIO_SIZE); memory_region_set_enabled(&pm->io, false); memory_region_add_subregion(pci_address_space_io(lpc_pci), ...
1threat
static int dvbsub_parse_region_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size) { DVBSubContext *ctx = avctx->priv_data; const uint8_t *buf_end = buf + buf_size; int region_id, object_id; int av_unused version; DVBSubRegion *region; DVBSubOb...
1threat
static int64_t coroutine_fn vvfat_co_get_block_status(BlockDriverState *bs, int64_t sector_num, int nb_sectors, int* n) { BDRVVVFATState* s = bs->opaque; *n = s->sector_count - sector_num; if (*n > nb_sectors) { *n = nb_sectors; } else if (*n < 0) { return 0; } return ...
1threat
static void vnc_listen_read(void *opaque) { VncDisplay *vs = opaque; struct sockaddr_in addr; socklen_t addrlen = sizeof(addr); vga_hw_update(); int csock = qemu_accept(vs->lsock, (struct sockaddr *)&addr, &addrlen); if (csock != -1) { vnc_connect(vs, csock); } }
1threat
void commit_start(const char *job_id, BlockDriverState *bs, BlockDriverState *base, BlockDriverState *top, int64_t speed, BlockdevOnError on_error, BlockCompletionFunc *cb, void *opaque, const char *backing_file_str, Error **errp) { CommitBlockJob *s; ...
1threat
static int check_refcounts_l1(BlockDriverState *bs, uint16_t *refcount_table, int refcount_table_size, int64_t l1_table_offset, int l1_size, int check_copied) { BDRVQcowState *s = bs->opaque...
1threat
Why the function String.Equals(Object obj) compares the string with an object and not necessarily with a string : <p>I don't understand why would you want to compare a string with anything but another string, why <code>String.Equals(Object obj)</code> and not <code>String.Equals(String str)</code></p> <p>Is there a sp...
0debug
querying on firebase database android : i'm a beginner in firebase and android i want to make a firebase database i have no problem in that but my problem that i want to take a string from edittext and querying about it in the firebase database . i couldn't understand guide of firebase very well but i noticed that they...
0debug
How do I install Plugins in NeoVim Correctly : <p>Does <strong>NeoVim</strong> have it's own config file just like <strong>vim's</strong> <code>.vimrc</code> ? If so where can I get that file in the home directory to make my own custom changes.</p>
0debug
Is there a CloudFormation template for DC/OS, ElasticSearch, Kafka Streams and Kafka Streams? : There are a lot of examples of the [SMACK stack][1], but in my infrastructure I would like to use ElasticSearch and Confluent Kafka Connect and Kafka Streams. There is a [great turorial on deploying a CloudFormation-based...
0debug
backgound: linear-gradient() not working on mobile : I made a simple page on code pen but background: linear-gradinet not working on mobile. It is showing color in computer but not in mobile here is my code link : - `https://codepen.io/jjarus/full/OGwJqv`
0debug
how to include a csv file in matplotlib using pandas? : my csv file is very complex.. it contains numeric as well as string attributes. [enter image description here][1] this is how my csv file looks like I want to plot a histogram of processes versus the cpuid [1]: http://i.stack.imgur.com/EZOD8.png
0debug
How to transform a data frame to a row in R? : I have a very basic question about reshaping a table: pval Quality High 0.782 0.62 Low 0.782 1.58 I would like to change it to pval High Low 0.782 0.62 1.58 I am relatively new to R. Co...
0debug
Protocol Buffers 3: Enums as keys in a map : <p>Enums are not allowed to be used as keys in map. PaxType here is an enum and not allowed to be used as key.</p> <pre><code>enum PaxType { ADULT = 0 ; CHILD = 1 ; INFANT = 2 ; } message FlightData { map&lt;PaxType, FareType&gt; fareType = 1; } </code></pr...
0debug
Pass ajax data to another function : <p>I want to apply the <code>getStatus</code> function right here:</p> <pre><code>function getStatus(id) { $.ajax({ method: "POST", url: '&lt;?php echo base_url('marketplace/get_store_status'); ?&gt;/'+id, dataType: 'json', success: function(data...
0debug
static inline int handle_cpu_signal(uintptr_t pc, siginfo_t *info, int is_write, sigset_t *old_set) { CPUState *cpu = current_cpu; CPUClass *cc; int ret; unsigned long address = (unsigned long)info->si_addr; if (helper_re...
1threat
How to change password of AWS Cognito User? : <p>I'm developing a web application which uses the AWS services backend side. I'm using AWS Cognito to manage the users but I have a problem. When I create a new user (with a temporary password) it is required that I change this password manually to make it definitive. The ...
0debug
about jquery - image gallery : $("#right").click(function(){ var nextIndex=currIndex.next(); var nextImg = nextIndex.children("img").attr("src"); $("#main").attr("src",nextImg); currIndex = nextIndex; ...
0debug
static int read_len_table(uint8_t *dst, GetBitContext *gb){ int i, val, repeat; for(i=0; i<256;){ repeat= get_bits(gb, 3); val = get_bits(gb, 5); if(repeat==0) repeat= get_bits(gb, 8); if(i+repeat > 256) { av_log(NULL, AV_LOG_ERROR, "Error re...
1threat
Adding number if next value the same r : <p>I'm facing the following problem in R. I have a dataframe with values identifing a customer. There is a column with User ID. I need to add another column with a counter what is the occurence number of that particular customer in the data. The dataframe is sorted by User ID. S...
0debug
Validation errors in html site (Error) : I am in the last stages of development on my site. When I try to validate my page using w3cvalidator the following errors are displayed. However when I try to action the following below; closing the </nav tag this only creates more errors. Is there a quick fix for this? Idea...
0debug
static void xlnx_ep108_init(MachineState *machine) { XlnxEP108 *s = g_new0(XlnxEP108, 1); int i; uint64_t ram_size = machine->ram_size; if (ram_size > XLNX_ZYNQMP_MAX_RAM_SIZE) { error_report("ERROR: RAM size 0x%" PRIx64 " above max supported of " "0x%llx", ra...
1threat
An Error occurs when I was making a code to create a show list by ListView{in content_main.xml} like contact view. plz help me. : **I was making a code to create a show list by ListView{in content_main.xml} like contact view. I build a database in the (SQLite Expert Professional) with a table(name: "contact") that wa...
0debug
import re def change_date_format(dt): return re.sub(r'(\d{4})-(\d{1,2})-(\d{1,2})', '\\3-\\2-\\1', dt) return change_date_format(dt)
0debug
Last Login date for all users in linux : <p>How to find last login date for all users in Linux? I tried the last command but it retrieves only the recent last logins from wtmp. </p>
0debug
void eth_setup_vlan_headers(struct eth_header *ehdr, uint16_t vlan_tag, bool *is_new) { struct vlan_header *vhdr = PKT_GET_VLAN_HDR(ehdr); switch (be16_to_cpu(ehdr->h_proto)) { case ETH_P_VLAN: case ETH_P_DVLAN: *is_new = false; break; default: ...
1threat