problem
stringlengths
26
131k
labels
class label
2 classes
I am new to Unity, how to create an Cloud Recognition Application in unity? : I tried the below link http://library.vuforia.com/articles/Solution/How-To-Implement-Cloud-Recognition-using-the-Native-SDKs As per the unity tutorial for Cloud Recognition is not Showing up the 3D model.
0debug
static void usbredir_iso_packet(void *priv, uint64_t id, struct usb_redir_iso_packet_header *iso_packet, uint8_t *data, int data_len) { USBRedirDevice *dev = priv; uint8_t ep = iso_packet->endpoint; DPRINTF2("iso-in status %d ep %02X len %d id %"PRIu64"\n", iso_packet->status, ...
1threat
How to write Partitions to Postgres using foreachpartition (Pyspark) : I am new to Spark and trying to wite df partitions to Postgres here is my code : **#csv_new is a df with nearly 40 million rows and 6 coloumns** csv_new .foreachPartition(callback)# there are 19204 partitions def callback(iterator): ...
0debug
Exynos4210State *exynos4210_init(MemoryRegion *system_mem, unsigned long ram_size) { int i, n; Exynos4210State *s = g_new(Exynos4210State, 1); qemu_irq gate_irq[EXYNOS4210_NCPUS][EXYNOS4210_IRQ_GATE_NINPUTS]; unsigned long mem_size; DeviceState *dev; SysBusDevice *busdev; ObjectClass...
1threat
MainActivity leaked using leakcanary : <p>I am using Leak Canary to track memory leak and it says the following were leaked: </p> <pre><code>static hk.o references ht.a leaks MainActivity instance </code></pre> <p>what is the <code>hk.o</code> and <code>ht.a</code>? I dont have them in my MainActivity. </p>
0debug
Mixing PHP and HTML , Parse error: syntax error, unexpected end of file : <p>i was check all but i am confused for mixing this code with PHP and HTML , Parse error: syntax error, unexpected end of file</p> <pre><code>&lt;/style&gt; &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false...
0debug
Last html tags in html string in java : I have HTML string and want to get last closing tags. e.g. <h1> <p>some text</p> <p> <ol> <li>item1Text</li> <ol> </p> </h1> I want to insert a button after `item1Text`, thus I need to find last tags in the html string, in this case it is `</li><ol...
0debug
Unity C# NullReferenceException : <p>I know, this question was already answered a lot here, and believe me, I've tried so many ways to fix that problem, but it occurs over and over again.</p> <p>So basically, I'm trying to change e.g. money in my game, from a different script.</p> <p>But as soon as I click the button...
0debug
Extract string after a multiline string using python regex : <p>I have a string</p> <pre><code>a='''S LINC SHORT LEGAL TITLE NUMBER 0038 073 623 1522744;27 182 246 612 +5 LEGAL DESCRIPTION CONDOMINIUM PLAN 1522744 UNIT 27 AND 23...
0debug
static void init_parse_context(OptionParseContext *octx, const OptionGroupDef *groups) { static const OptionGroupDef global_group = { "global" }; const OptionGroupDef *g = groups; int i; memset(octx, 0, sizeof(*octx)); while (g->name) g++; octx...
1threat
How to calculate distance from path? : I have 2 coordinates (A1 and A2), connected by a straight line (my path). How can I calculate the distance of a given coordinate (B1 and B2) 90 degrees from the straight line? [![A1 and A2 connected by straight line][1]][1] [1]: https://i.stack.imgur.com/YKu7q.png
0debug
How to progromatically stop actions segue swift : <p>so I have multiple viewcontrollers in my project, and I perform an action segue from the first to the second when the button called <code>SignIn</code> is called. What I need to do, however, is stop this action segue from being performed, on a condition. For example,...
0debug
What the heck is going on? Chrome is giving "Uncaught SyntaxError: Unexpected token ," : <p>In chrome the following code is giving me an error on some pages, but not others...</p> <pre><code>$.ajax({ url : '/package-assignments/add.json', method : 'POST', data : { event_id : , package_id : ...
0debug
Can anybody tell me why am i getting java.lang.ArrayIndexOutOfBoundsException: 1? : try{ DefaultTableModel tm = (DefaultTableModel) jTable1.getModel(); FileInputStream FI = new FileInputStream("C://Users//Dell-Pc//Documents//NetBeansProjects//MyBookShop//src//Layouts//book_store.txt"); DataI...
0debug
Is there any "serverless" / gobal database hosting? : Iam bulling a litte python + GTK app. I need a way where I can store some index data on a server. Frist I look at RedHat´s OpenShift as the server rest-backend (python + flask + mysql) But now I am thinking is there a way to just put some data into the "cloud...
0debug
trying to get the selected items string out of a materialbetterSpinner but it shows can't resolve symbol getSelectedItem();(Which is for spinner). : MaterialBetterSpinner university; university = (MaterialBetterSpinner) findViewById(R.id.university); and my select code is--- university.setOnItemSelectedL...
0debug
ng generate component in subdirectory : <p>I have the following directory structure</p> <p><a href="https://i.stack.imgur.com/ZmPdu.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZmPdu.png" alt="enter image description here"></a></p> <p>I would like to create a new page, let's say, an About page. I want to...
0debug
My program get crazy : <p>I tried to do a program that random 10000 numbers between 0-6 and check how much times every number get ruffle. It's get crazy and print lot's of things. please help me thanks!</p> <pre><code>#include &lt;stdio.h&gt; #include &lt;stdlib.h&gt; #include &lt;time.h&gt; #define ARR_SIZE 10000 #de...
0debug
char *vnc_display_local_addr(const char *id) { VncDisplay *vs = vnc_display_find(id); SocketAddress *addr; char *ret; Error *err = NULL; assert(vs); addr = qio_channel_socket_get_local_address(vs->lsock, &err); if (!addr) { return NULL; } if (addr->type != SO...
1threat
static void data_plane_set_up_op_blockers(VirtIOBlockDataPlane *s) { assert(!s->blocker); error_setg(&s->blocker, "block device is in use by data plane"); blk_op_block_all(s->conf->conf.blk, s->blocker); blk_op_unblock(s->conf->conf.blk, BLOCK_OP_TYPE_RESIZE, s->blocker); blk_op_unblock(s->con...
1threat
CORS endpoints on asp.net Webforms [WebMethod] endpoints : <p>I am trying to add some <code>[WebMethod]</code> annotated endpoint functions to a Webforms style web app (.aspx and .asmx). </p> <p>I'd like to annotate those endpoints with <code>[EnableCors]</code> and thereby get all the good ajax-preflight functionalit...
0debug
int scsi_bus_legacy_handle_cmdline(SCSIBus *bus) { Location loc; DriveInfo *dinfo; int res = 0, unit; loc_push_none(&loc); for (unit = 0; unit < MAX_SCSI_DEVS; unit++) { dinfo = drive_get(IF_SCSI, bus->busnr, unit); if (dinfo == NULL) { continue; } ...
1threat
Regex exclude &# : <p>How to determine that string doesn't contain both symbols &amp;# together using regular expression ?</p>
0debug
Android studio search results view : <p>I have search and results activities. After submitting a search, webserver is contacted and i will get json array as a result. Each object in that array will contain few info pairs about that result. I've made view design for results but i don't know how to copy and re-use that v...
0debug
static int usb_net_handle_control(USBDevice *dev, int request, int value, int index, int length, uint8_t *data) { USBNetState *s = (USBNetState *) dev; int ret = 0; switch(request) { case DeviceRequest | USB_REQ_GET_STATUS: data[0] = (1 << USB_DEVICE_SELF_POWERED) | ...
1threat
Shortcut key for commenting out lines of Python code in Spyder : <p>I recently changed from the Enthought Canopy Python distribution to Anaconda, which includes the Spyder IDE.</p> <p>In Canopy's code editor, it was possible to comment and uncomment lines of code by pressing the "Cntrl+/" shortcut key sequence. In Spy...
0debug
Can someone explain what this code? : lv.setOnItemLongClickListener(new AdapterView.OnItemLongClickListener() { @Override public boolean onItemLongClick(AdapterView<?> parent, View view, int position,long id) { try {text.delete(position, position); String item = strArr.g...
0debug
void virtio_blk_data_plane_create(VirtIODevice *vdev, VirtIOBlkConf *blk, VirtIOBlockDataPlane **dataplane, Error **errp) { VirtIOBlockDataPlane *s; Error *local_err = NULL; *dataplane = NULL; if (!blk->data_plane) { ...
1threat
void vga_init(VGACommonState *s, Object *obj, MemoryRegion *address_space, MemoryRegion *address_space_io, bool init_vga_ports) { MemoryRegion *vga_io_memory; const MemoryRegionPortio *vga_ports, *vbe_ports; PortioList *vga_port_list = g_new(PortioList, 1); PortioList *vbe_port_list ...
1threat
Please help me with making my array size to get increased, each time there is an input from a user : I am writing data from user's input into a text file in c#, using array. I have tried using array and ArrayList, yet it didn't work. FileStream fs = new FileStream("FirstName.txt", FileMode.Append, FileAccess....
0debug
how to write store procedure in asp.net : [enter image description here][1] > the stored procedure which is there below need to be added in this code where i have written query if (ddlFormat.SelectedIndex != 0) { String strConnString = ConfigurationManager.ConnectionStrings["C...
0debug
Error multiple definition when compiling using headers : <p>I am having a lot of trouble with my header files and the compilation. I have everything linked with header guards but for some reason I am still getting a lot of multiple definition errors. I'm also look for help on better way to organize code. Whatever help ...
0debug
connection.query('SELECT * FROM users WHERE username = ' + input_string)
1threat
static int find_pte64(CPUPPCState *env, struct mmu_ctx_hash64 *ctx, target_ulong eaddr, int h, int rwx, int target_page_bits) { hwaddr pteg_off; target_ulong pte0, pte1; int i, good = -1; int ret; ret = -1; pteg_off = (ctx->hash[h] * HASH_PTEG_SIZE_64) & env->hta...
1threat
documentation for Kaggle API *within* python? : <p>I want to write a <code>python</code> script that downloads a public dataset from Kaggle.com. </p> <p>The Kaggle API is written in python, but almost all of the documentation and resources that I can find are on how to use the API in command line, and very little on ...
0debug
Angular paramMap vs queryParamMap? : <p>What are the different paramMap and queryParamMap?</p> <p>Angular website says paramMap - An Observable that contains a map of the required and optional parameters specific to the route. The map supports retrieving single and multiple values from the same parameter.</p> <p>qu...
0debug
void ioinst_handle_chsc(S390CPU *cpu, uint32_t ipb) { ChscReq *req; ChscResp *res; uint64_t addr; int reg; uint16_t len; uint16_t command; CPUS390XState *env = &cpu->env; uint8_t buf[TARGET_PAGE_SIZE]; trace_ioinst("chsc"); reg = (ipb >> 20) & 0x00f; addr = env-...
1threat
static void v9fs_synth_seekdir(FsContext *ctx, V9fsFidOpenState *fs, off_t off) { V9fsSynthOpenState *synth_open = fs->private; synth_open->offset = off; }
1threat
static void mpeg4_encode_vol_header(MpegEncContext * s, int vo_number, int vol_number) { int vo_ver_id; if(s->max_b_frames || s->quarter_sample){ vo_ver_id= 5; s->vo_type= ADV_SIMPLE_VO_TYPE; }else{ vo_ver_id= 1; s->vo_type= SIMPLE_VO_TYPE; } put_bits(&s...
1threat
static void handle_port_status_write(EHCIState *s, int port, uint32_t val) { uint32_t *portsc = &s->portsc[port]; USBDevice *dev = s->ports[port].dev; *portsc &= ~(val & PORTSC_RWC_MASK); *portsc &= val | ~PORTSC_PED; handle_port_owner_write(s, port, val); val &=...
1threat
How to get text from edit text in android studio : Okay.. I have 2 classes :- 1. Apple.class 2. Banana.class And 2 .XML file:- 1. Ear.xml 2. Nose.xml Now, I want to add a edit text box in apple.class But I want to print that text that user input in banana.class
0debug
figsize in matplotlib is not changing the figure size? : <p>As you can see the code produces a barplot that is not as clear and I want to make the figure larger so the values can be seen better. This doesn't do it. What is the correct way? x is a dataframe and <code>x['user']</code> is the x axis in the plot and <code>...
0debug
static ExitStatus trans_fop_wed_0c(DisasContext *ctx, uint32_t insn, const DisasInsn *di) { unsigned rt = extract32(insn, 0, 5); unsigned ra = extract32(insn, 21, 5); return do_fop_wed(ctx, rt, ra, di->f_wed); }
1threat
static float32 roundAndPackFloat32( flag zSign, int16 zExp, bits32 zSig STATUS_PARAM) { int8 roundingMode; flag roundNearestEven; int8 roundIncrement, roundBits; flag isTiny; roundingMode = STATUS(float_rounding_mode); roundNearestEven = ( roundingMode == float_round_nearest_even ); ...
1threat
static void br(DisasContext *dc, uint32_t code, uint32_t flags) { I_TYPE(instr, code); gen_goto_tb(dc, 0, dc->pc + 4 + (instr.imm16s & -4)); dc->is_jmp = DISAS_TB_JUMP; }
1threat
How to change id value using javascript? : <p><strong>I want to change and revert element id while onclick button.</strong></p> <p><strong>Html</strong> : <code>&lt;p id="tprice"&gt;Price Total: $&lt;span id="order_total"&gt;0&lt;/span&gt;&lt;/p&gt;</code></p> <p>Want to change and revert this id="order_total" to thi...
0debug
Handling oauth2 redirect from electron (or other desktop platforms) : <p>This is mostly a lack of understanding of oauth2 and probably not specific to electron, however I'm trying to wrap my head around how someone would handle an oauth2 redirect url from a desktop platform, like electron?</p> <p>Assuming there is no ...
0debug
Spring Webflux Async PostgreSQL Publisher Stops After First Result : <p>I am trying to replace a PostgreSQL database poller with the reactive asynchronous <a href="https://github.com/alaisi/postgres-async-driver" rel="noreferrer">postgres-async-driver</a> and stream newly inserted rows to a Spring 5 Webflux Reactive we...
0debug
I am getting "Notice: Undefined property: stdClass::$id i in mentioned bold italic line when i call below function : public function userlogin() { $sql = 'select id, username from login_user where email="'.$this->email.'"and password="'.$this->password.'"'; $result = mysqli_query($this->cn,$sql); $numrows = ...
0debug
What is the best way for copy specific Data from an external VM : <p>I have to copy some specific data out from a external VM (eVM) from an other firm i don't work.</p> <p>I have an other VM (aVM) that is analysing data. So the path of the data should be eVM -> My_PC -> aVM. aVM have no access to eVM. But the whole pr...
0debug
how to connect means with line in two way CI plot..? : <p>how to connect means with line in the above two way CI plot..?? for below link example.</p> <p><a href="https://stackoverflow.com/questions/17039886/plot-with-two-y-axes-confidence-intervals">Plot with two Y axes : confidence intervals</a></p>
0debug
static void apic_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { }
1threat
static int virtio_blk_init_pci(PCIDevice *pci_dev) { VirtIOPCIProxy *proxy = DO_UPCAST(VirtIOPCIProxy, pci_dev, pci_dev); VirtIODevice *vdev; if (proxy->class_code != PCI_CLASS_STORAGE_SCSI && proxy->class_code != PCI_CLASS_STORAGE_OTHER) proxy->class_code = PCI_CLASS_STORAGE_SCSI; ...
1threat
static int vdi_open(BlockDriverState *bs, QDict *options, int flags, Error **errp) { BDRVVdiState *s = bs->opaque; VdiHeader header; size_t bmap_size; int ret; logout("\n"); ret = bdrv_read(bs->file, 0, (uint8_t *)&header, 1); if (ret < 0) { goto fai...
1threat
static void info_mice_iter(QObject *data, void *opaque) { QDict *mouse; Monitor *mon = opaque; mouse = qobject_to_qdict(data); monitor_printf(mon, "%c Mouse #%" PRId64 ": %s\n", (qdict_get_bool(mouse, "current") ? '*' : ' '), qdict_get_int(mouse, "index"), qd...
1threat
How can I get A radar chart like this by chart.js : <p><a href="https://i.stack.imgur.com/4AZR3.png" rel="nofollow noreferrer">radar chart</a></p> <p>The y axis is vertical default, How can I rotate the y axis!</p>
0debug
How to return 403 response in JSON format in Laravel 5.2? : <p>I am trying to develop a RESTful API with Laravel 5.2. I am stumbled on how to return failed authorization in JSON format. Currently, it is throwing the 403 page error instead of JSON.</p> <p>Controller: <code>TenantController.php</code></p> <pre><code>cl...
0debug
Notification error: APN invalid token : <p>I stopped receiving the push notifications after the certificate got expired and new certificate has been created. I've updated the p12 certificate on the server.</p> <p>I'm using Pusher application to debug the issue further and I tried importing the p12 certificate with the...
0debug
What kubectl command can I use to get events sorted by specific fields and print only specific details of events? : <p>I need to print only specific fields of Kubernetes Events, sorted by a specific field. </p> <p>This is to help me gather telemetry and analytics about my namespace </p> <p>How could I do that?</p>
0debug
telnet don't works between two vm ine the same virtual network Azure : I have à new account in azure (it's my first time) for test i have two vms with ip adress 10.0.0.4/5 the ping is ok between the two VM but the telnet don't works when i do from vm 1 telnet 10.0.0.5 Trying 10.0.0.5... telnet: Un...
0debug
static void get_sub_picture(CinepakEncContext *s, int x, int y, AVPicture *in, AVPicture *out) { out->data[0] = in->data[0] + x + y * in->linesize[0]; out->linesize[0] = in->linesize[0]; if(s->pix_fmt == AV_PIX_FMT_YUV420P) { out->data[1] = in->data[1] + (x >> 1) + (y >> 1) * in->linesize[1];...
1threat
Developing spring boot application with lower footprint : <p>In an attempt to keep our microservices, developed in spring-boot to run on Cloud Foundry, smaller in footprint, we are looking for best approach to achieve the same.</p> <p>Any inputs or pointers in this direction will be most welcomed.</p> <p>It's surely ...
0debug
Python create xml from xsd : <p>I am new with python and need to implement an interface to an accounting tool. I received some XSD Files which describes the interface. </p> <p>What is the easiest way to generate the XML according to the XSD? Is there any module I can use?</p> <p>Do I have to create the XML all by mys...
0debug
How can i swap between two images on click : How can i swap between two images on click forever ( not once ) using JS or jQeury $("button").click(function(){ $("img").attr("src","The New SRC"); }); This code works but just once
0debug
python None object : <p>could you please explain what do I get in python with this lines? What does this code creates?</p> <pre><code> NP = 2 NB = 2 ND = 2 N = NP*NB*ND M = 2*N + NP*NB res = [[None] * 3] * (M) </code></pre> <p>Thanks in advance!</p>
0debug
Javascript beginner : I Got easy code here and can't get it to work. I just started javascript, please help me! <p id="p"> Test </p> <script> var p_tag = document.getElementById("p"); document.p_tag.innerHTML = "Hey"; </script>
0debug
static inline void clear_float_exceptions(CPUSPARCState *env) { set_float_exception_flags(0, &env->fp_status); }
1threat
How can to make programatically AppStore kind of bar? : I have read a lot of similar answers but I'm still not able to get the white translucent navigation bar in iOS 10 and Objective C? [![AppStore Translucent white nav bar][1]][1] [1]: https://i.stack.imgur.com/0ZX3L.jpg
0debug
void init_vlc_rl(RLTable *rl) { int i, q; init_vlc(&rl->vlc, 9, rl->n + 1, &rl->table_vlc[0][1], 4, 2, &rl->table_vlc[0][0], 4, 2); for(q=0; q<32; q++){ int qmul= q*2; int qadd= (q-1)|1; if(q==0){ qmul=1; ...
1threat
non standard characters cause program to end : I learning python for data mining and I have a text file that contains a list of world cities and their coordinates. In my code, I am trying to find the coordinates of a list of cities. All works well until there is a name with non-standard characters. I was expecting that...
0debug
What is [Cycle Detected] with memory leak? : <p>Visual Studio 2017 Community Edition</p> <p>I am trying to understand/use the Performance Profiler's Memory Usage in what I feel must be a memory leak in my application (MVVM with custom controls). Three snapshots were taken:</p> <ol> <li>Before opening my suspect user ...
0debug
Php Download File Not Working : I have wrote a script which download output of text box. This script works fine on local server, it download the file successfully but when i put script on live server, the download file does not work. When "download output" button is clicked, instead of downloading file the output of p...
0debug
SAML Signing Certificate - Which SSL Certificate Type? : <p>We're currently developing an SSL solution using SAML 2.0, and until now, have been using self signed certificates for signing the XML requests.</p> <p>However, as we move to production, we want to use a certificate from a certificate authority. But I'm not r...
0debug
hollow rectangle with 3 methods : this is my code int width; int height; put("Enter the width of the rectangle: "); width = input.nextInt(); put("Enter the height of the rectangle: "); height = input.nextInt(); ...
0debug
AUXReply aux_request(AUXBus *bus, AUXCommand cmd, uint32_t address, uint8_t len, uint8_t *data) { AUXReply ret = AUX_NACK; I2CBus *i2c_bus = aux_get_i2c_bus(bus); size_t i; bool is_write = false; DPRINTF("request at address 0x%" PRIX32 ", command %u, len %u\n", address...
1threat
Take all input of array at a time : p=5 a=[] for in range(p): a[i]=int(input().split()) I want to give input like 1 2 3 4 5 at these all input take at a time in an array 'a' what do I do?
0debug
JS Extremely new to code and just want to find out why this code is the way it is? : I've only been coding for like 3 days and I've acquired a lot of knowledge on coding in discord.js because i'm currently working on a project that allows me to create a bot using the voice application discord. I've been following some ...
0debug
Pass variable to html template in nodemailer : <p>I want to send email with nodemailer using html template. In that template I need to inject some dynamically some variables and I really can't do that. My code:</p> <pre><code>var nodemailer = require('nodemailer'); var smtpTransport = require('nodemailer-smtp-transpor...
0debug
static void *vring_map(MemoryRegion **mr, hwaddr phys, hwaddr len, bool is_write) { MemoryRegionSection section = memory_region_find(get_system_memory(), phys, len); if (!section.mr || int128_get64(section.size) < len) { goto out; } if (is_write && section.readonl...
1threat
Need suggestion in optimizing the below code : <p>I need some guidance as how can I optimize the below code. As one can see , i am creating a new object everytime to set each value. How can I do it in a better way</p> <pre><code>Balance[] balance = new Balance[3]; CurAmt curAmt = new CurAmt(); Balance bal = new Balanc...
0debug
Can someone help me understand cookies? : I apologize if this belongs outside of stackoverflow but I am at wits-end trying to understand internet cookies. I have read and completed the tutorials at the following sites:[Whatsmyipadress][1],[w3schools][2],[tutorialspoint][3],[how stuff works][4]. From what I understan...
0debug
static int filter_frame(AVFilterLink *inlink, AVFrame *in) { AVFilterContext *ctx = inlink->dst; AVFilterLink *outlink = ctx->outputs[0]; QPContext *s = ctx->priv; AVBufferRef *out_qp_table_buf; AVFrame *out; const int8_t *in_qp_table; int type, stride, ret; if (!s->qp_expr_st...
1threat
Why are preload link not working for JSON requests ? : <p>The JavaScript on my website loads several JSON to initialize itself.</p> <p>I would like to preload them so, when the JavaScript will launch an Ajax request on it, they will be loaded instantaneously.</p> <p>A new <a href="https://w3c.github.io/preload/" rel=...
0debug
AWS S3 Object Expiration Less Than 24 Hours : <p>The built in Object Expiration is 1 day (plus the time to next midnight UTC). Is there a mechanism to do this at a more frequent basis? Given it appears that AWS does this across the board at midnight UTC then it's likely there would need to be another mechanism to del...
0debug
static int net_slirp_init(VLANState *vlan, const char *model, const char *name) { if (!slirp_inited) { slirp_inited = 1; slirp_init(slirp_restrict, slirp_ip); } slirp_vc = qemu_new_vlan_client(vlan, model, name, slirp_receive, NULL, NULL); slir...
1threat
Merging results from model.predict() with original pandas DataFrame? : <p>I am trying to merge the results of a <code>predict</code> method back with the original data in a <code>pandas.DataFrame</code> object.</p> <pre><code>from sklearn.datasets import load_iris from sklearn.cross_validation import train_test_split ...
0debug
C# Calculating Slots hit with AOE in a 4x3 Array : I'm not exactly what terminology to even use to look this up, and I figure the best way to explain it is with an example image. I have a game field made up of 12 (numbered 1-12) slots, 4 wide and 3 deep, I need to be able to take the main slot number hit and get the...
0debug
How to use method created when creating an object? : May I know how can I use/call the age method? Student gg = new Student() { public void age() { System.out.println("9"); }; }
0debug
What is the best way to locally store and quickest way to retrieve app user settings/preferences? : <p>I am new to Xamarin.</p> <p>In my Xamarin Forms app I only want to notify the user with a push notification if a condition is met(even if the app is in the background). The condition is chosen by user when the user r...
0debug
static void stellaris_enet_cleanup(NetClientState *nc) { stellaris_enet_state *s = qemu_get_nic_opaque(nc); s->nic = NULL; }
1threat
bubble sorting problem function not working code running but function not working : function is not working....i mean that array is not sorted it just prints the way i insert integers! #include <iostream> using namespace std; main() { int n; cout << "Enter size of arr...
0debug
mongoDB query for count : I have a mongoDB question on count. I want to count the number of fields with the name 'appId' by month day year. I know in SQL you could do this by "SELECT COUNT(appID) FROM stats GROUP BY YEAR(record_date), MONTH(record_date)" How does that translate to mongodb? ...
0debug
get_field (const unsigned char *data, enum floatformat_byteorders order, unsigned int total_len, unsigned int start, unsigned int len) { unsigned long result; unsigned int cur_byte; int cur_bitshift; cur_byte = (start + len) / FLOATFORMAT_CHAR_BIT; if (order == floatformat_little) ...
1threat
void check_file_unfixed_eof_mmaps(void) { char *cp; unsigned int *p1; uintptr_t p; int i; fprintf (stderr, "%s", __func__); for (i = 0; i < 0x10; i++) { p1 = mmap(NULL, pagesize, PROT_READ, MAP_PRIVATE, test_fd, (test_fsize - sizeof *p1) & ~pagemask); fail_unless (p1 != MAP...
1threat
static void test_io_channel_tls(const void *opaque) { struct QIOChannelTLSTestData *data = (struct QIOChannelTLSTestData *)opaque; QCryptoTLSCreds *clientCreds; QCryptoTLSCreds *serverCreds; QIOChannelTLS *clientChanTLS; QIOChannelTLS *serverChanTLS; QIOChannelSocket *clientChanS...
1threat
static int mkv_write_packet_internal(AVFormatContext *s, AVPacket *pkt, int add_cue) { MatroskaMuxContext *mkv = s->priv_data; AVIOContext *pb = s->pb; AVCodecParameters *par = s->streams[pkt->stream_index]->codecpar; int keyframe = !!(pkt->flags & AV_PKT_FLAG_KEY); int dur...
1threat
How to Grab stdClass Object Result : <p>can i ask ? . I have class cURL POST into a website ( API Integration ) , and if i post with class. The result is (i use print_r) :</p> <pre><code>stdClass Object ( [order] =&gt; 200029 ) 1 </code></pre> <p>How to grab [order] value?</p>
0debug
void mips_r4k_init(MachineState *machine) { ram_addr_t ram_size = machine->ram_size; const char *cpu_model = machine->cpu_model; const char *kernel_filename = machine->kernel_filename; const char *kernel_cmdline = machine->kernel_cmdline; const char *initrd_filename = machine->initrd_filename;...
1threat
alert('Hello ' + user_input);
1threat
cursor.execute('SELECT * FROM users WHERE username = ' + user_input)
1threat