Should you choose the MONEY or DECIMAL(x,y) datatypes in SQL Server?
I'm curious as to whether or not there is a real difference between the `money` datatype and something like `decimal(19,4)` (which is what money uses internally, I believe). I'm aware that `money` is...
- Modified
- 21 Jul at 16:14
How do I delete an item or object from an array using ng-click?
I am trying to write a function that enables me to remove an item when the button is clicked but I think I am getting confused with the function - do I use `$digest`? HTML & app.js: ``` <ul ng-repea...
How to dynamically add a style for text-align using jQuery
I'm trying to correct the usual IE bugs around CSS 2.1 and need a way to alter an elements style properties to add a custom text-align style. Currently in jQuery you can do something like ``` $(this...
- Modified
- 2 Jul at 13:40
Javascript swap array elements
Is there any simpler way to swap two elements in an array? ``` var a = list[x], b = list[y]; list[y] = a; list[x] = b; ```
- Modified
- 16 May at 12:10
Exporting data In SQL Server as INSERT INTO
I am using SQL Server 2008 Management Studio and have a table I want to migrate to a different db server. Is there any option to export the data as an insert into SQL script??
- Modified
- 3 Nov at 14:49
PHP Fatal Error Failed opening required File
I am getting the following error from Apache I am definately not an expert of Apache but the file config.inc.php & config_templates.inc.php are there. I also tried navigating to a test.html page I ...
How can I hide an HTML table row <tr> so that it takes up no space?
How can I hide an HTML table row `<tr>` so that it takes up no space? I have several `<tr>`'s set to `style="display:none;"`, but they still affect the size of the table and the table's border reflec...
- Modified
- 30 Sep at 21:40
"Cannot send session cache limiter - headers already sent"
Having a problem with sessions which is becoming very annoying. Every time I try to start a session on a particular page I get the following error: ``` Warning: session_start() [function.session-sta...
AngularJs event to call after content is loaded
I have a function which I want to call after page content is loaded. I read about $viewContentLoaded and it doesn't work for me. I am looking for something like ``` document.addEventListener('DOMCon...
How to focus on a form input text field on page load using jQuery?
This is probably very simple, but could somebody tell me how to get the cursor blinking on a text box on page load?
- Modified
- 7 Jul at 07:24
Dropping infinite values from dataframes in pandas?
How do I drop `nan`, `inf`, and `-inf` values from a `DataFrame` without resetting `mode.use_inf_as_null`? Can I tell `dropna` to include `inf` in its definition of missing values so that the followin...
Downgrade npm to an older version
I tried updating `npm` to see if it would solve some dependency problems we were having, and now I want to downgrade to the version the rest of the development team is using. How can I install an olde...
- Modified
- 12 Aug at 14:9
How to run Pip commands from CMD
As I understand, Python 2.7.9 comes with Pip installed, however when I try to execute a Pip command from CMD (Windows) I get the following error: ``` 'pip' is not recognized as an internal or extern...
How to POST raw whole JSON in the body of a Retrofit request?
This question may have been asked before but no it was not definitively answered. How exactly does one post raw whole JSON inside the body of a Retrofit request? See similar question [here](https://s...
- Modified
- 23 May at 12:26
Converting A String To Hexadecimal In Java
I am trying to convert a string like "testing123" into hexadecimal form in java. I am currently using BlueJ. And to convert it back, is it the same thing except backward?
Check if the file exists using VBA
``` Sub test() thesentence = InputBox("Type the filename with full extension", "Raw Data File") Range("A1").Value = thesentence If Dir("thesentence") <> "" Then MsgBox "File exists." Else M...
How to add CORS request in header in Angular 5
I have added the CORS in header but I am still getting the CORS issue in my request. What is the correct way to add and handle CORS and other requests in the headers? Here is service file code: ``` ...
Check if array is empty or null
I would like to know how to check if an array is empty or null in jQuery. I tried `array.length === 0` but it didn't work. It did not throw any error either. This is the code: ``` var album_text = n...
How to loop in excel without VBA or macros?
Is it possible to iterate (loop) a group of rows in Excel without VBA or macros installed? A web search didn't yield anything helpful. ``` =IF('testsheet'!$C$1 <= 99,'testsheet'!$A$1,"") & IF('testsh...
- Modified
- 30 Jan at 10:14
Bootstrap dropdown not working
I can't make bootstrap dropdown to work. Here is my html for nav: ``` <ul class='nav'> <li class='active'>Home</li> <li class='dropdown'> <a class="dropdown-toggle" data-toggle="dropdown" hr...
- Modified
- 1 Jun at 11:26
How to get current page URL in MVC 3
I am using the Facebook comments plugin on a blog I am building. It has some FBXML tags that are interpreted by the facebook javascript that is referenced on the page. This all works fine, but I have...
- Modified
- 11 Sep at 22:31
How to add parameters to HttpURLConnection using POST using NameValuePair
I am trying to do with `HttpURLConnection`(I need to use it this way, can't use `HttpPost`) and I'd like to add parameters to that connection such as ``` post.setEntity(new UrlEncodedFormEntity(nvp)...
- Modified
- 26 May at 17:2
Using JQuery - preventing form from submitting
How do I prevent a form from submitting using jquery? I tried everything - see 3 different options I tried below, but it all won't work: ``` $(document).ready(function() { //option A ...
How to redirect to another page using AngularJS?
I am using ajax call to perform functionality in a service file and if the response is successful, I want to redirect the page to another url. Currently, I am doing this by plain JS code `window.locat...
- Modified
- 8 Jan at 21:50
Remove Trailing Spaces and Update in Columns in SQL Server
I have trailing spaces in a column in a SQL Server table called `Company Name`. All data in this column has trailing spaces. I want to remove all those, and I want to have the data without any trail...
- Modified
- 26 Oct at 06:42