date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/17 | 1,893 | 6,232 | <issue_start>username_0: I'm learning **C programming**. I've been given a "Challenge Task" that states that I have to get binary input from user bit by bit *(8 times, since there's 8 bits in a byte*) asking for 1 or 0 *(do not have to validate)* and them.
After collecting 8 bits, I then have to give an output
"Your... |
2018/03/17 | 616 | 2,055 | <issue_start>username_0: I was wondering if there is a way to map a dictionary to a class. If this is my class:
```
class Class{
var x = 0
var y = "hi"
}
```
And this is my dictionary (`dict`) with type `[String: Any]`
```
["x": 1, "y": "hello"]
```
Is there any easy way to convert the values of the dicti... |
2018/03/17 | 828 | 2,304 | <issue_start>username_0: I just started learning C. I am writing my code as follows:
```
#include
#include
void main()
{
int i, s = 0;
clrscr();
for(i = 1 ; i <= 5 ; i++)
{
if ((i % 3 == 0) || (i % 5 == 0))
{
printf("%d\n", &i);
s = s + i;
}
}
printf("sum is: %d\n", &s);
getch();
}
```
But I am gettin... |
2018/03/17 | 509 | 1,597 | <issue_start>username_0: I have a little problem with INNER JOIN in mysql query. I have two tables the first is 'kontrola' and 2nd is 'naruszenia' In 'kontrola' table I have rows:
* id
* podmiot
* miasto
* wszczeto
* zakonczono
* naruszenie\_id (Foreign KEY on 'naruszenia' table)
In my naruszenia table I have:
* id
* ... |
2018/03/17 | 1,744 | 6,811 | <issue_start>username_0: I'm working on a Django project and to make the forms experience far smoother I want to spread a ModelForm across a few pages. It would be ideal if users who are logged in can save their progress in the form without actually posting the content (in this case, a `JobApplication` where users can ... |
2018/03/17 | 1,955 | 7,335 | <issue_start>username_0: I have a table of invoices being prepared, and then ready for printing.
`[STATUS]` column is Draft, Print, Printing, Printed
I need to get the ID of the first (FIFO) record to be printed, and change the record status. The operation must be threadsafe so that another process does not select th... |
2018/03/17 | 534 | 2,038 | <issue_start>username_0: I want to fire a clip on mouseover and it doesn't work. I can log to the console but it seems I am doing something wrong to play the clip … What is it?
```
window.onload = function() {
var clip1 = document.getElementById("clip1");
var projects = document.getElementById("projects");
... |
2018/03/17 | 865 | 2,807 | <issue_start>username_0: I have a cryptographic program in which I need to represent each character by its hex value and return all of these hex values as a char string. After multiple crypto functions I got a final decimal value of each `char`. Now at the end of a for cycle I need to put all of them in a string contai... |
2018/03/17 | 701 | 2,273 | <issue_start>username_0: I have a question on a homework assignment where I need to list the quiz number and date of those quizzes that have a low score less than the average low score.
To do this I need to use a GROUP BY clause and a HAVING clause. It should look something like this:
```
select quiznum, quizdate
fro... |
2018/03/17 | 372 | 1,573 | <issue_start>username_0: The languages table has: id, shortcode
The comments table has id, user\_id, comment, language\_id (foreign key)
In the Comment Model I defined Language as a hasOne Relationship
In the Language Model I defined Comments as a hasMany Relationship (this is wrong?).
In Tinker I get this error wh... |
2018/03/17 | 981 | 3,610 | <issue_start>username_0: I have the following method I created it's nothing fancy just retrieves data from an HTTP server but it is an async method.
```
public async Task GetStringFromConsul(string key)
{
string s = "";
// attempts to get a string from Consul
try
{
//async method to get the response
HttpRespon... |
2018/03/17 | 894 | 2,979 | <issue_start>username_0: I am seeing some strange behavior with BeautifulSoup as demonstrated in the example below.
```
import re
from bs4 import BeautifulSoup
html = """This has a **color** of red. Because it likes the color red
This paragraph has a color of blue.
This paragraph does not have a color.
"""
soup = B... |
2018/03/17 | 539 | 2,004 | <issue_start>username_0: I am using Openresty as a server. I have the configuration file of the nginx as per the <https://eclipsesource.com/blogs/2018/01/11/authenticating-reverse-proxy-with-keycloak/>.
I am getting following error "openidc.lua:1053: authenticate(): request to the redirect\_uri\_path but there's no s... |
2018/03/17 | 556 | 1,732 | <issue_start>username_0: I am attempting to sort an array of objects by a name property that exists on each object. When using the `sort()` method with the code below I am getting the following error:
`ERROR ReferenceError: b is not defined`
Here is my code:
```
myArray.sort( (a, b) => {
return (typeof a.name: strin... |
2018/03/17 | 1,925 | 6,283 | <issue_start>username_0: I have written a function for computing volume of intersection of a cube and a half-space and now I'm writing tests for it.
I've tried computing the volume numerically like this:
```
integral = scipy.integrate.tplquad(lambda z, y, x: int(Vector(x, y, z).dot(normal) < distance),
... |
2018/03/17 | 809 | 2,697 | <issue_start>username_0: I'm trying to learn async programming in C++. In Python, we have `await`, with which we can resume a function from that point, but in C++ `future` waits for the results and halts the next line of code. What if we don't want to get the result, but instead continue to the next line of code? How c... |
2018/03/17 | 938 | 2,983 | <issue_start>username_0: I have a class:
```
class Cave
{
private:
int no_of_rooms;
public:
vectorrooms;
Cave(int r);
Cave(){};
};
```
The constructor of Cave fills the vector rooms with random integers:
```
Cave::Cave(int r)
:no_of_rooms{ r }
{
int i = 0;
while (i
```
I create another clas... |
2018/03/17 | 1,175 | 4,554 | <issue_start>username_0: MVC application (ASP.NET MVC, client: jquery).
Problem: The second ajax-request wait, when the first ajax request will done.
I need, when the first and the second ajax-requests executes immediatly in one time.
The page sends to server to determine the count of records (the first ajax-request... |
2018/03/17 | 740 | 2,577 | <issue_start>username_0: I would like to enter 3 players with 3 scores in using 2 arrays.
For now I stuck, concerning the ranking; how to do ???
Small example:
```
Player 1 : Jeremy
Score Jeremy : 12
Player 2 : Julien
Score Julien : 18
Player 3 : Olivia
Score Olivia : 22
```
For the ranking we should have
```
... |
2018/03/17 | 1,157 | 3,763 | <issue_start>username_0: Using the NAudio framework, I have written code like this to play some midi notes:
```
// Guts of a play note method which takes a cancellation token, a note
// a channel and a duration - CurrentVolume is a property of the class
// that plays the notes
midiOut.Send(MidiMessage.StartNote(note, ... |
2018/03/17 | 1,043 | 3,501 | <issue_start>username_0: I've got two types: User and UserLeague
```
type User {
id: ID! @unique
email: String! @unique
password: String!
name: String!
predictions: [Prediction!]!
leagues: [UserLeague!]! @relation(name: "MemberOfLeague")
ownedLeagues: [UserLeague!]! @relation(name: "LeagueO... |
2018/03/17 | 1,131 | 3,193 | <issue_start>username_0: My code below works to convert phone letters to phone numbers, but I didn't know if there was a better way to do this:
```
def phone_letter_converter(self):
if not self.isdigit():
number_upper = self.upper()
new_number = ""
for ch in number_upper:
if ch ... |
2018/03/17 | 932 | 2,569 | <issue_start>username_0: When using `slcli` to list virtual servers in a Softlayer account:
```
slcli vm list
```
it takes a long time and eventually produces the following error:
```
SoftLayerAPIError(SOAP-ENV:Server): Internal Error
```
This used to work in the same account. Listing VMs in specific data centers... |
2018/03/17 | 566 | 1,833 | <issue_start>username_0: I have navigation bar that collapses on windows resize. Besides the usual stuff in nav bar like about, contact...etc, i have two social media links (facebook and twitter). After i resize window, both of the social media items jump to the right of collapsed bar and also show up in the "dropdown"... |
2018/03/17 | 661 | 2,128 | <issue_start>username_0: I have a problem with trim, it doesnt work as i expected, when the user writes only spaces in username form ("studentname") it should write you didint fill all fields ("niste izpolnili vsa polja") and i dont know how to achieve that, sorry if question is duplicate but i didnt find the answer to... |
2018/03/17 | 410 | 1,461 | <issue_start>username_0: I'd like to know how to implement a textarea where a user can tag people by typing @ and then write a person's name. You get inline suggestions for word matches.
I'm not even sure what the technical name would be for such a feature but it's a common in sites like Facebook.<issue_comment>usernam... |
2018/03/17 | 844 | 1,965 | <issue_start>username_0: I want to counting data using range base from array using PHP..
Here is my array
```
$array = array(
1.1, 2.2, 3.2, 4.5, 4.2,
5.4, 6.2, 7.1, 8, 9.4, 10,
1.7);
```
My expected output is like (the number of range I set manually, Im just want to count how man... |
2018/03/17 | 822 | 2,080 | <issue_start>username_0: This google maps api 'for loop' returns the duration of a journey as a string (the last line return "34 min" in this example).
```
for (var i = 0; i < originList.length; i++) {
var results = response.rows[i].elements;
geocoder.geocode({
'address': originList[i]
},
showGeocodedAddre... |
2018/03/17 | 1,808 | 6,609 | <issue_start>username_0: 1.**Introduction:**
>
> So I want to develop a special filter method for uiimages - my idea is to change from one picture all the colors to black except a certain color, which should keep their appearance.
>
>
>
Images are always nice, so look at this image to get what I'd like to achieve... |
2018/03/17 | 793 | 3,319 | <issue_start>username_0: I read many articles about CloudFront and Edge Locations.
I can't understand how the user's request is automatically routed to his nearest edge location ?
Can someone explains exactly what happens when a client requests a static resource ? what are the network components (ISP, AWS, etc.) are c... |
2018/03/17 | 802 | 2,647 | <issue_start>username_0: I just installed Python3.7 and Pycharm on my Windows 10 PC.
I am running pip version 9.0.2
In Pycharm, it says I have version 28.8.0 of setuptools, when I try to upgrade this in Pycharm, which I believe runs the line
```
pip install -U setuptools
```
I get the error:
>
> PermissionError: ... |
2018/03/17 | 813 | 2,704 | <issue_start>username_0: I have a table that contains articles. Some articles are part of a parent article.
This is my model:
```
article_id | parent_article_id | title
--------------------------------------
61 | 0 | ...
62 | 61 | ...
43 | 61 | ...... |
2018/03/17 | 1,656 | 4,253 | <issue_start>username_0: I am getting wrong value in @timestamp field for elasticsearch/filebeat.
My filebeat pipeline definition
```
curl -H 'Content-Type: application/json' -XPUT "logger:9200/_ingest/pipeline/app_log" -d'
{
"description" : "Ingest pipeline for Jetty server log",
"processors" : [
... |
2018/03/17 | 945 | 3,434 | <issue_start>username_0: I have a form. My objective is send and insert the values of the form to my database. Then
1. Clear the input of the form
2. Show the successful message.
Like this:
[enter image description here](https://i.stack.imgur.com/jGOUE.png)
------------------------------------------------------------... |
2018/03/17 | 744 | 2,972 | <issue_start>username_0: We are building a cross platform app, and a decision maker on my team (who is an Apple user) wants all of our "Select to delete" checkboxes to be round, "Like Apple's Mail and Messages apps".
[](https://i.stack.imgur.com/KCjtr... |
2018/03/17 | 525 | 1,525 | <issue_start>username_0: i have this error when run repair?
```
myisamchk: error: 140 when opening MyISAM-table '/var/lib/mysql/zibarsho_karno/wp_yoast_seo_links.MYI'
```
how i can fix this ???<issue_comment>username_1: This is a bug already reported since MySQL 5.6
Still happening in 8.0.11 so in the mean time you... |
2018/03/17 | 905 | 3,022 | <issue_start>username_0: This example should fire alert when I add text in the text area, for some reason it does so when I use `$('#sentid1').onkeypress`, and it only works when I use `$('#sentid1').onkeypress`.
html part:
```
This is sentence 1. This is sentence 2.
```
Javascript/jQuery part:
```
if (1==1) {
... |
2018/03/17 | 509 | 1,529 | <issue_start>username_0: In Bootstrap 4, I have three divs:
```
A
B
C
```
Is there a way, **without placing div B and C inside another div**, to achieve this:
```
A B
C
```<issue_comment>username_1: What you can do is assign a class to A and put a float-left in css, then its just a matter of margins etc.
... |
2018/03/17 | 681 | 2,520 | <issue_start>username_0: i try to find a recursive function that take two string and returns true if string1 is a substring of string2 and false otherwise by check recursively if str2 starts with str1.
i try this code but it does not work i do not know why !
```
def main():
s1 = input("enter string")
s2 = input... |
2018/03/17 | 1,204 | 3,280 | <issue_start>username_0: I have a list containing string elements:
```
movielst = ['A WALK,DRAGONBALL', 'JAMES BOND,MISSION']
```
and another list that contains integer values:
```
userlst = [[1,20],[6,7]]
```
I'm planning to print the output based off both list where the first element in movielst corresponds to ... |
2018/03/17 | 614 | 2,333 | <issue_start>username_0: After recent deploy I found many errors like this on my production server :
>
> Last write attempt timed out; force-closing the connection.
>
>
>
At the moment I'm getting ~5 such errors per hour from different hosts.
I looked through the code in Netty `SslHandler` and see that this excep... |
2018/03/17 | 586 | 2,217 | <issue_start>username_0: Given the example that you are connecting to a mongoDB in js.
```
mongoClient.connect("mongodb:/localhost/db",
function (err, db){
if (err){
throw err
}
} // some following code
```
What is the correct to catch errors in an express application so the program carries on run... |
2018/03/17 | 347 | 1,342 | <issue_start>username_0: I have a object from the following class,
```
public class Customer {
private String email;
private String name;
}
```
How can I check whether every attribute is not null using Optional from java 8? Or there is another less verbose way?<issue_comment>username_1: With out reflection ... |
2018/03/17 | 341 | 1,279 | <issue_start>username_0: I use : jupyter notebook file\_name.ipynb.
But how to open file with spaces in it's name. For example :
filename is : " ABC XYZ .ipynb"
jupyter notebook ABC XYZ .ipynb , don't work.<issue_comment>username_1: With out reflection you can't check all in one shot (*as others mentioned, Optional... |
2018/03/17 | 476 | 1,811 | <issue_start>username_0: I decided use framework CodeceptJS and library Nightmare.
Mine issue is set cookie before run all test suite
I read the documentation and understanding so for that to solve mine issue me need use helper classes. Maybe I'm wrong but still.
Perhaps you need to use a different approach if so let ... |
2018/03/17 | 994 | 3,825 | <issue_start>username_0: I imported a generated 3d model of a MRT scan into Unity. Unfortunately the model is imported into a lot of slices which make up the whole model.
The hierachy is like this:
[](https://i.stack.imgur.com/NIJvZ.png)
As you can i... |
2018/03/17 | 741 | 2,248 | <issue_start>username_0: My question is relatively simple. Is 'str' easier than 'int' in the following examples?
```
slot_1 = 'med kit'
if slot_1 == 'med kit':
print('med kit ready')
```
is that faster to run and better than
```
slot_1 = 0
#0 represents med kit
if slot_1 == 0:
print('med kit ready')
```
O... |
2018/03/17 | 500 | 2,232 | <issue_start>username_0: I am new to android studio and my problem might sound pretty simple but I do badly need a solution.
I need to check whether my static string's value is equal to 1 before executing a particular block of code. It updates every 500ms. It goes from 1 to 16 and then back to 1.
I tried countdowntimer... |
2018/03/17 | 402 | 1,757 | <issue_start>username_0: I was using Facebook login API since last 8 months and was working fine. Today, without changing any settings or any code the API is returning error.
```
Graph returned an error: Can't load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all do... |
2018/03/17 | 632 | 2,521 | <issue_start>username_0: I have a view that shows the details of a specific conference.
Each conference can have multiple registration types. The registration type table has columns like: name, min\_participants, max\_participants, etc.
In this details conference page Im showing the registration types info of that co... |
2018/03/17 | 518 | 2,149 | <issue_start>username_0: I have a function to get the width of the container. This function gets called every time, when the window changes the size. In this function I set the state "containerWidth" to the current width of the container.
I need the width, for the function getNumberOfItems which calculates how many it... |
2018/03/17 | 1,147 | 3,720 | <issue_start>username_0: I want to use for example this array of pointers to functions, without using STL.
That array is an array of pointers that I call functions `OptionA`, `OptionB` and so on.
```
int(*Functions[4])();
Functions[0] = OpionA;
Functions[1] = OptionB;
Functions[2] = OptionC;
Functions[0] = Exit;
```... |
2018/03/17 | 451 | 1,252 | <issue_start>username_0: In my MySql query I need to check something like:
```
... WHERE DATE_ADD(IF(Date1>Date2, Date1, Date2), INTERVAL 3 DAY)
```
But apparently this doesn't work, this condition always return true for some reason I don't know.
What am I doing wrong? Isn't it possible to use IF inside a DATE\_ADD f... |
2018/03/17 | 688 | 2,129 | <issue_start>username_0: How do I install the anaconda / miniconda without prompts on Linux command line?
Is there a way to pass `-y` kind of option to agree to the T&Cs, suggested installation location etc. by default?<issue_comment>username_1: AFAIK [`pyenv`](https://github.com/pyenv/pyenv) let you install `anaconda... |
2018/03/17 | 816 | 2,395 | <issue_start>username_0: I have this code:
```
frames = input("Enter a number")
lists = [[] for i in range(int(frames))]
```
My attempt:
```
for i in lists:
lists[0].insert(0,"Page Frame")
```
But that didn't give me the correct output
And I want to insert a string into the first index of each of the lists. For ... |
2018/03/17 | 779 | 2,536 | <issue_start>username_0: I have old project with Pre-loaded database in Assets folder. The project have [SQLiteOpenHelper](https://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html) implemented for database operations. But now to update app I want to move my project to [Room](https://develop... |
2018/03/17 | 445 | 1,355 | <issue_start>username_0: Given table1 with fields **person1\_id, person2\_id and person3\_id**
and table 2 with fields **fname, lname, id**, I want to return the names from table2 for person1\_id, person2\_id, and person3\_id, hopefully in one query.
I understand how to do a join to retrieve one name, but not multipl... |
2018/03/17 | 1,087 | 2,760 | <issue_start>username_0: Let me explain my problem using a dummy example.
This is file A -
```
1 10 20 aa
2 30 40 bb
3 60 70 cc
. .. .. ..
```
and This is file B -
```
10 15 xx yy mm
21 29 mm nn ss
11 18 rr tt yy
69 90 qq ww ee
.. .. .. .. ..
```
I am trying to merge these files A and B such that there exist som... |
2018/03/17 | 858 | 3,341 | <issue_start>username_0: Currently, I generate an invitation key that gets embedded into the login URL and sent to users:
eg: <https://localhost:44338/account/login/mykey>
I also enabled google authentication
[](https://i.stack.imgur.com/4Fiie.png)
... |
2018/03/17 | 1,797 | 6,490 | <issue_start>username_0: Hey Everyone, I am mentally stuck
I have a list of objects retrieved from a Web API that has three values that consist of a parent ID and a string value and a row ID
IE:
CategoryID Name ParentID
1 Tools 0
2 ... |
2018/03/17 | 987 | 3,247 | <issue_start>username_0: I am using opencv::solvePnP to return a camera pose. I run PnP, and it returns the rvec and tvec values.(rotation vector and position).
I then run this function to convert the values to the camera pose:
```
void GetCameraPoseEigen(cv::Vec3d tvecV, cv::Vec3d rvecV, Eigen::Vector3d &Translate, ... |
2018/03/17 | 601 | 1,955 | <issue_start>username_0: im a little new to SSIS coming from using Power Query in Excel a lot. Is it possible to create a conditional column in SSIS, similar to how you can in Power Query.
For example in Power Query you can create a conditional column to say IF column [FileName] contains USA, Canada, United States, A... |
2018/03/17 | 2,035 | 7,355 | <issue_start>username_0: Learning Symfony is a tough journey and I knew posts on SO would follow, so here's my problem : classic login page, I followed [this tutorial](https://symfony.com/doc/current/security/form_login_setup.html) and before that I followed the [registration form](http://symfony.com/doc/current/doctri... |
2018/03/17 | 550 | 2,125 | <issue_start>username_0: I wonder how can i get my page parts such as `sidebar` or `header` with Vue way?
currently I get them like `@include('admin.parts.header')` which is blade template, but is it possible i move them to `components (header.vue)` and get them with vue way like ?<issue_comment>username_1: I ran int... |
2018/03/17 | 300 | 952 | <issue_start>username_0: ```
function repeatS(srr, num) {
if (num <= 0) {
return "";
}
var result = "";
for (var i = 0; i < num; i++) {
result = +srr;
}
return result;
}
console.log(repeatS("ahfidhfd", 3));
```
**strong text**
Here is my question, the result is Nan, anyone kno... |
2018/03/17 | 509 | 1,627 | <issue_start>username_0: I'm using `jquery-ui` to sort the items on my list. At first load I have no problem coz it works fine but after I go to other page and go back to the page where my list is. That's the time I'm having trouble.
By the way, I'm using AJAX to load the content of my pages. And it seems that `jquer... |
2018/03/17 | 1,975 | 7,004 | <issue_start>username_0: I just installed tensorflow gpu and I started to train my convolutional neural network. The problem is that my gpu usage percentage is constantly at 0% and sometimes it increases until 20%. The CPU is somewhere at 20% and the disk above 60%. I tried to test if I installed it correctly and I don... |
2018/03/17 | 973 | 2,962 | <issue_start>username_0: I have a json response like this,
```
"meteo_inverter_analysis":{
"Id93922.1":{
"inverter_id":"Id93922.1", "total_electricity_generated":1567.7910000000002
},
"Id93922.2":{
"inverter_id":"Id93922.2", "total_electricity_generated":1468.4869999999999
},
... |
2018/03/17 | 1,894 | 6,552 | <issue_start>username_0: New rails 5.1 application, installed bootstrap using yarn
```
yarn install boostrap
```
Now in my application.scss file I have this which includes the entire bootstrap css file currenly:
```
/*
*= require_tree .
*= require_self
*= require bootstrap/dist/css/bootstrap
*/
```
My layout ... |
2018/03/17 | 1,116 | 3,438 | <issue_start>username_0: I have two tables, `Product` and `SalesProduct`.
`Product` table sample records (here `ProductID` is the primary key):
```
ProductID | ProductCode | Name
----------+-------------+-----------
1 P001 Computer
2 p002 Laptop
3 p003 Speaker
... |
2018/03/17 | 2,640 | 9,512 | <issue_start>username_0: EDIT: I removed the `GROUP BY` clause from the example queries but the same problem shows "When I join table x to an empty/1 row table y MySQL makes a full table scan on table x in spite of I'm using limit"
---
Original Question:
I was trying to learn how to optimize my SQL queries and I enc... |
2018/03/17 | 418 | 1,390 | <issue_start>username_0: For example, I have:
```
a = ["a","b","c","d"]
```
I want to create a function (a key) such that:
```
def myfunc(a_list_of_items):
# I have no idea what to do after this
a.sort(key=myfunc)
print(a)
```
Output should be:
```
["a","c","b","d"] #elements that had odd index -
# - stacke... |
2018/03/17 | 1,062 | 3,822 | <issue_start>username_0: A demo of what I'm *expecting* to work is here: <https://jsfiddle.net/qe766xn0/4/>
The child component is firing an event that the parent component is not picking up on. According to [this documentation](https://v2.vuejs.org/v2/guide/components.html#Composing-Components) on the event relations... |
2018/03/17 | 1,474 | 4,631 | <issue_start>username_0: The following minimal CRUD example using Spring Boot, Hibernate, JpaRepository, CockroachDB and Kotlin produces `org.springframework.orm.jpa.JpaSystemException` / `org.hibernate.TransactionException`.
The Entity `Thing` in question has just two fields:
```
@Entity
data class Thing (
@Id
... |
2018/03/17 | 1,552 | 6,250 | <issue_start>username_0: I have a Parent Component with an HTML click event that passes the clicked element to a method on the component.ts file, I would like this click event to be routed to Services, made into a new `Subject`, then using the `next()` method, pass the Subject to a different Sibling Component and bind ... |
2018/03/17 | 262 | 989 | <issue_start>username_0: I am trying to simulate poor network connectivity.
I set Android Studio's emulator Cellular to Signal strength = None, but it is still allowing network traffic to go through (I am making successful HTTP requests using Okhttp after setting "None" in the emulator)
Is this a bug?
[![enter image... |
2018/03/17 | 974 | 2,423 | <issue_start>username_0: I have a frindly(not so much but fits me well) URL expression on my HTACCESS.
The page treats accordly with "mode" and ids
For editing a category:
```
#URL
edit.php?mode=cat&cat=1
#The expression
RewriteRule ^editar/([^/]*)/([^/]*)$ /edit.php?mode=$1&cat=$2 [NC,L]
#Output
/editar/... |
2018/03/17 | 1,059 | 4,363 | <issue_start>username_0: This is a database model design question. Let's say I'm designing an app like Slack. Slack has multiple Organizations, and within each Organization there are objects that only should be accessed by that Organization (eg. its chat records, files, etc.). What is the best way to set up these per-O... |
2018/03/17 | 942 | 3,803 | <issue_start>username_0: I am trying to create code that takes an integer 'a' and a list and returns a list of every value in the list that is less than a. I have created code that will figure out if the first number in the list is less than 'a' but I can't quite figure out the recursion. Any help would be great!
```
... |
2018/03/17 | 320 | 1,088 | <issue_start>username_0: I am trying to migrate my VueJS project from VueCLI 2 to 3.
All the files are copied over to the src folder.
When I try to view it in the browser using npm run serve then I get this HTML with no present:
```
Webpack App
```
The console gives this error:
```
vue.runtime.esm.js?ff9b:587 [V... |
2018/03/17 | 1,451 | 6,333 | <issue_start>username_0: I have a problem , i'm trying to create an app for my website and i'm using android webview to do that, but since there's external links (ads, backlinks.. etc) in my website , when the user clicks these links , the webview opens the links and my app acts like a browser , i know that's what webv... |
2018/03/17 | 492 | 1,762 | <issue_start>username_0: I've just stumbled across the following syntax in TypeScript
```
export interface OrderPool {
[id: string]: Level3Order;
}
```
Could someone clarify what I am looking at?
Best I can understand is that this is an interface `OrderPool` which contains a property named Id of type `string(a... |
2018/03/17 | 342 | 1,277 | <issue_start>username_0: I'm trying to build the Flutter sample project on VS code, but got this messages... The sample is building and running fine on Android device, and I also tried running the sample with Android Studio on iOS simulator which is also fine. It just doesn't work on VS Code. Has anyone meet the same i... |
2018/03/17 | 387 | 1,507 | <issue_start>username_0: I am working on some project in Unity. I have:
```
[Serializable]
public class ItemAction
{
[SerializeField]
private UnityEvent unityEvent;
public void Perform()
{
unityEvent.Invoke();
}
}
[Serializable]
public class ItemAction
{
[SerializeField]
private UnityEv... |
2018/03/17 | 1,811 | 7,409 | <issue_start>username_0: Given below is a java class using Bill Pugh singleton solution.
```
public class Singleton {
int nonVolatileVariable;
private static class SingletonHelper {
private static Singleton INSTANCE = new Singleton();
}
private Singleton() { }
public static Singleton ge... |
2018/03/17 | 1,372 | 4,759 | <issue_start>username_0: First of all, I am expecting `--no-obsolete` would comment out `msgid` and `msgstr` if `gettext` is deleted, right?
How I am testing is:
1. I wrote `gettext("some string here")` in view
2. I ran `makemessages` command
3. It wrote a `.po` file as expected
4. Then I deleted `gettext()` line fro... |
2018/03/17 | 1,233 | 4,245 | <issue_start>username_0: Why the following code do not return me `0 => 'Zero'` for the first line but `0 => 0` ?
```
for ($i = 0; $i <= 30; $i += 1) {
if($i == 0) { $array[$i] = 'Zero'; }
$array[$i] = $i;
}
for ($i = 30; $i <= 100; $i += 5) {
$array[$i] = $i;
}
for ($i = 100; $i <= 200; $i += 10) { ... |
2018/03/17 | 1,143 | 4,160 | <issue_start>username_0: I'm new in Scala. I come across with this question:
If side effects (outputs, global variables ...) are not taken into account, how many implementations can the below method have? how can I figure it out in general?
```
def g[A,B,C](x: A,y: B,f:(A,B) => C): C
```<issue_comment>username_1: Wha... |
2018/03/17 | 566 | 1,846 | <issue_start>username_0: ```
struct MinHeap{
int size;
int* array;
};
void minHeapify(struct MinHeap* minHeap, int idx)
{
int smallest, left, right;
smallest = idx;
left = 2 * idx + 1;
right = 2 * idx + 2;
if (left < minHeap->size && minHeap->array[left]->key < minHeap-
>array[smallest]->key )
smallest = left;
... |
2018/03/17 | 1,301 | 4,103 | <issue_start>username_0: Consider the following piece of code:
```
#include
class A
{
public:
explicit A(uint8\_t p\_a){ m\_a = p\_a; };
uint8\_t get\_a() const {return m\_a;}
private:
uint8\_t m\_a;
};
int main()
{
A a {0x21U};
A aa{0x55U};
uint8\_t mask{a.get\_a() | aa.get\_a()};
return 0;
}
```
Whe... |
2018/03/17 | 1,125 | 3,778 | <issue_start>username_0: We are five students in a team and we must work in the same project using git.
What i did is:
1. create an empty project
2. add gitignore file
The gitignore file
contains:
```
*.class
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
```
3. git init
4. git ... |
2018/03/17 | 670 | 2,756 | <issue_start>username_0: I'm trying to get the same result as when I use @Valid in object parameter from a Controller. When the object is invalid an exception (MethodArgumentNotValidException) is throw by my ExceptionHandlerController who has @RestControllerAdvice.
In my case I want to validate an object, but I only c... |
2018/03/17 | 849 | 2,058 | <issue_start>username_0: I am trying to take a list that has IP address and port numbers and print the data out to be in this format `127.0.0.1:21,80,443`. Here is a sample of dummy data.
```
127.0.0.1
80
127.0.0.1
443
192.168.1.1
21
192.168.1.2
22
192.168.1.2
3389
192.168.1.2
5900
```
I would like this data to outp... |
2018/03/17 | 856 | 2,834 | <issue_start>username_0: I'm trying to do something very simple, I want to do a POST with AJAX Jquery to a Node.js server and have the server return a response. My problem is that I can't get that answer from the server. If someone can help me, I will be very grateful.
client.js
```
$(document).ready(function(){
$("b... |
2018/03/17 | 445 | 1,537 | <issue_start>username_0: I am making a request to an API that I have on my computer (192.168.1.132) with react native from my phone (in the same network):
```py
fetch('http://192.168.1.132:8000/test', {
method: 'GET',
headers: { 'Authorization': 'Bearer 4uFPmkP5326DXcRuHDKjRRrmhdeIBJ'},
credentials: 'same-origin... |
2018/03/17 | 586 | 1,717 | <issue_start>username_0: Window 10, Python 3.6
I have a dataframe df
```
df=pd.DataFrame({'name':['boo', 'foo', 'too', 'boo', 'roo', 'too'],
'zip':['30004', '02895', '02895', '30750', '02895', '02895']})
```
I want to find the repeat record that has same 'name' and 'zip', and record the repeat tim... |
2018/03/17 | 1,729 | 5,686 | <issue_start>username_0: I have successfully been using the gTTS module in order to get audio from Google Translate for a while. I use it quite sparsely (I must have made 25 requests in total), and don't believe I could have hit any kind of limit that would cause my address to be blocked from using the service.
Howeve... |
2018/03/17 | 706 | 2,554 | <issue_start>username_0: AFAIK after block validation node runs all transactions in the block, changing the state (list of UTXOs)
Let's imagine that at some point node realizes that it was on the wrong chain and there is longer chain available, which forked some blocks before.
How does it make the switch? I imagine t... |
2018/03/17 | 2,101 | 5,670 | <issue_start>username_0: Why the output of this program is `4`?
```
#include
int main()
{
short A[] = {1, 2, 3, 4, 5, 6};
std::cout << \*(short\*)((char\*)A + 7) << std::endl;
return 0;
}
```
From my understanding, on x86 little endian system, where char has 1 byte, and short 2 bytes, the output should be `0x05... |
2018/03/17 | 2,185 | 6,370 | <issue_start>username_0: Scenario: I have a graph, represented as a collection of nodes (0...n). There are no edges in this graph.
To this graph, I connect nodes at random, one at a time. An alternative way of saying this would be that I add random edges to the graph, one at a time.
I do not want to create simple cyc... |