date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/05
299
1,128
<issue_start>username_0: When I connect to a beeline database, I don't need to enter the user and password, I just press enter and I get access to the database. but when I want to write onto the database I get a permission denied error: ``` Error: java.io.IOException: org.apache.hadoop.security.AccessControlException...
2018/03/05
350
1,189
<issue_start>username_0: `$request->amount` is not working on a controller in Laravel. Why. What is my error? Then I change like `$request->input('amount');` anyway it didn't work. ``` function getMessage(product\_id){ $.ajax({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}, type:'POST',...
2018/03/05
230
806
<issue_start>username_0: I am using Fabric Crashlytics for Unity, now i get the Stacktrace for c#, but i cannot get the line number. Unity version:5.5.1p4 Fabric Crashlytics version:1.2.5 Android Configuration of Scripting Backend is IL2CPP. This is the Stacktrace : [![enter image description here](https://i.stack...
2018/03/05
875
3,041
<issue_start>username_0: I want to set up 2 rabbitmq servers to work in cluster. When when trying to run `rabbitmqctl join_cluster rabbit@my_rabbit_1.<EMAIL>` on `my_rabbit_1` I get `unable to connect to epmd (port 4369) on my_rabbit_2.my.domain.name: nxdomain (non-existing domain)` I use `rabbitmq:latest` (debian...
2018/03/05
523
1,983
<issue_start>username_0: I'm working on a WordPress website. All I want to do, add the attribute `onclick="off()` to an existing div class via javascript (so that the div always has this attribute when the site is loaded). the content plugin I use creates div's automatically, so instead of editing the source code each...
2018/03/05
2,260
7,249
<issue_start>username_0: I want to parallelize a function and have the problem that after a few hours my memory is overloaded. The test program calculates something simple, and works so far. Only the memory usage is constantly increasing. QT Project file: ``` QT -= gui QT += concurrent widgets CONFIG += c++11 consol...
2018/03/05
816
2,783
<issue_start>username_0: I have 4 buttons and I want to make each button generate a random number when clicked on. The random numbers are generating with a for loop and math.random but I assign it to my class and since the class is the same on all the buttons all 4 buttons only get one of the numbers but when I console...
2018/03/05
805
3,105
<issue_start>username_0: I decided to use Docker for our project's deployment, however we are having a hard time configuring docker support. The solution itself consists of multiple projects (14 to be precise), out of which one builds the .exe file. I have added docker support to this project, so it contains the Docker...
2018/03/05
705
2,608
<issue_start>username_0: I have a `List>` with three nested lists. Now I need to check if `List[1]` equals a certain string and if so, check if the value at this index in `List[2]` has another certain string. If both conditions return true, then I need to get that certain index and get the item of `List[0].` For examp...
2018/03/05
512
2,470
<issue_start>username_0: I'm using bootstrap data table and vue.js and When i try to invoke DataTable function after vue model creation, it doesn't work, why? I tried $(app.$el).datatable() too, but did not work. here is my code ``` | First name | Last name | | --- | --- | | test | test | $(document) .ready(func...
2018/03/05
380
1,452
<issue_start>username_0: I use spring integration to read and process files from a ftp server. So that the file is not processed by other processes, it should be renamed before processing. How can I do that with spring integration (spring boot)? Thank you very much for your help. Ben<issue_comment>username_1: The bes...
2018/03/05
991
3,052
<issue_start>username_0: The kind folks over at Space Exploration Beta have been helping me with calculating orbital elements but i have been stuck on applying one formula in C# for a bit of time and require a bit of advise. The Formula is for the Eccentricity Vector using: $$\vec e = \frac{\vec v \times \vec h}{\mu}...
2018/03/05
599
2,309
<issue_start>username_0: I have multiple inputs with the same name and I want to select only one option. But this option should be null if the checkbox is not selected. I have a problem when the user selects the checkbox chooses a option and then unchecks. the option is still selected. When i untick the checkbox I wa...
2018/03/05
1,710
7,205
<issue_start>username_0: I am new to iOS swift. I have three ViewController. The page-A is root controller and it will present to the page-B. It has a timer in page-B. After 5 sec, it will change View from page-B to page-C , and close the page-B at the same time. In the **`ViewControll-B`** ``` class AViewController:...
2018/03/05
1,233
3,837
<issue_start>username_0: 1. Summary ---------- I can't disable enter passphrase each time, how I make commit. --- 2. Environment -------------- * Windows 10 Enterprise LTSB 64-bit EN, * git 2.16.2.windows.1, * gpg-agent (GnuPG) 2.2.4, * gpg4win 3.0.3. --- 3. Steps to reproduce --------------------- [**I install ...
2018/03/05
1,424
4,678
<issue_start>username_0: Recently I am trying to find the mode in a set of number by using C. My code can done well when the set is small. Here is my code: ``` int frequency[10001]; //This array stores the frequency of a number that between 0 to 10000 int main() { int x[10]={1,6,5,99,1,12,50,50,244,50}; int h...
2018/03/05
704
2,031
<issue_start>username_0: My first array like this : ``` $photoList = array( array( 'id' => 1, 'name' => 'chelsea.jpg' ), array( 'id' => 2, 'name' => 'mu.jpg' ), array( 'id' => 3, 'name' => 'city.jpg' ) ); ``` My second array like this : ``` pho...
2018/03/05
868
3,233
<issue_start>username_0: I'm using this package [here](https://github.com/ChristianKuri/laravel-favorite) in Laravel 5.6 to add likes system in my project. I have updated the models as per their documentation. However, I'm confused on how to use this package. I have added tried the following which adds the logged in ...
2018/03/05
3,210
10,357
<issue_start>username_0: I'm trying to write a Cobol program with the following interface: ### Objective Receives a clear encryption key and a clear text and returns a cyphered text using the [3DES](https://en.wikipedia.org/wiki/Triple_DES) algorithm. ### Inputs: * CLEAR\_KEY: A 32-character string of hexadecimal c...
2018/03/05
961
4,060
<issue_start>username_0: How can I get the name of the current activity in the base class. Suppose I have a base activity class BaseActivity : ``` class BaseActivity extends AppCompatActivity { ... String getCurrentActivityName() { .... } ... } ``` Now I have 2 other classes ``` class Ac...
2018/03/05
296
960
<issue_start>username_0: ``` public addition :any = []; public display : any = []; public object1 =['3','2','1']; public value2 =['5','7','9','8']; constructor(){} ngOnInit(){ this.addition=this.object1.concat(this.value2); this.display=this.addition.sort(); } ``` how to sort the array in des...
2018/03/05
955
4,049
<issue_start>username_0: I am working on one form. Applying some java script validations on form. I want one changes with my validations. I have one dropdown this some company names. suppose i have five companies . ``` ABC DEF GHI IJK LMN ``` if i want to not validate form if user select `ABC` and if user will...
2018/03/05
1,087
2,625
<issue_start>username_0: I have the following lines in an apache access log ``` /sms/receiveHLRLookup?Ported=No&Status=Success&MSISDN=647930229655&blah /sms/receiveHLRLookup?Ported=No&Status=Success&MSISDN=647930229656&blah /sms/receiveHLRLookup?Ported=No&Status=Success&MSISDN=647930229657&blah /sms/receiveHLRLookup?P...
2018/03/05
1,362
4,688
<issue_start>username_0: I want to know if it's possible to change the text size and color incrementally on the same line, like this: [![enter image description here](https://i.stack.imgur.com/8gM88.png)](https://i.stack.imgur.com/8gM88.png) I want to use CSS only *if possible*. Any other solution, that at least does...
2018/03/05
1,972
8,030
<issue_start>username_0: I have this stored procedure code but when I execute from my project I get this error: > > Must declare the table variable "@projectsElements". > > > ``` ALTER proc [dbo].[spInsertProjectElements] @projectsElements dbo.ProjectElementsDefinedType READONLY, @tableName nvarchar(200) as b...
2018/03/05
778
2,768
<issue_start>username_0: I have a FlatButton. I don't want the splash highlight when the button is clicked. I tried changing the splash colour to transparent, but that didn't work. Here is the code for my FlatButton. ``` Widget button = new Container( child: new Container( padding: new EdgeInsets.only(bottom: 20...
2018/03/05
774
2,744
<issue_start>username_0: I am Taka. I tried to get the highlighted results on Watson Discovery in Node.red. It doesn't work. Could you tell me if we can get the highlighted results in Node.red and how to do it if we can? Here is that I tried. I created a function node in Node.red to pass query from Discov...
2018/03/05
510
1,713
<issue_start>username_0: Is it possible to change the whole field of `input` using jQuery from this ``` ``` to this ``` ``` from what I read in jquery manual I can change type, value etc how about change the whole context of field, since I'm new to javascript I don't find the solution yet.<issue_comment>username_...
2018/03/05
756
2,581
<issue_start>username_0: I try following select statment: ``` SELECT coalesce(rewards_Created_Activated_Failed.membership_id, expired.membership_id) AS MembershipID ,coalesce(date_sub(to_date(expired.occurred_at), 'YYY-MM-DD') ,to_date((max_expiredDate.expiry_date), 'YYY-MM-DD') ...
2018/03/05
657
2,532
<issue_start>username_0: I'm trying to translate C++ into C# and I'm trying to understand, conceptually what the following piece of code does: ``` memcpy( pQuotes + iStart, pCurQuotes + iSrc, iNumQuotes * sizeof( Quotation ) ); ``` pQuotes is declared: **struct Quotation \*pQuotes**. **pCurQuotes** is a **CArray** o...
2018/03/05
1,190
3,213
<issue_start>username_0: I have a dataset which looks like this: ``` ID 2017 2018 2019 2020 2017 30 24 20 18 2018 30 24 20 18 2019 30 24 20 18 2020 30 24 20 18 ``` I am looking to create an array based on a few inputs: ``` %let F...
2018/03/05
748
2,397
<issue_start>username_0: I have model ``` class A(models.Model): is_enable = models.BooleanField(default=False) title = models.CharField(max_length=255, blank=True, null=True) updated_date = models.DateTimeField(auto_now=True) show_count = models.IntegerField(default=0) answers_count = models.Inte...
2018/03/05
697
2,185
<issue_start>username_0: so earlier I am learning c/c++ and use for loops intensively ``` for ( init; condition; increment ) { statement(s); } ``` but now I am learning python and I came across python implementation of for loop which is ``` for num in range(5): print(num) ``` My question is how for loop works...
2018/03/05
806
3,482
<issue_start>username_0: Imagine a project with the development stretched over 10+ years timespan. Some parts are in C, some are in C++ and all of the code uses global functions and global variables. The architecture was designed inherently single threaded and kept growing that way. But now we consider utilizing many-c...
2018/03/05
668
2,770
<issue_start>username_0: I just created a new column for my table ``` alter table user add (questions set); ``` Now the table looks like ``` user ( google_id text PRIMARY KEY, date_of_birth timestamp, display_name text, joined timestamp, last_seen timestamp, points int, questions set ) ...
2018/03/05
1,112
4,732
<issue_start>username_0: I have this class: ``` public static class Person { public Person(){ } public String get_id() { return _id; } public int getIndex() { return index; } public String getGuid() { return guid; } ...
2018/03/05
817
2,536
<issue_start>username_0: Despite that I have defined the related dependencies as I have added below, getting the `java.lang.ClassNotFoundException: com.sun.xml.internal.ws.spi.ProviderImpl` exception when my app makes a call to the web service. ``` javax.xml.ws jaxws-api 2.2.10 com.sun.xml.ws jaxws-rt 2.2.10 ...
2018/03/05
728
3,048
<issue_start>username_0: I have two Laravel projects, one for client-facing (let's call this `project A`) and the other one for admin (let's call this `project B`). If I update database, such as creating new table or adding extra column on existing table, using Laravel migrate from the `project B`, is there any action...
2018/03/05
519
1,879
<issue_start>username_0: I have two sibling components, the first component has `select` box with different `option` bind to a variable called `selectedValue`. When I change the value of options in the first component, I want the same value is changed in the second component. However, the second component keeps showing...
2018/03/05
519
1,908
<issue_start>username_0: I'm trying to access a string outside the parse query, it's not working outside query but it works inside the query. I declared the global variable and and tried to access it but it's still not working, instead of string it returns null. I'm new to Java and Android so please forgive me if it's...
2018/03/05
392
1,309
<issue_start>username_0: I need to calculate the following equation.which namespace is needed to add? I used `using System` but it's not detected my code and contains error ``` double n = arcsin(sin(0.1570) / cos(_savedPosition.Latitude)); ```<issue_comment>username_1: As Camilo mentioned. System.Math Upvotes: 0 <iss...
2018/03/05
513
1,354
<issue_start>username_0: My code is working fine, and I am receiving mail, but the Cc mail is not receiving, and there is no error showing up: This is my code: ``` $name=$_POST['name']; $mobile=$_POST['mobile']; $email=$_POST['email']; $cat=$_POST['cat']; $date=date("y-m-d"); $emailList="<EMAIL>,<EMAIL>"; $to = "<E...
2018/03/05
1,360
3,262
<issue_start>username_0: I encounter a strange behavior that I don't understand. Here is an example: ``` plouf <- read.table(text = "id ttt_course generic_name 1011010001.1 1 etanercept 1011010001.2 1 etanercept 1011010001.3 1 etanercept 1011010001.4 1 etanercept ...
2018/03/05
1,383
4,660
<issue_start>username_0: I have an Entry in Xamarin Forms and for Android, its displayed with an underline by default and when I test it for iOS it's always with a rectangle like this: [![enter image description here](https://i.stack.imgur.com/GmEqv.png)](https://i.stack.imgur.com/GmEqv.png) And I want it to be like ...
2018/03/05
918
3,566
<issue_start>username_0: I have 2 classes 1.BROWSER--- This class has methods for loading browser so that i can call in my every test case 2.LOCATORS --This class contains methods for storing all webelements 3.NEW TEST-This is my test case, in which i have called "browser" and "locators" class... Below is my Browser...
2018/03/05
2,498
8,469
<issue_start>username_0: I have a long string, let us say `astr = "I am a very long string and I could contain a lot of text, so think of efficiency here"`. I also have a list `alist = ["I", "am a", "list", "of strings", "and each string", "could be made up of many words", "so think of efficiency here"]`. Now, my list ...
2018/03/05
2,872
7,314
<issue_start>username_0: I have a .log file where i want to check if there are errors/warnings in it: ``` 2018-03-05 10:55:54,636 INFO The file: C:/test/Abu/TRS.ABU.GEN.003_1/input\ASWC_M740.aswc.arxml is well-formed 2018-03-05 10:55:55,193 INFO The file: C:/test/Abu/TRS.ABU.GEN.003_1/input\ASWC_M740.aswc.arx...
2018/03/05
672
1,799
<issue_start>username_0: I want to save multiple start and end time with comma separated in database. For example following is my array of start time and end time. ``` Array ( [0] => 1:00 [1] => 2:00 [2] => 3:00 [3] => 4:00 ) ``` I want to store it into database like `1:00-2:00, 3:00-4:00` . How ca...
2018/03/05
430
1,535
<issue_start>username_0: Does **React Native** Application Development can be implement with Software Architecture such as **MVC, MVP, MVVM**? Thank you.<issue_comment>username_1: Yes. React Native is just the "V" in those software design patterns you're mentioning. If you consider other libraries around React, like F...
2018/03/05
345
1,081
<issue_start>username_0: I have a Grafana metrics like this: ``` SELECT UNIX_TIMESTAMP(time) as time_sec, sum(average_hashrate_eth) as value, 'total hashrate' as metric FROM status_rig group by time; ``` With an alert like this: `WHEN last()` of `query(A, 5m, now) IS BELOW 800` How do I make this to only ale...
2018/03/05
477
1,749
<issue_start>username_0: I have to make a textarea editable with ckeditor. A button is placed after the editor. If that button is clicked, I need to add an html code to the editor. The code to load CK Editor is: ``` CKEDITOR.replace('mail_content'); CKEDITOR.config.toolbar = [ ['Styles','Format','Font'...
2018/03/05
670
2,724
<issue_start>username_0: I've got the following Unit function: ``` private fun loadFilterArea() { val query = ALIAS.AREA val type = preferences.getInt(query, TYPEVALUES.MY_LOCATION) val longitude: Double val latitude: Double when (type) { TYPEVALUES.MY_LOCATION -> { ... ...
2018/03/05
529
1,349
<issue_start>username_0: How can I extract the text enclosed within the parenthesis from the following string: ``` string = '{a=[], b=[abc, def], c=[ghi], d=[], e=[jkl], f=[mno, pqr, stu, vwx]}' ``` Expected Output is: ``` ['abc','def','ghi','jkl','mno','pqr','stu','vwx'] ```<issue_comment>username_1: Regex shoul...
2018/03/05
793
1,542
<issue_start>username_0: I want to calculate the sum of the elements of my vector and stop the sum when we exceed the value of 0.8. Then show the first elements that served to the sum. Thanks.<issue_comment>username_1: We can use `cumsum` to create a logical index to subset the elements where the sum is less than or e...
2018/03/05
636
1,884
<issue_start>username_0: In my project the data is coming to front-end as a json object as shown below: ``` { id: 1, meetingName: "Meeting 1", meetingDate: "2018-02-21", startTime: "10:00:00" } ``` `{{meeting.startTime|date:"h:mma"}} |` I used the above method to format the date in angularjs code as 10:00 ...
2018/03/05
1,025
3,706
<issue_start>username_0: I have created a `list` of items using `RecyclerView`. I have basically followed [this](https://www.simplifiedcoding.net/android-recyclerview-cardview-tutorial/) tutorial, which matches my initial requirement. My final activity is: ``` public class PlacesActivity extends AppCompatActivity { ...
2018/03/05
561
1,997
<issue_start>username_0: StackOverflow, I'm having an issue outputting the other image **extension**.Now it's only working with **.jpg** and I want to get the other image extensions from the path. I tried some ways but I can't figure it out how to make it work.I'm not a professional, still learning.Any tip on how to d...
2018/03/05
549
1,945
<issue_start>username_0: i am working on one project and i come to the problem. I need to run .jar over cmnd prompt and i need to put path to .properties file into the argument, for example: ``` java -jar myproject.jar C:\path\to\config.properties ``` Now i have a path to file satatic ``` FileInputStream in = new F...
2018/03/05
606
2,145
<issue_start>username_0: I create CodeIgniter project on my local machine (Running perfectly), then I uploaded to a server with its database but I am facing the problem of not found an error while opening admin panel. I changed config file(for base URL), `database.php`(for database connection). but I don't know what t...
2018/03/05
776
2,431
<issue_start>username_0: I have model built in H2O (say, GLM model) Now, I want to import that model in Python to use for other apps. How can I do it ?<issue_comment>username_1: You need to export the model as a MOJO or POJO (prefer MOJO if your algorithm supports it). This is a Java object, so you need to use Java t...
2018/03/05
187
741
<issue_start>username_0: Why do we use this syntax in JAVA ``` FreshJuice juice = new FreshJuice(); ``` instead of just ``` FreshJuice juice; ```<issue_comment>username_1: Because you need to create an object before initializing it. When you call `new FreshJuice();` it firsts allocates memory for the object on he...
2018/03/05
1,200
3,095
<issue_start>username_0: I have a dictionary like: ``` d = {1: 'a', 2:'b', 3:'c', 4:'c', 5:'c', 6:'c'} ``` I want to slice this dictionary such that if the values in the end are same, it should return only the first value encountered. so the return is: ``` d = {1: 'a', 2:'b', 3:'c'} ``` I'm using `collections.def...
2018/03/05
959
3,511
<issue_start>username_0: I'm trying to refactor some Symfony 3 code to Symfony 4. I am getting the following error when attempting to log: > > The "monolog.logger.db" service or alias has been removed or inlined > when the container was compiled. You should either make it public, or > stop using the conta iner di...
2018/03/05
1,718
6,371
<issue_start>username_0: I have created an MS Access database with several tables and queries but the problem described further down is about the following: * *tEmployee* table contains employee data as the name implies. * *tCases* table contains data about court cases. * Each case can be assigned to only one employee...
2018/03/05
342
1,301
<issue_start>username_0: I'm acting as an acceptor and have no control over the initiator. Whenever initiator connects I'm getting this ``` 58=MsgSeqNum too low, expecting x but received y ``` So far tried ResetOnLogon=Y, but it does not help. Probably initiator does not have a matching config. Next idea was to par...
2018/03/05
325
1,028
<issue_start>username_0: > > Write a method named indexOf that returns the index of a particular value in an array of integers. The method should return the index of the first occurrence of the target value in the array. If the value is not in the array, it should return -1. For example, if an array called list stores...
2018/03/05
565
1,804
<issue_start>username_0: I have a json which is array of dictionary ``` response.text = [{ "id": "4635465675", "name": "Arts", "pluralName": "Arts", "shortName": null }] ``` `json = JSON((response.text)?.data(using: .utf8))` How can i check is value for key "shortName" null or not, say for first dictionary in the ar...
2018/03/05
842
2,907
<issue_start>username_0: I have a fresh installation of wordpress, and I wrote some quick rewrite rule in my functions.php that looks like this - ``` // "rewrite" /assets/xyz to /assets/?asset=xyz function assets_rewrite_rule($rules) { global $wp_rewrite; $asset_rule = array( // (not tested) 'assets/(.+)...
2018/03/05
578
2,337
<issue_start>username_0: I create `GENERIC_READ` file handle with `createFile`. This is my instruction : ``` hfile := CreateFileA(aFileName, GENERIC_READ, FILE_SHARE_READ or FILE_SHARE_WRITE, nil, ...
2018/03/05
348
1,363
<issue_start>username_0: I have multiple ViewControllers in my storyboard, and I need various objects in the story board to link to vars in my code. **Screenshot of my ViewControllers** [![](https://i.stack.imgur.com/qF5Kr.png)](https://i.stack.imgur.com/qF5Kr.png) I'm only able to ctrl + drag an IBOutlet from the Vi...
2018/03/05
361
1,604
<issue_start>username_0: I understand that keycloak has built-in clients and we add the users later on. But in general, **what is the difference between a client and a user in Keycloak?**<issue_comment>username_1: In short words, not only for keycloak but for OAuth and OpenId Connect too, a client represents a resourc...
2018/03/05
921
3,136
<issue_start>username_0: I'm trying to render some content from a service which returns a promise, but I can't figure out how I should return the data in my "return" block. It's no problem to return some static data, as shown in this example. But how can I return the data from the commented code in the same way? The ...
2018/03/05
726
2,475
<issue_start>username_0: I need help to make a regex to find string like: ``` php if ($course['image']) { ? ``` or ``` php if ($course['date']) { ? ``` and replace with ``` {{$course->image}} or {{$course->date}} or {{$course->whateverindex}} ``` thanks!<issue_comment>username_1: Have you seen this? <https:/...
2018/03/05
852
2,969
<issue_start>username_0: I am trying to make my own dataset of handwritten images to test my hand written digit classifier. so to make it I wrote the images in a paint box and resized the images to 28x28 pixels same as the train test pixels. but when I loaded it to the python the image shape is (28,28,3) I know these a...
2018/03/05
758
2,688
<issue_start>username_0: I am using FB share and like plugin on my website. Link below: `https://developers.facebook.com/docs/plugins/like-button` I would like to track a user who logged in on my website (I have the user id) and liked and shared a post through FB like and share plugin and when the user does then I wo...
2018/03/05
807
3,500
<issue_start>username_0: I want to get the mac address of my software user on the network due to some security reasons. But i am able to get the mac address of the router through following method. ``` public string GetMACAddress() { NetworkInterface[] nics = NetworkInterface.GetAllNetworkInterfaces(); ...
2018/03/05
609
1,908
<issue_start>username_0: We had initially installed tesseract 3.04 in centos 7, and know switching to tesseract 3.05. We have un-installed the older versions and have already installed leptonica-1.75.3 downloaded from leptonica home site. But, when we go for installing tesseract 3.05, we get following error checking...
2018/03/05
725
2,560
<issue_start>username_0: I have an ios application built to use mapkit and corelocation. the application works with no error but the map doesnt pin point my current location in xcode simulator and when run on an actual device it does not show the land scape and other things. just a blank map with a single road and it c...
2018/03/05
1,230
5,090
<issue_start>username_0: I have two controllers that have few same methods: ``` public class Controller1 : Controller { private readonly ITestBL bl; public Controller1(ITestBL bl) { this.bl= bl; } [HttpGet] public ActionResult Method1(string data) { using (bl) { ...
2018/03/05
1,042
4,246
<issue_start>username_0: Please help me. Is this an error or a warning? How can I solve this? Error is that the `View v` is unreachable statement ``` public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) { return super.getView(position, convertView, parent); View v; v...
2018/03/05
1,148
4,666
<issue_start>username_0: ``` private HttpResponseStatus(int code, String reasonPhrase, boolean bytes) { if(code < 0) throw new IllegalArgumentException((new StringBuilder()).append("code: ").append(code).append(" (expected: 0+)").toString()); if(reasonPhrase == null) throw new NullPointerExcepti...
2018/03/05
952
3,009
<issue_start>username_0: I've two cases where I need to convert strings to different formats. for ex: ``` case 1: string inputs: abc, xyz, mno, & llr // All Strings from a dictionary output: ["abc","xyz", "mno", "llr"] //I need to get the String array like this. ``` But when I use this code: ``` var strin...
2018/03/05
1,080
3,767
<issue_start>username_0: I am working on adding bootstrap dual listbox controller in to web page. This is the code I used ``` jQuery(function ($) { var dualList = $('select[name="duallistbox\_laws[]"]').bootstrapDualListbox({ infoTextFiltered: '<span class="label label-purple label-lg">Filtered</span>', }); } ...
2018/03/05
1,199
4,268
<issue_start>username_0: I have 2 classes that are both derived from a base class X. The base class contains a property of a class T. Both subclasses of X should contain a property that's derived from T. What I would like to achieve is to declare the a property of T in the base class X and have it used in several meth...
2018/03/05
1,234
3,884
<issue_start>username_0: I have a table in this form: ``` id | firstname | lastname | userid ---+-----------+------------------------ 1 | john | smith | 545868-5434-343435-35353 2 | adam | finger | 545868-5434-343435-35353 3 | teri | marti | 545868-5434-343435-35353 4 | pei | port ...
2018/03/05
809
3,612
<issue_start>username_0: I keep getting the error > > An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll > > > when inputting a value over 70 characters in my code, could anybody please explain why? ``` namespace testingStrategiesCoding { class Program { ...
2018/03/05
1,405
4,853
<issue_start>username_0: I am currently teaching myself `ocaml` for my programming language class and I am having trouble compiling multiple files in `ocaml`. I have defined a function in my `get_file_buffer.ml` file Source code of `get_file_buffer.ml` ``` (* Creating a function that will read all the chars ...
2018/03/05
359
1,139
<issue_start>username_0: I wants to generate an array with different elements depending on how many words are written in the text-area. Every single word from the text-area should be in their own element in my Array. I have been googling this without any success and therefore want to try my luck here. Could look som...
2018/03/05
715
2,568
<issue_start>username_0: I'm trying to setup some socket.io communications, the communication between my server (app.js)(runs on a raspberry pi) and a website(public/index.html) works fine. Now I want to expand it so when my app.js receives a call from index.html it emits it further to another node.js script(bed.js) th...
2018/03/05
326
1,009
<issue_start>username_0: So now I have a variable which is x = 1001.0010101 From this x, I wanna separate into two parts: ``` x = 1001.0010101 val_int = int(x) #get val_int = 1001 val_fract = {0:.5f}".format(a - val_int) #get val_fract = 0.00101 ``` Is it possible to use for loop to iterat...
2018/03/05
772
2,397
<issue_start>username_0: ### Test Code: ``` import calendar from collections import Counter dates = ( '2017-05-01 11:45:35', '2017-06-01 11:45:35', '2017-06-01 11:45:35', '2017-07-01 11:45:35', ) city_file = [{'Start Time': d} for d in dates] c = Counter((calendar.month_name[int(month['Start Time'][5:...
2018/03/05
716
2,584
<issue_start>username_0: I'm using Azure Cosmos DB with MongoDB for storing the answers that my Microsoft Bot Framework-based chatbot will give to different dialogs. **My issue is that I don't know if it's best to do a query for each response or do one large query to fetch everything in the DB once the code runs and s...
2018/03/05
395
1,464
<issue_start>username_0: I know that I can use these flags in `.pro` to increse the size of the `stack` and the `heap` in my c++ project in QT. But in linux it has no effect and I still have the stack size problem. How can I solve that in linux or is there an another solution? ``` QMAKE_CXXFLAGS += -Wl,--stack,1000000...
2018/03/05
637
1,976
<issue_start>username_0: i have query like this and i wanted to have sum of sales per day ``` SELECT DATEPART(day,deduction_timestamp) as [day], [fare_deduction] FROM [dbfastsprocess].[dbo].[vClosingTransitLog] WHERE bus_id in ('JEAST', 'MKV004', 'NWTN01') and YEAR(deduction_timestamp) = ISNULL(2016, YEAR(deduction_ti...
2018/03/05
1,006
2,801
<issue_start>username_0: ``` #include int main(void) { int i= 1, j = 1; for (; j; printf("%d %d",i, j)) j = i++ <= 5; return 0; } ``` **output-** ``` 2 13 14 15 16 17 0 ``` Can anyone explain what is happening inside the loop? This question was asked in the interview process.<issue_comment>username_1:...
2018/03/05
416
1,780
<issue_start>username_0: I want to calculate the amount of network usage/network traffic stats for my app in a month. I can use [TrafficStats](https://developer.android.com/reference/android/net/TrafficStats.html) to provides network traffic statistics, but the statistics returned by this class reset and start from ze...
2018/03/05
382
1,602
<issue_start>username_0: Consider the table 'Table1' as below ``` main_id main_item_id -------- --------- 1 101 1 102 2 105 2 105 3 105 3 106 4 101 4 10...
2018/03/05
441
1,775
<issue_start>username_0: We have an Apache Webserver, Version 2.4.12 on a Windows 2008 machine. We have gif images in different sub folders of htdocs, some in "icons" and some other in "ni5/customer/images". When I start our web application, the Google Chrome developer tools show something strange: [![enter image ...
2018/03/05
203
601
<issue_start>username_0: I am forced to use comma separation in one of my input arguments to separate multiple values. So I end up with ``` my_string = ['a,b,c'] ``` How can I convert this so that ``` my_new_string = ['a', 'b', 'c'] ```<issue_comment>username_1: One possible way: ``` my_new_string = my_string[0]....
2018/03/05
1,381
4,469
<issue_start>username_0: My data set is changing and now includes two additional words at the start of my customer name field, I need to clean this data up before moving it to my main customer table. What I need to be able to do is keep only the words after the second space in a select statement. Can anyone suggest a...