problem
stringlengths
26
131k
labels
class label
2 classes
static void continue_send(IPMIBmcExtern *ibe) { if (ibe->outlen == 0) { goto check_reset; } send: ibe->outpos += qemu_chr_fe_write(ibe->chr, ibe->outbuf + ibe->outpos, ibe->outlen - ibe->outpos); if (ibe->outpos < ibe->outlen) { ti...
1threat
Image in javaFx Listview shows only when is selected : <p>i want to make a listview with an image, some text and a button pro column, but the image is only displayed when the column is selected(clicked). But i want the images/icons to be displayed independ from beeing selected/clicked...</p> <pre><code>todoView.setCel...
0debug
AttributeError: 'Figure' object has no attribute 'plot' : <p>My code</p> <pre><code>import matplotlib.pyplot as plt plt.style.use("ggplot") import numpy as np from mtspec import mtspec from mtspec.util import _load_mtdata data = np.loadtxt('262_V01_C00_R000_TEx_BL_4096H.dat') spec,freq,jackknife,f_statistics,degrees...
0debug
static int mkv_write_tracks(AVFormatContext *s) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; ebml_master tracks; int i, j, ret; ret = mkv_add_seekhead_entry(mkv->main_seekhead, MATROSKA_ID_TRACKS, avio_tell(pb)); if (ret < 0) return ret; tracks = start_ebml_...
1threat
Why Event Listener Not Changing? : **HTML** < div id="q">< /div> **Style** #q { width:40px; height:40px; background-color:blue; } **Javascript** window.onload = function () { var a = document.getElementById("q"); var b = 1; function tri() { a.style.width = "10...
0debug
table row highlights a picture area : I have a table with four rows that highlight on mouse over. I also have a picture with 4 areas that correspond to the rows in the table. I need the areas in the picture get highlighted as well as the table rows. This pictures illustrates my problem: http://projekty.freshynek.cz...
0debug
In spacy, how to use your own word2vec model created in gensim? : <p>I have trained my own word2vec model in gensim and I am trying to load that model in spacy. First, I need to save it in my disk and then try to load an init-model in spacy but unable to figure out exactly how.</p> <pre><code>gensimmodel Out[252]: &lt...
0debug
how to set color to button group by focus on one of buttons : <p>I have one button group with 5 button, I need to set color to button group with focus on one of theme, for example if I hover on third button I need change first there will be change color, I try to do it with this button group code : </p> <pre><code>&lt...
0debug
installing amqp on mac with brew : <p>I wanted to install <code>amqp</code> with pecl for my mac sierra. </p> <p>I installed php with brew, with <code>pecl install amqp</code> I receive an error: <code>checking for amqp using pkg-config... configure: error: librabbitmq not found</code></p> <p>I installed with brew th...
0debug
why multiple condition in python while loop are not working? : <p>I can't seem to find the problem in code...<br></p> <pre><code>user_decision = "" while not user_decision == "yes" or not user_decision == "no": user_decision = input("You want to Join?: Please answer (yes/no): ") else: if user_decision == "yes"...
0debug
Helm _helpers.tpl: Calling defined templates in other template definitions : <h1>Helm _helpers.tpl?</h1> <p>Helm allows for the use of <a href="https://golang.org/pkg/text/template/" rel="noreferrer">Go templating</a> in resource files for Kubernetes. </p> <p>A file named <code>_helpers.tpl</code> is usually used to...
0debug
Angular 2 Load CSS background-image from assets folder : <p>My folder structure looks like</p> <pre><code>-myapp -assets -home-page-img -header-bg.jpg -src -app -home-page -home-page.component.css -home-page.component.html -home-page.compo...
0debug
Default values for Laravel 5.4+ blades new components? : <p>Laravel 5.4+ allows for components of the following structure:</p> <pre><code>&lt;div class="alert alert-{{ $type }}"&gt; &lt;div class="alert-title"&gt;{{ $title }}&lt;/div&gt; {{ $slot }} &lt;/div&gt; </code></pre> <p>Which are called like:</p> <p...
0debug
aio_ctx_dispatch(GSource *source, GSourceFunc callback, gpointer user_data) { AioContext *ctx = (AioContext *) source; assert(callback == NULL); aio_dispatch(ctx, true); return true; }
1threat
static void gen_rfdi(DisasContext *ctx) { #if defined(CONFIG_USER_ONLY) gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); #else if (unlikely(ctx->pr)) { gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC); return; } gen_helper_rfdi(cpu_env); gen_sync_exception(ctx); #endi...
1threat
static void check_watchpoint(int offset, int len, int flags) { CPUState *cpu = current_cpu; CPUArchState *env = cpu->env_ptr; target_ulong pc, cs_base; target_ulong vaddr; CPUWatchpoint *wp; int cpu_flags; if (cpu->watchpoint_hit) { cpu_interrupt(cpu, CPU_INT...
1threat
Replacing RegExp to another RegExp (JQuery, JavaScript) : **Problem**<hr/> I have a String var str = "string"; I want it will be catched with this Expression `/(^[a-z])/` and will be replaced by This Expression `/([A-Z])/` > It means it will make the first `LowerCase` Letter to `UpperCase` **I have tried*...
0debug
c# delet a item form a listbox using double click : I need help I don't know I do to delete an item from the listbox by double click the item I have just started like 1 hour ago so I don't have code that can help. I didn't find anything on interned that could help me. if you know how to do this or a tutorial pleas comm...
0debug
When use setState in Flutter? : <p>As newbie in flutter it's very confusing for me when use <code>setState</code> in <code>Flutter</code> application. In below code boolean <code>searching</code> and var <code>resBody</code> used inside <code>setState</code>. My question is why only <code>searching</code> and <code>res...
0debug
RockerSwitch *qmp_query_rocker(const char *name, Error **errp) { RockerSwitch *rocker = g_malloc0(sizeof(*rocker)); Rocker *r; r = rocker_find(name); if (!r) { error_set(errp, ERROR_CLASS_GENERIC_ERROR, "rocker %s not found", name); return NULL; } ...
1threat
static int v210_read_packet(AVFormatContext *s, AVPacket *pkt) { int packet_size, ret, width, height; AVStream *st = s->streams[0]; width = st->codec->width; height = st->codec->height; packet_size = GET_PACKET_SIZE(width, height); if (packet_size < 0) return -1; ret =...
1threat
Flutter onClosing callback for showModalBottomSheet : <p>I have a <code>showModalBottomSheet</code> like the below, which I understand to inherit from <code>BottomSheet</code> (right?)</p> <pre><code> showModalBottomSheet&lt;void&gt;( context: context, builder: (BuildContext context) { r...
0debug
static int pcnet_can_receive(void *opaque) { PCNetState *s = opaque; if (CSR_STOP(s) || CSR_SPND(s)) return 0; if (s->recv_pos > 0) return 0; return sizeof(s->buffer)-16; }
1threat
where should I put docker-compose.yml : <p>When I pull the images from docker hub. Sometimes, I would like to run the images in a multi-container way. So I choose to use docker-compose. For example, I would run the <a href="https://hub.docker.com/_/zookeeper/" rel="noreferrer">zookeeper</a> in <a href="http://zookeeper...
0debug
Remove li from a dynamic list using blade and jquery : I have a dynamically populated list. On clicking on the Approve/reject button, an ajax call happens. If the response is 1, the div should be hidden from the UI. Below is my code. The remove() option doesn't seem to work. Can't figure out a way. Approve.blade...
0debug
static int ohci_bus_start(OHCIState *ohci) { ohci->eof_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, ohci_frame_boundary, ohci); if (ohci->eof_timer == NULL) { trace_usb_ohci_bus_eof_timer_failed(ohci->name); ohci_die(ohci); return 0; } ...
1threat
static uint32_t pxa2xx_rtc_read(void *opaque, target_phys_addr_t addr) { PXA2xxRTCState *s = (PXA2xxRTCState *) opaque; switch (addr) { case RTTR: return s->rttr; case RTSR: return s->rtsr; case RTAR: return s->rtar; case RDAR1: return s->rdar1; ...
1threat
Send multipart/form-data files with angular using $http : <p>I know there are a lot of questions about this, but I can't get this to work:</p> <p>I want to upload a file from input to a server in multipart/form-data</p> <p>I've tried two approaches. First:</p> <pre><code>headers: { 'Content-Type': undefined }, </c...
0debug
Displaying the result in the page - Angular 4 : I am trying to extract data from database (arangodb) and display it on the page or even push it to next page. As of now I am able to display the data in console by clicking button. But how can I display the result in same page ? Can someone help with this ? **app.compo...
0debug
How to add menu to right button : [![enter image description here][1]][1] I want to add a menu on the left click. Where to read about how to do this? [1]: https://i.stack.imgur.com/d3m1U.jpg
0debug
static uint64_t hb_count_between(HBitmap *hb, uint64_t start, uint64_t last) { HBitmapIter hbi; uint64_t count = 0; uint64_t end = last + 1; unsigned long cur; size_t pos; hbitmap_iter_init(&hbi, hb, start << hb->granularity); for (;;) { pos = hbitmap_iter_next_word(&hbi, ...
1threat
Python 2.7 function imports : <p>When I say <code>import numpy as np</code>, I can access all the modules and submodules in numpy from np. I do not have to say <code>np.matrixlib.matrix</code>. What is this feature called? How do I implement this in my package.</p>
0debug
What mean of 0x0000000000000000? : I have a view, and remove when there is a situation. if (self.superview) { [self removeFromSuperview]; // breakpoint point here } I `lldb` it : (lldb) po self.superview 0x0000000000000000 How to juedge the `superview` equals to `0x0...
0debug
static int mp_user_removexattr(FsContext *ctx, const char *path, const char *name) { char *buffer; int ret; if (strncmp(name, "user.virtfs.", 12) == 0) { errno = EACCES; return -1; } buffer = rpath(ctx, path); ret = lremo...
1threat
def position_min(list1): min_val = min(list1) min_result = [i for i, j in enumerate(list1) if j == min_val] return min_result
0debug
Espresso Tests in Library Module 'com.android.library' : <p>I have a library module that is used by two android applications and I want to add espresso tests to the Library module so that both apps can run common set of tests. Is there an example available where espresso tests are added in library module?</p>
0debug
I want to print a string multiple time but in a new line : print('python'*5,sep='\n') [][1] [1]: https://i.stack.imgur.com/zB3HT.png how to print it in new line Ex: python python python
0debug
Locatio Based Android Development : In android once we get the current location's latitude and longitude then after how we can able to get the list of my places which are all marked in Google My Maps within the 10kms radius of current location , i.e if my current location latitude and longitudes are 23.00 & 72.50 resp...
0debug
Cannot use import statement outside a module : <p>I'm trying to use classes in pure JavaScript, so I'm facing the error "Uncaught SyntaxError: Cannot use import statement outside a module" and can't solve it.</p> <p>File1.js - Main file</p> <pre><code>import example from "./file2"; var test = new example(); </code><...
0debug
ionic 2 - Remove Border Footer : <p>I have a blue footer like this</p> <pre><code>&lt;ion-footer align="center"&gt; &lt;ion-toolbar&gt; &lt;ion-title&gt; ... </code></pre> <p>But it is showing a shadow style border at the top. How can I remove it. I tried to inspect it but did not find anything.</p>
0debug
static void t_gen_lsl(TCGv d, TCGv a, TCGv b) { TCGv t0, t_31; t0 = tcg_temp_new(TCG_TYPE_TL); t_31 = tcg_const_tl(31); tcg_gen_shl_tl(d, a, b); tcg_gen_sub_tl(t0, t_31, b); tcg_gen_sar_tl(t0, t0, t_31); tcg_gen_and_tl(t0, t0, d); tcg_gen_xor_tl(d, d, t0); tcg_temp_free(t0); tcg_temp_free(t_31)...
1threat
Convert a simple Object to a Complex array : <p>I have been trying to map the following object to the following array, I am quite new to map/sort and reduce. Is it even possible to do acquire the wanted result?</p> <p><strong>From:</strong></p> <pre><code>{ boxer: Array [] brabancon: Array [] briard: Array [] ...
0debug
static inline void RENAME(rgb16to15)(const uint8_t *src, uint8_t *dst, int src_size) { register const uint8_t* s=src; register uint8_t* d=dst; register const uint8_t *end; const uint8_t *mm_end; end = s + src_size; __asm__ volatile(PREFETCH" %0"::"m"(*s)); __asm__ volatile("movq ...
1threat
Difference between Notifications API and Push API from Web perspective : <p>What is the difference between <a href="https://developer.chrome.com/apps/notifications" rel="noreferrer">Chrome Notifications API</a> and the <a href="https://developers.google.com/web/updates/2015/03/push-notifications-on-the-open-web?hl=en" ...
0debug
Python high speed memcpy : <p>I'm trying to do a high speed memcpy in Python. I use the ctypes library which allows me to interact with C programms.</p> <p>I follow this steps:</p> <ol> <li>I get the memory address </li> <li>I get the length of the data</li> <li>I use the ctypes' functions memmove or string_at</li>...
0debug
void unregister_savevm(DeviceState *dev, const char *idstr, void *opaque) { SaveStateEntry *se, *new_se; char id[256] = ""; if (dev && dev->parent_bus && dev->parent_bus->info->get_dev_path) { char *path = dev->parent_bus->info->get_dev_path(dev); if (path) { pstrcpy(id,...
1threat
static int decode_header(SnowContext *s){ int plane_index, tmp; uint8_t kstate[32]; memset(kstate, MID_STATE, sizeof(kstate)); s->keyframe= get_rac(&s->c, kstate); if(s->keyframe || s->always_reset){ reset_contexts(s); s->spatial_decomposition_type= s->qlog= ...
1threat
When to use ? instead of null : <p>Can someone explain the difference between:</p> <pre><code>if(object?.Count &gt; 0){ //code } </code></pre> <p>and: </p> <pre><code>if(object != null &amp;&amp; object.Count &gt; 0){ //code } </code></pre> <p>Or are they doing the same thing? Thank you.</p>
0debug
cursor.execute('SELECT * FROM users WHERE username = ' + user_input)
1threat
void virtio_bus_device_plugged(VirtIODevice *vdev, Error **errp) { DeviceState *qdev = DEVICE(vdev); BusState *qbus = BUS(qdev_get_parent_bus(qdev)); VirtioBusState *bus = VIRTIO_BUS(qbus); VirtioBusClass *klass = VIRTIO_BUS_GET_CLASS(bus); VirtioDeviceClass *vdc = VIRTIO_DEVICE_GET_CLASS(vdev...
1threat
void cpu_x86_inject_mce(Monitor *mon, CPUState *cenv, int bank, uint64_t status, uint64_t mcg_status, uint64_t addr, uint64_t misc, int flags) { unsigned bank_num = cenv->mcg_cap & 0xff; CPUState *env; int flag = 0; if (!cenv->mcg_cap) { ...
1threat
PDF content extractor library for Android : <p>Does anyone know a good Java library (for Android) to extract the text content in a PDF? I have used PDFClown with Java but I cannot use it with Android because Android does not have Java AWT support. Instead it uses android.graphics package. </p> <p>I'm looking for Andro...
0debug
static void filter_mb_edgecv( H264Context *h, uint8_t *pix, int stride, int bS[4], int qp ) { int i, d; const int index_a = clip( qp + h->slice_alpha_c0_offset, 0, 51 ); const int alpha = alpha_table[index_a]; const int beta = beta_table[clip( qp + h->slice_beta_offset, 0, 51 )]; for( i = 0;...
1threat
Online tool to check/validate css : <p>Is this website <a href="https://codebeautify.org/cssvalidate" rel="nofollow noreferrer">code beautify</a> reliable to check my css codes in details or are there other tools?</p>
0debug
Visual studio community problem in unity 3d, asking to upgrade even i am using free version, what to do ? Please help me someone, Thank you : [enter image description here][1] I am using visual studio community 2017 with unity 3d, but after few days i got this issue, what to do ? [1]: https://i.stack.imgur.com/M9...
0debug
Regex to remove Entire String from sentence not substring : <p>I am very new to regular expression. I want to replace string from sentence using regular expression in scala or java.</p> <p>Ex.</p> <blockquote> <p>"I am new to scala and scalapark is differnt"</p> </blockquote> <p>I want to remove "scala" string fro...
0debug
NSFoundationVersionNumber in iOS 11 - How to detect iOS version programmatically : <p>In previous iOS versions I used <code>NSFoundationVersionNumber</code> to detect the iOS version:</p> <pre><code>#define IS_IOS10orHIGHER (floor(NSFoundationVersionNumber) &gt; NSFoundationVersionNumber_iOS_9_x_Max) #define IS_IOS9or...
0debug
How can i Creating Custom Routes in ASP MVC? : I Want to Send a parametr to a Defult Action in a Defult Controller Just Like This: Domain.com/**parametr** **parametr** it's just an id tha i want to sent to an action
0debug
MigrationCapabilityStatusList *qmp_query_migrate_capabilities(Error **errp) { MigrationCapabilityStatusList *head = NULL; MigrationCapabilityStatusList *caps; MigrationState *s = migrate_get_current(); int i; caps = NULL; for (i = 0; i < MIGRATION_CAPABILITY__MAX; i++) { #ifndef CONFI...
1threat
componentWillReceiveProps has been renamed : <p>I'm using Material ui SwipeableViews That use ReactSwipableView package, I'm getting this error on the console</p> <blockquote> <p>react-dom.development.js:12466 Warning: componentWillReceiveProps has been renamed, and is not recommended for use. See for details.</p> ...
0debug
android send data from service to BroadcastReciver : How I can Send data from Service to Broadcast Receiver without using Intent I Know How Intent work but I need another way? `
0debug
How i can print this 2 Variables in the same println "System.out.println" : public class Math1 { public static void main (String args[]) { int abdou1 = 115; double abdou2 = 1122.176876; System.out.println(abdou1, abdou2); } }
0debug
static int local_mkdir(FsContext *fs_ctx, V9fsPath *dir_path, const char *name, FsCred *credp) { char *path; int err = -1; int serrno = 0; V9fsString fullname; char buffer[PATH_MAX]; v9fs_string_init(&fullname); v9fs_string_sprintf(&fullname, "%s/%s", dir_pa...
1threat
static int spapr_set_associativity(void *fdt, sPAPREnvironment *spapr) { int ret = 0, offset; CPUPPCState *env; char cpu_model[32]; int smt = kvmppc_smt_threads(); assert(spapr->cpu_model); for (env = first_cpu; env != NULL; env = env->next_cpu) { uint32_t associativity[] = {...
1threat
What is the benefit of storing data in databases like SQL? : <p>This is very elementary question but why does a framework like Rails use ActiveRecord to run SQL commands to get data from a DB? I heard that you can cached data on the Rails server itself, so why not just store all data on the the server instead of the DB...
0debug
QuerySelectorAll(input[type=select]) not working : <p>I am able to select every other type of element on the page except:</p> <pre><code>var elems = querySelectorAll("input[type=select]"); </code></pre> <p>Once I have them, I am applying <code>.disabled</code> in a loop:</p> <pre><code>for (var i = 0; i &lt; elems.l...
0debug
C# int.TryParse and float.TryParse both parsed negative value and returned true : <p>I am working some basic data types. I need to find user input data types.</p> <p>Whenever I use int.TryParse and float.TryParse both parse negative value and returned true.</p> <p>This is bug? or this is the basic functionality which...
0debug
static inline int tcg_temp_new_internal(TCGType type, int temp_local) { TCGContext *s = &tcg_ctx; TCGTemp *ts; int idx, k; k = type; if (temp_local) k += TCG_TYPE_COUNT; idx = s->first_free_temp[k]; if (idx != -1) { ts = &s->temps[idx]; s->first_free_temp[k]...
1threat
Perfomance comparison with V8 : I'm currently testing multiple cases for parsing lines. Each lines are formatted like that: "dHdX5jOa7ww9cGsW7jQF=dHdX5jOa7ww9cGsW7jQF=dHdX5jOa7ww9cGsW7jQF=dHdX5jOa7ww9cGsW7jQF" There is a lot of lines of course, and i need to extract the **key**, and the **value**. The *...
0debug
Multiple Id's in In clause of SQL Query C# : <p>I want to basically use multiple iD's in In clause of my sql query. Now i have two options one is to get the comma separated ID's from a textbox or i can put a list view or grid view to insert id's there and then get the id's to be used in sql statement. Can you please he...
0debug
How can I create new Tags in DICOM? : I want to add some specifics tags in my java program that are not in the DICOM library. How can I do it?
0debug
void sm501_init(MemoryRegion *address_space_mem, uint32_t base, uint32_t local_mem_bytes, qemu_irq irq, CharDriverState *chr) { SM501State * s; DeviceState *dev; MemoryRegion *sm501_system_config = g_new(MemoryRegion, 1); MemoryRegion *sm501_disp_ctrl = g_new(MemoryRegion, 1); ...
1threat
How can I make use of Error boundaries in functional React components? : <p>I can <a href="https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html" rel="noreferrer">make a class an error boundary</a> in React by implementing <code>componentDidCatch</code>.</p> <p>Is there a clean approach to making a funct...
0debug
Too many arguments error? yes i am a novice coder : I am building a laser that is to be controlled by a joystick. the joystick uses 2 servo motors to move the laser in the direction i want. i am using an arduino board that uses C++ coding. i keep getting a " too many arguments" error on my outputs and i don't know why....
0debug
static uint64_t lsi_io_read(void *opaque, target_phys_addr_t addr, unsigned size) { LSIState *s = opaque; return lsi_reg_readb(s, addr & 0xff); }
1threat
static int png_write_row(PNGContext *s, const uint8_t *data, int size) { int ret; s->zstream.avail_in = size; s->zstream.next_in = (uint8_t *)data; while (s->zstream.avail_in > 0) { ret = deflate(&s->zstream, Z_NO_FLUSH); if (ret != Z_OK) return -1; if (s->...
1threat
What do JSONSerialization options do and how do they change jsonResult? : <p>I am using <code>JSONSerialization</code> quite often in my project. Here is an example of my <code>JSONSerialization</code> code:</p> <pre><code>let json = try JSONSerialization.jsonObject(with: data!, options: []) as? [String: Any] </code>...
0debug
Angular2 TypeScript Directive error TS2345 : <p>When I compile my app with tsc I get this error TS2345:</p> <pre><code>error TS2345: Argument of type '{ selector: string; template: string; directives: (typeof Title | any[])[]; providers: typeof Goo...' is not assignable to parameter of type 'ComponentMetadataType'. <...
0debug
How to use pipes in Angular 5 reactive form input : <p>I am trying to figure out how to use a pipe within a reactive form so that the input is forced into a currency format. I have already created my own pipe for this which I have tested in other areas of the code so I know it works as a simple pipe. My pipe name is ...
0debug
static int nbd_co_receive_reply(NBDClientSession *s, NBDRequest *request, QEMUIOVector *qiov) { int ret; int i = HANDLE_TO_INDEX(s, request->handle); s->requests[i].receiving = true; qemu_coroutine_yield(); s->requests[i...
1threat
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
Android, Impossible to build app due to a google.gson.JsonSyntaxException (Excepted BEGIN_ARRAY but was STRING at line 1 column 1 path $) : I'm developing in Android Studio. Today I made some fix to my app, save all and than start debbugging it on my connected via usb phone. My pc freezed, so I restarted it, reopened A...
0debug
Trouble in using scanner in java : <p>Scanner class doesn't work how I expected.</p> <pre><code>Scanner in = new Scanner(System.in); // input: total String str = in.nextLine(); // total System.out.println(str); // total System.out.println(str == "total"); // false System.out.println(str != "tota...
0debug
How can you create a command to run other applications in Windows Batch? : <p>My goal is to run other programs through the command of one in Windows Batch. <a href="https://i.stack.imgur.com/IdkDW.png" rel="nofollow noreferrer">Here are the files I would like to run through a single command if possible.</a> </p> <p>Ho...
0debug
int qio_dns_resolver_lookup_sync(QIODNSResolver *resolver, SocketAddress *addr, size_t *naddrs, SocketAddress ***addrs, Error **errp) { switch (addr->type) { case SOCKET_ADD...
1threat
Changing source branch for PR on Github : <p>I accidentally created a pull request from the master-branch of my fork of a repo.</p> <p>While trying to rebase it I noticed that all of these changes were pushed into that pull request — due to the fact that you can simply <code>Add more commits by pushing to the master b...
0debug
How do i use separate two integers using dot in java? : <p>I want to make a user to enter integers separated with dot like (11.56.98) to use after that x=11 y=56 z=98</p> <pre><code> `Scanner s = new Scanner(System.in); System.out.print("Enter Your number like (36.52.10): "); int x = s.nextInt(); int y ...
0debug
FTP client in .netcore : <p>Can I download file / list files via FTP protocol using <strong>netcoreapp1.0</strong>?</p> <p>I know, I can use <a href="https://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest(v=vs.110).aspx" rel="noreferrer">FtpWebRequest</a> or <a href="https://www.nuget.org/packages/FluentFTP...
0debug
Unique key generate with digit and letters in php : <p>I need to generate unique key in php. </p> <p>The key must be min 8 digit and 4 letters contain. </p> <p>So any one have idea ?</p> <p>Thanks you</p>
0debug
I want to change the order of a list in C# : I have a list in C# whit 4 items, this list is used to send a response in a web service and i need a specific order for the items, but I'm having a problem, because for any reason the list change the order when I fill it. firs, this is the class of the list using ...
0debug
I get an error running this struct program in c : #include <stdio.h> #include <stdlib.h> struct date { int day; int month; int year; }; struct lottery { int aa; struct date date1; int n1; int n2; int n3; int n4; int n5...
0debug
Create your own method inside onCreate() in android : How do I create a method inside onCreate() method? When I am creating its showing error: Syntax error on token void @ expected And if method can not be created inside onCreate method than please tell me how do I create a method outside the onCreate() and pass ...
0debug
Random True or false using math.random : <p>How to return true or false, only using Math.random(), without creating a new method or using java.util.random?</p>
0debug
Why is the maximal path length allowed for unix-sockets on linux 108? : <p>When creating a unix socket, the path name (<code>man 7 unix</code>) is allowed to be maximally 108 chars long. For a friend this caused a bug in his program because his path was longer. Now we wonder how exactly that number was determined.</p> ...
0debug
Sum of Digits of the Input from user : <p>I want to create a code that will get the sum of all the digits of the input, <em>sample input: 241 sample output: 7</em> But there are restrictions in in making the program, only the basic operations, functions should be used and no string function is to be used in getting the...
0debug
BlockDeviceInfo *bdrv_block_device_info(BlockDriverState *bs) { BlockDeviceInfo *info = g_malloc0(sizeof(*info)); info->file = g_strdup(bs->filename); info->ro = bs->read_only; info->drv = g_strdup(bs->drv->format_name); info->encrypte...
1threat
How to fix OpenCV assertion failed error? : <p>When I try to run the code below in Visual Studio I getting an error message:</p> <p>Unhandled exception at 0x00007FFC976DA839 in TestOpenCV.exe: Microsoft C++ exception: cv::Exception at memory location 0x0000003DAEEFF360.</p> <p>And the command window show this message...
0debug
I felt my code is not exactly right, but I don't know what's wrong : <p>The question is: Simulate a function to roll a dice. Note that a dice turns up with numbers 1, 2, 3, 4, 5 or 6. The function should do the following: you roll the dice twice, and if both the numbers are the same then return ‘You Win’ otherwise retu...
0debug
Recommendations for presenting about 35 fields for data entry : <p>When the user clicks on a node in a treeview, I'd like to present the user with a way to fill-in about 35 fields. Should I use one form, tab control, etc? Thoughts/Recommendations?</p>
0debug
static void draw_mandelbrot(AVFilterContext *ctx, uint32_t *color, int linesize, int64_t pts) { MBContext *mb = ctx->priv; int x,y,i, in_cidx=0, next_cidx=0, tmp_cidx; double scale= mb->start_scale*pow(mb->end_scale/mb->start_scale, pts/mb->end_pts); int use_zyklus=0; fill_from_cache(ctx, NULL...
1threat