date stringlengths 10 10 | nb_tokens int64 60 629k | text_size int64 234 1.02M | content stringlengths 234 1.02M |
|---|---|---|---|
2018/03/17 | 1,429 | 3,603 | <issue_start>username_0: I am new to python and I have search a lot about this issue. I know there is a way of converting tuples to a list, but somehow it doesn't work for me. Here is my issue.
Say I have:
```
l_1 = ['a','b','c']
l_2 = ['e','f','g']
l_3 = ['g','h','i']
```
Then say I have another list of:
```
l_al... |
2018/03/17 | 635 | 2,463 | <issue_start>username_0: i have a sqlalchemy query which renders a template with a couple of settings.
below you can find very simplified code to give an idea of what is going on. This code puts a checkbox field for a setting on every page, and there is no fixed nr of settings at the moment, it depends on the size of... |
2018/03/17 | 458 | 1,800 | <issue_start>username_0: I downloaded the source of bootstrap into my application using yarn
```
yarn install boostrap
```
I tried just importing the bootstrap-grid.css in my application, and when I copied the starter example the look had no grid layout style applied to it.
>
> <https://getbootstrap.com/docs/4.0/e... |
2018/03/17 | 998 | 3,429 | <issue_start>username_0: Let's say I have some records as below:
```
{
id: 1,
age: 22,
name: 'A',
class: 'Y'
},
{
id: 2,
age: 25,
name: 'B',
class: 'D'
},
{
id: 3,
age: 30,
name: 'C',
class: 'Y'
},
{
id: 4,
age: 40,
name: 'D',
class: 'B'
}
```
Now I need to get the last (closest) reco... |
2018/03/17 | 556 | 1,719 | <issue_start>username_0: I have the following element that is transitioning from left to right, how do I get it to transition from right to left without any gaps between the element and the right of the page.
```css
@keyframes slideInFromLeft {
0% {
transform: translateX(-100%);
}
100% {
transform: ... |
2018/03/17 | 549 | 1,801 | <issue_start>username_0: I have some texture - a square picture with the painted bricks. And I want to create the element I will use as an obstacles - usual platformer's walls - in my game. So, I can't understand, how can I create this game object? For example, in 3D I can jus to create an object - for example, cube - ... |
2018/03/17 | 464 | 1,699 | <issue_start>username_0: I have an `ArrayList` which I want to transform into a JSON array of objects. How can I transform it?
Array is of type `Kunde`:
```
public class Kunde {
private String knr;
private String name1;
private String name2;
private String anrede;
private String strasse;
priva... |
2018/03/17 | 586 | 2,429 | <issue_start>username_0: I'm using FOS UserBundle in my Symfony 3.3 Project and I have two firewalls , because Admins and Users connect from different login forms (with different URLs).
I would like to restrict access to admin dashboard only if the account used for logging is granted to ADMIN\_ROLE.
That is, if I try ... |
2018/03/17 | 2,864 | 6,065 | <issue_start>username_0: I'm building a cube with Python.
I am going to use vbo and shader.
but, Normal does not work.
Where is the problem? and How should I coding it?
```
import pygame
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
from ctypes import *
from math import *
pygame.init... |
2018/03/17 | 737 | 1,738 | <issue_start>username_0: I have two tables
```
table: a
---------------------
id amount status
---------------------
4031 3000 1
4032 4000 1
4033 5000 1
4034 6000 1
4035 7000 1
4036 8000 0
```
```
table: s
--------------
id a_id b_id
--------------
1 4031 20
2 4031 21
3 4032 23
... |
2018/03/17 | 444 | 1,658 | <issue_start>username_0: I am getting:
```
org.testng.TestNGException: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.testng.TestNG.initializeSuitesAndJarFile(TestNG.java:325)
at org.testng.remote.AbstractRemoteTestNG.initialize(Abstr... |
2018/03/17 | 515 | 1,799 | <issue_start>username_0: If I enter something into t1, t2 is changed.
But if t2 already has manual input, it is not changed any more (and vice versa).
How can I change an input field that has already an manual input with javascript (without reloading the page!)?
```
inputfields are not changed, if they have/had a... |
2018/03/17 | 650 | 2,466 | <issue_start>username_0: I used [php-telegram-bot/core](https://github.com/php-telegram-bot/core) to create a shopping bot in telegram.
What I want to do is when a User make an order, bot send a notification that a new Order is come to admin of Channel.
Suppose admin channel username is like `@admin_username` and s... |
2018/03/17 | 1,206 | 4,107 | <issue_start>username_0: I try to install my app on Heroku. This app is a PHP/Laravel app with the "Passport" for the authentication. All is running fine in my local machine (MacOS).
When I try to do a simple 'post' with Postman, I have this error :
>
> 2018-03-17T17:05:22.059708+00:00 app[web.1]: [17-Mar-2018 17:05... |
2018/03/17 | 1,031 | 3,864 | <issue_start>username_0: In fluter, I have 2 tab pages that show different view. I wanted to have the floatingactionbutton to show only in one of the view and hidden in other tabs.
But the floatingactionbutton stays floating even when the view is switched.
Can anyone help me on this? If there is any code or tutorial, i... |
2018/03/17 | 1,719 | 5,978 | <issue_start>username_0: I want to use a SCNTechnique with Metal shaders in Swift Playgrounds on a SCNView. Therefore I tried compiling my shaders with the following code:
```
guard let metalDevice = sceneView.device else {
return
}
if let path = Bundle.main.path(forResource: "distortTechnique", ofType: "metal") ... |
2018/03/17 | 1,290 | 4,930 | <issue_start>username_0: On reactjs how does one print one element per second from an array?
I have tried to replicate and simplify my work. The array comes from redux.
But the final situation doesn't change.
Thanks.
```js
const arrWords=["I", "would", "like", "to", "print", "one", "word", "per", "second"];
class Mes... |
2018/03/17 | 4,811 | 17,682 | <issue_start>username_0: I am working on an application that will randomly generate a menu based on a user's calorie needs. For my first activity I ask for input from the user and gather information needed to calculate the daily calorie needs. The calorie needs is the double value that I need to transfer to my second a... |
2018/03/17 | 553 | 2,109 | <issue_start>username_0: ```
class Program : Application
{
[STAThread]
public static void Main()
{
Program app = new Program();
app.StartupUri = new Uri("../../LoginWindow.xaml", UriKind.Relative);
//app.MainWindow is null
app.Run();
}
virtual protected void OnStar... |
2018/03/17 | 815 | 1,861 | <issue_start>username_0: How can I draw a SVG using qml in simple words?
According to QtDocs it is possible to draw a SVG using this code:
```
Path {
startX: 50; startY: 50
PathSvg { path: "L 150 50 L 100 150 z" }
}
```
But actually it doesn't.
So, how can I draw SVG?<issue_comment>username_1: Nothing in th... |
2018/03/17 | 564 | 1,628 | <issue_start>username_0: What value does the $xyz get assigned? Does it get a null value or is there any error? There is also an error\_reporting(0) function.
```
error_reporting(0);
$xyz =// removed;
```<issue_comment>username_1: You can't assign a comment to a variable because when the script is executed, all com... |
2018/03/17 | 704 | 2,968 | <issue_start>username_0: I have checked recent blogs about onsubmit event not triggering the method. Those suggestions were not helpful for this problem.And i've tried this method and form in an another html page which didn't work either.So i am not able to find out where main problem is ? My code :
```
function val... |
2018/03/17 | 1,278 | 4,782 | <issue_start>username_0: From Spring boot 1.5.x, I receive the following WARN messages:
```
:: Spring Boot :: (v2.0.0.RELEASE)
2018-03-17 18:58:18.546 WARN 27877 --- [ restartedMain] o.s.a.f.CglibAopProxy : Unable to proxy interface-implementing method [public final void org.springfra... |
2018/03/17 | 861 | 3,237 | <issue_start>username_0: I have a scenario where I create a worker pool which has 4 workers. These workers picks up job from a channel and stores the result to the memory.
So the worker execute the job and may update the result in parallel. I would like to know which data type is best to save the result as it would be... |
2018/03/17 | 430 | 1,456 | <issue_start>username_0: I have written the following query from various tables :
```
SELECT DISTINCT 0 AS IID,
pd.IID AS PurchaseOrerDetailsId,
i.[Description] AS ITEM,
'' AS BatchNo,
s.[Description] AS Unit,
'' AS MfgDt,
0 AS QtyReceived,
'' AS ExpiryDate,
... |
2018/03/17 | 462 | 1,442 | <issue_start>username_0: I have a teams table called `list`, and a games table called `games`.
A `Team_ID` could be in either the `games_home` or the `games_away` column. How do I get this to work in SQL?
```
SELECT list.*, games.*
FROM list
INNER JOIN games ON (list.Team_ID = games.games_away)
AND... |
2018/03/17 | 455 | 1,649 | <issue_start>username_0: I'm doing those Stanford course, and on that part about gestures I couldn't replicated the pinchGesture, it simply doesn't works and even don't call the breakpoint inside the method that are supposed to be called.
I'm copying my code below
inside FaceViewController
```swift
@IBOutlet weak var... |
2018/03/17 | 436 | 1,442 | <issue_start>username_0: I want to manually add new data to firebase. I found [this](http://mariechatfield.com/tutorials/firebase/step2.html) tutorial but this is only for depth 1. How can I add something like this ?
```
roles: {
"ajda4a684fawefae" : ["role1", "role2"],
"as87awda74w8wa86" : ["role1", "role3"]... |
2018/03/17 | 1,076 | 3,687 | <issue_start>username_0: I use one among many options to store my API keys in the **computer/keychain** rather than directly in the cloud-backed-up project code (namely [gradle-credentials-plugin](https://github.com/etiennestuder/gradle-credentials-plugin) ). What I'd like is to be able to manage Google Maps keys in a ... |
2018/03/17 | 674 | 2,117 | <issue_start>username_0: I have been facing a major issue while using selenium:
On the Trivago website "<https://www.trivago.com/site_map>", I have been trying to get the script to click on each continent but it seems to not work:
```
element = driver.find_element_by_class_name('link')
element.click()
```
I also a... |
2018/03/17 | 749 | 2,170 | <issue_start>username_0: I am trying to remove some entries in a big xml file (8 million lines) with the following structure:
```
"coords": ["0" , "4"]
452;2|
460;4|
1001;6|
385;1|
463;1|
"coords": ["0" , "8"]
629;2|
460;3|
75;3|
1010;3|
458;2|
450;1|
```
I want to remove all entries below 1000.
Example: 452;2|
... |
2018/03/17 | 704 | 2,196 | <issue_start>username_0: Just try to use the DATEDIFF native function in SQL with my following query:
```
SELECT
KDX_Id,
(
SELECT DATEDIFF('DAY', ___Bookings.BOO_DateCI, ___Bookings.BOO_DateCO)
FROM ___Bookings
WHERE KDX_Id = ___Bookings.BOO_ClientId
) AS nb_nights
FROM ___Kardex... |
2018/03/17 | 508 | 1,820 | <issue_start>username_0: So I'm building a project using Angular 4, I have a bunch of images in my assets folder and I have an array of objects in my app.component.ts file that is trying to reference them.
The directory is set out like this
```
src
| app
| app.component.ts
| app.component.html
| ...
| assets... |
2018/03/17 | 604 | 2,071 | <issue_start>username_0: I am getting mad
I had those variables
```
$wwa_section_title = get_field('wwa_section_title');
$wwa_section_description = get_field('wwa_section_description');
$wwa_section_body = get_field('wwa_section_body');
$wwa_section_image_1 = get_field('wwa_section_image_1');
$wwa_section_image... |
2018/03/17 | 442 | 1,555 | <issue_start>username_0: I wanted to create a program where there is a pixel which selects a random point in the surface and then walks to it by straight line. When he is finished, then he selects another random point. And it's like that forever. The problem is, how do i
convert that to `x += 1` or `y += 1` or `x -= 1`... |
2018/03/17 | 468 | 1,580 | <issue_start>username_0: I am writing a c++ program for the following problem: Suppose we flew an airplane from Europe to North America and while measuring our height above the sea level (> 0) every x kilometers. we measured zero where there was sea and greater than 0 where there was land. How can we define the two sea... |
2018/03/17 | 1,399 | 4,684 | <issue_start>username_0: I'm trying the solve the first question in [Advent of Code 2017](http://adventofcode.com/2017/day/1), and come up with the following solution to calculate the needed value:
```
checkRepetition :: [Int] -> Bool
checkRepetition [] = False
checkRepetition (x:xs)
| x == ( head xs ) = True
| othe... |
2018/03/17 | 622 | 1,558 | <issue_start>username_0: ```
new Date(null)
// Date 1970-01-01T00:00:00.000Z
```
How come when I type `new Date(null)` in JavaScript console I'm getting
`Date 1970-01-01T00:00:00.000Z`?<issue_comment>username_1: Apparently because that (Unix timestamp 0) is what a Date object is initialized to by default, eh?
Upvot... |
2018/03/17 | 397 | 1,341 | <issue_start>username_0: I am trying to "parameterize" a drake script by assign a character to an object but I get this warning:
```
plan <- drake_plan(commencement = "dec2017")
make(plan)
Warning messages:
```
>
> 1: missing input files: dec2017
>
> 2: File 'dec2017' was built or processed, but the file itself... |
2018/03/17 | 401 | 1,422 | <issue_start>username_0: I'm appending strings in to one index. I'm unable to check if that index contains the value that will be appended next.
Value of the string changes depending on the user input
How can I check if the elements array already contains "value1"?
Assuming that I have something like this:
```
var k... |
2018/03/17 | 2,078 | 8,487 | <issue_start>username_0: I'm using the fullpage.js and on the second section scrolloverflow.js is active. for the second section I'd like a footer that sticks to the bottom of the viewport. instead of doing so, the footer stays in place while scrolling within the content of the second section as you can see in the jsfi... |
2018/03/17 | 3,083 | 11,043 | <issue_start>username_0: I've created this two extensions in Kotlin to Encrypt/Decrypt strings:
```
fun String.encrypt(seed : String): String {
val keyGenerator = KeyGenerator.getInstance("AES")
val secureRandom = SecureRandom.getInstance("SHA1PRNG")
secureRandom.setSeed(seed.toByteArray())
keyGenerat... |
2018/03/17 | 558 | 1,699 | <issue_start>username_0: How do I make this work?
`[Jack's Birthday](javascript:func("Jack)`<issue_comment>username_1: If possible, do it this way
```
function func(x) {
alert(x);
}
[Birthday](javascript:func('Norman\'S Birthday'))
```
Upvotes: 0 <issue_comment>username_2: Convert to NCR. This should work.
```... |
2018/03/17 | 653 | 2,042 | <issue_start>username_0: My bootstrap navbar toggle button stopped working after I restarted my PC. Ive tried to troubleshoot it but I could not find the problem. Here is my code:
```html
Ebere Orisi
[Ebere Orisi](https://blurpshell.github.io)
[IT SECURITY (current)](#itSec)
[SOFTWARE & WEB](#webDev)
[CON... |
2018/03/17 | 713 | 2,218 | <issue_start>username_0: It's works:
```js
var onChange = function (isVisible) {
console.log('Element is now %s', isVisible ? 'visible' : 'hidden');
if(isVisible = 'visible'){
//here I need add class
}
};
```
And the VisibilitySensor is in inside component **Needs** in div className =**Need**.
`... |
2018/03/17 | 265 | 963 | <issue_start>username_0: Getting error while loading css on angular5 with ngx-bootstrap
`Refused to apply style from 'http://localhost:3000/node_modules/ngx-bootstrap/datepicker/bs-datepicker.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.`
i have... |
2018/03/17 | 826 | 2,801 | <issue_start>username_0: thanks in advance your your help; I rather a newbie with RN and Android (i used create-native init to create project).
Issue 1: when i first `ctrl`+`M` and choose "Debug JS Remotely" it attempts [<http://10.0.2.2:8081/debugger-ui]> but hangs indefinitely.
Issue 2. and when I finally give up a... |
2018/03/17 | 1,021 | 3,612 | <issue_start>username_0: I am using Node.js to modify a html file which contains a lot:
```

```
how every I want to replace this part to :
```

```
The id attribute should be from 1 to 141 like: id="scene\_1, id="scene\_2"...
I wrote a program as blow:
```
var fs = requ... |
2018/03/17 | 776 | 2,300 | <issue_start>username_0: Based on the following information,
[](https://i.stack.imgur.com/VGFyD.png)
[](https://i.stack.imgur.com/LiX32.png)
we know that Java's `short` spans from `... |
2018/03/17 | 1,361 | 5,115 | <issue_start>username_0: When I click the raised button, the timepicker is showing up. Now, if I wait 5 seconds, for example, and then confirm the time, this error will occur:
**setState() called after dispose()**
I literally see in the console how flutter is updating the parent widgets, but why? I don't do anything -... |
2018/03/17 | 1,506 | 5,207 | <issue_start>username_0: I am new to React-Native and struggling to return objects from a nested array (Hopefully I am using the correct terminology).
I am grabbing my data from the tfl tube status api JSON is below:
```
[
{
"$type": "Tfl.Api.Presentation.Entities.Line,
Tfl.Api.Presentation.Entities",
"id"... |
2018/03/17 | 578 | 2,291 | <issue_start>username_0: I have a div with text, which I wanna truncate, after one remains only text which can fit. Code below. In internet I only found a plugins, that depends on JQuery, but I know, it possible to do with [Range](https://developer.mozilla.org/en-US/docs/Web/API/Range), if someone had experience, pleas... |
2018/03/17 | 768 | 2,828 | <issue_start>username_0: This table is displaying details about my workload table per row. And when I click my "pre-View\_attend" submit button I want to get the "WorkloadID" and "subjectID" of that workload row where the submit button was clicked.
Currently I have a hidden field containing the subject ID which is "su... |
2018/03/17 | 685 | 1,875 | <issue_start>username_0: I have a subquery that returns
```
one_id | two_id
--------------------
1654838 | 1526634
1657136 | 1526634
1659179 | 1526634
1659527 | 1526634
2040608 | 1510944
2040608 | 1516727
```
I have a table\_x like
```
one_id | two_id | other_column
------------------------------... |
2018/03/17 | 538 | 1,635 | <issue_start>username_0: how to do rounded tapers like this on sketchup 2018? What I did was, drawing the shape on both surfaces and tried deleting the surfaces. But it didn't create a new surface on taper. As you can see it has a hole, that you can see inside of that column, I want to fill it with a surface, so it can... |
2018/03/17 | 645 | 2,255 | <issue_start>username_0: I have created a thread with three steps to:
1. Access token request: it generates a token to be used in step three. This token is stored in a property
${\_\_setProperty(accessToken,${accessToken})}
2. Logon Get request to hit a url
3. Logon Post request, pass some data to the url and I have... |
2018/03/17 | 732 | 3,244 | <issue_start>username_0: I have an Azure function triggered by queue messages. This function makes a request to third-party API. Unfortunately this API has limit - 10 transactions per second, but I might have more than 10 messages per second in service bus queue. How can I limit the number of calls of Azure function to... |
2018/03/17 | 864 | 3,833 | <issue_start>username_0: Suppose I have a worker thread that populates a large vector declared in the main thread. While the worker thread is still running (in response to user interaction) I want the main thread to check if the vector has been populated up to a certain size. If it has I want it to extract some values ... |
2018/03/17 | 865 | 3,632 | <issue_start>username_0: I have this raw query but I'm struggling to convert it to eloquent. Below is my raw sql. I cannot use DB:select because i'm using paginate at the end.
```
select * from orders
join users on orders.user_id = users.id
where orders.id = $search
or orders.reference_no like '%$search%'
or users.nam... |
2018/03/17 | 430 | 1,311 | <issue_start>username_0: When I ran `flutter run` command this error appeared.
I am trying to use a `map_view`.
My Xcode version is 9.2
In file included from
>
> /Users/rsaivenkatesh/.pub-cache/hosted/pub.dartlang.org/map\_view-0.0.10/ios/Classes/MapViewPlugin.m:1:
> /Users/rsaivenkatesh/.pub-cache/hosted/pub.da... |
2018/03/17 | 323 | 1,310 | <issue_start>username_0: I have to run my logic for several times, based on test data.
Here, in some iterations few fields are optional so I get No element found exception but thats ok for me to pass the TC, so I want to continue my script.
And in next iteration my script should again look for that field, if its pres... |
2018/03/17 | 1,141 | 3,736 | <issue_start>username_0: I'm currently trying to implement **shortcuts feature** on the menu of my web based project. I had already implemented single or double shortcut key combination (like **`F1`, `CTRL` + `Q`** etc..,).
```
$("#MyField").keydown(function (eventData) {
if (eventData.keyCode == 112) {
... |
2018/03/17 | 625 | 2,286 | <issue_start>username_0: Pardon all the italic shouting. Just trying to emphasize key points. Please note that the existing post [iOS app submission and beta review process](https://stackoverflow.com/questions/38004875/ios-app-submission-and-beta-review-process) does not answer this question.
The following sequence of... |
2018/03/17 | 813 | 3,126 | <issue_start>username_0: Hello I am not good with ajax.I want to check my login info and return either 'success' or 'fail'.Buy my ajax seems to have an error.
```
var user = $('.username').value();
var pass = $('.password').value();
$.ajax({
type : 'POST',
url : 'login_check.php',
data : {
'username': user... |
2018/03/17 | 649 | 2,568 | <issue_start>username_0: How much time does it take to train a classifier in Watson? I uploaded around 500 images and it has been 48 hours and the module is still in training.
I am trying to differentiate plant leaves and thus gave images of plant leaves. Total file size is around 50MB.<issue_comment>username_1: I don... |
2018/03/17 | 718 | 2,571 | <issue_start>username_0: Is it possible to start emulator in such a way `flutter doctor` detects it and `flutter run` should able to deploy to flutter code ?
I tried `emulator -avd *image name*` but `flutter doctor` fails to detect running emulator and flutter run does not deploys code on emulator.<issue_comment>usern... |
2018/03/17 | 1,546 | 4,250 | <issue_start>username_0: I recently came across the website [StuffAndNonsense.co.uk](https://stuffandnonsense.co.uk/), which is a personal site for the digital designer <NAME>. I was astonished by it, using webpage technologies I didn't even know existed.
I looked into the styles and found this bit:
```
:root {
-... |
2018/03/17 | 750 | 2,377 | <issue_start>username_0: I am giving a homework exercise that the student can submit in singles or pairs. The solutions are submitted in a Google form with three fields: submitter1, submitter2 (optional), solution. The submissions automatically go into a Google spreadsheet with four columns: submitter1, submitter2, sol... |
2018/03/17 | 729 | 3,038 | <issue_start>username_0: I have an issue in asp.net Master page, I have 4 buttons as a menu bar and I need to change the color when a button is clicked , I have done this in java script , but when I am redirecting to the child page it is changing the color again to it's initial color.
ASP.NET CODE (button class and fo... |
2018/03/17 | 1,523 | 5,032 | <issue_start>username_0: When no other of these questions are helping me, then this means I need to remove and reinstall Android Studio.
Here's the error:
>
> Error initializing ADB: Unable to create Debug Bridge:
>
> Unable to start ADB server: adb server version (36) doesn't match this client;
>
> killing...... |
2018/03/17 | 1,850 | 6,170 | <issue_start>username_0: ```
deadcheck<-function(a,t){ #function to check if dead for specific age at a time age sending to function
roe<-which( birthmort$age[i]==fertmortc$min & fertmortc$max) #checks row in fertmortc(hart) to pick an age that meets min and max age requirements I think this cou... |
2018/03/17 | 1,699 | 5,689 | <issue_start>username_0: I have an integer array of size 4. I am adding elements to it via the add method. This is as an unsorted array. I am sorting it via the sort method shown in the code below. The sort method places the smallest number in the position a[0]. When I try to add elements after I call the sort method I... |
2018/03/17 | 323 | 1,140 | <issue_start>username_0: I want to replace all instances of substrings that match a regular expression with another string in C#. For example, the function call could look something like this:
```
inputString.Replace("foo*bar", "baz");
```
If the input string was (example only):
```
"foo2bar and foo2bax and fooTheQ... |
2018/03/17 | 823 | 3,269 | <issue_start>username_0: I'm trying to understand how to use axios (<https://cdnjs.cloudflare.com/ajax/libs/axios/0.17.0/axios.js>) within a function to talk to my own backend to get some data.
The code below works.
I need to define a global variable outside of the function to catch the result.
If I move the variab... |
2018/03/17 | 809 | 3,226 | <issue_start>username_0: I have a table `ABC` that has many columns, two of which are:
`ID - VARCHAR(10)` and `ROLE VARCHAR(10)`.
Now I have been trying to update the column `ROLE` using the `ID` and this is the query:
```
UPDATE TABLE ABC
SET ROLE='READ_ONLY'
WHERE ID='AB234PQR'
```
Now for some unknown reason... |
2018/03/17 | 791 | 3,155 | <issue_start>username_0: Take a look at this piece of code:
```
#include
using namespace std;
using ld = long double;
template
struct A {
static\_assert(false,"");
constexpr static int value = 3;
};
template
struct B {
constexpr static int value = i\*i\*i;
};
template
struct CheckVal {
constexpr static int va... |
2018/03/17 | 826 | 2,749 | <issue_start>username_0: I am trying to filter out `Guest` users in my Graph query. Since the `ne` comparison operator is not supported I was trying `$filter=userType eq 'Member' or userType eq null` instead. That fails too though. Any known workarounds to list users with `null` as `userType`?
Without that I need to d... |
2018/03/17 | 948 | 3,376 | <issue_start>username_0: I'm currently using a terminal and vim on OSX as a development environment for Flutter. Things are going pretty well except that the app does not reload when I save any dart files. Is there a way to trigger that behavior?Currently I have to go to the terminal and hit "r" to see my changes.<issu... |
2018/03/17 | 962 | 3,402 | <issue_start>username_0: Is there any way how make normal Map View in flutter. I need to have map ready when user opens the app. Only thing I saw, is that apptree plugin, but I could only make the map appear after user taps the button (and fullscreen, I need to put it into container). Basicaly what I need is some Map W... |
2018/03/17 | 1,082 | 3,581 | <issue_start>username_0: I am trying to match the following type of string:
Match
- 4738
- 3333
No match
- 0447 7474
9495 - 8485
/2848
/ 9949
- 584888
so i made this regex: `/^(- )?(?=\d{4})$/` but this doesnt match my target string: `- 8549`
this is data i need to analyse:
[![enter image... |
2018/03/17 | 153 | 614 | <issue_start>username_0: I am testing my Django API endpoints but I need to enable WSGIPassAuthorization to let Authorization header be received. Where should I enable it?
PS: I am on macOS, but any answer might be useful!<issue_comment>username_1: If you are using `mod_wsgi`, just install apache and use it inside you... |
2018/03/17 | 1,210 | 3,799 | <issue_start>username_0: ```
#include
#include
using namespace std;
using namespace std::chrono;
class rmq
{
public:
rmq() = default;
rmq(size\_t size) :m\_pData(new unsigned int[size]), m\_size(size) {}
~rmq(){ if (m\_pData)delete[]m\_pData;}
void populateValue() {
if (m\_pData) {
for (size\_t i = 0; i < m\_siz... |
2018/03/17 | 576 | 1,804 | <issue_start>username_0: I have a data frame that looks like this:
```
a b c
0 Alabama[edit] NaN NaN
1 Auburn (Auburn University)[1]
2 Florence (University of
3 Jacksonville (Jacksonville State
4 Livingston (University of
```
I'd like to add a column to the dataframe called 'State' that... |
2018/03/17 | 1,548 | 4,712 | <issue_start>username_0: I have made a map with `d3.js`and now I would like to color several countries one after another:
* at 1 seconde, I would like Spain to be in lets say red color,
* at 1.5 sec, France should be red (Spain should remain red)
* at 2 sec, Germany should be red (Spain and France should remain red)
... |
2018/03/17 | 804 | 3,397 | <issue_start>username_0: I have a `Form` in `Laravel` that submits with Ajax.every thing works well but the problem is that I can't render the validation's errors in HTML.
**(I want to display the errors in `*` in my HTML)**
>
> Here is my Ajax request:
>
>
>
```
$(document).ready(function () {
$("#su... |
2018/03/17 | 527 | 1,932 | <issue_start>username_0: My Professor kept telling us that she wants us to use the `System.lineSeparator();` to create an empty new line, she didn't specify any reasons, but basically said it was cleaner.
What's the difference and should I use it in the described manner over.
```
System.out.println("[your message]\n")... |
2018/03/17 | 761 | 2,583 | <issue_start>username_0: I am new to Rust and I'm working on a game with the Piston engine to wet my feet.
I want to render a bunch of entities using sprite sheets, but a lot of entities might share a sprite sheet so I would like to only load and store one copy of each file.
In pseudo code, my approach is basically l... |
2018/03/17 | 765 | 2,701 | <issue_start>username_0: I like to have no warnings in my code, however this jaxb class , which works well, does give class cast warnings common due to lack of jdk method variant. Is there any way to support all jaxb conversions without getting this warning. I use JAXBIntrospector rather than just Unmarshaller since so... |
2018/03/17 | 1,264 | 4,363 | <issue_start>username_0: I'm modifying several functions of some "core" JS software using "hijacking":
```
var orig_func = func; // initially function(a,b,c,d)
func = function(a,b,c,d) {
// modify arguments
d = someCustomization(c,d);
// do additional stuff
doSomethingCustom(a);
// apply the origi... |
2018/03/17 | 635 | 2,239 | <issue_start>username_0: If I hit tab multiple times to indent something, then I always get an anoying window showing up:
[](https://i.stack.imgur.com/vAtLi.jpg)
This is extremly annoying, how can I stop this?
UPDATE: I use Netbeans 8.2.
It seems t... |
2018/03/17 | 729 | 2,964 | <issue_start>username_0: I am trying to create a `table` class that extends `ArrayList`. In it, I would like to be able to create a `map` method that takes a lambda expression and returns a new `table` with the mapped values. I would also like to do this with `filter`. I use the map and filter a lot and I don't like ty... |
2018/03/17 | 730 | 2,829 | <issue_start>username_0: I am learning angular 5 ,I have copied this example from angular's official site.
```
import {Component} from '@angular/core'
@Component({
selector : "parent-onchange",
template :`
from parent componenet
Minor
Major
`
})
export class ParentCompOnChange{
sendMaj : 1;
sendMin : 23;
updateMin... |
2018/03/17 | 992 | 2,860 | <issue_start>username_0: Have two Dictionaries in Python and would like to make a join using a key.
The first dictionary "d" is OrderedDict like this:
```
[OrderedDict([
('id', '1'),
('date', '20170101'),
OrderedDict([
('id', '2'),
('date', '20170102'),
OrderedDict([
... |
2018/03/17 | 1,019 | 3,049 | <issue_start>username_0: ```
new = ['|<', '@', '1', '3', '7', '0', '8', '\/']
old = ['K', 'A', 'L', 'E', 'T', 'O', 'B', 'V']
ask_user = input("Type a sentence: ")
def ask_replace_letters():
ask_user = input("Do you want to replace letters? ").upper()
if ask_user == "YES":
ask_user1 = input("What letter... |
2018/03/17 | 493 | 1,674 | <issue_start>username_0: ```js
console.log(/\.js$/.toString() === '/\.js$/') // false
// or
console.log(/\.js$/.toString() == '/\.js$/') // false
// but
console.log(/\.js$/.toString()) // /\.js$/
console.log(/\.js$/.toString() === /\.js$/.toString()) // true
```<issue_comment>username_1: `\` is a special char in ... |
2018/03/17 | 522 | 1,713 | <issue_start>username_0: I have a file containing some data and I want to use only the first column as a stdin for my script, but I'm having trouble extracting it.
I tried using this
```
awk -F"\t" '{print $1}' inputs.tsv
```
but it only shows the first letter of the first column. I tried some other things but it ei... |
2018/03/17 | 1,461 | 4,813 | <issue_start>username_0: ```
#include
#include
#include
#include "linkedStack.h"
#include
#include
#include "ArgumentManager.h"
using namespace std;
int getPrecedence(char ch) //this function will decide and return precedence for the operators and operand
{
switch (ch)
{
case '/':return 2;
break;
case '\*': re... |
2018/03/17 | 1,076 | 3,836 | <issue_start>username_0: I'm trying to figure out how I can access flask db query all data passed to template from jquery function. I have a db table containing customer\_name and customer\_phone\_number. I pass this to template via flask view db query all. I iterate this and load customer\_name into dropdown, no probl... |
2018/03/17 | 1,863 | 6,589 | <issue_start>username_0: While compiling the following (reduced) code:
```
#include
#include
template struct tying;
template<> struct tying<1> {static auto function(auto& o) -> decltype(auto) {auto& [p1] = o;return std::tie(p1);}};
template<> struct tying<2> {static auto function(auto& o) -> decltype(auto) {auto& [... |
2018/03/17 | 1,394 | 5,200 | <issue_start>username_0: Is there any way to make this code compile or some other alternative.
This implementation is only a example.
```
namespace ConsoleApp3
{
using System;
public static class Temp
where T : struct
{
public static T DoSomething()
=> throw new NotImplementedException(); // common implem... |