date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/09
399
1,326
<issue_start>username_0: Why is my background-image not working? **HTML** ``` ``` **CSS** ``` .container-fluid{ background-image: url('G://etc/vvo/practice/img/bora1.jpg'); } ``` why drive G:? im practicing my coding during working hours and at home thats why the location is drive g<issue_comment>username_1:...
2018/03/09
560
1,983
<issue_start>username_0: here is my code HTML: ``` ![]({{value.Imagen}}) ``` Here is my code javascript: ``` $scope.isActive = function isActive(value){return $scope.valueSelected.Id==value.Id;} $scope.changeValue=function changeValue(value){$scope.valueSelected=value;} ``` EXPLANATION: What i'm traying to do ...
2018/03/09
392
1,420
<issue_start>username_0: I am using Kendo grid UI for Jquery Library. I have a need to do the following two things with my grid's column filter menu dropdown checkboxes: 1) Sort the checkboxes alphabetically by their value (by default the are sorted by the grid's datasource sort value). 2) Filter all other column's ...
2018/03/09
1,051
3,097
<issue_start>username_0: This is an example as mentioned in the TypeScript handbook [here](https://www.typescriptlang.org/docs/handbook/interfaces.html) - > > Hybrid Types > > > As we mentioned earlier, interfaces can describe the rich types > present in real world JavaScript. Because of JavaScript’s dynamic and ...
2018/03/09
1,005
4,033
<issue_start>username_0: I am new to Android development and trying to setup Jenkins to automate build generation on my mac machine. When I run the Jenkins build it is not generating any apk at jenkins workspace. I am gradle wrapper and 'gradlew assembleDebug' command but it give error that " 'assembleDebug' Task not f...
2018/03/09
2,491
9,250
<issue_start>username_0: ``` import java.io.*; import java.util.*; public class ESPInterpreter { private Variable [] variable_table; private String error; private int Line; public ESPInterpreter() { variable_table = new Variable['{']; for (int i = 0; i < '{'; i++) { variable_table[ i ] = new Var...
2018/03/09
1,362
3,188
<issue_start>username_0: I have a time-series data as below: ``` print(df) ric datel timel val 0 xyz 2017-01-01 09:00:00 2 1 xyz 2017-01-01 09:04:00 5 2 xyz 2017-01-01 09:37:00 6 ``` Now I have to fill missing timestamps upto `09:45:00`. Expected Output: ``` ...
2018/03/09
536
2,043
<issue_start>username_0: I have written code for creating roles in laravel i am using spatie package when i try to create new role then it gives exception like Spatie \ Permission \ Exceptions \ RoleDoesNotExist I know its generating because role does not exists, i dont know how to handle exception in laravel. also ...
2018/03/09
696
2,171
<issue_start>username_0: I am new to Scala and stuck on a trivial issue. I tried innerArray.\_1 and innerArray(1) to access the first element in array, unfortunately it doesn't work.<issue_comment>username_1: ``` // define an array scala> val a = Array(("a", Array("b"))) a: Array[(String, Array[String])] = Array((a,Arr...
2018/03/09
1,987
6,989
<issue_start>username_0: I read ["Why and how to bind methods in your React component classes?"](http://reactkungfu.com/2015/07/why-and-how-to-bind-methods-in-your-react-component-classes/) and grabbed the basic idea of how different is `this` by the scopes it gets called. I made a simple class to test this. ``` clas...
2018/03/09
1,784
6,375
<issue_start>username_0: How to check what version of openCV is compatible with a particular version of numpy? I am using python 2.7.5 and installed numpy 1.7.1 on windows 7. As i am working under firewall and I don't have any access to any proxy, hence I cant use pip or any windows provided packages like anaconda or ...
2018/03/09
2,010
7,323
<issue_start>username_0: Please have a look at this code sample taken from overridden `onTouchEvent` of a `View`, ``` @Override public boolean onTouchEvent(MotionEvent event) { float eventX = event.getX(); float eventY = event.getY(); switch (event.getAction()) { case MotionEvent.ACTION_DOWN...
2018/03/09
294
863
<issue_start>username_0: ``` $ nc -l -p 80 $ fuser -k 80/tcp ``` This command `nc -l -p 80` will be waiting response from other terminal, I need to kill that process by running `fuser -k 80/tcp` in other terminal. How can i achieve this in single script?<issue_comment>username_1: I have never tried this myself, bu...
2018/03/09
1,066
2,761
<issue_start>username_0: I have the following dictionary: ``` {'Atlanta': [['Bear', 34274], ['Deer', 13747], ['Bee', 83743]], 'New York': [['Bear', 987], ['Dove', 2635]]} ``` A key that has a list as a value that contains lists with pairs of Animals and a number. Now I want that if a Animal exists in of of the k...
2018/03/09
1,028
2,881
<issue_start>username_0: I have a puppet module which generates a number of files based on an array passed ``` define writeFile{ file { "/tmp/test.$name.conf": ensure => file, content => template($testmodule::my_config_template), } } writeFile{$testmodule::ids:} ``` the value of $testmodule::ids: is any...
2018/03/09
1,020
3,002
<issue_start>username_0: I have fragmentA on my backstack and fragmentB on the screen. I want to replace fragmentB with fragmentC so that when user pressed back, we go back to fragmentA. This is how I am replacing fragmentB with fragmentC ``` final FragmentTransaction transaction = getSupportFragmentManager().begi...
2018/03/09
893
2,372
<issue_start>username_0: I'm using Magento 2.1.7 and Algolia Magento 2 extension 1.6.0 We update stock and price of all products in the night directly. How can I force re-index all my products to Algolia? Also, how can I force re-index single product to Algolia?<issue_comment>username_1: Find all animal names first:...
2018/03/09
477
1,476
<issue_start>username_0: I want to plot several lines in a figure. All points of each line aren't available at the beginning, they become available gradually. [I want to plot something like this](https://i.stack.imgur.com/JvjS9.png) Whole points for each line aren't available at the beginning, for example at t=3 poi...
2018/03/09
672
2,143
<issue_start>username_0: I am trying to use the variable declared in the for statement in order to cycle through my array. Is this the correct way of doing this? For example: ``` for(int i = 0; i < 4; i++){ someArray.add(anotherArray.get(i) } ``` I want to add the objects from anotherArray to someArray starting ...
2018/03/09
431
1,381
<issue_start>username_0: I have installed vscode to run Python. The programs shows the output in the output window but refuses to take any input, such as if the user is to feed in his/her name, nothing is displayed what is being typed in. As for example, in the below program: ``` name = input("What's your name? ") pri...
2018/03/09
216
759
<issue_start>username_0: I have created a web service to send a ZIP file as output. I use POST method in the request (send file as input). How do I download a file in the Postman tool? I get the response like this (content of ZIP file in text): > > `PK` > > > I need the file to be saved.<issue_comment>username_...
2018/03/09
266
1,008
<issue_start>username_0: here is the view, which I want to give bottom margin programmatically ``` /> ```<issue_comment>username_1: ``` RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT); layoutParams.setMargi...
2018/03/09
741
2,508
<issue_start>username_0: I am using below piece of code to read a csv file and list its value in comma separated format ,but I am even getting comma after last value which is not required. ``` String strFile = "C:\\Users\\msudhera\\Desktop\\data.csv"; BufferedReader br = null; dto data = new dto(); String nextLine =...
2018/03/09
772
2,858
<issue_start>username_0: I'm trying to query my database for a set of values, but instead of obtaining the values themselves, I want the product of the value and the value of another document (with different requirements) closest in date. Here's how I'm currently doing it with `n + 1` queries: ``` Model.find({ user:...
2018/03/09
621
2,142
<issue_start>username_0: I need to get both min and max values of two separate columns with their unique primary key id value. Anyone ready to help me? Thanks in advance! ``` select ID as ID, min(FROMTIME) as FROMTIME,ID as ID,max(TOTIME) as TOTIME,sum(DIFFERENCE_TIME) as DIFFERENCE_TIME from ( select Perso...
2018/03/09
348
1,241
<issue_start>username_0: We have scenario where user cannot entered 15 continue numeric digits(i.e 411111111111111) in text box, so we have validate it using data annotations in mvc?<issue_comment>username_1: If the textbox isn't multiline, try setting its MaxLength property: ``` ``` Edit: Since your maxlength is 50...
2018/03/09
463
1,844
<issue_start>username_0: I'm working on an Android application which has dagger dependencies. When injecting class through constructor injection it's throwing an error that it cannot find symbol. If I provide the dependency through an `@Provides` method defined inside a module, everything works fine. The code: ``` ...
2018/03/09
401
1,376
<issue_start>username_0: I am developing an android app. I am using `Fragment` and `RecyclerView`. In my screen have `SearchView`, header, `RecyclerView` and a `Button`. I want the screen like I have shown below image. [![enter image description here](https://i.stack.imgur.com/7H8j4.png)](https://i.stack.imgur.com/7H8...
2018/03/09
741
2,380
<issue_start>username_0: I would like to remove some OLD order data in Woocommerce, keeping only the last 12 months of order data This is the SQL query that I use to remove ALL orders: ``` DELETE FROM wp_woocommerce_order_itemmeta DELETE FROM wp_woocommerce_order_items DELETE FROM wp_comments WHERE comment_type = 'or...
2018/03/09
418
1,618
<issue_start>username_0: I'm currently working on a temporary "under construction" page for my website, where the content would scroll within a full-height box on the `body` element set in 100vh surrounded by margins to give a "page border"-like effect. However, when testing on Mobile Safari, I find that the bottom bo...
2018/03/09
866
3,006
<issue_start>username_0: How to set timeout for all requests and if timedout then respond with custom json? I tried to use: ``` import * as timeout from 'connect-timeout'; import { NestFactory } from '@nestjs/core'; import { ApplicationModule } from './app.module'; const port = process.env.PORT || 3020; async func...
2018/03/09
371
1,127
<issue_start>username_0: I get response from API and below is screen-shot of console.log. I need `CategoryName` (highlighted in screen-shot) from console.log. [![enter image description here](https://i.stack.imgur.com/bXgbF.png)](https://i.stack.imgur.com/bXgbF.png) This is my code: > > .then((res2) => res2.data) >...
2018/03/09
1,998
6,871
<issue_start>username_0: I have the following Json file: ``` { "type": "FeatureCollection", "crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } }, "features": [ { "type": "Feature", "properties": { "PARK_ID": 393, "FACILITYID": 26249, "coordinates": [ -75.73, 45.34 ] } }, { "type": "Fea...
2018/03/09
1,283
3,898
<issue_start>username_0: I am a bit new to javascript ES6, and I am having difficulty understanding why the below is not functioning as expected: ``` let check = [{name: 'trent'},{name: 'jason'}].includes({name: 'trent'}); // expect true - returns false ``` Thanks!<issue_comment>username_1: It doesn't work because ...
2018/03/09
564
1,724
<issue_start>username_0: I'm making a CSS based burger menu button, and I noticed that the bars are **vertically centered** by default. Inspecting and playing around with **the bars'** margin keeps the elements **vertically centered**. But if I try the same code and replace the with a , it's no more vertically alig...
2018/03/09
306
929
<issue_start>username_0: I would like to know if there is an angularjs datepicker or other that can do the following: 1. Pick date and time. 2. Pick day and time. 3. Pick only time. Thanks<issue_comment>username_1: This piece of code does the trick ``` .toggle-btn .bar + .bar { margin-top: 5px; } ``` It adds a `...
2018/03/09
1,014
4,914
<issue_start>username_0: How can I verify the password in alertdialog box before doing the next tasks? ``` @Override public void onClick(View v) { switch (v.getId()) { case R.id.insert_btn: new Thread(new Runnable() { @Override public void...
2018/03/09
757
3,492
<issue_start>username_0: ``` Ticket Details ``` I have to repeat the above code with incrementing the id how should I do that by using this code: ``` $("#button-1").click(function() { $("#content-1").toggle("slide"); }); ```<issue_comment>username_1: Try with below code : **REFERENCE CODE HERE :** ``` build...
2018/03/09
348
1,585
<issue_start>username_0: I wanted to know how does Kafka use open file descriptors. Why is it recommended to have a large number of open file descriptor. Does it impact Producer and Consumer throughput.<issue_comment>username_1: Brokers create and maintain file handles for each log segment files and network connections...
2018/03/09
1,691
5,807
<issue_start>username_0: I want to do a member function that will call every X seconds. I did a little prototype that can handle non member function, but I don't know if I did it well, and I can't handle both member function and non member function. I have an `Event` object, which handle the function and the delay, wi...
2018/03/09
1,022
3,488
<issue_start>username_0: From example [where-col-in example](https://github.com/vitaly-t/pg-promise/wiki/Learn-by-Example#where-col-in-values) and [this answer](https://stackoverflow.com/a/36847936/3563619), `WHERE IN` clauses should have query with parameters with following syntax ``` const response = await db.any('S...
2018/03/09
599
2,191
<issue_start>username_0: i am trying to add a custom tool bar this is my toolbar.xml ``` xml version="1.0" encoding="utf-8"? ``` this is my style ``` <!-- Customize your theme here. --> <item name="colorPrimary">@color/colorPrimary</item> <item name="colorPrimaryDark">@color/colorPrimaryDark</item> <item nam...
2018/03/09
1,782
6,054
<issue_start>username_0: I am trying to log events of a Java application to separate log files based on a key set to the ThreadContext. But my key is not reaching the child thread (created on MouseEvent) even after setting "log4j2.isThreadContextMapInheritable" to "true" in system properties. Someone please help me to ...
2018/03/09
642
2,244
<issue_start>username_0: I'm having a problem on trying to properly resize a UIView. sample scenario below: ``` // other view controller initializations let containerView = UIView(frame: CGRect(x:0, y:0, width: self.view.bounds.width, height: self.view.bounds.height)) self.view.addSubview(containerView) view.autores...
2018/03/09
774
2,637
<issue_start>username_0: I am trying to call a function inside the user script using `onclick()` event . I have successfully called using this method in my first attempt . but i didn't succeed in second method . **Method 1 (working) :** ``` function useradd(username) { layout.innerHTML = ""; var name = "xyz"...
2018/03/09
1,065
2,759
<issue_start>username_0: I'm a beginner for deep-learning world. That's why I'm testing sample code for classifying image. However, I got error message like as MemoryError soon after executing train.py. This sample code is from below URL. <https://medium.com/@ageitgey/machine-learning-is-fun-part-3-deep-learning-and...
2018/03/09
1,909
6,106
<issue_start>username_0: **Versions** * **Python** : 2.7.14 * **six** : 1.9.0 & 1.11.0(*tried on both*) * **OS** : mac(10.13.3) & ubuntu(16.04) [*tried on both*] **Error** > > from six.moves import http\_client > > ImportError: No module named moves > > > **Description** In flask application which is ru...
2018/03/09
503
1,957
<issue_start>username_0: I am new to Angular 2+ and having trouble in basic form submit. Though I am using Angular, I want to know how I can just submit a form using submit button. The Trivial way of submission. ``` ``` Even after clicking the submit button I cannot see browser trying to communicate with the server...
2018/03/09
2,791
6,099
<issue_start>username_0: ``` index = np.array([[1,2],[2,4],[1,5],[5,6]]) z = np.zeros(shape = [4,10], dtype = np.float32) ``` What is the efficient way to set `z[np.arange(4),index[:,0]]`, `z[np.arange(4), index[:,1]]` and everything between them as 1? expected output: ``` array([[0, 1, 1, 0, 0, 0, 0, 0, 0, 0], ...
2018/03/09
859
3,064
<issue_start>username_0: Facing Problem on getting Response in ArrayList. I have following Respose on String value ``` var res_message: String = "" res_message = "${result.vehicletypes} " ``` Getting below Value on this String ``` [VehicleType(_id=1, vehicleType=Hatchback, __v=0), VehicleType(_id=2...
2018/03/09
421
1,609
<issue_start>username_0: I am working on a project that has previously been done by some other person, I have copied all the server files in C:\wamp\www and then i started wampserver and clicked localhost it opened the window shown in image i have uploaded ,now it requires a password and login. [local host window imag...
2018/03/09
299
1,072
<issue_start>username_0: ### Imagine the following (**fictional**) situation: You have a table with only one column `id` that is the primary key, autoincremented by using a typical sequence + trigger combination. --- How would you create a new row there as you have to specify the values keyword for the insert query?...
2018/03/09
556
1,480
<issue_start>username_0: The script is as below: ``` a=`sed '/^project_folder=/!d;s/.*=//' conf.ini | tr -d '\r'` b=`sed '/^version.versionLicense=/!d;s/.*=//' conf.properties` path=${a}/${b}/env/123456/bin echo $path ``` the content of conf.ini is `project_folder=/data/AUTO-PUBLISH/iPEMS_01` the content of conf.p...
2018/03/09
521
2,026
<issue_start>username_0: I have tried many times to store the exact date which I have selected. But when saving, it will take the previous date. I have tested in many ways, the angular file will pass the same selected date. When the sql query is executed, then it will take the incorrect date. can anyone please help me ...
2018/03/09
974
3,820
<issue_start>username_0: I am trying to share the username across my fixed blade which I am extending in other views. I am using the controller to verify my users and thereby passing the data to the views. However, I get an error saying ``` Undefined variable: username (View: E:\LaravelProjects\adminLTE\resources\vi...
2018/03/09
932
3,586
<issue_start>username_0: I try to fetch data from mySQL based on the 'Type' selected on Picker and update the ListView with the fetched data. So, I specify everything when the Picker's onValueChange will call the componentDidMount() function to fetch new data and update the ListView. The problem is, when I select Type...
2018/03/09
1,021
3,847
<issue_start>username_0: I have a method that needs to accept a Enum class. These enums implement an interface. Now I need access to both Enum methods like ordinal(), name(), etc and my interface methods. What I've tried: ``` public void showEnabledFeatures(Class enumType, long mask) { List list = Arrays.asList(enum...
2018/03/09
994
3,633
<issue_start>username_0: While executing testcases the characters are getting typed very slow. I am using Windows10 + Selenium 2.39 + IE 11 + IEDriverServer(64bit), tried replacing it with 32 bit also but to no avail.All security zones setting are checked and have tried all available resources online.Any solutions or s...
2018/03/09
781
2,844
<issue_start>username_0: I tried to do a form application and I have a problem about use StreamReader feature. in StreamWriter feature, I did it but StreamReader just read the last line and The txt file contains, in many rows for example: names and phone numbers but like I said the code read last line ``` private ...
2018/03/09
480
1,401
<issue_start>username_0: I am doing like this: ``` ![]() .myimg{ content:url('/images/user_logo.png') center no-repeat; } ``` But the image is not getting displayed. I want to achieve it without using background image<issue_comment>username_1: Use `background-image` for that: ``` .myimg{ background-image: url(...
2018/03/09
1,006
3,483
<issue_start>username_0: i have this 5 auto generated button from jquery and when you hover the button the image opacity filter changes: but just the first button has the successful running function all of the others don't. how could I make the other generated buttons has the same effect too? here's my attempt: ``` ...
2018/03/09
617
1,945
<issue_start>username_0: Assume we have a 3D grid that spans some 3D space. This grid is made out of cubes, the cubes need not have integer length, they can have any possible floating point length. Our goal is, given a point and a direction, to check linearly each cube in our path once and exactly once. So if this wa...
2018/03/09
859
3,150
<issue_start>username_0: I am the beginner on unity, I want to print an image directly to connected default printer without preview. I am using this code for print but it takes the preview ``` using System; using System.Collections; using System.Collections.Generic; using UnityEngine; public class PrintImage : MonoB...
2018/03/09
583
1,931
<issue_start>username_0: I'm very new in ionic, I'm trying to hide second dropdown based on selection of first dropdown. My first DropDown 1.Bank 2.Cash When i select Bank Second DropDown will be hidden and when select Cash then it will show second DropDown. .html file ``` Payment Mode {{paymentmode}} Payment L...
2018/03/09
427
1,514
<issue_start>username_0: ``` payload = [ { "Beds:": "3" }, { "Baths:": "2.0" }, { "Sqft:": "1,260" }, ] ``` How would I have such list be like: ```...
2018/03/09
643
1,887
<issue_start>username_0: I want to include script only on certain time from **7:00AM** US time and turn off at **1:00PM** . This is what I have: ``` date_default_timezone_set( 'America/New_York' ); $time = date( 'H' ); ?> console.log('<?php echo $time; ?>'); php if($time = 07 && $time <= 01) : ?> alert("That work...
2018/03/09
786
2,165
<issue_start>username_0: Currently, i have a list and a table both containing: ``` data = [97,89,43] table = [[1, 97],[2, 89],[3, 102],[4, 12],[5, 43]] ``` and i want to print the values in data together with the first column value associated in the table. Output: ``` 1 : 97 2 : 89 5 : 43 ``` I have attempted: `...
2018/03/09
581
1,859
<issue_start>username_0: I have a set of 137 text files and each file has data in the format name, sex, number of births. Each file has the year name appended to its name, e.g. 'yob1881.txt' I want to data from these 137 files and append them into a dataframe and in the process add a new column for year. This is wha...
2018/03/09
363
1,372
<issue_start>username_0: Mongo aggregation framework has some [changes in version 3.6](https://docs.mongodb.com/manual/reference/command/aggregate/) Earlier aggregation queries with monger are not working even when we pass *:cursor {}* as an option. Is there any workaround or do we have to wait for the next monger rele...
2018/03/09
362
1,303
<issue_start>username_0: I have the following environment on my php container like so: ``` DATABASE_URL:mysql://root:${MYSQL_ROOT_PASSWORD}@db:3306/${MYSQL_DATABASE} ``` I tried to echo it inside my container, and do a db migration. All is good. Now I used it on my .env file on symfony like so: ``` DATABASE_URL=${D...
2018/03/09
411
1,642
<issue_start>username_0: I have an application which sends notification for multiple users at a time(not all user). So how to do this using Firebase Push Notification?<issue_comment>username_1: To send notification to multiple users, you need to register the users a single `topic` example topic called `Weather`, then a...
2018/03/09
528
2,016
<issue_start>username_0: I have several textboxes in Word and I want to calculate the mean and print this mean in another textbox. The values are numeric. My previous code is working fine, but only if no values get deleted or changed. Is there a more flexible mean function in VBA that always updates automatically if a...
2018/03/09
2,431
5,562
<issue_start>username_0: I have a use case to minus two dataframes . So i have used the dataframe except() method. This is working fine locally on smaller set of data. But when I ran over AWS S3 bucket ,the except() method is not making minus as expected . Is there anything needs to be taken care on distributed envi...
2018/03/09
1,347
4,007
<issue_start>username_0: I'm looking for a rails function that could return the number to the nearest power of ten(10,100,1000), and also need to support number between 0 and 1 (0.1, 0.01, 0.001): ``` round(9) = 10 round(19) = 10 round(79) = 100 round(812.12) = 1000 round(0.0321) = 0.01 round(0.0921) = 0.1 ...
2018/03/09
703
2,187
<issue_start>username_0: If n is 3, then the sequence "ATATATATAG" contains 4x "ATA", 3x "TAT" and 1x "TAG". The proportion is thus 4/8=0.5. The higher this number, the more repetitive the sequence. Write a function `simple(s,n)` where `s` is a sequence and `n` is the length of the k-mer to consider. The function shou...
2018/03/09
283
802
<issue_start>username_0: I would like to know the regex for not allowing string like ``` **Test ``` but string like ``` *test, test,123, ``` is allowed. So basically start with 2 Asterix(\*) is not allowed rest everything is allowed. I have tried following regex expression `[^(\*{2})].* [^(\*\*)].* [^(\*\*)$...
2018/03/09
1,327
3,506
<issue_start>username_0: I want to add a scroll bar when the html table body overflows.I do not want to scroll the table header. I have these html and css codes in my oracle apex page **HTML** ``` | Code | Head | | --- | --- | | 5198 | SUSPENCE | | 1308 | SHARE IN KNR | | 4803 | ONE TIME | | 6021 | NEETHI G...
2018/03/09
1,265
5,012
<issue_start>username_0: I am puzzled because It is just a simple thing but doesn't work. This is my checked list before write question at here. 1. UICollectionViewDelegate is registered 2. There is nothing on above than UICollectionView from "Debug View Hierarchy" 3. `isUserInteractionEnabled` of UICollectionView an...
2018/03/09
1,152
4,447
<issue_start>username_0: I'm trying to figure out how to test access to a SharePoint URL with something simple and without the need to install anything extra. Normal win10 environment, no admin rights. I had som code experience but not recently. Short snip of what I have..: ``` :MENU ECHO Text text text ECHO Menu ...
2018/03/09
1,125
4,357
<issue_start>username_0: So i have build a REST Client that returns JSON response. However, i have an issue, where the JSON output is not exactly what i need: Current Response: ``` { "output": { "status": "Device 'Test' does not exist", "result": "null", "response": { "output": ...
2018/03/09
779
2,621
<issue_start>username_0: This is my html markup: ``` Add to cart Add to cart Add to cart ``` And this is my javascript object: ``` var cart = { 'add': function(product_id) { //What I want console.log(element_that_was_clicked.attr('class')); } } ``` Is there a way to detect which `a` called `cart.a...
2018/03/09
606
2,357
<issue_start>username_0: I'm having strange issue where I am creating a new object which contains a parameter for another object (paramObj) I use through my function. So, paramObj is used in an object constructor, but it ends up being altered after the constructor is called. Since C# is pass by value, I'm not sure why ...
2018/03/09
1,483
5,425
<issue_start>username_0: I have a parser in a shell script: Here is the input file to parse from (input.txt): ``` input.txt: system.switch_cpus.commit.swp_count 0 # Number of s/w prefetches committed system.switch_cpus.commit.refs 2682887 # ...
2018/03/09
484
2,065
<issue_start>username_0: I want to know if it's possible to know whether wear device is on hand or not. I need to run a service who take pulse only when it's on hand, then if it's not, then it should stop service and start it again when it's on hand.<issue_comment>username_1: You can try using heart rate sensor ``` pu...
2018/03/09
146
633
<issue_start>username_0: I added the new screenshots for updated version . My App update was approved yesterday . The new screenshot is showing on my itunes account but not in the App store .<issue_comment>username_1: I'm having a similar issue but when I view them in "View All Sizes in Media Manager" I can see old scr...
2018/03/09
582
1,951
<issue_start>username_0: I have the following jobs configuration in `.gitlab-ci.yml`: ``` job1: stage: test services: - name: mariadb alias: mysql entrypoint: [""] command: [...] script: - ... job2: stage: test services: - name: mariadb alias: mysql entrypoint: [""...
2018/03/09
518
1,665
<issue_start>username_0: I have: ``` RewriteRule ^([a-z0-9-]{29,}+).php?$ _content.php?_p1=$1 [QSA,L] ``` Instead of the parameter being a minimum of 29, Is there a way we can replace this to have the condition where it matches those with the minimum occurrence of 3 hyphens (-)? '-' minimum 3 per url... ?<issue_com...
2018/03/09
843
2,946
<issue_start>username_0: I need to populate a blade format tag. I'm aware of the `Model::pluck('column1', 'column2')` method to populate a select tag. But in my case, I have to concatenate two columns , and get the id. something like `Model::pluck('column_1 && column_2', 'id')` Is it possible like that ? If yes, w...
2018/03/09
550
1,798
<issue_start>username_0: In this code, you type in a number and it tells you whether or not it's prime by returning 0 or 1. It should then print either item 0 or 1 of the array 'prime'. However, I am having problems with this and I don't know how to workaround the list problems. (I'm completely new to C) ``` #include ...
2018/03/09
1,241
3,096
<issue_start>username_0: i am just a beginner so please dont mind.. i am looking for this answer, if score in score list is above 60 it should say pass or else fail, i really no getting how to implement it ``` {'steve': [22, 55, 'fail'], 'saul': [59, 85, 'pass'], 'paul': [28, 59, 'fail'], 'chimpy': [5, 60, 'pass']} ...
2018/03/09
799
2,408
<issue_start>username_0: How do I make array of object value into object property? I want to turn this ``` const array = [ { "age_group": [ { "range": "0-20", "total_count": 100 }, { "range": "21-30", "total_count": 200 }, ], "machine": { "nam...
2018/03/09
491
1,824
<issue_start>username_0: I have a situation where I open `SearchActivity` and I want to have cursor in `SearchView` (keeping focus) while not showing keyboard at first. When and ONLY when user presses `SearchView` I want to show keyboard (cursor should be intact)<issue_comment>username_1: Add this line in `Manifest` in...
2018/03/09
697
2,443
<issue_start>username_0: I use the onkeyup function and the result as in the picture [![enter image description here](https://i.stack.imgur.com/47z6I.png)](https://i.stack.imgur.com/47z6I.png) ``` function DES1(val){ var a = document.getElementById(val.id).value var inputs = document.q...
2018/03/09
540
1,879
<issue_start>username_0: ``` CREATE SEQUENCE SAS.SEQUENCE START WITH 7000000000 INCREMENT BY 1 MINVALUE 7000000000 NO MAXVALUE NO CYCLE NOCACHE; ``` I get the this error SQL0846N Invalid specification of an identity column or sequence object "SEQUENCE" "SAS.SEQUENCE". Reason code = "2". SQLSTATE=42815<i...
2018/03/09
353
1,329
<issue_start>username_0: please i try running this code, but i do have ActiveModel::ForbiddenAttributesError in UsersController#create error, how can i fix it please ``` class UsersController < ApplicationController def show @user = User.find(params[:id]) #debuger end def agent_signup @user = User....
2018/03/09
861
2,800
<issue_start>username_0: I am going to create a collapsable nested panel with some data. But I fail to collapse it. I am using `jQuery 1.11.1` `bootstrap 3.3.7`.I have inserted almost the whole code in order to make it more understandable. I am guessing it is due to `.closest();` function fails to find the object in ne...
2018/03/09
438
1,684
<issue_start>username_0: I have displayed few column data in view using setColumns method like this: ``` $this->crud->setColumns([ (['name'=>'expire_date','lable'=>'Expire Date']), (['name'=>'username','lable'=>'User']), (['name'=>'prize_id','lable'=>'Prize'...
2018/03/09
389
1,056
<issue_start>username_0: var myObj; ``` myObj = [{ "name":"John", "age":30, "car":"maruti" },{ "name":"Smith", "age":50, "car":"indica" }]; ``` I want to get json ``` [{ "name":"", "age":, "car":"" },{ "name":"", "age":, "car":"" }]; ``` please solve this problem<issue_comment>username_1: Just use `map` and ...
2018/03/09
2,047
6,540
<issue_start>username_0: I am trying to write a recursive function in C, Given an array, size of the array as well as the element int target, I want to find the index of int target's last occurence. ``` #include int rLookupAr(int array[], int size, int target); int main() { int numArray[80]; int target, i, size; ...
2018/03/09
370
1,482
<issue_start>username_0: I'm trying to copy data from a database and place it in S3 using nifi. I'm able to copy the data from database and place it in S3. Now I'm trying to add error handling for this flow. I just added the PutEmail processor for error notification. I just gave a wrong bucket name to validate the Emai...