problem
stringlengths
26
131k
labels
class label
2 classes
mkdir immediatly after rmdir gives me access denied : <p>I have a folder (let's call it <code>F</code>). </p> <p>I wrote a batch file that does</p> <pre><code>rmdir F /S /Q mkdir F </code></pre> <p>When I call the mkdir <code>F</code>, it gives me access denied, probably because the system may be still deleting <cod...
0debug
static int h264_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; H264Context *h = avctx->priv_data; AVFrame *pict = data; int buf_index = 0; H2...
1threat
Removing rows from a table if they have an email record from another table : <p>I have 2 tables, one with customers, containing their name, email, company, etc. I have another table that just contains the emails of the customers that need to be removed. I need to develop a query to delete all rows from the first table ...
0debug
static int qemu_gluster_parse_uri(BlockdevOptionsGluster *gconf, const char *filename) { SocketAddress *gsconf; URI *uri; QueryParams *qp = NULL; bool is_unix = false; int ret = 0; uri = uri_parse(filename); if (!uri) { return -EINVAL; ...
1threat
How to make selected tab in QTabBar to look same when hovered and not hovered : <p>I would like to make active tab (only) to look same when it is hovered and not. <br> Inactive(unselected) tabs should respond on hover as usual.</p>
0debug
PHP/MySQL: Count number of available tables : <p>I have a database $db_name that contains a slew of tables. Many of them contain the name 'puzzle' (for example: 'puzzle1', 'puzzle2', 'puzzle3', etc.). What command do I need to perform to count all of those tables and return an integer?</p>
0debug
Can you disable fullscreen editing in landscape in React Native Android? : <p>In an <code>EditText</code> Android element you can prevent the "fullscreen editing mode" from activating in landscape with <code>android:imeOptions="flagNoExtractUi"</code> (as detailed <a href="https://developer.android.com/guide/topics/ui/...
0debug
static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) { SWFContext *swf = 0; ByteIOContext *pb = &s->pb; int nbits, len, frame_rate, tag, v; offset_t firstTagOff; AVStream *ast = 0; AVStream *vst = 0; swf = av_malloc(sizeof(SWFContext)); if (!swf) ret...
1threat
Testing a gRPC service : <p>I'd like to test a gRPC service written in Go. The example I'm using is the Hello World server example from the <a href="https://github.com/grpc/grpc-go/blob/master/examples/helloworld/greeter_server/main.go" rel="noreferrer">grpc-go repo</a>.</p> <p>The protobuf definition is as follows:</...
0debug
How to enable a virtualenv in a systemd service unit? : <p>I want to "activate" a virtualenv in a systemd service file.</p> <p>I would like avoid to have a shell process between the systemd process and the python interpreter.</p> <p>My current solution looks like this:</p> <pre><code>[Unit] Description=fooservice Af...
0debug
static int aio_read_f(int argc, char **argv) { int nr_iov, c; struct aio_ctx *ctx = calloc(1, sizeof(struct aio_ctx)); while ((c = getopt(argc, argv, "CP:qv")) != EOF) { switch (c) { case 'C': ctx->Cflag = 1; break; case 'P': ctx->Pflag...
1threat
static int pcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { int n, c, sample_size, v, ret; const short *samples; unsigned char *dst; const uint8_t *samples_uint8_t; const int16_t *samples_int16_t; const int3...
1threat
static void iscsi_nop_timed_event(void *opaque) { IscsiLun *iscsilun = opaque; aio_context_acquire(iscsilun->aio_context); if (iscsi_get_nops_in_flight(iscsilun->iscsi) >= MAX_NOP_FAILURES) { error_report("iSCSI: NOP timeout. Reconnecting..."); iscsilun->request_timed_out = true; ...
1threat
How to export an Angular Material Table into a pdf as well as csv, which should be downloaded on click of a button : <p>I am using Angular Material Table, to show data, which i am getting from an API call. The question now is, how can I export the Mat-Table data into a PDF and a CSV on click of a button, any Angular Mo...
0debug
static void unterminated_sq_string(void) { QObject *obj = qobject_from_json("'abc", NULL); g_assert(obj == NULL); }
1threat
terminating applicaton through python script : I was using Python (Popen and subprocess modules) to open applications and automate some stuff. But, I do not know how to close using one line command/script. It should not take more than one line. e.g. I am using >>>import subprocess >>>subprocess.Popen(['c:\\win...
0debug
Not able to spy the menu item for web application : I want to spy on the menu items in blue prism for the web application but i am not able to do? when i tried to spy on the application i am getting error as "Error - Highlighting results - No elements match the supplied query terms" and i am trying to spy as norm...
0debug
const char *memory_region_name(const MemoryRegion *mr) { return object_get_canonical_path_component(OBJECT(mr)); }
1threat
Php Script to distrubate person working in a week : I made this Script to distrubate person working in a week but No one can work more than one time in a day and also must work 6 days/week But steel some problems cause some people work just 4 days some work more ... I tried doing it this way : <?php $i...
0debug
static int check_video_codec_tag(int codec_tag) { if (codec_tag <= 0 || codec_tag > 15) { return AVERROR(ENOSYS); } else return 0; }
1threat
Must constexpr expressions be captured by a lambda in C++? : <p>Here is a piece of code that won't compile in MSVC 2015 (ignore the uninitialized value access):</p> <pre><code>#include &lt;array&gt; int main() { constexpr int x = 5; auto func = []() { std::array&lt;int, x&gt; arr; return arr[0]...
0debug
How to show content of a mysql table when the id is passed from one page to another? : I have a Table named table1 in Database named db1. Then, I have a fields named id, title & content in table1. When i Clicked submit button in the page 'add.php' The data in add.php page will be added to 'Title' & 'content' fields. ...
0debug
static void gif_put_bits_rev(PutBitContext *s, int n, unsigned int value) { unsigned int bit_buf; int bit_cnt; assert(n == 32 || value < (1U << n)); bit_buf = s->bit_buf; bit_cnt = 32 - s->bit_left; if (n < (32-bit_cnt)) { bit_buf |= value << (bit_cnt); ...
1threat
POST request with data in body with Alamofire 4 : <p>how is it possible to send a POST request with a data in the HTTP body with Alamofire 4? I used custom encoding at swift 2.3 it was working good. I converted my code swift 3 and I tried to paramater encoding but not working. This code :</p> <pre><code>public struct ...
0debug
Taking input again if not valid input : <p>I want to program it like that so while taking input of num1,num2 and operation if user doesn't give input in appropriate type it ask the user again for input.</p> <pre><code>operation=(input('1.add\n2.subtract\n3.multiply\n4.divide')) num1 =int(input("Enter first number: "))...
0debug
Can Android Studio use OpenJDK or does it require Oracle JDK on Linux? : <p>Can Android Studio use OpenJDK 1.8 or does it require Oracle JDK on Linux? It would be easier to use OpenJDK because it comes installed on Fedora.</p> <p>I'm running 64 bit Fedora-23 linux with Android Studio 1.5.1.build AI-141.2456560 on an ...
0debug
void ff_id3v2_read_dict(AVIOContext *pb, AVDictionary **metadata, const char *magic, ID3v2ExtraMeta **extra_meta) { id3v2_read_internal(pb, metadata, NULL, magic, extra_meta); }
1threat
Parse error: syntax error, unexpected '!' : <p>i am getting following error while running the code<br> any help</p> <pre><code>if(!$subcurpass){ $form-&gt;setError($field, "* Current Password not entered"); } else{ $subcurpass = stripslashes($subcurpass); if(strlen($subcurpass) &lt; 4...
0debug
how to connect to database in C# using SqlConnection Object : How can I connect to a remote or local database using simple SqlConnection Object. I learned to do it this way: but my connection is failing. I read about creation of connection string from this page: https://msdn.microsoft.com/en-us/library/system.data.s...
0debug
How can I replace only plus sign (multiple occurrence) from a string without any text : <p>How can I replace multiple (++++++) signs with blank space?</p> <p>Example: <code>var string = "+++++++++++++++++";</code></p>
0debug
Sizing elements to percentage of screen width/height : <p>Is there a simple (non-LayoutBuilder) way to size an element relative to screen size (width/height)? For example: how do I set the width of a CardView to be 65% of the screen width.</p> <p>It can't be done inside the <code>build</code> method (obviously) so it ...
0debug
def parabola_directrix(a, b, c): directrix=((int)(c - ((b * b) + 1) * 4 * a )) return directrix
0debug
Permission denied inside Docker container : <p>I have a started container <code>gigantic_booth</code> and I want to create the directory <code>/etc/test</code>:</p> <pre><code># docker exec -it gigantic_booth /bin/bash $ mkdir /etc/test $ mkdir: cannot create directory '/etc/test': Permission denied </code></pre> <p>...
0debug
What's Git.exe and do I need? (Newbie) : <p>I just installed Visual Studio Code. It gave a popup saying git.exe was missing.</p> <p>Do I need? What's it for? What am I missing if I don't get?</p> <p>Thanks.</p>
0debug
static void block_set_params(const MigrationParams *params, void *opaque) { block_mig_state.blk_enable = params->blk; block_mig_state.shared_base = params->shared; block_mig_state.blk_enable |= params->shared; }
1threat
I am finding it hard to understand inheritance in C# : <p>Am wondering of this case: Employee inherits from Person and Manager inherits from Employee, which statement will be correct?</p> <pre><code>Person alice = new Employee(); Employee bob = new Person(); Manager cindy = new Employee(); Manager dan = (Manager)(new ...
0debug
Hey guys, can you help me and tell me how am i using wrongly the void expression? : I'm newbie in C and wanted to create a function that receives one integer n and one array V, and check if my array contains the values of 1 to n. This is my actual code: #include <stdio.h> void checkArray(int n, int* V); voi...
0debug
how to solve this json error : iam new in json i dont know how to stringify the the data . below i write a code for alert the content but some error is shown how i solve that error <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> $('.savebutton').on('click', fun...
0debug
Dagger 2 - two provides method that provide same interface : <p>lets say I have:</p> <pre><code>public interface Shape {} public class Rectangle implements Shape { } public class Circle implements Shape { } </code></pre> <p>and I have a <strong>ApplicationModule</strong> which needs to provides instances for bo...
0debug
How can a move a sprite using the keyboard with pygame,livewires? : Hello: I have tried multiple different ways to make this work. I am making a remake of a video game to learn pygame and livewires. I am using livewires because it seems to be a good way to have the background graphics loaded with a sprite. I am tr...
0debug
Python program that rolls a fair die and counts the number of rolls before a 6 shows up : import random sample_size = int(input("Enter the number of times you want me to roll the die: ")) if (sample_size <=0): print("Please enter a positive number!") else: counter1 = 0 counter2 = 0 fi...
0debug
Is it possible to replace the %d : <pre><code>int main() { int M1[5][5], M2[10][3]; int i, j, k = 1, m, n; int x, y, z, l = 0; cout &lt;&lt; "Enter number of row "; cin &gt;&gt; m; cout &lt;&lt; "Enter number of columns"; cin &gt;&gt; n; printf("\nEnter the elements of the matrix :\n"); ...
0debug
Why my ping dont let me see the IP? maybe because im in job network? : <p>[CMD][<a href="https://i.stack.imgur.com/g8Mut.png]" rel="nofollow noreferrer">https://i.stack.imgur.com/g8Mut.png]</a></p> <p>I saw on youtube the others guys doesnt have it</p>
0debug
static void balloon_stats_get_all(Object *obj, Visitor *v, const char *name, void *opaque, Error **errp) { Error *err = NULL; VirtIOBalloon *s = opaque; int i; visit_start_struct(v, name, NULL, 0, &err); if (err) { goto out; } visit_type_...
1threat
static void net_tx_pkt_do_sw_csum(struct NetTxPkt *pkt) { struct iovec *iov = &pkt->vec[NET_TX_PKT_L2HDR_FRAG]; uint32_t csum_cntr; uint16_t csum = 0; uint32_t cso; uint32_t iov_len = pkt->payload_frags + NET_TX_PKT_PL_START_FRAG - 1; uint16_t csl; struct ip_header *iphdr; ...
1threat
How to make a loop to count rows in datagridView c# : Hello guys I have a datagridView and DataTable. How to make a loop that add rows if it's not equal to 79rows? if it's equal to 79rows it will stop. Thankyou!
0debug
best tools for theme design? : <p>i am looking for bests and usable tools for creating wordpress themes.. and i Astounding in this process i want something like jQuery to do many things easily like fade, slide, selecting ... effects. id don't like to use frameworks that help to create faster like bootstrap or etc just...
0debug
C++ socket error C1083: Cannot open include file: 'unistd.h': No such file or directory : <p>I'm following this tutorial <strong><a href="https://www.geeksforgeeks.org/socket-programming-cc/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/socket-programming-cc/</a></strong>. I'm trying to practice Socket Progr...
0debug
#c++ Copy constructors and Destructors;Copy constructors and Destructors : I am learning constructors and Destructors in c++; Help me grasp my mistakes even if they are silly... HERE is a code I have written to perform addition using classes in c++; This creates two summands of _datatype_ num and employs the constru...
0debug
Please can someone help me training Random Forest regressor Model with Pyspark : I am working on a sentiment analysis project using data extracted in a json format extracted from stocktwits every tweet is assigned to a sentiment score wich is a float number between 0 and 1 .I want to train Random Forest using the pysp...
0debug
how make simpler expresion for showing multiple recyclerview in one activty : i try to make multiple recyclerview divided by textview in each recyclerview, thi code work for me but i want to make code simpler than before can anyone help me? here is my activity java public View onCreateView(LayoutInflater ...
0debug
av_cold static int auto_matrix(SwrContext *s) { int i, j, out_i; double matrix[64][64]={{0}}; int64_t unaccounted, in_ch_layout, out_ch_layout; double maxcoef=0; char buf[128]; const int matrix_encoding = s->matrix_encoding; float maxval; in_ch_layout = clean_layout(s, s->in_c...
1threat
F# .NET Framework Console application template missing : <p>I'm having trouble creating <code>F# Console App</code> using <code>.Net Framework</code> (<strong>not .Net Core</strong>). When I open: </p> <p><code>Visual Studio 2017 -&gt; New project -&gt; Visual F# -&gt; .Net Standard</code> </p> <p>the only template...
0debug
R.java file is not generated : <p>I'm new to Android development. I listen Eclipse is better for beginners. So i downloaded and installed in my laptop, Setup also successfully done. My problem is that errors while run the project because R.java file is not generated. Please help me.</p>
0debug
JavaScript code not working with "toLowerCase" on equating it with value received from prompt : <pre><code>let browser = prompt('Enter browser name','Enter here..'); if (browser.toLowerCase=='edge') { alert('You got the Edge!'); } else if (browser.toLowerCase=='chrome' || browser.toLowerCase=='firefox' || browser....
0debug
Setter not working for boolean but work fine in string C# : <p><a href="https://i.stack.imgur.com/K5yV3.png" rel="nofollow noreferrer">Error description</a></p> <p>I don't know why setter is not working for bool variable but working fine with string variable. Is bool requires special setter for it?</p>
0debug
apt-get update' returned a non-zero code: 100 : <p>I am trying to create a docker image from my docker file which has following contains</p> <pre><code>FROM ubuntu:14.04.4 RUN echo 'deb http://private-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.4.2.0 HDP main' &gt;&gt; /etc/apt/sources.list.d/HDP.list RUN echo '...
0debug
dynamically How to convert rows to columns in sql server : I want to convert rows to columns dynamically, for sample data I have given below query. create table testtable( tableid int primary key identity(1,1), tableDatetime datetime, names varchar(50), tablevalue decimal(18,9) ) go insert into te...
0debug
int ff_hevc_decode_short_term_rps(HEVCContext *s, ShortTermRPS *rps, const HEVCSPS *sps, int is_slice_header) { HEVCLocalContext *lc = s->HEVClc; uint8_t rps_predict = 0; int delta_poc; int k0 = 0; int k1 = 0; int k = 0; int i; GetBitContext...
1threat
Cannot execute code after the loop in c++ : <p>I'm facing a problem in c++ that I don't understand.</p> <p>this is my code:</p> <pre><code>auto DataArray = jvalue.at(U("data")).as_array(); std::cout &lt;&lt; "Outside the loop, first output" &lt;&lt; std::endl; for (int i = 0; i &lt;= 10; i++) { auto data = DataA...
0debug
Creating a regular polygon grid over a spatial extent, rotated by a given angle : <p> Hi all,</p> <p>I am struggling with this and hope someone could come out with a simple solution.</p> <p>My objective is to create a regular polygon grid over the extent of a polygon, but <strong>rotated by a user-defined angle</stro...
0debug
static unsigned int dec_move_rp(DisasContext *dc) { TCGv t[2]; DIS(fprintf (logfile, "move $r%u, $p%u\n", dc->op1, dc->op2)); cris_cc_mask(dc, 0); t[0] = tcg_temp_new(TCG_TYPE_TL); if (dc->op2 == PR_CCS) { cris_evaluate_flags(dc); t_gen_mov_TN_reg(t[0], dc->op1); if (dc->tb_flags & U_FLAG) { t...
1threat
static void spitz_common_init(MachineState *machine, enum spitz_model_e model, int arm_id) { PXA2xxState *mpu; DeviceState *scp0, *scp1 = NULL; MemoryRegion *address_space_mem = get_system_memory(); MemoryRegion *rom = g_new(MemoryRegion, 1); const char *cpu_mode...
1threat
SQL Remove substring results from result set : [Pls help with the query][1] Pls help with the T-sql query [1]: https://i.stack.imgur.com/pBKAX.jpg
0debug
SimpleDateFormat is giving wrong Date : <p><strong>I am inputting a specific date (dd/MM/yyyy) , while displaying it the Output is something else.</strong></p> <pre><code>import java.text.*; import java.io.*; import java.util.*; class InvalidUsernameException extends Exception //Class InvalidUsernameException { ...
0debug
static void write_long(unsigned char *p,uint32_t v) { p[0] = v>>24; p[1] = v>>16; p[2] = v>>8; p[3] = v; }
1threat
How to group array of objects by value : <p>I'm making a data set for one of my components, current data is</p> <pre><code> [ {name : "John" , id : "123"} , {name : "Josh" , id : "1234"}, {name : "Charlie" , id : "1234253"}, {name : "Charles" , id : "123345"} ] </code></pre>...
0debug
Squash and merge master into same branch : <p>Is there a way to squash and merge master into the same branch? Effectively taking all the pending commits and putting them into 1 commit?</p> <p>My original idea is a script that takes <code>my-branch</code> and does a <code>git checkout master &amp;&amp; git pull &amp;&a...
0debug
cant compile matrix multiplication ( C ) : Hey i got this error and i tried like 10 solutions and either works. I want to load 2 matrix, each one from its own txt file then to multiply them. I cant compile casue of LNK1120 and LNK2019 errors. Here is my code: int main(int argc, char *argv[]) { ...
0debug
what are inheritAttrs:false and $attrs used for in vue? : <p>As the question suggests, I can't figure out their meaning and why I should use it. It's said that it can be used so that when we have many components and we want to pass data from parent to the child's child's child's component, we don't have to use props. I...
0debug
how to add days using Date without using Calender : so i made a class called XDate which extends java.util.Date but do things little different, for example getMonth return a value from 1-12 and not 0-11, now , i want to make a function called addDays(int a), wich bassicly uses the current date (the date can be edited ...
0debug
static void qxl_log_image(PCIQXLDevice *qxl, QXLPHYSICAL addr, int group_id) { QXLImage *image; QXLImageDescriptor *desc; image = qxl_phys2virt(qxl, addr, group_id); desc = &image->descriptor; fprintf(stderr, " (id %" PRIx64 " type %d flags %d width %d height %d", desc->id, desc...
1threat
Cant make listview it said array null on android studio : i want to display contacts that i get from api using listview. but when i want to run it, it forced close. when i try to look the log that i made, the usernamefriendprofile array is null outside the response. otherwise,the usernamefriendprofile array had a value...
0debug
Android Studio: Load a File into an Array : <p>I have made a class that can save an array to file, yet, I need it to load the file back into an array inside of an Activity named SampleGridViewAdapter.</p> <p>Text file format named gallerydump_img.txt:</p> <pre><code>https://mywebsite.com/path/samplefile.rtf https://a...
0debug
static int parse_section_header(GetByteContext *gbc, int *section_size, enum HapSectionType *section_type) { if (bytestream2_get_bytes_left(gbc) < 4) return AVERROR_INVALIDDATA; *section_size = bytestream2_get_le24(gbc); *section_type = bytestream2_get_byte(gb...
1threat
static int v9fs_synth_chown(FsContext *fs_ctx, V9fsPath *path, FsCred *credp) { errno = EPERM; return -1; }
1threat
New to C++ and I'm having trouble calling my function : <pre><code>#include &lt;iostream&gt; #include &lt;math.h&gt; using namespace std; int Square(int num, int&amp; Answer); int Triangle(int num); int main(int argc, char **argv) { int num = -1; int Answer; //Prompts the user for the length of the sides a...
0debug
static uint32_t msix_mmio_readl(void *opaque, target_phys_addr_t addr) { PCIDevice *dev = opaque; unsigned int offset = addr & (MSIX_PAGE_SIZE - 1); void *page = dev->msix_table_page; uint32_t val = 0; memcpy(&val, (void *)((char *)page + offset), 4); return val; }
1threat
db.execute('SELECT * FROM products WHERE product_id = ' + product_input)
1threat
I need help create a function please look at details i have asked : I need a function created (EscapeAmpersand). The function should take 1 varchar(255) parameter. It should return a varchar(255) parameter. The purpose of the function is to take the input, replace ‘&’ with ‘&amp;’ and return the results. Examples: ...
0debug
Rendering a string as React component : <p>I want to render the react components with a string as the input which i am receiving dynamically from another page. BUt i will have the references for the react components. Here is the example</p> <pre><code>Page1: ----------------------------- loadPage('&lt;div&gt;&lt;Heade...
0debug
static int flac_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, const AVFrame *frame, int *got_packet_ptr) { FlacEncodeContext *s; const int16_t *samples; int frame_bytes, out_bytes, ret; s = avctx->priv_data; if (!frame) { s->max_framesize...
1threat
How to compare a two files line by line and then word by word. Also we need to highlight the mismatched words in output : <p>How to compare a two files line by line and then word by word. Also we need to highlight the mismatched words in output.</p> <p>I need to write this in Java and create a HTML file.</p>
0debug
What is the difference between (++c) & (c++)? : <p>What is the difference between (++c) and (c++)?</p> <p>Lets say c = 4</p> <p>I know that for (++c) you would increment increment 4 by 1 so 5, but for (c++)?</p>
0debug
JAVASCRIPT ,html : $('#menuToggle, .menu-close').on('click', function(){ $('#menuToggle').toggleClass('active'); $('body').toggleClass('body-push-toleft'); $('#theMenu').toggleClass('menu-open'); $('#menuToggle').find($(".fa")).toggleClass('fa-rotate-180'); $("body").toggleClass...
0debug
static void apply_window_and_mdct(AACEncContext *s, SingleChannelElement *sce, float *audio) { int i; float *output = sce->ret_buf; apply_window[sce->ics.window_sequence[0]](s->fdsp, sce, audio); if (sce->ics.window_sequence[0] != EIGHT_SHORT_SEQUENCE) ...
1threat
Need assist with my loop with a c++ dice program : how do I continue to keep the player rolling the dice till they roll the correct number or lose? Here are the directions. For this assignment, write a program that will simulate a single game of Craps. Craps is a game of chance where a player (the shooter) wi...
0debug
struct omap_sdrc_s *omap_sdrc_init(MemoryRegion *sysmem, hwaddr base) { struct omap_sdrc_s *s = (struct omap_sdrc_s *) g_malloc0(sizeof(struct omap_sdrc_s)); omap_sdrc_reset(s); memory_region_init_io(&s->iomem, NULL, &omap_sdrc_ops, s, "omap.sdrc", 0x...
1threat
CSS table td color : <p>Am using this in Wordpress Tablepress plugin.</p> <p>I have these codes to highlight the table rows. Is there anyway I can merge them into single row to reduce the repeated codes?</p> <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false"> <div class="...
0debug
I want to use stdin in a pytest test : <p>The PyTest documentation states that stdin is redirected to null as no-one will want to do interactive testing in a batch test context. This is true, but interactive is not the only use of stdin. I want to test code that uses stdin just as it would use any other file. I am happ...
0debug
static uint64_t omap_mpu_timer_read(void *opaque, target_phys_addr_t addr, unsigned size) { struct omap_mpu_timer_s *s = (struct omap_mpu_timer_s *) opaque; if (size != 4) { return omap_badwidth_read32(opaque, addr); } switch (addr) { case 0x00...
1threat
Get number of comments within a forum : <p>I have 3 tables:</p> <p>forums, threads, comments</p> <p>I would like to write a query to get the number of comments within a forum.</p> <p>Every row in threads has a column "fid" which shows which forum the thread was posted in.</p> <p>Every row in comments has a column "...
0debug
Why do Node modules go into .staging folder? : <p>I have an Electron app that I'm trying to install node modules for. When I run <code>npm install</code>, it creates the <code>node_modules</code> folder but all the modules go into a subfolder called <code>.staging</code>. Each module also has <code>-xxxxx</code> append...
0debug
Converting and integer to a list in python : Is there anyway to convert a string of integers into a list e.g. `1234` to `['1','2','3','4','5']`
0debug
Can't find an RSA key at my Amazon EC2 instance : <p>I have an Ubuntu instance on Amazon EC2. I can login to it via ssh. Also I have:</p> <pre><code>$ ls ~/.ssh/ authorized_keys </code></pre> <p>However, the rsa key itself doesn't exist. Where can I find it? So I'll be able to add it on my github account and pull a r...
0debug
Saving a certain motion in ios and comparing other motion to it : I want to know if this is possible in ios or no. I want to a calibrate a motion. For example If some one moves the iphone vertically from one point to another, I want the iphone to save that motion and if someone repeats the same motion the phone would b...
0debug
PHP to check if certain value exist in csv : I've a field in my database which has csv values, if I get the value in a variable it looks like > ` $data = "dell, dell7, jhon5, doe4"; ` //these are user id's I need to check if a certain id is already in this variable. I used `explode()` with `foreach()` and it worked...
0debug
how can i display data from sql database to a textbox : I am currently searching, how can I put or display data from my database through a textbox that will be used to submit to a different table later on. $query=mysql_query("select * from subjects_main where Course='$c' && YearLevel='$d'"); if(!$query) ...
0debug
How to create instances of same java class running in same process? : I am learning Java Process and I am trying to create two instances of same java class running in same process which is a requirement. Class Chat { public void getMessage() { *** some implementation } } class ProcessMain { public sta...
0debug
Golang doc func parameters : <p>Reading the godoc <a href="https://blog.golang.org/godoc-documenting-go-code" rel="noreferrer">doc</a>. It does not specify how function parameters documented.</p> <p>What is the reason for omitting this?</p>
0debug