problem
stringlengths
26
131k
labels
class label
2 classes
static void do_dcbz(target_ulong addr, int dcache_line_size) { addr &= ~(dcache_line_size - 1); int i; for (i = 0 ; i < dcache_line_size ; i += 4) { stl(addr + i , 0); } if (env->reserve == addr) env->reserve = (target_ulong)-1ULL; }
1threat
How should I approach building a picture only portfolio? : <p>I love these following portfolios:</p> <p><a href="http://www.ericryananderson.com/" rel="nofollow">http://www.ericryananderson.com/</a></p> <p><a href="http://jeremycowart.com/portfolio/featured/" rel="nofollow">http://jeremycowart.com/portfolio/featured/...
0debug
uint64_t helper_stq_c_raw(uint64_t t0, uint64_t t1) { uint64_t ret; if (t1 == env->lock) { stq_raw(t1, t0); ret = 0; } else ret = 1; env->lock = 1; return ret; }
1threat
How can I create a lightbox with text and image? : <p>I am not good at programming. I am trying to create an image gallery with lightbox and content in it. <a href="https://i.stack.imgur.com/7exQg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7exQg.png" alt="it looks something like that"></a></p> ...
0debug
static inline void gen_add_datah_offset(DisasContext *s, unsigned int insn, int extra, TCGv var) { int val, rm; TCGv offset; if (insn & (1 << 22)) { val = (insn & 0xf) | ((insn >> 4) & 0xf0); if (!(insn & (1 << 23))) val...
1threat
How to manage multiple maven projects in gitlab : <p>We have multiple (about 75) maven projects, which we have pushed to Gitlab <strong>individually</strong> in following manner:<br> GROUP1 - 4 projects<br> GROUP2 - 2 projects<br> GROUP3 - 10 Projects<br> .<br> .<br> GROUP10 - 6 Projects</p> <hr> <p>We now want to im...
0debug
Grid layout like pinterest using css only and without javascript : <p>I need a grid layout like Pinterest. How am I going to achieve such layout? </p> <p>I tried using <code>flex</code> but each element has space and I want the grid layout like in Pinterest.</p> <pre><code>&lt;style&gt; .flex{ width: 100%...
0debug
How to extract a specific data range form multiple sheets in excel : I have an excel sheet with four additional sheets sheet1 sheet2 sheet3 summary (sheet4) The first three sheets have a column of age. At the summary sheet i want to age data as age group ( 18 to 25, 26 to 33 etc..). I know how to get age group ran...
0debug
int ff_audio_interleave_init(AVFormatContext *s, const int *samples_per_frame, AVRational time_base) { int i; if (!samples_per_frame) return -1; if (!time_base.num) { av_log(s, AV_LOG_ERROR, "timebase not set for audio int...
1threat
Pass method = post in button and not in firm : I want to pass a variable but for that i need to create a form. But I am using java script to open the next page(that is a block page) but I want to pass the method=post directly in the button and not in the form because it does not recognize the code, here is an example: ...
0debug
av_cold int ff_h264_decode_init(AVCodecContext *avctx) { H264Context *h = avctx->priv_data; int i; int ret; h->avctx = avctx; h->bit_depth_luma = 8; h->chroma_format_idc = 1; h->cur_chroma_format_idc = 1; ff_h264dsp_init(&h->h264dsp, 8, 1); av_assert0(h->sps.bit_...
1threat
What is the execution logic of the expression in C? : <p>Suppose I a couple of expression in C. Different outputs are provided.</p> <pre><code>int i =2,j; j= i + (2,3,4,5); printf("%d %d", i,j); //Output= 2 7 j= i + 2,3,4,5; printf("%d %d", i,j); //Output 2 4 </code></pre> <p>How does the execution take place in ...
0debug
Why choose UnityEvent over native C# events? : <p>I mean, UnityEvents are slower than the native C# events and they still store a strong reference to the receivers. So, the only valid reason I can find to use UnityEvents over native C# events is their integration with the editor. <em>Am I overlooking something</em>?</p...
0debug
How to create web-services in Zend Framework 2? : <p>How to create web services over HTTP REST protocol using Zend Framework 2 (third party)</p> <p>We use this code in Zend Framework 1 :</p> <pre><code> &lt;?php function methodName($name) { echo "Hello world - $name"; } $server...
0debug
static inline int set_options(AVFilterContext *ctx, const char *args) { HueContext *hue = ctx->priv; int n, ret; char c1 = 0, c2 = 0; char *old_hue_expr, *old_hue_deg_expr, *old_saturation_expr; AVExpr *old_hue_pexpr, *old_hue_deg_pexpr, *old_saturation_pexpr; if (args) { ...
1threat
VBScript - replace all commas occuring between ," and ", : <p>Using VBScript I need to replace all commas that occur between <strong>,"</strong> and <strong>",</strong> (i.e. chr(34)&amp;chr(44) and chr(44)&amp;chr(34)) with dots so it transforms below input into output string. Commas that occur not between these chara...
0debug
Swift 3 NSCache Generic parameter 'KeyType' could not be inferred : <p>This code worked in Swift 2.x:</p> <pre><code>/// An internal in-memory cache private var dataCache = NSCache.init() </code></pre> <p>In <strong>Swift 3</strong> it causes compilation error:</p> <pre><code>Generic parameter 'KeyType' could not be...
0debug
void bdrv_drain_all(void) { bool busy = true; BlockDriverState *bs = NULL; GSList *aio_ctxs = NULL, *ctx; while ((bs = bdrv_next(bs))) { AioContext *aio_context = bdrv_get_aio_context(bs); aio_context_acquire(aio_context); if (bs->job) { block_job_p...
1threat
int qemu_get_fd(QEMUFile *f) { if (f->ops->get_fd) { return f->ops->get_fd(f->opaque); } return -1; }
1threat
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; MpegEncContext *s = &h->s; AVFrame *pict = ...
1threat
Firebase Email Verification Not Working Properly : <p><strong>WHAT I HAVE</strong></p> <p>I am using <strong>Firebase Authentication</strong> in my app where the users can register using <strong>Email &amp; Password</strong>. If the users have not verified their email, I disable some features until they verify their e...
0debug
Hello. I want an efficient way to truncate unwanted part from string in a DataFrame column : Data looks like these. Particulars<br/> IMPS/P2A/924413019791/CRYSTALV/THEGREAT/<br/> MOB/QYW6RJS14956/Ratnakar Bank CreditCard<br/> IMPS/P2A/924517325604/rajdha/HDFCBAN/X539003/<br/> BY CASH DEPOSIT-BNA/SWRO12802/9635/0...
0debug
Tic tac toe JavaScript game - test user's number for matching patterns? : <p>Im making a game of "tic tac toe" also called "naughts and crosses".</p> <p>Each of the 9 squares has a number:</p> <pre><code>1 2 3 4 5 6 7 8 9 </code></pre> <p>As each player has a go the number they've chosen is added to the state. So if...
0debug
int virtqueue_avail_bytes(VirtQueue *vq, unsigned int in_bytes, unsigned int out_bytes) { unsigned int in_total, out_total; virtqueue_get_avail_bytes(vq, &in_total, &out_total); if ((in_bytes && in_bytes < in_total) || (out_bytes && out_bytes < out_total)) { ...
1threat
Typescript hasOwnProperty equivalent : <p>In javascript if I want to loop through a dictionary and set properties of another dictionary, I'd use something like this:</p> <pre><code>for (let key in dict) { if (obj.hasOwnProperty(key)) { obj[key] = dict[key]; } } </code></pre> <p>If <code>obj</code> is a Typesc...
0debug
Dispaly a grid in html : I am a social sciences researchers and I am trying to create a task for an online study. The task is the following: a grid with shaded and white squares will be displayed and the task consist in counting the nb of shaded squares (as in the example). Different grids, with varying number of shade...
0debug
Mutilple Array puzzel : i have an array : $myArrays = array( array(1, 2, 3, 4), array(5, 6, 7, 8), array(9, 10, 11, 12), array(13, 14, 15, 16) ); i need to print output : <br>1<br>5<br>9<br>13<br>14<br>10<br>6<br>2<br>3<br>7<br>11<br>15<br>16<br>12<br>8<br>4
0debug
int ff_mpv_frame_size_alloc(MpegEncContext *s, int linesize) { int alloc_size = FFALIGN(FFABS(linesize) + 64, 32); FF_ALLOCZ_OR_GOTO(s->avctx, s->edge_emu_buffer, alloc_size * 4 * 24, fail); FF_ALLOCZ_OR_GOTO(s->avctx, s->me.scratchpad, alloc_size...
1threat
int kvm_irqchip_add_msi_route(KVMState *s, MSIMessage msg) { struct kvm_irq_routing_entry kroute; int virq; if (!kvm_gsi_routing_enabled()) { return -ENOSYS; } virq = kvm_irqchip_get_virq(s); if (virq < 0) { return virq; } kroute.gsi = virq; kroute.t...
1threat
While loops crashing, String not adding words to the Array : I've been searching for quite a while and i can't find the reason why nothing about this program works. It's supposed to ask the user to add a word that then will be added to the string array and after that, all words will be printed out. #include <io...
0debug
Deconstruction in foreach over Dictionary : <p>Is it possible in C#7 to use deconstruction in a foreach-loop over a Dictionary? Something like this:</p> <pre><code>var dic = new Dictionary&lt;string, int&gt;{ ["Bob"] = 32, ["Alice"] = 17 }; foreach (var (name, age) in dic) { Console.WriteLine($"{name} is {age} yea...
0debug
Postgres enum in typeorm : <p>In typeorm, how can I create a postgres enum type <em>Gender</em> as in this raw query</p> <pre><code>CREATE TYPE public.Gender AS ENUM ( 'male', 'female' ); ALTER TABLE public.person ALTER COLUMN gender TYPE public.gender USING gender::gender; </code></pre> <p>and use it in the Enti...
0debug
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
convert CSV to JSON with exhaustive fileds : I want to convert my JSON {\"field1\": 11,\"field3\": 13},{\"field1\": 21,\"field2\": 22,\"field3\": 23},{\"field1\": 31,\"field2\": 32,\"field3\": 33,\"field4\": 34} to CSV Its returning field3 field1 13 11 23 21 33 31 It should rather return field1 field2 field...
0debug
int unix_listen_opts(QemuOpts *opts, Error **errp) { struct sockaddr_un un; const char *path = qemu_opt_get(opts, "path"); int sock, fd; sock = qemu_socket(PF_UNIX, SOCK_STREAM, 0); if (sock < 0) { error_setg_errno(errp, errno, "Failed to create Unix socket"); return -1; ...
1threat
static void rtas_stop_self(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { CPUState *cs = CPU(cpu); CPUPPCState *env = &cpu->env; PowerPCCPUClass...
1threat
static void gen_maskg(DisasContext *ctx) { int l1 = gen_new_label(); TCGv t0 = tcg_temp_new(); TCGv t1 = tcg_temp_new(); TCGv t2 = tcg_temp_new(); TCGv t3 = tcg_temp_new(); tcg_gen_movi_tl(t3, 0xFFFFFFFF); tcg_gen_andi_tl(t0, cpu_gpr[rB(ctx->opcode)], 0x1F); tcg_gen_andi_tl(t1, ...
1threat
Need little help on understanding how starting index and substring works : <p>Here is my code</p> <pre><code>public static void main(String[] args) { Scanner reader = new Scanner(System.in); System.out.print("Type a word: "); String userWord = reader.nextLine(); System.out.print("Length of the first ...
0debug
Vue js Ready function is not triggered : <p>I have this vue function where there are basically two methods. The first one <code>postStatus</code> is used to save a post just after the user clicks on the save button, and the other one <code>getPosts</code> is used to retrieve all previous posts of that user from the dat...
0debug
void ff_h261_loop_filter(H261Context * h){ MpegEncContext * const s = &h->s; int i; const int linesize = s->linesize; const int uvlinesize= s->uvlinesize; uint8_t *dest_y = s->dest[0]; uint8_t *dest_cb= s->dest[1]; uint8_t *dest_cr= s->dest[2]; uint8_t *src; CHECKED_ALLOC...
1threat
Shared preference and SQLite : <p>I want to confirm my understanding about sharedPreference and SQLite. Please help me.</p> <p>shared preference </p> <ol> <li>store private primitive data in key-value pair. </li> <li>Useful for store small amount of data </li> <li>Data stored in xml file, and without encryption. Thus...
0debug
Taskkill /PID not working in GitBash : <p>I'm trying to kill a process on GitBash on Windows10 using the taskkill command. However, I get the following error:</p> <pre><code>$ taskkill /pid 13588 ERROR: Invalid argument/option - 'C:/Program Files/Git/pid'. Type "TASKKILL /?" for usage. </code></pre> <p>it works fine ...
0debug
What to store in a JWT? : <p>How do you guys deal with the same user on multiple devices? Won't data such as <code>{admin: true}</code> become stale except for the device that changed it?</p> <p>Should this even be in a JWT? If not, and we resort to only putting the user ID, won't that be just like a cookie-based sess...
0debug
static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt) { int ret, size; size= MP3_PACKET_SIZE; ret= av_get_packet(s->pb, pkt, size); pkt->stream_index = 0; if (ret <= 0) { if(ret<0) return ret; return AVERROR_EOF; } if (ret > ID3v1...
1threat
static int inject_error(BlockDriverState *bs, BlkdebugRule *rule) { BDRVBlkdebugState *s = bs->opaque; int error = rule->options.inject.error; bool immediately = rule->options.inject.immediately; if (rule->options.inject.once) { QSIMPLEQ_REMOVE(&s->active_rules, rule, BlkdebugRule, activ...
1threat
What's the reason behind having std::integral_constant? : <p>What's the real use case of this?</p> <pre><code>std::integral_constant </code></pre> <p>I can understand this is a wrapper with value 2:</p> <pre><code>typedef std::integral_constant&lt;int, 2&gt; two_t </code></pre> <p>But why not just use 2 or define a...
0debug
How to compare clob columns of single table in oracle? : <p>How to compare clob columns of single table in oracle?</p>
0debug
static uint32_t nvic_readl(NVICState *s, uint32_t offset, MemTxAttrs attrs) { ARMCPU *cpu = s->cpu; uint32_t val; switch (offset) { case 4: return ((s->num_irq - NVIC_FIRST_IRQ) / 32) - 1; case 0x380 ... 0x3bf: { int startvec = 32 * (offset - 0x380) + NVIC_FIRST_IRQ;...
1threat
void ff_acelp_interpolate( int16_t* out, const int16_t* in, const int16_t* filter_coeffs, int precision, int frac_pos, int filter_length, int length) { int n, i; assert(pitch_delay_frac >= 0 && pitch_delay_frac < precision); for(n=0; n<l...
1threat
Group arrays according to their keys and remove duplicates (2 dimensional arrays PHP) : I have three arrays as follow: $a=Array ( [0] => 'member0' [1] => 'member1' [2] => 'member2' [3] => 'member1'); $b=Array ( [0] => 'id0' [1] => 'id1' [2] => 'id2' [3] => 'id1'); $c=Array ( [0] => 'tf0' [1] => 'tf1' [...
0debug
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set. : <p>I am getting exception even after setting hibernate.dialect property. I am using hibernate 5.0.11 with spring boot 1.4.2 and mysql version as 5.7</p> <pre><code>application.properties is l...
0debug
Index position in Python : <p>Can someone please explain why in the second variable we select index [1]? Wouldn't the index position be the same as the first variable since I am trying to compare the first letter of the word. Please help and thank you in advance. </p> <pre><code>def animal_crakers(text): string = ...
0debug
Javascript eval questions : <p>I see following code and would like to know what it is doing. It is converting eval result to object?</p> <pre><code>eval("Function here")("Object here"); </code></pre> <p>I have another question. Does eval work as reflection? It loads to memory every time this code is called and ends u...
0debug
c# parallel foreach loop finding index : <p>I am trying to read all lines in a text file and planning to display each line info. How can I find the index for each item inside loop?</p> <pre><code>string[] lines = File.ReadAllLines("MyFile.txt"); List&lt;string&gt; list_lines = new List&lt;string&gt;(lines); Pa...
0debug
static int64_t mpegts_get_pcr(AVFormatContext *s, int stream_index, int64_t *ppos, int64_t pos_limit) { MpegTSContext *ts = s->priv_data; int64_t pos, timestamp; uint8_t buf[TS_PACKET_SIZE]; int pcr_l, pcr_pid = ((PESContext*)s->streams[stream_index]->priv_data)->pcr_...
1threat
"Protocols cannot be used with isinstance()" - why not? : <p>The new <code>typing</code> module contains several objects with names like "SupportsInt" (-Float, -Bytes, etc.). The name, and the descriptions on <a href="https://docs.python.org/3/library/typing.html">the documentation page for the module</a>, might be rea...
0debug
static void kvm_arm_gicv3_realize(DeviceState *dev, Error **errp) { GICv3State *s = KVM_ARM_GICV3(dev); KVMARMGICv3Class *kgc = KVM_ARM_GICV3_GET_CLASS(s); Error *local_err = NULL; DPRINTF("kvm_arm_gicv3_realize\n"); kgc->parent_realize(dev, &local_err); if (local_err) { err...
1threat
void op_dmtc0_ebase (void) { env->CP0_EBase = (int32_t)0x80000000 | (T0 & 0x3FFFF000); RETURN(); }
1threat
int bdrv_open(BlockDriverState *bs, const char *filename, int flags, BlockDriver *drv) { int ret, open_flags; char tmp_filename[PATH_MAX]; char backing_filename[PATH_MAX]; bs->is_temporary = 0; bs->encrypted = 0; bs->valid_key = 0; bs->open_flags = flags; ...
1threat
How to serialize LocalDateTime with Jackson? : <p>I got the following piece of code:</p> <pre><code> ObjectMapper mapper = new ObjectMapper(); mapper.registerModule(new JavaTimeModule()); mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); String now = new ObjectMapper().writeValueAsString(n...
0debug
Can't bind to 'ngValue' since it isn't a known property of 'option' : <p>I am trying to implement <code>select</code> in Angular 5 but I am constantly getting this</p> <p><a href="https://i.stack.imgur.com/nmJg1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nmJg1.png" alt="enter image description here"></a...
0debug
Power BI architecture : <p>I need your help please .I'm working with Power BI but I haven't undestand how it work exactly and what it is,is power BI just a tool of visualisation or it is a whole plateform BI which contain his ETL,Datawarhouse,Olap engine ?can someone explain to me this point and give me an the equivale...
0debug
3d animated plots for 12 different columns : <p>I have data frame with 500,000 rows and 16 columns, I have temprature data for all 12 months (500,000) observations for each month(columns), against Latitude and Longitude values( 2 columns). I need to plot animated plot for temperature observations against each month tak...
0debug
Access-Control-Max-Age vs Cache-Control : <p>What is the difference between Access-Control-Max-Age and Cache-Control within a http response header?</p> <pre><code>Access-Control-Max-Age:1728000 Cache-Control:max-age=21600, public </code></pre> <p>I have the feeling that they do not refer to the same thing, as often t...
0debug
'NoneType' object has no attribute 'count' <-- Anagrams : #**I have this error but I don't know why** import itertools word = 'stop' #input('Word [ 2-5 letters recommended ] :').lower() word = list(str(word)) anagrams = ["".join(perm) for perm in itertools.permutations(word)] file = open...
0debug
excel, check if string contains a character a-z or A-Z : <p>I have a column with unstructured data. I need to detect if the string has an alphabetical character meaning a-z or A-Z. I am not sure how to do this in excel with a formula or other. I am thinking this could be a long countif and sumproduct. Or maybe regex in...
0debug
datetime data type seperate am and pm as checkin and checkout MSSQL : [I need to separate the checkintime column as AM as checkin and PM as checkout ][1] [1]: http://i.stack.imgur.com/1dvUT.jpg
0debug
Redux - how to keep the reducer state during hot reload : <p>I use <em>React</em> + <em>Redux</em> + <em>Webpack</em> + <em>WebpackDevserver</em>. Once the hot loader is launched all my reducers are reseted to the initial state. </p> <p>Can I keep somehow my reducers in the actual state?</p> <p>My Webpack config con...
0debug
libc++ vs libstdc++ std::is_move_assignable: Which is the most correct? : <p>I'm trying to get a deeper understanding of C++ by reading the C++14 standard along with the source of libc++ and libstdc++. The implementation of various <code>type_traits</code> items varies between the two, particularly <code>is_move_assign...
0debug
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
a half gauge/speedometer animation using javascript : Hiiiii, i am having problem with a gauge "[click here][1]", i need this gauge animated on change of amount given below the "GAUGE" not on "Turnover amount" [1]: http://clients.pix10.com/demo/5paisa/index.html
0debug
save data to database asp.net mvc : this is the error message : (46,12) : error 2019: Member Mapping specified is not valid. The type 'Edm.String[Nullable=True,DefaultValue=,MaxLength=Max,Unicode=True,FixedLength=False]' of member 'SEJ_STARDATE' in type 'HotelSearch.APP_SEJOUR' is not compatible with 'SqlServer.date...
0debug
static int netmap_can_send(void *opaque) { NetmapState *s = opaque; return qemu_can_send_packet(&s->nc); }
1threat
Java and haarcascade face and mouth detection - mouth as the nose : <p>Today I begin to test the project which detects a smile in Java and OpenCv. To recognition face and mouth project used haarcascade_frontalface_alt and haarcascade_mcs_mouth But i don't understand why in some reasons project detect nose as a mouth. ...
0debug
static int blk_init(struct XenDevice *xendev) { struct XenBlkDev *blkdev = container_of(xendev, struct XenBlkDev, xendev); int index, qflags, have_barriers, info = 0; char *h; if (blkdev->params == NULL) { blkdev->params = xenstore_read_be_str(&blkdev->xendev, "params"); h = strc...
1threat
def gcd(x, y): gcd = 1 if x % y == 0: return y for k in range(int(y / 2), 0, -1): if x % k == 0 and y % k == 0: gcd = k break return gcd
0debug
How to change the values of cv2.boundingRect : <p>is there a way to change the values of cv2.boundingRect </p> <p><a href="https://i.stack.imgur.com/RDv2J.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RDv2J.jpg" alt="enter image description here"></a></p> <p>I want to adjust so I can get the accu...
0debug
static uint32_t do_mac_read(lan9118_state *s, int reg) { switch (reg) { case MAC_CR: return s->mac_cr; case MAC_ADDRH: return s->conf.macaddr.a[4] | (s->conf.macaddr.a[5] << 8); case MAC_ADDRL: return s->conf.macaddr.a[0] | (s->conf.macaddr.a[1] << 8) | (s...
1threat
static enum AVHWDeviceType hw_device_match_type_by_hwaccel(enum HWAccelID hwaccel_id) { int i; if (hwaccel_id == HWACCEL_NONE) return AV_HWDEVICE_TYPE_NONE; for (i = 0; hwaccels[i].name; i++) { if (hwaccels[i].id == hwaccel_id) return hwaccels[i].device_type; } r...
1threat
Spring @Value TypeMismatchException:Failed to convert value of type 'java.lang.String' to required type 'java.lang.Double' : <p>I want to use the @Value annotation to inject a Double property such as:</p> <pre><code>@Service public class MyService { @Value("${item.priceFactor}") private Double priceFactor = 0...
0debug
static int mov_write_header(AVFormatContext *s) { AVIOContext *pb = s->pb; MOVMuxContext *mov = s->priv_data; AVDictionaryEntry *t, *global_tcr = av_dict_get(s->metadata, "timecode", NULL, 0); int i, ret, hint_track = 0, tmcd_track = 0; mov->fc = s; mov->mode = MODE_MP4; ...
1threat
How to move files into corresponding folders in bash : I have a folder with files such as: 20170129-aaa.jpg 20170130-bbb.jpg 20170131-ccc.jpg 20170201-ddd.jpg 20170202-eee.jpg I'd like to create folders based on the YYYYMM part of the files, and move the files to its corresponding folder. ...
0debug
Routes won't work when I install composer and use autoloading option? : <p>When I install composer and set autoloading option and then click on my links other than home page I get this error 'Fatal error: Uncaught Error: Class 'homeController' not found in C:\xampp\htdocs\gacho\app\core\Application.php:13 Stack trace:...
0debug
Exception when calling : <p>I would like to ask a question for computing a hashvalue for a empty file. I need to compute a hash_value when the file f is first created and is empty. Then, at the end I will update the hash_value again. My code is not working for windows os. Can you tell me how to handle this? Thanks. </p...
0debug
import URL from row in csv for beautifulsoup : <p>I am looking to import the URL from rows in file.csv so beautiful soup can parse the XML, but I have no idea how to make the following occur. </p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code...
0debug
Get URL from intranet link name using vba : I am new...I has been searching answers but still cant find it. Looking forward this forum can help me...every month we downloaded over-time form from intranet by clicking a link...So i want to make a vba to get the URL from one of the link name in site. The attach image is t...
0debug
static void control_out(VirtIODevice *vdev, VirtQueue *vq) { VirtQueueElement elem; VirtIOSerial *vser; uint8_t *buf; size_t len; vser = VIRTIO_SERIAL(vdev); len = 0; buf = NULL; while (virtqueue_pop(vq, &elem)) { size_t cur_len; cur_len = iov_size(elem.o...
1threat
Bind variable in sql developper with oracle 11g : I have problem when trying to excute a sequence with a before insert trigger CREATE TABLE personne (ID number, nom varchar2(250 char)); CREATE SEQUENCE s_inc_pers START WITH 1 INCREMENT BY 1; CREATE TRIGGER tr_inc_pers ON t1 BEFORE INSERT FOR EACH ROW...
0debug
What does control input do? : <p>I’m trying to learn vanilla JavaScript using JavaScript30 and on a video I was watching, there was a statement saying document.queryselectorAll(’.controls input’); I’ve tried looking this up, but I cannot find it anywhere. Can anyone tell me what this means?</p>
0debug
How can I run time in C++? : I'm learning C++ and I got this time program question.So what this program has got to do is to get time from user and should display time also it must work like a clock. For example when the user gives 20:13:10 it must work on it like after 60 seconds if the user asks for time it must give ...
0debug
static int amr_wb_encode_frame(AVCodecContext *avctx, unsigned char *frame, int buf_size, void *data) { AMRWBContext *s; int size; s = (AMRWBContext*) avctx->priv_data; s->mode=getWBBitrateMode(avctx->bit_rate); size = E_IF_encode(s->state, s->mode, data, frame, s-...
1threat
How to get multiple static contexts in new CONTEXT API in React v16.6 : <p>Hi I'm trying to access multiple contexts in a component but I got success with only one context value from provider. there are two providers <code>ListContext</code> and `MappingContext. How can I access contexts like this: </p> <pre><code>cla...
0debug
Autocapitalization of first letter of edit text not working : i am trying to add edittext with inputtype = textCapWords but it is not working for me . ihave also tried textcapsentences but it is also not working. <EditText android:id="@+id/editText2" ...
0debug
void qio_channel_socket_connect_async(QIOChannelSocket *ioc, SocketAddress *addr, QIOTaskFunc callback, gpointer opaque, GDestroyNotify destroy) { QIOTask *ta...
1threat
NullPointerException with non-null <key,value> pair in hashtable : <p>I get a null pointer exception with a hashtable 'get' method call. The key is definitely not null. I checked at 'check1'(commented in the code) by prining the value of the variable item. I have valid list of strings. I still get a null pointer except...
0debug
Angular2 dynamic img src : <p>I have the following code:</p> <pre><code>&lt;a routerLink="/dashboard" routerLinkActive="active" #rla="routerLinkActive"&gt; &lt;img src="/assets/navigation/dashboard-icon-active.svg" /&gt; &lt;template [ngIf]="!isSmallSidebar"&gt; Dashboard &lt;/templ...
0debug
void sh_intc_register_sources(struct intc_desc *desc, struct intc_vect *vectors, int nr_vectors, struct intc_group *groups, int nr_groups) { unsigned int i, k; struct intc_source *s; for (i = 0; i < nr_vectors; i++) { struct intc_vect *vect = vectors + i; ...
1threat
Angular2 cast string to JSON : <p>What is the right syntax to cast a string to JSON in Angular2? I tried:</p> <pre><code>var someString; someString.toJSON(); //or someString.toJson(); </code></pre> <p>it says: <code>someString.toJSON is not a function</code></p> <p>I'm lost because it was working with Angular1.</p> ...
0debug
db.execute('SELECT * FROM employees WHERE id = ' + user_input)
1threat
bool tcg_target_deposit_valid(int ofs, int len) { return (facilities & FACILITY_GEN_INST_EXT) != 0; }
1threat