problem
stringlengths
26
131k
labels
class label
2 classes
Link to another html file in a same directory : Good afternoon, ive tried to make a simple menu for my website but it doesnt seem to work. It works perfectly good on my pc, but it doesnt work at all on FTP server. Any ideas? [Here is the web][1] [1]: http://jelraduh.borec.cz/ Thank you
0debug
How to force axis values to scientific notation in ggplot : <p>I have the following code:</p> <pre><code> library(ggplot2) df &lt;- data.frame(y=seq(1, 1e5, length.out=100), x=sample(100)) p &lt;- ggplot(data = df, aes(x=x, y=y)) + geom_line() + geom_point() p </code></pre> <p>Which produce this image:</p> <p><a...
0debug
Materialize modal not working : <p>I wrote a simple code for materialize modal.<br> <strong>HTML code:</strong> </p> <pre><code>&lt;a class="waves-effect waves-light btn view" data-target="modal1"&gt;View Scores&lt;/a&gt; &lt;!-- Modal Structure --&gt; &lt;div id="modal1" class="modal"&gt; &lt;div class="modal-cont...
0debug
static int get_pci_irq_state(QEMUFile *f, void *pv, size_t size) { PCIDevice *s = container_of(pv, PCIDevice, config); uint32_t irq_state[PCI_NUM_PINS]; int i; for (i = 0; i < PCI_NUM_PINS; ++i) { irq_state[i] = qemu_get_be32(f); if (irq_state[i] != 0x1 && irq_state[i] != 0) { ...
1threat
Unexpected token punc «(», expected punc when creating chunk from UglifyJS : <p>I have the following error when trying to do a production build using webpack <code>2.2.1</code> :</p> <pre><code>&gt; cross-env NODE_ENV=production webpack --config internals/webpack/webpack.prod.babel.js --color -p --progress Hash: 7bb...
0debug
Creating a proxy to another web api with Asp.net core : <p>I'm developing an ASP.Net Core web application where I need to create a kind of "authentication proxy" to another (external) web service.</p> <p>What I mean by authentication proxy is that I will receive requests through a specific path of my web app and will ...
0debug
static int raw_write_scrubbed_bootsect(BlockDriverState *bs, const uint8_t *buf) { uint8_t bootsect[512]; memcpy(bootsect, buf, 512); memset(bootsect, 0, 4); return bdrv_write(bs->file, 0, bootsect, 1); }
1threat
How to add random value in Json Body in Gatling? : <p>I need to create a random positive integer each time and send it to Json body in Gatling.</p> <p>I used the below code to create a random positive ineger:</p> <pre><code>val r = new scala.util.Random; val OrderRef = r.nextInt(Integer.MAX_VALUE); </code></pre> <p...
0debug
static int shorten_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; ShortenContext *s = avctx->priv_data; int i, input_buf_size...
1threat
In Regular Expression, how to make an alternative to "?" matching by only using unions (or "+") and "*" quantifiers? : I would like ask if is it possible to represent "?" quantifier using only union (or "+") and "*" quantifiers. For example, "a+" can also represented as "a(a*)". How can you represent "a?" with only ...
0debug
static void mcf_fec_enable_rx(mcf_fec_state *s) { mcf_fec_bd bd; mcf_fec_read_bd(&bd, s->rx_descriptor); s->rx_enabled = ((bd.flags & FEC_BD_E) != 0); if (!s->rx_enabled) DPRINTF("RX buffer full\n"); }
1threat
ASP.NET MVC Call action when a specific change is made in edit : I created a Crud object to track employee holidays, in my HTTP Post EDIT method I'd like to use an email action (which already works) for when a manager edits a request to change the boolean status from `pending` to `approved`. Here's what I attempted ...
0debug
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) { int i, count, ret = 0, j; int64_t read_size; AVStream *st; AVPacket pkt1, *pkt; int64_t old_offset = avio_tell(ic->pb); int orig_nb_streams = ic->nb_streams; int flush_codecs = ic->probesize > 0; ...
1threat
r- ggplot2 color and fills not functioning : <p>I'm trying to visualize a single scatterplot using ggplot2 and adjust the colors to make the graph more visually appealing, however, the <code>colors</code> and <code>fill</code> functions are not populating the colors I want. </p> <p>For reference I've looked through <a...
0debug
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
Logback is not writing specific log file on the CentOS Linux server : I am using Logback API to log java based application and giving following path to create files, but on VPS server it's not creating file. Same config is working fine on my local machine. Please check if you can help, Is this issue related to folder a...
0debug
Spring OAuth2: DuplicateKeyException when using JdbcTokenStore and DefaultTokenServices under heavy load : <p>As mentioned in the title, I'm experiencing the issue, when the same client is querying the token endpoint concurrently (two processes requesting token for the same client at the same time).</p> <p>The message...
0debug
how to decrypt a password des(unix) with 13 string with python? : here my decode a password with 13 string U5IhmemtXSSA. ===> admin G1Cbobnlhh9xA ===> flower what function or code for get decode a password like that?
0debug
static void vfio_platform_realize(DeviceState *dev, Error **errp) { VFIOPlatformDevice *vdev = VFIO_PLATFORM_DEVICE(dev); SysBusDevice *sbdev = SYS_BUS_DEVICE(dev); VFIODevice *vbasedev = &vdev->vbasedev; int i, ret; vbasedev->type = VFIO_DEVICE_TYPE_PLATFORM; vbasedev->ops = &vfio_plat...
1threat
MERGING PDF IN CORE NON-COMMERCIAL LICENCE : i found this [link](https://github.com/GowenGit/docnet) but can i anyone show how to use it for merge several pdf into one? i would like to use MIT licence
0debug
i want to limit the user input as fixed length.and then i have to multiply with given input.i want c value as an integer.how do i get this? : def F_to_C(): F=int(input("enter the F value:")) def F_to_C(): F=int(input("enter the F value:")) if len(F) >3: print("input is t...
0debug
def kth_element(arr, n, k): for i in range(n): for j in range(0, n-i-1): if arr[j] > arr[j+1]: arr[j], arr[j+1] == arr[j+1], arr[j] return arr[k-1]
0debug
how to convert text to columns Using R : [enter image description here][1] Expected output [enter image description here][2] [1]: https://i.stack.imgur.com/bhXT4.png [2]: https://i.stack.imgur.com/qubRq.png
0debug
static int bdrv_qed_open(BlockDriverState *bs, int flags) { BDRVQEDState *s = bs->opaque; QEDHeader le_header; int64_t file_size; int ret; s->bs = bs; QSIMPLEQ_INIT(&s->allocating_write_reqs); ret = bdrv_pread(bs->file, 0, &le_header, sizeof(le_header)); if (ret < 0) { ...
1threat
static BlockAIOCB *inject_error(BlockDriverState *bs, BlockCompletionFunc *cb, void *opaque, BlkdebugRule *rule) { BDRVBlkdebugState *s = bs->opaque; int error = rule->options.inject.error; struct BlkdebugAIOCB *acb; QEMUBH *bh; if (rule->options.inject.once) { QSIMPLEQ_INIT(&s...
1threat
Go - Resolve References in Unmarshaled struct : I have two json files that I unmarshal in Go. The first one includes a certain type of object that is referenced by ID in the second set. // Foo { "id": 5, "key": "value } and // Bar { "name": "bar, "f...
0debug
How to sort an array that has 3 values per row? : <p>This is my array that I have to sort from highest average grade to lowest.</p> <pre><code>let students= [ {name:"Petar", year:1, average:4.35}, {name:"Ivana", year:1, average:3.88}, {name:"Marko", year:2, average:2.27}, {name:"Dav...
0debug
static int local_fstat(FsContext *ctx, int fd, struct stat *stbuf) { return fstat(fd, stbuf); }
1threat
Use a specific minSdkVersion only in a Debug mode : <p>How can I use a specific minSdkVersion only in a debug mode? I want to use the minSdkVersion 21 for debug mode, but minSdkVersion 15 for the release. I don't wanna use flavors for this because will give troubles.</p> <p>I think the could be like this (but don't wo...
0debug
int kvmppc_reset_htab(int shift_hint) { uint32_t shift = shift_hint; if (!kvm_enabled()) { return 0; } if (kvm_check_extension(kvm_state, KVM_CAP_PPC_ALLOC_HTAB)) { int ret; ret = kvm_vm_ioctl(kvm_state, KVM_PPC_ALLOCATE_HTAB, &shift); if (ret == -ENO...
1threat
Is it possible to run parallel tests using karma : <p>At the moment we have close to 1000 unit tests written in jasmine/typescript. When I run them all they take as much as 5 mins on chrome. We do have some unit tests which deals with DOM as well. e.g. verify if a button exists with specified text. We have a number o...
0debug
Containers are not linked with docker-compose version 2 : <p>I have a docker-compose file that I upgraded from version 1 to version 2.</p> <p>It set ups a simple Selenium hub with a firefox node.</p> <p>When I set it up as version 1 it launches fine. When I set it up with version 2 the ff container returns <code>"Not...
0debug
Return variables in a for loop from imported script function : <p>I have two .py files (test1.py &amp; test2.py)</p> <p>Now I want in a loop to run test1.py and to import a function from test2.py, let it execute and return the values back to test1.py</p> <p>test1.py:</p> <pre><code>from test2 import fun for i in ra...
0debug
static CheckasmFunc *get_func(const char *name, int length) { CheckasmFunc *f, **f_ptr = &state.funcs; while ((f = *f_ptr)) { int cmp = cmp_func_names(name, f->name); if (!cmp) return f; f_ptr = &f->child[(cmp > 0)]; } f = *f_ptr = checkasm_...
1threat
when i pass a variable from the main method, my app crash : <p>im using android studio and im making an app but i have this problem when i pass the variable from my main to the class, my app crash.</p> <p>its show me a massage that the app has stopped</p> <p>this is how i pass the variable</p> <pre><code> bravo b = ...
0debug
static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDisplay *display, const uint8_t *buf, int buf_size, int top_bottom, int non_mod) { DVBSubContext *ctx = avctx->priv_data; DVBSubRegion *region = get_region(ctx, display->region_id); ...
1threat
"If statement doesn't work as intended even though it's logically correct" : <p>I was working on Android Studio to create a simple app(game) and my problem is like: I've added two touch events for two separate views, if statement doesn't seem to work properly inside the touch event. Here's my code I would be so happy i...
0debug
static void gen_spr_book3s_pmu_sup(CPUPPCState *env) { spr_register(env, SPR_POWER_MMCR0, "MMCR0", SPR_NOACCESS, SPR_NOACCESS, &spr_read_generic, &spr_write_generic, 0x00000000); spr_register(env, SPR_POWER_MMCR1, "MMCR1", SPR_NOACCESS, ...
1threat
How can I write a parquet file using Spark (pyspark)? : <p>I'm pretty new in Spark and I've been trying to convert a Dataframe to a parquet file in Spark but I haven't had success yet. The <a href="http://spark.apache.org/docs/latest/sql-programming-guide.html#parquet-files" rel="noreferrer">documentation</a> says that...
0debug
I don't know where to fix : sooo my code is supposed to find the row where all elements are even, but it keeps showing it a bit wrong, can't really figure out where the problem is and how optimize my code. #include <iostream> using namespace std; int main () { int n; cout<<"Kvadrat mat...
0debug
static void ppc_spapr_init(QEMUMachineInitArgs *args) { ram_addr_t ram_size = args->ram_size; const char *cpu_model = args->cpu_model; const char *kernel_filename = args->kernel_filename; const char *kernel_cmdline = args->kernel_cmdline; const char *initrd_filename = args->initrd_filename; ...
1threat
static void tcg_out_brcond2(TCGContext *s, const TCGArg *args, const int *const_args, int small) { int label_next; label_next = gen_new_label(); switch(args[4]) { case TCG_COND_EQ: tcg_out_brcond32(s, TCG_COND_NE, args[0], args[2], const_args[2], ...
1threat
React Native WebView pre-render for faster performance - how to do it? : <p>In React Native, when using the WebView component, it starts to load the external content at the moment when the component will be rendered. </p> <p>To increase performance in the application, I have tried to pre-fetch the external HTML so tha...
0debug
static void iscsi_readcapacity_sync(IscsiLun *iscsilun, Error **errp) { struct scsi_task *task = NULL; struct scsi_readcapacity10 *rc10 = NULL; struct scsi_readcapacity16 *rc16 = NULL; int retries = ISCSI_CMD_RETRIES; do { if (task != NULL) { scsi_free_scsi_task(task);...
1threat
How Inheritance works in C# : <p>I have a code </p> <pre><code>using System; namespace ExploreOOP { class Program { static void Main(string[] args) { Base1 b1 = new Derived1(); Derived1 d1 = new Derived1(); b1.write(); d1.write(); ...
0debug
Cannot create an instance of class ViewModel : <p>I am trying to write a sample app using Android architecture components and but even after trying for days I could not get it to work. It gives me the above exception.</p> <p>Lifecycle owner:-</p> <pre><code>public class MainActivity extends LifecycleActivity { p...
0debug
static int nbd_co_send_request(BlockDriverState *bs, struct nbd_request *request, QEMUIOVector *qiov, int offset) { NbdClientSession *s = nbd_get_client_session(bs); AioContext *aio_context; int rc, ret; qemu_co_mutex_lock(&s->send_m...
1threat
static int write_elf32_note(DumpState *s) { target_phys_addr_t begin = s->memory_offset - s->note_size; Elf32_Phdr phdr; int endian = s->dump_info.d_endian; int ret; memset(&phdr, 0, sizeof(Elf32_Phdr)); phdr.p_type = cpu_convert_to_target32(PT_NOTE, endian); phdr.p_offset = cpu_co...
1threat
Convert date from column in bash : <p>My file looks like this:</p> <pre><code>ID,DATE,NAME 1,10-17-18,John 2,10-12-18,Mary 3,10-19-18,David </code></pre> <p>And I want it to look like this:</p> <pre><code>1,2018-10-17,John 2,2018-10-12,Mary 3,2018-10-19,David </code></pre> <p>How can I do that in bash?</p> <p>Than...
0debug
#python #guessing game not working #error_unexpected indent : import random computerguess=random.randint(0,200) while True: userguess=int(input("enter your number:")) if userguess<computerguess: print("guess higher") elif userguess>computerguess: print("guess lower") else: ...
0debug
int ff_lpc_calc_coefs(LPCContext *s, const int32_t *samples, int blocksize, int min_order, int max_order, int precision, int32_t coefs[][MAX_LPC_ORDER], int *shift, enum FFLPCType lpc_type, int lpc_passes, int ...
1threat
Multiple plots coombine and concatenate in matlab : <p>The problem is that I have a for loop as follows: </p> <pre><code>for i=1:(rx * tx) for j=1:(rx * tx) eval(sprintf('t_%d_%d_t = corrcoef(m_a%d_abs, m_b%d_abs)', pairs(i), pairs(j), pairs(i), pairs(j))); eval(sprintf('t_%d_%d = t_%d_%d_t(1, ...
0debug
Why is it impossible to compare a String and null with equals? : <p>In the getter of my class the attribute may have null value from database :</p> <pre><code>public String getCible() { return cible.equals(null) ? " - " : cible; } </code></pre> <p>In my code I want to call this getter , but I got NullPointerExcep...
0debug
int omap_validate_local_addr(struct omap_mpu_state_s *s, target_phys_addr_t addr) { return addr >= OMAP_LOCALBUS_BASE && addr < OMAP_LOCALBUS_BASE + 0x1000000; }
1threat
Display set of items in array : How can i display specific set of items in array. I wanna print to screen form 0 to 24 and from 25 to another 25 in that order. I can display all items, but how can i display form specific index in array to specific index in array?
0debug
find memory leak with perfview : i have a c# (.net 4.5) service in production which is compiled in debug. in one day it has leaked 900mb of memory. actually uses 10gb of memory. So I tried to make a diff with perfview, but I can't find my 900mb leaking. What I can see is the unreachable memory has been increased about...
0debug
static const uint8_t *read_huffman_tables(FourXContext *f, const uint8_t * const buf, int buf_size) { int frequency[512] = { 0 }; uint8_t flag[512]; int up[512]; uint8_t len_tab[257]; int bits_tab[257]; int start, end; const uint8_t *ptr = b...
1threat
int av_interleave_packet_per_dts(AVFormatContext *s, AVPacket *out, AVPacket *pkt, int flush){ AVPacketList *pktl, **next_point, *this_pktl; int stream_count=0; int streams[MAX_STREAMS]; if(pkt){ AVStream *st= s->streams[ pkt->stream_index]; this_pktl = av_mallocz(sizeof(AV...
1threat
what is the best web designing source code editor? : <p>sublime text 2 is not supported output page,please tell me another best editor</p>
0debug
GuestMemoryBlockList *qmp_guest_get_memory_blocks(Error **errp) { GuestMemoryBlockList *head, **link; Error *local_err = NULL; struct dirent *de; DIR *dp; head = NULL; link = &head; dp = opendir("/sys/devices/system/memory/"); if (!dp) { error_setg_errno(errp, errno...
1threat
static inline void downmix_2f_2r_to_dolby(float *samples) { int i; for (i = 0; i < 256; i++) { samples[i] -= samples[i + 512]; samples[i + 256] += samples[i + 768]; samples[i + 512] = samples[i + 768] = 0; } }
1threat
How to evaluate user policy via API for a given set of users : <p>I want to evaluate user policies for a particular user or list of users, is there any API available to perform the same in OIM 11gR2PS3?</p>
0debug
Split Words in the comment text - VBA Macro : I am trying to write a macro which will split the comment. My supervisor wants to prioritize the comments for eg: Low : Comment 1 Medium : Comment 2 High: Comment 3 The out put should be displayed in an excel with the following headings I was able to write a m...
0debug
.net core build produces localization folders : <p>I have a web asp.net solution that is using .net core 2.0. I am building it using the command:</p> <pre><code>dotnet publish MySolution.sln --configuration release --output d:\test_output </code></pre> <p>But when I check the output folder, I'm seeing a lot of locali...
0debug
how to develop UI for desktop application using TELERIK : <p>i want my interface to look more elegant though professional and i want to make it good as web/android UI's. But how do i do it? I have heard about TELERIK UI. but i have no idea about how to use it. I have downloaded it and initialised it but do not know wha...
0debug
The Code Won't Execute all : <p>I have the following code:</p> <pre><code>private void G1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { decimal quantity = 0, cost = 0; decimal totalstock = 0, newtotalstock = 0; if (decimal.TryParse(G1.Rows[e.RowIndex].Cells["R...
0debug
cursor.execute('SELECT * FROM users WHERE username = ' + user_input)
1threat
How can i sync my code live between a macbook and a windows computer? : They are connected to the same network, and i use Synergy to use them together. I use Jetbrains IDE's and Visual Studio. What i am looking for is that code synchronizes live between the two devices while i'm editing. So when i take my macbook with ...
0debug
How to use numpy.argsort() as indices in more than 2 dimensions? : <p>I know something similar to this question has been asked many times over already, but all answers given to similar questions only seem to work for arrays with 2 dimensions.</p> <p>My understanding of <code>np.argsort()</code> is that <code>np.sort(a...
0debug
can anyone please how to make pointing corner background? : <p><a href="https://i.stack.imgur.com/9vj3w.png" rel="nofollow noreferrer">Css background pointing Corner</a><a href="https://i.stack.imgur.com/k1p7E.png" rel="nofollow noreferrer">Pointing background corner</a></p>
0debug
@Font-face not working on mobile : <p>Here's my code it works perfectly fine on desktop and tablet but not on mobile. Is it the code or do some fonts just not work on mobile</p> <pre><code>@font-face { font-family: 'Out'; src: url('http://location/Outstanding.otf'); } </code></pre>
0debug
When I try to hide my background image using a UISwitch in a different storyboard, It doesn't work. Swift 4 : <p>When I turn on the UISwitch I try to make it hide the background Image but I get the error: Thread 1: Fatal error: Unexpectedly found nil while unwrapping an Optional value. What am I doing wrong? when it wa...
0debug
Take picture and convert to Base64 : <p>I use code below to make a picture with camera. Instead of saving I would like to encode it to <code>Base64</code> and after that pass it to another API as an input. I can't see method, how to modify code to take pictures in <code>Base64</code> instead of regular files.</p> <pre...
0debug
How can i read pdf in python? : <p><strong>How can i read pdf in python?</strong> <em>I know one way of converting it to text</em>, but i want to read the content directly from pdf.</p> <p>Can anyone explain which <strong>module in python is best for pdf extraction</strong></p>
0debug
LISTVIEW WITH CHECKBOX USING CUSTOM ADAPTER CLASS IN ANDROID : I was creating app like e-commerce with listview that containing images, textbox and one checkbox. Now my question is that i want choose(click) max 3 item from listview and checked item pass to next activity on OnClick on button. After going to next activit...
0debug
Don't trigger the parent event when clicking on the child element : <p>See my snippet, as I click the parent element, the child element is shown but as I click the child element, the parent element events seems also triggered along with the child elements event, any ideas to trigger only parent elements event when on c...
0debug
In Python, how to drop into the debugger in an except block and have access to the exception instance? : <p>I'm trying to do something similar to the following:</p> <pre><code>try: 1/0 except ZeroDivisionError as e: import ipdb; ipdb.set_trace() </code></pre> <p>When I drop into the debugger, I'd like for the...
0debug
char *g_strdup_vprintf(const char *format, va_list ap) { char ch, *s; size_t len; __coverity_string_null_sink__(format); __coverity_string_size_sink__(format); ch = *format; ch = *(char *)ap; s = __coverity_alloc_nosize__(); __coverity_writeall__(s); __coverity_mark_a...
1threat
static int udp_close(URLContext *h) { UDPContext *s = h->priv_data; if (s->is_multicast && (h->flags & AVIO_FLAG_READ)) udp_leave_multicast_group(s->udp_fd, (struct sockaddr *)&s->dest_addr,(struct sockaddr *)&s->local_addr_storage); closesocket(s->udp_fd); #if HAVE_PTHREAD_CANCEL if (s...
1threat
size_t qemu_file_set_rate_limit(QEMUFile *f, size_t new_rate) { if (f && f->set_rate_limit) return f->set_rate_limit(f->opaque, new_rate); return 0; }
1threat
How do I install bundletool? : <p>Although <a href="https://github.com/google/bundletool/releases" rel="noreferrer">the docs</a> mentioned</p> <blockquote> <p>If you haven't already done so, download bundletool from the GitHub <a href="https://github.com/google/bundletool/releases" rel="noreferrer">repository</a>....
0debug
What is the difference between Extends and New in Java? : <p>Say you have a class called superclass.</p> <p>I can say </p> <pre><code>Public class MyClass extends superclass </code></pre> <p>and i can do</p> <pre><code>superclass sc = new superclass(); </code></pre> <p>both methods let me use methods/variable...
0debug
Install vscode for all users : <p>I updated to the version <a href="https://code.visualstudio.com/updates/v1_26#_user-setup-for-windows" rel="noreferrer">here</a> where it installs it per user instead of all.</p> <p>How do I install for all users instead? Do I need to install for each user now?</p>
0debug
static void smbios_check_collision(int type, int entry) { if (type < ARRAY_SIZE(first_opt)) { if (first_opt[type].seen) { if (first_opt[type].headertype != entry) { error_report("Can't mix file= and type= for same type"); loc_push_restore(&first_opt[type].lo...
1threat
Why isn't std::set just called std::binary_tree? : <p>std::set in C++ is not a real set in terms of data structures. std::unordered_set is a real set, but std::set is a <strong>binary search tree</strong>, more specifically a red-black tree. Why, then, is it called std::set? Is there some specific functionality that se...
0debug
query = 'SELECT * FROM customers WHERE email = ' + email_input
1threat
static void spectral_to_sample(AACContext *ac, int samples) { int i, type; void (*imdct_and_window)(AACContext *ac, SingleChannelElement *sce); switch (ac->oc[1].m4ac.object_type) { case AOT_ER_AAC_LD: imdct_and_window = imdct_and_windowing_ld; break; case AOT_ER_AAC_ELD: ...
1threat
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 4, Size: 4 : ... at java.util.ArrayList.rangeCheck(ArrayList.java:657) at java.util.ArrayList.get(ArrayList.java:433) at LengthsOfStrings.lengths(LengthsOfStrings.java:11) at LengthsOfStrings.main(LengthsOfStrings.java:26) **The exerc...
0debug
setting visibility to GONE does not hide the imageView : As shown below in the below posted layout. there is an ImageView with is "cardViewImageViewRight". when I set the visiblity of this view to GONE, i expect the entire space this imageView occupies will disappear. but what happens is, when I set the visibility to...
0debug
static inline int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx, const uint8_t *buf, int buf_size) { H264Context *h = s->priv_data; const uint8_t *buf_end = buf + buf_size; unsigned int pps_id; unsigned int slice...
1threat
void avcodec_get_context_defaults2(AVCodecContext *s, enum AVMediaType codec_type){ int flags=0; memset(s, 0, sizeof(AVCodecContext)); s->av_class= &av_codec_context_class; s->codec_type = codec_type; if(codec_type == AVMEDIA_TYPE_AUDIO) flags= AV_OPT_FLAG_AUDIO_PARAM; else if...
1threat
ajax call to vb.net webservice success, but dosent work : Hi there I have an ajax call to my web service that is Successful but the message displays page code and dosent trigger my web method. [![Success message][1]][1] [1]: https://i.stack.imgur.com/3Bgwb.png function CallApi(){ try {...
0debug
grlib_apbuart_writel(void *opaque, target_phys_addr_t addr, uint32_t value) { UART *uart = opaque; unsigned char c = 0; addr &= 0xff; switch (addr) { case DATA_OFFSET: c = value & 0xFF; qemu_chr_write(uart->chr, &c, 1); return; case STAT...
1threat
static void disas_xtensa_insn(DisasContext *dc) { #define HAS_OPTION_BITS(opt) do { \ if (!option_bits_enabled(dc, opt)) { \ qemu_log("Option is not enabled %s:%d\n", \ __FILE__, __LINE__); \ goto invalid_opcode; \ } \ } while (0) #define HAS_OP...
1threat
static void compute_antialias_fixed(MPADecodeContext *s, GranuleDef *g) { int32_t *ptr, *csa; int n, i; if (g->block_type == 2) { if (!g->switch_point) return; n = 1; } else { n = SBLIMIT - 1; } ptr = g->sb_hybrid + 18; for(...
1threat
void do_interrupt(int intno, int is_int, int error_code, unsigned int next_eip, int is_hw) { #ifdef DEBUG_PCALL if (loglevel) { static int count; fprintf(logfile, "%d: interrupt: vector=%02x error_code=%04x int=%d\n", count, intno, error_code, is_int); ...
1threat
Add an empty line at end of file according to PSR-2 on PhpStorm : <p>I use <a href="http://www.php-fig.org/psr/psr-2/" rel="noreferrer">PSR-2</a> for code styling my code.</p> <p>When I inspect a file using Codesniffer most of the times I get the following error.</p> <pre><code>332 | ERROR | [x] Expected 1 newline ...
0debug
selenium click on button when he is in frame : i tried to enter this website : https://www.google.com/recaptcha/api2/demo and click on this button : [![enter image description here][1]][1] than, i tried to click on this button : [![enter image description here][2]][2] and finally , on this button : ...
0debug
In Word - How to find all occurrences of a regex between square brackets? : I'm opening a word doc using `Microsoft.Office.Interop.Word` word.Application wordApp = new word.Application { Visible = true }; word.Document aDoc = wordApp.Documents.Open(fileName, ReadOnly: false, Visible: true); ...
0debug
static int buffer_needs_copy(PadContext *s, AVFrame *frame, AVBufferRef *buf) { int planes[4] = { -1, -1, -1, -1}, *p = planes; int i, j; for (i = 0; i < FF_ARRAY_ELEMS(planes) && frame->data[i]; i++) { if (av_frame_get_plane_buffer(frame, i) == buf) *p++ = i; } ...
1threat