Entity Framework The underlying provider failed on Open
Below is my connection string: > connectionString="metadata=res://*/EDMX.Test.csdl|res://*/EDMX.Test.ssdl|res://*/EDMX.Test.msl;provider=System.Data.SqlClient;provider connection string="Data Sourc...
- Modified
- 28 Aug at 16:56
Understanding typedefs for function pointers in C
I have always been a bit stumped when I read other peoples' code which had typedefs for pointers to functions with arguments. I recall that it took me a while to get around to such a definition while ...
- Modified
- 5 Apr at 09:8
Send a file via HTTP POST with C#
I've been searching and reading around to that and couldn't fine anything really useful. I'm writing an small C# win app that allows user to send files to a web server, not by FTP, but by HTTP using ...
- Modified
- 18 Apr at 16:41
Copying and pasting data using VBA code
I have a button on a spreadsheet that, when pressed, should allow the user to open a file, then copy columns A-G of the spreadsheet "Data", then paste the data from those columns on the current sheet....
- Modified
- 22 Jan at 03:13
How do I crop an image using C#?
How do I crop an image using C#?
- Modified
- 23 Apr at 00:29
How to create a listbox in HTML without allowing multiple selection?
I don't have much experience in HTML. I am looking to create a simple listbox, but one of the requirements is to DISALLOW multiple selection. Most of the code for listboxes goes like this - ``` <sel...
JQuery - how to select dropdown item based on value
I want set a dropdown(select) to be change based on the value of the entries. I have ``` <select id="mySelect"> <option value="ps">Please Select</option> <option value="ab">Fred</option> <opti...
- Modified
- 4 Feb at 11:54
How do I get the logfile from an Android device?
I would like to pull the log file from a device to my PC. How can I do that?
- Modified
- 21 May at 13:4
How to insert multiple rows from a single query using eloquent/fluent
I have the following query: ``` $query = UserSubject::where('user_id', Auth::id())->select('subject_id')->get(); ``` and as expected I get the following result: ``` [{"user_id":8,"subject_id":9},{...
Initialize 2D array
I am trying to initialize a 2D array, in which the type of each element is . So far, I can only initialize this array in the follow way. ``` public class ticTacToe { private char[][] table; publi...
- Modified
- 12 Dec at 04:38
Linux command-line call not returning what it should from os.system?
I need to make some command line calls to linux and get the return from this, however doing it as below is just returning `0` when it should return a time value, like `00:08:19`, I am testing the exac...
- Modified
- 12 Mar at 14:37
For div to extend full height
Is there a method I can use for a div to extend to full height? I've got a sticky footer in it as well. Here's the web page: . The middle bit I'm talking about is the white div, midcontent which has ...
Convert string to ASCII value python
How would you convert a string to ASCII values? For example, "hi" would return `[104 105]`. I can individually do ord('h') and ord('i'), but it's going to be troublesome when there are a lot of letter...
Heroku "psql: FATAL: remaining connection slots are reserved for non-replication superuser connections"
I'm developing an app on Heroku with a Postgresql backend. Periodically, I get this error message when trying to access the database, both from the CLI and from loading a page on the server: ``` psql...
- Modified
- 20 Mar at 08:11
How to get the function name from within that function?
How can I access a function name from inside that function? ``` // parasitic inheritance var ns.parent.child = function() { var parent = new ns.parent(); parent.newFunc = function() { } re...
- Modified
- 20 Jul at 21:46
Extract a subset of key-value pairs from dictionary?
I have a big dictionary object that has several key value pairs (about 16), but I am only interested in 3 of them. What is the best way (shortest/efficient/most elegant) to subset such dictionary? The...
- Modified
- 21 Nov at 08:47
Pause Console in C++ program
Which is best way to pause the console in C++ programs? 1. using cin.get() 2. or using system("pause") 3. or using C functions like getch() or getchar()? Is it true that use of `system("pause")` ...
- Modified
- 16 Jul at 08:52
Batch command date and time in file name
I am compressing files using [WinZip](https://en.wikipedia.org/wiki/WinZip) on the command line. Since we archive on a daily basis, I am trying to add date and time to these files so that a new one is...
- Modified
- 14 May at 14:23
C: Run a System Command and Get Output?
I want to run a command in linux and get the text returned of what it outputs, but I want this text printed to screen. Is there a more elegant way than making a temporary file?
How can I pad an int with leading zeros when using cout << operator?
I want `cout` to output an int with leading zeros, so the value `1` would be printed as `001` and the value `25` printed as `025`. How can I do this?
- Modified
- 5 Apr at 02:41
jQuery has deprecated synchronous XMLHTTPRequest
Like many others, my website is using jQuery. When I open the developer tools, I see a warning that says that XMLHTTPRequest is > deprecated because of its detrimental effects to the end user's expe...
- Modified
- 15 Apr at 03:38
GIT_DISCOVERY_ACROSS_FILESYSTEM not set
I have searched and read few post but my problem is not the same as described. So here's the issue: using `git clone` into folder under external partition of the disk works fine but all git commands f...
- Modified
- 22 Feb at 22:3
How can I pad a value with leading zeros?
What is the recommended way to zerofill a value in JavaScript? I imagine I could build a custom function to pad zeros on to a typecasted value, but I'm wondering if there is a more direct way to do th...
- Modified
- 27 Apr at 13:16
Can't import database through phpmyadmin file size too large
I have been trying to import Database through phpMyAdmin. My database file is `a.sql` and it's size is 1.2 GB I am trying to import this on local and phpMyAdmin is saying: > You probably tried to up...
- Modified
- 29 Apr at 21:31
java - path to trustStore - set property doesn't work?
I've setup a self-signed certificate to test an ssl java connection - however, it is refusing to locate the java trustStore. I've saved copies of it in /Java/jre6/lib/security in addition to the folde...
- Modified
- 10 Apr at 04:36