date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/20
648
2,343
<issue_start>username_0: The idea is that I show a loading .gif file while I load the data and then once all the data has loaded, wait an `x` amount of time, currently 3000ms, but will be lowered, then after the given amount of time, set the value of data.show to true, so that the loading .gif is no longer showing and ...
2018/03/20
698
2,300
<issue_start>username_0: I have a model `'user'` of two properties `'username'` & `'plan'` where `'plan'` is a reference of another model `'plan'` where properties are `'name'` & `'description'`. now when I use following Query in API to retrieve data- ``` `user.find().populate('plan')` ``` I am trying to render th...
2018/03/20
4,103
14,161
<issue_start>username_0: I'm using JPA API's and it works well, I have tried to add new member/column to the class and when I tried to add data into it using form, it shows "TRANSACTION ABORTED" error. ``` "javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.5.2.v2014...
2018/03/20
494
1,797
<issue_start>username_0: I put an invalid value in `config.properties`: ``` # Browser: CHROME, CHROME_NOHEAD, FF32, FF32_NOHEAD, FF64, FF64_NOHEAD # EDGE, IE32, IE64 browser=oPerA ``` I set up the switch with a default clause: ``` public class ServiceHook { public enum Browser { CHROME, CHROME_NOHEAD, F...
2018/03/20
266
974
<issue_start>username_0: I encountered the error as stated in the title from my Visual Studio Code on Mac. Detailed error message is as below: [![enter image description here](https://i.stack.imgur.com/rO7cy.png)](https://i.stack.imgur.com/rO7cy.png) I have already targeted my project to Android 7.1 but the error kee...
2018/03/20
807
2,399
<issue_start>username_0: I'm in need where i can get all locations of a zip code for india . I already tried with below link ``` http://maps.googleapis.com/maps/api/geocode/json?address=110001 ``` But here i get city and state name and i'm in need where by a zip code we can fetch all location like ``` { "...
2018/03/20
1,049
3,543
<issue_start>username_0: Consider the following code ``` import numpy as np a = np.array([1,2]) b = np.array([3,4]) c = [a,b] np.sum(x for x in c) # array([4,6]) np.sum(c) # 10 ``` What is the rationale behind treating lists different from generator expressions?<issue_comment>username_1: Generator expression yields ...
2018/03/20
561
1,542
<issue_start>username_0: I use `keychain` to manage `ssh-agent`, and I add it into my `.zshrc`. I have a ssh key with passphrase. With the normal terminal, I can use `ssh` without call a `passphrase`. But in tmux, it will ask me to input a passphrase for my ssh-key. These are run in normal terminal. ``` ➜ ~ echo...
2018/03/20
516
1,838
<issue_start>username_0: My code is as shown below: ``` private String getFormattedDate(String date){ try { SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"); formatter.setTimeZone(TimeZone.getTimeZone("UTC")); Date value = formatter.parse(date); Sim...
2018/03/20
304
1,159
<issue_start>username_0: The page refreshes when I use the image upload function in the project. And I'm losing my old data in TextBoxes. How can I keep the previous datas in TexBoxes when the page is refreshed? The technologies I use: MVC, C# and web languages<issue_comment>username_1: This would be a prime candidate ...
2018/03/20
1,030
3,792
<issue_start>username_0: I have a QPushButton and when I click the button I will call a method that take two parameters, in this example: `exampleMethod(int i, double d)`. Now I connect the click event from QPushButton `button` to the exampleMethod like this: `connect(button, &QPushButton::clicked,this, &Example::e...
2018/03/20
642
2,315
<issue_start>username_0: I have a Django ModelForm with an ImageField. When the user edits the model the Image Field displays: [![enter image description here](https://i.stack.imgur.com/YEvXf.png)](https://i.stack.imgur.com/YEvXf.png) Is there a way to use the URL presented beside "Currently" to display/render the se...
2018/03/20
1,194
5,613
<issue_start>username_0: I am trying to get a UIActivityViewController for presenting only the options for Facebook, Twitter and Instagram. So far I have done: ``` let shareText = "Hello, world!" let image = UIImage(named: "TheImage") let activityViewController = UIActivityViewController(activityItems: [s...
2018/03/20
1,077
3,306
<issue_start>username_0: ``` var myObj = [ { "heading":"Enter Name", "data_type":"text", "fieldid":"name1" }, { "heading":"Enter Phone", "data_type":"text", "fieldid":"phone1" } ]; var anotherObj=[ { "heading":"Enter Name", "data_type":"text", "fieldid":"name2" }, { "heading":"Enter Phone", "data_type"...
2018/03/20
1,055
3,141
<issue_start>username_0: I have three files. `test.c` `test.h` and `use.c`. Code in each of them looks like: test.h: ``` #pragma once #define unused __attribute__((unused)) typedef int cmd_fun_t(struct tokens *tokens); typedef struct fun_desc { cmd_fun_t *fun; char *cmd; char *doc; } fun_desc_t; int cmd_exit...
2018/03/20
399
1,374
<issue_start>username_0: I run multiple websites from a single laravel app. Is it possible to have different session lifetimes for them? E.g. one site should have the standard 2 hours and another should be 1 year<issue_comment>username_1: cmd\_table is declared in test.c file and you are using it in use.c file. As sc...
2018/03/20
372
1,477
<issue_start>username_0: Do you know if it is possible to encode responses from application run on wildfly 10 to gzip format if request contains Accepted-Encoding : gzip header? I would like the change to be done via Wildfly config only and response to contain some indication in header that the response has gzip encodi...
2018/03/20
848
2,495
<issue_start>username_0: I have an array like this : `array("Peter"=>"35", "Ben"=>"37", "Joe"=>"43");` and would like to get only my values, for example here : simpleTab=`array("35","37","43");` or otherwise like this, it should be better for me to get a list : ``` simpleList=["35";"37";"43"] ``` I'm creating a...
2018/03/20
1,497
5,131
<issue_start>username_0: I want to build a Docker image including my custom Powershell modules. Therefore I use Microsofts `microsoft/powershell:latest` image, from where I wanted to create my own image, that includes my psm1 files. For simple testing I've the following docker file: ``` FROM microsoft/powershell:late...
2018/03/20
1,083
3,907
<issue_start>username_0: I've just installed the Atom text editor. When I try to install my first package I get the following error:- ``` "Unable to verify the first certificate" ``` This happens when trying to search for the package e.g. Emmet, AtomLinter. I've restarted my machine but I still get the same error me...
2018/03/20
1,491
3,542
<issue_start>username_0: The data frame looks like this (the dots are supposed to be vertical dots): ``` Class IncreasingNumber "A" 3 <- row 1 "A" 5 <- row 2 ... ... "A" 20 <-row 31 "B" 1 "B" 2 ... ... "B" 41 <- row 63 "C" 1 ...... ``` There are 20 different...
2018/03/20
1,119
2,407
<issue_start>username_0: Hi guys I am trying using Javascript to extract the name ``` Compare with {% for i in team\_list\_pop %} {{i.first\_name}} {{i.last\_name}} {% endfor %} ``` In my JS I tried : ``` $(".pick-chart").change(function(e) { e.preventDefault(); var val = $(this).val(); ...
2018/03/20
1,137
4,324
<issue_start>username_0: I have two Activities, I am adding data to Firestore from these two activities individually. But, whenever I add second activity data to Firestore, it is overwriting the first activity data. I used below code in the two activities: ``` firebaseFirestore.collection("Users").document(user_id).s...
2018/03/20
829
3,611
<issue_start>username_0: I am trying to bind a TextBlock to items in a ObservableCollection. TextBlock values should be generated up to elements from collection. Count of elements in collection is between 0 and 7 (if it helps). MyClass implemented INotifyPropertyChanged. It should be directly TextBlock, not ListBox. Ho...
2018/03/20
715
2,705
<issue_start>username_0: (Taking first steps with web development but it appears that I'm currently unable to use even the most fundamental tools, like e.g. a browser debugger.) When I init a new vue.js 2.x project as follows... ``` sudo npm install --global vue-cli vue init simple vue1 ``` (accepting defaults for ...
2018/03/20
1,671
6,380
<issue_start>username_0: Very related to this question ([How can I prevent my Google App Engine cron jobs from burning through all my instance hours?](https://stackoverflow.com/questions/8670532/how-can-i-prevent-my-google-app-engine-cron-jobs-from-burning-through-all-my-ins?answertab=votes#tab-top)), yet unfortunatly ...
2018/03/20
492
1,814
<issue_start>username_0: With the arrival of the display of emoticons in Google searches, I wanted to make my own tests by embellishing a few meta\_title to see if it could have a positive effect for our site. Unfortunately, after saving my meta\_title change with the special character, no get no error message but the...
2018/03/20
353
1,312
<issue_start>username_0: Sometimes in asp.net, the Control.ClientID returns the whole Control object instead of the ClientID string. I haven't paid too much attention to it up until now as I could just fish it out client side with ClientID.Id. But now I need to pass the ID of an iframe and IE won't let me pass the ifra...
2018/03/20
2,251
7,653
<issue_start>username_0: I am working on integration tests of .NET Core application and want to use some test configuration. My configuration is a POCO class that is configured via `appsettings.json` and then consumed via `IOptions`. In my tests I'd like to use an instance of that class. Here is the code: ``` var m...
2018/03/20
2,221
7,339
<issue_start>username_0: I have this log - ``` MySite Access reject(60) - Redirect to user page ``` I want to be able to parse it so that `(60)` will be in one group and the rest in another. What I currently use is ``` ([A-Za-z \-\(\)\d]+) ``` which takes in all of it. The problem being that when trying to gr...
2018/03/20
2,328
7,668
<issue_start>username_0: I Have a dataframe named `mydata`. Here's a sample of the relevant column: ``` Accuracy.Percentage 100.00 127.00 60.00 175.00 52.00 ``` Now, what I want to accomplish is the following: when the value of a row is < 100, I want change its value with `100 - mydata$Accuracy.Percentage`, when the...
2018/03/20
1,595
4,227
<issue_start>username_0: ``` correct = [1 if ((a == 1 and b == 1) or (a == 0 and b == 0)) else 0 for (a, b)] ``` I am the newbie in the python world, and i find when i run my file,the program show > > SyntaxError: invalid syntax > > > in the code above but as i know,there should be no SyntaxError this code,so...
2018/03/20
2,094
5,907
<issue_start>username_0: I have been trying to open a python file from my main python file: ``` from banner import * from hexed import * # this one is the file I am trying to open ``` I am trying to open files by treating them as modules this is how I am calling them my banner file works perfectly but can't say t...
2018/03/20
573
2,254
<issue_start>username_0: Throwing and error "The ORDER BY clause is invalid in views, inline functions, derived tables, subqueries, and common table expressions, unless TOP or FOR XML is also specified". When I user top 100 percent, throwing different error like one of the coloumn used many times<issue_comment>usernam...
2018/03/20
1,119
3,105
<issue_start>username_0: I would be really grateful for any advice on creating a 'loop' or 'function': My goal is essentially manual stemming of a text string - amending several related terms into one term. My code to do it individually works absolutely fine, but it would save me so much time if I could iterate it. `...
2018/03/20
243
930
<issue_start>username_0: Hey guys I am new to MongoDB. I have successfully installed and setup environment variables, I run command mongod its start. After that I run command mongo its run but its only showing in cmd like \*\*C:\Program Files\MongoDB\Server\3.6\bin>mongo MongoDB shell version v3.6.3 connecting to: m...
2018/03/20
1,146
3,452
<issue_start>username_0: My directory contains the following files: ``` FILE1_h0_something_1950_other.gz FILE2_h0_something_1950_other.gz FILE3_h0_something_1950_other.gz ``` Here a portion of my bash script: ``` year=1950 for nc_gz in "$input_path/*h3*$year*.gz"; do gunzip $nc_gz done ``` I noted that SOME...
2018/03/20
439
1,930
<issue_start>username_0: Can't figure out how to pass date to the server with **Alamofire .post method**. I have to form JSON body like this: ``` { "title": "My Title", "locations": [ { "location": "locationID" } ], } ``` I'm stuck on **"locations"** property. Probably, it...
2018/03/20
406
1,458
<issue_start>username_0: I'm looking for the exact value of epsilon to run the `DBSCAN` clustering algorithm. Here's the `KNN` distance plot. ![KNN distplot](https://i.stack.imgur.com/UbEcY.jpg) This chart has two flex points. I need the second flex point. I'm using the following code: ``` # evaluate kNN distance...
2018/03/20
635
2,427
<issue_start>username_0: I have a method to get all the items in the database, but I don't know what is the problem, it always say java.lang.numberformatexception: invalid double: "". Any help would be highly appreciated. My code: ``` @Override public void processFinish(String s) { productList = n...
2018/03/20
923
2,651
<issue_start>username_0: I have three vectors in Matlab that are possibly of different sizes. I want to compare the values in each vector against all the other values in the other vectors and only keep values that are 'close' in 2 out of 3 of the vectors. And by 'keep', I mean take the average of the close values. For...
2018/03/20
210
837
<issue_start>username_0: I have a lot of macros in my excel. I don't know whether they are used in that workbook. I don't know whether it is called as a procedure inside other macros. Is there any way to find out whether the macro is used inside another macros or used in different sheets?<issue_comment>username_1: Pro...
2018/03/20
272
1,006
<issue_start>username_0: I am automatically generating csv from the SQL server. Some users have problem that excel automatically converts some numbers to date. If the value is not converted to date, then it is formated as txt. When I open the file it is shown ok = without text or date = just as number.. Dont you kno...
2018/03/20
188
697
<issue_start>username_0: I must sum of the even integers between 1 and ' n ' (inclusive). For example for n = 5 program return 6(2+4). How to make it?<issue_comment>username_1: Probably the easiest way - `Ctrl` + `F`. Write the name of the "Macro" and select search in Current Project. Then start counting how many tim...
2018/03/20
1,173
3,266
<issue_start>username_0: I want to merge the rows of the two dataframes hereunder, when *the strings* in Test1 column of **DF2** contain *a substring* of Test1 column of **DF1**. ``` DF1 = pd.DataFrame({'Test1':list('ABC'), 'Test2':[1,2,3]}) print (DF1) Test1 Test2 0 A 1 1 B 2 ...
2018/03/20
2,197
5,969
<issue_start>username_0: i am making block with arrow and border looks like [![Desired Result](https://i.stack.imgur.com/1VX7q.png)](https://i.stack.imgur.com/1VX7q.png) And i have tried this. ```css * { box-sizing: border-box; } .block-arr { background: purple; margin: 20px; margin-right: 100p...
2018/03/20
372
1,204
<issue_start>username_0: I have a dataframe (spark) which has 2 columns each with list values. I want to create a new column which concatenates the 2 columns (as well as the list values inside the column). For e.g. Column 1 has a row value - [A,B] Column 2 has a row value - [C,D] **"The output should be in a new col...
2018/03/20
431
1,600
<issue_start>username_0: I need to make a C# Form screenshot, but there is a catch. I need it to be a form at certain resolution AND form itself must not flicker to a user, so somehow in background it need to make an screenshot at certain form dimension. I tried various things but i cannot make form resized without ...
2018/03/20
654
2,324
<issue_start>username_0: I am getting some errors trying to add Pod to my Cordova iOS project The errors I am seeing in Xcode are : ``` diff: /Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update yo...
2018/03/20
379
1,150
<issue_start>username_0: The pseudocode is as below. how to calculate time complexity for this programme ``` Algorithm MinValue(A, n): Input: An integer array A of size n //1 Output: The smallest value in A minValue <- A[0] //1 for k=1 to n-1 do //n if (minValue > A[k]) then //n-1 minValue <- A[k] //1 return minVa...
2018/03/20
214
784
<issue_start>username_0: i have a java application that needs both Tomcat 7 server & MySQL DB to run. Now i have 1 Docker container with Tomcat 7 in it, now should i create one more container for MySQL DB OR shall i install MYSQL in Tomcat 7 container itself ? How does the big companies do ideally ?<issue_comment>usern...
2018/03/20
496
1,796
<issue_start>username_0: login.php (controller) ``` class login extends CI_Controller { public function index() { $this->load->view('login'); } public function Click() { $action = $this->input->post('register'); // $_POST['start']; also works. if($action) { $this->load-...
2018/03/20
521
1,659
<issue_start>username_0: we have a table named PatientAdmissions listed below [![enter image description here](https://i.stack.imgur.com/OYNqU.jpg)](https://i.stack.imgur.com/OYNqU.jpg) I'm trying to get the Total Length of stay which is the Total Date difference between the AdmitDate and the DischargeDate in a provid...
2018/03/20
498
1,394
<issue_start>username_0: input.json:- ``` { "menu": { "id": "file", "value": "File", "user": { "address": "USA", "email": "<EMAIL>" } } } ``` Command:- ``` result=$(cat input.json | jq -r '.menu | keys[]') ``` Result:- ``` id value user ``` Loop through result:- ``` for type in "${result[@]}" ...
2018/03/20
486
1,573
<issue_start>username_0: ``` var response = transport.responseJSON || transport.responseText.evalJSON(true) || {}; // console.log(response) // log results account: [] agreements: [] billing: [] order: {error: 1, message: "Ingenico ePayments Payment failed", goto_section: "payment"} payment: [] shipping: [] alert(resp...
2018/03/20
854
2,974
<issue_start>username_0: I am trying to pass an array of floats (in my case an audio wave) to a fragment shader via texture. It works but I get some imperfections as if the value read from the 1px height texture wasn't reliable. [![enter image description here](https://i.stack.imgur.com/CCU1U.png)](https://i.stack.img...
2018/03/20
582
1,922
<issue_start>username_0: I'm having trouble changing the colour of an svg image with jquery or vanila javascript. I've tried a couple of things but nothing seems to work, the original colour is black and i can change it if i open the svg image in my IDE and add/change the fill attribute. But not with JS. What am I doin...
2018/03/20
1,594
6,831
<issue_start>username_0: stuck in One Issue , I am using `BluetoothSocket` class, I am sending and receiving data with the help of input and output streams. when App receives large amount of data from input stream, I am killing my app forcefully and after it I am again restarting my app, but `InputStream` returns me ...
2018/03/20
691
2,735
<issue_start>username_0: Hello I am attepting to make a webpage to dowload reports from amazon seller central using the MWS API. The issue im running into is that 3 different calls are needed to download one report! Request report and get its ID-> check status/get report ID -> download report. Currently I have this ...
2018/03/20
898
3,076
<issue_start>username_0: I have two tables permissions and groups of many to many relationship ``` CREATE TABLE `permissions` ( `Permission_Id` int(11) NOT NULL AUTO_INCREMENT, `Permission_Name` varchar(50) DEFAULT NULL, PRIMARY KEY (`Permission_Id`) ) ``` Groups table ``` CREATE TABLE `groups` ( `Group_Id` ...
2018/03/20
498
1,835
<issue_start>username_0: I have a very large dataset in NetCDF4 format. Normally I would just read the variables I need and pass them as attributes to my custom class so I can create new methods for post processing. Since this dataset is so large, this is not an option as it throws a memory error. So I want to extend t...
2018/03/20
887
2,725
<issue_start>username_0: I am trying to incorporate css styles associated with particular div class names using node.style. I can get the styles to work individually but I am trying to implement multiple styles that span within one another using the div classes mentioned. I am wondering if there is a way of doing this ...
2018/03/20
840
3,548
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/gPdA7.jpg)](https://i.stack.imgur.com/gPdA7.jpg)I have two webapi developed in asp.net core 2.0 and is secured with identityserver4 framework. Both the apis are ssl enabled I am accessing the webapi using angular2 application. Everyth...
2018/03/20
1,848
7,562
<issue_start>username_0: **Details about database:** folder\_Meta\_Data has fields id,parentFolderId in which id nothing but folderid acts like primary key and parentFolderId refereces to id. ``` @Entity @Table(name = "folder_Meta_Data") @Data @JsonInclude(JsonInclude.Include.ALWAYS) @JsonIdentityInfo(generator = Obje...
2018/03/20
1,226
4,939
<issue_start>username_0: I've tried to fetch photos from the library. It works, but I just got 3 photos from 9 photos from the library. Here's my code: ``` let options = PHFetchOptions() let userAlbums = PHAssetCollection.fetchAssetCollections(with: PHAssetCollectionType.album, subtype: PHAssetCollectionSubtype.an...
2018/03/20
1,684
6,279
<issue_start>username_0: I'm having a little trouble finding the index of a hashtable in an array. I create a JSON with this code: ``` $start = { Clear-Host $BIB = Read-Host 'Bibliothek' $BIBName = Read-Host 'Bibliothek Name' $Standort = Read-Host 'Bibliothek Standort' $Autor = Read-Host 'Buchautor' $BuchName = Read-H...
2018/03/20
1,117
4,526
<issue_start>username_0: I have a project with multiple framework targets, that also have pods dependencies. I have: * No circular dependencies between targets * Everything, including pods, is in Objective-C, no Swift at all. * `use_frameworks!` in Podfile, so all pods are frameworks, not libraries. Here is my struc...
2018/03/20
1,630
5,154
<issue_start>username_0: When I use `mvn site`, reports are generated, but I have this exception in terminal: ``` [WARNING] Unable to process class module-info.class in JarAnalyzer File C:\WINDOWS\system32\config\systemprofile\.m2\repository\org\apache\logging\log4j\log4j-api\2.10.0\log4j-api-2.10.0.jar org.apache.bce...
2018/03/20
995
2,687
<issue_start>username_0: I searched for related questions, but cannot find an appropriate answer for my problem. For example, I have a file of 6 rows and 3 columns. ``` id sample1 sample2 sample3 6 +/+ +/+ +/- 16 -/- +/+ +/+ 20 +/- +/+ +/+ 21 +/- +/+ +/+ 22 +/+ +/+ ...
2018/03/20
657
2,293
<issue_start>username_0: I use InnovaEditor to create edit block. I try to find way in order to set dynamic height of edit block. Ie block height should correspond block content. **HTML:** ``` 12345 ``` What I did: 1) set keyup event in iframe body 2) wrap to content to get real height 3) set calculated heigh...
2018/03/20
425
1,539
<issue_start>username_0: I am trying to attach multiple models with one controller using implicit model binding but I am getting the following error if I try to attach more than one model with methods. ``` index() must be an instance of App\\Http\\Models\\Modelname, string given ``` Here is my code: ``` public func...
2018/03/20
503
2,007
<issue_start>username_0: I am new to configuring and setting up Python from scratch. I have installed Anaconda and I plan to use Spyder for python development. I also have a older version of Python installed on the same machine elsewhere. I needed to get my hands on a package to use in Spyder which I needed to downlo...
2018/03/20
609
1,636
<issue_start>username_0: Is there a way to compare two buffers directly? For example having two identical files `file1` and `file1-copy`, i would like to do: ``` f1 = open(file1) f2 = open(file1-copy) if f1 == f2 println("Equal content") end ``` I know i can make strings of that and compare those: ``` if reads...
2018/03/20
672
2,424
<issue_start>username_0: Visual Studio Code has a feature where it will change the color of a filename in the file tree when there is a linting error. Unfortunately the error color looks a little harsh for me: [![VS Code File Tree](https://i.stack.imgur.com/MhXEB.png)](https://i.stack.imgur.com/MhXEB.png) Is there a w...
2018/03/20
661
2,322
<issue_start>username_0: Im using CONCAT\_WS within hibernate query, to create a giant string and search by all fields using `like '%value%'` . It works fine, but for some records some fields are null. e.g if `actId` is null, my whole concat\_ws returns null. I don't know why, concat\_ws must ignore null values. May b...
2018/03/20
439
1,539
<issue_start>username_0: This code is already working, but i want "plain" & "Letter" to be dynamic. Like pointing to specific range cell. I've tried it but it wasn't successful. Basically sReplace = Replace(sReplace, Range"A1", "Range"B1:B10") ``` Private Sub CommandButton1_Click() Dim sFind As String Di...
2018/03/20
1,912
7,353
<issue_start>username_0: I have recently upgraded my Visual Studio environment, and now I seem to have a problem with my .Net framework, as you can see in following error message: > > 9> C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1126,5): ...
2018/03/20
674
2,757
<issue_start>username_0: I am new to MySQL and I decided to work with the GUI platform (Workbench). I would like to know if it is possible to force a certain quantity of numbers in a column. I mean, if i want an integer with 4 numbers and they introduce an integer with 3 numbers, i want to block it, as well as if the...
2018/03/20
393
1,361
<issue_start>username_0: I'm trying to flash error messages from my controller back to my view. I tried this with: ``` \Route::group(['middleware' => 'web'], function () flash('Error message'); return Redirect::back(); }); ``` And tried showing it my view with: ``` @include('flash::message') ``` H...
2018/03/20
875
3,429
<issue_start>username_0: What I would like to be able to do is for user to click button on my website (actually a webapp that runs locally on user machine so each instance is single user) which initiates a Google image search with various params set and display the results in a section of my html page. This is because...
2018/03/20
447
1,582
<issue_start>username_0: I'm reading rows from excel into a model , and excel returns the input such as "10%" or "20%" as "0.1" ,"0.2" **string** . What is the best way to convert that string into a **string** such as "20%" , "10%" and to avoid unnecessary conversions, in order not to lose on the performance ? So just ...
2018/03/20
2,840
8,533
<issue_start>username_0: I have a code like this: ``` let myString = "Swift Attributed String" let myAttribute = [ NSAttributedStringKey.foregroundColor: UIColor.blue , NSAttributedStringKey.writingDirection:(NSWritingDirection.rightToLeft.rawValue|NSWritingDirectionFormatType.override.rawValue)] as [NSAttributedStrin...
2018/03/20
1,090
3,625
<issue_start>username_0: I am using Ajax to work with the openweather API. Everything works fine except for one thing. I'm trying to make a button toggle between celsius and fahrenheit. On the first click, the function converts the value to fahrenheit, but for some reason when you click the button again it doesn't c...
2018/03/20
186
596
<issue_start>username_0: I was exploring AWS API Gateway and created several APIs during learning session. Can I delete these API?<issue_comment>username_1: You can use the AWS CLI by passing the API ID delete-rest-api: ``` aws apigateway delete-rest-api --rest-api-id 1234123412 ``` See <https://docs.aws.amazon.com/...
2018/03/20
1,186
3,609
<issue_start>username_0: Using SQL subquery, how do I get the total items and total revenue for each manager including his team? Suppose I have this table items\_revenue with columns: [![enter image description here](https://i.stack.imgur.com/LUHij.png)](https://i.stack.imgur.com/LUHij.png) All the managers (is\_man...
2018/03/20
1,465
3,844
<issue_start>username_0: When compiling VSCode extension then typescript persistently complained > > error TS2307: Cannot find module 'vscode'. > > > Installation `npm install vscode` or magic links never helped. Strace provided: ``` stat("/home/work/mymodule/src/node_modules", 0x7ffe73f2d460) = -1 ENOENT (No...
2018/03/20
1,030
3,647
<issue_start>username_0: I know (from the answers of [this question](https://stackoverflow.com/questions/10824347/does-sqlite3-compress-data)) that Sqlite by default doesn't enable compression. **Is it possible to enable it, or would this require another tool?** Here is the situation: I need to add millions of rows in...
2018/03/20
849
3,275
<issue_start>username_0: I need to check if a EPS/PDF file contains any vector elements First I convert the PDF to EPS and remove all text elements and images from the file like this ``` pdftocairo -f $page_number -l $page_number -eps $input - | sed '/BT/,/ET/ d' | sed '/^8 dict dup begin$/,/^Q$/ c Q' > $output ``` ...
2018/03/20
240
708
<issue_start>username_0: I'm trying to display 5th line from end of file, how can I do this using `sed`?<issue_comment>username_1: Hi Use below command for your requirement. ``` tail -5 yourfile.txt | sed -n "1p" ``` If you want to change the line to print just change `"5p"` like `"10p"` for 10th line `"3p"` to pr...
2018/03/20
464
1,788
<issue_start>username_0: I have a dynamodb table. Whenever I add a new item to the table, a lambda function is triggered, certain processing is done and the new item is updated. It works fine, but I was wondering what if thousands of items were added at once. Will the function execute for all items at once?? Or will th...
2018/03/20
1,037
3,956
<issue_start>username_0: I'm trying to add a gmail user to a group using google's api in python. Here's my code: ``` from __future__ import print_function import httplib2 import os from apiclient import discovery from oauth2client import client from oauth2client import tools from oauth2client.file import Storage try:...
2018/03/20
652
2,268
<issue_start>username_0: I'm not sure why i'm having this weird error. I'm using route.put and selected PUT on my post man. Here's my post man error: Image link-><https://ibb.co/dzvAKc> All of my musics on my mongoDB data: Image link-><https://ibb.co/d9TY5H> Routes: ``` const User = require('../models/user'); const...
2018/03/20
1,348
4,239
<issue_start>username_0: I've done this JavaScript calculation. [Live Preview](https://promehedi.com/projects/apps/diploma-cgpa-calculator/) Everything is okay but the problem is, Once the calculation is done, the next time it shows NAN value. If you do not reload the page, then you can not calculation! I want to repe...
2018/03/20
1,153
3,486
<issue_start>username_0: I have this code but is not working , it keep giving me the following errors : ```none [Error] cannot convert 'float' to 'float*' for argument '1' to 'void zeroCrossing(float*, float*, int)' [Error] cannot convert 'float*' to 'float' for argument '1' to 'bool getSign(float)' [Error] cannot c...
2018/03/20
478
2,013
<issue_start>username_0: Hi I am trying to dynamically build input based on ajax returned results. However `.remove()` is not working and my solution is not pretty as I am repeating my self. Any help or direction please. Thanks in advance. ``` ``` ```js url: '/SettingTypes/GetSettingTypeDataValidation', async: false...
2018/03/20
415
1,351
<issue_start>username_0: ``` use fields __PACKAGE__->SUPER::_praveen, qw(path); ``` while executing above line with perl\_5.18.2 getting an error @INC SUPER.pm not found. I am able to compile above line with Perl 5.8.8 can you please help me on this<issue_comment>username_1: I'm not surprised you're getting errors: t...
2018/03/20
650
2,365
<issue_start>username_0: im trying to test Machine Learning codes from this site :<https://github.com/lyuboraykov/flight-genie> im really new to machine learning and im using windows. i already installed the requirements to run the code (python, virtualenv, numpy, sklearn, scipy, etc) but i got stuck when i try to run...
2018/03/20
571
2,138
<issue_start>username_0: I come from a C# background and am debugging some legacy C++ code. My google skills are failing me, or perhaps my understanding of the results is lacking, but could anyone provide a brief explanation of what Message Maps are used for? Many Thanks<issue_comment>username_1: Have you made installa...
2018/03/20
3,653
10,970
<issue_start>username_0: When I try to use `okhttp` or `javax.ws.rs.client.Client` the following error occur > > java.lang.NoSuchMethodError: > sun.security.ssl.SSLSessionImpl.(Lsun/security/ssl/ProtocolVersion;Lsun/security/ssl/CipherSuite;Ljava/util/Collection;Lsun/security/ssl/SessionId;Ljava/lang/String;I)V > >...
2018/03/20
938
2,708
<issue_start>username_0: I have read the [article](https://github.com/ethereum/EIPs/issues/165) abount ERC165 that is enable us to detect which interface is implemented in a contract. However, I found that some ERC721 tokens are a little bit diffrent from others, like [cryptokitties](https://etherscan.io/address/0x060...