date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/12
374
1,208
<issue_start>username_0: how to concatenate this syntax in controller using php. method 1 : ``` echo "".$value['name'].""; ``` //error is : unexpected if Method 2: ``` echo "."' value='".$value['main\_cat\_id']."'>".$value['name'].""; ``` error is: > > unexpected '<' > > > these both are giving error.ple...
2018/03/12
586
2,129
<issue_start>username_0: I've already read Ben's [*article*](https://medium.com/@benlesh/rxjs-dont-unsubscribe-6753ed4fda87) regarding unsubscribing via , `takeUntil` , `takeWhile`(*the predicate version*) [*I've used it like this example in my Angular app*](https://alligator.io/angular/takeuntil-rxjs-unsubscribe/#uns...
2018/03/12
497
1,923
<issue_start>username_0: I just started experimenting with running a program on the command line I'm working with a script that takes a csv file and uploads it to a mysql database, I'm putting a csv file as an argument so `Script.py filelocation`, when run it works well the only thing I'd like to do now is have a func...
2018/03/12
580
1,929
<issue_start>username_0: How can it show more than one checkbox ?The staff included Peter,Marry,Sam,Ken. ``` php while($row = mysql_fetch_array($result)){ $staff = $row['staff']; } echo "<a class ='button' href='check.php?staff=".staff."'click"; ?> "> ``` The result like this photo : ![](htt...
2018/03/12
340
1,187
<issue_start>username_0: I have a JSON file stored locally in assets folder - My JSON in assets folder is - ``` [ { "title": "1", "message": "Hi" }, { "title": "2", "message": "Bye" }, { "title": "3", "message": "Hello" } ] ``` This is currently in English. When I change my pho...
2018/03/12
539
2,010
<issue_start>username_0: here's a confusing thing. first look at the [hierarchy of my folders and etc.](https://i.stack.imgur.com/b5U8a.png) and see that I have my image, "cribbage.png" under the images folder. I am trying to access this image with the following code in index.html:` ``` Hello World! ============ !...
2018/03/12
577
2,138
<issue_start>username_0: Good Day, I have a table in crystal report and when I run it, the following is the results: [![enter image description here](https://i.stack.imgur.com/YYWpm.png)](https://i.stack.imgur.com/YYWpm.png) I am trying to code the samething in SSRS, but I have the following questions: 1. How do I ma...
2018/03/12
518
1,384
<issue_start>username_0: The difference between these two functions that has been described in this pytorch post: [What is the difference between log\_softmax and softmax?](https://discuss.pytorch.org/t/what-is-the-difference-between-log-softmax-and-softmax/11801) is: `exp(x_i) / exp(x).sum()` and log softmax is: `log...
2018/03/12
852
3,496
<issue_start>username_0: I am trying to make an application which reads out RSS feeds and shows them in an WPF form. To separate the posts I am using a grid and add 2 more RowDefinitions (one for the title and one for the subject). Currently I am stuck. I want to add some Textblocks to the Rows that I just defined, b...
2018/03/12
803
2,761
<issue_start>username_0: For my research, I would like to do analyses in parent/child dyads. I have an ID number, a family number and the status of the participant (1 and 2 are children, 3 is a parent). I would like to have all families containing at least one child and one parent ("dyad"). So within each family\_ID, a...
2018/03/12
901
2,738
<issue_start>username_0: Hi i have the following table ``` cod desc date 131 test1 132 test2 133 test3 134 test4 133 test3 20180301 133 test3 20180308 131 test1 20180227 134 test4 20180305 134 test4 20180225...
2018/03/12
491
1,890
<issue_start>username_0: I'm trying to create some slides with the Slides API but I started getting this error **Invalid presentation.presentationId: The id is invalid**. I tried to create it through the API reference without success as shown in the image: [Reference request and error image](https://i.stack.imgur.com...
2018/03/12
827
3,238
<issue_start>username_0: When generating forms with the form module the corresponding yaml files get stored in fileadmin/user\_upload. Now I want to integrate those yaml files into my sitepackage and thus into my CVS. Where is the correct place for them? In the example extension they are stored in `Resources/...` whil...
2018/03/12
1,214
3,935
<issue_start>username_0: I have a collection of columns and an int collection of widths I want to apply to them. How do I make them independent of the size of each other? Say I have columns `[col1, col2, col3, col4, col5]` and widths `[10,15,20]` the result should be ``` col1: 10 col2: 15 col3: 20 col4: 10 col5: 15 ...
2018/03/12
627
2,065
<issue_start>username_0: How can I trim a text string in my Angular application? Example ``` {{ someobject.name }} ``` someobject.name results in "name abc" What I like to achieve is name to be "nameabc" (remove all whitespaces). I already created a pipe and included this in the typescript file and module) PI...
2018/03/12
1,015
3,081
<issue_start>username_0: So I've been trying for the last couple days trying to trouble shoot this error. I have a stored procedure that inserts an entry into my staging table. once the staging table has a row inserted, a trigger is fired that loads the data into a couple other tables. My trigger code is below: ``` cr...
2018/03/12
819
2,630
<issue_start>username_0: I want to insert values into the table open.roads using SQL in python, the table has the following columns: ``` id integer NOT NULL DEFAULT nextval('open.res_la_roads_id_seq'::regclass), run_id integer, step integer, agent integer, road_id integer, CONSTRAINT res_la_roads_pkey PRIMARY KEY (id)...
2018/03/12
1,059
3,720
<issue_start>username_0: I would like to have a inside the `help_text` of a django form field. Unfortunately django renders the `help_text` inside a . According to the HTML spec a must not contain a . At least that is what my validation tool says. Here is the source of django: <https://github.com/django/django/blo...
2018/03/12
628
2,034
<issue_start>username_0: I have HTML list that looks like : ``` * something * something1 * something2 ![](<?php echo $databaseresult[$i];?>) ![](<?php echo $databaseresult[$i];?>) ![](<?php echo $databaseresult[$i];?>) // result looks like : ../assets/images/20584878157.jpg ``` then I have a table that looks lik...
2018/03/12
342
1,274
<issue_start>username_0: I created an MVC5 project where I originally had my resource files in the root of the project. In my views I referenced "Resource.*name*", for example: ``` @Html.ActionLink(Resource.CreateButtonText, "Create") ``` I then decided to move my resource files to a folder called "Resources". My vi...
2018/03/12
881
3,643
<issue_start>username_0: I have a pivot table that looks like this: [![enter image description here](https://i.stack.imgur.com/OaARH.png)](https://i.stack.imgur.com/OaARH.png) I would like to write a function that counts the number of entries in the highest level of the pivot table (ie. the A, B, C, and D). What Exce...
2018/03/12
346
1,487
<issue_start>username_0: I have a CommandButton in a UserFrom that does something like this: ``` Private Sub CommandButton_Click() If (ModuleExists("myModule") = False) Then MsgBox stringAlert Exit Sub 'This line does not freezes it. End If inputsToValidate = True 'This is a public ...
2018/03/12
1,863
5,145
<issue_start>username_0: So i'm just doing some basic data encryption on my mysql tables. I followed the guidelines found here <https://dev.mysql.com/doc/refman/5.6/en/encryption-functions.html#function_aes-encrypt> But i'm running into an issue. While i know i can just use aes\_decrypt in the mysql query to decrypt t...
2018/03/12
1,498
3,902
<issue_start>username_0: My property file: ``` a.prop user=abc location=home user=xyz location=roamer ``` I need to read a.prop and keep user and location inside a variable so that I can pass them to my other script (check.sh) as an argument. The check.sh needs to be called for all the list of user/location...
2018/03/12
643
1,940
<issue_start>username_0: I have a bash script which should find a regex match in a file, and replace it's content. So what I have in the file it's this (it's a version string in a package.json): ``` // ... "version": "1.2.13", "repository": { "type": "git" }, // ... ``` Now I want to match the number (the 1...
2018/03/12
932
3,511
<issue_start>username_0: I use webpack and livereload plugin but when I change something in styles, page refresh but I don't want it. When I use gulp, I change anything in styles and save it and then css reload without page refresh. Why does not work like gulp on webpack? Codes are below > > webpack.config.js > >...
2018/03/12
577
1,706
<issue_start>username_0: I'm using the following to determine if a value has a decimal. For example `$val = 3.3;` ``` if (is_numeric( $val ) && floor( $val ) != $val) { return true; } ``` How can I check of the value's decimal is equal to .3 or greater?<issue_comment>username_1: You can subtract `floor($val)` fr...
2018/03/12
2,097
6,615
<issue_start>username_0: I am not sure if it's more math or more programming question. If it's math please tell me. I know there is a lot of ready to use for free FFT projects. But I try to understand FFT method. Just for fun and for studying it. So I made both algorithms - DFT and FFT, to compare them. But I have pr...
2018/03/12
886
2,860
<issue_start>username_0: I am pretty sure that `~` in Pandas is boolean `not`. I found a couple of StackOverflow questions / answers, but no pointer to official documentation. Sanity Check ------------ ``` #!/usr/bin/env python # -*- coding: utf-8 -*- import pandas as pd df = pd.DataFrame([(1, 2, 1), ...
2018/03/12
545
1,682
<issue_start>username_0: I have Australia, and Samoa and other Oceania territories in a map. If I plot this with EPSG 4326 `proj4string: "+proj=longlat +datum=WGS84 + no_defs"` The points fall into the outer edges of the map. This is silly, the islands are close to each other but this projection puts (f.i.) Samoa at -1...
2018/03/12
475
1,538
<issue_start>username_0: ``` row.each(function (i, el) { var CustTd = $(el).find('td')[4]; if (CustTd != undefined) { var CustTdvalue = CustTd.attr('value'); if (CustTdvalue == filterValue) { $(el).show(); } } }) ``` Hi this is my code related to the javascrip...
2018/03/12
471
1,584
<issue_start>username_0: I'm using tls.createSecureContext ([Docs](https://nodejs.org/docs/latest-v6.x/api/tls.html#tls_tls_createsecurecontext_options)) with the **ca** option to add another ca but according to the docs the provided CA replace the default trusted list - "Mozilla's CAs are completely replaced when CAs ...
2018/03/12
798
3,125
<issue_start>username_0: First I did some research and I found these 2 relevant questions : 1. [onclick event in select HTML not working in Safari](https://stackoverflow.com/questions/1769374/onclick-event-in-select-html-not-working-in-safari) 2. [OnClick not working on Safari](https://stackoverflow.com/questions/402...
2018/03/12
485
1,849
<issue_start>username_0: I have a reactive form set up on my Angular app but I am trying to figure out if Angular 4/5 has a way to check if an input with a formControlName directive is valid or not. I don't want to check if the whole form is valid - i know how to do this. I have a stepper process form and I want to di...
2018/03/12
805
2,520
<issue_start>username_0: I have Puppeteer setup, and I was able get all of the rows using: ``` let rows = await page.$$eval('#myTable tr', row => row); ``` Now I want for each row to get "`td`'s" and then get the `innerText` from those. Basically I want to do this: ``` var tds = myRow.querySelectorAll("td"); ``` ...
2018/03/12
750
2,833
<issue_start>username_0: I have some windows slave at my Jenkins so I need to copy file to them in pipeline. I heard about Copy To Slave and Copy Artifact plugins, but they doesn't have pipeline syntax manual. So I don't know how to use them in pipeline. Direct copy doesn't work. ``` def inputFile = input message: 'U...
2018/03/12
598
2,700
<issue_start>username_0: I am new to android programming world, I have designed as a layout with username, password AS edittext control and "forgot password" as textview control, on click/tap of "forgot password", I want to open a new activity. This is what I am trying, looking forward for your help. My Application's...
2018/03/12
450
1,694
<issue_start>username_0: I am getting below error while running my ssis package. > > Error: COM error object information is available. Source: "ADODB.Recordset" error code: 0x800A0BCD Description: "Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.". > >...
2018/03/12
1,648
5,266
<issue_start>username_0: I have multiple buttons on a page, if a button is clicked I want it to count that button only on the first time. In the below code snippet I have 3 buttons. If I click the buttons more than once it increments the counter multiple times, how do I only get the first click back. So based on belo...
2018/03/12
623
2,390
<issue_start>username_0: I have 2 views and I'm showing them one below the other one like this(both of them children of the same parent: ``` ``` All works fine but when I change view1 position with setY method the view2 view not updating it's y position too. I tried to call invalidate and requestLayout, but nothing ...
2018/03/12
496
1,456
<issue_start>username_0: I have this simple span with lines. I just want to bold the line that contains `Running test:`. **All line** ```html Running test: test1 asasggsa fasfs afasaggas ``` Any idea how do to it? It should be something like ```html **Running test: test1** asasggsa fasfs afasaggas ``...
2018/03/12
507
1,638
<issue_start>username_0: I have an algorithm that will keep running until a test is passed, at which point a value will be returned. The way I am currently implementing it is with an infinite loop, but I am wondering if there is a way to do it without using the infinite loop (to satisfy the purists). The pseudocode is ...
2018/03/12
1,520
4,590
<issue_start>username_0: I have to create a regex that allows the user to input only a number (using . or ,) so these examples are both valid: * 8,5 * 8.5 here's my current code ``` private regex: RegExp = new RegExp(/^\d*[\,\.]{0,1}\d{1,2}/g); ``` However this allows me to input `8.,5` which is obviously bad. Ho...
2018/03/12
415
1,263
<issue_start>username_0: It use the golang's channel. How to make st2 to display propertly in the following code: ``` package main import ( "fmt" "github.com/OpinionatedGeek/go-bittrex" ) func main() { bt := bittrex.New("", "") ch := make(chan bittrex.ExchangeState, 16) go func() { for st := range ch1 {...
2018/03/12
1,472
6,361
<issue_start>username_0: After just installing the latest Android Studio (3.0.1) I started with the **Build Your First App guide**. I'm using `Kotlin` as it seems to be the suggested way to go. I managed to run the first Hello World app on my tablet. Then, continuing with the example at <https://developer.android.com/t...
2018/03/12
542
1,626
<issue_start>username_0: I'm trying to add channel because of below error > > ValueError: could not broadcast input array from shape (48,48) into shape (48,48,1) > > > Code: ``` img = cv2.imread(f,0) resized = cv2.resize(img, (48,48), interpolation = cv2.INTER_AREA) print(resized.shape) (48, 48) ``` But I ne...
2018/03/12
642
2,486
<issue_start>username_0: I have tired pagination using endCursor and hasNextPage in github grpahQL API to get more than 100 data. Query I used is: ``` query { organization(login:"XXX") { repository(name:"XX") { pullRequests(first:100, states:[OPEN], after: "XXX" ) { ...
2018/03/12
265
996
<issue_start>username_0: I have created a Webserver architecture in Node.js. I need to create a bridge between this server and an already programmed Qt application.<issue_comment>username_1: U can exec any binary using node.js but i'm not sure what you want to do. Upvotes: -1 <issue_comment>username_2: Did you try: ...
2018/03/12
3,334
12,887
<issue_start>username_0: I'm using `QtSharp` to display a `QWidget` in a seperate "`window`". Now my problem is, how to update a `property` (in my example `projector.name`) which is defined in the `qml` from code behind. ### Code behind ``` public partial class MainWindow : Window { int count = 0; private Pro...
2018/03/12
860
3,377
<issue_start>username_0: I try to generate a script which is contains datas in INSERT script forms, I try to use a reference (see below) to do it ``` using Microsoft.SqlServer.Management.Smo; ``` with this code draft ``` Server serv = new Server(db); Database simba = serv.Databases[dbname]; string script = ""; Scr...
2018/03/12
1,292
5,922
<issue_start>username_0: In TinyMCE 4.7.3, is there a way to style horizontal rule (without using source code) ? Using the [Horizontal Rule plugin](https://www.tinymce.com/docs/plugins/hr/), it seems that I can only insert an horizontal rule (i.e. `---`) and nothing else. [![enter image description here](https://i.st...
2018/03/12
1,299
5,055
<issue_start>username_0: Java releases are coming faster than expected do we need to migrate the code stuff which is old version to newer one to make it more performance based and upto date.<issue_comment>username_1: > > do we need to migrate the old java code base to latest version? > > > **No.** **Quite the opp...
2018/03/12
912
3,714
<issue_start>username_0: I've seen a few similar questions but I've been unable to find a suitable answer so far. I'm coding my classwork where the user will submit a name and their location to store this information in a dictionary. ``` using System; using System.Collections.Generic; using System.Linq; using System....
2018/03/12
684
2,761
<issue_start>username_0: I'm making a quiz app, there is main activity and it contains fragments which are questions like (Radio Button, Checkbox, Drag and drop questions) . How to collect the Score from all the fragments.<issue_comment>username_1: Just keep the variable static in which your are storing your score . ...
2018/03/12
771
3,125
<issue_start>username_0: We just started using Lombok plugin for Java. Developers in our company use Eclipse for workspace and we have some clients who get access to part of our source code. If we use Lombok library, it doesn't get detected in Eclipse until the plugin is manually installed. It's hard to send a com...
2018/03/12
807
3,167
<issue_start>username_0: Odd that I can't find anyone else that has encountered this issue. In Visual Studio I have a few custom events that I fire and listen to between applications on the same page. The event names aren't important but here they are: 'dd.clear', 'dd.select', 'dd.switch'. I get a tooltip warning "Ca...
2018/03/12
762
3,047
<issue_start>username_0: I need to call 4 different API's on a single function which is need to execute one after another as my previous API result will use the next Call as a param. For example: I have a call API for geo Ip, then I need to call an another API which I need to pass lat and long which I have got from fir...
2018/03/12
437
1,540
<issue_start>username_0: In embedded C, i use printf which redirects to the system call "\_write" which allows my to overload \_write and redirect to Uart or Usb VCP. Now in embedded C++ i would like to do the same for std streams std::cout std::cin. Where do the calls lead to? where do i end up when calling cout/cin...
2018/03/12
399
1,380
<issue_start>username_0: For Windows Apps I can include a custom module of encapsulated functions like this... ``` (function () { WinJS.Namespace.define("workers"); workers.f1 = function(arg,arg) { return 1; }; workers.f2 = function(arg,arg) { return 2; }; })(); ``` Then from code cal...
2018/03/12
347
1,130
<issue_start>username_0: Here is my HTML code. ``` Men's Shirt (on hanger) - + 2 Suits Total £22.00 Order now ``` JQuery code. ``` $(document).ready(function() { $('.cart_minus').click(function () { alert("hai"); }); }); ``` When I put same code in console then alert is shown. How could I ...
2018/03/12
612
1,844
<issue_start>username_0: I'm not really confortable with regexes but need to extend a legacy one. Currently we are having this regex in our application: ``` const regex = /([a-zA-Z0-9_]+)(?:\[(.*?)\])?/g; ``` This allows us to split strings like this: ``` hello[foo='bar'] ``` Into: ``` hello and [foo='bar'] `...
2018/03/12
634
1,761
<issue_start>username_0: I have a problem of dirty data. I have a list of ~600k names. An example would be: ``` <NAME>, JohnDoe, JohnDoe2, JohnDoe 84302, ``` I would like to use either `Python` or `R`, to iterate through this list and take the above closest match record (using a probability of closest match) an...
2018/03/12
690
2,479
<issue_start>username_0: In a java application that uses plugins (such as Minecraft server, an IDE ...etc) many times it's necessary to use some library and shadow it in your .jar. The problem comes across when **another** plugin also uses that library and also includes it in it's .jar but with a **different version**...
2018/03/12
1,153
2,546
<issue_start>username_0: I have two vectors `g` and `h`. I want to compare the numbers in these two vectors and find out whether there are any common elements between them. But the common elements do not have to be exactly the same and can be within a range of `(-0.5, +0.5)`. Therefore, `g±0.5` is being compared with `...
2018/03/12
863
3,187
<issue_start>username_0: Is there a way to check at compile time if the argument of a macro is an integer literal, and evaluate the macro differently in that case? ``` #include #define VALUE\_0 0 #define VALUE\_1 2 #define VALUE\_2 4 #define VALUE\_3 6 #define VALUE\_4 8 #define VALUE(\_idx\_) VALUE\_ ## \_idx\_ #...
2018/03/12
472
1,474
<issue_start>username_0: I have two columns 'Team' and 'WLD' in a mysql database. WLD stands for Won, Lost, Drawn and contains either a W, L or D on every line of hundreds. I want to output how many W's, L's and D's there are in the column in one SELECT. If I do this with one of them it works: ``` SELECT Team, COUN...
2018/03/12
590
2,045
<issue_start>username_0: I installed material-ui "^1.0.0-beta.36". The documentation says there's date-picker. But I can't find it in `node_modules\material-ui` , nor in any of the subfolders. The change log suggests that a datepicker is planned to be supported in future releases: > > 1.0.0-beta.17 - *Oct 16, 2017...
2018/03/12
3,358
11,500
<issue_start>username_0: I managed to animate my player using my 'animate' function that I had created - Cycles through the list of character images per frame while the character is moving. However, I also found that this happens at the same speed in which the game is running; and was hoping there was a simple way to c...
2018/03/12
431
1,240
<issue_start>username_0: I have a Table where Time Period is stored in `yyyyww` [where `ww` is a week number] format in 2 separate columns as shown below and `endweek` can be `null`. ``` startweek | endweek | 201501 | 201602 | 201510 | 201702 | 201803 | NULL | 201933 | 202209 | `...
2018/03/12
1,596
5,479
<issue_start>username_0: I need to write a CSV Parser I am now trying to separat the fields to manipulate them. **Sample CSV:** mitarbeiter^tagesdatum^lohnart^kostenstelle^kostentraeger^menge^betrag^belegnummer 11005^23.01.2018^1^^31810020^5,00^^ 11081^23.01.2018^1^^31810020^5,00^^ As you can see, there a several...
2018/03/12
1,206
4,255
<issue_start>username_0: Is there a way to monitor the number of times a runbook has been called and then report on it (send email, text)? When I try to create an alert rule I only see an option for activity log not metrics. The runbook is getting called from event grid via webhook.<issue_comment>username_1: ``` CsvRo...
2018/03/12
586
2,324
<issue_start>username_0: currently i am using google place api for address and i am getting it perfectly but now i want to restict it to perticular city here is my code ``` // Create the autocomplete object, restricting the search to geographical // location types. autocomplete = new google.maps.places.Autocomple...
2018/03/12
775
2,490
<issue_start>username_0: I've a World datatype that is defined this way: ``` data World = World { resolution :: (Int, Int) , direction :: Snake_direction , snake_scale :: Int , snake :: [(Int, Int)] , isStuck :: Bool , gen :: R.StdGen , food :: (Int, Int) , superFood :: (Int, Int)...
2018/03/12
332
1,159
<issue_start>username_0: I have this class: `project.task` that has this field: ``` state = fields.state = fields.Selection([ ('draft', 'Draft'), ('sent', 'In progress')], default='draft') task_line_ids = fields.One2many('project.task.line','task_id',string="Articles") ``` A...
2018/03/12
539
2,040
<issue_start>username_0: Like in [here](https://stackoverflow.com/questions/25930919/accessing-a-variable-from-another-script-c-sharp), but the difference is that it's supposed to be done from an instantiated prefab, so I can not drag the GameObject, that has the script with the variable I want to access, into this scr...
2018/03/12
424
1,624
<issue_start>username_0: I'm new to React-Native and I'm trying to figure out how to run the project on iOS. I know this error means I need to add the library `.xcodeproj` to XCode, but where is this file located? I'm using [react-navigation](https://reactnavigation.org/docs/getting-started.html) and I installed it wit...
2018/03/12
1,224
3,752
<issue_start>username_0: I'm new to programming the STM32F Discovery board. I followed the instructions [here](http://www.wolinlabs.com/blog/linux.stm32.discovery.gcc.html) and managed to get the blinky led light working. But now I'm trying to play an audio tone for which I have borrowed code from [here](https://githu...
2018/03/12
517
2,081
<issue_start>username_0: For CI purposes I have a need to set up a cluster of build slaves capable of building iOS apps. For now I'm relying on a single MacMini -with the aim to deploy several more in the future- and I'd like to virtualize several slaves on top of it. Some of these virtual slaves will build the iOS app...
2018/03/12
745
2,533
<issue_start>username_0: I'm trying to connect to a db2 using golang using <https://bitbucket.org/phiggins/db2cli>. While trying to follow the instructions, I run into this error ``` vendor/bitbucket.org/phiggins/db2cli/api/api_unix.go:12:11: fatal error: 'sqlcli1.h' file not found #include ^~~~~~~~~~~ 1 error gene...
2018/03/12
1,868
4,931
<issue_start>username_0: In below simple c test program two printf statements return different values. ( check last four printf statements). ``` int main () { char c, *cc; int i; long l; float f; c = 'Z'; i = 15; l = 7777; f = 9999999312; cc = &c printf("\nc = %c, cc= %u", *cc, ...
2018/03/12
559
1,958
<issue_start>username_0: I have a loop that generates let's say 20 divs. Each div is an object from my local objects array. Here's the code: ``` ![]({{item.image}}) {{item.name}} ``` When a user clicks on the div(item) it will add the item to an array: ``` addItemToArray(item) { this.itemsToSend.push(item); ...
2018/03/12
1,563
4,753
<issue_start>username_0: With a dataframe and basic plot such as this: ``` import pandas as pd import numpy as np import matplotlib.pyplot as plt np.random.seed(123456) rows = 75 df = pd.DataFrame(np.random.randint(-4,5,size=(rows, 3)), columns=['A', 'B', 'C']) datelist = pd.date_range(pd.datetime(2017, 1, 1).strftim...
2018/03/12
848
3,641
<issue_start>username_0: im trying to create a simple website with HTML/CSS and Javascript. Basically the user should be able to input a number into a textfield and "send it" with a button. When the button got pressed i want to run a Javascript function that searches the number in a sql database. Creating all that stuf...
2018/03/12
785
3,275
<issue_start>username_0: I am learning activiti. Where I created one java application in that I am using hibernate + Spring + activiti where we have `activiti.cfg.xml`. I want to load only database details like datasource and hibernate properties programatically, other thing e.g asyncExecutorActivate, etc I want ...
2018/03/12
288
1,045
<issue_start>username_0: I have pattern `Avg="113.01"` in the text file, when I apply regular expression like as `%s/="/=/g` it changes value `113.01` to `62.31`. All I am trying to do is remove the double quotes but its changing value of the numbers all over.<issue_comment>username_1: This expression should do: `s/="...
2018/03/12
432
1,747
<issue_start>username_0: lets say I have an array of strings which represents a package-structure. It looks like this: ``` Array { "com.project.server", "com.project.client", "com.project.client.util", ... } ``` Its not defined how many levels one package can contain. Now I want to convert this into an hier...
2018/03/12
2,609
9,886
<issue_start>username_0: I am referring <https://www.webforefront.com/django/namedjangourls.html> to understand django urlconfs. I have encountered terms instance namespace and application namespace. I know about namespaces in urlsconfs. But I don't know the difference between them. I referred django docs for it. It m...
2018/03/12
372
1,496
<issue_start>username_0: In Blue Prism, after traversing the rows of collection using a loop, if any column is referenced to take first value of that column using CollectionName.ColmName, I am getting error saying "The collection has no current rows." although row count of collection is greater than 1. How can I set t...
2018/03/12
351
1,023
<issue_start>username_0: I don't think what I'm trying to do is possible. ``` ``` How can I make all the `.item`s to take up **the maximum, identical horizontal space** that is (about) 33% in the 1st one, 50% in the second one, and 100% in the last? The idea here is to **not set the size** of the `.item`s (and avoi...
2018/03/12
464
1,464
<issue_start>username_0: I am using ReactJs. I want to change a position of the image dynamically. I am trying to set up style like described [here](https://stackoverflow.com/questions/22291913/how-to-change-reactjs-styles-dynamically): My sprite.js: ``` 'use strict'; import '../res/my_css.css' const React = requ...
2018/03/12
302
1,162
<issue_start>username_0: I updated VS 2015 to VS 2017 and I have latest versions for Specflow and nUnit. At VS2015 all worked fine, now at VS2017 test explorer I see duplicated tests and folders where feature files is. [Duplicated specflow tests](https://i.stack.imgur.com/ZEVHj.jpg) I was forced disabled all extensio...
2018/03/12
1,436
4,883
<issue_start>username_0: I have the below pieces of code written in Fixed format RPG in a report generation program. I have tried rewriting this in Free format. The report produced before and after seems to be the same on checking. However please let me know if there are any mistakes in this. ``` * ...
2018/03/12
923
2,262
<issue_start>username_0: When I issue bash command: ``` date --date="2018-03-03 12:16:13 -1hour" "+%Y:%m:%d %H:%M:%S" ``` I expect the result would be: ``` 2018:03:03 11:16:13 ``` but instead, I get: ``` 2018:03:03 15:16:13 ``` I wonder if this has to make with time zones, and how to avoid this behaviour.<issu...
2018/03/12
509
1,750
<issue_start>username_0: Consider this simplified situation: ``` class Decoder: def __str__(self): return self.__bytes__().decode('ascii') class Comment(Decoder, bytes): def __bytes__(self): return b'#' + self ``` Usage: ``` Comment(b'foo') ``` Prints: ``` b'foo' ``` Instead of expecte...
2018/03/12
3,032
7,079
<issue_start>username_0: I have a Pandas DataFrame like this one: ``` import numpy as np import pandas as pd np.random.seed(1234) midx = pd.MultiIndex.from_product([['a', 'b', 'c'], pd.date_range('20130101', periods=6)], names=['letter', 'date']) df = pd.DataFrame(np.random.randn(len(midx), 1), index=midx) ``` That...
2018/03/12
498
1,992
<issue_start>username_0: I'm trying to make my image circular(**NOTE**: not trying to make ImageView circular but the Image) and fill it with a background color. my fragment code: ``` @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) ...
2018/03/12
777
2,254
<issue_start>username_0: Suppose I have a dataframe like this: ``` df = pd.DataFrame([['foo', 'x'], ['bar', 'y']], columns=['A', 'B']) A B 0 foo x 1 bar y ``` I know how to use a single argument function with Apply when it comes to dataframes, like this: ``` def some_func(row): return '{0...
2018/03/12
766
2,581
<issue_start>username_0: I had installed tern\_for\_vim and YouCompleteMe for js completion this way. 1 install node ``` curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash source ~/.nvm/nvm.sh nvm install node ``` 2 install tern\_for\_vim ``` $ cd ~/.vim/bundle git clone https://gi...
2018/03/12
649
2,216
<issue_start>username_0: I have a slider on a page, I need the link in that slider to send it to another page with a specific tab open. I tried to use # 1 at the end of the link however it does not work. I think i have to use some js to do this, have to put active class on tab and remove the active from first tab. An...
2018/03/12
827
3,151
<issue_start>username_0: sorry for the title, but it is hard to describe my problem/ question in a short sentence or title. So here is my story: I am writing a WP plugin, which replaces the original [gallery] shortcode. For having a correct "preview" in visual editor (TinyMCE), I also slightly modified (by replacing i...