date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/24
789
2,511
<issue_start>username_0: Q: List the numbers and names of all customers who are represented by <NAME> but who do not currently have orders on file. This is what I have so far... but it isn't the right output: ``` CREATE TABLE REP ( REP_NUM char(2) PRIMARY KEY, LAST_NAME char(15), FIRST_NAME char(15), STREET c...
2018/02/24
1,281
4,456
<issue_start>username_0: I will admit I'm stuck on a school project right now. I have defined functions that will generate random numbers for me, as well as a random operator (+, -, or \*). I have also defined a function that will display a problem using these random numbers. I have created a program that will gene...
2018/02/24
944
3,108
<issue_start>username_0: I have this code so far ``` (define (max f g) (define (int-max x y) (if (> x y) x y)) (lambda (x) (int-max (f x) (g x)))) ``` it gives me the error `define-values: assignment disallowed; cannot change constant constant: max` I'm not sure how to fix this or what it means.<issue_c...
2018/02/24
295
877
<issue_start>username_0: Given equation ``` x + y + z = 1 y = x ``` Then we can expression ``` z = 1 - 2x ``` And also this is valid as well ``` z = 1 - 2y ``` I hope to write this two equations in Sympy and **z** is only expressed in **x**. I know I can get this done by adding **y** as an unknown as well. ...
2018/02/24
360
1,202
<issue_start>username_0: This is a little background. In Army Aviation we have to conduct a Night Goggle (NG) flight at least once every 60 days. This date is gathered from the last time an NG flight is conducted in order to display and track currency with the mode. ![An image to help with my question](https://i.stack...
2018/02/24
698
2,515
<issue_start>username_0: I can't seem to understand why I can't get `.toFixed()` to work in my code. I've tried different variations but something is missing. I get the following error upon running the code. > > Uncaught TypeError: document.getElementById(...).value.toFixed is not > a function > > > My Code: ...
2018/02/24
586
1,753
<issue_start>username_0: I am using Scrapy and trying to scrape [this](http://pivdenoptika.com.ua/catalog/s_o_u_l_) url, when I request any data about the products on the page I get it out. But the div with the paginator class and id=paginator1 is returned as empty even though it is a table with references to next page...
2018/02/24
496
1,595
<issue_start>username_0: I have a code that takes inputs using the `readlines(prompt = )` function. Could you tell me which input function in Shiny will be adequate to adapt this code to a Shiny app? I need an interactive function, I can't use a simple input with `selectInput()` because I have a lot of `readlines(pro...
2018/02/24
871
2,917
<issue_start>username_0: I have three functions I'm looking to merge together. Each one takes an `std::function` as the first parameter, then executes it within a `try`/`catch` block. The issue is, there are three different types of functions. Functions with no parameters, those with one integer parameter, and those ...
2018/02/24
1,031
3,462
<issue_start>username_0: According to [cppreference](http://en.cppreference.com/w/cpp/types/is_convertible), `std::is_convertible< From, To >` should behave as if following imaginary function is well formed: ``` template < class To, class From > To test() { return std::declval< From >(); } ``` This implies, that...
2018/02/24
548
1,912
<issue_start>username_0: Beginner JAVA coder here and eager to learn. I have tried using videos and other sources to help me understand this concept, but I cannot seem to grasp it fully. I have the following code: ``` for(int i=1; i<3; i++) { for(int j =1; j<=3; j++{ System.out.println(i+j); } } ``` ...
2018/02/24
535
2,236
<issue_start>username_0: Got the real dilemma. I have an init function which has lots of parameters inside which are depended on each other and can't be remove outside, an array of elements and added to each a click event listener. This event listener checks if the clicked element is a certain element then remove the c...
2018/02/24
1,220
4,226
<issue_start>username_0: Can't read a file in google colaboratory . I have .ipynb file and .csv files in the same directory but when I try to run: ``` train = pd.read_csv("train.csv") ``` I get: ``` FileNotFoundError: File b'train.csv' does not exist ``` [![enter image description here](https://i.stack.imgur.co...
2018/02/24
785
3,042
<issue_start>username_0: I know that a `ViewController` will have its `deinit` method called once it is no longer needed (e.g. after an unwind segue and subsequent dismissal). But I was wondering what the behavior of `deinit` was in the context of the application lifecycle. My questions ------------ 1) When (which a...
2018/02/24
605
1,851
<issue_start>username_0: Ultimately I want to calculate the number of days to the last day of the month from every date in `df['start']` and populate the `'count'` column with the result. As a first step towards that goal the `calendar.monthrange` method takes (year, month) arguments and returns a (first weekday, numb...
2018/02/24
688
2,499
<issue_start>username_0: In my use case I have user-entered data, shown as rows in a table, say items with a monetary value. A good example would be cars each with a retail value. I then give the user an additional column to enter their own adjusted values so that they can see the sum of their adjusted values beside th...
2018/02/24
831
2,763
<issue_start>username_0: I frequently write research papers that require in-text citations as numbers in brackets - for example: "This is a quote [1]." As I write the papers, I use letters instead of numbers so I can find & replace later, since I'm likely to add in citations here and there, I don't want to have to ren...
2018/02/24
587
2,354
<issue_start>username_0: For Postgresql Functions (Stored Procedures): I want a stored procedure to be able to return different table structures based on a parameter that is passed. Rough Example: ``` CREATE OR REPLACE FUNCTION getMyinfo(emp_id varchar, inc_status) RETURNS TABLE [don't know how to set this...???] A...
2018/02/24
1,500
5,279
<issue_start>username_0: I am using the below code to get a chrome extension(Browsec VPN) to open and automate specific site that must has to open on VPN - My code is able to launch the browser with extension but the extension is always in disable mode - I need to get it in enable mode. Please help! Thank you ``` pack...
2018/02/24
512
1,723
<issue_start>username_0: I'm trying to login to my MySQL database through Windows 7 command line. After I run `mysql`, I get confirmation that MySQL is set up on my PC. However, when I write `-u root -p` or `mysql -u root -p` and hit `ENTER`, the cmd just starts on a new line without executing my code. So it looks li...
2018/02/24
1,074
4,108
<issue_start>username_0: newbie to Androdi Studio here, I've encountered a problem which is usually very easy to solve, but it's hard this time, I don't know what I'm missing. I'm getting my Key here by throwing it in as an extra: (I'm using firebase as my DB) ``` DatabaseReference mChildDatabase = mDatabaseRef.child...
2018/02/24
1,331
4,266
<issue_start>username_0: I just tried to compile the following code: ``` import cats.Monoid import cats.instances.boolean._ // for Monoid import cats.instances.int._ // for Monoid import cats.instances.list._ // for Monoid import cats.instances.string._ // for Monoid import cats.syntax.apply._ // for imapN import cats...
2018/02/24
2,406
7,688
<issue_start>username_0: I just finished writing a code that implements two stacks in one array, and my teacher wants us to print the source code along with the output and hand it in on paper. I was having a hard time just sending the console to a pdf so I said what the hell i'll also start learning how to write to a f...
2018/02/24
889
3,782
<issue_start>username_0: The title really says it all. Can anyone point me to where I could find descriptions of the different regex types available to the find command. I'm able to find a list of them but no explanations or comparisons. In particular, what could the difference be between 'posix-egrep' and 'posix-exten...
2018/02/24
824
2,148
<issue_start>username_0: I have an image as below. It is 256\*256 pixels. Let's assume that it's bottom left corner is at 0,0. From that image, I want to create multiple images as follows and save them in the working folder. Each image will have size of 8\*8 pixels. Each image will be saved by its bottom left-hand coor...
2018/02/24
1,096
2,942
<issue_start>username_0: I am trying to pull a sting variable and place it in a shape function so that the correct state will appear. I have a single (hard-coded) version working but am trying to make the code efficient and more dynamic by adding a loop. See the code below: ```java PShape usa; PShape Alabama; PShape...
2018/02/24
908
2,585
<issue_start>username_0: I can't fill the password in the password field. I am not sure where am I wrong. The current code that I am using is filling the password in the same field with the email address. I am using the following code: ``` using System; using Microsoft.VisualStudio.TestTools.UnitTesting; using OpenQA...
2018/02/24
1,183
3,931
<issue_start>username_0: Currently I have a Python program (serial) that calls a C executable (parallel through MPI) through subprocess.run. However, this is a terribly clunky implementation as it means I have to pass some very large arrays back and forth from the Python to the C program using the file system. I would ...
2018/02/24
1,138
3,536
<issue_start>username_0: How can i run periodic job in background on EMR cluster? I have script.sh with cron job and application.py in s3 and want to run cluster with this command: ``` aws emr create-cluster --name "Test cluster" –-release-label emr-5.12.0 --applications Name=Hive Name=Pig Name=Ganglia Name=Spark -...
2018/02/24
1,340
4,255
<issue_start>username_0: Pandas seems to resist efforts to use DataFrame index values as if they are column values. As a result I am often copying them into a column so that I can reference them for calculations. Is this a good practice? Or am I missing a "correct" way to reference index values? Consider the following...
2018/02/24
1,061
3,289
<issue_start>username_0: I had a task and I found a perfect solution, though i don't really understand how that works. Can anyone help me to explain that in details? Especially this one `(countsMap, item) => countsMap.set(item, countsMap.get(item) + 1 || 1)` ``` var testArray = ["dog", "dog", "cat", "buffalo", "wolf"...
2018/02/24
787
3,165
<issue_start>username_0: I'm new to React JS, I want to create a ToDo list app. I have `App.js` which is the main page and so I have created `MainBlock` component for `App.js` page which holds left and right side of my layout and in right side property it loads `Form` component which has `input` and `button` and saves ...
2018/02/24
415
1,628
<issue_start>username_0: I am new to ReactJS : i declare class like ``` var quiz=React.createClass{}.. ``` this won't work unless I change the variable to Quiz..only then it will work. I am wondering is this requirement or may be I am missing out something? I am using jsx and coding in sublime text<issue_comment>use...
2018/02/24
1,303
4,128
<issue_start>username_0: I am trying to upload files using php on my local server and save it in the current working directory.The code is working fine for any file type of size less than 2mb but above this size it gives error. I have also modified the upload and post size in php.ini file,but it was of no help.It gives...
2018/02/24
1,069
2,974
<issue_start>username_0: I want to draw from a bag of colored marbles without replacement following some simple rules. There are multiple marbles of the same color (e.g., 5 blue, 3 red, 7 yellow, 4 green). Let say I draw 3 marbles, one marble at a time. After each draw, I remove all marbles of that color. E.g., I pick ...
2018/02/24
1,678
6,376
<issue_start>username_0: I've been stuck on this problem for a couple hours. I'm new to django and automated testing, and I've been playing around with Selenium and django's StaticLiveServerTestCase. I've been trying to test my login form (which works fine when I use runserver and test it myself, by the way.) Everythi...
2018/02/24
1,146
4,365
<issue_start>username_0: I've came to a point where I must decide which method to use: I made a **ChangePassword.php** file, where I validate the datas and then change the password. Which is better? * A: More queries and more accurate error handling or * B: Less queries but maybe it's faster in a bigger scale (lot ...
2018/02/24
1,274
3,772
<issue_start>username_0: I'm currently trying to figure out how to parse a csv string into an object that will allow me to go to a customers name in the first object and then being able to access the said customers information in a sub array based off of which name. ``` csvString = "roll R coaster,0124454,20.21\n ```...
2018/02/24
633
1,904
<issue_start>username_0: is't possible to set 2 counts in the same row. my result from query is like this: [enter image description here](https://i.stack.imgur.com/LAsHx.png) and i will that the end result seem like this : [enter image description here](https://i.stack.imgur.com/QFe5C.png) and at the end build the pre...
2018/02/24
485
1,302
<issue_start>username_0: I have an integer list that is supposed to represent binary: ``` x = [1, 0, 1, 1, 0, 0, 0, 0] y = ''.join(x[:4]) ``` I can't seem to join it, I get 'sequence item 0: expected str instance, int found' However if I do ``` x = [str(1), str(0), str(1), str(1), str(0), str(0), str(0), str(0)] y...
2018/02/24
506
1,456
<issue_start>username_0: I have recently started to use Colaboratory and I am trying to create a new notebook. But when I try to Open new notebook (New Python 3 notebook) if fails with this error message: Notebook loading error There was an error loading this notebook. Ensure that the file is accessible and try again...
2018/02/24
3,013
11,539
<issue_start>username_0: Using ASP Core 2 with EF Core and SQL Server. I have, what I think is a straightforward task of retrieving a list of manufacturers (or individual manufacturer) for a given distributor. The Users table provides the authenticated user and each is associated with one distributor (and represented ...
2018/02/24
642
2,199
<issue_start>username_0: I'm following a course online and one of the challenges is this: **Write a function called extractKey which accepts two parameters, an array of objects, and the name of a key and returns an array with just the values for that key: You must use reduce.** ``` extractKey([{name: "Elie", isInstru...
2018/02/24
689
2,604
<issue_start>username_0: Suppose I am using SQL and I have two tables. One is Company, the other is Employee. Naturally, the employee table has a foreign key referencing the company he or she works for. When I am using this data set in my code, I'd like to know what company each employee works for. The best solution I...
2018/02/24
2,042
8,648
<issue_start>username_0: I know there are several questions posed about this very same thing but none of which seems to help me. I'm trying to do a .RemoveRange() and every question I've been seeing has to do with edits and adds. Here's the relevant bits of the method in which the exception is getting thrown: ``` pub...
2018/02/24
1,185
4,394
<issue_start>username_0: I have: *Module 1*: * provides type `Module1.type1`, its constructor, and some functions that accept and return `type1` *Module 2*: * `open Module1` * `open Module3` * provides type `Module2.type2`, also has functions that accept `type1` and `type3` as params *Module 3*: * `open Module1`...
2018/02/24
3,945
15,126
<issue_start>username_0: I'm probably missing something obvious here, but my BottomSheet only takes up the bottom half the screen, even though the widgets in it take up more space. So now there is scrolling behavior inside the BottomSheet. I'd like to be able to increase the BottomSheet so that the user doesn't have to...
2018/02/24
3,850
14,662
<issue_start>username_0: Why bind function stops working for the following code? ``` function exitHandler(options, err) { console.log('exit'); if (options.cleanup) console.log('clean'); if (err) console.log(err.stack); if (options.exit) process.exit(); } //do something when app is closing //process.on('exit',...
2018/02/24
3,880
14,637
<issue_start>username_0: MvvmCross.Droid.Support.v7.AppCompat 5.6.3 Depends on Xamarin.Android.Support.v7.AppCompat (>=25.3.1) Xamarin.Android.Support.v7.AppCompat 26.1.0.1 Depends on MonoAndroid, Version=**v8.0** MvvmCross.Plugin.Location.Fused 5.6.3 Depends on MonoAndroid,Version=**v0.0** Questio...
2018/02/24
1,860
5,560
<issue_start>username_0: I am working on a color picker for my image generation program, and im trying to make a color picker box like this: ![Goal](https://i.stack.imgur.com/4urRY.png) Here is the code I have so far: ``` RenderWindow colorPicker(VideoMode(255, 255), "Color Picker"); vector pixels(255\*255); int j,...
2018/02/24
437
1,599
<issue_start>username_0: ``` CREATE TABLE Customer ( customerID INT PRIMARY KEY, customerName VARCHAR(50), customerAddress VARCHAR(200) NOT NULL UNIQUE, customerCity VARCHAR(50), customerState CHAR(2), customerPostalCode CHAR(5) ); CREATE TABLE Order ( orderID INT PRIMARY KEY ); ``` The f...
2018/02/24
400
1,407
<issue_start>username_0: I am developing an opensource and multi-platform. I run tests on Travis to test and generate builds on these different platforms. To use multiple OS's I have the following in my `travis.yml` file: `matrix: include: - os: linux dist: trusty sudo: required language: python python: 3.6.2 ...
2018/02/24
735
1,769
<issue_start>username_0: I have a simple data frame `dxr`: ``` x y 1 696 1.8095105 2 1916 1.3033796 3 2244 1.4650009 4 2652 1.1438132 ``` I want to calculate the area of the triangle formed by every three adjacent points. What I try is: ``` dxr <- mutate(dxr, xlag=lag(x), ylag=lag(y), xlea...
2018/02/24
732
2,235
<issue_start>username_0: I have below yaml file for creating ReplicaSet. ``` apiVersion: apps/v1beta1 kind: ReplicaSet metadata: name: kubia spec: replicas: 2 selector: matchLabels: app: kubia template: metadata: labels: app: kubia...
2018/02/24
646
2,118
<issue_start>username_0: Visually this project is just a pyramid of Bootstrap columns. But due to the nature of how bootstrap classes are named, some colors are overriding others. The order should be green->blue->purple. But right now it is green->purple->green. The innermost column controls the color of the column, wh...
2018/02/24
769
2,598
<issue_start>username_0: I have installed Freeswitch (centos7) on a Google Cloud VM. This is just a test instance. Haven't made any changes to the config yet. The server starts up fine but I can't get any audio through while testing. Have opened the firewall as per the link: <https://freeswitch.org/confluence/display...
2018/02/24
1,748
4,872
<issue_start>username_0: I have my first serious question in python. I have a few nested lists that I need to convert to pandas DataFrame. Seems easy, but what makes it challenging for me: - the lists are huge (so the code needs to be fast) - they are nested - when they are nested, I need combinations. So having this...
2018/02/24
1,146
4,258
<issue_start>username_0: I am using PHP Version 7.1.9 and what I am doing is returning some rows from a MySQL table, the return data looks like the following: ``` +-------------+-------+-------------+------------------+---------------------------+ | sequence_id | title | description | customer_type_id | customer_type_...
2018/02/24
768
2,959
<issue_start>username_0: In my iOS project, I am using Firebase to create a real time database. I have already [imported it](https://i.stack.imgur.com/DFg9s.png) in the AppDelegate.swift. ![imported it](https://i.stack.imgur.com/DFg9s.png) When trying to reference my database within the app, an [error](https://i.sta...
2018/02/24
2,650
6,275
<issue_start>username_0: I am trying to make my code more efficient by reducing the number of conditional statements as I am going to write the code in assembly in the future. Do you guys see any way to reduce the statements to be more efficient? ``` if (j==18) { store=12; } else if(j==30) { store=10; } else i...
2018/02/24
380
1,507
<issue_start>username_0: I'm trying to see if a business name matches with a previous business name and if it does break the iteration, if not continue with the iteration. **The problem** It is ignoring the break and I still see duplicates. **run.py** ``` def parse(self, response): for business in response.cs...
2018/02/24
584
1,684
<issue_start>username_0: My tests run fine with the following in the pom.xml: ``` info.cukes cucumber-java 1.2.5 info.cukes cucumber-junit 1.2.5 ``` the scenario and steps show fine: ![steps execution showing beautifully](https://i.stack.imgur.com/EtiNe.png) But if I move to newer: ``` io.cucumber cucu...
2018/02/24
577
1,841
<issue_start>username_0: I have a Symfony 3.4 app and FOSUserBundle installed with it. I deployed the app to Compute Engine instance. However, when I try to send emails after each registration, I get the following error. ``` Exception occurred while flushing email queue: Connection could not be established with h...
2018/02/24
1,828
6,471
<issue_start>username_0: I hope I post that question in correct place. Since a few days I have a problem with Netbeans 8.2 (fresh installation) Java 1.8.0\_162. Operating system: Windows 7/10 . The problem occurs on three different computers. Steps to reproduce: * Open any file in Netbeans IDE (the editing caret i...
2018/02/24
969
2,980
<issue_start>username_0: I'm writing data into a file that can be opened on multiple computers. The issue is that when I format floating point numbers with the "%f" formatting flag, `printf` variants of the function (`wprintf`, `CString::Format`, `StringCchPrintf`, etc.) make it locale specific. For instance: ``` dou...
2018/02/24
1,351
4,505
<issue_start>username_0: Decompile Scala code: why there are two overridden methods in the derived class? ``` class A { private var str: String = "A" val x: A = this override def toString(): String = str def m1(other: AnyRef): AnyRef = { println("This is A.m1(AnyRef)") other } } clas...
2018/02/24
2,414
9,620
<issue_start>username_0: I know, global variables are "not sexy", but I have few in my current project. I played around with Xcode's Thread Sanitizer and found a data race on them. So I tried to make them thread safe. As I also want a single point of management for this variables. I tried to do the GCD stuff in getter...
2018/02/24
1,665
5,434
<issue_start>username_0: I have a problem on the java conversion of the dates. I have input a String, YYYYMMDD, that converts to long and by executing the code the output is wrong ``` try { //Current date to dd-mm-yyyy Date currentDate = new Date(20161205); //or DateFormat df = new ...
2018/02/24
468
1,751
<issue_start>username_0: 2 weeks ago I found out i couldn't solve this and went to google for a solution which dind't really give me one, maybe the wrong type of googling not sure. Let me get to the point. I got this piece of html and vue which makes dynamically a extra phone field when a button is pressed. the thing ...
2018/02/24
422
1,614
<issue_start>username_0: I get following error when I run `react-native run-android` in CMD(windows command prompt) ``` Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: ...
2018/02/24
532
2,106
<issue_start>username_0: I have a double free bug using std::shared\_ptr and trying to get know why. I am using shared\_ptr in multithread environment , one thread sometimes replaces some element in a global array ``` std::shared_ptr globalTable[100]; // global elements storage ``` using: ``` globalTable[idx].rese...
2018/02/24
580
2,211
<issue_start>username_0: I want to click on one of the data lists and change the green color when the id matches what we clicked in React Native. so, if i click callCircleButton in id 1 and just id 1 that change icon with name Following my code: ``` constructor(props) { super(props); this.state = { ...
2018/02/24
714
2,738
<issue_start>username_0: I want to display all items in my array monthDays with map. The problem is that i need to execute some logic in a componetWillMount to creact the array by pushing items to it in a loop. The alterations that i made in the componetWillMount are not afecting the array in the constructor. ...
2018/02/24
1,666
5,104
<issue_start>username_0: Is there a way to get 2 column layout that is transformed to a 1 column layout with a media query? Conditions for 2 column layout: 1. items should flow one after another within columns 2. items within columns will have different heights 3. item position (order) can be imposed by html markup e...
2018/02/24
8,929
34,078
<issue_start>username_0: I want to make a simple notification feature in my app. I followed [this](https://www.youtube.com/watch?v=mz4VcuR0-qA) YouTube video and both of these Firebase documentation URLs [1](https://firebase.google.com/docs/cloud-messaging/android/first-message) and [2](https://firebase.google.com/docs...
2018/02/24
805
3,016
<issue_start>username_0: I am using yarn workspaces and I have this packages in my package.json: ``` "workspaces": ["packages/*"] ``` I am trying to create a docker image to deploy and I have the following Dockerfile: ``` # production dockerfile FROM node:9.2 # add code COPY ./packages/website/dist /cutting WOR...
2018/02/24
793
2,852
<issue_start>username_0: The objective is to create multiple sliders on the page by linking the slider to something. The slider must be activated by clicking or hovering the slider anchor. `sliderList` would be a array for making this process easier so i wouldn't have to link each other manually on the configs js file....
2018/02/24
738
2,467
<issue_start>username_0: I'm working in IntelliJ IDEA cleaning up some Javascript code to match [a code style standard](https://github.com/airbnb/javascript#comments--multiline). My goal is to change this: ``` // A comment // About some things // That spans multiple lines ``` into this: ``` /** * A comment * ...
2018/02/24
1,311
2,947
<issue_start>username_0: I have a numpy array ``` np.array([[1,4,3,5,2], [3,2,5,2,3], [5,2,4,2,1]]) ``` and I want to clone items by their indexes. For example, I have an index of ``` np.array([[1,4], [2,4], [1,4]]) ``` These correspond to the positions of the items at ea...
2018/02/24
1,169
2,675
<issue_start>username_0: The assignment is to write a program for this "Input 2 integers and add up all the numbers between them. If there is no room betwen them, output a 0." I'm still very new to loops and I understand while loops so I want to use one. I'm not sure I understand how a for loop works mechanically and ...
2018/02/24
1,233
2,823
<issue_start>username_0: I have a homework problem I have been having a lot of trouble with. I will type the exact wording for the problem here: > > Given k sorted lists L1, L2, ... , Lk of n/k numbers each with 1 <= k > <= n, design a divide-and-conquer algorithm to sort all n numbers in > the k sorted lists. Your...
2018/02/24
1,337
3,112
<issue_start>username_0: I am trying to have multiple scripts run in my html sheet, and it seems to not be working. All the other scripts work except for the script for the blinking function. I don't see what the problem is. Can you find the issue with my code? Thanks in advance! Here is my code below: ``` body { b...
2018/02/24
1,308
3,119
<issue_start>username_0: I have CUDA 8.0, and I can download cuDNN. Currently, I have cuDNN version 7.0.5 for Linux. I do not have administrator privileges. When I tried to install TensorFlow version 1.4 for GPU, I got this error: ``` ImportError: libcudnn.so.6: cannot open shared object file: No such file or dir...
2018/02/24
773
2,921
<issue_start>username_0: I've been banging my head against the wall trying to get this to work, any advice? I'm using react with flow here. I am having quite a fight understand this code annotation stuff and i am learning at the same time. At first it was overwhelming but after i spent some time on google searching for...
2018/02/24
837
3,263
<issue_start>username_0: The following code is a part of a java program for making predictions with inception v3 model using Tensorflow library. ``` private static float[] executeInceptionGraph(byte[] graphDef, Tensor image) { try (Graph g = new Graph()) { g.importGraphDef(graphDef); try (Session s...
2018/02/24
1,087
3,418
<issue_start>username_0: I have an array that looks something like this: ``` array:2 [ "test1_test2_test3" => "result" "category_slug" => "the_slug" ] ``` What I need to do is convert it to a multidimensional array that would look something like this: ``` array:2 [ "test1" => [ "test2" => [ ...
2018/02/24
386
1,407
<issue_start>username_0: How do I activate existing HTML button, say running the onClick function in specific button? When using document.getElementById("Button ID").onclick I get the function with the parameters, like the following example. but how do I run the function? **Example**, the document.getElementById("Bu...
2018/02/24
369
1,479
<issue_start>username_0: I'm decoding a string version of a decimal that I want to be formatted and returned as a `Double`: ``` let str = "0.945404" let numberFormatter = NumberFormatter() numberFormatter.maximumFractionDigits = 2 numberFormatter.roundingMode = .halfUp numberFormatter.numberStyle = .decimal print(num...
2018/02/24
622
2,267
<issue_start>username_0: I'm wondering if there is a way in Vue.js to make this code : ``` Username Email ``` Looks something like this: ``` Username Email ``` so we can call template by their Ids In my case I wanted to use it in events : ``` welcome {{ username }} You have full access {{ username...
2018/02/24
480
1,783
<issue_start>username_0: Does DART support predefined macros such as: ``` __LINE__ ``` or ``` __FUNCTION__ ``` The reason for asking is that the transformer DART2JS makes the console log not useful as all the logs shows: js\_primitives.dart:30 [update BasE] When using the transformer dart2js, `print("hello worl...
2018/02/24
383
1,198
<issue_start>username_0: Consider `a.c` as containing: ``` void _start(void); void _start(void) { while (1); } ``` With `gcc 5.4.0` on `Ubuntu`, the following command generates an `ELF` file with type `EXEC` and no external dependencies: ``` gcc -o ./a -x c ./a.c -nostartfiles -nostdlib -nodefaultlibs ``` However...
2018/02/24
627
2,151
<issue_start>username_0: I want to add Full Page Transition to my project to look like Single Page Application, but I'm stuck. I tried a lot of things with transform: `translateX` and `transition` and `display: none`, but it doesn't work properly as I want.. ```js var firstDiv = document.querySelector('#first'), ...
2018/02/24
585
2,078
<issue_start>username_0: In the Exam1 table, ID, examname, and exam\_id values are added fine. But when I try to use the UPDATE query to update the points to another table (Question), it does not work. ``` for($i = 1; $i<$arraysize; $i++){ //For every question $questionid = $array[$i]['questionid'...
2018/02/24
424
1,555
<issue_start>username_0: So, I had this idea of creating an app for my college attendance. The thing is that the attendance is accessible as students login the online portal and then enter their credentials. Is there any way I can login to the portal, fetch content from the portal and show in my app in a beautiful way?...
2018/02/24
366
1,301
<issue_start>username_0: Im trying to make it when you click on a link in my UL it will open a simple popup box with a few line of text in that popup box. ``` * [About](#introduction) * [Portfolio](#one) * [Contact](#) * [Resume](#) ``` So here is my UL code. I would like it for when someone clicks on "Contact" in...
2018/02/24
494
1,734
<issue_start>username_0: Introduction: Main Repo: `Repo1`. After forking it, my repo is : `ForkedRepo1` In Eclipse-Git, I cloned my `ForkedRepo1`. Until Thursday, I was able to commit & push without any issue. Then suddenly, on Thursday, I got the error: ``` Cannot get remote repository refs Reason: ssh:// ``...
2018/02/24
513
1,327
<issue_start>username_0: I'm trying to show the fontawesome icons in a select, but in the drop-down list the icons are not previewed well ```css .FontAwesomeSelect { font-family: Font Awesome\ 5 Free; font-size: 18px; } ``` ```html ----     ``` [![Result:](https://i.stack.imgur.com/o9ecn.p...
2018/02/24
1,718
6,845
<issue_start>username_0: Good day! I've run into a head burner. My client requires me to repurpose a python program to work with MySQL instead of Microsoft's SQL Server. I'm having trouble finding an equivalent solution in SQL. I can't seem to create a proper update lock on a row. When two identical transactions exec...
2018/02/24
674
2,638
<issue_start>username_0: I am trying to generate an EPOCH value. I am using the following: ``` int currentEpoch = ((int) System.currentTimeMillis()) / 1000; Log.v("EPOCH", String.valueOf(currentEpoch)); ``` Below is my log: [![enter image description here](https://i.stack.imgur.com/aT6KB.png)](https://i.stack.img...
2018/02/24
1,184
4,625
<issue_start>username_0: So this is what I am trying to do - I want everytime the user selects a different option at the 'select', a different function would be activated. Each 'selected:option' has a different function. It might be easier to understand with the following code: ``` $('.edd-variable-pricing-switcher')....