date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/22
1,357
5,518
<issue_start>username_0: i got two PE files having same sections named as ".data". These name contains different bytes when we see in hex dump. This sections is having 00 bytes in contents. What is this file type can be?<issue_comment>username_1: Looks like you are trying to call an instance method (non-static) from a ...
2018/03/22
416
1,416
<issue_start>username_0: I'm using Filemaker API and PHP and Postman to test it. In Postman (and my PHP project) whenever I try to find a record by an email field it returns an error and doesn't find the record if there is a `@` symbol in the query. For example: ``` { "query":[ {"Contact_Email": "<EMAIL>"}] } `...
2018/03/22
1,055
4,043
<issue_start>username_0: I found an issue in vue-router which triggers me a lot. Always when I switch between my routes, a new instance of the component is created. Further the old instances are not deleted and are running in background! I would expect that when I open a route, the old components will be destroyed or ...
2018/03/22
309
1,030
<issue_start>username_0: HTML: ``` **msg** ``` JS: ``` $('#url').on('change keyup paste',function(){ $('#msg')style.visibility('visible');}); ``` How can i do it please?<issue_comment>username_1: You are mixing both Javascript and Jquery. With Jquery, just change the css property using the function `css()` ``` ...
2018/03/22
830
2,779
<issue_start>username_0: My database: ``` +----+-------+-------+ | id | slug | text | +----+-------+-------+ | 1 | link1 | text1 | | 2 | link2 | text2 | | 3 | link3 | text3 | +----+-------+-------+ ``` My array (queried from database): ``` Array ( [0] => Array ( [id] => 1 [s...
2018/03/22
498
1,549
<issue_start>username_0: I work on Ubuntu Xenial (16.04) with `python3`, I also installed anaconda. I installed `python3-gammu` (with apt install python3-gammu or/and pip install python3-gammu) to test send SMS. Just run python3 console and ``` >>> import gammu Traceback (most recent call last): File "", line 1, ...
2018/03/22
347
1,180
<issue_start>username_0: Can anyone recommend an android java library that creates PDF files and support right to left reading order languages such as Arabic and Hebrew? Or a way to create them using libraries such as PdfBox-Android, apwlibrary ? iText is ok but 0.5$ per device is too expensive for me.<issue_comment>us...
2018/03/22
577
2,017
<issue_start>username_0: Consider this NodeJS route with the provided query: ``` app.post("/api/test", async function(req, res) { const findTags = ["banana", "produce", "yellow", "organic", "fruit"]; Product.find({ tags: { $size: findTags.length, $in: findTags } }) .sort...
2018/03/22
466
1,852
<issue_start>username_0: I am getting the phone contacts and problems are given but when I am using the async task the application stops working. This is my error: > > java.lang.IllegalArgumentException: Can't have a viewTypeCount < 1 > > > I am calling the async task in the onCreate method like so: `new displ...
2018/03/22
620
2,486
<issue_start>username_0: For example, if I have a class such as this: ``` public class TestClass { public IDictionary>> Variable {get; set;} } ``` and I decided I need to use this type elsewhere, but don't want to keep using `IDictionary>>` everywhere as it seems a bit smelly.. how "safe" is it for me to refacto...
2018/03/22
3,788
13,462
<issue_start>username_0: when I am trying to generate apk, I am getting the below error.How to solve it? Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'. > > java.io.IOException: Wrong classpath: File "/Users/gowthamichintha/Downloads/20" not found > > > This is my gradle console ...
2018/03/22
600
2,254
<issue_start>username_0: Here is my problem: In my WPF application I have a `MyBaseControl` (derives from `System.Windows.Controls.ContentControls`) and a lot of `MyCustomControls` which derives from `MyBaseControl`. I need to do some storing and cleanup operations for all my `MyCustomControls` befor the application i...
2018/03/22
484
1,876
<issue_start>username_0: I'm currently working through some old code and I started to wonder, is there actually any difference between: ``` public class XmlExport : IXmlExport { private readonly IJobRepository jobRepository = new JobRepository(); } ``` and ``` public class XmlExport : IXmlExport { private r...
2018/03/22
571
2,069
<issue_start>username_0: I upgraded to Font Awesome 5 (FA 5) from version 4.7. The reason was the layered icons. In FA 4.7, `fa-stack` classes were used. In FA 5, fa-layers are much powerful. The problem, as far as I see, `fa-layers` are only implemented in pure js version of Font Awesome. (using fontawesome-all.js). ...
2018/03/22
243
1,073
<issue_start>username_0: I have a question/opinion that needs experts suggestion. I have a table called ***config*** that contains some configuration information as the table name suggests. I need this details to be accessed from all the executors during my job's life cycle. So my first option is ***Broadcasting*** th...
2018/03/22
436
1,512
<issue_start>username_0: We try to calculate the running total in for each year ordered by person based on his latest date info. So i got an example for you how the data is ordered: [![enter image description here](https://i.stack.imgur.com/79QNU.png)](https://i.stack.imgur.com/79QNU.png) Expected result: [![enter i...
2018/03/22
844
3,248
<issue_start>username_0: I have a class representing sensors in a plant. For historical reasons, similar objects (that are therefore represented by the same class) have a different identification: * Some have a name (ie. "north-west-gummy-bear") * Some have an areaId, and a sensorId In order to accomodate for this, I...
2018/03/22
1,709
5,665
<issue_start>username_0: I have a redux thunk action that fetches some data and then dispatches some actions (not shown in the code here, but you'll be able to find it in the demo link bellow) ``` export const fetchPosts = (id: string) => (dispatch: Dispatch) => { return fetch('http://example.com').then( response =>...
2018/03/22
2,736
8,910
<issue_start>username_0: I'm running into this code (adapted with dummy data): ``` public Map queryDatabase() { final Map map = new TreeMap<>(); map.put("one", 1); map.put("two", 2); // ... return map; } public Map.Entry getEntry(int n) { final Map map = queryDatabase(); for (final Map.Entry entry : map.entryS...
2018/03/22
373
1,423
<issue_start>username_0: I am trying to store an array in the Firebase Database, but I'm not sure how to do it properly. I am wanting to store an array such as: ``` var exampleArray = ["item1", "item2", "item3"] ``` The reason why is I populate a UIPicker with values from an array, and rather than having to push an...
2018/03/22
594
1,704
<issue_start>username_0: This is my array: ``` data = [{"src": 'a'}, {'src': 'b'}, {'src': 'c'}]; ``` But I want to change key like this: ``` data = [{"letter": 'a'}, {'letter': 'b'}, {'letter': 'c'}]; ```<issue_comment>username_1: Use `map` ``` var output = data.map( s => ({letter...
2018/03/22
927
2,267
<issue_start>username_0: I have a data frame in R called info which includes several dates under the column Date, they are ordered in "%Y-%m-%d" I want to only have those values that are less then 6 days apart and remove the "outliers" anyone know how this can be done? what the data frame looks like ``` '> info ...
2018/03/22
1,392
4,799
<issue_start>username_0: So, I have this pipeline job that builds completely inside a Docker container. The Docker image used is pulled from a local repository before build and has almost all the dependencies required to run my project. The problem is I need an option to define volumes to bind mound from Host to cont...
2018/03/22
1,165
3,497
<issue_start>username_0: I tried to make a demo chat application and I styled a chat bubble but I don't how to achieve the auto size bubble chat. Currently, it has a fixed width and height, and I want the bubble's size to fit the text content. Here's a scaled down version of what I currently have: ```js function typo...
2018/03/22
626
2,227
<issue_start>username_0: I have a question to get my customized cell. I use my customized cell item will get error. What's wrong with me? ``` let insertIndexPath = IndexPath(row: self.contents.count-1, section: 0) var cell = self.tableView.cellForRow(at: insertIndexPath) if cell is MyTextTableView...
2018/03/22
487
1,697
<issue_start>username_0: This code is from oauth nodesjs. I want to ask why we are using '{}' around the var google? I also tried using it without '{}' and got error OAuth2 is undefined. i can't understand what is happening here. ``` var {google} = require('googleapis'); var OAuth2 = google.auth.OAuth2; ```<issue_com...
2018/03/22
1,366
3,721
<issue_start>username_0: Take the below example. To replace one string in one particular column I have done this and it worked fine: ``` df = pd.DataFrame({'key': ['A', 'B', 'C', 'A', 'B', 'C'], 'data1': range(6), 'data2': ['A1', 'B1', 'C1', 'A1', 'B1', 'C1']}, ...
2018/03/22
1,225
3,218
<issue_start>username_0: I am using Google smtp in my project, and here's a poblem. I am sending html letters with cyrillic text. Body is okay, but subject displaying with broken encoding (`Ð ÑРµСÐСâ СÐÐ ÑР·СÐÐ ÑР»РÑÐ Ñ`). Which encoding must be used to set cyrillic subject for Google SMTP? I tried utf-8 and...
2018/03/22
480
1,574
<issue_start>username_0: I have a page where class `"check-cls agent-cls corporate-cls log-out-cls hidden"` is present. When I run below jQuery command it is returning me the result: Jquery: ``` $(".check-cls.agent-cls.corporate-cls.log-out-cls"); ``` > > Result : 0: li.check-cls.agent-cls.corporate-cls.log-out-cl...
2018/03/22
1,037
2,526
<issue_start>username_0: ``` _______________________________________ |item |created |expiry | _______________________________________ |A |01/01/2000 |01/02/2000 | |B |01/04/2000 |01/06/2000 | |C |01/05/2000 |01/11/2000 | |D |01/02/2000 |01/05/2000 | |E |0...
2018/03/22
328
1,262
<issue_start>username_0: mongoose-paginate does not render virtual fields of the mongoose model. Any solution for this ? <https://github.com/edwardhotchkiss/mongoose-paginate><issue_comment>username_1: mongoose-paginate can render virtuals, but only if you exclude lean() operation. ``` const options = { // l...
2018/03/22
477
1,900
<issue_start>username_0: I have developed a windows form application using Bunifu .NET UI Framework. But I have a problem, I want to set max length of the text box. Therefore please give me some advice, how can I do it?<issue_comment>username_1: Here is working code - add the code on form load or your constructor lik...
2018/03/22
464
1,785
<issue_start>username_0: I am pretty much new to token base authentication. Can i read other than username from ClaimsPrincipal principal (identity). Is there any way to read/write(store) other information in bearer token. ``` ClaimsPrincipal principal = Request.GetRequestContext().Principal as ClaimsPrincipal; var N...
2018/03/22
503
1,883
<issue_start>username_0: I want to loop over the parameter vector and find which is the biggest index. If the biggest index exists in multiple places it is going to return the highest index value. Could someone explain what I'm doing wrong? ``` static int maxIndex(int vector[]) { int maxIndex = 0; for (int i ...
2018/03/22
371
1,162
<issue_start>username_0: I'm getting a string `"hi\nbye\ngoodluck\n\n{{optout}}"` from a backbone model. But i need to trim() the string. But it's not working. When i'm using the same string with trim() in browser, it's working fine : `"hi\nbye\ngoodluck\n\n{{optout}}".trim()` Expected output : ``` hi bye goodluck ...
2018/03/22
527
1,867
<issue_start>username_0: I'm trying to access CSRF Token received from POST response header, which I need to send back with every further request from my app. I'm was able to drill down the response stream until I could access the [[Entries]] which has the "csrfpreventionsalt" token. It gets displayed in console but wh...
2018/03/22
364
1,261
<issue_start>username_0: Simple case but could not figure out the answer so far. From angular v4 when trying to manually inject `NgControl`: ``` this.injector.get(NgControl); ``` The lint starts complaining: ``` get is deprecated: from v4.0.0 use Type or InjectionToken ``` How to properly inject it using **inj...
2018/03/22
530
2,082
<issue_start>username_0: I understand there is few other similar questions in stackoverflow but I have been investigating them and none are helping my scenario or at-least I am not getting it so here's my situation: I have a component(lets call it `MainComponent`) with two inputs inside. The first input is a `checkbox...
2018/03/22
314
1,112
<issue_start>username_0: I use CMSIS-DAP link for debugging and CMSIS-DAP firmware load successfully. and I use IAR Workbench Version 7.80 IDE. I can build code successfully. But after I Got a **"Fatal Error : Failed to connect to CPU Session aborted !"** during **"Download and Debug"** a code from IAR IDE. I coul...
2018/03/22
1,671
6,006
<issue_start>username_0: I have a need to only get one record from a queryset\_set. (as it only returns 1. so I have used .0 or .first() normally. However at the moment when I use .0 I do not get any data. when I use .first() I get duplicated queries (despite the prefetch) I have tried to use a sub query but from th...
2018/03/22
397
1,345
<issue_start>username_0: My checkbox code: ``` Beverage Size Small Regular Large ``` My submit button: ``` Add Beverage ``` Edited: I want to pass all the checkbox status as a parameter of a function. The drinkSmall, drinkRegular, drinkLarge should be the status of checkbox.<issue_comment>username_1: Yo...
2018/03/22
955
3,408
<issue_start>username_0: i am Using for each Loop to a Jagged String Array in order to display the Elements in it but it is not working and i have tried this code ! ``` public class Program { public static void Main(string[] args) { string[][] str = new string[5][]; str[0] =...
2018/03/22
1,740
5,582
<issue_start>username_0: I want to share the initial visible area of my page between a slideshow and my navbar like the below diagram which will then **stick at the top** when you scroll down the document. This is where I've run into issues. I've tried doing something like `height: 90vh` for my slideshow and `height: ...
2018/03/22
382
1,376
<issue_start>username_0: I've created a mock item for my logger so that I can verify what calls are being made to it; like so: ``` mock_log.Setup(l => l.InfoFormat(It.IsAny(), It.IsAny())); mock\_log.Verify(m => m.InfoFormat("1 file(s) found that match criteria."), Times.Exactly(1)); ``` I've debugged the code an...
2018/03/22
475
1,420
<issue_start>username_0: I have a byte array of, let's say, of 100 bytes. from 0 to 15, these bytes correspond to parameter1, from 16 to 50, corresponds to parameter2, from 51 to 80 corresponds to parameter3, from 81 to 99 corresponds to parameter4 Indexes 1,15,16,50,51,80,81,99 are not fixed. They vary wi...
2018/03/22
1,007
3,978
<issue_start>username_0: I have created a program which takes a string (e.g "[2\*4]x + [3/2]x"), isolates all the instances where there is text within square brackets and places them within an array 'matches'. It then strips off the square brackets and by some function (i am using the library flee) takes each string (e...
2018/03/22
1,524
5,089
<issue_start>username_0: I can do it separate but cannot combine them together, since I don't know disk device name. My configuration: ``` - name: Create Virtual Machine azure_rm_virtualmachine: resource_group: "{{ resource_group }}" name: "{{ item }}" vm_size: "{{ flavor }}" managed_disk_type: "{{ disks.di...
2018/03/22
1,172
3,904
<issue_start>username_0: This is the string I got: `%uD83D%uDE0C` I'm pretty sure it is an emoji, but when I try to decode it with this library: <https://github.com/BriquzStudio/php-emoji>, it does not work. I also tried that library with php's `urldecode` function but with no luck. Can somebody tell me what kind o...
2018/03/22
1,665
6,104
<issue_start>username_0: So I feel like I have come to the end of the rope here, but hoping someone knows more than I do here. I have some `Typescript` files, though that is mostly irrelevant as I am having this problem with all content files. I am able to generate a `nuget`, or more precisely `dotnet pack`, nuget pac...
2018/03/22
1,489
5,324
<issue_start>username_0: What are the standards for boolean parameters in REST which indicates whether or not certain parts of the response should be included. Should they be prefixed with "include" "with" or similar prefix? Example: Say, I have a REST service GET /buildings which returns buildings: ``` [ { na...
2018/03/22
510
1,910
<issue_start>username_0: It's not a question, but rather a solution (with a small dirty trick). I needed to insert an image in CKEditor with "center" alignment by default. I could not find working example, so I spent lots of time and come up with the following answer.<issue_comment>username_1: In your editor's `config...
2018/03/22
463
1,652
<issue_start>username_0: I have to merge 2 cells where the range might vary at every run. I am trying with the below code, but there is some error with the code, which I am not able to identify. For fixed range its working fine, but for variable it is showing error. Line no is the cell number which needs to be merged, ...
2018/03/22
1,225
4,074
<issue_start>username_0: I have a repo with a django project and want to create a Docker image from it. I also don't want to store any compiled files in git so I try to automate creation of all the artifacts during the Docker image creation. If I insert: `RUN python manage.py compilemessages -l en` in my Dockerfile I g...
2018/03/22
3,889
11,904
<issue_start>username_0: I can't save a keras model when using a lambda layer and shared variables. Here's a minimal code that gives this error : ``` # General imports. import numpy as np # Keras for deep learning. from keras.layers.core import Dense,Lambda from keras.layers import Input from keras.models import Mode...
2018/03/22
700
1,992
<issue_start>username_0: I'm working in postgres 9.6 and still getting my head around json i have a column with a json object that is an array of numbers that represent recurrence frequency and the days of the week. ``` {"every":"1","weekdays":["1"]} {"every":"1","weekdays":["1","3"]} {"every":"1","weekdays":["1","2"...
2018/03/22
362
1,416
<issue_start>username_0: I am looking at this example ``` docker run --rm --volumes-from myredis -v $(pwd)/backup:/backup debian cp /data/dump.rdb /backup/ ``` from Using Docker book. Why do we need --rm flag? Why do we have --volumes-from?<issue_comment>username_1: The `--rm` flag tells Docker Engine to remove th...
2018/03/22
642
2,841
<issue_start>username_0: There is a cluster Kubernetes and IBM Cloud Private with two workers. I have one deployment which creates two pods. How can I force deployment to install its pods on two different workers? In this case if I lost one icp worker I always have other with need pod.<issue_comment>username_1: You can...
2018/03/22
803
1,905
<issue_start>username_0: I have data like this: ``` { "-L8BpxbS70KYrZMQUF0W": { "createdAt": "2018-03-22T16:33:57+08:00", "email": "<EMAIL>", "name": "ss" }, "-KYrZMQUF0WL8BpxbS70": { // etc. } } ``` Which I want to turn into this: ``` [{ id: '-L8BpxbS70KYrZMQUF0W createdAt: "2018-03-2...
2018/03/22
1,069
3,619
<issue_start>username_0: I want to create element, add it to the slice and change it by its address. I expect that the change of the element from the outside will change also a slice. But after the addition, a new slice is created. I use serialization, so the use of an slice of addresses is not suitable, also the addit...
2018/03/22
1,090
3,362
<issue_start>username_0: I want to stop a timer by clicking a button but I can't find the exact way. I've tried to stop a timer by `clearInterval()` but I'm not sure if it is called properly. This is my working code. ```html Bootstrap var sec = 0; function pad(val) { return val > 9 ? val : "0" + val; }; ...
2018/03/22
462
1,287
<issue_start>username_0: Iam having variable with value 9:30 am - 12:00 pm i.e ``` $val=$shift (o/p 9:30 am - 12:00pm) ``` I want to convert it to 09:30 am - 12:00pm, i mean i need to add 0 infront of number if time having one digit<issue_comment>username_1: If you are using `date` function then you can forma...
2018/03/22
775
2,444
<issue_start>username_0: I have a form that saves a date into a mysql database. Before the date is saved I need to convert the format. How can this be done more elegantly than the code I have below? I know it can but not sure how to do it correctly. ``` //Get the date (22/03/2018) $start=$_POST['start']; //Remo...
2018/03/22
965
3,301
<issue_start>username_0: I have a table "tbdetails" where students' details are kept. Put simply, I want to limit the table to only hold 10 records max. My form for the table "frmDetails" has the following OnCurrent Event but it did not work: ``` Private Sub Form_Current() Forms(Detail).MaxRecords = 10 End Sub ```...
2018/03/22
223
699
<issue_start>username_0: i want to add a password to this line : ``` define('FTP_PASS' <PASSWORD>') ``` but wp-confing will not recognize @ and \ as characters and for that reason my website goes down. How can i add those characters as text there? ![CHECK IMG](https://i.stack.imgur.com/UOZ3M.jpg) thanks!<issue_c...
2018/03/22
362
1,271
<issue_start>username_0: I have a Logger class like this: ``` public class Logger : ILogging { private ILogger _logger; public Logger() { _logger = LoggerFactory.Resolve(); } public void log(string priority, string message) { //to do the code here } ``` } and this is my config file: ``` ...
2018/03/22
727
1,995
<issue_start>username_0: I need some help on this, I try to use folium in my code but keep getting this error message : > > Attribute Error : Map object has no attribute 'create\_map' > > > Here is what I get (and there is not create\_map in the list) : ``` dir(folium.Map) ['__class__', '__delattr__', '__dict_...
2018/03/22
587
1,996
<issue_start>username_0: I am using flake8 and pylint via [ALE](https://github.com/w0rp/ale) in vim. I know how to disable individual errors/warnings for each of these linters in their respective config files. How can I keep the `line-too-long` checks *except* for the shebang line at the start of the file (if present...
2018/03/22
1,739
5,649
<issue_start>username_0: I have a list of athletes(name, score, place) with names and scores already set. I need to get their place number in the competition depending on the score. At the moment I keep them in a `TreeSet`, so they are already sorted in ascending order. If all the scores are different, I can just do t...
2018/03/22
1,935
6,058
<issue_start>username_0: Google Apps Script to pull data from API. I'd like to parse out the information according to the relevant headers. ```js function Fraud2() { var ret = "no value"; var response = UrlFetchApp.fetch("https://fraudshield.24metrics.com/api/v1/reports/fraud.json?tracker_id=905&group[]=sub_id&gro...
2018/03/22
354
1,290
<issue_start>username_0: ``` 1|Health & Fitness 2|Cardiovascular 3|General Fitness 4|Pilates 5|Technology 6|Artificial Intelligence 7|Advance Learning Machines 8|Virtual and Augmented Reality. ``` this is data in my table. **I want to get data in between Health & Fitness & Technology**<issue_comment>username_1: Try ...
2018/03/22
1,050
3,127
<issue_start>username_0: I have string and there is `0x80` in it. string presentation is : `serialno�` and hex presentation is `73 65 72 69 61 6C 6E 6F 80`. I want to remove `0x80` from string without convert string to hex string. is it possible in java ? I tried `lastIndexOf(0x80)`. but it returns -1. my code is (als...
2018/03/22
958
3,061
<issue_start>username_0: ``` copy_deliverable_script_tomaster(args.Software_name.value,function(state){ res.end("added") } ) function copy_deliverable_script_tomaster(software_name,callback){ client.scp('./Temporary_software_files/folder/', { host: 'ip', username: 'centos', privateKey: String(require("fs")...
2018/03/22
1,017
3,604
<issue_start>username_0: I write these code all are working fine but there is a warning coming that sanitize the sql parameter. ``` private DataSet ExcelToDataSet(string fileData) { DataSet ds = new DataSet(); string connectionString = GetConnectionString(fileData); using (OleDbConnection...
2018/03/22
1,088
3,572
<issue_start>username_0: I've wrote a program that creates 4 threads which each sort 20.000 numbers from low to high 50 times. I've runned this test several times on .NET Core 2.0 and .NET Framework 4.6.1. In this test .NET Framework always outperforms .NET Core. **Setup** * .NET Core in release mode & published * Wi...
2018/03/22
542
1,746
<issue_start>username_0: ``` document.write("<table border=2 width=50%"); for (var i = 0; i < ${SALE\_DATA.SALE\_ORDER\_ITEMS\_LIST.length}; i++) { document.write("<tr>"); document.write("<td>" + ${SALE\_DATA.SALE\_ORDER\_ITEMS\_LIST[i].WEIGHT} + "</td>"); document.write("<td>" + i + "</td>"); document.write("...
2018/03/22
528
1,980
<issue_start>username_0: I am trying to understand, why do we need `Offer` and `OfferLast` methods in `Deque`, as both these methods add the elements at the end/tail of the `Deque`. What is the significance of it?<issue_comment>username_1: So you can use the same object both as a queue and a deque. Upvotes: 0 <issue_co...
2018/03/22
691
2,135
<issue_start>username_0: I need to find this element : ``` * < * 1 ===> * 2 * 3 ``` Current class is changing but I always need to select its previous element if it exists I tried : ``` $("#pagin li a").closest(".current").prev(".pagination") $("#pagin li a.current").prev() $("#pagin li a.pagination.current").pr...
2018/03/22
728
2,858
<issue_start>username_0: I'm using push browser notifications in my project, everything is working fine except for clicking on notification, i want it to open dynamic url according to notification data my code ``` self.addEventListener('push', function(event) { console.log('[Service Worker] Push Received.'); con...
2018/03/22
919
2,412
<issue_start>username_0: I want to calculate the maximum of 15 files:- ifile1.txt, ifile2.txt, ....., ifile15.txt. Number of columns and rows of each file are same. But some of them are missing values. Part of the data looks as ``` ifile1.txt ifile2.txt ifile3.txt 3 ? ? ? . 1 2 1 3 . 4 ? ? ...
2018/03/22
826
2,613
<issue_start>username_0: I have made a SQLite database with some users for a small website I'm working on, and I would like to display all of those usernames on my website. I use Java, JavaScript, HTML and SQL. The overview of my SQLite: ``` Table name: users Column names: username, password My guess on the SQL code...
2018/03/22
464
1,625
<issue_start>username_0: Please see the video for animation issue in UITableview. When I get the data from the API and refresh cell than the first cell animation issue when it is expanded. I used below code for reload cell. ``` self.tblSpDirectoryView.reloadRows(at: [IndexPath(row: 3, section: 0)], with: .none) ``` ...
2018/03/22
995
2,926
<issue_start>username_0: when i tried to import css file it showed error that loaders are missing. so i have installed css-loader and style-loader packages. if i add those packages to **webpack.config.js** i get following error. i dont know how to resolve it. ``` ERROR in ./node_modules/css-loader!./src/index.js Modul...
2018/03/22
550
1,765
<issue_start>username_0: ``` class Map extends Component { constructor(props) { super(props) this.state = { listHouse:[{"_id":"5aaa4cb5dab4f51645d3e257","location":{"lat":"32.7020541","lng":"-97.2755012","__typename":"locationType"},"__typename":"rentType"},{"_id":"5aa8c86b0815090a6610f7d9","location"...
2018/03/22
941
2,860
<issue_start>username_0: I wish to count the number of lines in paragraph from text file which looks like this: text file = ``` black yellow pink hills mountain liver barbecue spaghetti ``` I want to know that the last paragraph has less or more lines than others and then remove it. The result I want: ``` blac...
2018/03/22
816
2,492
<issue_start>username_0: What is the best strategy to store an api response that contains a list of data while building a PWA? 1. to cache the response using sw-toolbox or 2. to save it in indexedDB and return from it when offline.<issue_comment>username_1: You could split by `\n\n` and use a list comprehension: >...
2018/03/22
596
2,409
<issue_start>username_0: So I have created a macro to add a "todo-shape". Now I'd like to create a macro that goesto the next todo-shape in the presentation. I am quite new to VBA in PowerPoint but have created some code below. Any ideas how to get it to work? ``` Sub TodoSelectNext() Dim i As Integer i...
2018/03/22
1,429
3,953
<issue_start>username_0: I have two array, one is type of String and second one is number. How can I combine these conditionally as key value objects. **For example:** ``` var fruits = [ "Apple", "Banana" , "Apricot", "Bilberry" ] var count = [3,5,0,2] ``` I want to combine `fruits` and `count` array as ke...
2018/03/22
1,478
4,361
<issue_start>username_0: I am trying to get some hands-on experience about template engine using groovy. Referring to the [official document](http://docs.groovy-lang.org/docs/next/html/documentation/template-engines.html#_streamingtemplateengine) Below is the code snipped that I am trying to execute, but got an error ...
2018/03/22
724
2,853
<issue_start>username_0: I need to check a condition before the job triggers the postbuild action I could see that post section within the Pipeline supports always, changed, failure, success, unstable, and aborted. as the post build conditions. But i want to check another condition in the post build action. I tried w...
2018/03/22
1,015
3,922
<issue_start>username_0: Hello I am trying to store the name of the player with the high score in the `sharedpreferences`. I want it to be the top 5 players. Now if I try to store an array in there I get the error: "Wrong 2nd argument type. Found '`java.lang.String[][]' required 'java.util.Set`'" ``` public static vo...
2018/03/22
1,081
4,207
<issue_start>username_0: ``` I am trying to display the shortest time taken to click a shape. However the `localStorage` function is returning a `NaN` value instead of the required Number value. How can I tweak the code to return a number value. ``` Thanks ``` document.getElementById("shapes").onclick = function() ...
2018/03/22
423
1,614
<issue_start>username_0: I want to create a Gallery with a databse. Connect to database, use `foreach` to print out info in prepared `HTML` code. I separated the `PHP` code from the `HTML` code, so **each type of code** is in **different folders**, separated files, for example, i have `index.php` which requires `html/...
2018/03/22
703
2,825
<issue_start>username_0: I am making an APP which always is detecting noises. And when it detect a loud noise it starts a function. While the function is happening I need temporarily pause the loop which detects noises. How can I do that? Hares my code: ``` private void readAudioBuffer() { try { short...
2018/03/22
1,033
3,996
<issue_start>username_0: Sorry, i am newbie on java web development. I got some task to fetch user profile picture from 3rd party company via HTTP rest(GET method). Their api only can be accessed using session id on the header parameter and the api will return some byte[] array looks like `’ÑÒBRSb¢ÂáTr²ñ#‚4“â3C` etc. ...
2018/03/22
488
1,776
<issue_start>username_0: I have extracted the value from Json response for one of the Key. It has two possible values as either ``` Key=[] or Key=[{"combination":[{"code":"size","value":"Small"}]},{"combination": [{"code":"size","value":"Medium"}]}] ``` I need to check whether Key is [] or it has some values. Coul...
2018/03/22
834
2,994
<issue_start>username_0: I have been sitting on this problem for a while now. I have seen similar problems already being solved but so far applying those solutions just returned other errors to me. I have a spreadsheet connected to Bloomberg. I want to save the spreadsheet as pdf with different Company names/tickers i...
2018/03/22
638
2,364
<issue_start>username_0: How can I search my date into the datagrid view? I have a sample code which I think is correct but why does it not search? [![enter image description here](https://i.stack.imgur.com/IGqiF.png)](https://i.stack.imgur.com/IGqiF.png) ``` private void textBox3_TextChanged(object sender, Event...
2018/03/22
1,403
5,408
<issue_start>username_0: I've successfully created a simple `iOS` app that will change the background color When I click on the button. But. now the problem is I've no idea on how to implement property observer to print out message to the effect of the color whenever the color has changed. `UIColorExtension.swift` ``...
2018/03/22
716
3,116
<issue_start>username_0: I understand that if a number gets closer to zero than `realmin`, then Matlab converts the double to a [denorm](https://en.wikipedia.org/wiki/Denormal_number) . I am noticing this causes significant performance cost. In particular I am using a gradient descent algorithm that when near convergen...
2018/03/22
568
1,909
<issue_start>username_0: I'm trying to write a `case` statement with two separate conditions: 1. `controller_name` being `'pages'` or `'users'` 2. `controller_name` being `'static'` and `action_name` being `'homepage'` This is what I've tried: ``` case controller_name when 'pages', 'users' stylesheet_link_tag "sty...