date
stringlengths
10
10
nb_tokens
int64
60
629k
text_size
int64
234
1.02M
content
stringlengths
234
1.02M
2018/03/15
803
2,526
<issue_start>username_0: I'm writing a PPM file writer. The file format description can be found [here](https://en.wikipedia.org/wiki/Netpbm_format). I want to write the file in binary format, which is the `P6` type. > > The P6 binary format of the same image represents each color component of each pixel with one byt...
2018/03/15
507
1,893
<issue_start>username_0: I have 40 database attached to my MS SQL Server 2014 Instance. I need to create a new user with Read-Only access to 1 database only. He can't even see the names of databases attached to my instance. I have already applied a solution i found at <https://stackoverflow.com/a/10219004/4728323> But...
2018/03/15
549
1,855
<issue_start>username_0: With following script I'd like to add a group to an AD user, but it doesn't do it, and I get no error. ``` param($Userid,$AdditionalGroup) # Get user $User = Get-ADUser ` -Filter "SamAccountName -eq $Userid" # Add comment Add-ADGroupMember ` -Identity $AdditionalGroup ` -Members ...
2018/03/15
1,093
3,374
<issue_start>username_0: [Screensnot of my project folder](https://i.stack.imgur.com/AdIiz.png) can any please help me to start a new simple project in Sublime.. this is my index.js ``` import React, {Component} from 'react'; import ReactDOM from 'react-dom'; class Blog extends Component { render(){ const sideb...
2018/03/15
488
1,771
<issue_start>username_0: Actually I am trying to launch the AVD emulator in Android Studio. The Problem: "Intel HAXM is required to run this AVD". I know that this is a common problem, however none of the existing answers I found could solve my problem: * I enabled "Intel Virtualization Technology" in the BIOS * VT-d...
2018/03/15
1,680
6,361
<issue_start>username_0: C# I searched but couldn't find the specific situation I find myself in. How do I call a method in one class from another class? ``` public class Box { public double length; // Length of a box public double breadth; // Breadth of a box public double height; // Height of a box ...
2018/03/15
1,494
5,363
<issue_start>username_0: I try to run an SQL query: ``` SELECT (SELECT SUM(fldAmount) FROM tblSession s LEFT JOIN tblTransMain m ON s.fldStore = m.fldStore AND s.fldSessionID = m.fldSessionID LEFT JOIN tblTransPayments t ON m.fldStore = t.fldStore AND m.fldSequence = t.fldSequence WHERE s.f...
2018/03/15
1,333
2,751
<issue_start>username_0: I have a simple js program. It creates a tile based map for a game. The entire canvas is colored green but it should not happen. Grids on the canvas should be colored based on if their cell is `0` or `1` ```js var tileW = 40, tileH = 40; var mapW = 10, mapH = 10; var gameMap =...
2018/03/15
242
731
<issue_start>username_0: I'm trying to convert values from character to numeric, but R introduces NAs. I have examined one of the problematic values: ``` > x [1] "11 914 711.5" > length(x) [1] 1 > typeof(x) [1] "character" > as.numeric(x) [1] NA Warning message: NAs introduced by coercion ``` Does anybody have any ...
2018/03/15
248
806
<issue_start>username_0: I'm having a question on my following code. When it's declaring the function get\_name() in the class, what would be the purpose of putting the const in front of it. And what will happen if I take it off? ``` class College { string name; const string get_name() { return name; } void set_n...
2018/03/15
438
1,752
<issue_start>username_0: I've got a DAG that's scheduled to run daily. In most scenarios, the scheduler would trigger this job as soon as the `execution_date` is complete, i.e., the next day. However, due to upstream delays, I only want to kick off the dag run for the `execution_date` three days after `execution_date`....
2018/03/15
1,261
4,468
<issue_start>username_0: Brief information image, what my code do: [![enter image description here](https://i.stack.imgur.com/vHqFo.png)](https://i.stack.imgur.com/vHqFo.png) And this is my code: ``` private void CheckObjectAttackPoints(Point AttackPoint){ Point ObjectAttackPoint = AttackPoint; ObjectAttackPo...
2018/03/15
872
2,448
<issue_start>username_0: I am working in a e-commerce application,In this I want to achieve the task mentioned below... [![enter image description here](https://i.stack.imgur.com/sYoG8.png)](https://i.stack.imgur.com/sYoG8.png) When I hover on smaller images,I need to show the respective images on the big box. In th...
2018/03/15
791
2,660
<issue_start>username_0: We have a legacy codebase where rubocop reports some of these errors which I never could wrap my head around: > > Don't extend an instance initialized by `Struct.new`. > Extending it introduces a superfluous class level and may also introduce > weird errors if the file is required multiple ...
2018/03/15
940
2,761
<issue_start>username_0: I am using Windows 10. I am unable to configure Visual Studio 2017 to run basic Gstreamer tutorials. I am getting errors like 'cannot open gst/gst.h'. I am using gstreamer 1.0. Please help.<issue_comment>username_1: Hello my friend. First of you need to download the library from <https://...
2018/03/15
980
3,094
<issue_start>username_0: I created a mySQL database with phpMyAdmin in my local server. In this database I store the names and the favourite NBA teams of my friends.This is obviously a many-to-many relationship. For this reason, I run the followed script in MySQL to create the appropriate tables for this database: ```...
2018/03/15
468
1,802
<issue_start>username_0: this is how i put my emitter: ``` func addParticle(at: CGPoint) { let emitter = SKEmitterNode(fileNamed: "hit.sks") emitter?.position = at emitter?.zPosition = 10 scene.addChild(emitter!) scene.run(SKAction.wait(forDuration: 1), completion: { ...
2018/03/15
314
1,010
<issue_start>username_0: Hello I would like to fill gradually span elements with values of array. Can you help me please? ``` var array=["apple","banana","cucumber"]; $("span.gt").each(function(){ $(this).text(array[?]); }); ``` Output should look like this: ``` apple banana cucumber ```<issue_comment>userna...
2018/03/15
1,312
4,914
<issue_start>username_0: While working with large codebase for legacy applications, whenever I have seen a piece of code that checks whether an internet connection is active or not, I have mostly seen the uses of functions such as: ``` InternetCheckConnection(L"http://www.google.com",FLAG_ICC_FORCE_CONNECTION,0) //or ...
2018/03/15
1,175
4,581
<issue_start>username_0: I wanted to add a generic create form for every model in my app. After repeating the same few lines over and over only changing the model name the DRY principle called out to me. I came up with the following method to dynamically add a form, view, and route for each model in my app. **forms.py...
2018/03/15
643
2,543
<issue_start>username_0: I have database like this: **database** ![](https://i.stack.imgur.com/n7OUL.png) Can you help me to print **teamRegion** like this: Spain England Germany Thanks...<issue_comment>username_1: I can't really see the point of this level of complexity. `form_factory` works just as well as a c...
2018/03/15
782
3,107
<issue_start>username_0: There are two tables A and B with same structure (number of columns, column names etc.). There is no primary key constraint for both A and B. Some of the columns values can be null but not mentioned as a constraint. Creation of table looks like below ``` CREATE TABLE IF NOT EXISTS TableA ( c...
2018/03/15
870
3,415
<issue_start>username_0: I have a static json file I need to serve with content-type: application/json to allow some deeplinking from my rails app to the corresponding android app. For this google is expecting a url to a static file which looks like this: `domain.com/.well-known/assetlinks.json` and the correct content...
2018/03/15
603
2,189
<issue_start>username_0: I have a JSON string which is parsed and a typecaseted to a `map`. I'm using this map to get a `List[Map[String, Any]]`. Here to make my code error free I have used `getOrElse` while type casting. JSON string looks similar to ``` { "map-key" : [ { "list-object-1-key" : "list-ob...
2018/03/15
697
1,589
<issue_start>username_0: I have two vectors of TRUE/FALSE values: ``` x1 <- c(TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE) x2 <- c(FALSE, TRUE, FALSE, TRUE, FALSE, TRUE, FALSE, FALSE, FALSE, F...
2018/03/15
559
1,877
<issue_start>username_0: How can we add row that contain serial number (S.No.) in Jtable which gets updated each time we delete the data of a table? e.g.: i have a jtable which contain data from database ``` Name Age Class ram 14 9 hari 15 9 rama 15 10 ``` i want it to be like this: ``` S.No. Name Age Class 1 ...
2018/03/15
484
1,681
<issue_start>username_0: I'm currently working on a kubernetes cluster. Cluster is working properly. I need to establish communication between services without using proxy. For example I have services below: 1. worker 2. app1 3. app2 4. app3 Worker needs to login to app containers directly via SSH and do some command...
2018/03/15
1,791
5,062
<issue_start>username_0: First, let me just say I am a "tinkerer" when it comes to coding. I can usually dig around the internet, find a suggestion and implement it in short timing. This issue I have been investigating has turned out to be more difficult and for the first time, I've decided to post a help needed reques...
2018/03/15
485
1,624
<issue_start>username_0: My naming convention for storage account has to have a number at the end of the storage account name eg storageaccount01 When I create a new account I need to make sure I dont duplicate any storage name. I cant use the uniqueid for this project , it has to be the above naming convention. Usin...
2018/03/15
223
750
<issue_start>username_0: **main\_layout.xml**: ``` ``` [![large text](https://i.stack.imgur.com/jOlrO.png)](https://i.stack.imgur.com/jOlrO.png) [![small text](https://i.stack.imgur.com/5K4dH.png)](https://i.stack.imgur.com/5K4dH.png) It looks like bounded to the edges *ConstraintLayout* doesn't consider **any** ho...
2018/03/15
1,754
4,896
<issue_start>username_0: Im trying to use the sf package in R to see if sf object is within another sf object with the `st_within` function. My issue is with the output of this function which is sparse geometry binary predicate - `sgbp` and I need a vector as an output so that I can use the `dplyr` package afterwards f...
2018/03/15
1,429
4,292
<issue_start>username_0: I have a table and I'm using AngularJS to display it, there's a clear button where if clicked all the rows will be deleted from the table. I am using splice to do this but when I try to splice it, only the 1st and 3rd row get splice. How do I splice all of the rows? ``` self.row.length = 3;...
2018/03/15
564
2,095
<issue_start>username_0: I've created a menu bar app, a NSMenu object using the Interface Builder (following [this](http://footle.org/WeatherBar/) tutorial). The menu has two items: Start Commando Stop Commando How can I disable/enable the menu items when they're clicked? I've set disabled "Auto Enables Items" and I...
2018/03/15
709
2,527
<issue_start>username_0: ```js //routes const AppRoute = () => { return ( ); }; export default AppRoute; //store const store = createStore(reducers, applyMiddleware(Promise)); ReactDOM.render( , document.getElementById("root") ); ``` I use react and redux. I created a BookShow component to sh...
2018/03/15
997
3,504
<issue_start>username_0: When I do something like: ``` (def x 123) (future (def x 456)) ``` The `def` in the second thread ends up modifying the value in the main thread. I understand this is not idiomatic and that I should be using atoms or something more complex. That aside, however, this is contrary to my expecta...
2018/03/15
1,025
3,538
<issue_start>username_0: I'm creating a general purpose queue on firebase cloud functions to run huge list of task. I was wondering if i can use `.on('child_added')` to get new task pushed to the queue. Problem i was getting is that my queue is breaking in a middle randomly after 10 mins or sometimes 15 mins. ``` adm...
2018/03/15
2,521
9,768
<issue_start>username_0: I am trying to submit a transaction to Hyperledger Sawtooth v1.0.1 using javascript to a validator running on localhost. The code for the post request is as below: ``` request.post({ url: constants.API_URL + '/batches', body: batchListBytes, headers: { 'Content-Type': '...
2018/03/15
1,138
3,586
<issue_start>username_0: I'm having a lot of trouble with a question we have been given in class Re: Conditional Statements. I'm struggling to comprehend how I can have two variables (`"year"` and `"s"`) being able to go into one `{}`. I must display a person's age in years (having taken their year of birth): > > W...
2018/03/15
1,318
4,509
<issue_start>username_0: I'm looking for a way to extract the git commit massage directly from the committed source file without invoking the editor or similar. Our department has just started working with git, and for legacy reasons the changes made are written at the top of the source file: ``` #!/usr/local/bin/php...
2018/03/15
189
666
<issue_start>username_0: I want to encircle react-native-vector icons. I have added a border radius in the style but it not helpful for all devices and also with every icon it behaves different. ``` ``` Link to react native vector icons: <https://oblador.github.io/react-native-vector-icons/> [![enter image descrip...
2018/03/15
618
2,070
<issue_start>username_0: I have 2 tables: Table called "Join\_of\_LIN\_and\_LI2" having 2 columns as follows: ``` Fcode | Description 103 | 4301 | 5200 | ``` and the second table called "Diam"having 2 columns as follows: ``` Fcode | Description 5200 | S Force Line ``` I want to fill the fie...
2018/03/15
394
1,345
<issue_start>username_0: I have the following bat file: ``` echo on copy "camera uploads\*.pdf" "C:\Users\user\OneDrive\תיקיה 2018" pause ``` it fails due to "file system cannot find the path specified" what do I miss? Thanks!<issue_comment>username_1: You don't need to use a subquery for this. You can just use ...
2018/03/15
1,543
6,609
<issue_start>username_0: I have applied the passport auth in laravel. I have done this on my local machine and AWS server too. Now I am trying to apply the same to a shared hosting, where I won't be able to access the terminal. So my curiosity is just to know is it possible to apply for the passport without `php artisa...
2018/03/15
1,254
4,905
<issue_start>username_0: I am trying to setup PnP Partner pack on azure following this [youtube video](https://www.youtube.com/watch?v=ezWYorZClTI&t=1796s). As my trial azure storage subscription has expired, I am trying to use Azure storage of my company, but their Azure account is not connected to an office 365 tenan...
2018/03/15
302
1,079
<issue_start>username_0: [![enter image description here](https://i.stack.imgur.com/SEdL6.png)](https://i.stack.imgur.com/SEdL6.png) I want to change all these 'int' to 'bool', in VSCode ,the shortcut is `CTRL`+`D`, What is the shortcut in VisualStudio 2017?<issue_comment>username_1: cmd + shift + L when selecting the...
2018/03/15
660
1,944
<issue_start>username_0: I would like to write a function that accepts a dictionary of legend parameters before outputting a plot. I've included a small example below. **Imports** ``` import numpy as np import matplotlib.pyplot as plt ``` **Data** ``` x = np.linspace(0, 100, 501) y = np.sin(x) ``` **Legend Para...
2018/03/15
589
2,208
<issue_start>username_0: I have a variable named `inScreenshotmode` in AppDelegate: ``` #if DEBUG var inScreenshotMode: Bool { return UserDefaults.standard.bool(forKey: "abc") } #else // Release let inScreenshotMode = false #endif ``` So how can I optimise the below code? ``` let totalValue = appDelegate?.i...
2018/03/15
389
1,312
<issue_start>username_0: I have this basic script: HTML: ``` Button ``` TS: ``` buttonclick() { this.test = true; } ``` **What I expected to happen:** clicking the button shows the image. **What happens:** clicking the button makes a small grey rectangle appear where the image should be, as if the img sourc...
2018/03/15
1,339
3,448
<issue_start>username_0: ``` #include using namespace std; int main() { cout << -0.152454345 << " " << -0.7545 << endl; cout << 0.15243 << " " << 0.9154878774 << endl; } ``` Outputs: ``` -0.152454 -0.7545 0.15243 0.915488 ``` I want the output to look like this: ``` -0.152454 -0.754500 0.152430 0.915488 `...
2018/03/15
1,047
2,983
<issue_start>username_0: I add the code: ``` JUnitSampler junitSampler=new JUnitSampler(); String UserId=junitSampler.getThreadContext().getVariables().get("username"); ``` to Junit code I see an error red squiggly lines in Eclipse at `import org.apache.jmeter.protocol.java.sampler.JUnitSampler;` How to clear the...
2018/03/15
353
1,127
<issue_start>username_0: I implemented a react-native app, it runs ok. But 'Subscription is not defined' error happened when enabling 'Debug js remotely' in the simulator. [![enter image description here](https://i.stack.imgur.com/7Wk9N.png)](https://i.stack.imgur.com/7Wk9N.png)<issue_comment>username_1: Something's wr...
2018/03/15
359
1,391
<issue_start>username_0: I'm kinda new to Cordova and cross-platform programming. I've followed a tutorial on the internet but I'm stuck with installing a plugin with plugman. I'd like to use the camera on my app so I tried to run this command line: ``` plugman install --platform android --project hello --plugin cordo...
2018/03/15
802
2,861
<issue_start>username_0: I just want to ask on how to access a variable to the single file component of vue? When i try to access my app on the browser the vue js will result an error. > > Error in mounted hook: "ReferenceError: EventBus is not defined" > > > My code below. I implement this on the app.js ``` w...
2018/03/15
853
2,682
<issue_start>username_0: Good day, I need to run job in **Jenkins monthly, two days before the end of the month**. The question is similar to question: [run cron job on end of every month](https://stackoverflow.com/questions/8352036/run-cron-job-on-end-of-every-month), but accepted response is not acceptable in my ...
2018/03/15
627
2,041
<issue_start>username_0: I have a problem with this script: [![enter image description here](https://i.stack.imgur.com/aEvcq.jpg)](https://i.stack.imgur.com/aEvcq.jpg) ``` UPDATE Orders AS o SET o.menuId = 14259 WHERE o.menuId = 14422 AND o.userId = (SELECT Id FROM users where Group = (S...
2018/03/15
646
2,247
<issue_start>username_0: Is it possible to change id in URL in Yii2 basic to something else my URL actual is ``` http://localhost:8585/yii40/wfp/web/post/view?id=368 ``` I want to change it to ``` http://localhost:8585/yii40/wfp/web/post/view?post=368 ``` My View is ``` public function actionView($id) ...
2018/03/15
499
1,653
<issue_start>username_0: In our BizTalk Server, administrators have installed a proxy. This proxy is only for a few URLs and the most URLs have to bypass it. We set on BTSNTSvc64.exe.config the property: ``` ``` How to set the bypasslist to include the most URLs that don't need a proxy and remove only a few that n...
2018/03/15
543
1,818
<issue_start>username_0: descBox class have top value of main Box and thats OK . here i want to div with formBox Class place exactly bottom of the div with class descBox but my problem is it seems the descBox class doesn't occupy its own container and my formBox class go inside to it not the bottom of it.what is the be...
2018/03/15
567
1,856
<issue_start>username_0: there are many implementation in how to check whether a String value is null and I'm really confused what to use! These are my searches so far: 1. `if(myString == null){}` 2. `Objects.equals(null, myString);` 3. `ObjectUtils.isEmpty(myString)` 4. `myString.equals(null)` 5. `myString.compareTo...
2018/03/15
536
1,839
<issue_start>username_0: According to this pull request <https://github.com/imazen/resizer/pull/178> you are fixed issue with AWS IAM roles(EC2 Profiles) but this changes were not merged to a master. Are you going to release this feature. It affects security of the application and looks important to fix.<issue_comment>...
2018/03/15
1,346
4,758
<issue_start>username_0: I have installed opencv-python and dlib. My area of interest is working on facial recognition. So basically trying to extract faces where in I have a ipcam or a webcam. I am not able to access the cam by however possible. The piece of code I am using is ``` import numpy as np import c...
2018/03/15
339
1,094
<issue_start>username_0: How can I clear a form in HTML/JS without loading external libraries? Here's what I've tried so far and how they fail: ``` ``` This doesn't clear the form, only resets it to its original value. ``` form.getElementsByTagName('textarea').innerHTML = '' ``` This only clears the form if it h...
2018/03/15
1,729
5,495
<issue_start>username_0: I want to pass the output of ConvLSTM and Conv2D to a Dense Layer in Keras, what is the difference between using global average pooling and flatten Both is working in my case. ```python model.add(ConvLSTM2D(filters=256,kernel_size=(3,3))) model.add(Flatten()) # or model.add(GlobalAveragePoolin...
2018/03/15
543
1,583
<issue_start>username_0: Normally in DB2, if I want to execute a db script and output the execution result to a log file, I will do something as follow: ``` db2 -tvf x.sql > x.log ``` Hence, I can read the x.log to check whether my script is execute correctly or not. How about Oracle db? I know that the script is...
2018/03/15
677
1,909
<issue_start>username_0: I am trying to install `rebar3` using `linuxbrew` on Ubuntu 16.04. After I execute `brew install rebar3` > > distutils.errors.CompileError: command 'gcc-5' failed with exit status > 1 > /home/linuxbrew/.linuxbrew/Cellar/gobject-introspection/1.56.0/share/gobject-introspection-1.0/Makefile....
2018/03/15
1,393
5,207
<issue_start>username_0: I want to make a button. If I click that button it will reset every position as it was. Such as you enter VR. After entering you see some images in front of you. But sometimes because of motion the front scene goes some other position. If you wanna see that again you need to reload that. So I w...
2018/03/15
1,989
7,667
<issue_start>username_0: I have an app with a local db (room) and a service that `POSTs` all the "events" from the database using `retrofit 2` and `rxjava`. When I send a high volume of `POSTs` (ie 1500+), the app throws an `OutOfMemoryException`. I presume this happens because it starts a new thread every time the cli...
2018/03/15
381
1,307
<issue_start>username_0: I am just starting and implementing template in codeigniter 3.1 after login when i click on any side menu then it doesn't work. if i tried to open in new window then its automatically logout & redirect to login page. my view is following. ``` - ["> Dashboard](<?php echo base_url().) ``` my...
2018/03/15
770
3,101
<issue_start>username_0: I am trying to display multiple different modals on my dashboard, but I've noticed that most times the modal screen will open twice. (I am not even able to replicate this issue consistently as sometimes it does NOT open two modals after I cancel ng serve and run it again for the first time. Ng ...
2018/03/15
1,432
4,650
<issue_start>username_0: Error:Execution failed for task ':app:preDebugBuild'. > > Android dependency 'com.google.android.gms:play-services-ads' has different version for the compile (11.8.0) and runtime (11.0.4) classpath. You should manually set the same version via DependencyResolution > > > My project gradle:...
2018/03/15
545
1,750
<issue_start>username_0: I added a schema extension to users in my org, to keep track of training a user has taken. Since lists are not supported I am trying to store this as a comma separated string, as follows: ``` { "id": "voctestextension", "description": "voc test extension", "targetTypes": ["User"], "pro...
2018/03/15
337
1,022
<issue_start>username_0: I want to simply subtract 2 matrices with size 784×1 with this code ``` w2 = G.w - alpha *temp print(w2.size) ``` but `w2` is a 784×784 matrix. why doesn't element-wise subtraction work properly? both temp and `G.w` are 784×1 matrices and `alpha` is a scalar (`alpha = 0.1`) I'm using pycharm...
2018/03/15
2,643
11,522
<issue_start>username_0: 1] 4 digit input boxes without input: [![enter image description here](https://i.stack.imgur.com/4Dbrb.png)](https://i.stack.imgur.com/4Dbrb.png) 2] 4 digit input boxes with input : [![enter image description here](https://i.stack.imgur.com/ilMWz.png)](https://i.stack.imgur.com/ilMWz.png) A...
2018/03/15
9,615
23,300
<issue_start>username_0: I'm looking for use `Spark` based on `Hadoop Multinodes` and I have a question about my pythonic script with cluster mode. ### My Configuration : I have into my Hadoop Cluster : * 1 Namenode (master) * 2 Datanodes (slaves) So I would like to execute my script in Python in order to use this ...
2018/03/15
589
2,701
<issue_start>username_0: I have a java servlet that sets a session variable and calls an starts a thread class.I implement is a follows ``` @WebServlet("/ExportLogs") public class ExportLogs extends HttpServlet { public void doGet(HttpServletRequest request , HttpServletResponse response) throws ServletException,I...
2018/03/15
507
1,941
<issue_start>username_0: My model looks like below, where in bookJson is a json object - ``` { "name" : "somebook", "author" : "someauthor" } public class Book{ private int id; private JSONObject bookJson; public int getId(){return this.id;} public JSONObject getBookJson(){this.bookJson;} p...
2018/03/15
717
2,507
<issue_start>username_0: ``` php include('includes/config.php'); if(isset($_POST["submit"])){ $empid=$_POST["empid"]; $pass=$_POST["<PASSWORD>"]; $query=mysqli_query($conn,"SELECT employee_id, fname,lname,empid,password, status, role FROM employee where empid='$empid' and password='$<PASSWORD>'"); $row=mysqli_fetch_a...
2018/03/15
454
1,454
<issue_start>username_0: I have a pdf link like www.xxx.org/content/a.pdf, and I know that there are many pdf files in www.xxx.org/content/ directory but I don't have the filename list. And When I access www.xxx.org/content/ using browser, it will redirect to www.xxx.org/home.html. I tried to use wget like "wget -c -r...
2018/03/15
539
1,603
<issue_start>username_0: If i have dataframe with column x. I want to make a new column x\_new but I want the first row of this new column to be set to a specific number (let say -2). Then from 2nd row, use the previous row to iterate through the cx function ``` data = {'x':[1,2,3,4,5]} df=pd.DataFrame(data) def cx(...
2018/03/15
425
1,671
<issue_start>username_0: How can I distinguish in java graphQL if a parameter was explicitly set to null, or if it was not provided at all? The use case that I try to achieve is the following: I have a mutation like this ``` updateUser(id:Int!, changes:UserChanges!) #where UserChanges is defined as: type UserChanges...
2018/03/15
1,648
4,510
<issue_start>username_0: I have setup GitLab runner on winserver 2016. Everything works fine, except output of runner on gitlab. Locale of winserver is RU. I'm trying to build projects with MSBUILD, which outputs russian characters: `Checking out e5ec41d1 as release-2... Skipping Git submodules setup $ echo "начин...
2018/03/15
841
2,697
<issue_start>username_0: How do I extract all the want words in a string and count them in C#? here is the example These are the words I want to extract: one, two, three This is the given string: One times two plus one equals three. The result should display one two one three and 4 Many thanks in advance<issue_com...
2018/03/15
783
2,834
<issue_start>username_0: I have a List containing an object like this: ``` List unitlist = new List(); ``` With unit beeing initialized like this: ``` public class unit { public string[] records; } ``` I then use a variable to add into the list: ``` var temp = new unit(); temp.records = csv.GetF...
2018/03/15
1,019
3,691
<issue_start>username_0: I have a query which returns 0 rows but executing the same query using pgadmin or dbeaver returns a result set with rows. **Ive noticed this because i have a postgresql function which should return rows but didnt. After that i started debugging.** Other queries are not affected. I tried it u...
2018/03/15
828
2,618
<issue_start>username_0: I am using kie-api 7.6.0. When I am trying to get `kieservices.factory.get()` , its returning `null`. My Java project is a gradle project. What can be the cause? My Java project is a gradle project. ``` final ReleaseIdImpl releaseId = new ReleaseIdImpl(RULE_PACKAGE, RULE_NAME, ...
2018/03/15
265
999
<issue_start>username_0: I've increased the "Right margin (columns)" in File->Settings->Editor->Code Style from default 100 to 140. Unfortunately the margin is reset after each time I restart Android Studio. I also tried to export and import my settings but this does not prevent the right margin to be reset. Hopefully...
2018/03/15
879
3,743
<issue_start>username_0: i have a rental website and when someone wants to make an offer he has 7 min to pay, if he wont pay the offer will delete. i have a timer on my form to check the time, and when the timer is on 0:00 and the user didn't pay his offer will delete. MY question is how can i check if user log out? ...
2018/03/15
254
973
<issue_start>username_0: Anybody knows how to reverse layout in `GridLayoutManager` and arrange items like in Instagram. As you know `setStackFromEnd` doesn't work, and `setReverseLayout` reverses list but not properly and scrollbar goes down automatically. I want to have reversed layout with scroll bars up.<issue_comm...
2018/03/15
274
1,002
<issue_start>username_0: How to get Object ID for dynamically created Label?? As I have to translate Label text for other languages. [![enter image description here](https://i.stack.imgur.com/PRu4d.png)](https://i.stack.imgur.com/PRu4d.png)<issue_comment>username_1: Object ID is created by the interface builder and i...
2018/03/15
449
1,495
<issue_start>username_0: I have six text boxes and I want to count the number of filled boxes ``` {{counter}} counter: number = 0; counterfunc(tb){ // need help here if (tb.value != '') { this.counter++; } } ``` I found this plunker [plunkr](https://plnkr.co/edit/H7IscAC60rSwrkVSSVnm?p=preview...
2018/03/15
627
2,139
<issue_start>username_0: I want to fix some text of string in the center. How can I do that? For example, take a look on this photo [![Heading at the center](https://i.stack.imgur.com/EE5R1.jpg)](https://i.stack.imgur.com/EE5R1.jpg) I have a string like that. Now I want some words (Heading) of my string to be shown ...
2018/03/15
745
2,476
<issue_start>username_0: I have a `XIB` which is of this size: (width: 300, height: 100) while designing. It has 3 labels which will be expanding based on its content. I am simply loading that `XIB` and adding it to the `self.view`. Is there a way that I can easily increase the `XIB` view height as `UILabel` increases?...
2018/03/15
541
2,000
<issue_start>username_0: According to the github link below i should have to generate eclipse metadata. (i'm currently using eclipse) but i dont know what does this mean and how to do it. it just says ./gradlew eclipse and i dont know how can i import it . can anyone please share step by step on detail how to generate ...
2018/03/15
1,059
3,767
<issue_start>username_0: I have made four check boxes. when I check them true it should save in `ArrayList`. Can I save them to the `array list`? and also when I deselect them they should be `removed` from the `list` or `ArrayList`.i have implemented the `checkboxes` and also one select all button to select all `checkb...
2018/03/15
830
3,039
<issue_start>username_0: Consider the following buildscript where * `addToMyConfig` adds a dependency to a [Configuration](https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.Configuration.html) named `myConfig` * `useMyConfig` consumes the `myConfig` [Configuration](https://docs.gradle.org/current/dsl/org.gr...
2018/03/15
571
1,850
<issue_start>username_0: I'm getting a syntax error when `if` is used before the `for` loop without an `else`, but no such error when `else` is present. Here is my code: ``` data=[[45, 12],[55,21],[19, -2],[104, 20]] retData= ['Close' if i>54 and j>7 for [i,j] in data] # getting a syntax error here :( return retData...
2018/03/15
1,085
4,327
<issue_start>username_0: In my Angular4 Application, I call my Webservice which returns a response with ByteArrayContent. When I check this data in the network payload, it looks very much like a valid PDF-file. The html-string, from which the following data is generated, is valid for sure, because an online pdf convert...
2018/03/15
390
1,465
<issue_start>username_0: if i add a tap-event-listener to an instance of a polymer component with some elements in its local dom, the target (and source) of the event can be a element of the local dom. What is the best way to get always a reference to the host element and not any of its children in the local dom? Ex...
2018/03/15
275
1,123
<issue_start>username_0: I never got a chance to work on Impala. I have just started reading about Impala. But i have one basic question which i am not clear about Impala. Impala has its own demons so it also has its own execution engine or it works on MapR or other execution engine. Thanks in advance<issue_comment>use...
2018/03/15
466
1,625
<issue_start>username_0: I've got a table like this ``` accountid (int) emailaddress (varchar) email(bit) postal(bit) sms(bit) telephone(bit ``` accountid is unique, but emailaddress could have duplicates, ``` accountid emailaddress email postal sms telephone 62626 <EMAIL> 0 1 0 1 76364 <...