problem
stringlengths
26
131k
labels
class label
2 classes
How do you test a URL and get a status code in Swift 3? : <p>I'm using the most recent version of Xcode (8.1 at time of writing), which uses Swift 3.0.</p> <p>All I'm trying to do is take a string, convert it to a URL and test that URL to see if it gives me a 404 error. I've been able to make a URL and URLRequest by u...
0debug
alert('Hello ' + user_input);
1threat
how to open only whatsapp application when click on a hyperlink/image/button : <p>A code required for html website, when user open my website from mobile device and click on hyper link/image/button, then the link should open only whatsapp application.</p> <p>I only need to open whatsapp application when user click on ...
0debug
static av_cold int omx_encode_init(AVCodecContext *avctx) { OMXCodecContext *s = avctx->priv_data; int ret = AVERROR_ENCODER_NOT_FOUND; const char *role; OMX_BUFFERHEADERTYPE *buffer; OMX_ERRORTYPE err; #if CONFIG_OMX_RPI s->input_zerocopy = 1; #endif s->omx_context = omx_init(...
1threat
uint64_t helper_efdctsidz (uint64_t val) { CPU_DoubleU u; u.ll = val; if (unlikely(float64_is_nan(u.d))) return 0; return float64_to_int64_round_to_zero(u.d, &env->vec_status); }
1threat
How to limit ListView to particular number of list items in android : I am working on a functionality in which I have a ListView and I want listView to show only 3 items. I have set ListView height to **"wrap_content"** and in adapter I have set **get count** to 3 so that it will show only 3 items but it is showing onl...
0debug
I am using Swifty json library for json parsing.. and not getting value of country... I want value of Country.. I want value "GB".. Following is Json : {"status": true, "message": "Country Details", "content": { "country": "GB" } } and code let countryJson = response["content"] let ...
0debug
This class is not key value coding-compliant for the key cancel : <p>I keep getting this error: <code>Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[&lt;FoodTracker.MealViewController 0x7faa9ed189d0&gt; setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key ca...
0debug
static int blend_frames(AVFilterContext *ctx, int interpolate) { FrameRateContext *s = ctx->priv; AVFilterLink *outlink = ctx->outputs[0]; double interpolate_scene_score = 0; if ((s->flags & FRAMERATE_FLAG_SCD)) { if (s->score >= 0.0) interpolate_scene_score = s->score; ...
1threat
Why is 'Bring an umbrella' the correct answer? : <p>I am using the Grasshopper app on my phone and I do not understand an example they gave me for if then statements.</p> <p>They give you the solution because I answered incorrectly, but I do not understand why the solution given is correct. </p> <pre><code>var todayW...
0debug
Trying to think about how to build a multi step form in angular 2 : <p>I am trying to build a small, 3 step form. It would be something similar to this:</p> <p><a href="https://i.stack.imgur.com/BysIo.jpg"><img src="https://i.stack.imgur.com/BysIo.jpg" alt="enter image description here"></a></p> <p>The way I did thi...
0debug
static int tcp_write(URLContext *h, const uint8_t *buf, int size) { TCPContext *s = h->priv_data; int ret, size1, fd_max, len; fd_set wfds; struct timeval tv; size1 = size; while (size > 0) { if (url_interrupt_cb()) return AVERROR(EINTR); fd_max = s->fd; ...
1threat
static int cbr_bit_allocation(AC3EncodeContext *s) { int ch; int bits_left; int snr_offset, snr_incr; bits_left = 8 * s->frame_size - (s->frame_bits + s->exponent_bits); snr_offset = s->coarse_snr_offset << 4; while (snr_offset >= 0 && bit_alloc(s, snr_offset) > bits_lef...
1threat
Looking for advice with C arrays : Good afternoon, I want to improve my program with user-input of array length. Is that possible in C?
0debug
def count_occurance(s): count=0 for i in range(len(s)): if (s[i]== 's' and s[i+1]=='t' and s[i+2]== 'd'): count = count + 1 return count
0debug
How to decrypt smime file in c# application? : I have a file, which is encrypted using this command: openssl smime -encrypt -aes256 -in fileToencrypt -binary -outform DEM -out encryptedFile public_key It can be decrypted using command: openssl smime -decrypt -in encryptedFile -binary -inform DEM -inkey private-k...
0debug
retain 0's when incrementing number : In ruby if I have this integer `003` and I increment it by 1 the number will be `4`. I want it to be `004`. How can I retain the 0's in this? #### CODE: num = 003 num += 1 `=> 4` I want `=> 004`
0debug
Syntax error on curl intilization : Why it says syntax error and could not feel the form with this no......hey guys today I am trying to put my number on external site and login without opening it but it couldn't work what is the problem I don't know...............any type of help is greatly appreciated <?...
0debug
Type 'null' is not assignable to type 'HTMLInputElement' ReactJs : <p>I am trying to reference data into reactJS along with typescript. While doing this I am getting below error</p> <pre><code>Type 'null' is not assignable to type 'HTMLInputElement' </code></pre> <p>Please let me know what exactly incorrect here, I u...
0debug
How can I create a string by combining two strings and using substitution? : <p>I have code that creates two strings:</p> <pre><code>var string1 = "ま|ちが|#"; var string2 = "間|違|う"; </code></pre> <p>I'm looking for a way to combine these such the resulting output contains the characters from string1 but if the characte...
0debug
Play Song displayed in the table view in x Code (Swift) : I have displayed all Songs of the iTunes Music Library in a table view. Now I would like to play the selected song in the table view as soon as the user taps on it. Here's my Code: import UIKit import MediaPlayer class ViewController: UIViewController,...
0debug
Android NullPointException on getWritableDatabase : <p>I know this question was asked a thousand times and I read a lot of them and the answers. But I couldnt fix my problem in this case. When I'm calling the getWritableDatabase() Function in my android app I get this Exception:</p> <pre><code>E/AndroidRuntime: FATAL ...
0debug
int RENAME(swri_resample)(ResampleContext *c, DELEM *dst, const DELEM *src, int *consumed, int src_size, int dst_size, int update_ctx){ int dst_index, i; int index= c->index; int frac= c->frac; int dst_incr_frac= c->dst_incr % c->src_incr; int dst_incr= c->dst_incr / c->src_incr; av...
1threat
Command line java programming basics : <p>Is it possible to edit varargs of main function in java program ?</p> <pre><code>class Program1 { public static void main(String args[]){ int i=44; args[i]=34 +""; System.out.println(args[i]); } } </code></pre>
0debug
Calculating the difference between two dates in seconds : I need to know how much time elapsed from the moment the app was terminated to the time the app was launched again. I guess you'd have to store the startDate by saving it in the appDelegate when appIsTerminated. Then you'd have to access that value in appDidLaun...
0debug
SSL handshake failed remote host closed connection during handshake (eclipse, svn) : I am trying to create a repository in Eclipse. The code that I need is hosted in a Visual SVN (VisualSVN) server. I am trying to use its truck URL as the repository location, but when I try to connect to the URL through Eclipse's SVN p...
0debug
Nested objects in mongoose schemas : <p>i've seen many answers to this question here, but i still don't get it (maybe because they use more "complex" examples)... So what im trying to do is a schema for a "Customer", and it will have two fields that will have nested "subfields", and others that may repeat. here is what...
0debug
static void armv7m_nvic_realize(DeviceState *dev, Error **errp) { NVICState *s = NVIC(dev); SysBusDevice *systick_sbd; Error *err = NULL; s->cpu = ARM_CPU(qemu_get_cpu(0)); assert(s->cpu); if (s->num_irq > NVIC_MAX_IRQ) { error_setg(errp, "num-irq %d exceeds NVIC maximum", s-...
1threat
JUnit Test + Eclipse : I am not familiar with Junit testing at all. How would I go about creating a junit test for this code? I am using Eclipse and have already set up the test file. @WebServlet("/version") public class TypeCheck extends HttpServlet { /** * */ private static final long serial...
0debug
Android: multiple intentservices or one intentservice with multiple intents? : <p>I'm a little confused about intentService. The docs say that if you send an intentService multiple tasks (intents) then it will execute them one after the other on one separate thread. My question is - is it possible to have multiple inte...
0debug
How to get last seven days in laravel? : I am trying last seven days record using below query but it does not working DB::table('data_table') ->select(DB::raw('SUM(fee) as counter, left(DATE(created_at),10) as date')) ->whereIn('user_id',$descendants) ->whereRaw('DATE(creat...
0debug
Given a latitude and longitude, How can I know if there is a restaurant at that location? : How do I know if there is a restaurant at a given lat long location. Can we use google maps/ google places/ Yelp/ FourSquare for the same? Input : lat, long pair ( 1.280634,103.845392 ) Output: Meii Sushi
0debug
Can we display HTML tables on UILabel : Up to now i can show some HTML tags like <p>, <li> on UILabel, but i want to display <td>, <tr> tags on UILable. Is it possible. I know we can display in WebView but for dynamic size in table view i want to put a lable kind of UI, is there any third party for it please let me kno...
0debug
Eloquent model relationship in Laravel : This is my Project.php model <?php namespace App; use Illuminate\Database\Eloquent\Model; class Project extends Model { protected $table = 'project'; protected $primaryKey = 'project_id'; } <br> This is...
0debug
When adding string to Hashtable, string gains unrecognizable characters : <p>So currently I have a hash table that I create and populate it with keys and values</p> <pre><code>Hashtable m_hash = new Hashtable(); </code></pre> <p>I then have a string that I have created with a value that will replace a specific value ...
0debug
how download Angular4 js : I want to develop my first app with Angular4 technology into PHP Symfony project. I don't use NodeJS server for executing JS source code. But the official tutorial angular4 don't specified another way for getting angular4 js. I don't find CDN for Angular4. How can find source code of An...
0debug
as in excel, an formulae are used to refer to cells, i'd like to know how to replicate that in R : <p>trying to keep it as simple as possible</p> <p>Consider this simple excel formula. Lets presume that I'm in cell C2 currently and it holds this formula. =if(A2=1,B2,<strong>C1</strong>)</p> <p>i'm stuck at the refere...
0debug
static void kvm_mem_ioeventfd_add(MemoryListener *listener, MemoryRegionSection *section, bool match_data, uint64_t data, EventNotifier *e) { int fd = event_notifier_get_fd(e); int r; r = kvm_set_i...
1threat
PHP PDO bindValue does not update the DB : <p>Could someone tell me what I am doing wrong.</p> <p>If I use the code below, I am able to update the DB.</p> <pre><code> $sUpdateSql = "UPDATE googleAnalytics SET $period = '$value' WHERE statisticName = '$item' "; $preparedStatement = $db-&gt;query...
0debug
800A0401 - expected end of statement in vba : I am getting this error "800A0401 - expected end of statement" in VBA. Please clarify on what is wrong Const ForReading = 1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objTextFile = objFSO.OpenTextFile("C:\Users\RAJDIQ\Desktop\Macros\11082...
0debug
static void check_exception(PowerPCCPU *cpu, sPAPRMachineState *spapr, uint32_t token, uint32_t nargs, target_ulong args, uint32_t nret, target_ulong rets) { uint32_t mask, buf, len, event_len; uint64_t xinfo; sPAPREv...
1threat
static int parse_channel_name(char **arg, int *rchannel, int *rnamed) { char buf[8]; int len, i, channel_id = 0; int64_t layout, layout0; if (sscanf(*arg, " %7[A-Z] %n", buf, &len)) { layout0 = layout = av_get_channel_layout(buf); for (i = 32; i > 0; i >>= 1) { ...
1threat
Get max + 1 without removing zeroes in SQL server : I have a varchar field contains numbers in this format "00001" , "00002" etc when I try to get the next number by using Max(Field) + 1 I get an integer "3" for example. how can I get the resutl "00003" instead of "3"? What I have tried: Reply Modify the co...
0debug
static QError *qerror_from_info(const char *fmt, va_list *va) { QError *qerr; qerr = qerror_new(); loc_save(&qerr->loc); qerr->error = error_obj_from_fmt_no_fail(fmt, va); qerr->err_msg = qerror_format(fmt, qerr->error); return qerr; }
1threat
Is there a way to only save value of unchecked checkbox in android? : Is there a way to save values from listview with checkboxes, but to save only unchecked values. I am using Android Studio for development.
0debug
i have six array elements, what usage is better than others, and why? : <p>i have six variables, what usage is better than others, and why?</p> <pre><code>$a["1"]; $a1['1']; $a2[1]; $b['b']; $b1["b"]; $b2[b]; </code></pre> <p>question is only about code optimization, can't really understand what of that is better tha...
0debug
Using bootstrap cards as a hyperlink : <p>I have a bootstrap card Which is used as a link.</p> <p>Trying to wrap it with <code>&lt;a&gt;</code> changes all of the styling of the card.</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="snippet-code"> <pre...
0debug
static int nbd_receive_list(QIOChannel *ioc, const char *want, bool *match, Error **errp) { nbd_opt_reply reply; uint32_t len; uint32_t namelen; char name[NBD_MAX_NAME_SIZE + 1]; int error; if (nbd_receive_option_reply(ioc, NBD_OPT_LIST, &reply, errp) < 0) {...
1threat
How can I access the database in a service in android? : public class BackServices extends BroadcastReceiver { private boolean screenOff; @Override public void onReceive(Context context, Intent intent) { context.startService(new Intent(context, UpdateService.class)); if (intent.g...
0debug
static void scsi_write_do_fua(SCSIDiskReq *r) { SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); if (r->req.io_canceled) { scsi_req_cancel_complete(&r->req); goto done; } if (scsi_is_cmd_fua(&r->req.cmd)) { block_acct_start(bdrv_get_stats(s->qdev.conf.bs...
1threat
Pass a typed function as a parameter in Dart : <p>I know the <a href="https://api.dartlang.org/stable/1.22.1/dart-core/Function-class.html" rel="noreferrer" title="Function">Function</a> class can be passed as a parameter to another function, like this:</p> <pre><code>void doSomething(Function f) { f(123); } </cod...
0debug
How to transfer project from one group to a user in gitlab CE 9? : <p>I want to transfer a project from a group to another user. For e.g from <a href="https://gitlab.local/groupname/projectname" rel="noreferrer">https://gitlab.local/groupname/projectname</a> to <a href="https://gitlab.local/userA/projectname" rel="nore...
0debug
Finding out if a big number is a perfect square numbers using C# : <p>Is there a fast and simple way to write a program in C#, that finds out if a big (something like 25 digits big) number is a perfect square or not?</p> <p>Perfect squares are the numbers: 0^2=0,1^2=1,2^2=4,3^2=9,4^2=16,...</p>
0debug
int kvm_log_start(target_phys_addr_t phys_addr, target_phys_addr_t end_addr) { return kvm_dirty_pages_log_change(phys_addr, end_addr, KVM_MEM_LOG_DIRTY_PAGES, KVM_MEM_LOG_DIRTY_PAGES); }
1threat
static always_inline void gen_qemu_lds (TCGv t0, TCGv t1, int flags) { TCGv tmp = tcg_temp_new(TCG_TYPE_I32); tcg_gen_qemu_ld32u(tmp, t1, flags); tcg_gen_helper_1_1(helper_memory_to_s, t0, tmp); tcg_temp_free(tmp); }
1threat
yuv2rgb_1_c_template(SwsContext *c, const int16_t *buf0, const int16_t *ubuf[2], const int16_t *vbuf[2], const int16_t *abuf0, uint8_t *dest, int dstW, int uvalpha, int y, enum PixelFormat target, int hasAlpha) { const int16_t *ubuf...
1threat
Is there a way to get the app group identifier from host app and share extension on iOS? : <p>I have set up App Groups for both my host app and the share extension. The identifier looks like "group.com.abc.xyzApp". Is there a way to get this string out programmatically? Also, how do I detect if app groups are set prog...
0debug
How to change Facebook iOS SDK's done button color when login? : <p><a href="https://i.stack.imgur.com/Bunc3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bunc3.png" alt="enter image description here"></a></p> <p>My app use white UITabBarItem text color and orange UINavigationBar BarTintColor, when click t...
0debug
static int pva_read_packet(AVFormatContext *s, AVPacket *pkt) { ByteIOContext *pb = s->pb; PVAContext *pvactx = s->priv_data; int ret, syncword, streamid, reserved, flags, length, pts_flag; int64_t pva_pts = AV_NOPTS_VALUE; recover: syncword = get_be16(pb); streamid = get_byte(pb); ...
1threat
barplot in R programming language : I have this package called gapminder. I am trying to do this a. A bar chart showing the life expectancy for the United States over the years. (Data source: gapminder) Make a barchart showing the life expectancy of the United States over the years. But I am not entirely sure ...
0debug
combobox not working with sql connection reader : ` private void comboBox45_SelectedIndexChanged(object sender, EventArgs e) { baglanti.Open(); string str = "select * from satilikkonutlar where ilanbasligi='" + comboBox45.Text.Trim() + ""; SqlCom...
0debug
static int v9fs_do_open2(V9fsState *s, V9fsString *path, int flags, mode_t mode) { return s->ops->open2(&s->ctx, path->data, flags, mode); }
1threat
Docker Store Vs Docker Hub : <p>Did anyone actually figure out the difference between "Docker Store" that Docker introduced at DockerCon2016 and "Docker Hub"? </p> <p>Is Docker just trying to make a fancy version of Docker hub to have something like Apple Store, Android Store etc? or are there any specific use cases i...
0debug
Variable doesn't exist outside of post function (java, android studio) : How would i make it so that i can reference my variable tag_found outside of the TrakkRestClient.post function so i can check if both that and user_found are true and then run code based on that? submit.setOnClickListener(new View.OnClick...
0debug
static bool use_goto_tb(DisasContext *ctx, target_ulong dest) { if ((ctx->base.tb->cflags & CF_LAST_IO) || ctx->base.singlestep_enabled) { return false; } return true; }
1threat
Taking a list of integers and displaying them in reverse using arrays : <p>If my input is 1 2 3 the output is also coming out as 1 2 3, how do I make these numbers to display 3 2 1?</p> <pre><code> public static void main(String[] args) { // TODO code application logic here Scanner s = new Scanner(System.in); ...
0debug
Why's my code wrong when looking for duplicates? : <p>I'm trying to solve this Leetcode problem <a href="https://leetcode.com/problems/contains-duplicate-ii/" rel="nofollow noreferrer">https://leetcode.com/problems/contains-duplicate-ii/</a></p> <p>I'm not sure why my code's incorrect. I've followed the problem and t...
0debug
How to unique identify each request in a ASP.NET Core 2 application (for logging) : <p>In a ASP.NET Core 2 application, I need a unique identifier (e.g. Guid) for each request so I can include that id in each log and understand the sequence of logs of each request.</p> <p>This is not hard to write it myself, but I won...
0debug
Combining two Id String : I just want to combine two **string uids** (28 digit alphanumeric) without concatenation ,ie by addition to create another uid that is unique as well. Any help is appreciated
0debug
How do I fix alembic's "Requested revision overlaps with other requested revisions"? : <p>I work on a team using alembic to manage db migrations. I recently pulled master, and tried to run <code>alembic upgrade heads</code>. I got the following message;</p> <pre><code>INFO [alembic.runtime.migration] Context impl Pos...
0debug
How Read a selected text from the drop down ? : I need to save the user selected text to the db.I tried 3 different ways but all of them return null for the selected value. value1 or value2 or value3 returns null. What I am doing to wrong here ? <div id="reasonsList" style="display: none"> @foreach...
0debug
static int decode_block_progressive(MJpegDecodeContext *s, int16_t *block, uint8_t *last_nnz, int ac_index, uint16_t *quant_matrix, int ss, int se, int Al, int *EOBRUN) { int code, i, j, level, val, run;...
1threat
How to arrange two divs vertically with a space between them? : <div> <div>TOP<div> <div>BOTTOM<div> <div> TOP and BOTTOM should be centered and I'd like to have an arbitrary space margin between them. I've seen many answers in SO suggesting to use `margin: 0 auto;` . But that (AFAIK) prevent...
0debug
static void pc_compat_2_2(MachineState *machine) { pc_compat_2_3(machine); rsdp_in_ram = false; machine->suppress_vmdesc = true; }
1threat
static void gen_delayed_conditional_jump(DisasContext * ctx) { int l1; TCGv ds; l1 = gen_new_label(); ds = tcg_temp_new(); tcg_gen_andi_i32(ds, cpu_flags, DELAY_SLOT_TRUE); tcg_gen_brcondi_i32(TCG_COND_NE, ds, 0, l1); gen_goto_tb(ctx, 1, ctx->pc + 2); gen_set_label(l1); t...
1threat
I am facing a SQLite syntax error in Android Studio.Need help fast, this part of my project which I have to submit tomorrow : The below code generates this error and my app crashes: android.database.sqlite.SQLiteException: near "@kiit": syntax error (code 1): , while compiling: Select * from LoginMaster where UserID...
0debug
C safely taking absolute value of integer : <p>Consider following program (C99):</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;inttypes.h&gt; int main(void) { printf("Enter int in range %jd .. %jd:\n &gt; ", INTMAX_MIN, INTMAX_MAX); intmax_t i; if (scanf("%jd", &amp;i) == ...
0debug
int main (int argc, char **argv) { int ret = 0, got_frame; if (argc != 4) { fprintf(stderr, "usage: %s input_file video_output_file audio_output_file\n" "API example program to show how to read frames from an input file.\n" "This program reads frames from a file, ...
1threat
How to use string interpolation in style tag in Angular component? : <pre><code>@Component({ selector: 'app-style', template: ` &lt;style&gt; .test { color: {{ textColor }} } &lt;/style&gt; ` }) export class StyleComponent { textColor = "red"; } </code></pre> <p>This doesn't seem to...
0debug
Javascript Regex: Return number of the last occurrence of a pattern : I'm trying, with no sucess, to get a number inside of the **last occurence** of a pattern inside of a HTML code. The pattern is **data\\[\d{1,3}\\]**. How can i get the number "03" in the below example? <body> <h2>JavaScript Regular Expre...
0debug
static int vorbis_parse_setup_hdr_floors(vorbis_context *vc) { GetBitContext *gb = &vc->gb; int i,j,k; vc->floor_count = get_bits(gb, 6) + 1; vc->floors = av_mallocz(vc->floor_count * sizeof(*vc->floors)); for (i = 0; i < vc->floor_count; ++i) { vorbis_floor *floor_setup = &vc->...
1threat
Developing a messenger : <p>So I’m developing a chat messenger app like WhatsApp but I’m trying to decide the best way to get the messages between phones. A lecturer of mine mentioned using a router but I couldn’t understand how that would work. Any ideas ? </p>
0debug
how to use sub query in sql? : i have 4 tables : Travelers (TravelerID,FirstName,LastName) Guides(GuideID,FirstName,LastName) Locations(LocationID,LocationName) Trips(TravelerID,GuideID,LocationID,Stars,StartDate,ReturnDate) I want to return per guide the name of location which he guided the maximum number of t...
0debug
static int tiff_decode_tag(TiffContext *s) { unsigned tag, type, count, off, value = 0; int i, j, k, pos, start; int ret; uint32_t *pal; double *dp; tag = tget_short(&s->gb, s->le); type = tget_short(&s->gb, s->le); count = tget_long(&s->gb, s->le); off = tget_long(&...
1threat
static void ide_atapi_cmd(IDEState *s) { const uint8_t *packet; uint8_t *buf; int max_len; packet = s->io_buffer; buf = s->io_buffer; #ifdef DEBUG_IDE_ATAPI { int i; printf("ATAPI limit=0x%x packet:", s->lcyl | (s->hcyl << 8)); for(i = 0; i < ATAPI_PACKET_SIZE; i++) { ...
1threat
Since C++17 supports shared_ptr of array, does this mean that an explicit deleter for T[] is no longer required in both ctor and reset? : <p>When create shared_ptr using a separated allocation, an explicit delete function must be provided in C++14 ctor and reset member function.</p> <pre><code>using std::string; using...
0debug
int avpicture_layout(const AVPicture* src, enum AVPixelFormat pix_fmt, int width, int height, unsigned char *dest, int dest_size) { int i, j, nb_planes = 0, linesizes[4]; const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); int size = avpicture_get_s...
1threat
static void encode_frame(MpegAudioContext *s, unsigned char bit_alloc[MPA_MAX_CHANNELS][SBLIMIT], int padding) { int i, j, k, l, bit_alloc_bits, b, ch; unsigned char *sf; int q[3]; PutBitContext *p = &s->pb; put_bits(p, 12, 0xfff); ...
1threat
static AVFilterContext *create_filter(AVFilterGraph *ctx, int index, const char *name, const char *args, AVClass *log_ctx) { AVFilterContext *filt; AVFilter *filterdef; char inst_name[30]; snprintf(inst_name, sizeof(i...
1threat
static int translate_pages(S390CPU *cpu, vaddr addr, int nr_pages, target_ulong *pages, bool is_write) { bool lowprot = is_write && lowprot_enabled(&cpu->env); uint64_t asc = cpu->env.psw.mask & PSW_MASK_ASC; CPUS390XState *env = &cpu->env; int ret, i, pflags; for...
1threat
How to current array key inside foreach : <p>In my PHP code I want to check inside foreach iteration what is the current array key (In code below: key1/key2/key3/key4/key5).</p> <p>I have assoc array which looks like this:</p> <p>var_dump($myArray);</p> <p>array(5) { </p> <p>&nbsp;&nbsp;&nbsp;&nbsp;["key1"]=> array...
0debug
Decompression 'SNAPPY' not available with fastparquet : <p>I am trying to use fastparquet to open a file, but I get the error:</p> <pre><code>RuntimeError: Decompression 'SNAPPY' not available. Options: ['GZIP', 'UNCOMPRESSED'] </code></pre> <p>I have the following installed and have rebooted my interpreter:</p> <p...
0debug
static int dec_21154_pci_host_init(PCIDevice *d) { pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_DEC); pci_config_set_device_id(d->config, PCI_DEVICE_ID_DEC_21154); pci_set_byte(d->config + PCI_REVISION_ID, 0x02); pci_config_set_class(d->config, PCI_CLASS_BRIDGE_PCI); return 0; }
1threat
My nav code in Bootstrap doesn't works oke CSS : The code at the and of this message I use in WebStorm. Have you any idea what i doing wrong? Maybe some CDN errors or incorrect in the code? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="w...
0debug
static void opt_output_file(const char *filename) { AVFormatContext *oc; int err, use_video, use_audio, use_subtitle; int input_has_video, input_has_audio, input_has_subtitle; AVFormatParameters params, *ap = &params; AVOutputFormat *file_oformat; if (!strcmp(filename, "-")) fi...
1threat
find charecter(AND,OR) in string and make as array in javascript/jquery : example var string=(Firstname==test1) AND (Lastname==test2) OR (state=Tamilnadu) OR (country=india) i required output like {AND,OR,OR}
0debug
I get an error when I print b1 and b3 seperatly.. But thers no error if I print b2 seperatly ..Pls Explaine : <pre><code>class Example{ public static void main(String args[]){ int x=100; final int y=100; final int z; z=100; byte b1,b2,b3; b1=x; b2=y; b3=z; System.out.println(b1); } </code></pre> <p>} I get an error...
0debug
PSQLException: ERROR: syntax error at or near : <p>I have what I thought was a straight forward relation in JPA. Looks like this. CompanyGroup:</p> <pre><code>@Entity @Table public class CompanyGroup implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue privat...
0debug
Set state and then reading the state shows the previous value : <p>I have the following code that maintains the value when the textbox value is changed. However, whilst debugging the valueHasChangedEvent the variable x line shown below holds the previous value strangely. Is there something I'm doing wrong? The examp...
0debug
void ide_init_drive(IDEState *s, DriveInfo *dinfo, const char *version) { int cylinders, heads, secs; uint64_t nb_sectors; if (dinfo && dinfo->bdrv) { s->bs = dinfo->bdrv; bdrv_get_geometry(s->bs, &nb_sectors); bdrv_guess_geometry(s->bs, &cylinders, &heads, &secs); ...
1threat