date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/02/28
464
1,860
<issue_start>username_0: I'm very new to Flutter and I have to know before learning if Flutter works with Instant App. Thanks.<issue_comment>username_1: Instant apps is currently unavailable on Flutter. There is not really a way to split the functionality, but Flutter also makes your app bigger as you can see in this d...
2018/02/28
799
1,355
<issue_start>username_0: I have two vectors ``` a <- c(18,19,19,19,21,21,22,23,24,25,26,27,28,30,31,35,36,37) b <- c(19,25,31,37) ``` I need the data frame following format: ``` a b 18 19 19 19 19 19 19 19 21 25 21 25 22 25 23 25 24 25 25 25 26 31 27 31 28 3...
2018/02/28
606
1,153
<issue_start>username_0: I have using `NSArrayController` `NSTableView` and `Core data` **binding**. I have take one `button` and connect `add:` method of `NSArrayController` to its action. On Adding new record `TableView` added and shows new record. `NSArrayController's` `add`: method called Problem : Value is...
2018/02/28
2,515
9,131
<issue_start>username_0: I'm trying to use WinSock2 in VBA to send (and later on, receive) data from a localhost TCP Stream. For now, I've mostly been trying to replicate the client sample from here,<https://msdn.microsoft.com/en-us/library/windows/desktop/ms738630(v=vs.85).aspx> My code "almost" works; I can create ...
2018/02/28
844
2,435
<issue_start>username_0: How to make the button text top left in the below case (div2). I have to use button for some requirement, but make it look like a normal text. Any help you help. Container is flexbox column and have a button with flex 1. I don't want add an element inside button and make it position absolut...
2018/02/28
1,491
4,464
<issue_start>username_0: I have a working date filter with PHP. The problem is that if I don't filter my records then no records are shown and also I get this type of error: > > Notice: Undefined index: dateFrom in ... on line 37 > > > How can I make a date filter using PHP, so that if I don't add any dates to m...
2018/02/28
1,355
4,053
<issue_start>username_0: first of all - sorry for my bad english. Im trying to change the Backend-URL from `/wp-admin/` to `/admin/` as example. im using ``` define('WP_ADMIN_DIR', "admin"); define( 'ADMIN_COOKIE_PATH', SITECOOKIEPATH . WP_ADMIN_DIR); add_filter('site_url', 'wpadmin_filter', 10, 3); function wpadmi...
2018/02/28
1,136
3,430
<issue_start>username_0: I am facing an issue in ADF table. When i click on editable cell, table executes and i lose focus on cell, focus goes to first cell in header. [![enter image description here](https://i.stack.imgur.com/SHpMs.png)](https://i.stack.imgur.com/SHpMs.png) Table properties: ``` ``` any advice ?<...
2018/02/28
859
3,432
<issue_start>username_0: I have a node js application that has two `GET` requests, say for example - test and delay, ``` var express = require("express"); var app = new express(); app.use('/', express.Router()); app.get('/delay', function (req, res) { for (var i = 0; i < 500000; i = i + 0.0001) { let r = ...
2018/02/28
1,341
4,621
<issue_start>username_0: I am developing an App with react native. I have three TextInput boxes as bellow: [![enter image description here](https://i.stack.imgur.com/4yLhA.png)](https://i.stack.imgur.com/4yLhA.png) I need to change the focus of the TextInput box automatically, if the user inserts a number. Then, as s...
2018/02/28
1,026
3,543
<issue_start>username_0: I have been trying to resize this image in the following code. I have tried px, em, % and leaving the unit type blank but it will not resize. I have tried both width and height but neither make it change. The other attributes in the CSS are working fine: margin, position etc. Why won't the imag...
2018/02/28
2,003
8,347
<issue_start>username_0: I have a form which contains **1 select input field.** When I select one of the option in the select field. I by default create a **section containing text input field, a close button and a Add Field button to add more input text fields.** everything is working just fine but I am not sure how...
2018/02/28
1,326
4,649
<issue_start>username_0: I would like to create a button depending on the current status of an entry widget: If there is something written there, the button should be created, but if it is cleared again, the button should be destroyed again. In the following code I achieved something 'similar': ``` from tkinter impor...
2018/02/28
1,683
6,314
<issue_start>username_0: I know there are plenty of JSON parsing libraries. But after some searching, i can't seem to find a simple way of parsing json data in java. I know it probably best practice to have a proper model so the api request will map straight to an object. But lets say i have a JSONObject: ``` JSON...
2018/02/28
1,416
5,316
<issue_start>username_0: I have Logger of NLog package, I want to define trace enable=true in my config logger file. How can I do it? My NLog.config file: ``` xml version="1.0" encoding="utf-8" ? ```<issue_comment>username_1: You can use ObjectMapper for converting the Json into Java Object which will enabe you ...
2018/02/28
356
1,160
<issue_start>username_0: I am trying to send parameterized url in put request using python. One of my function "getipaddress()" is returning the device ip address as 192.168.72.31 Code: ``` import requests ips= getipaddress() URL = "https://%s/UDW/Command?entry=eprint.register" % ips r = requests.put(url=URL,data=dat...
2018/02/28
910
2,981
<issue_start>username_0: I have an issue, I want to create a script in Page1 and after X seconds redirect to Page2, and inside Page2 return to Page1, and make it is not difficult, and here is my issue, after return from Page 2, I want to redirect to Page3, and return to Page1, and when I reurn from Page3 I want to redi...
2018/02/28
1,826
5,794
<issue_start>username_0: I am trying to create a new table in mySQL, and it shows me this error: > > A closing bracket was expected (near )). > > > Referring to the closing bracket followed by the semi-colon. I think it has something to do with the CONSTRAINTS line as it goes away when I remove them. ``` CREATE ...
2018/02/28
1,735
5,663
<issue_start>username_0: I created a lightaddon. When I tried register the ard file of addon, I got error, add-on installation failed because another version is already installed. I followed the steps that are shown in below: I checked SARI table in SBO Common but it wasn't record for the add-on, I checked files AddOn...
2018/02/28
1,422
6,103
<issue_start>username_0: I've been using Kofax Transformation Modules for 3 years and I'm still not sure how the Database Locator works. I have a very simple database, with a bunch of columns. I have a very simple PDF document, OCR is done. I want to retrieve one record from the database, based on the value of a sing...
2018/02/28
1,434
5,936
<issue_start>username_0: The process\_map() function in the server in the R shiny script creates the diagram image as below. My requirement is that there are two attributes "FUN" and "units" that are part of the performance() function. They have standard four values each that are available in the ui code below under Pi...
2018/02/28
870
2,549
<issue_start>username_0: <https://jsfiddle.net/fnu483z0/5/> ``` * link 1 * link 2 * link 3 * link 4 ul { display: flex; } ul li { list-style: none; padding: 1em; border-right: 1px solid #000; background-color: #CCC; } ul li:last-child { border-right: none; } ul li:hover { padding-top: 40px; background...
2018/02/28
365
1,333
<issue_start>username_0: This works: ``` class customList(list): def __init__(self, liste): list.__init__(self, liste) myList = customList([4]) ``` This does not: ``` from collections import UserList class customList(UserList): def __init__(self, liste): list.__init__(self, liste) myList = ...
2018/02/28
943
3,572
<issue_start>username_0: I have the following code to try and grab the GAL from Outlook and drop the person's name + their email address into another sheet. It gets the first name (but not email address) then stops. If I comment out `Sheets("Emails").Cells(intCounter, 2) = objAddressEntry.PrimarySmtpAddress`, it list...
2018/02/28
596
2,180
<issue_start>username_0: I need to extract all the synonym values for a particular entity. For example, I have an entity named `Vehicle` with values `Car` and `Bus`. For `Car` I have three synonyms, `Mercedes`,`Volvo` and `Audi`. Now what I need is when the entity `Vehicle` is detected in the user input for a value `Ca...
2018/02/28
777
3,003
<issue_start>username_0: I want to implement a delete method which deletes all the documents in a collection. I am using mongo db with Spring Data.This could be done using db.myCollection.remove({}) in Mongo shell. But I want to write a method in my data access layer to do this.I am not using MongodbTemplate in my Dao ...
2018/02/28
1,212
4,045
<issue_start>username_0: I am following the [pytest good practices](https://docs.pytest.org/en/latest/explanation/goodpractices.html#test-discovery) or at least I *think I am*. However, pytest cannot find my module. It seems not to include the current directory in its `PYTHONPATH`. The source file: ``` def add(x, y):...
2018/02/28
762
2,578
<issue_start>username_0: When start another process using `Process()` class, newly created process is still associated with the one invoked the start command, which is in turn causing issues with monitoring software or even within the stirted application itself. So the question is if it is possible to start an externa...
2018/02/28
832
1,955
<issue_start>username_0: I have a vector of character strings: ``` grid_loc <- c("B2", "B3", "B4", "C2", "C3", "C4", "D2", "D3", "D4") ``` How can I recode these strings so the new vector looks like this?: ``` c("A1", "A2", "A3", "B1", "B2", "B3", "C1", "C2", "C3") ``` As you can see, I would like each letter&num...
2018/02/28
598
2,492
<issue_start>username_0: I am trying to get my hands dirty on docker. I know that `CMD` or `ENTRYPOINT` is used to specify the start/runnable command for docker image and `CMD` is overridden by `ENTRYPOINT`. But I don't know, how does it works, when parent docker image, also has `CMD` OR `ENTRYPOINT` or BOTH ? Does ch...
2018/02/28
371
1,424
<issue_start>username_0: So basically, I have a simple app widget that shows a value from a file and updates every 24h. It works properly but then I wanted to add the refresh button to my widget and I want to call onUpdate every time I click on that button. I've been searching for some answers but they not seem to matc...
2018/02/28
378
1,354
<issue_start>username_0: I have a table column structure like this * `[ Name , DateName , Sum ]` I selected all names I need so I have multiple rows with data like this * `[ SomeName , NULL , NULL ]` I would like to add for each Name 7 DateNames , is it possible with something like outer apply ? Just to point out ...
2018/02/28
883
2,461
<issue_start>username_0: I have the following dataset: ``` d = { 'Company':['A','A','A','A','B','B','B','B','C','C','C','C','D','D','D','D'], 'Individual': [1,2,3,4,1,5,6,7,1,8,9,10,10,11,12,13] } ``` Now, I need to create a list in Python of all pairs of elements of 'Company', that correspond to the values in 'Indi...
2018/02/28
361
1,211
<issue_start>username_0: Maybe this is not the right forum for this question but i'm trying to download video from this <https://ucha.se/watch/1325/Zvuk> link. When i use some tool it gives me always an error. I tried `JDownloader, hd-video-convertor,free-ts-convertor`. No one works. I found that the player is "flowpla...
2018/02/28
380
1,356
<issue_start>username_0: I'm practising with several javascript functions, which all work fine separately. But if I try to get a value from one function into another function I can't get it to work. I've read multiple threads overhere (and elsewhere) and have been trying with several options like 'return', 'callback',...
2018/02/28
388
1,254
<issue_start>username_0: I am using the Vuetify *v-data-table* component. Here it is: ``` {{ props.item.name }} | {{ props.item.created\_at }} | {{ props.item.updated\_at }} | ``` Here are my headers: ``` data () { return { items: [], tableHeaders: [ { text: 'Name' }, { text: 'Created a...
2018/02/28
576
1,438
<issue_start>username_0: I am have a xyz method in one controller. Now I have a url 'buy-m-get-n' which will call xyz action. `get "/buy-m-get-n" => "store#xyz"` Now I want to call the same action for different values of m and n. eg: 'buy-2-get-3', 'buy-4-get-5'. m ,n <= 10 I tried this in routes.rb, ``` [1..10].ea...
2018/02/28
539
1,640
<issue_start>username_0: Is there a method in the Java library that I can use to find the exponent of a number? Example: If I enter 100, then I expect a return value of 2 (since 102 = 100). If I enter 10000, then I expect a return value of 4 (since 104 = 10000). Or do I have to keep a counter and keep computing 10coun...
2018/02/28
524
1,855
<issue_start>username_0: I have a drop-down with some country code and its fullname in the option dropdown box. (Like Below) ``` var app = angular.module('myApp', []); app.controller('myCtrl', function($scope) { $scope.names = ["US-United state of America", "IN-India", "UK-United Kingdom"]; }); ``` and my html ...
2018/02/28
502
1,475
<issue_start>username_0: I have a button a div and a span adjacent to each other in a line I need all of them to appear vertically aligned to the center like this [![enter image description here](https://i.stack.imgur.com/9Jkie.png)](https://i.stack.imgur.com/9Jkie.png) below is my code ```css button{ height: 50...
2018/02/28
526
1,820
<issue_start>username_0: its a simple linear layout with 1 ImageView and 6 TextViews and a ScrollView but TextViews are appearing at the end of the screen and not below ImageView. I have tried editing my dp values in styles.xml but still not working please have a look!! I have also tried editing my ImageView tags but s...
2018/02/28
1,306
3,843
<issue_start>username_0: I need help with parsing, I've tried to create a different kind of model classes, but no use, please help me out here. the json looks like this: ``` [ [ 1518909300000, "0.08815700", "0.08828700", "0.08780000", "0.08792900", "1727.93100000", 1518910199999, "152...
2018/02/28
393
1,140
<issue_start>username_0: If we have label than we have an option to get it's text as ``` l = tk.Label(text="hello, world") ... print("the label is", l.cget("text")) ``` But I am unable to find a name of frame added in notebook by the same way is there any other approach available? [ttk.Notebook](https://docs.pytho...
2018/02/28
4,314
17,231
<issue_start>username_0: I cannot change the name of the tags in the XML that is returned by Spring MVC Controller, the Srpring returns XML tags as Java object names and not as expected. I have used @XmlElement for setting the tag names as required but does not work. I have tried adding XmlElement at attributes instea...
2018/02/28
454
1,641
<issue_start>username_0: Chrome complains when I try to `copy` inside `setTimeout`. ``` setTimeout(function () { copy('a') }, 0) Uncaught ReferenceError: copy is not defined at :1:26 ``` It doesn't work with the `window` scope as well. ``` setTimeout(function () { window.copy('a') }, 0) Uncaught TypeError: wi...
2018/02/28
629
3,097
<issue_start>username_0: I am trying to build a simple quiz app. it has some questions which are in the database. I am fetching those using AXIOS request. I am doing something like this : ``` var app = new Vue({ el:"#app", data:{ currentQuestion:0, question:{} ...
2018/02/28
733
2,823
<issue_start>username_0: In my Symfony 3.3 application, I have built a block service using SonataBlockBundle. Now I want to pull some other field values from the page on which the block lives. In other words, I want to do something like this: ``` public function configureSettings(OptionsResolver $resolver) { $page...
2018/02/28
2,166
6,974
<issue_start>username_0: ### It all happens when I was trying to build a springboot application by `./mvnw clean install` When I first run the install command, it runs into following problem. ``` [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] --------------...
2018/02/28
646
2,437
<issue_start>username_0: I have following class (some part is copied from [here](https://stackoverflow.com/a/35095504/5779732)): ``` class TestExpression { public string GetValue(Expression> field) { string str = GetColumnName(field); //Do something with 'str' return str;//Return modified 'str' } public str...
2018/02/28
609
1,808
<issue_start>username_0: I would like to filter a file which has this format: ``` Name1|Name2|Name3 ACGRTIDKEBDIVNRDIVFDOCDDIC Name4|Name5|Name6 AFFHJORJOVFDANJFOONKFANIFNIPNIPNFIPNKFPDNBKFPNBKFP Name1|Name7|Name3 AGRQHUOQGRINQJIOPQPJGREQPJIRPEQJIRPEQ ``` Output ``` Name1|Name7|Name3 AGRQHUOQGRINQJIOPQP...
2018/02/28
2,268
7,766
<issue_start>username_0: I'm having trouble with the Slick carousel JS plugin with multiple **slidesToShow** which have different heights. I need the Slides to have the **same height**, but with CSS flex-box it doesn't work as the slides have conflicting CSS definitions. Also, I didn't find anything useful in the for...
2018/02/28
842
3,429
<issue_start>username_0: Is there any way to dismiss all the view controllers ( in which some controllers are pushed through navigation) and go back to the root view controller. I saw lots of examples but they didn't work in my application. I am using swift 4 This is code in appdelegate ``` func setNavigationToRootVi...
2018/02/28
321
1,175
<issue_start>username_0: I'm having trouble figuring this out. I just downloaded Xamarin forms, and I'm trying to make an app that changes the text of a label when a button is clicked. I'm trying to do this by putting `labelname.Text = "Text"` in the button click event. My problem is that the name of my label doesn't e...
2018/02/28
930
3,861
<issue_start>username_0: Say I have a controller `CatController` with actions for GET, POST and PUT. They all use the same `Cat` resource which could look like this: ``` public class CatDto { public int Id { get; set; } [Required] public string Name { get; set; } [Required] public bool IsFriendly {get; set...
2018/02/28
895
3,558
<issue_start>username_0: I have the following struct that contains data from parsed JSON. ``` struct callRailData { var callDate: String var userDetails = callData() } struct callData{ var callerName: String? var callerNumber: String? var callerCityName: String? var callerCountryName: String? var callerStateName: Str...
2018/02/28
737
3,000
<issue_start>username_0: I've written a JavaMail client to access a GMail account via POP3. As expected, I can only read a message once. When I re-run the client, the message is not found as it has been deleted from the server. However, when I then log onto the GMail account (IMAP enabled) via a browser, the messag...
2018/02/28
955
3,427
<issue_start>username_0: I'd like to stream a chunked server sent event for the following scenario: Subscribe to a Redis key, and if the key changes, stream the new value with Akka Streams. It should only stream if there are new values. As I understand it, I need a `Source`. I guess that is the subscription to a chan...
2018/02/28
303
1,022
<issue_start>username_0: I have an application and my cache driver is ``` In config/cache.php 'default' => env('CACHE_DRIVER', 'file'), In my .env CACHE_DRIVER=file ``` In my application if I cache something, then where these cache files are stored?<issue_comment>username_1: Should be at: ``` storage/framework/c...
2018/02/28
1,359
5,095
<issue_start>username_0: I'm getting this error on my MS Chart control: > > Data points insertion error. Only 2 Y values can be set for this data series. > Parameter name: dataSource > > > It occurs on line `chartPriceHistory_STATIC.DataBind()` in my code below. I think it has got something to do with the way I...
2018/02/28
3,225
11,222
<issue_start>username_0: I am new to Arduino. I'm looking at [Makecourse tutorial on RC522 RFID reader/writer](http://makecourse.weebly.com/week10segment1.html) I pasted the script below. Basically, it detects a card then writes some data into block 2. After compiling and uploading the code, I put up one card to the...
2018/02/28
2,192
7,016
<issue_start>username_0: I started getting the below error > > Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. > java.lang.RuntimeException: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex > > > I tried to reset m...
2018/02/28
861
2,982
<issue_start>username_0: I'm having an animation that it supposed to rotate an image constantly. But there are couple issues with it. The velocity is quite odd and despite I've set it to repeat constantly, you can see how it starts, stops and then repeats. Which should not happen. It should be uninterrupted rotating. ...
2018/02/28
555
2,253
<issue_start>username_0: I've read the minimalistic docs at <https://github.com/ngrx/platform/tree/master/docs/store-devtools>, and understood that you can add instrumentation as follows: ``` StoreDevtoolsModule.instrument({ logOnly: environment.production }) ``` Supposedly, if the logOnly flag is true, your app w...
2018/02/28
466
1,924
<issue_start>username_0: I'm getting below error while posting soap message to other third party Vendor. Soap versions are same at both sides and 1.2. Could anyone suggest? ``` env:Receiver org.apache.axiom.soap.SOAPProcessingException: Transport level information does not match with SOAP Message namespace URI ``...
2018/02/28
340
1,113
<issue_start>username_0: I am using `EditText` Input layout. **Below is my xml code :** ``` ``` I want to give more gap between the `editText` underline and the `hint text`(Enter Password). And I want to reduce the size of the `hint text`. Can anyone please help me how to get this. [![enter image description her...
2018/02/28
1,042
3,956
<issue_start>username_0: I am trying to create a chat system (like Facebook)'s where a user clicks the name of the online user and a chat box will appear. `_chatbox` is generated dynamically using javascript. It will scroll down to the last message. The chat box and messages load/display successfully but the scroll dow...
2018/02/28
1,085
3,194
<issue_start>username_0: I have started learning Python recently and I've been going through the [NumPy official quickstart guide](https://docs.scipy.org/doc/numpy-dev/user/quickstart.html#indexing-slicing-and-iterating) which includes this example for iterating. ``` >>> a array([-1000, 1, -1000, 27, -1000, 1...
2018/02/28
908
3,695
<issue_start>username_0: I wrote the following method to run multiple threads in parallel and when all threads are complete I want to trigger some further action. I've attached a propertyChangeListener to each object that runs in its own thread and each of those objects fires a property changed event when its thread co...
2018/02/28
709
2,832
<issue_start>username_0: I'm using a filter in my Google Analytics configuration to prevent other sites to report views on mine whenever they use my Google Analytics code (which they do in fact...) I took the idea from [here](https://blog.kissmetrics.com/protect-analytics-from-hacking/). So, I'm using a "include only"...
2018/02/28
412
1,437
<issue_start>username_0: Trying to load a csv into a database. ``` def csvtolist(path): with open(path, 'r') as f: reader = csv.reader(f) return list(map(tuple,reader)) for file in os.listdir(directory): filename = os.fsdecode(file) params =csvtolist(os.path.join(os.fsdecode(directory), fi...
2018/02/28
223
848
<issue_start>username_0: I know this is a basic question, but I haven't find the answer anywhere. Are all CSS properties applicable to all html elements? Or are there CSS properties that on apply to some html elements? Thank you for your answers.<issue_comment>username_1: You could do something like this before you...
2018/02/28
954
3,036
<issue_start>username_0: what I have learnt from the documentation is,I need to make an mutator function which should be getting that value and than converting it into a table.But I am constantly getting the error of **SQLSTATE[01000]: Warning: 1265 Data truncated for column 'valid\_to' at row 1 (SQL: insert into `prom...
2018/02/28
610
1,813
<issue_start>username_0: I am trying to obtain the weights from the following `Dense` layer: ``` x = Dense(1024)(Flatten()(previous_layer)) ``` If I try to do the following: ``` x = Dense(1024) weights = x.get_weights() ``` this works fine, but my understanding is that these weights will be useless, as we have n...
2018/02/28
692
3,026
<issue_start>username_0: I'm looking to send a notification to a user when an object (say, a photo they uploaded through my app) is downloaded by another user, as well as update a DynamoDB entry. To do this, I wanted to create an event trigger on my S3 bucket that will fire when a getObject is performed, calling a Lamb...
2018/02/28
622
2,649
<issue_start>username_0: I have an `ImageView` like this: ``` ``` How can I add a badge image on the top right corner of this `ImageView`? Is it possible to add a secondary image on the same `ImageView`? Example image: ![enter image description here](https://i.stack.imgur.com/x3taa.png)<issue_comment>username_1: I...
2018/02/28
614
2,086
<issue_start>username_0: ``` $user_id = auth::user()->id; $user_friends = User::find($user_id)->friends; $user_friends_id = $user_friends->pluck('id'); $posts = Post::where('user_id', $user_friends_id)->get(); return view('dashboard')->with('posts', $posts); ``` So far i've got the users friends id's in $user\_friend...
2018/02/28
2,617
8,561
<issue_start>username_0: Let's say that I have a class Person ``` class Person { constructor(name, sign, likes) { this.name = name; this.sign = sign; this.likes = likes } } var a = new Person("Jim", "virgo", "piscis"); var b = new Person("Sara", "sagitarus", ["piscis", "sagitarus"]); v...
2018/02/28
540
1,915
<issue_start>username_0: I have a four tables in a schema named DEMO. I want to move/clone/copy them in another schema named TEST. Is it posible to move the table by changing ownership from DEMO to TEST ? I use Oracle 11 and oracle sql developer 4.<issue_comment>username_1: You can use Oracle's data pump utilities to...
2018/02/28
776
2,956
<issue_start>username_0: Unable to scroll in appium IOS till bottom of the page with below code: ``` JavascriptExecutor js = (JavascriptExecutor) driver; HashMap scrollObject = new HashMap(); scrollObject.put("direction", "up"); scrollObject.put("xpath", "//XCUIElementTypeStaticText[@name=\"NAME\"]"); js.executeScript...
2018/02/28
483
1,706
<issue_start>username_0: Recently, I was trying to use if condition inside foreach loop .. and it has been done without issues.. But, when I use else inside the loop .. the if condition becomes fully ignored and the else condition will be executed without checking the if condition .. Here is the loop : ``` foreach ...
2018/02/28
406
1,353
<issue_start>username_0: Hi I am new in javascript Below is my jsp code and on click of submit button I want to force a user to select at least one radio box/record. how do I perform this task. Thanks in advance. ``` | Select | Excle SrNum | Excle Name | Uploded By | UplodedBy ID | Uplod Date and Time | xml Genrated...
2018/02/28
1,037
3,855
<issue_start>username_0: I am submitting a form using 'post' and transferring its data to another view using request.POST but my querydict is incomplete when it arrives in the second view. **view1** ``` def question_filter(request): if request.method == 'POST': print('before validation', request.POST) ...
2018/02/28
943
3,544
<issue_start>username_0: The goal is to show a users images on their profile page. The current error message I am getting is "'Images' object is not iterable". views.py ``` def view_profile(request, pk=None): if pk: user = User.objects.get(pk=pk) else: user = request.user args = {'user...
2018/02/28
1,036
4,322
<issue_start>username_0: I am trying to programatically get all the segues attached to UIViewController using UIStoryboardSegueTemplate and my aim is to get the destination view controller to the segue associated. So far I have done: ``` func initViewControllers(){ guard let array = self.value(forKey: "storyboar...
2018/02/28
1,124
3,660
<issue_start>username_0: Im trying to create a simple text game in Python 3. No special modules or anything, im totally new to python. Its a adventure game where the choices you make impact the story. I need some help with my "karma meter" and how i might do it. Im thinking that the easiest way to do it is to have a v...
2018/02/28
325
1,063
<issue_start>username_0: In Swift for iOS: Empty String Array: Is there a difference between [] and [""] ? ``` let arrA: [String] = [] let arrB: [String] = [""] ``` What is the difference between arrA and arrB ? Which one is the "better" way to initialize a String-Array in Swift ?<issue_comment>username_1: `arrA` i...
2018/02/28
1,200
3,251
<issue_start>username_0: How do I add a class to a div when a bootstrap 3 collapsible is collapsed? I need a code which adds the class `darken` when the div is collapsed. And when a collapsible is closed the class `darken` should be removed ```css #content { width: 400px; padding: 20px; border: 3px solid #EEE; ...
2018/02/28
1,064
2,880
<issue_start>username_0: Is it possible to do something [like that](https://i.stack.imgur.com/CBEio.png) with PrimeNG's p-multiselect?<issue_comment>username_1: Use `shown.bs.collapse` and `hidden.bs.collapse` to check when is collapsed/opened: ```js $('#collapse1').on('shown.bs.collapse', function () { $("#conten...
2018/02/28
380
1,455
<issue_start>username_0: this is an odd one: I have this simple bit of code: ``` ``` And receive this result: [![enter image description here](https://i.stack.imgur.com/xg2i6.jpg)](https://i.stack.imgur.com/xg2i6.jpg) Clearly, the imageview, is CENTERED in its layout and not on TOP. Why is this happening? This ...
2018/02/28
647
2,270
<issue_start>username_0: I'm using this piece of code ``` map.on('singleclick', function(evt) { ... url = pmfeatlayer.getSource().getGetFeatureInfoUrl(coordinate, viewResolution, projection, {'INFO_FORMAT': 'text/html'}); if (url) {... } ... } ``` And here my layer: ``` pmfeatlayer = new ol.layer.Tile({ extent:...
2018/02/28
477
1,593
<issue_start>username_0: I have a `numpy` array which saved as an uncompressed '\*npz' file is about 26 GiB as it is `numpy.float32` and `numpy.savez()` ends with: ``` OSError: Failed to write to /tmp/tmpl9v3xsmf-numpy.npy: 6998400000 requested and 3456146404 written ``` I suppose saving it compressed may save the d...
2018/02/28
324
1,248
<issue_start>username_0: I have optional String. What is want is, when trying to access it variable throw an error if it nil or empty. I want something like: ``` var myString: String? { get { guard !self.isEmpty || self == nil else { // throw error } return self } } ``` Is it possible to write such i...
2018/02/28
443
1,620
<issue_start>username_0: So i have two files User.py that contains User class and UserInformation.py that handles list of all Users created. Why cant i access User data from my UserInformation.py list. User.py: ``` class User(object): name = "" age = 0 def __init__(self, name, age): self.name = na...
2018/02/28
1,040
2,758
<issue_start>username_0: I am new to Scala and trying to get a Map having cumulative frequencies as values from a Map with the individual ones. So (for an immutable Map persisting the order such as ListMap) value(i) is the sum of all values up to and including i in the original Map as such: ``` val map = ListMap(0.0 -...
2018/02/28
888
2,530
<issue_start>username_0: Apologies if this has been asked before, but I wasn't able to find anything that worked for me. I have a stored procedure that has two OUTPUT parameters: ``` CREATE PROCEDURE dbo.xxx . . . @param1 INT OUTPUT, @param2 INT OUTPUT AS ``` and I want to call it from another ...
2018/02/28
850
2,320
<issue_start>username_0: I want to create a variable for a text file. How can I do this? For example: ``` with open("somefile.txt")as f: defaVar = f ``` I want to use it to save my settings in my program like: ``` password = input("<PASSWORD>...,hint:%d", f) ``` Can anyone help me?<issue_comment>username_1: ...
2018/02/28
553
1,857
<issue_start>username_0: I have a problem clearing text from QLineEdit after selecting item from QCompleter. I want to print the text of the item selected from QCompleter and then immediately clear QLineEdit, I only succeeded in printing the text, but I couldn't manage to clear the QLineEdit text afterwards. This is m...
2018/02/28
1,616
5,403
<issue_start>username_0: I am currently working on teleport feature for a game trainer. I found the right static addresses containing a float: [picture of addresses with offsets](https://i.stack.imgur.com/MOGWw.png) This address points to my X-coordinate. Now I am now trying to change my X-coordinate (a float) with r...
2018/02/28
1,599
5,332
<issue_start>username_0: I'm building a system, and I have a routes like `/document/123`. In my application I have many users that will eventually edit those documents, and I don't want one user to edit the same document of another. It would be good to give feedback like "Hey, user x is editing this document already"...
2018/02/28
1,858
6,141
<issue_start>username_0: in my code, while a user is uploading a pic, in my php code i want to read the width of the image while its getting uploaded, below is my code -- ``` php require_once('config.php'); $file_path = $_SERVER['DOCUMENT_ROOT']."AndroidApp/VideoUploads/Thumbnails/"; $emailid=$_GET['emai...