date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/08
589
1,987
<issue_start>username_0: **Captcha images are not creating inside the `images` folder** ``` public function index() { $this->load->helper('captcha'); $capt = array ('img_path' => './images/', 'img_url' => base_url() .'images/', 'font_path' => base_url().'...
2018/03/08
608
2,055
<issue_start>username_0: Got a data.frame with a column like this: ``` Column_1 AAA B BBB AAA_FACE CCC BBB_AAA ``` I want to spread the column into new columns (but not for all my unique values, because then I would get very, very much columns), but only for the values containing a specific pattern: "AAA". After s...
2018/03/08
178
665
<issue_start>username_0: In my project, this normally worked, it gives an error now and i do not know why.<issue_comment>username_1: > > Failed to resolve: com.android.support:support-v4:26.3.1 > > > It happens because this version **doesn't exist**. Check all the versions [here](https://developer.android.com/t...
2018/03/08
276
1,005
<issue_start>username_0: Following code: ``` Lobby := map[string]interface{}{ "table_id" :"new table id", "Status" : true, "name" : "shivam", "array":[]interface{}{0,1,3},// this replace existing array with new values } result, err := client.Collect...
2018/03/08
534
1,848
<issue_start>username_0: can anyone explain this please? [![Chrome developer tool](https://i.stack.imgur.com/2f1pC.png)](https://i.stack.imgur.com/2f1pC.png) So the tool shows that the rgb(250,255,189) is superceded by the salmon (because the rgb is crossed out) YET despite salmon being the one showing, the summary r...
2018/03/08
489
1,624
<issue_start>username_0: ``` let car = CarFunction(); function CarFunction(lang) { var carNo = (prompt("Enter Car No")); if (carNo === '1') { return('Sedan'); } else if (CarNo == '2') { alert('Truck'); } else { alert('No record found'); } alert(car) ``` I'm trying to call the function that I've created, wher...
2018/03/08
448
1,353
<issue_start>username_0: I have this so far ``` php $pagesToLoad = array("file1.php","file2.php","file3.php","file4.php","file5.php","file6.php","file7.php","file8.php","file9.php","file10.php"); $randomPageToLoadA = $pagesToLoad[mt_rand(0, count($pagesToLoad) -1)]; $randomPageToLoadB = $pagesToLoad[mt_ra...
2018/03/08
694
2,662
<issue_start>username_0: I'm trying OO in PHP. I think I understand what goes wrong but I don't understand how to fix it. ``` class Name { public $_firstname; public $_lastname; public function setName($firstName, $lastName){ $this->_firstname = $firstName; $this->_lastname = $lastName; ...
2018/03/08
1,086
3,336
<issue_start>username_0: I write code to return value in chart. I get data from cryptocompare.com (example JSON: [link](https://min-api.cryptocompare.com/data/histoday?fsym=BTC&tsym=USD&limit=2000)) It's code to use Highcharts: ``` $.getJSON("php echo $chartURL; ?", function (data) { var seriesData = []; for...
2018/03/08
385
1,040
<issue_start>username_0: I am trying to add comma at end of all lines except line 1 , 2, 3 and last time. I tried using sed to achieve it: ``` sed '$![1 2 3 s/,/' filename ``` but this is not working. Any suggestions?<issue_comment>username_1: You can use the address range `1,3` to exclude the first three lines fro...
2018/03/08
378
1,300
<issue_start>username_0: I am working on reactJs.I am using semantic ui react for this.i want to tranform image when hover.My code is: ``` this.handleGallery(this,data.username)} onMouseOut={() => alert('out')} onMouseOver={() => alert('in')} /> ``` I am new to react. I dont know where to set hover prope...
2018/03/08
934
2,689
<issue_start>username_0: I am trying to install ffmpeg to elastic beanstalk, I have created config file with below commands- ``` packages: yum: ImageMagick: [] ImageMagick-devel: [] commands: 01-wget: command: "wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-st...
2018/03/08
759
2,655
<issue_start>username_0: I use NodeJs AWS Lambdas. If I don't do calls to my S3, or DynamoDB, or KMS for some time (approx. 8h or more) the first call I make is usually painfully slow - up-to 5sec. There's nothing complex in the queries themselves - i.e. get a 0.2Kb S3 object, query a DynamoDB table by index. So, it l...
2018/03/08
1,026
3,253
<issue_start>username_0: I am working with the google goecode API and a few postal codes gets status ZERO\_RESULTS even tho' the postal codes exists (when searching on the complete adress I can find it). Here is the request I send (postal code: W1K6LX in England): <https://maps.googleapis.com/maps/api/geocode/json?co...
2018/03/08
778
2,893
<issue_start>username_0: Facing ObjC file reference issue. I tried pod deintegration, removing DerivedData, Cleaning the project, Adding -Objc and $(inherited) FLAGS. I am using cocoapods, Xcode 9, Swift 4. Please revert if anyone have resolved this issue. [![Error Description](https://i.stack.imgur.com/z3121.png)](ht...
2018/03/08
783
2,760
<issue_start>username_0: Is it possible to vectorize (do the same without the for loop) this problem? ``` A=[(1:5)' (1:5)' (1:5)']; B=ones(1000,5); D=size(A,1) C=zeros(1000,3,5) for y=1:D C(:,:,y)=B(:,A(y,:)); end ```<issue_comment>username_1: Try this Goto Project -> Build setting Serach enable bitcode & set it t...
2018/03/08
2,941
4,765
<issue_start>username_0: I want a Java regex for: > > ACK : 2018-03-08 12:12:28 : 4802 : RETN=0,ID=1,NUM=9,RESULT=290,1,"sip:99990030@172.16.58.3","\*\*\*\*\*\*\*\*\*\*"," ","99990030",1,31,106,"0.0.0.0",0&291,1,"sip:99990031@172.16.58.3","\*\*\*\*\*\*\*\*\*\*"," ","99990031",1,31,101,"0.0.0.0",0&292,1,"sip:99990032@...
2018/03/08
411
1,762
<issue_start>username_0: I am developing an Android Application with access to an external API. To access the API, it is necessary to implement OAuth2 protocol. I have set up everything, my API call to get an authorization code is working, but does not return anything. Reason is at my Callback\_url. I have set up a c...
2018/03/08
566
1,580
<issue_start>username_0: I have a table like this : ``` fkey | sensor | depth | value -----+--------+-------+------- 1 | 1 | 1 | 34 1 | 1 | 2 | 27 1 | 2 | 1 | 22 1 | 2 | 2 | 34 1 | 2 | 3 | 56 2 | 1 | 1 | 12 2 | 1 | 2 | 24 2 | 2 ...
2018/03/08
549
1,972
<issue_start>username_0: We are using apache-beam python 2.3 with Google Cloud Dataflow. Since about 2 weeks the Cloud Dataflow Dashboard at <https://console.cloud.google.com/dataflow> is heavily delayed for us (about 30mins - 1h). This comes in 2 flavours: * newly started jobs do not show up in the Overview, also t...
2018/03/08
444
1,466
<issue_start>username_0: I have a table with a row "duration" of type `double` (I also tried decimal and float with same result). When I now insert a row with: ``` INSERT INTO `wp_mytable`(<...>, `duration`) VALUES (<...>, 0.5) ``` everything is entered correctly but instead of `0.5` I get `0`. And if I use `1.5` I...
2018/03/08
472
1,939
<issue_start>username_0: If I understand correctly, the ARCore does not yet take image recognition into account. Correct me if I'm wrong but, a priori, each time the sdk is coupled with another framework (eg. vuforia) or a library (eg. opencv). These technologies already make it possible to superimpose information on a...
2018/03/08
382
1,262
<issue_start>username_0: This is my code: ``` document.write(smsCount) // i want to get "1" ``` My script.js: ``` function sameer() { console.log('function working'); var smsCount = 1; } sameer(); ``` How to access variable which is located in my function name sameer.<issue_comment>username_1: Dec...
2018/03/08
1,397
4,884
<issue_start>username_0: I want to write a function to set an undefined variable to the default value that it can prevent warning of an undefined variable. If I use the `isset()` function to determine the input variable, the variable will change to the default value if a variable is equal to `NULL`. Could any method ...
2018/03/08
1,563
5,577
<issue_start>username_0: I have recently taken over a email campaign project and need to generate a report for the customer. However the data has been stored very strangely. Basically the client wants a report of the subscribers first name and last name that have subscribed to a emailing list. Example table data. `...
2018/03/08
1,038
4,060
<issue_start>username_0: The first time I open die ValueHelpDialog and chose an item there are no errors. However when I open the dialog again and click on the same entry I get the following error: > > Uncaught Error: Error: adding element with duplicate id > 'EQ5IPAKCZJMZR' > at constructor.x.registerElement (Core...
2018/03/08
599
2,355
<issue_start>username_0: i want to push the data i get from an api call in an array but this won't work: ``` export class DisplayProductComponent implements OnInit { @Input() CheckBox: string; constructor(private serverService: ServerService, private route: ActivatedRoute) { } products: any = []; id: any;...
2018/03/08
2,819
10,163
<issue_start>username_0: I have seen that there are other people having this issue as well as me, but having tried all of these solutions none of them appears to be helping. I keep getting an error saying: ``` Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3....
2018/03/08
307
919
<issue_start>username_0: I have a dataframe as below ``` text 0 hello 1 world 2 python ``` Is there any way where i can make it to ``` text 0 hello world python ```<issue_comment>username_1: Use: ``` df = pd.DataFrame([' '.join(df['text'])], columns=['text']) print (df) text 0 h...
2018/03/08
797
2,914
<issue_start>username_0: I have created a model called company and projects, I need to show projects under a company. The company is showing fine, but when I added a project relation to the model, it displays an error. I am a newbie to Laravel. > > Undefined constant 'App\App\projects' (View: > C:\xampp\htdocs\testd...
2018/03/08
598
2,323
<issue_start>username_0: I have a very specific use case. I need to start a background service that runs a web server on boot in Android 8. Can anyone recommend a way to achieve this? (In Android O). It seems that you can't start a background service on boot anymore... Is there another way of doing it? JobService or r...
2018/03/08
569
2,218
<issue_start>username_0: The input stream consists of data in JSON array of objects format. Each object has one field/key named **state** by which we need to separate the input stream, see below example Object1 -> "State":"Active" Object2 -> "State":"Idle" Object3 -> "State":"Blocked" Object4 -> "State":"Active" W...
2018/03/08
468
1,717
<issue_start>username_0: I have ``` const endTime = moment().format("HH:mm:ss"); const duration = moment.utc(request.input('duration') * 60000).format("HH:mm:ss"); ``` I want to calculate ``` startTime = endTime - duration ```<issue_comment>username_1: You need to use JobIntentService instead of regular service....
2018/03/08
1,105
4,842
<issue_start>username_0: Our application consist of 7 microservices that have some intercommunication. Currently we're using simple storage queues that a microservice publish events to (the number of events is relative low). Then we have a azurefunction for each queue that might call another microservices. This is work...
2018/03/08
1,312
4,292
<issue_start>username_0: I want to create a script that will have variables of `_user` and `_pass` to create the user in the Postgres database *only* if such login does not exist yet. I was thinking this would work, but i cant tell what is the issue: ``` DO $DO$ DECLARE _user TEXT := 'myuser'; _pass TEXT := '<PASS...
2018/03/08
1,448
4,734
<issue_start>username_0: Today I got a New Task. Which is to create a singleton class to set colour for the app according to the given value. For an example if i want to set background\_Colour, i have to achive this from following code. > > [[ ThemeManager SharedInstance] setcolor:background\_Colour] > > > But i ...
2018/03/08
461
1,857
<issue_start>username_0: When the "Add Item to the menu" button is clicked it will show "item added" which means it should be added to my firebase database, but when I check it nothing is showing meaning it was not stored. :( Here are my codes ``` public class addItem extends AppCompatActivity{ private Button btnAdd;...
2018/03/08
1,073
3,899
<issue_start>username_0: I'm trying to make a game using Classes to keep my code cleaner and more readable, but something isn't working. In the 'create' function in my `Canvas` class I define `this.ctx` and call it again in another class called `Tile`. I want to use that `this.ctx` everywhere in all classes. But in th...
2018/03/08
574
1,665
<issue_start>username_0: I would like to get the names of each decision variable after I have run my optimizing programme using Cplex in Python. I know that there is a function in Matlab for that but I can't find it for Python. Does anybody know if there is such a function? Thanks!<issue_comment>username_1: let me sh...
2018/03/08
761
2,404
<issue_start>username_0: I am trying to populate the chat messages using FirebaseListAdapter. Below is the code. ``` FirebaseListOptions options = new FirebaseListOptions.Builder() .setQuery(queryforDisplayMessages, UserChat.class) .setLayout(R.layout.chat\_user2\_item) .setLifecycleOwner(this) .build(); final...
2018/03/08
439
1,358
<issue_start>username_0: I have a character string like this ; emergency room OR emergency medicine OR cardiology I would like to add double quotes in all terms except 'OR'. So the final result should be "emergency room" OR "emergency medicine" OR "cardiology"<issue_comment>username_1: Try this code: ``` cat(paste0...
2018/03/08
641
2,127
<issue_start>username_0: I have an `UICollectionViewCell` and two buttons inside that, but the buttons not respond to touch, i create button programmatically and add that to cell by `addSubView` it works, but when i added by holder.`addSubView` not working! `UserInteractionEnabeld` of holder is true! help please ```...
2018/03/08
437
1,592
<issue_start>username_0: There is [an issue](https://github.com/objectbox/objectbox-java/issues/79) on github, but now objectbox not supports cascade deleting. Are there any other options to do this except manual removing? For example, models: ``` @Entity class User(val username: String = "") { @Id(assignable = ...
2018/03/08
165
689
<issue_start>username_0: how to recover all deleted files in git ,it has deleted all my MacBook files how to recover it<issue_comment>username_1: Currently, there's no way around doing remove cascade manually. Code your own remove methods that take care of nested classes. It's usually a good idea to do this in a single...
2018/03/08
652
2,424
<issue_start>username_0: Im getting A non-numeric value encountered in xls file when I use Auto filter ,Im using PHPExel package. My opertaing system is ubantu 16.04. Using Libreoffice to view the files. ``` My code php $objPHPExcel = new PHPExcel(); $objPHPExcel-getActiveSheet()->setCellValue('A1', 'Date'...
2018/03/08
393
1,502
<issue_start>username_0: So I'm trying to make a simple calculator. The user can only input the numbers by the buttons on the form or by the numpad. This is the code I have: ``` private void Form1_KeyDown(object sender, KeyEventArgs e) { string key = ""; switch (e.KeyCode) { ca...
2018/03/08
330
807
<issue_start>username_0: I have following variable: ``` $var="123#10.20.30.40.50" ``` I need replace dots in variable and skip `123#` substring. I expect result as: ``` echo $var 10 20 30 40 50 ```<issue_comment>username_1: ``` # Must be 'var', not '$var' for assignment var="123#10.20.30.40" echo "${var}" # Expan...
2018/03/08
563
2,255
<issue_start>username_0: I have an application which converts a mssql-db (source) to another mssql-db (target). For every table in my source i basically get all rows and make an insert for every row to my target. I run a simple query which updates the source-row to store the target-table and target-id of the records wh...
2018/03/08
212
779
<issue_start>username_0: I need to create a regex - with the following requirements starts with C, D, F, G, I, M or P has at least one underscore (\_) eg. C6352\_3 I've tried the following like this ``` @Pattern(regexp = '^(\C|\D|\F|\G|\I\|\M|\P)+\_*' , message = "error") ```<issue_comment>username_1: Can you try ...
2018/03/08
668
2,093
<issue_start>username_0: I am trying to implement an SQLite Query where I have to use a multiple 'where' clause. My code is something like this, ``` public boolean CheckForOption1(String ans1,String ans2,String ans3,String ans4) { SQLiteDatabase db = this.getReadableDatabase(); String Query = "SELECT * FROM...
2018/03/08
1,479
3,351
<issue_start>username_0: I need to create a string like this to make works the mapserver request: `filterobj = "POLYGON((507343.9 182730.8, 507560.2 182725.19999999998, 507568.60000000003 182541.1, 507307.5 182563.5, 507343.9 182730.8))";` Where the numbers are map coordinates `x` `y` of a polygon, the problem is wit...
2018/03/08
962
3,397
<issue_start>username_0: I am trying to implement download file functionality in my angular 4 app. My api returns base 64 string of the file which I download from SharePoint. I am using file-saver module to get the file downloaded. Below is the code used. ``` let byteArray = new Uint8Array(res.data) , blob = new Blo...
2018/03/08
425
1,585
<issue_start>username_0: I have created NSPredicate to search the string in my coredata. so in this case does anyone know how to save the result `[fetchRequest setPredicate:predicate];` in NSString. ``` NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name CONTAINS[cd] %@", ...
2018/03/08
476
1,783
<issue_start>username_0: I have 2 Maven projects , a library and an App , Both are built and stored as an Artifacts in TFS (2017) I would like to import project A directly from the TFS Artifacts into Project B But apparently the structure the TFS artifacts are kept and the fact they do not keep the POM.XML prevents...
2018/03/08
440
1,696
<issue_start>username_0: When I clicked on a button a new dialog box appeared in the same browser. Is it possible to switch to the dialog box in Selenium-WebDriver using Java? I found that it's not an alert or there is no iframe present in the page. As soon as the dialog box opens the parent window page is loading unt...
2018/03/08
445
1,417
<issue_start>username_0: I need to hide with jQuery a div container `hide_this_div` if a `href` contains a the keyword "gutschein". Here is a example: ```html **[Some Gutschein](index.php/kurse/kursdetails/some-gutschein)** something here ``` Thank you for your help in advance!<issue_comment>username_1: Use `a[...
2018/03/08
2,016
5,167
<issue_start>username_0: I have `Date()` properties. `startingAt` and `endingAt`. And an array of Date(), which are `alreadyRegistred`. I have to create an array of strings with dates between `startingAt` and `endingAt`. `StartingAt` and `endingAt` are included and the last requirement is to exclude `alreadyRegistred` ...
2018/03/08
2,645
7,688
<issue_start>username_0: Consider a 2D matrix of numbers from 0 to 9 with variable width and height. Find the square submatrix with the highest sum of boundary elements. Input : Input width and height of matrix: 6 8 Input Matrix with numbers from 0 to 9: ``` 2 0 6 1 2 5 1 0 5 0 1 3 3 0 1 2 4 1 0 1 3 1 1 9 4 1 ...
2018/03/08
882
3,661
<issue_start>username_0: We are being provided a set of Entity and Consumer classes. Calling the XConsumer returns an XEntity, while calling the YConsumer returns an YEntity and so on. The APIs for the Consumer classes are identical taking arguments of same type. The Consumer and Entity classes do not inherit from a ba...
2018/03/08
856
3,197
<issue_start>username_0: I'm new to SQL and trying to calculate YoY Sales over different stores with quarterly granularity. Table is as follows [![enter image description here](https://i.stack.imgur.com/nzhrs.png)](https://i.stack.imgur.com/nzhrs.png) So far I have: ``` SELECT Store_number, SUM(Sales) AS Sales_q1_20...
2018/03/08
708
2,599
<issue_start>username_0: I'm using ms-graph with SharePoint Online. I've a simple list with a single title column and 3 items. I use the following ms-graph call to filter items by title: <https://graph.microsoft.com/v1.0/sites/root:/lists/list-guid/items?expand=fields&filter=startswith(fields/Title,%27fig%27)> The r...
2018/03/08
410
1,613
<issue_start>username_0: I have one problem for calling user control from another user control my code like this : ``` public UserControl1() { InitializeComponent(); } private void commandBarButtonInsert_Click(object sender, EventArgs e) { UserControl2 usr2 = new User...
2018/03/08
683
2,050
<issue_start>username_0: I use `du` command very often. Recently, I used it to find out 5 heaviest files in root directory of my server, I used the following command: ``` sudo du -ah / | sort -nr | head -n 5 ``` Result was: ``` 1016K /var/cache/apt/archives/fonts-dejavu-core_2.35-1_all.deb 1016K /bin/bash 1008K...
2018/03/08
585
1,720
<issue_start>username_0: I have a div with a social bar at the bottom of the screen on my site but I want to display it only after the user scrolls a little and hide it once the user is about to reach the footer. So around 200px before the page ends.+ This is my div: ``` ....... ``` This is my CSS: ``` .sticky-ba...
2018/03/08
341
1,427
<issue_start>username_0: I am writing a Unity App, which connects two mobile divices using Unity Networking. One is acting as a Master (the host) and the other one as a Slave (Client). The Application should synchronously take photos from each device. For now I am using SyncVars for achieving this. Every ten frames, ...
2018/03/08
287
1,234
<issue_start>username_0: Is it possible to implement silent push notifications and normal push notifications together in one Android application using OneSignal? I have checked with silent notifications and normal notifications separately, but can't implement it together. How can I solve this issue?<issue_comment>use...
2018/03/08
572
2,016
<issue_start>username_0: I want to read from file to stream, pipe the output to a function that will upperCase the content and then write to file. This is my attempt. What am I doing wrong? ``` const fs = require('fs') const fred = q => { return q.toUpperCase() } fs.createReadStream('input.txt') .pipe(fred) ...
2018/03/08
880
2,890
<issue_start>username_0: I have three sets of data: ``` item1 = 'carrot' property1 = 'vegetable' item2 = 'apple' property2 = 'fruit' item3 = 'steak' property3 = 'meat' ``` And so on... Now I want to combine these to sets of data, that should be randomly chosen. ``` combination1 = item1 + property1 combination2 = ...
2018/03/08
1,238
4,492
<issue_start>username_0: I just updated ChromeDriver to newest version - 2.36. In previous versions I've set: ``` ChromeOptions options = new ChromeOptions(); options.addArguments("disable-infobars"); ``` and the "Chrome is being controlled by automated test software" warning bar wasn't displayed. With the ...
2018/03/08
428
1,559
<issue_start>username_0: I trying to implement 2 type of Navigation in my apps, Tab Navigation and Stack Navigation. **My Desire Output:** ![](https://i.stack.imgur.com/4xfjy.png) But so far with my code, I only able to implement one of them. ``` const App = TabNavigator({ HomeScreen: { screen: HomeScreen }, P...
2018/03/08
1,240
5,130
<issue_start>username_0: The problem is that one day we discovered that if we're saving an object in spring boot repository, another objects that are changed in the same method are also updated and persisted in the database. The curiosity is massive to find out why does this actually happen. I created sample project u...
2018/03/08
973
3,525
<issue_start>username_0: I have moved away from mysqli\_query() due to server requirements on a new project. However, I am having issues with updating some of my queries. **Connection file** ``` php define('DB_HOST', 'localhost'); define('DB_NAME', 'nj2kfa3j_sublift'); define('DB_USER', 'nj2kfa3j_web'); define('DB_PA...
2018/03/08
657
2,818
<issue_start>username_0: I need to call a API 5000 times, Presently with the current logic its happening synchronously one by one. Is there any way to call it asynchronously without actually waiting for the API response. Code Below. ``` while (true) { using (Ht...
2018/03/08
1,028
4,523
<issue_start>username_0: I am trying to make an existing website responsive using Bootstrap. The issue is that some classnames in the existing css files there are classes defined that have the same name as in the Bootstrap css files. I was curious, if there is a way to define the stylesheet to be used as a source for ...
2018/03/08
224
986
<issue_start>username_0: I'm just wondering if using parentheses in Ruby makes a program slower. I know it's common to omit them, but for me, using parentheses increases readability.<issue_comment>username_1: Most of the time spent while running a ruby program is spent executing the code after parsing has been done. Wh...
2018/03/08
1,008
3,241
<issue_start>username_0: I would like to send my Datagridview values to my Combobox in my mainform. This is my code in my Datagridview form : ``` private void EquipmentList_Load(object sender, EventArgs e) { DataTable.RowCount = 30; //Beam Description default value DataTable.Rows[0].Cells[1].Value = "8.0...
2018/03/08
843
2,722
<issue_start>username_0: Suppose I have a string as `onehhhtwominusthreehhkkseveneightjnine` Now I want to parse this string to get the numbers out of it. For Example this string should return an array, [one,two,minusthree,seven,eight,nine]. The order of the Integers should be maintained. Can anyone Please suggest an ...
2018/03/08
430
1,478
<issue_start>username_0: I have three tables: **users** (id, name) **channel** (id, name) **subscription** (user\_id, channel\_id) Now I try to implement a scope for the Channel-Model. To this scope I pass the ID of an user. As an output I want to get something like this: **Columns:** Channel ID - Channel Name - ...
2018/03/08
822
2,992
<issue_start>username_0: In my exploration of learning `OCaml` I am not understanding how to access the value stored in a record type that is being passed to a function that is in another file. My Current code: `main.ml` file ``` (* Declaring a token record type*) type 'a tokens = { error_tok : '...
2018/03/08
523
1,684
<issue_start>username_0: I have a text file with comma separated values. A sample line can be something like ``` "Joga","Bonito",7,"Machine1","Admin" ``` The " seen are part of the text and are needed when this csv gets converted back to a java object. I want to filter out some lines from this file based on s...
2018/03/08
508
1,678
<issue_start>username_0: I'm using React and Redux. I have a question. I know when I need "this" in a function I should `bind` it. But without binding my code works. Why ? Function : ``` onSubmit() { this.props.dispatch({type: 'ADD_TO_LIST', payload: this.state.inputValue}); } ``` And this is my render input : ...
2018/03/08
458
1,572
<issue_start>username_0: I would like to initialize property of object using another property of the same object which is just created using object literal: ``` var result = { a : 1, b : a }; ``` The result should be ``` { a:1, b:1 } ``` Is there any way to do this without first creating object? U...
2018/03/08
489
1,690
<issue_start>username_0: The [go-duktape](https://github.com/olebedev/go-duktape) repository has no "issues" section or anyway to ask for help. There are no useful examples in the README. I am trying to define a function in a javascript file (with parameters and return values) and call this function from go. Javascr...
2018/03/08
676
2,726
<issue_start>username_0: I have a class `A` where I deleted the default constructor. ``` class A { public: A() = delete; A(int a): m_myInt(a) {} private: const int m_myInt; }; int main () { A foo(1); // works perfect A bar; // won't compile } ``` How do I write a good unit test ensuring t...
2018/03/08
609
2,563
<issue_start>username_0: I'm transforming a Spring Boot application from Spring Boot 1 (with the Prometheus Simpleclient) to Spring Boot 2 (which uses Micrometer). I'm stumped at transforming the labels we have with Spring Boot 1 and Prometheus to concepts in Micrometer. For example (with Prometheus): ``` private sta...
2018/03/08
707
2,781
<issue_start>username_0: We already have an existing project with liquibase scripts (mysql, postgresql). Now we want to support a new database named Altibase. But when we run `liquibase:dropAll` `liquibase:update` we got: ``` [ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.5.3:dropAll (default-c...
2018/03/08
879
3,014
<issue_start>username_0: Using Vue 2.5 I'm trying to hide a component if the `esc` key is pressed. Inspired by [the documentation](https://v2.vuejs.org/v2/guide/events.html#Key-Modifiers) on key modifiers, I wrote the following code but with no effect (for the moment I'm not hiding, just displaying a message): ``` Vu...
2018/03/08
379
1,122
<issue_start>username_0: I tried installing anaconda on the Raspberry Pi using the 32 bit installer in their webpage. After finding out where the file is located I put the command ``` bash ~/Downloads/Anaconda3-5.1.0-Linux-x86.sh ``` Once the installation location was picked, I got the following error. ``` installi...
2018/03/08
602
2,507
<issue_start>username_0: I have receive the following response when trying to access an API via an ajax request in Chrome: "Failed to load <http://localhost:1880/api_resource>: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource....
2018/03/08
789
2,666
<issue_start>username_0: I am a Java programmer that is new to Python. I am having trouble understanding the syntax of the following code from the [pymodbus](https://github.com/riptideio/pymodbus/blob/4ed1f1a9750bc931c100ed24f5cc0fc032ab5f4d/pymodbus/client/common.py#L43) repo in GitHub. Where is the function defined? ...
2018/03/08
600
2,349
<issue_start>username_0: i have updated an old spring boot 1.5.3 project to spring boot 2.0.0. RELEASE. I have an auditing entity with two fields of type ZonedDateTime annotated with @CreatedBy and @LastModifiedDate. In the previous versions everything was working fine. However, with the new update, upon saving the ...
2018/03/08
832
3,273
<issue_start>username_0: I have a multi-flavor Android app because I need my dev, qa and prod applications with different IDs to connect to different Firebase projects. ``` flavorDimensions "env" productFlavors { dev { dimension "env" applicationId "com.myapp.debug" } qa { dimensio...
2018/03/08
917
3,774
<issue_start>username_0: I use hibernate 5.0.8 and spring data jpa 1.10.1 Given these entities ``` class Model { @ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE, CascadeType.REFRESH, CascadeType.DETACH}) @JoinColumn(nullable = false) private Configuration configuration; //more fields and...
2018/03/08
804
2,754
<issue_start>username_0: Strace can be used for tracing process by passing command for the process as below `strace -f -tt -o strace.log -D` But below command fails to trace the syscalls of started daemon process `strace -f -tt -o strace.log -D service nginx start` In this case the strace just traces syscall for `...
2018/03/08
568
2,322
<issue_start>username_0: i'm using react js and redux and did an authentication with jwt. I have a navbar with a dropdown. This dropdown is only visible for authenticated users. The dropdown items are dynamicly and should be loaded from a server after an user logged in. But i have no idea where i should trigger the a...
2018/03/08
1,160
3,425
<issue_start>username_0: In my application i was implemented a `SwiftyCharts` inside that i need to show the multi color based on the gender selection in `JSON` value.In my case am getting an value from json, that returns multi colors only. But i cannot show can any one please help me to fix this. Below code only used...
2018/03/08
769
2,318
<issue_start>username_0: I have tried to searched it but no specific answer. I would like to identify the string I want to use depending on the characters appears before it. What I like to do is, For example: ``` def check_if_char_appears(input_string): substring_list = ['aa', 'bb', 'dd', 'ef'] for i in subs...
2018/03/08
803
2,320
<issue_start>username_0: I did a build for a React app using `npm run-script build` and I need to run it. Using `npm run webpack` is returning an error. Excuse my being very new to React but I really need to know how to run this app. I hope you can help! My package.json: ``` { "name": "dashboard", "version": "0.1.0"...
2018/03/08
800
2,643
<issue_start>username_0: ``` $ virtualenv test $ source test/bin/activate $ pip3 install beautifulsoup4 ``` Now the script test.py ``` import urllib.request import sys import unittest, time, re import requests from bs4 import BeautifulSoup class Sel(unittest.TestCase): def setUp(self): self.base_url =...
2018/03/08
1,228
4,668
<issue_start>username_0: I have an app with `Callkit` functionality. When I press the loudspeaker button, it will flash and animate to the OFF state (sometimes the speaker is set to LOUD but the icon is still OFF). When I tap on it multiple times... it can be clearly seen that this functionality is not behaving correct...