date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/26
1,995
6,583
<issue_start>username_0: Consider the following DataFrame: ```none +------+-----------------------+ |type |names | +------+-----------------------+ |person|[john, sam, jane] | |pet |[whiskers, rover, fido]| +------+-----------------------+ ``` Which can be created with the following code: `...
2018/02/26
1,519
5,722
<issue_start>username_0: Say I have a generic class `Foo` which can hold an object of type `T`. Furthermore, let's say I *only* want to be able to instantiate the class with objects that are one of two types. Finally, let's say that the lowest common upper bound of these two types is a type that has many more subclasse...
2018/02/26
965
3,370
<issue_start>username_0: So i have a script for a countdown which looks something like this: ``` import time, threading, asyncio def countdown(n, m): print("timer start") time.sleep(n) print("timer stop") yield coro1 async def coro1(): print("coroutine called") async def coromain(): print("fi...
2018/02/26
267
1,099
<issue_start>username_0: I set frame content using `MyFrame.Navigate(typeof(Page2))`. How to get information which Page is currently displaying. I want to make something like address bar.<issue_comment>username_1: You can get a reference to the type which is currently being displayed on your frame, by checking out the ...
2018/02/26
805
3,043
<issue_start>username_0: I am using `generate:controller` to create a new controller in my Symfony 3 application. But the route is not getting found. Here is the input/output of the command ... ``` First, you need to give the controller name you want to generate. You must use the shortcut notation like AcmeBlogBund...
2018/02/26
603
2,369
<issue_start>username_0: I have `structs` as follows in a `First Collection View Controller` ``` struct Area{ var name = String() var image = String() } var area = [Area]() ``` and in `Second Collection View Controller` ``` struct AreaSelected { var imageSelected = String() } var areaSelected = [AreaS...
2018/02/26
518
1,593
<issue_start>username_0: I have a function that ranks a variable based on # of occurrences. ``` rankTab <- function (x) { tab1 <- data.frame(table(x)) tab1 <- tab1[order(-tab1$Freq), ] tab1 } ``` I'd like to run this across a data.frame with multiple columns and figure out a rough measure of cardinalit...
2018/02/26
1,320
3,982
<issue_start>username_0: I've searched for this and can't seem to find a decent solution. I'm trying to make a left border on a given `-` element so it marks the active option. The effect I'm going for is similar to Gmail where they mark the open folder with a red border, e.g: [![enter image description here](https:/...
2018/02/26
324
1,156
<issue_start>username_0: Is it possible to perform a regex sub on a group from within another regex sub in python? I'd like to remove all square brackets and replace all spaces within square brackets with underscores. I'm able to remove the square brackets without issue, but I can't figure out how to remove the spaces ...
2018/02/26
638
2,316
<issue_start>username_0: Python offers a few methods which are also implemented in python: Power: `x ** 2` vs. `np.power(x,2)` Matrix muliplication elementwise: `X * Y` vs. `np.multiply(X,Y)` Sum: `sum(X)` vs. `np.sum(X)` etc. So, what I wonder now: Are the implementations in numpy more efficient than the native o...
2018/02/26
772
2,482
<issue_start>username_0: I am using [Gatsby.js](https://www.gatsbyjs.org/) to create a blog. One of the starter packages seems to leverage an alias, so one can fetch and reuse an image to serve as a favicon. The favicon (alias) is in the `src/` folder and it's called `favicon.png`. [![enter image description here](htt...
2018/02/26
771
2,555
<issue_start>username_0: How can I convert this SQL to Laravel5.5 Eloquent format `select * from 'arm_articles' where ('article_tag' like '%standard%' or 'article_topic' like '%standard%' or 'article_details' like '%standard%' or 'article_type' like '%standard%') and ( ('id' between 287 and 296) and 'article_active' =...
2018/02/26
403
1,784
<issue_start>username_0: I want to autoscale AWS RDS automatically with scripts based on the metric monitoring.<issue_comment>username_1: RDS doesn't really do this for Read-Write Multi AZ Write-Read database copies are intended for failover from primary to secondary if there is an availability problem. They don't add...
2018/02/26
993
3,886
<issue_start>username_0: Currently, we are using the full 30 characters of the InventoryItem.InventoryCD field, but we need more. How can we increase this field length to 45 characters ?<issue_comment>username_1: This can easily be done by creating a customization project containing a database script. This guide will b...
2018/02/26
1,908
6,846
<issue_start>username_0: Using android studio for the first time. While 'run "app"' on a device connected by USB, it's giving me an error in Build. Why am i getting this? and how to resolve the error? ``` 2 actionable tasks: 2 executed Executing tasks: [:app:assembleDebug] :app:buildInfoDebugLoader [Fatal Erro...
2018/02/26
347
1,170
<issue_start>username_0: I just tracked down this very confusing `\\` issue I am having. Here I'm assembling an object, which has one property which is a stringified object. ``` const status = 'alive' const example = {status, name: 'Thomas', age: '28', home: 'Brooklyn'} const dumbDecision = `{"status": "alive"}` con...
2018/02/26
611
2,605
<issue_start>username_0: I am trying to show a confirm AlertDialog before user press on back button or Activity going Pause. I tried this code: ``` @Override public void onBackPressed() { super.onBackPressed(); AlertDialog.Builder confirmBuilder=new AlertDialog.Builder(DoExam.this); confirmBuilder.setT...
2018/02/26
393
1,576
<issue_start>username_0: Basically the question is in title: Can I use the same Google Analytics (gtag.js) tracking ID for multiple subdomains? I know it's technically possible (I tried it), but is it "wrong" in any way? I would prefer to use a single ID for multiple subdomains for practical reasons and to keep them a...
2018/02/26
1,040
3,926
<issue_start>username_0: Is it possible to increase the index from 5 to 15? <https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html> > > Secondary Indexes Per Table You can define a maximum of 5 local > secondary indexes and 5 global secondary indexes per table. > > > <https://docs.aws.ama...
2018/02/26
509
1,323
<issue_start>username_0: How can I create a BigInteger with 256 bits that are all set ? I've already tried the following: ``` BigInteger.valueOf(0xFFFFFFFFFFFFFFFFL) ``` But it doesn't give me the desired result: ``` int bitCount = b.bitCount();// 0 int bitLength = b.bitLength();// 0 ``` What I basically need is ...
2018/02/26
1,128
3,550
<issue_start>username_0: Please help me with selecting a value from the dropdown. I was able to login to the website but unable to select a value from the dropdown list after logging in. I had tried few solutions/suggestions found online, but couldn't get that to work. Please see below for the code and error with HTML....
2018/02/26
432
1,521
<issue_start>username_0: Suppose I have some django models: ``` class Restaurant(Model): name = CharField(max_length=200) class Food(Model): restaurant = ForeignKey(Restaurant, on_delete=CASCADE) name = CharField(max_length=200) ``` One Restaurant can have multiple foods. And I want my json to look lik...
2018/02/26
1,052
3,967
<issue_start>username_0: I've been all over here and <https://github.com/WP-API/WP-API/> and <https://wordpress.org/> and cannot find anyone talking about this. I can get it working using postman and selecting the file, however i cannot get it work submitting it as either "multipart/form" or "image/png". I also cannot...
2018/02/26
528
1,595
<issue_start>username_0: I want to convert decimals into Hex: ``` string hex = IntToString(dezimal, new char[] { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'}); textBoxHexa.Text = hex; ``` But I get an error: > > Input string was not in a cor...
2018/02/26
474
1,745
<issue_start>username_0: I've got a design that I'm trying to "lock" a div to the viewport when it reaches a specific distance within the window by actually adding overflow:hidden to the body. I would prefer to not have to fix it. My question: is there a way where I can get the scroll granular enough where I can trigge...
2018/02/26
777
2,564
<issue_start>username_0: I am trying to create a jinaj2 template with a dynamic number of input fields. The form is generating successfully in Flask, however I am having issues with the Jinja/HTML. As an example of my "non-dynamic" working example I have one standard form field "forID" and and four hard coded field f...
2018/02/26
929
3,416
<issue_start>username_0: today I was discussing with my firends about correct way to pass object array in C++. Is there is any efficiency difference between these two: ``` Struct Apple { std::string color; } void colors(Apple A[]) { A[0].color = "red"; } int main() { Appple apples[10]; colors(apples)...
2018/02/26
312
1,074
<issue_start>username_0: Is there a way to have support two color axis on one heatmap? For example, make half of the heatmap to have a gradient from white to **blue**, and the other half of the heatmap to have a gradient from white to **red**. Here is an example of a heatmap with only 1 color axis: <https://www.highch...
2018/02/26
766
2,821
<issue_start>username_0: I looked at attributes of the EC2 instance, but did not get a clear attribute value that identifies the same. I also, saw the following discussion, but Im wondering whether identifying the os/platform has been simplified by aws since this disscusion. [How to find OS of an EC2 instance using AW...
2018/02/26
1,234
4,689
<issue_start>username_0: As I'm learning how to use graph with Cosmos DB, I found two Microsoft tutorials: * [One](https://learn.microsoft.com/en-us/azure/cosmos-db/create-graph-dotnet) using [Gremlin.Net](http://tinkerpop.apache.org/docs/3.2.7/reference/#gremlin-DotNet) * The [other](https://learn.microsoft.com/en-us...
2018/02/26
1,085
3,702
<issue_start>username_0: So for example I have a table with these 5 rows in a database: ``` Test1 ‌ ‌ ‌ C1 ‌ ‌ ‌ 143 ‌ ‌ ‌ 1 Test1 ‌ ‌ ‌ C1 ‌ ‌ ‌ 110 ‌ ‌ ‌ 3 Test2 ‌ ‌ ‌ C2 ‌ ‌ ‌ 923 ‌ ‌ ‌ 6 Test2 ‌ ‌ ‌ C2 ‌ ‌ ‌ 123 ‌ ‌ ‌ 9 Test2 ‌ ‌ ‌ C2 ‌ ‌ ‌ 332 ‌ ‌ ‌ 3 ``` I want a view to ignore the third column and based on co...
2018/02/26
465
1,602
<issue_start>username_0: Consider the following `ConfigMap` definition, in, say, `foo.yml`: ``` apiVersion: v1 kind: ConfigMap metadata: name: foo-data data: foo.json: |- { "foo": "foo", "bar": 42 } ``` Is there a way to load the `foo.json` data from an external file, instead of inlining it i...
2018/02/26
337
1,310
<issue_start>username_0: Is it possible to export all variables values that were set in CMake-GUI to single command line string so it can be used from external tools quickly? So the output would be something like: ``` cmake -DVar1=ON -DVar2="foo" ... ```<issue_comment>username_1: You can get them from ``` Tools->"S...
2018/02/26
390
1,494
<issue_start>username_0: I'm trying to "destroy" an "ACTION\_RECOGNIZE\_SPEECH" intent... ``` public void getSpeech(View view){ Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); ``` ... ``` @Override public void onDestroy() { // prevent memory leaks when activity is destroyed ....s...
2018/02/26
753
2,875
<issue_start>username_0: I have a bunch of lists and for the search of those lists i add all of the lists data to a `arrayList` but im living in Iran and my gov disable our access to twitch at nights and i add the twitch data to my `arrayList` too but when we dont have access the search `recyclerView` with arrayList wi...
2018/02/26
710
2,731
<issue_start>username_0: I can add participant through command line command such as below successfully. ``` composer participant add -c admin@health-network -d '{"$class": "org.acme.health.Patient", "patientId": "10", "firstName": "Mae", "lastName": "smith", "email": "<EMAIL>"}' ``` However, when I try javascript AP...
2018/02/26
645
2,590
<issue_start>username_0: I have a large macro I am amending for my purpose. The writer of the macro was more skilled than me. The macro at present runs formulas on data gathered from websites and other spreadsheets. All I want to do is to have "Red Flagged" ranges copied and pasted into a the same new workbook. Can th...
2018/02/26
723
2,330
<issue_start>username_0: I am trying to export a pandas dataframe to .arff file to use it in Weka. I have seen that the module [liac-arff](https://pypi.python.org/pypi/liac-arff/1.1) can be used for that purpose. Going on the documentation [here](http://pythonhosted.org/liac-arff/) it seems I have to use `arff.dump(ob...
2018/02/26
741
2,016
<issue_start>username_0: I have a Pandas DataFrame which looks like this: ``` Time Image_names 0 [a,b,c,d] 0 [a,c,d,e] 0 [c,d,e,f] 1 [e,f,g,h] 1 [f,g,h,i] ``` What I wish to obtain: All unique image names for a given Time ``` Time Image_names 0 [a,b,c,d,e] 1 [e,f,g,h,i] ``` I'm not sure if I ...
2018/02/26
1,892
6,741
<issue_start>username_0: When I try to execute the following code, the debugger is highlighting the line strbody which decides which cells get output to the email. I'm not sure how to activate the FormulaCell so that when a value is exceeded in a column this row will be able to used to enter information to the email....
2018/02/26
525
1,895
<issue_start>username_0: I have a class with some event handlers. The class creates several threads that can use those handlers (if they are assigned). In pseudo-code: ``` public class Test { public SomeEventKind OnEvent; public Test() { for (int i = 0; i < 10; i++) new Thread(multiThre...
2018/02/26
585
1,953
<issue_start>username_0: We have used ghostscript to generate PDF files using postscript files created by our system services for years. Currently if three topics are bookmarked for a singled page all three bookmarks point to the top of the page. We have been asked to have the bookmarks open the page and position the ...
2018/02/26
1,137
3,708
<issue_start>username_0: I need to convert a `map[string]interface{}` whose keys are json tag names to `struct` ``` type MyStruct struct { Id string `json:"id"` Name string `json:"name"` UserId string `json:"user_id"` CreatedAt int64 `json:"created_at"` } ``` The `map[str...
2018/02/26
597
1,935
<issue_start>username_0: For my Stats class, we are using R to compute all of our statistics, and we are working with numeric data that also has a categorical factor. The way we currently are plotting fitted lines is with `lm()` and then looking at the summary to grab the coefficients manually, create a mesh, and then ...
2018/02/26
281
1,046
<issue_start>username_0: Does anyone knows how to uninstall ARC (Advanced REST Client) Native Application? I follow the link provided below to install ARC but there is no information for how to uninstall it. Installation steps are as follow: 1. Click on the link blow (provided) 2. There is an INSTALL link and i...
2018/02/26
708
2,402
<issue_start>username_0: I'm thinking this has something to do with "this", but I can't quite figure it out. I'm receiving an error that title is undefined and states the error stems from my Edit.js file. However, no error displayed until I attempted this.setState({ recipes: updateRecipe}); **App.js** ``` constructor...
2018/02/26
449
1,617
<issue_start>username_0: class `Parent` ``` belongs_to :condition has_many :conditionregions, through: :condition ``` class `Condition` ``` translates :description, :fallbacks_for_empty_translations => true globalize_accessors ``` class `Conditionregion` ``` belongs_to :region ``` With jbuilder the associat...
2018/02/26
833
3,137
<issue_start>username_0: I am using Jquery Datatable and on each td click I am trying to bind the current td value to the existing textbox. I am getting the div as popover but the value is not getting binded. Also on first click the popover is not getting displayed can some one help me ``` $(document).ready(function()...
2018/02/26
638
2,151
<issue_start>username_0: In Jekyll, I have created a layout file `dev.html` which is already using some other `layout: default` but that is not important. **dev.html** ``` --- layout: default title: Developer --- {{ want to include page1.md }} {{ want to include page2.md }} ``` Now, I have those 2 markdown pages ...
2018/02/26
1,216
4,408
<issue_start>username_0: I am working on a word game project. My problem is that I have the game post the word and not the hints (I have them linked to a button) and when I press the button it executes all of the hints and I only want one hint per word. Each word has a hint that is in the same order as each other (i.e ...
2018/02/26
2,029
6,960
<issue_start>username_0: I read in a random text file I've created ``` hard toffee 10 hard toffee 20 ... chewy gum 40 soft marshmallow 20 hard toffee 30 soft marshmallow 40 ``` I create an array of sweets/candy objects and store it like t...
2018/02/26
714
2,010
<issue_start>username_0: I am trying to lookup a value from another table with a filter, and a TOPN. I have two tables like this: Table1 ``` ID Latest X-1 X-2 ``` Table2 (Key is concatenation of ID and Start) ``` ID Start Key Status X-1 1 X-1 - 1 Done X-1 2 X-1 - 2 Done X-1 3 X-1 - ...
2018/02/26
1,065
4,320
<issue_start>username_0: Annoyingly, the MediaData class in Episerver doesn't have any basic properties like source URL, alt text, etc. I'm trying to implement a class to inherit from MediaData and provide specific properties for a certain type of media asset (PDF in this example). I've tried manually setting the pro...
2018/02/26
287
1,056
<issue_start>username_0: I am trying to make my textarea readonly using CSS however not sure how to do it. I have tried following things, none of them seems to work. I know how to do it using html, but I don't want to do and change the html of all the textarea. ``` readonly:readonly; ``` and ``` readonly:True; ...
2018/02/26
813
3,117
<issue_start>username_0: I have a 2D array (n \* m) as a canvas and coordinates of Used points (startingPoints) in it. I have to calculate, how many points in it is not fieldable with floodfill from outside of the canvas. Field can go only in 4 directions and there are three types of points: Free, Fielded, Used. Used p...
2018/02/26
307
1,173
<issue_start>username_0: In an application using material-ui v1.0 (aka [material-ui-next](https://material-ui-next.com/)), how can I create a chip input field with autocomplete options? (I.e. a text box that, when you start typing, produces a list of available options, and when you click one of those options changes th...
2018/02/26
449
1,707
<issue_start>username_0: I've spent forever trying to connect my Django container to Redis while using Docker-Compose. After hours of changing Docker and Django configs and trying different ways to run everything, I finally figured out that Redis was broadcasting to the host. These were the errors I was getting each t...
2018/02/26
1,081
2,552
<issue_start>username_0: I have text stored in column; in hundreds of rows. The text is `VARCHAR` and anywhere from 500-5000 characters. I want to return only the numbers between 2 brackets. So here's an example ``` abcd(22135) hhgygas(52142)dijijijs whatisthis(33234) i have no idea (22342) ``` And the result s...
2018/02/26
461
1,835
<issue_start>username_0: Fresh from the installation process (SIF) several lines in the site web.config produce the following error: Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not b...
2018/02/26
693
2,586
<issue_start>username_0: Does anyone know if there is a keyboard shortcut to toggle next / previous tabs in JupyterLab (if there is, how to do it)? or if we can customize keyboard shortcuts? **EDIT** This [youtube](https://www.youtube.com/watch?v=rhW3kAExCik) shows how you can customize your keyboard shortcuts in Jup...
2018/02/26
1,544
4,451
<issue_start>username_0: According to the ["Assignments" section](https://golang.org/ref/spec#Assignments) of the Go Language Spec: > > The assignment proceeds in two phases. First, the operands of index expressions and pointer indirections (including implicit pointer indirections in selectors) on the left and the ex...
2018/02/26
2,197
5,421
<issue_start>username_0: I'm trying to get the number of outliers by group from a Pandas data frame. My data looks like this. ``` df = pd.DataFrame({'group':list('aaaabbbb'), 'val':[1,3,3,2,5,6,6,2], 'id':[1,1,2,2,2,3,3,3], 'mydate':['01/01/2011 01:00:00', ...
2018/02/26
621
2,368
<issue_start>username_0: I need some help constructing an If/Then query in Access. I want the New Comments field to populate based on the Cardholder, Approver, and Reconciler columns: ``` If only Cardholder is filled: New Comments field = A If only Reconciler is filled: New Comments field = B If only Approver is fille...
2018/02/26
1,908
7,743
<issue_start>username_0: How can I check if the services of `docker-compose up` started successfully? Context: I'm adding CI to my project and as part of it, I'd like to have my CI build the docker image and execute a `docker-compose` command to see if all the services can be brought up successfully before moving on t...
2018/02/26
474
2,070
<issue_start>username_0: If i have a list (~200 elements) of objects, with only few unique objects (~20 elements). I want to have only unique values. Between `list.stream().collect(Collectors.toSet()) and list.stream().distinct().collect(Collectors.toList())` which is more efficient wrt latency and memory consumption ?...
2018/02/26
177
607
<issue_start>username_0: Is there a way to verify that an erlang process has been indeed hibernated. `erlang:process_info/1` doesn't seem to provide this information and I can't think of anything else which might.<issue_comment>username_1: Its current function should be `erlang:hibernate/3`. ``` 1> erlang:process_inf...
2018/02/26
722
2,346
<issue_start>username_0: ``` #include int main() { printf("C programming %s","is %s for health","good"); return 0; } ``` is this a way to print c programming is good for health. as of my idea first "is %s for health","good" will render then "c programming %s", is good for health".<issue_comment>username_1: ``` #incl...
2018/02/26
1,774
5,746
<issue_start>username_0: I have the following string: ``` person:juan&age:24&knowledge:html ``` The problem is that sometimes the string is: ``` knowledge:html&person:juan&age:24 ``` And it can change the position of the keys and the values. In this case I would write something like this: ``` const keys = ["per...
2018/02/26
904
3,450
<issue_start>username_0: The [MDN docs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute) say you should use `aria-label` like this: ``` X ``` I don't have access to a screenreader, but I've seen comments on Stack Overflow suggesting that an `aria-label` ...
2018/02/26
408
1,835
<issue_start>username_0: We currently have data that is written to Google Firebase in the following fashion. Someone/People determines they are 'available' along with additional criteria. Once submitted they are added to a table/store of data. We need to regularly query this data store for matches. For example, there...
2018/02/26
198
663
<issue_start>username_0: I am trying to hide the tags select if there are no tags in my database so that I don't see an empty select element with no options, however, the obvious solution doesn't seem to work. ``` @if (!empty($tags)) Tag @foreach($tags as $tag) {{$tag->name}} @endforeach @endif ```<issue_com...
2018/02/26
326
1,080
<issue_start>username_0: The issue I'm facing is that I have to find each file that ends in ".txt" and read it's content to return a dictionary. **Returned dictionary should looks like this:** ``` dic = { 'Folder\\\fileName.txt' : "This is content" } ``` So far I have: ``` directory = os.path.join("C:/Users/John...
2018/02/26
823
3,056
<issue_start>username_0: I have a REST Service. By default, the JSON data being returned has all the NULLs eliminated. This is causing me difficulties, so I have a request header setting that changes the behavior. The request header I need to add is: **Accept-Formatting: json-nulls=include** I have been able to get to...
2018/02/26
849
3,064
<issue_start>username_0: I am trying to create a simple vim plugin that translates the word or phrase that is selected in visual mode. I have the plugin working for the most part, with one annoying exception, the translated string is always pasted on the next line from where the selection was made. I've come to underst...
2018/02/26
526
1,787
<issue_start>username_0: Im trying to use a custom Activity indicator for xamarin forms. I supose this shouldnt be that hard to do or find but for w/e reason I dont find any way to add a gif and use it as an activity indicator.<issue_comment>username_1: You can use `let @x=substitute(strtrans(@a),'.*\zs^@',' ','')`. Th...
2018/02/26
1,285
5,201
<issue_start>username_0: Consider a program that is going to process an entire input file sequentially in one pass. Is there any advantage to mapping the file into memory versus reading it into a buffer for processing? * I understand that if you were going to access only portions of the file, then memory mapped i/o ca...
2018/02/26
1,356
4,962
<issue_start>username_0: I'm attempting to improve the performance of my ResNeXt implementation in Tensorflow. <NAME> mentioned a potential improvement over [on twitter](https://twitter.com/D_Berthelot_ML/status/908200291274711040). I'd like to apply this to my implementation - how does reshape+sum fit into this? ``` ...
2018/02/26
728
2,551
<issue_start>username_0: I want to create a ToDo list, It store tasks in `allTasks` state and works when I push manually some data but doesn't show me in map function when I add an item with input. ``` class App extends Component { constructor(props) { super(props); this.state = { input...
2018/02/26
1,301
4,871
<issue_start>username_0: For months, my web application worked just fine on different versions of IE/Firefox/Chrome. My application is running on IIS 10.0. When I hit the application from a Windows 7 box (IE 11.0.\*\*\*) everything works fine. When I hit the application from Windows 10 box (IE 11.2007.14393.0), it just...
2018/02/26
792
2,471
<issue_start>username_0: I am currently trying to web scrape a product name out of a website, however, the text is contained within a tag I have never seen before, and hence do not know how to get the text out. ``` Gradient Puffy Jacket ====================== ``` I am trying to get the name "Gradient Puffy Jacket"...
2018/02/26
791
2,848
<issue_start>username_0: I need to pass user object and a password to Laravel mailable class. I've tried so many ways, nothings seems to work. Here's my latest attempt. Password is passed into payload properly. **Controller** ``` Mail::to($user) ->queue(new EmployeeCreated($password)); ``` **Mailable**...
2018/02/26
959
4,072
<issue_start>username_0: I need to store all changed field in logs when user change something in Product Entity. I have event subscriber which works fine. I have two methods. Onflush and postFlush. In onFlush method I have simply this: ``` public function onFlush(OnFlushEventArgs $args): void { $em = $args->getE...
2018/02/26
4,488
17,073
<issue_start>username_0: I have some code that needs to execute *after* Flask returns a response. I don't think it's complex enough to set up a task queue like Celery for it. The key requirement is that Flask must return the response to the client before running this function. It can't wait for the function to execute....
2018/02/26
4,399
16,892
<issue_start>username_0: I've encountered with this code, can someone enlighten me how it works? ``` #define MACRO_CLASS( Class_Name ) \ \ public: \ some public things \ ...
2018/02/26
1,002
3,377
<issue_start>username_0: Using SSIS I am bringing in raw text files that contain this in the output: [![Current Output](https://i.stack.imgur.com/EIOwv.png)](https://i.stack.imgur.com/EIOwv.png) I use this data later to report on. The Key columns get pivoted. However, I don't want to show all those columns individual...
2018/02/26
1,105
3,484
<issue_start>username_0: I am reading the code that involves some bitwise operations as shown below: ``` unsigned char data = 0; unsigned char status = 0; //DAQmx functions for reading data DAQmxReadDigitalLines(taskHandleIn,1,10.0,DAQmx_Val_GroupByChannel,dataIn,8,&read,&bytesPerSamp,NULL); DAQmxReadDigitalLines(tas...
2018/02/26
1,938
8,279
<issue_start>username_0: I'm trying to make a barrel inside my game float downwards towards the sceen by itself, I've tried a few things and looked up some tutorials, but I can't seem to make it work. Maybe I am approaching this in the wrong way by trying to do this inside a paintcomponent()? Inside my JPanel I also ha...
2018/02/26
1,643
7,422
<issue_start>username_0: I would know if it's possible using an Ant task to know the number of parameters passed to an Ant target ? For example, with the following command : ``` ant myTarget -Darg1="arg1" -Darg2="arg2" ``` I would like to be able, inside the "myTarget" target, to get that the user passed exactly 2 ...
2018/02/26
942
3,529
<issue_start>username_0: I currently need to be more specific in my functionality for a class toggle that needs to only occur in the children within the element being clicked. I have a class of ".node" and when this is clicked it should toggle a class on it's child ".node-dropdown". I have multiple of these nodes with ...
2018/02/26
633
2,432
<issue_start>username_0: Let's say I have branch named 'feature1' checked out. At origin, unbeknownst to me, someone had deleted that branch. What are the results of doing a `git pull` while I am sitting on this deleted branch? Will I be moved to a different branch?<issue_comment>username_1: If you are on `feature1` an...
2018/02/26
591
1,942
<issue_start>username_0: Ok so I want to make a simple "web scraping" app; I have this simple code: ``` $.ajax({ url: 'http://sentence.yourdictionary.com/example', success: function(data) { var elements = $(data) //<--error here } }); the html does not matter ======================== ``` ...
2018/02/26
951
2,934
<issue_start>username_0: Here is the code ``` #!/usr/bin/perl my ($items, @aryitems, @aryitems2, $search, $size, $num); @aryitems2=('Chattahoochee','committee','bookkeeper' ,'millennium','cappuccino','Tattle','Illiad','Mississippi', 'Tennessee'); $size=@aryitems2; print "The size of the array is $size\n"; print "Enter...
2018/02/26
777
2,811
<issue_start>username_0: I must set an array to accept 7 numbers from the user, then send the array to be sorted in ascending order. the array is not being sorted and its just given the values back the exact way they were entered. ``` import java.util.Scanner; public class arraySorted { public static void main(String...
2018/02/26
583
2,364
<issue_start>username_0: I am trying to accomplish the following: 1. Open a Windows File Explorer and navigate to a particular folder. 2. Select certain files and/or folders within that folder using the mouse. 3. Write a powershell script that detects the files/folders I have selected, and copies to another location. ...
2018/02/26
631
2,310
<issue_start>username_0: I'm trying to filter everything before 4/30/2013 on Column O and everything after 4/30/2013 on Column P. The problem is that once it filters for everything before 4/30/2013 the sheet gets empty except for the header. ``` Dim SalesDate As String SalesDate = "04/30/2013" ActiveSheet.Range("$A$1...
2018/02/26
1,316
4,244
<issue_start>username_0: I'm looking for any python API to search in google (normal search), and I found only the following code: ``` import pprint from googleapiclient.discovery import build def google_search(search_term, api_key, cse_id, **kwargs): service = build("customsearch", "v1", developerKey=api_...
2018/02/26
688
2,636
<issue_start>username_0: How can you add a custom field to the table under View/Search Clients in the admin portal. I have seen a lot of examples for ClientArea but nothing for the ADMIN Area. Any light shed on this would be truly helpful. Thanks.<issue_comment>username_1: You can do that with Javascript + AJAX: 1...
2018/02/26
1,489
4,974
<issue_start>username_0: I have a .csv file with integers in two columns and many rows. It looks like this: ``` A B 1 584 146 2 586 167 . . . . . . ``` I want to create a 2D array of integers from this .csv file in C++. I've searched dozens of websites but all of the answers I could ge...
2018/02/26
1,694
5,862
<issue_start>username_0: I am writing a program for an assignment, and I'm having problems with part of it where I am supposed to fork, use exec() to run mkdir to make a directory if it doesn't exist. I have 2 separate functions that are to have this functionality. It works with the first function, however the second f...
2018/02/26
948
2,555
<issue_start>username_0: Very simple... (assume all includes and imports are properly referenced). Say you have a bindable variable of type Color on your view model (file.ts): ``` @bindable color: Color = Color.Green; ``` ... and you are trying to display it on the view (file.html): ``` ``` where Color is an enu...