problem stringlengths 26 131k | labels class label 2
classes |
|---|---|
How to count the number of rows in condition? : <p>I want to count the number of rows of a selected result.</p>
<p>E.g., SELECT * FROM TABLE1 WHERE [the number of rows of a (SELECT QUERY)] = 1;</p>
| 0debug |
could not resolve recyclerview-v7 : I am working on Android since 2 years. I never faced issue like this.
After updating Android Studio and `com.android.tools.build:gradle:3.1.3`, i am facing this issue.
**Issue:** **`Could not resolve RecyclerView-v7`**
This is a silly issue which make me stuck for 1 hour. Thi... | 0debug |
How would I go about having a chat update after loading? : <p>I've tried searching on here for a bit to try and find someone with a similar question. I haven't quite yet gotten into implementing the actual retrieval and insertion into the database for the chat messages but I would like to know ahead of time what I'll n... | 0debug |
Angular 2 with CLI - build for production : <p>I have freshly installed angular-cli 1.0.0.beta.17 (latest one), start new project, able to serve project on port 4200 with no problems - just standard "app works!" message.</p>
<p>However when I try to build for production this empty and generic application by using comm... | 0debug |
how i can start with this problem and fix my code? : the question : write a program that gets a list of numbers ( lets say 4 numbers ) and an extra number and checks if the extra number equals to the multiplying of two numbers from the list , if yes return true else return false , for example a number list is ( 2,4,8,1... | 0debug |
Return a varchar from database using dapper : <p>I need to retrieve a single word/varchar from the database ( it can be an empty string or a null value sometimes ).
I'm using dapper and I can't retrieve anything at all. The many tutorials and questions on the Web refer only to retrieve an <strong>Integer</strong> value... | 0debug |
static void bitband_writew(void *opaque, target_phys_addr_t offset,
uint32_t value)
{
uint32_t addr;
uint16_t mask;
uint16_t v;
addr = bitband_addr(opaque, offset) & ~1;
mask = (1 << ((offset >> 2) & 15));
mask = tswap16(mask);
cpu_physical_memory_read(add... | 1threat |
int register_savevm_live(const char *idstr,
int instance_id,
int version_id,
SaveLiveStateHandler *save_live_state,
SaveStateHandler *save_state,
LoadStateHandler *load_state,
... | 1threat |
Parent element selector using pure CSS : <p>What is the way of getting parent element using pure CSS. Am using VS 2013, So it must be css3. I have seen in google about has() and < selectors. Unfortunately they do not work. </p>
| 0debug |
Best way to achieve custom ui layout in Visual Studio (c#) : <p>I have a simple layout <a href="https://i.stack.imgur.com/c76CQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c76CQ.png" alt="enter image description here"></a></p>
<p>What would the best way to achieve this? using WPF or Win forms wi... | 0debug |
How to clear Flutter's Build cache? : <p>There seems to be a problem with flutter's build.</p>
<p>I always need to perform <strong>RUN</strong> > <strong>Flutter Full Restart</strong> everytime I run the app to an emulator or device.</p>
<p>Otherwise, the app loads a scaffold body which my code had from 2 weeks ago w... | 0debug |
void pci_device_hot_add(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
PCIDevice *dev = NULL;
const char *pci_addr = qdict_get_str(qdict, "pci_addr");
const char *type = qdict_get_str(qdict, "type");
const char *opts = qdict_get_try_str(qdict, "opts");
if (!strncmp(pci_addr, "... | 1threat |
Eliminating multiple server calls | MS SQL Server : There is a stored procedure which needs to be modified to eliminate a call to another server.
What is the easiest and feasible way to do this so that the final SP's execution time is faster and also preference to solutions which does not involve much change to the a... | 0debug |
I need such type of matrix output in MS SQL server ...please help me with the query : I need count of customers who got subscribed to channels.
Where channel =telugu and channel = hindi
Where channel =telugu and channel = English
Where channel = hindi and channel = English
| 0debug |
different hover colors required for different sections of a single image : <p>Good day everyone, I'm having difficulty with applying hover styles for an image. The image is having an irregular shape plus each section when hovered needs to have a different hover color.<a href="https://i.stack.imgur.com/nQWri.jpg" rel="n... | 0debug |
MySQL - Join multiple rows from other table as array : <p>I have trouble figuring out how to join multiple rows from a second table. I have tried using <code>GROUP_CONCAT</code> but I want to display them as an array <em>(see green box in the picture below)</em></p>
<p>The main issue here is the <code>1,2,4</code> fro... | 0debug |
static int mjpeg_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
UINT8 *buf, int buf_size)
{
MJpegDecodeContext *s = avctx->priv_data;
UINT8 *buf_end, *buf_ptr;
int i, start_code;
AVPicture *picture = data;
*data_... | 1threat |
How to extract all the values of one array and assign those values to another array : <p>if array1 = [1, 2, 3, 4];</p>
<p>then array2 = [5, 6, 7];</p>
<p>In the end i want all these values to be in one array as</p>
<p>array3 = [1, 2, 3, 4, 5, 6, 7]</p>
| 0debug |
Searches for books whose title contains the keyword and returns them ordered by titles (in alphabet order) : <p>I dont know how to search by keywords after some research im guessing i have to use the contain method but i dont know how
thanks</p>
<pre><code> import javax.swing.JOptionPane;
/**
* A collection of {@link... | 0debug |
converting multiple functions to a single function in Python 3 : <p>I have been using the wikipedia API to create some code that trnslates outlinks of wikipedia pages across languages back to english and then creates a data frame with the information. I have all of the code working except it's in multiple cells. My adv... | 0debug |
int opt_codec_debug(void *optctx, const char *opt, const char *arg)
{
av_log_set_level(AV_LOG_DEBUG);
return opt_default(NULL, opt, arg);
}
| 1threat |
R: List of named, numeric Columns of unequal size to data frame by name : <p>I got a list of Variables of unequal size</p>
<pre><code>List of 61
$ AMGN: Named num [1:2982] 58.1 60.6 60.8 60.3 60.6 ...
..- attr(*, "names")= chr [1:2982] "2007-01-03" "2007-01-04" "2007-01-05" "2007-01-08" ...
$ ANIK: Named num [1:2982... | 0debug |
after upgrade to 2.7 ClassNotFoundException: org.mockito.exceptions.Reporter when run test : <p>I try to set up junit, mokito and powermock together but when I ran a test I get ClassNotFoundException :(</p>
<pre><code>testCompile 'junit:junit:4.12'
testCompile 'org.mockito:mockito-core:2.7.22'
androidTestCompile 'org.... | 0debug |
A property that is read-only outside of the class, but read-write for class members : <p>I'd like to have a property in my class that is readable, but not directly modifiable by code external to the class. Basically, equivalent of returning a const reference to member from a method in C++.</p>
<p>Writing something alo... | 0debug |
void qemu_notify_event(void)
{
static const uint64_t val = 1;
ssize_t ret;
if (io_thread_fd == -1) {
return;
}
do {
ret = write(io_thread_fd, &val, sizeof(val));
} while (ret < 0 && errno == EINTR);
if (ret < 0 && errno != EAGAIN) {
fprintf(... | 1threat |
Run a script every few secconds : <p>I have a php script that i need to run every 4 seconds for one hour a day, what is the best way to do this. I look up a way of using cron and sleep and also watch but what would be the best way of doing this over all?</p>
<p>Watch </p>
<pre><code>watch -n10 command args
</code></p... | 0debug |
static void omap_timer_clk_setup(struct omap_mpu_timer_s *timer)
{
omap_clk_adduser(timer->clk,
qemu_allocate_irqs(omap_timer_clk_update, timer, 1)[0]);
timer->rate = omap_clk_getrate(timer->clk);
}
| 1threat |
static ssize_t local_readlink(FsContext *fs_ctx, const char *path,
char *buf, size_t bufsz)
{
ssize_t tsize = -1;
if (fs_ctx->fs_sm == SM_MAPPED) {
int fd;
fd = open(rpath(fs_ctx, path), O_RDONLY);
if (fd == -1) {
return -1;
}
do {
... | 1threat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.