date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/05
827
2,980
<issue_start>username_0: I have a list of dictionaries: ``` [ defaultdict(, { 'account\_id': '', 'address': { 'address\_country': 'ZM', 'city': 'North Matthewland', 'state': 'Nevada', 'street\_name': 'Cabrera Extensions', 'street\_number': 197, 'zip\_code': '81431'}, 'affiliate\_id': 12, 'brand': 'TTT', 'c...
2018/03/05
543
1,938
<issue_start>username_0: I'm doing some exercises on list comprehensions and in this one the y coordinate needs to be limited to 0<=y<=10, I know this doesn't work at all but I can't get my head round tuples within lists and how to access the second part of the tuple in order to test it ``` xvals = [x for x in range...
2018/03/05
1,747
5,338
<issue_start>username_0: I've built a carousel, and I want the images to max out the screen in one dimension width if the width of the image is greater than the height, and height if vice versa. Maxing the height should allow space for a header/navbar and footer, and I want them scaled proportionally. At the moment, t...
2018/03/05
1,364
4,502
<issue_start>username_0: So I have a domain purchased through SES which I have verified with SES.I have tested that sending/receiving works by signing into the email with the workmail web app.I am getting the following error when trying to send email with my spring app. javax.mail.MessagingException: Could not connect ...
2018/03/05
326
1,243
<issue_start>username_0: I am trying to write a Hello World program for android. This is my first experience of Java. Gradle is not running properly, and whenever I try to rerun it, it comes up with 24 error messages: ``` resource android:style/TextAppearance.Material not found ``` and then lots of attributes of and...
2018/03/05
655
2,416
<issue_start>username_0: When I open the site with the server.php file, my index page is displayed (index.blade.php), and the link on that page to the list page (list.blade.php) opens successfully. I encountered issues with it recognising my javascript files when I access via server.php? However if I open the public fo...
2018/03/05
572
2,086
<issue_start>username_0: I'd like to create a "one-sided debounce" where the F event is only passed on when there was no T event for a timespan of n. Any idea on how to solve this? Marble diagram: ``` In: (T) (F)(T) (F) (T) (F)(T)(F) | |..... |..... | |.....|..... | ...
2018/03/05
1,260
4,608
<issue_start>username_0: So I've been trying to use a `forkJoin` with an array of Observable from firebase, but it seems they don't complete. I've tried to apply `.first()` or `.take(1)` since it is supposed to complete the observable but it doesn't seem to change anything. ``` getChat(userTwoId: string) { return thi...
2018/03/05
860
2,776
<issue_start>username_0: I have a DataTable that returns me data as follows: ``` APP | VERSION ____|________ app1| 1.0 app1| 2.0 app1| 3.0 app2| 1.0 app3| ``` As you see, "app1" has multiple versions, and some apps don't have any versions. I need to store this Datatable result in some sort of List for later usag...
2018/03/05
599
2,208
<issue_start>username_0: Hi i deployed an application with lambda aws (using Serverless Framework). but i receive the error when i run a test ``` START RequestId: 5bcf988a-2064-11e8-8d1e-c5a0129510f Version: $LATEST Unable to import module 'handler': Importing the multiarray numpy extension module failed. Most like...
2018/03/05
697
2,236
<issue_start>username_0: I am trying to create a hyperlink in Excel that references a cell on my worksheet, to get the sheet name. Here is the working formula, with a static value. ``` =HYPERLINK("[\\xxxfs01\xxxxxxxx\IT\Monthly Reporting\Data\Computers Report for xxxDMZWSUS01.xls]Sheet1!A1","CLICK HERE") ``` When I...
2018/03/05
479
1,330
<issue_start>username_0: I have an SQLite3 table with BLOB primary key (`id`): ``` CREATE TABLE item ( id BLOB PRIMARY KEY, title VARCHAR(100) ); ``` In javascript models, the primary key (`id`) is represented as a Javascript string (one HEX byte per character): ``` var item = { id: "2202D1B51160479092...
2018/03/05
217
724
<issue_start>username_0: I have a data-set of size 10 Petabytes. My current data is in **HBase** where I am using Spark `HbaseContext` but it is not performing well. Will it be useful to move data from `HbaseContext` to `HiveContext` on Spark?<issue_comment>username_1: Try casting the string as a blob: ``` INSERT IN...
2018/03/05
2,597
5,702
<issue_start>username_0: This is my json response i am storing this in ``` $scope.times = response.data; ``` My $scope.times json object: ``` [ { "id": 1, "status": true, "time": "2018-03-05T10:24:15.000Z", "complaintId": 1 }, { "id": 2, "status": true, "time": null, "complain...
2018/03/05
560
1,904
<issue_start>username_0: I have a kotlin data class and I'm trying to call it from Java method. ``` data class Item ( @PrimaryKey(autoGenerate = true) var var1: Long? , @ColumnInfo(name ="var1") var var2: Long){} ``` From Java , I'm trying to save a list of Item so I need to instanc...
2018/03/05
727
2,018
<issue_start>username_0: I have a column in a sqlite3 db. This column contains one or more value for single entry. [![src](https://i.stack.imgur.com/wMOCy.png)](https://i.stack.imgur.com/wMOCy.png) I am talking about `tags` column. What I want to do is to extract them as single element. So I developed this code: ```...
2018/03/05
1,577
5,466
<issue_start>username_0: **Code:** ``` import websocket ws = websocket.WebSocket() ws.connect('wss://stream2.binance.com:9443/ws/!miniTicker@arr@3000ms') record = ws.recv() print(record) ``` I was trying to get realtime data from Binance Websocket API. while trying to fetch data with this sample url ``` wss://str...
2018/03/05
909
3,906
<issue_start>username_0: I need to share action methods between different controllers. Take for example the following 2 controllers: ``` public class AController : Controller { public ActionResult Index() { //print AController - Index } public ActionResult Test() { ...
2018/03/05
269
868
<issue_start>username_0: I want to add a class and a type on my Html.EditorFor, so I proceed like this : ``` Html.EditorFor(model_ => Model.MinDate, new { @class = "datepicker uk-input uk-form-small", type="date"})` ``` but still doesn't work. This is the code in Chrome when I inspect : ``` ``` And after researc...
2018/03/05
716
2,762
<issue_start>username_0: During compaction, if we have two or more versions of the same row, Cassandra only writes the most recent version to the new SSTable. During the read process, if a row has multiple versions on SSTables, a comparison is done. 1.Does the same thing happen when the row is in memtable only (not y...
2018/03/05
597
1,997
<issue_start>username_0: This is the code I have: ``` set thisfolder=%~dp0% echo %thisfolder% ROBOCOPY "%thisfolder%" "F:\batch testing\test\" copyself.bat ``` However the issue presents itself here: ``` F:\batch testing>set thisfolder=F:\batch testing\ F:\batch testing>echo F:\batch testing\ F:\batch testing\ F...
2018/03/05
2,098
7,034
<issue_start>username_0: within our Java application, we would like to parse URL encoded strings: `foo[bar]=value&foo[bar1][baz1]=1&foo[bar1][baz2]2&foo[bar2][]=3&foo[bar2][]=4` -> `{foo: {bar: "value", bar1: {baz1: 1, baz2: 2}, bar2: [3,4]}}` I don't mind if the parsed result will be JSON or Map&Lists – I just nee...
2018/03/05
685
2,282
<issue_start>username_0: I have produced a table like this: ``` +----------+---------+---------+-------+ | _time | field_1 | field_2 | count | +----------+---------+---------+-------+ | 08:00:00 | A | 1 | 2 | +----------+---------+---------+-------+ | 08:00:00 | B | 1 | 4 | +--------...
2018/03/05
1,889
9,784
<issue_start>username_0: Why does the following code: ``` StringBuilder sb22 = IntStream .range(1, 101) .filter(x -> x > 50) .boxed() .parallel() .collect(// object that is used in accumulator to do accumulating on StringBuilder::new, // use object from above and c...
2018/03/05
1,725
3,847
<issue_start>username_0: I have below array which I converted into Object but what I need is only a few of key/value pairs. For that, I am looking for creating an object with required keys only. For example: Final result only include 1 - Start 2 - UserId, 3 - Duration ``` for (var counter = 0; counter < rows.le...
2018/03/05
2,110
6,467
<issue_start>username_0: In the ASP.NET Core 2.0, I use the [default logging API](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/logging/?tabs=aspnetcore2x). My app is hosted as an Azure Web App. **My question: Where are these outputted? And how do I modify it?** (I don't need them in my database or file ...
2018/03/05
870
2,933
<issue_start>username_0: I want to create a number between 1-10000. ``` #include #include int main() { int numb; srand(time(NULL)); numb = (rand()%9999)+1; printf("%d", numb); } ``` But for some reason, it generates the numbers so slowly. I mean, let's say I ran the program. It gives me a "1145" after a s...
2018/03/05
222
881
<issue_start>username_0: Is there any way to make the CloudKit public database writeable for users without an iCloud account?<issue_comment>username_1: According to Apple documentation you must be logged in iCloud to write data in publica database > > For a running CloudKit app, a container’s **public database is alw...
2018/03/05
676
2,652
<issue_start>username_0: In my web application, a user signs in and a token is created. Now i want to add a claim to the payload of this token: a boolean value for being an admin or not. I've searched around the web, but i can't seem to find how to implement this in a Mean stack application. My goal is when a user si...
2018/03/05
571
2,197
<issue_start>username_0: I am currently working on a project where I need to integrate the use of the Selenium Webdriver. I am using the Chrome implementation of Web Driver and running it via Javascript. I am currently testing a simple quantity input form. I am having trouble with a particular aspect of this project an...
2018/03/05
853
2,945
<issue_start>username_0: I have a string which comes from an API and it gives me the duration of a trip. * Sometimes it is look like this : `PT5H27M` * sometimes it is like : `PT5H` * and sometimes it is like : `PT27M` I would like to get a `Date` variable from this. I wrote some function by using pattern and matche...
2018/03/05
815
2,220
<issue_start>username_0: I want to extract a string from a text file MODIS\_list.txt: ``` wget https://ladsweb.modaps.eosdis.nasa.gov/archive/allData/6/MOD09GA/2018/062/ -O MODIS_list.txt ``` then to extract the name of MODIS file: ``` less MODIS_list.txt | grep -o -P '(?<=hdf">).*(?<=(MOD09GA.A2018062.h18v04.006))...
2018/03/05
2,060
7,960
<issue_start>username_0: I'm trying to generalize a neural network function to arbitrarily many layers, and so I need multiple matrices to hold the weights for each neuron in each layer. I was originally explicitly declaring matrix objects in R to hold my weights for each layer. Instead of having one matrix per layer, ...
2018/03/05
549
1,581
<issue_start>username_0: I have two dataframes ``` df1 Name class value Sri 1 5 Ram 2 8 viv 3 4 df2 Name class value Sri 1 5 viv 4 4 ``` My desired output is, ``` df, Name class value Sri 2 10 Ram 2 8 viv 7 8 ``` Please help, thanks in advance!<issue_comment>usern...
2018/03/05
302
1,180
<issue_start>username_0: I have two interfaces. They are almost the same, the only difference is the `Set` method: ``` type Cache1 interface { Set(key, value interface{}, ttl time.Duration) bool } type Cache2 interface { Set(key, value interface{}) bool } ``` Any idea how to unite them into one abstraction...
2018/03/05
724
2,091
<issue_start>username_0: I'm trying to get object items from inside a parent object using a v-for inside another v-for in Vue.js. Data structure: ``` flights: [ { "airline": "BA", "airport": "EBJ", "status": { "_code": "A", "_time": "2018-03-02T14:19:00Z" } }, etc.... ] {{flight.ai...
2018/03/05
607
1,939
<issue_start>username_0: I have an ExtJS toolbar at the top of my panel that can have between 5 and 10 actions (buttons), plus a search text field as the last item. Depending on the size of the window, all items may fit directly on the toolbar, or some of them may get put into a "more" menu button. I need to specify ...
2018/03/05
1,408
4,486
<issue_start>username_0: I'm trying to generate a column in my data frame, let us say it is called 'Status' and it should provide the status of the fish i.e. protected or unprotected. What I am looking for: ``` ID Species Status 1 1 Epinephelus polyphekadion Protected 2 2 Epinephe...
2018/03/05
1,081
3,416
<issue_start>username_0: I have tried changing the color of `md-select` underline with the following css: ``` md-input-container > md-select { border-color: rgba(13, 148, 74, 0.82); } ``` but it doesn't work. Here is the html which contains the md-select which I want to customize: ``` Items {{item}} ``` ...
2018/03/05
594
2,345
<issue_start>username_0: I have a FormArray of FormGroups, i want to iterate over the FormArray and detect which FormGroups are valid. However i am unable to do so as i am unable to iterate over a FormArray as it is not of type Array or string. My logic was to somehow cast the FormArray into an Array if possible. Howev...
2018/03/05
508
1,936
<issue_start>username_0: hello guys i m new to vue, i m using vue 2.5 and i does lot of google and found this this.$router.push('/login'); but i was not working so got little with confuse how i can achieve this. i want to redirect to login url when user successfully register then i want to redirect user to login url ...
2018/03/05
522
1,625
<issue_start>username_0: I am struggling hard to update the YEAR data in some columns in the Database. The values are like 201201 (year+month). The datatype of this column (month\_id) is numeric. I only need to change 201201 to 201501, 201301 to 201601 such that adding +3 to Year. I have tried using CAST, CONVERT. Tri...
2018/03/05
790
2,918
<issue_start>username_0: Based on references below: <https://www.petrikainulainen.net/programming/gradle/getting-started-with-gradle-dependency-management/> I believe I can specify multiple dependencies under a dependency configuration like below: [![Multiple Dependencies under one dependency configuration](https://i...
2018/03/05
871
3,331
<issue_start>username_0: Hello im trying to implement firestore into my web application, when i add the service to contructor the error: > > NullInjectorError: No provider for TesteventService! > > > I'm using Angular 5, angularfire2/firestore and typescript 2.7.1 testevent.service.ts ``` import { Injectable } ...
2018/03/05
712
2,000
<issue_start>username_0: I have the next snippet of code. ``` import numpy as np from scipy.misc import imread import tensorflow import matplotlib.pyplot as plt img = imread('dog.jpg') plt.imshow(img) plt.show() h, w, _ = img.shape cnr = tensorflow.image.crop_and_resize(np.expand_dims(img, 0), np.array([[0., 0.5, 0...
2018/03/05
242
1,135
<issue_start>username_0: I want to use the google translate API to detect a language being typed and also get the translation but it seems this is not possible according to the [docs here](https://cloud.google.com/translate/docs/detecting-language). Does anyone know if this is possible? Or would I have to make two cal...
2018/03/05
280
1,182
<issue_start>username_0: I have large xml. The xml's nodes have attribute id with valus like this: "1\_32434", "2\_45656". With this code: ``` var node = myXml.XPathSelectElement(string.Format("//*[starts-with(@id,\"{0}_\"))", someValue)); ``` I am trying to find all nodes that have attribute id that start with "som...
2018/03/05
5,136
21,142
<issue_start>username_0: hi how can i count how many objects are in this Object of arrays? In the children objects there are also Arrays with Objects. Dont really easy to understand... Hi looked at stackoverflow but dont find a helpful answer. I looked for example at this question: [Link](https://stackoverflow.com/ques...
2018/03/05
468
2,110
<issue_start>username_0: I want to make the custom payement gateway in the shopify so which programming language would be suitable for making plugin and also give some hint how to proceed in it. For making plugin for payement gateway do we have to use public app or private app???<issue_comment>username_1: You cannot m...
2018/03/05
894
3,246
<issue_start>username_0: How to get all UIViews at my touch position? In image below I need to get all UIViews in touches with the yellow line. **Snippet from UI hierarchy:** [![enter image description here](https://i.stack.imgur.com/0g6HG.png)](https://i.stack.imgur.com/0g6HG.png) I looking for a similar function ...
2018/03/05
729
3,062
<issue_start>username_0: I am trying to create custom command in Symfony 4 project ``` class AppOauthClientCreateCommand extends ContainerAwareCommand { protected function configure() { $this ->setName('app:oauth-client:create') ->setDescription('Create a new OAuth client'); } protec...
2018/03/05
1,922
6,701
<issue_start>username_0: Is it possible to use something like `variable(nameOfVariable) = myValue` What I'm doing : ---------------- On of my `XLA Add-In` macro uses a lot of module-level variables ; many being `Public` and 256 being `Const`. Part of the Public ones are some *pseudo-Const* being udpated once in a whi...
2018/03/05
676
2,433
<issue_start>username_0: I have this interface: ``` namespace Common.Extensions { public interface IExtension { string FriendlyName { get; } string Description { get; } } } ``` In other class method, I have this definition: ``` public void LoadExtensions(T tipo) where T : Common.Extensio...
2018/03/05
773
2,494
<issue_start>username_0: i want to create a combobox with pagination this is the combobox ``` Ext.define('BOP.view.dateConsum.DateConsumView',{ extend: 'Ext.container.Container', config:{ xtype:'tabpanel', title: 'Date consum', iconCls: 'x-fa fa-home', closable: true, layout: 'fit', items: [ ...
2018/03/05
424
1,812
<issue_start>username_0: Is there any way to avoid resource deletion when reorganizing/renaming resources? Example: when I first implemented CloudFront Terraform it was an independent sub directory in my project, later I switched to using it as a module in. my root Terraform config but this caused Terraform to want to ...
2018/03/05
748
2,959
<issue_start>username_0: My current code is working and looks like ``` if (Number.isInteger(number)) { ffmpeg(video.mp4) .on('end', function () { console.log('Screenshots taken'); }) .screenshots({ count: number, folder: screenshotsOutput, ...
2018/03/05
457
1,870
<issue_start>username_0: I have been trying to set up Selenium to access an ssl protected service via firefox. To do this, it looks like I need to I am capable of setting up a firefox profile via the GUI in such a way that will allow me to access the server, but I need to use a firefox instance that runs on a GUI-les...
2018/03/05
439
1,420
<issue_start>username_0: I have 3 items: An image View, a TextView and a CheckBox I want the Image View(the infor icon) to appear on the far left side of a GridLayout, the text to appear at the center of the screen and the check box to appear on the far right side, despite setting up my columns correctly the images a...
2018/03/05
4,029
13,763
<issue_start>username_0: I am getting the following error while building the project. haven't used CoordinatorLayout in this project. just added as a dependency in build.gradle : I am using Android Studio 3.2 Canary 4. **LogCat** > > AGPBI: {"kind":"error","text":"Program type already present: android.support.desi...
2018/03/05
809
3,279
<issue_start>username_0: I do have a class: ``` class BaseModel: def __init__(self): pass def read_data(self): df = ... return df def transform_input(self, df): df = ... return df def execute(self, df): df = ... return df def run(self): ...
2018/03/05
808
3,189
<issue_start>username_0: what is difference between 1st and 2nd loop; ``` package standard; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; public class practice { public static void main(String args[]) throws IOException { FileInputStream f=new FileI...
2018/03/05
835
2,488
<issue_start>username_0: I am trying to concatenate strings but it doesn't seem to work. Can somebody tell me what is wrong with the code below? ``` declare @x varchar = 'a'; SET @x += 's' SET @x = @x + 'z' SET @x = concat('x','y') SELECT @x; ``` None of the above methods worked. I am getting the output as 'x'.<...
2018/03/05
747
2,779
<issue_start>username_0: I'm doing online programming tests like leetcode, **which requires only one .cpp file, so I have to place everything into one .cpp file.** And I used to write `main()` function ahead of any other functions, but that way I have to forward declare every function I use, which is very annoying. S...
2018/03/05
1,187
4,092
<issue_start>username_0: I've written a simple method to write a dictionary to a CSV. It works well but I've wondering if it can be improved in terms of speeds (writing a CSV of 1000 rows takes 6 secs in my tests). My question is: **how to improve the speed of this code?** (if possible) Thank you in advance for you...
2018/03/05
1,435
4,352
<issue_start>username_0: Any help with the following would be much appreciated! I have two tables: `table1` is a summary table whilst `table2` is a list of all data points. I want to be able to summarise the information in `table2` for each row in `table1`. ``` table1:flip `grp`constraint!(`a`b`c`d; 10 10 20 20); tab...
2018/03/05
1,258
5,209
<issue_start>username_0: **Question:** It has [been well documented](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection), how to inject dependencies into *services*. However, is it also possible in ASP.NET Core 2.0 to have the system's DI mechanism automatically inject a dependency into a *...
2018/03/05
489
1,953
<issue_start>username_0: Is there a way to gracefully end a process without using `Process.CloseMainWindow()`? I have a bunch of processes in a list which I want to end. The process should be ended without `Process.Kill()` to make sure they clean up and end their child processes as well. I tried *CloseMainWindow*, but...
2018/03/05
370
1,285
<issue_start>username_0: I'm trying to change the material icon from **add** to **remove** with an on click event in React. To clear up some confusion, this has nothing to do with classes, it's to do with the material icon that actually displays. Add is a plus icon, I need to change it from add to remove, which is a su...
2018/03/05
1,800
5,482
<issue_start>username_0: I am trying to secure a web application so that I can use a secure data transport layer TLS/SSL with HTTPS. I am using glassfish server 5. After starting the server I did a <https://localhost:8181> and it gave me this exception: ``` Warning: GRIZZLY0013: Exception during FilterChain exec...
2018/03/05
711
2,444
<issue_start>username_0: We all know we can use `JSON.parse()` to convert the string `'{"a":0,"b":"haha"}'` to the object `{a: 0, b: 'haha'}`. But can we convert the string `'{a: 0, b: "haha"}'` to the object `{a: 0, b: 'haha'}`? I'm writing a web crawler and I need to get the data in the page. But the complete data ...
2018/03/05
925
3,188
<issue_start>username_0: ``` class ImageGridList extends React.Component { nodeRef = null say = () => { console.log(this.nodeRef) } render() { let that = this; return ( this.nodeRef = node } /> ) } ``` when you click, this.nodeRef is undefined. The 'this' object in say function not equal render...
2018/03/05
455
1,344
<issue_start>username_0: I am new to Javascript and is confused why the following won't work? ``` var array = [1, 2, 3, 4] var spread = ...array; ``` I was expecting it would become `1, 2, 3, 4`. Instead, it gave an error message `Unexpected token ...`. Can anyone explain this to me? Thank you so much!<issue_comm...
2018/03/05
468
1,567
<issue_start>username_0: How to set characterSpacing from pt/px? How to set lineHeight from pt/px? I just can not understand how to translate from points or pixels into a value for pdfkit. Help me please <https://github.com/devongovett/pdfkit> --- I need to convert html text to pdf. And you need to match the lette...
2018/03/05
2,831
8,727
<issue_start>username_0: I'm installing kubernetes(kubeadm) on centos VM running inside `Virtualbox`, so with yum I installed `kubeadm, kubelet` and `docker`. Now while trying to setup cluster with `kubeadm init --pod-network-cidr=192.168.56.0/24 --apiserver-advertise-address=192.168.56.33/32` i run into the followin...
2018/03/05
2,630
8,397
<issue_start>username_0: ``` def columnandcellformate(sheet_name,bold = 0,font_color = '#000000',bg_color = '#ffffff',align = '' ,bottom = 0 ,top = 3,right = 0,left = 0,font_size = 10 ,starcolumn = 0, endrow = 0 ): global sheet_format sheet_format=sheet_name.add_format({ 'bottom':bottom,...
2018/03/05
2,728
8,800
<issue_start>username_0: In the code below I have two Play for Scala functions, the first one catches an exception (this works fine) and in the second one I'm trying to rewrite it using `Try`. I have two problems with `Try`: (1) when the number is negative the method doesn't fail, (2) I need to wrap all the responses ...
2018/03/05
389
1,233
<issue_start>username_0: I am running: ``` python manage.py runserver localhost:44100 ``` And this is redirecting me to `https`: ``` » http http://localhost:44100/ HTTP/1.0 301 Moved Permanently Content-Type: text/html; charset=utf-8 Date: Mon, 05 Mar 2018 14:09:09 GMT Location: https://localhost:44100/ Server: WSG...
2018/03/05
746
2,684
<issue_start>username_0: I want to select the network neighbours filtered by a `link` attribute rather than a `turtle` attribute. For example, this might be selecting only the closest friends based on a strength score on the friendship link. I could do this by having different `link` `breeds` for close friends, but thi...
2018/03/05
1,003
3,676
<issue_start>username_0: I have an 'events' post type with a featured image and I want it so that every time an event post is saved it will create a blog post at the same time using the title, content, author, and featured image. I have it working to the point where it creates the blog post and adds all the fields exce...
2018/03/05
448
1,604
<issue_start>username_0: I want to run the `dos2unix` command on all files inside a folder. The issue here is the folder contains files and sub-folders. The sub-folder again contains files and folders. So if I simply run `user/bin/dos2unix` , it will throw an error since there are sub-folders and folders present in the...
2018/03/05
1,201
3,680
<issue_start>username_0: I've written a function to recurse a folder structure, but it's not working as intended. The intended behavior is to return the files of the root folder passed, then go into the first folder, return those files, then go into the first subfolder of the first folder and list those files, etc, etc...
2018/03/05
2,299
5,969
<issue_start>username_0: I am trying to parse a json file as csv file. The structure is a little bit complex and I wrote a spark program in scala to accomplish this task. Like the document does not contain a json object per line I decided to use the **wholeTextFiles** method as suggested in some answers and posts I’v...
2018/03/05
563
2,183
<issue_start>username_0: I am quite new to OPC UA. Regarding my studies, OPC UA is an adopted standard by the industry that makes the connectivity of devices and fetches data from the shop floor (i.e server side) and delivers data to the client side for further processes such as monitoring. For the project that I am in...
2018/03/05
751
2,399
<issue_start>username_0: I am making a HTTP Get request using the code below. I proxy it through Fiddler to analyse the request. The request seems to be being made correctly, with the expected response. However, the `resp.ContentLength` property of the response in GO is `-1` every time despite the fact that the respon...
2018/03/05
1,224
3,614
<issue_start>username_0: I have quite a simple problem, which appearently does not have a quite-so-simple solution. Assume I have the following data: ``` > test <- data.frame(Day = c(1:10), Counts = c(0, 0, 6, 0, 0, 5, 1, 0, 3, 4)) > test Day Counts 1 1 0 2 2 0 3 3 6 4 4 0 5 5 ...
2018/03/05
1,073
3,191
<issue_start>username_0: I was tring to apply a function on my dataframe adding information regarding the average performance of each id i have. the problem is that applying this function using apply takes a lot of time (i stopped the process after 20 minuts) and i need to do it a few times over. so i thought to try ta...
2018/03/05
1,271
4,230
<issue_start>username_0: I have a web app (PHP/Laravel) that needs to work offline. The app is used to manage a number of people I'll call *clients*. My question concerns a page consisting of not much more than a table listing all our clients. Path is `/clients`. Synchronization between MySQL (on server) and Indexed D...
2018/03/05
1,600
4,347
<issue_start>username_0: Let's say I have this array: ``` [ ['Chief 1', 'Chief 1'], ['Employee 5', 'Chief 2'], ['Employee 4', 'Chief 1'], ['Employee 2', 'Chief 1'], ['Chief 2', 'Chief 2'], ] ``` My goal: ``` [ ['Chief 1', 'Chief 1'], ['Employee 2', 'Chief 1'], ['Employee 4', 'Chief 1'], ...
2018/03/05
837
1,433
<issue_start>username_0: To create unique combinations, I used to use below SAS code, I would like to know R equivalent of this. Could anyone please help me doing the same in R, I'm very new to R, just exploring. ``` DATA B ; DO i = 1 to 2 ; DO j = 1 to 5 ; DO k = 1 to 4 ; OUTPUT ; END ; END ; END ; RUN ; DAT...
2018/03/05
2,408
9,394
<issue_start>username_0: I know this should be basic but I cannot figure it out (I'm still a beginner). What I want the code to do is: /\*Take user input for population and land area for 3 countries. \* Calculate the population density (i.e. population/land area) for every country, \* Output the average popula...
2018/03/05
345
1,397
<issue_start>username_0: When using Elastic search's `lowercase` tokenizer, it converts text to lowercase and also breaks text into terms whenever it encounters a character which is not a letter. Breaking of text to terms on encounter of non-alphabet is something which I'm not looking for. I looked into `standard` an...
2018/03/05
567
1,728
<issue_start>username_0: I have a few dates in my JSON file and I wonder how I can rewrite the output of them. Current date: 2018-03-04T23:40:46.94 How it should be: 04/03/2018 Current JSON: ``` { "SKU": "PQ-70-7EF", "ParentSKU": null, "Category": "Alarm clocks", "EAN": "4971850420019", "Title":...
2018/03/05
702
2,722
<issue_start>username_0: I have an html page as below: ``` HTML page send ``` from this form I want to send a post request to an api as follows using php: > > https://example.com/api?email={{<EMAIL>}}&pass={{my > <PASSWORD>}}&input={{user input}} > > > this will return an json response which I then need ...
2018/03/05
1,865
6,767
<issue_start>username_0: I am using HttpClient to call a get request that returns the response in the following format. ``` { "organizations": [ { "id": 1, "name": "<NAME>", "address": null, "sites": [ { "organization": 1,...
2018/03/05
460
1,626
<issue_start>username_0: On old project, we are trying to upgrade Play! to 2.6 version and we are unable to enable circular proxying. Before (in Play! 2.5), there was possibility to call `disableCircularProxies(false)` on `GuiceInjectorBuilder` but there is no such a method now. How could be this solved?<issue_comm...
2018/03/05
568
1,976
<issue_start>username_0: I want to loop through all slides, and if condition applies, store the slide index into one array. This is my code, but I get an error : > > Slides (unknown member): Illegal value. Bad type: expected 1D array > of Variants, Integers, Longs or Strings. > > > Thanks! ``` Private Sub folie...
2018/03/05
1,947
4,983
<issue_start>username_0: I've a Mongo collection with documents like this: ```js { "_id" : ObjectId("5a9d0d44c3a1ce5f14c6940a"), "topic_id" : "5a7af30613b79405643e7da1", "value" : "VMware Virtual Platform", "timestamp" : "2018-03-05 09:26:25.136546", "insert_ts" : "2018-03-05 09:26:25.136682", ...
2018/03/05
967
3,933
<issue_start>username_0: In my application I need a button that you can press once and it changes its state and appearance to pressed. After 1 seconds the pressed button should be released. I tried doing that with ToggleButton and CheckBox. But this is not what I need. EXAMPLE: I press the Button. Color of a rectang...
2018/03/05
780
2,911
<issue_start>username_0: I've the following example ``` [TestMethod] public void AsyncLocalFlowsInContinuation() { AsyncLocal local = new AsyncLocal(); var task1 = Task.Run(() => { local.Value = 1; }); local.Value.Should().Be(0); var t1c = task1.ContinueWith((r) => { local.Value.Should(...
2018/03/05
832
3,024
<issue_start>username_0: ### Ref. [this question](https://stackoverflow.com/questions/48996762/multiple-export-with-dot-notation). I'm trying to do exactly the same, but with Typescript. ### Problem This line (just before the export statement): ``` Sidebar.Item = SidebarItem; ``` gives compile error: `Property 'I...