date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/21
592
1,589
<issue_start>username_0: I want to minimize the following LPP: c=60x+40y+50z subject to 20x+10y+10z>=350 , 10x+10y+20z>=400, x,y,z>=0 my code snippet is the following(I'm using scipy package for the first time) ``` from scipy.optimize import linprog c = [60, 40, 50] A = [[20,10], [10,10],[10,20]] b = [350,400] res =...
2018/03/21
505
1,465
<issue_start>username_0: I have some troubles using the pipe operator (%>%) with the unique function. ``` df = data.frame( a = c(1,2,3,1), b = 'a') unique(df$a) # no problem here df %>% unique(.$a) # not working here # I got "Error: argument 'incomparables != FALSE' is not used (yet)" ``` Any idea?<issue_commen...
2018/03/21
1,041
3,701
<issue_start>username_0: I used the following code to include my js file: ```php Meta::addJs('admin_js', '/resources/assets/admin_js/admin_app.js'); ``` The file exists but in the console I see status 404. If I move the file to 'public' folder - all ok. But I want that this file be stored in 'resources' directory<i...
2018/03/21
1,305
3,854
<issue_start>username_0: I did everything step by step as mentioned in angular site and still requests aren't proxied. 8080 - my springboot app and backend 4200 - my Angular2 frontend In Angular2 project I have file proxy.cons.json with content like this: ``` { "/api": { "target": "http://localhost:8080", ...
2018/03/21
588
2,041
<issue_start>username_0: I am new to React so looking like how can I render the data of image, name and user name from render method of one component to other components. ``` class Avatar extends React.Component { render() { return ( ![]({''}) ) } } class Label extends React.Component ...
2018/03/21
1,908
7,282
<issue_start>username_0: I am working on an android project.I am having the problem with login activity. I am getting JSONException for not converting String into JSONObject and also connection timeout error. I am using android volley Library, MySQL XAMPP server. Here are my Login.php ``` php include("Connection...
2018/03/21
3,660
5,366
<issue_start>username_0: I Have two arrays ``` "index":`[2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018]` ``` , and ``` "data":`[[null,null,null,63.0], [null,null,57.2307692308,null], [null,null,15.0,27.6666666667], [null,null,10.75,12.0], ...
2018/03/21
2,736
10,223
<issue_start>username_0: I have a subprocess that either quits with a returncode, or asks something and waits for user input. I would like to detect when the process asks the question and quit immediately. The fact that the process asks the question or not is enough for me to decide the state of the system. The probl...
2018/03/21
2,523
9,222
<issue_start>username_0: I'm using `gcloud sql instances create` to create CloudSQL instances. More often than not, that command times out, but provides a command to wait until databse creation is done. ``` $ gcloud sql instances create mydb Creating Cloud SQL instance...failed. ERROR: (gcloud.sql.instances.create) Op...
2018/03/21
229
730
<issue_start>username_0: ``` render() { console.log("render") return ( {() => { console.log("works!") if(condition) return( this.change(event)} >) }} ``` I try to put a condition inside the return but appear this error [![enter image description here](https://i.stack.imgur.com/xY2Gd.png)](https://i.s...
2018/03/21
838
2,873
<issue_start>username_0: I'd like to be able to replace a subset of element values in a vector within my data.frame object in R. Toy examples I've found thus far are simple (and small) enough to manually type and replace the few elements you want to target with those you want to replace. While this toy example will aga...
2018/03/21
693
2,115
<issue_start>username_0: I need only date in the **yyyy-MM-dd** format, but I'm getting (20/03/2018 0:00:00) date in wrong format. ``` var d = Convert.ToDateTime("2018-03-20T00:00:00.000",CultureInfo.InvariantCulture).ToString("yyyy-MM-dd"); var finaldate = DateTime.TryParseExact(d, "yyyy-MM-dd", null); ``` Output i...
2018/03/21
737
2,956
<issue_start>username_0: When it is referred to use [min-max-scaler](http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html) and when [Standard Scalar](http://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.StandardScaler.html). I think it depends on the data. Is there ...
2018/03/21
677
2,815
<issue_start>username_0: I have a git repository on BitBucket with multiple branches and I want to fork this repository with all its branches to give an access to an external collaborator. My question is it possible to merge a commit from a specific branch of the original repository to the forked one knowing that that ...
2018/03/21
799
3,114
<issue_start>username_0: So basically I have to print out the worker's name in reverse, and loop through the string character by character. This is what I have for that method under Worker.java: ``` public String printRev(String fName) { for (int i = 0; i < fName.length(); i++) { fName = fName.charAt(...
2018/03/21
585
1,363
<issue_start>username_0: I have a data frame like this: ``` id info 1 0 1 0 2 0 2 10 3 20 3 20 ``` I want to remove the rows for all "id"s that have no change in their "info", that is, remove all rows where the "info" is identical for a certain "id". For the example above, I would end up:...
2018/03/21
544
2,021
<issue_start>username_0: I have SOAP wsdl from Magento and I have to get simple product list from it. Logic is to get 'simple' products from catalogProductList. So far in VS2015 I have create console app, and in reference add service reference, paste url of wsdl, but further I have no idea what to do, also didn't fi...
2018/03/21
426
1,618
<issue_start>username_0: I have a repository class something like ... ``` public class StuffRepository { public Stuff save(Stuff v); } ``` I want to make a mock with @MockBean returning first parameter v. How can I do that? ``` @MockBean private StuffRepository stuffRepository; public void test() { given(s...
2018/03/21
566
2,032
<issue_start>username_0: I am fetching some records : ``` $companies = \App\User::where('type', 'pet-salon')->orWhere('type', 'veterinarian')->get(); return response()->json($companies); ``` The data coming back is an array of objects: ``` [{ id: 2, type: "xxx", deactivate: 0, xxx: "Hello", middle_nam...
2018/03/21
937
3,311
<issue_start>username_0: How do I throttle in React a function called on scroll that uses bind like the following? ``` this.getElementPosition = this.getElementPosition.bind(this); ``` What I have so far is the following, but it returns me `TypeError: Cannot read property 'bind' of undefined` ``` throttle() { _.t...
2018/03/21
1,194
4,099
<issue_start>username_0: So I am showing a spinner while loading some images and in Chrome, Firefox, Edge... it disappears after the content is loaded. The spinner is replaced by a picture. However in Internet Explorer version 9 & 10 it stays in place and the picture appears underneath. From component template: ``` ...
2018/03/21
944
3,462
<issue_start>username_0: I've Firebase Database where each user has own email and username. How to check unique username? I tried to make it like this, but my code doesn't work properly therefore different users can have the same username ``` usernameField.isHidden = false let username:String = self.usernameFiel...
2018/03/21
815
2,761
<issue_start>username_0: I have a table with 3 fields: ``` id order date 1 1 null 1 2 not null 1 3 null 2 1 null 2 2 null 2 3 null 2 4 not null 3 1 null ``` I ...
2018/03/21
1,489
5,233
<issue_start>username_0: I have two maps `Map`. I want to merge both maps, sort in descending order, and get top 5. In case of duplicate keys in merge I need to sum the values. I have the following code that works: ``` Map topFive = (Stream.concat(map1.entrySet().stream(), map2.entrySet().stream()) .collect(Collect...
2018/03/21
999
3,052
<issue_start>username_0: I use laravel 5.6 I have a field. The data type of the field is json The value of the field (desc field) like this : ``` [ {"code": "1", "club": "CHE", "country": "ENGLAND"}, {"code": "2", "club": "BAY", "country": "GERMANY"}, {"code": "3", "club": "JUV", "country": "ITALY"}, {"code": "4"...
2018/03/21
377
1,451
<issue_start>username_0: For those of you who have used flask-login will know the decorator `fresh_login_required`. I am trying to implement something similar by myself. It doesn't have to be a decorator. I just want to be able to do some works after the user has been totally disconnected (example: closed the browser)...
2018/03/21
988
3,496
<issue_start>username_0: I am trying to send Richtext data to PHP using Ajax all things working correctly excepts for the font color when I apply the font color it's commenting all the code after that because color is in HEX format i have tried change font color to RGB but it also change after sending to PHP now i have...
2018/03/21
395
1,229
<issue_start>username_0: I have created an ontology by grouping together many ontologies. I want to use SPARQL to identify all middle terms (relationships) from one ontology from the group ontology. The following approach only produces a `pyparsing error`. ``` g = rdflib.Graph() result = g.parse("without-bfo.owl")...
2018/03/21
299
887
<issue_start>username_0: Tell me please. I can configure two TFS servers and replicate them. Thank you > > Blockquote > > ><issue_comment>username_1: You can check if the relation starts with your namespace with `CONTAINS` ``` SELECT ?v WHERE { ?s ?v ?o. FILTER CONTAINS(?v, "http://purl.url/sudo/ontology#") } ...
2018/03/21
310
990
<issue_start>username_0: Is there any way I can have Puppet complete documenation available offline ? Its hard checking module documentation everytime via browser. I hope it will help other Puppet module developers. Thank you.<issue_comment>username_1: You can check if the relation starts with your namespace with `...
2018/03/21
1,812
6,136
<issue_start>username_0: I am trying to use argparse to create my script with parameters but I am not being able to. The name of my script is `pipeline` and it has some options arguments like -b, -c, -i and -r. If you call the script `./pipeline -b` should give an error asking for a git repository path but I am not b...
2018/03/21
498
1,694
<issue_start>username_0: We're using VSTS to build and release our front end code (JS + WebPack) We now have 2 separate builds for Dev and Test. Build tasks: 1. Get sources 2. npm install 3. npm build dev 4. Archive dist files 5. Copy Publish Artifact: drop (+release pipelines) In the "Triggers" section in VSTS, i...
2018/03/21
292
1,121
<issue_start>username_0: I did get this error message in intellij while running a spring-boot server: ``` 'mvn' is not recognized as an internal or external command, operable program or batch file ``` It didnt recognize maven when I was trying to build the project standing in my projectfolder with: mvn spring-boot:r...
2018/03/21
2,538
9,605
<issue_start>username_0: I have a view that uses the ExpandableListView that has a ton of logic around it and in the adapters. For e.g., it looks like this [![enter image description here](https://i.stack.imgur.com/sAWp7.png)](https://i.stack.imgur.com/sAWp7.png) I have a requirement to display the same view with a ...
2018/03/21
2,579
6,850
<issue_start>username_0: I have three SQL tables as below: (The "orders" table below is not complete) [![enter image description here](https://i.stack.imgur.com/COHrF.jpg)](https://i.stack.imgur.com/COHrF.jpg) How to resolve the following question using just one sql query: Select the customers who ordered in 2014 a...
2018/03/21
946
3,255
<issue_start>username_0: I'm kind of new and learning Microsoft SQL. So I have these 2 tables ``` CREATE TABLE Char_item( char_id VARCHAR(5) NOT NULL REFERENCES Character(char_id) ON DELETE CASCADE ON UPDATE CASCADE, item_id VARCHAR(5) NOT NULL REFERENCES Item(item_id) ON DELETE CASCADE ON UPDATE CASCADE, item...
2018/03/21
486
1,634
<issue_start>username_0: I have a large dump of data in json that looks like: ``` [{ "recordList" : { "record" : [{ "Production" : { "creator" : { "name" : "A" } } }, { "Production" : {} }, { "Product...
2018/03/21
540
1,573
<issue_start>username_0: By following many docs/tutorials I implemented SSL with Kernel and reverse proxy in my SF. I made it work but the access point Url is as follow : <https://mycluster.westeurope.cloudapp.azure.com:19081> before I implemented https, I had a CNAME mycustomdomain.com redirecting to mycluster.westeu...
2018/03/21
444
1,614
<issue_start>username_0: I'm posting this because I searched stackoverflow and docs for a long time without finding an answer -- hopefully this helps somebody out. The question is, for testing purposes, how do I find the URL that's related to admin actions for a specific model? Admin model urls can all be found by `r...
2018/03/21
370
1,241
<issue_start>username_0: I want to SELECT multiple rows and then INSERT them INTO another table/database. My current query only works with 1 result, I need it to work with for example, 100: ``` DECLARE @var INT; SELECT @var = column FROM database.dbo.table1 -- this will produce for example, 100 results IF ...
2018/03/21
948
3,197
<issue_start>username_0: Source used before asked: [Pandas: Iterate through a list of DataFrames and export each to excel sheets](https://stackoverflow.com/questions/36973867/pandas-iterate-through-a-list-of-dataframes-and-export-each-to-excel-sheets?rq=1) [Splitting dataframe into multiple dataframes](https://stacko...
2018/03/21
2,081
6,099
<issue_start>username_0: I'm working on an Ionic 3 project in which the response http data is in JSON array format like this (from the console): Country Array (5) ``` 0: {record_id: "1", local_TimeStamp: "16:00:00", country: "USA"} 1: {record_id: "2", local_TimeStamp: "17:00:00", country: "Japan"} 2: {record_id: "3", ...
2018/03/21
143
524
<issue_start>username_0: How do i find out what format the data i am trying to request is in? The data can be found in the following address: <https://api.coinmarketcap.com/v1/ticker/> Thank you :)<issue_comment>username_1: The `Content-Type` header field in the response is what you're looking for. Upvotes: 0 <issue...
2018/03/21
428
1,119
<issue_start>username_0: I want to find an elegant way in Python to change URL like `"file:///C:/AAA/BBB"` to `"C:\AAA\BBB"`.<issue_comment>username_1: You can `split` then `join`: ``` '\\'.join(s[len('file:///'):].split('/')) ``` Upvotes: 2 <issue_comment>username_2: ``` '\\'.join(s.split('/')[3:]) ``` Edits :...
2018/03/21
1,175
3,065
<issue_start>username_0: I have an AJAX request to my Rest Webservice with a custom Header "login". Here is my rest configuration : ``` restConfiguration() .component("netty4-http") .bindingMode(RestBindingMode.json) .dataFormatProperty("prettyPrint", "true") .enableCORS(true) .corsAllowCredentials(true) .corsHeaderP...
2018/03/21
430
1,688
<issue_start>username_0: i am working on bitmap save to application folder in android below nougat its work fine but in nougat i have issue so can anyone help me? below my code for save bitmap ``` String getRoot = Environment.getExternalStorageDirectory().getAbsolutePath(); File myDir = new File(getRoot + "/...
2018/03/21
677
2,073
<issue_start>username_0: I always get confused of what the best method is to position content and `divs` inside of a `div`. ```css .container { width: 300px; height: 500px; background: #f5f5f5; } .content { position: absolute; bottom: 0px; } ``` ```html ### Title ``` In the example, I want the ...
2018/03/21
315
1,364
<issue_start>username_0: We are using spring boot actuator to get health status of an application, my understanding is that request for health check will be handled by thread out of thread pool that is used to serve actual service requests. Is there a way to limit number of requests for health endpoint to prevent a DD...
2018/03/21
558
2,251
<issue_start>username_0: I am trying to use pySerial on a Windows 10 machine (Python 3.6.4, 32 bit) to read serial data from a piece of lab equipment that would normally log its data to a serial ASCII printer. Connecting using a USB-to-serial adaptor. If I connect the computer to the printer, I can print using serial....
2018/03/21
350
1,161
<issue_start>username_0: I got an exception while adding many emails to the queue on a Laravel 4.2 app. > > exception 'Pheanstalk\_Exception' with message 'JOB\_TOO\_BIG: job data exceeds server-enforced limit' > > > I am confused whether this error is due to a single job or because the queue is too long. As the...
2018/03/21
614
2,236
<issue_start>username_0: I am trying to use Microsoft Graph API V2.0 to access user's OneNote Notebooks. I am trying to authorize via OAuth using the follow link sample: ``` https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize? response_type=code &client_id={id} &redirect_uri={url} &s...
2018/03/21
1,736
6,581
<issue_start>username_0: I have the following UI: [![enter image description here](https://i.stack.imgur.com/dsVTJ.png)](https://i.stack.imgur.com/dsVTJ.png) and from there I need to change dynamically the button `Archive` and `Unarchive` as well as the icon from FontAwesome depending on the action taken and the resp...
2018/03/21
741
2,668
<issue_start>username_0: Hi I have macro which supposed to click on button on web page..problem is there is no ID behind just this code. Its intranet web page. Begining of my code ``` Set IE = New InternetExplorerMedium IE.Navigate = "some website" While IE.ReadyState <> READYSTATE_COMPLETE ...
2018/03/21
389
1,215
<issue_start>username_0: I have the following *very* simple Y86 program in file `foo.ys`: ``` irmovl $1, %eax ``` Running the following command: ``` $ yas foo.ys ``` I get the following (utterly useless) feedback from `yas`: ``` Invalid Line ``` So--I have a few questions: 1. Where does the Y86 documentation ...
2018/03/21
452
1,566
<issue_start>username_0: I'm having troubles figuring out how to type this utility function that can receive some data in any form of Object / Array / Number / String. Then it calls its respective handler like `parseArray` which receives an array which then calls `parseData` on each item of the array. So this functi...
2018/03/21
1,146
3,697
<issue_start>username_0: I have a lot (>100,000) lowercase strings in a list, where a subset might look like this: ``` str_list = ["hello i am from denmark", "that was in the united states", "nothing here"] ``` I further have a dict like this (in reality this is going to have a length of around ~1000): ``` dict_x =...
2018/03/21
1,409
4,681
<issue_start>username_0: Firstly I appreciate that there are many answers out there explaining this topic but I just can't understand it at the moment. I want to loop through a JavaScript object I have created and then perform various actions like making a request to an API and then storing some data in Redis. This i...
2018/03/21
348
1,329
<issue_start>username_0: I have a product X in several sizes (added as variation products of the main product X). For small sizes the price is available and customers can shop it online. However, for large sizes of this product X, it is not shopable online. Therefore for some variations of this product X I would like t...
2018/03/21
573
1,970
<issue_start>username_0: In R, suppose I have a logical vector of the same length as the data. I would like to change the background color of the ggplot depending on the logical vector. In the example below `background_change` is the logical vector. ``` library(ggplot2) background_change <- economics$unemploy < 7777 ...
2018/03/21
549
1,816
<issue_start>username_0: I have seen the boards hub in several videos on how to use VSTS. It is a preview feature and shows up right between "Work Items" and "Back Logs". I have opted in on all the preview feature but cannot get it to show up. here is a spot in a video talking about it: <https://youtu.be/16gOTI_OBw8?t...
2018/03/21
816
3,059
<issue_start>username_0: I want to get a Parametrized class which is able to return an object of type T AND children of T This is the code: ``` import java.lang.reflect.InvocationTargetException; class A {}; class B extends A {}; public class testGenerics { T a; T getA() { return getA(B.class); // Compilation...
2018/03/21
652
2,508
<issue_start>username_0: I'm getting an HTML string from an AJAX request, that looks something like that: ``` ``` What i need, is to be able use this string in a React component, as it were valid JSX. I tried using the `dangerouslySetInnerHTML` as instructed in this discussion: [how-to-parse-html-to-react-componen...
2018/03/21
659
2,618
<issue_start>username_0: I'm trying to retrieve a set of variables by defining them inside a scope and using the scope filtering in `tf.get_collection()`: ``` with tf.variable_scope('inner'): v = tf.get_variable(name='foo', shape=[1]) ... # more variables ... variables = tf.get_collection(tf.GraphKeys...
2018/03/21
1,146
4,085
<issue_start>username_0: I was developing my own node module to put it on the npm website. This node module has some interactions with a database. I need to receive three values form the user (dbName, server, port) and set them in my module so that I can connect to the database. The first thing that came to my mind was...
2018/03/21
1,080
3,251
<issue_start>username_0: Using JavaScript, I am appending HTML to a table when conditions are met. When conditions are met, I'd like to place a button to the right of a table's row. Currently, I can append the button to the row by using a `td` tag, however the button would take on all styling of the row it is in. Inste...
2018/03/21
567
1,843
<issue_start>username_0: I am trying to create a donate button for our school website and so far its gone good, But my teacher asked for me to possibly find a way to change the button color, I was wondering how I could do exactly that, and does it have to be specific colors ? Here is my code: ``` ```<issue_comment>...
2018/03/21
570
1,833
<issue_start>username_0: I would like to declare an attribute and assign a value to it in the component's HTML tag, like this: ``` ``` Then I'd like to get the value of this attribute (`my-attr`) from inside my controller. Is this possible using AngularJS 1.6 and TypeScript, and if yes how?<issue_comment>username_1...
2018/03/21
300
1,192
<issue_start>username_0: How to display variable value in Report.html file of RobotFramework. I am using RIDE Thanks!<issue_comment>username_1: The fact that you're using RIDE is irrelevant, just so you know. RIDE is just a Robot Framework test data editor and doesn't influence the execution itself. Now to answer you...
2018/03/21
517
1,976
<issue_start>username_0: In my Angular CLI components, I get an error when defining a variable as a 'var' or 'let' outside of a function. I also get an error using the keyword 'function'. If I declare just by name it's fine. For instance in this stripped down component: ``` import { Component } from '@angular/core'; ...
2018/03/21
1,696
5,499
<issue_start>username_0: I want to filter Strings from documents the same way sklearn's [CountVectorizer](http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html%22CountVectorizer%22) does. It uses the following RegEx: `(?u)\b\w\w+\b`. This java code should behave the same ...
2018/03/21
212
751
<issue_start>username_0: I installed Docker CE from the official docker site on Ubuntu server 16.04.4 LTS, Release: 16.04, Codename: xenial. I can not find the `/var/lib/docker` file even after I install docker on my machine. When I try to run an Ubuntu container for example with: ``` docker run -it ubuntu ``` an e...
2018/03/21
161
533
<issue_start>username_0: I have a column of data in excel containing a number. What I need is a formula that can add the word NA ( repeated with a space) for whatever the number value is, for example: ``` A1 A2 3 NA NA NA 1 NA 8 NA NA NA NA NA NA NA NA ``` Is this possible?<issue_...
2018/03/21
250
808
<issue_start>username_0: i have an angular 4 project which i want to serve via `ng serve`. If i'm doing it inside the command line, inside the project directory (`/hardware/angular-src`) it is no problem. But when i now try to run `ng serve /hardware/angular-src` from root directory `root@myPc:/$ ng serve /hardware/ang...
2018/03/21
586
1,829
<issue_start>username_0: Is there a way to customize the attachment urls so instead of ``` /rails/active_storage/representations/ /rails/active_storage/blobs/ ``` We could have something like this: ``` /custom_path/representations/ /custom_path/blobs/ ```<issue_comment>username_1: Monkey patching is always on your...
2018/03/21
282
812
<issue_start>username_0: as it is said in the title, I want to compute the variance per row in my dataset, all columns are continuous : I have tried to use the rowVars function from the package matrixStats, but it doesn't work ``` x[, variance := rowVars(.SD), .SDcols=varQuant] ``` I have the following error : ```...
2018/03/21
333
1,089
<issue_start>username_0: I was wondering if it is possible to start Acitivty from service running in background and then move MainActivity to background. I don't want to finish() MainActivity. Just hide it. ``` Intent it=new Intent(context, NewPopupRecognizer.class); it.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);...
2018/03/21
612
2,093
<issue_start>username_0: Hi I am new to Xamarin Forms and am from native iOS development. For showing alerts / action sheets I am using this <https://github.com/aritchie/userdialogs>. For implementing this I followed this [How to use Acr.UserDialogs](https://devlinduldulao.pro/how-to-use-acr-userdialogs/). I am gett...
2018/03/21
940
2,326
<issue_start>username_0: Please see the simplified example: ``` A=[(721,'a'),(765,'a'),(421,'a'),(422,'a'),(106,'b'),(784,'a'),(201,'a'),(206,'b'),(207,'b')] ``` I want group adjacent tuples with attribute 'a', every two pair wise and leave tuples with 'b' alone. So the desired tuple would looks like: ``` A=[[(72...
2018/03/21
673
2,455
<issue_start>username_0: I'm following a step-by-step guide written by a Microsoft field engineer on below documentation to create BizTalk 2016 AOAG with SQL 2016 enterprise edition in conjunction with Server Management Studio (14.0.17224.0): <https://learn.microsoft.com/en-us/biztalk/core/high-availability-using-sql-s...
2018/03/21
1,093
3,145
<issue_start>username_0: ``` Select lot_loc.whse, lot_loc.item, item.Ufprofile, item.UfColor, item.Uflength, item.unit_weight*Lot_loc.qty_on_hand 'QTY LBS. On Hand', item.unit_weight*Lot_loc.qty_rsvd 'QTY LBS. Reserved', item.UfQtyPerSkid, lot_loc.loc, Lot_loc.lot, Lot_loc.q...
2018/03/21
538
1,788
<issue_start>username_0: Consider I have two datasets: ``` data dataset_1; input CASENO X; datalines; 1 100 2 200 3 300 ; data dataset_2; input CASENO Y; datalines; 2 200000 3 300000 ; ``` I'm looking to find how many CASENOs appear in both lists: in the example above, I would get 2. My data is very la...
2018/03/21
499
2,007
<issue_start>username_0: Currently, to update a k8s deployment image, we use the `kubectl set image` command like this: ``` kubectl set image deployment/deployment_name container=url_to_container ``` While this command updates the URL used for the main container in the deployment, it does not update the URL for the ...
2018/03/21
553
1,967
<issue_start>username_0: ``` Table A1 Table B1 A --100 id =1 A --100 id=1 B -- 100 id =2 A -100 id=1 C -- 200 id=3 A - 100 id =1 ``` Need to sum all values from two tables where id =1. ``` select (SUM(A1.A) + SUM(nvl(B1.A,0)...
2018/03/21
501
1,693
<issue_start>username_0: ``` int x = 6; ``` it works, but ``` Int32 x = new Int32(6); ``` does not. Why Int32's default constructor parameterless? **how does it assigns 6 to x?** edit: more explanation.. <https://referencesource.microsoft.com/#mscorlib/system/int32.cs,225942ed7b7a3252> line 38: ``` internal int ...
2018/03/21
916
3,094
<issue_start>username_0: Are there any limitation on the amount of arguments that can be send in an event? I have a function in which I want to trigger event that has 12 arguments of which 6 arguments are arrays. I get Stack too deep, try using less variables. Without the event the function works normally. I am guess...
2018/03/21
632
1,672
<issue_start>username_0: my question is how to create 3 image full size linkable boxes responsive [![https://imgur.com/a/RfruG](https://i.stack.imgur.com/Lt09s.jpg)](https://i.stack.imgur.com/Lt09s.jpg) Please advise, what framework to use?<issue_comment>username_1: For a setup as straightforward as this, you can giv...
2018/03/21
614
1,680
<issue_start>username_0: i have a table named "Post" and each post has post image,the image saved in table as a string , when i am viewing the post i need to put the image as a css background image ,the code i wrote is: and it isn't get the image !!<issue_comment>username_1: For a setup as straightforward as this, you...
2018/03/21
368
1,355
<issue_start>username_0: I have HTML template which have injected bootsrap modal, but modal opening only with the button. I want that modal open automatically when page load, without button. So this is the button code: ``` Small modal ``` This is the modal code HTML: ``` × #### Modal title Lorem ipsum dolor...
2018/03/21
432
1,572
<issue_start>username_0: I made a Python module in C/C++ with Python C API. I use setuptools.Extension in my setup.py. It creates one .py file which loads a python module from some compiled .pyd file: ``` def __bootstrap__(): global __bootstrap__, __loader__, __file__ import sys, pkg_resources, imp __fil...
2018/03/21
732
2,558
<issue_start>username_0: I've an issue where my query is throwing an error even though it is **commented**. I didn't undertand why it is happening . I found this error code between my big query scripts where we are trying to execute everything in one shot .And also i tried of executing this commented script in seperate...
2018/03/21
581
2,288
<issue_start>username_0: I am running a raw query like the below on an MSSQL database: ``` sequelize.query(DELETE FROM vehicle where vehicleId IN ('1', '2', '3')) ``` The return is always `[ [], [] ]`. This should contain the metadata and an array result. We also have a MYSQL database with the same tables. When the ...
2018/03/21
634
2,760
<issue_start>username_0: I'm Using Token-Based Authentication in my webApi application. for each login OAuth generates an access token for user. if a user tries to do login more than once. it may own some more valid token. is there a limitation on this process. Here is my Startup class: ``` public void Configurat...
2018/03/21
296
1,358
<issue_start>username_0: I'm working on a react native project and I generated a keystore and released the signed apk to play store few days ago. While working I mistakenly copied another keystore into the `android/app` directory in the project and since then could not return to the older version anymore. Checking ver...
2018/03/21
754
2,412
<issue_start>username_0: Assume I have `users` which is `List`, and `User` class has `Type` and `Age` properties. I want to filter that list of users by some condition, and do something per item, based on condition. Let this list has 10 users, and some of them are of Type `"complex"` and some of them `"simple`". I want...
2018/03/21
408
1,295
<issue_start>username_0: Hi I would like to a add a page navigation on the side of my Rmarkdown file. It would be nice if it could look like the sidebar [on this page](https://rmarkdown.rstudio.com/rmarkdown_websites.html#site_navigation). ``` --- title: "My Title" author: "My Name" date: "`r format(Sys.time(), '%d %B...
2018/03/21
1,345
4,545
<issue_start>username_0: AddDeviceAsync method of registry throw exception ArgumentNull. Parameter, registryManager and output parameter notjing is null but it still throw exception. Exception : {"Message":"ErrorCode:ArgumentNull;BadRequest","ExceptionMessage":"Tracking ID:adf7e83e7db046969086702500cbe73b-G:2-TimeStam...
2018/03/21
980
3,862
<issue_start>username_0: I'm having trouble understanding what runs on the main thread during an async await operation and would be grateful for some answers. Let's say I have a button that is supposed to log the user in. it is supposed to block all other user input while the login process transpires, show a progress...
2018/03/21
678
2,095
<issue_start>username_0: I want to detect the current day and after that, add active to a class, to highlight the current day. ``` var date = new Date(); var day = date.getDay(); if ( day == 'Montag' ){ $(".monday").addClass("active"); } if ( day == 'Dienstag' ){ $(".tuesday").addClass(...
2018/03/21
352
1,303
<issue_start>username_0: My model looks like: ``` protected $appends = array('status'); public function getStatusAttribute() { if ($this->someattribute == 1) { $status = 'Active'; } elseif ($this->someattribute == 2) { $status = 'Canceled'; ... } else { $status = 'Some antoher s...
2018/03/21
829
2,619
<issue_start>username_0: I'm trying to make a page where I've got 4 background pictures one behind another, and when I hover the mouse over them, the first picture goes to top left, the second to bottom left, the third, top right and the last one bottom right. I've managed to work this out with the first one, it is ex...