Questions

Double precision floating values in Python?

Are there data types with better precision than float?

12 Mar at 12:6

Angular window resize event

I would like to perform some tasks based on the window re-size event (on load and dynamically). Currently I have my DOM as follows: ``` <div id="Harbour"> <div id="Port" (window:resize)="onResize(...

7 Oct at 17:32

Connecting to SQL Server using windows authentication

When I was trying to connect to SQL Server using the following code: ``` SqlConnection con = new SqlConnection("Server=localhost,Authentication=Windows Authentication, Database=employeedetails"); con...

17 Aug at 10:47

Split string by new line characters

I have a string with new line characters. I want to convert that string into an array, and for every new line, jump one index place in the array. If the string is: ``` My text1 My text2 My text3 ``` ...

6 Jul at 09:1

Unix tail equivalent command in Windows Powershell

I have to look at the last few lines of a large file (typical size is 500MB-2GB). I am looking for a equivalent of Unix command `tail` for Windows Powershell. A few alternatives available on are, [ht...

13 Dec at 08:47

How to print (using cout) a number in binary form?

I'm following a college course about operating systems and we're learning how to convert from binary to hexadecimal, decimal to hexadecimal, etc. and today we just learned how signed/unsigned numbers ...

Fatal error: Class 'ZipArchive' not found in

I have a problem that I install 'Archive_Zip 0.1.1' on Linux server, but when I try to run the script to create the zip file it gives the fatal error > Fatal error: Class `ZipArchive` not found in .....

20 Feb at 15:33

How do you kill all current connections to a SQL Server 2005 database?

I want to rename a database, but keep getting the error that 'couldn't get exclusive lock' on the database, which implies there is some connection(s) still active. How can I kill all the connections ...

13 Jul at 14:28

What is thread safe or non-thread safe in PHP?

I saw different binaries for PHP, like non-thread or thread safe? What does this mean? What is the difference between these packages?

System.currentTimeMillis vs System.nanoTime

## Accuracy Vs. Precision What I would like to know is whether I should use or when updating my object's positions in my game? Their change in movement is directly proportional to the elapsed t...

9 Dec at 02:31

CROSS JOIN vs INNER JOIN in SQL

What is the difference between `CROSS JOIN` and `INNER JOIN`? ``` SELECT Movies.CustomerID, Movies.Movie, Customers.Age, Customers.Gender, Customers.[Education Level], Customers.[Int...

Using Linq to group a list of objects into a new grouped list of list of objects

I don't know if this is possible in Linq but here goes... I have an object: ``` public class User { public int UserID { get; set; } public string UserName { get; set; } public int GroupID { ge...

2 Jan at 21:9

Error: "is not recognized as an internal or external command, operable program or batch file"

Whenever I try and run `mycommand.exe` from my Windows `cmd.exe` terminal, I get this error: > ''mycommand.exe' is not recognized as an internal or external command, operable program or batch file' I...

13 Dec at 11:15

Find mouse position relative to element

I want to make a little painting app using canvas. So I need to find the mouse's position on the canvas.

13 Jul at 04:47

How to call a SOAP web service on Android

I am having a lot of trouble finding good information on how to call a standard SOAP/WSDL web service with Android. All I've been able to find are either very convoluted documents and references to "k...

29 Nov at 00:13

What does 'x packages are looking for funding' mean when running `npm install`?

I usually get `"x packages are looking for funding."` when running `npm install` on a `react` project. Any idea what that means?

14 Jan at 14:23

How do I force files to open in the browser instead of downloading (PDF)?

Is there a way to force PDF files to open in the browser when the option "Display PDF in browser" is unchecked? I tried using the embed tag and an iframe, but it only works when that option is checke...

Convert row to column header for Pandas DataFrame,

The data I have to work with is a bit messy.. It has header names inside of its data. How can I choose a row from an existing pandas dataframe and make it (rename it to) a column header? I want to do...

1 Oct at 18:16

Map a network drive to be used by a service

Suppose some Windows service uses code that wants mapped network drives and no UNC paths. How can I make the drive mapping available to the service's session when the service is started? Logging in as...

Updating a date in Oracle SQL table

I am trying to update a date in a SQL table. I am using Peoplesoft Oracle. When I run this query: ``` Select ASOFDATE from PASOFDATE; ``` I get 4/16/2012 I tried running this query ``` UPDATE P...

21 Nov at 16:36

How to get current timestamp in milliseconds since 1970 just the way Java gets

In Java, we can use `System.currentTimeMillis()` to get the current timestamp in Milliseconds since epoch time which is - > the difference, measured in milliseconds, between the current time and mi...

30 Sep at 09:6

How to combine multiple querysets in Django?

I'm trying to build the search for a Django site I am building, and in that search, I am searching in three different models. And to get pagination on the search result list, I would like to use a gen...

Is there a math nCr function in python?

I'm looking to see if built in with the math library in python is the nCr (n Choose r) function: ![enter image description here](https://i.stack.imgur.com/OZj2Y.png) I understand that this can be prog...

25 Jun at 03:10

How to add key,value pair to dictionary?

How to add key,value pair to dictionary?.Below i have mentioned following format? ``` {'1_somemessage': [[3L, 1L, u'AAA', 1689544L, ...

23 Sep at 08:20

Accessing members of items in a JSONArray with Java

I'm just getting started with using json with java. I'm not sure how to access string values within a JSONArray. For instance, my json looks like this: ``` { "locations": { "record": [ {...

11 Jul at 18:8