Process.start: how to get the output?
I would like to run an external command line program from my Mono/.NET app. For example, I would like to run . Is it possible: 1. To get the command line shell output, and write it on my text box? ...
- Modified
- 14 Sep at 08:21
Node.js fs.readdir recursive directory search
Any ideas on an async directory search using fs.readdir? I realize that we could introduce recursion and call the read directory function with the next directory to read, but I'm a little worried abou...
In Typescript, How to check if a string is Numeric
In Typescript, this shows an error saying isNaN accepts only numeric values ``` isNaN('9BX46B6A') ``` and this returns false because `parseFloat('9BX46B6A')` evaluates to `9` ``` isNaN(parseFloat(...
- Modified
- 2 May at 21:47
How to remove the hash from window.location (URL) with JavaScript without page refresh?
I have URL like: `http://example.com#something`, how do I remove `#something`, without causing the page to refresh? I attempted the following solution: ``` window.location.hash = ''; ``` `#`
- Modified
- 10 Jul at 06:44
How to represent empty char in Java Character class
I want to represent an empty character in Java as `""` in String... Like that `char ch = an empty character;` Actually I want to replace a character without leaving space. I think it might be suf...
- Modified
- 25 Aug at 22:49
How to flip background image using CSS?
How to flip any background image using CSS? Is it possible? currenty I'm using this arrow image in a `background-image` of `li` in css ![enter image description here](https://i.stack.imgur.com/ah0iN...
- Modified
- 24 Apr at 06:33
Get city name using geolocation
I managed to get the user's latitude and longitude using HTML-based geolocation. ``` //Check if browser supports W3C Geolocation API if (navigator.geolocation) { navigator.geolocation.getCurrent...
- Modified
- 4 Nov at 16:33
Where is body in a nodejs http.get response?
I'm reading the docs at [http://nodejs.org/docs/v0.4.0/api/http.html#http.request](http://nodejs.org/docs/v0.4.0/api/http.html#http.request), but for some reason, I can't seem to to actually find the ...
Getting the first and last day of a month, using a given DateTime object
I want to get the first day and last day of the month where a given date lies in. The date comes from a value in a UI field. If I'm using a time picker I could say ``` var maxDay = dtpAttendance.Max...
Usage of MySQL's "IF EXISTS"
Here are two statements that I'd like to work, but which return error messages: ``` IF EXISTS (SELECT * FROM gdata_calendars WHERE `group` = ? AND id = ?) SELECT 1 ELSE SELECT 0 ``` and ``` IF ((...
- Modified
- 11 Jul at 11:11
How to view AndroidManifest.xml from APK file?
Is it possible to view `Androidmanifest.xml` file? I just changed the extension of the `apk` file to `zip`. This `zip` file contains the `Androidmanifest.xml` file. But I am unable view the contents ...
- Modified
- 19 Aug at 09:17
How to generate random number in Bash?
How to generate a random number within a range in Bash?
preventDefault() on an <a> tag
I have some HTML and jQuery that slides a `div` up and down to show or hide` it when a link is clicked: ``` <ul class="product-info"> <li> <a href="#">YOU CLICK THIS TO SHOW/HIDE</a> <div c...
- Modified
- 18 Oct at 08:49
How can I monitor the thread count of a process on linux?
I would like to monitor the number of threads used by a specific process on Linux. Is there an easy way to get this information without impacting the performance of the process?
- Modified
- 4 Nov at 20:6
How to correctly display .csv files within Excel 2013?
It seems Excel 2013 doesn't read CSV files correctly (Excel 2010 does). Every time I open .csv files, all my data are displayed in the first column. I know I can go to `DATA`, `Convert`, and then cho...
- Modified
- 28 Nov at 12:39
Getting the last element of a split string array
I need to get the last element of a split array with multiple separators. The separators are commas and space. If there are no separators it should return the original string. If the string is "how,a...
- Modified
- 25 Dec at 15:10
What is the difference among col-lg-*, col-md-* and col-sm-* in Bootstrap?
What is the difference among `col-lg-*` , `col-md-*` and `col-sm-*` in Twitter Bootstrap?
- Modified
- 22 Feb at 12:43
Get query from java.sql.PreparedStatement
In my code I am using `java.sql.PreparedStatement`. I then execute the `setString()` method to populate the wildcards of the prepared statement. Is there a way for me to retrieve (and print out) the...
- Modified
- 11 Jul at 12:29
How can I backup a Docker-container with its data-volumes?
I've been using this Docker-image [tutum/wordpress](https://registry.hub.docker.com/u/tutum/wordpress/) to demonstrate a Wordpress website. Recently I found out that the image uses volumes for the MyS...
- Modified
- 20 Jul at 01:10
How do I pre-populate a jQuery Datepicker textbox with today's date?
I have a very simple jQuery Datepicker calendar: ``` $(document).ready(function(){ $("#date_pretty").datepicker({ }); }); ``` and of course in the HTML... ``` <input type="text" size="10"...
- Modified
- 13 Dec at 17:23
HTTP Error 500.30 - ANCM In-Process Start Failure
I was experimenting with a new feature that comes with .NET core sdk 2.2 that is supposedly meant to improve performance by around 400%. Impressive so I tried it out on my ABP () project `Template asp...
- Modified
- 19 Jul at 21:55
How to 'foreach' a column in a DataTable using C#?
How do I loop through each column in a datarow using `foreach`? ``` DataTable dtTable = new DataTable(); MySQLProcessor.DTTable(mysqlCommand, out dtTable); foreach (DataRow dtRow in dtTable.Rows) { ...
Adding gif image in an ImageView in android
I added an animated gif image in an imageView. I am not able to view it as a gif image. No animation is there. It's appearing just as a still image. I would like to know how can i show it as a gif ima...
php stdClass to array
I have a problem to convert an object stdClass to array. I have tried in this way: ``` return (array) $booking; ``` or ``` return (array) json_decode($booking,true); ``` or ``` return (array) j...