date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
1,725
5,905
<issue_start>username_0: My question's header is similar to [this link](https://stackoverflow.com/questions/45133700/c-simple-dice-roll-how-to-return-multiple-different-random-numbers), however that one wasn't answered to my expectations. I have an array of integers (1 000 000 entries), and need to mask **exactly** 30...
2018/02/28
446
1,513
<issue_start>username_0: I have an impression event table that has a bunch of timestamps and marked start/end boundaries. I am trying to roll it up to have a metric that says "this session contains at least 1 impression with feature x". I'm not sure how exactly to do this. Any help would be appreciated. Thanks. [![ent...
2018/02/28
264
1,019
<issue_start>username_0: I'm trying to connect to my MongoDB database (or to the server actually MongoLab), it works fine when I have the code in `name.js` file but it doesn't work when I have it in HTML file inside<issue_comment>username_1: Perhaps aggregation does what you want: ``` select account, min(timestamp), m...
2018/02/28
1,261
3,572
<issue_start>username_0: First off thanks for any help! I have an xml that looks like this: ``` xml version="1.0" encoding="ISO-8859-1"? 502 WCBSDT 502 WCBSDT NBA Basketball Boston Celtics at Houston Rockets From the Toyota Center in Houston. Sports Basketball 120 https://tvlistings.zap2it.com//overview....
2018/02/28
1,005
2,984
<issue_start>username_0: Am generating a text file using python script like below ``` (1,2,3)(4,5,6) ``` If I need to split this to 2 lines with delimiter, how can i do that. I need the text file to be like ``` (1,2,3) (4,5,6) ``` Thanks<issue_comment>username_1: So if we have the XML string in `$string`, w...
2018/02/28
495
1,800
<issue_start>username_0: I apologize for the simple question, but I'm pretty new to web development and JavaScript. I want to import a package I've installed using npm, specifically shopify-buy following the guide here: <https://shopify.github.io/js-buy-sdk/> The package is in my node\_modules folder and I'm trying t...
2018/02/28
899
3,490
<issue_start>username_0: I am using `RxBinding` to validate form inputs. the problem is when I try to use the `debounce()` operator as below the app misbehaves, it does not crash but the app restarts just after I open the activity that calls `setupForm()` **without showing any sign of crashing.** when I remove the `d...
2018/02/28
371
1,373
<issue_start>username_0: This error shows when I try to run a vue init webpack command. vue-cli · Failed to download repo vuejs-templates/simple: unable to verify the first certificate Pls help! I want to proceed and learn vue. Thanks in advance!<issue_comment>username_1: The problem here seems to be the environment...
2018/02/28
935
3,295
<issue_start>username_0: I'm really new to pl/sql. I'm trying to do a Trigger like this one (adr = after delete row) but it seems that I can't use ALTER SEQUENCE. Is this the right way of decrementing after a row is deleted or should I use a procedure? ``` CREATE OR REPLACE TRIGGER adr_trg AFTER DELETE ON table FOR EA...
2018/02/28
183
752
<issue_start>username_0: I'm trying to create a full screen `PopupWindow` and avoid the back button from dismissing it but from what I've been seeing it looks like the two are mutually exclusive. I've created the `PopupWindow` using `LinearLayout.LayoutParams.MATCH_PARENT` for both `width` and `height`. I also set it t...
2018/02/28
1,239
3,894
<issue_start>username_0: I am trying to @vectorize some python through CUDA. I'm running Python3 in atom with Cuda9.1, Anaconda3, and have a similar problem to this: [Cuda: library nvvm not found](https://stackoverflow.com/questions/48385686/cuda-library-nvvm-not-found) but that solution is for linux and I'm on win...
2018/02/28
345
1,196
<issue_start>username_0: The problem I'm running into is that my compiler states that 10 is out of bounds. But how can it be out of bounds if that is the array length i am setting it to? ``` public class InitArray { public static void main ( String [] args){ int arrayLength = Integer.parseInt(args[10]); //set ar...
2018/02/28
591
2,048
<issue_start>username_0: I am new to HTML and CSS so sorry if this has been posted before. I am building tags for a new website that tracks the number of times sections on a page have been viewed. The names of the sections are contained in a variable called "innerHTML" of the h2.title. I can't seem to push this into ...
2018/02/28
1,579
5,834
<issue_start>username_0: I have this React-Native app, which fetches a list of items, and then, an image gallery for each of those items. So basically, I have two ajax function, and the second one needs the list of items fetched in the first function. I make the first invoke in componentDidMount(), but I don't know how...
2018/02/28
707
2,452
<issue_start>username_0: Ok I have two mysql table one called books and the other reading\_tracking. I have written the join query below: `$query = "SELECT * FROM books inner join reading_tracking on book_num = book_id;` My dilemma is that i don't want all the from books i want a query which in theory would loo...
2018/02/28
685
1,947
<issue_start>username_0: I have the string '**1\_A\_B\_C\_D\_E\_1\_2\_3\_4\_5**' and I am trying to extract the data '**A\_B\_C\_D\_E**'. I am trying to remove the **\_1\_2\_3\_4\_5** & the **1\_** portion from the string. Which is essentially the numeric portion in the string. any special characters after the last alp...
2018/02/28
449
1,196
<issue_start>username_0: I want to create a table with all the dates between a start date and end date. What's the best way to do this without listing every date out in the insert? for example: start date is 1/1/2018 and end date is 1/4/2018 then the resulting table should be: ``` date ------ 1/1/2018 1/2/2018 1/3/...
2018/02/28
565
1,932
<issue_start>username_0: ``` JSONObject data = response.getJSONObject("data"); Iterator x = data.keys(); JSONArray jsonArray = new JSONArray(); while (x.hasNext()){ String key = (String) x.next(); jsonArray.put(data.get(key)); } L...
2018/02/28
581
1,951
<issue_start>username_0: Two tables - 'salaries' and 'master1' The salaries is by year, and I can group them to get the sums for each player using ``` SELECT playerID, sum(salary) as sal FROM salaries GROUP BY playerID ORDER BY sal DESC LIMIT 10; ``` This returns the playerID and sum of salary, but I need the n...
2018/02/28
845
3,299
<issue_start>username_0: Here it is giving error as method must return Integer even though registerUser in userCreationDao returns Integer itself. ``` public Integer registerUser(User user) { try{ return userCreationDao.registerUser(user); } catch(Exception e){ e.printStackTrace(); } } ```...
2018/02/28
1,604
5,105
<issue_start>username_0: please don't scream on me, when I run the following code, which is used to calculate area of rectangle but app keeps crashing *The app code:* ``` package com.example.xxxxxxx.reccalc; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.EditText; ...
2018/02/28
244
898
<issue_start>username_0: Just looking for some help to change this HTML markup with jQuery. 1. When this appears: ``` XXXXXXXXXXXXXXXXXXX ``` use jQuery on doc ready to convert it to: ``` ``` 2. Also, XXXXXXXXXXXXXXX external script reference to load an embedded widget, will it run/fire after the document has alr...
2018/02/28
697
2,262
<issue_start>username_0: I have this code below to create a custom post type. ``` function custom_post_type() { register_post_type('multi-step-form', array( 'supports' => array('title'), 'public' => false, 'show_ui' => true, 'labels' => array( 'name' => 'Multi-Step Forms', 'add_new_item...
2018/02/28
540
1,780
<issue_start>username_0: ``` interface Drivable{} class Vehicle implements Drivable{} class Car extends Vehicle{} Vehicle x= new Vehicle(); Drivable x= new Vehicle(); Car x = new Vehicle(); Object x = new Vehicle(); Vehicle[] x = new Vehicle(); ``` how many of those are right? I am confused that if the second one Dr...
2018/02/28
1,447
5,122
<issue_start>username_0: basically I want to practice using function and object to achieve the goal of output a bunch of data by giving my name and radius of a circle. However, I'm not sure whether I need to pay attention of the variable locale or it is because I use the wrong way to call the function... It just didn...
2018/02/28
1,336
4,700
<issue_start>username_0: I am using node to access data in MongoDB shown below, the document in my collection is this: ``` { "key_a" : "val_a", "key_b" : [ { "sub_b_keya" : "jenkins", "sub_b_keyb" : "foo" }, { "sub_b_keya" : "kubernetes/0", ...
2018/02/28
2,655
9,990
<issue_start>username_0: For my assignment I need to create a Polynomial Class using an ArrayList that consists of Term's (a class that we created earlier in the class, ex: 7x^5). I need to make it so that when the terms are inserted into the ArrayList they are sorted in descending order. Here is my code: ``` public ...
2018/02/28
478
2,216
<issue_start>username_0: Im currently working on a portal that will cater a consolidated login for a JSP and a PHP web application. I want to try if its possible for the 2 application to share the same session.<issue_comment>username_1: There's no single answer to your question, but it depends on how you approach this...
2018/02/28
706
2,980
<issue_start>username_0: I am not getting what is the problem in my Android Studio. I have also tried reinstalling the software but it is still giving me the same error. ``` >>>Error:(302) error: resource dimen/notification_action_text_size(akacom.example.reena.myapplication:dimen/nofication_action_text_size) not foun...
2018/02/28
216
899
<issue_start>username_0: In the tutorial <https://reactjs.org/tutorial/tutorial.html> there is the following code ``` class Board extends React.Component { renderSquare(i) { return ; } ``` The return statement has text within angled brackets that are not quoted. Does the reactjs code gets preprocessed before...
2018/02/28
1,349
5,381
<issue_start>username_0: I have this app with a package name `corp.acme.app` and 2 product flavors called `apple` and `pears`. Their build files are shown with brevity below. **1. Module-level build file** ``` // project-path/project_app/build.gradle android { ... defaultConfig { applicationId('corp....
2018/02/28
911
3,396
<issue_start>username_0: I'm writing a solution for the Climbing Staircase Algorithm. The prompt is specifically: 'You need to climb a staircase that has n steps, and you decide to get some extra exercise by jumping up the steps. You can cover at most k steps in a single jump. Return all the possible sequences of j...
2018/02/28
1,992
6,669
<issue_start>username_0: I am trying to use Selenium api with Gradle. This is my build.gradle dependency section: ``` dependencies { compile 'com.google.api-client:google-api-client:1.23.0' compile 'com.google.oauth-client:google-oauth-client-jetty:1.23.0' compile 'com.google.apis:google-api-services-shee...
2018/02/28
471
1,684
<issue_start>username_0: How do I wait for setState in a foreach to finish then show the render? ``` class App extends Component { componentDidMount() { someArrOfObject.forEach(o => { this.setState({ [`list_for_${o.id}`]: o.val }) }) } render() { const { selected_id } = this.sta...
2018/02/28
578
2,172
<issue_start>username_0: I am working on a simple application which will help me to convert all my pdf files which have text in English to French text as pdf. I have worked on a simple proof of concept which helps me to iterate over the given file and convert all text into French. Now I am stuck on saving the converted...
2018/02/28
1,007
3,194
<issue_start>username_0: I'm toggling between two `divs` with jQuery (I'm new to jQuery...) and I want both `divs` to use the `display: flex` property. I'm able to assign it to the first/default toggle (Option 1), but the second toggle (Option 2) defaults to `display: block`, and I'm not sure how to hook onto that. An...
2018/02/28
682
1,753
<issue_start>username_0: I have an Array like this ``` example_array = ['dog', 'cat', 'snake'] ``` And I am trying to append the timestamp to each element of the array and the output should look like ``` example_array = [{'dog': 'time_stamp'},{'cat':'time_stamp'},{'snake':'time_stamp'}] ``` I've tried this but th...
2018/02/28
1,187
2,829
<issue_start>username_0: I have a few dataframes that are loaded previously from CSV files ``` b = portfolionew_df.loc [1,['x_1','x_2','x_3','x_4','x_5']] x = [stockprice_df.loc[ :, b]] print(x) ``` This is the result for x: ``` NYSEARCA:RYE NYSEARCA:XOP NYSEARCA:PXE NYSEARCA:VAW NYSEARCA:PYZ 0 68...
2018/02/28
956
2,248
<issue_start>username_0: I have a following `pandas.DataFrame`: ``` df = pd.DataFrame({'A1':['a','a','d'], 'A2':['b','c','c'], 'B1':['d','a','c'], 'B2': ['e','d','e']}) A1 A2 B1 B2 0 a b d e 1 a c a d 2 d c c e ``` I would like to choose the rows in which values in `A1` and `A2` are...
2018/02/28
1,197
4,143
<issue_start>username_0: I understand that Python built-in types have a "truthiness" value, and the empty string is considered `False`, while any non-empty string is considered `True`. ### This makes sense I can check this using the built-in function `bool`. ``` >>> bool("") False >>> bool("dog") True ``` I can a...
2018/02/28
2,110
7,295
<issue_start>username_0: [![screen shot with UISegmentedControl below the navigation bar](https://i.stack.imgur.com/QDWb6.png)](https://i.stack.imgur.com/QDWb6.png) I'm implementing in Playgound a segmented control underneath the navigation bar. This seems to be a classic problem, which has been asked: * [UISegmente...
2018/02/28
1,459
5,144
<issue_start>username_0: Im trying to create a PxFoundation and save it in my member variable "foundation" which is a std::shared\_ptr. However upon creating the object I get this: ``` C2440: '': cannot convert from 'physx::PxFoundation \*' to 'std::shared\_ptr' ``` How can I put the raw pointer from the PxCreateFou...
2018/02/28
773
2,509
<issue_start>username_0: How do I provide multiple parameters and variables to an apply function? I'd like to pass vectir `c(1, 2)` to argument `l` and varaibles `c(x, x1`) to argument `k`. **Desired Output** should have four columns instead of two **Example** ``` library(zoo) datt <- data.frame(x = rnorm(100), ...
2018/02/28
855
2,475
<issue_start>username_0: I am trying to sort a file of names by last name using awk and sort. Some don't have middle names. Here's an example: ``` <NAME> <NAME> <NAME> <NAME> <NAME> <NAME> ``` What I've tried is: ``` awk -F " " '{print $NF, $0}' names.txt | sort ``` This prints: ``` Bing <NAME> <NAME> Geller <N...
2018/02/28
409
1,515
<issue_start>username_0: Fellow overflowers, I am developing an **iOS application** using the latest **SDK (11.2)** and **Swift 4**. I am looking for a way to obtain the **WLAN ISP** name. (for example, my ISP at home is called **NET1 Ltd.**) Thanks in advance!<issue_comment>username_1: [Core WLAN](https://develop...
2018/02/28
636
2,514
<issue_start>username_0: I am developing an Android app that uses Firebase database. ``` "posts": [ { "post_id": 100, "post_kind": "V" }, { "post_id": 100, "post_kind": "S" }, { "post_id": 100, "post_kind": "S" } ] ``` I want query select all post where pos...
2018/02/28
899
3,230
<issue_start>username_0: I have this table ``` CREATE TABLE #temp ( Item VARCHAR(max), Qty DECIMAL(18,2), FixItem VARCHAR(max) ) ``` and here is some sample data ``` INSERT INTO #temp (Item, Qty, FixItem) VALUES ('ItemRandom-1', -- Item - varchar(max) 2, -- Qty - decimal 'ItemA' -- FixI...
2018/02/28
1,068
4,184
<issue_start>username_0: I've been re-examining the way I'm using entities and I need advice. I'm creating a yoga booking service and each user will have a profile, spaces to meet up for yoga and events, with a date and time, for each space to meet up. So my relationships look like this and they are all one-to-many ...
2018/02/28
477
2,059
<issue_start>username_0: I know I am asking something and not code related issue but before implementing my cron I wanted to ensure that I know what to expect from the execution. I have a cron that delivers 125 emails every 2 minutes and I wanted to know if something happens and the cron is not complete by the time th...
2018/02/28
2,841
8,615
<issue_start>username_0: I am new to Julia, and as my first stab at a mildly nontrivial program wrote the below, which computes the divisor sigma functions for all numbers in a range from 1 to N - the divisor sigma function sigma(k, n) computes the sum of kth powers of divisors of n (if k is 0, it is simply the number ...
2018/02/28
686
2,181
<issue_start>username_0: How can I remove dangling Docker images? I tried ``` sudo docker rmi $(docker images -f "dangling=true" -q) ``` but it shows > > Got permission denied while trying to connect to the Docker daemon > socket at unix:///var/run/docker.sock: Get > <http://%2Fvar%2Frun%2Fdocker.sock/v1.35/ima...
2018/02/28
665
1,799
<issue_start>username_0: In the db, a column name `punch_in_utc_time` contain a **full** timestamp eg 2018-02-28 09:32:00. In the SQL query, i'd like to compare it to a shorter version of timestamp eg 2018-02-28 Now `punch_in_utc_time` != '2018-02-28' Is there sth i could do so that in the SQL Query that punch\_in\_...
2018/02/28
571
1,885
<issue_start>username_0: I had a link to boostrap stylesheet cdn that was causing some render blocking issues which was performing my site performance according to Google Page Speed Insights. I solved this by only taking the required above the fold bootstrap css and putting it in a 'critic\_bootstrap.css' file. When th...
2018/02/28
752
2,036
<issue_start>username_0: I have a dataframe ``` test = spark.createDataFrame([('bn', 12452, 221), ('mb', 14521, 330),('bn',2,220),('mb',14520,331)],['x','y','z']) test.show() ``` I need to count the rows based on a condition: ``` test.groupBy("x").agg(count(col("y")>12453),count(col("z")>230)).show() ``` which gi...
2018/02/28
3,837
9,706
<issue_start>username_0: I have 2 file (paired\_end) with reads in fastq format from the same organism (File\_R1.fastq and File\_R2.fastq). And I want to determinate the coverage deep using bwa and samtools (bioinformatics), for do it I need both files with the same number of reads, the same name (file\_1: @XX00341:445...
2018/02/28
387
1,448
<issue_start>username_0: Every time I push my changes, no matter what branch I am on, it prompts for username. Once I type in my username an alert pops up prompting me to input my password. Once I do it, then changes are pushed. This just started happening and is annoying to type in my login info each time I push chang...
2018/02/28
530
1,370
<issue_start>username_0: I have a multidimensional array which can contain a different number of arrays. What I want to do is to match all arrays in order of key not value, and produce a new array for each row created, something like this ``` var arr = [ [1,2,3,4,5], [1,2,3,4,5], [1,2,3,4,5], [1,2,3,4,5] ] ``...
2018/02/28
615
2,649
<issue_start>username_0: This will be my first time connecting Spring to Redis. The documentation for jedis connection factory: <http://www.baeldung.com/spring-data-redis-tutorial> Offers the following code: ``` @Bean JedisConnectionFactory jedisConnectionFactory() { JedisConnectionFactory jedisConFactory ...
2018/02/28
710
3,024
<issue_start>username_0: I'm using two libraries, let's call them "*NoQ*" and "*WithQ*" (you'll see why). Both depend on the same object class, both have classes where they expect Spring to inject this object via `@Autowired`. So far so good. But *NoQ* library uses plain `@Autowired`, no qualifier, and also includes ...
2018/02/28
540
1,848
<issue_start>username_0: Im trying to add a new field to items in an array with map: ``` const newArray = oldArray.map(item => { return (item.newField = 'Something'); }); ``` And Ive tried: ``` const newArray = oldArray.map(item => { item.newField = 'Something'; return item; }); ``` However I get an ...
2018/02/28
563
2,157
<issue_start>username_0: How to correctly use one `SqlConnection` object for multiple queries? ``` SqlConnection connection = new SqlConnection(connString); static void SqlQuery(SqlConnection conn, string cmdString) { using (conn) { if (conn.State != ConnectionState.Open) { conn.C...
2018/02/28
354
1,618
<issue_start>username_0: I am using below java script for contact form submission & after particular time the modal should be closed automatically ``` if ($('.js-form').length) { $('.js-form').each(function() { $(this).validate({ errorClass: 'error form-error', submitHandler: functi...
2018/02/28
1,640
5,311
<issue_start>username_0: I found this syntax to copy and paste from one workbook specific sheet to another workbook. however, what i need help with is how to paste the copied information to a specific cell in the second workbook/sheet. like i need to information to be pasted in cell B3 instead of A1. Thank you ``` imp...
2018/02/28
1,493
4,301
<issue_start>username_0: Here is an issue I am having with an app on Parse-Server (/Heroku). I keep getting the message: ``` WARNING, Unable to connect to 'https://myapp.herokuapp.com/'. Cloud code and push notifications may be unavailable! ``` Here is the complete log I have when running the command: `git push her...
2018/02/28
658
2,161
<issue_start>username_0: I created a service that has a method that does a simple calculation. It takes a value and squares it. However, I'm getting an error saying that square is undefined so I'm guessing I'm passing in the value incorrectly. jsfid: <http://jsfiddle.net/ADukg/19107/> ```js var myApp = angular.modul...
2018/02/28
829
3,114
<issue_start>username_0: Using the latest kafka and confluent jdbc sink connectors. Sending a really simple Json message: ``` { "schema": { "type": "struct", "fields": [ { "type": "int", "optional": false, "field": "id" }, ...
2018/02/28
6,226
25,984
<issue_start>username_0: I've recently moved a Code Ignitor 2.1.0 website to a new plesk server and getting some error about the session..The error i got was below: > > Message: session\_start(): open(/var/cpanel/php/sessions/ea-php56/sess\_nm1ku70qf3mpqumtuujltb3nj0, O\_RDWR) failed: No such file or directory (2) > ...
2018/02/28
341
1,332
<issue_start>username_0: Could someone explain what is going on in line 12? how can I set a function equal to a struct (matrix); ``` mat4& getCurrentMatrix() { if(currentMatrixMode == MGL_PROJECTION) { return projMatrix; } else { //Not sure if we need to account for MGL_TEXTURE or MGL_COLOR ...
2018/02/28
1,075
3,780
<issue_start>username_0: I have a div that contains a menu, that menu slide from left to rigth when the user click on a button, everything is ok until here, but i can't replied the same effect when I tried to show the next target. The skeleton of the menu is below: ``` Push me! /This is the principal menu * [Wo...
2018/02/28
1,236
4,201
<issue_start>username_0: I have a complex nested json structure in a postgres json field. I want to list all element values with key '$type' no matter where in the nested structure they appear. The structure contains arrays nested within arrays to several levels deep. What is the sql query I should use? The table stru...
2018/02/28
541
1,661
<issue_start>username_0: Case Statement: ``` (CASE WHEN v_cur.order_type != 'STK' AND v_cur.lot_net_cost_flag = 'Y' THEN 0 ELSE ( (v_cur.unit_costs_amount * v_cur.line_quantity_ordered) / CASE WHEN v_cur.unit_of_measure_code = 'E' THEN 1 WHEN v_cur.unit_of_...
2018/02/28
1,820
5,778
<issue_start>username_0: I have this code in my javascript: ``` $('select[name="postchoose"]').append(''+ value['code'] + ' - ' + value2['service'] + ' - ' + nf.format(number) + ' Rp' + ' - ' + value3['etd'] +''); ``` I need `value['code']` and `value2['service']` in hidden inputs so i can save them in my DB, is tha...
2018/02/28
1,843
5,292
<issue_start>username_0: I have a Spring boot project that using connection pool. It work properly in my computer but when my colleague pull the code from git then try to run. It thrown an error as below: ``` 2018-02-28 14:49:24.527 WARN 11856 --- [ost-startStop-1] o.a.tomcat.util.scan.StandardJarScanner : Failed to...
2018/02/28
467
1,286
<issue_start>username_0: I'm getting the blob URL as `blob:http://localhost:3000/a7e2a2d5-6c2d-462c-acbf-171ff64e1e2d`from the frontend.It contains a zip file.I need to download the zip file from that url and store it in the server. `$request->values['modelfile']` has this blob url. How can i get the file from that UR...
2018/02/28
492
1,781
<issue_start>username_0: I would like to take an html document and traverse the part of the document with its children. I see lots of examples to get a subtree via xpath or tag name but this doesn't seem to give the children. ``` import lxml from lxml import html, etree html3 = "testpage titlesome text" root = lxm...
2018/02/28
313
1,265
<issue_start>username_0: How can I integrate a payment gateway in flutter framework. Is there any libraries I can use readily? Do I need to do it separately in iOS and Android? In that case which is the best library available in India? Check out the new package for making payment <https://pub.dev/packages/flutter_pays...
2018/02/28
380
1,086
<issue_start>username_0: Is there any way to make (a===b && a!==b) evaluate to true? Thought the answer was no, but I feel like there's probably a trick to it.<issue_comment>username_1: Check This, It works only for `==` not for `===`. ```js var a = { x: 1, toString: function () { return this.x++;...
2018/02/28
683
2,966
<issue_start>username_0: If a client is requesting a domain that does not have a valid CA signed certificate and the server not intend on supporting HTTPS but does support HTTP for this domain, what is the best way to handle this in the web server. Note, the server does handle requests for SSL (HTTPS) on other domains ...
2018/02/28
858
3,109
<issue_start>username_0: I need to get the list of users from the date and time entered to the date and time left(but also give the results if no date and time entered). Something is wrong with the results of this query, especially when i type the date/time in/left. The search form works for the rest of the fields (lik...
2018/02/28
1,344
3,279
<issue_start>username_0: I have a matrix with some non-zero (let's say `=11`) elements ``` a=zeros(6,3); a(3,1)=11; a(4,1)=11; a(6,1)=11; a(1,2)=11; a a = 0 11 0 0 0 0 11 0 0 11 0 0 0 0 0 11 0 0 ``` I want these elements to "spread" to neigh...
2018/02/28
934
3,531
<issue_start>username_0: I have a code excerpt of a main running a go routine below. Why does this NOT happen: the main exits after it receives the done and before job return, which would make the child process zombie. Any reference to golang docs would be helpful. ``` func main() { var jobDone = make(chan bool) ...
2018/02/28
477
1,775
<issue_start>username_0: I know that fork() creates a duplicate process (clone) meaning two identical copies of address spaces are created - one for the parent and one for the child. This process becomes child process of the caller. However, I am confused as to what is inside fork\_rv (see comment in code below) ``` i...
2018/02/28
391
1,394
<issue_start>username_0: I was wondering why the thread exception comes before the contents of the actual program. As far as I understand, the thread exception should come after the contents of the program. [Output from Simple Thread Program](https://i.stack.imgur.com/RJiyS.png) ### **Code** ``` import java.lang.*...
2018/02/28
344
1,134
<issue_start>username_0: I am kinda confused on how the syntax in the keras functional API works. Its really useful to define complex multi input and output models. But the syntax is kinda puzzling for me. ``` new_layer = Conv2d(...)(old_layer) ``` as far as I know the Conv2d is a **class**. How does Conv2d()() syn...
2018/02/28
1,442
4,762
<issue_start>username_0: So I know that in Mongo Shell, you use dot notation to get the field you want in any document. How is dot notation achieved in MongoDB Scala. I'm confused as to how it works. Here is the code that fetches a document from a collection: ``` val record = collection.find().projection(fields(inclu...
2018/02/28
630
2,441
<issue_start>username_0: We have a requirement to visualize a state of the cell. Each cell represents user's DB CRUD access so each cell has four boolean flags for create, read, update and delete. To visualize, each cell should show four images with each image showing state of that flag. We defined 8 labels (CREATE...
2018/02/28
285
1,028
<issue_start>username_0: I copied a package in `Lib\site-packages` to the same folder in another PC. Then, I tried to import that package. ``` import xxx ``` But I received the error of `No module named xxx`. How to solve this problem? Thank you very much.<issue_comment>username_1: If you have the same Python ...
2018/02/28
426
1,352
<issue_start>username_0: I am confused about get rid from "[]" brackets after the ajax response data. I have the ajax response coming like: ``` [{"summary":"9am <NAME> - Alejandro DDT CMC","location":"","start":{"dateTime":"2018-02-27 09:00:00"},"end":{"dateTime":"2018-02-27 10:00:00"}}] ``` But i want the above re...
2018/02/28
919
2,737
<issue_start>username_0: I don't understand why the background image of my h1 has a gap at its top and bottom. I've searched around and can't someone else with a similar issue. I've tried a bunch of different properties, but it doesn't change. I have a feeling it has something to do with it being inside an h1, but that...
2018/02/28
334
1,239
<issue_start>username_0: I have used TextFromStandardInputStream with JUnit Test Case, which works fine. But now I want to mock StandardInputStream outside Test Cases for my requirements. I have used the same TextFromStandardInputStream outside the Test Case but it didn't work at all. So, is there any way to do the wor...
2018/02/28
527
1,612
<issue_start>username_0: This powershell code delete first 4 lines in file ``` (gc "old.zip" | select -Skip 4) | sc "new.zip" ``` But `old.zip` file has **Unix (LF)** line endings And this code also converts file line endings to **Windows (CR LF)** > > How to delete first 4 lines without converting ? > > > Be...
2018/02/28
903
3,368
<issue_start>username_0: I am trying to download images from a list of URLs using Python. To make the process faster, I used the multiprocessing library. The problem I am facing is that the script often hangs/freezes on its own, and I don't know why. Here is the code that I am using ``` ... import multiprocessing as...
2018/02/28
663
2,472
<issue_start>username_0: **Hi!** [![enter image description here](https://i.stack.imgur.com/fNZwe.png)](https://i.stack.imgur.com/fNZwe.png) When i click on the clean button on console. Appcelerator Titanium Studio closed automatically. It happen all the time. And when i select **10 line** code and press **command+x ...
2018/02/28
588
2,233
<issue_start>username_0: In case of the scalable database, what is the exact meaning of the term "NoSQL"? Why are we calling "NoSQL"? What is the reason? Please explain me.<issue_comment>username_1: It looks like you're facing a GIL issue : The python Global Interpreter Lock basically forbid python to do more than one ...
2018/02/28
694
2,694
<issue_start>username_0: I am trying to write a function to geocode a zipcode, and return the lat and lng to an object, and then return this object. I am then trying to assign the value of this geocode function to a variable to create an object. When I console log the object created in this function, I get an object r...
2018/02/28
312
1,126
<issue_start>username_0: I am using the latest version of Visual Studio Code. When I run the command 'ng serve' I get the below error: [![enter image description here](https://i.stack.imgur.com/yxY3y.png)](https://i.stack.imgur.com/yxY3y.png) This code is referring to a series of nodes and plugins that I had updated ...
2018/02/28
319
1,339
<issue_start>username_0: I'm having issue when search text box are in the footer position. The search box is not functional when setting filters\_position: 'footer' to yadcf. When setting is removed the text search box do there thing. Anything else I need to do? Thanks in advance and Awesome plug-in. <https://jsfiddle...
2018/02/28
1,223
4,869
<issue_start>username_0: I'm using the [Microsoft.Azure.Storage.DataMovement](https://www.nuget.org/packages/Microsoft.Azure.Storage.DataMovement/) nuget package to transfer multiple, very large (150GB) files into Azure cold storage using [`TransferManager.UploadDirectoryAsync`](https://github.com/Azure/azure-storage-...
2018/02/28
1,162
3,701
<issue_start>username_0: Question ======== Is it possible to delete measurement data using a time range, For a specific Retention Policy? `DELETE FROM "SensorData"."Quarantine"./.*/ WHERE "time" >= '2018-02-28T02:26:08.0000000Z' AND "time" <= '2018-02-28T02:27:08.0000000Z'` Is our current attempt at a query, to d...
2018/02/28
365
1,275
<issue_start>username_0: So I'm trying to make the height of my DIV's respond to the width of the window. The code: ``` var w = window.innerWidth; var mathW = parseInt(w); var divHeight = mathW*0.16; document.getElementById('demoDiv').style.height = divHeight; ``` With the CSS being: ``` #demoDiv { margin: auto...