How do you search an amazon s3 bucket?
I have a bucket with thousands of files in it. How can I search the bucket?
- Modified
- 16 Dec at 23:16
mySQL :: insert into table, data from another table?
I was wondering if there is a way to do this purely in sql: ``` q1 = SELECT campaign_id, from_number, received_msg, date_received FROM `received_txts` WHERE `campaign_id` = '8'; INSERT INTO act...
How do I output text without a newline in PowerShell?
I want my PowerShell script to print something like this: ``` Enabling feature XYZ......Done ``` The script looks something like this: ``` Write-Output "Enabling feature XYZ......." Enable-SPFeatu...
- Modified
- 4 Jun at 12:6
How to check if the user can go back in browser history or not
I want using JavaScript to see if there is history or not, I mean if the back button is available on the browser or not.
- Modified
- 10 Aug at 15:53
How to change the text of a label?
I have a radiobutton list and on click on the radio button item I have to change the text of its label. But for some reason it's not working. Code is below: ``` <asp:Label ID="lblVessel" Text="Vessel...
- Modified
- 27 Jun at 10:43
What is the purpose of Order By 1 in SQL select statement?
I'm reading through some old code at work, and have noticed that there are several views with an `order by 1` clause. What does this accomplish? Example: ``` Create view v_payment_summary AS SELEC...
- Modified
- 25 Jul at 18:22
How do I add a bullet symbol in TextView?
I have a TextView and I want to add a bullet symbol in my text through XML. Is it possible?
- Modified
- 9 Mar at 11:36
Difference between 'throw' and 'throw new Exception()'
What is the difference between ``` try { ... } catch{ throw } ``` and ``` try{ ... } catch(Exception e) {throw new Exception(e.message) } ``` regardless that the second shows a message.
Set value of hidden field in a form using jQuery's ".val()" doesn't work
I've been trying to set the value of a hidden field in a form using jQuery, but without success. Here is a sample code that explains the problem. If I keep the input type to "text", it works without...
- Modified
- 31 Oct at 19:49
What is a software framework?
Can someone please explain me what a software framework is? Why do we need a framework? What does a framework do to make programming easier?
- Modified
- 30 Nov at 06:39
Extracting an attribute value with beautifulsoup
I am trying to extract the content of a single "value" attribute in a specific "input" tag on a webpage. I use the following code: ``` import urllib f = urllib.urlopen("http://58.68.130.147") s = f.re...
- Modified
- 3 Jan at 01:27
Performing Breadth First Search recursively
Let's say you wanted to implement a breadth-first search of a binary tree . How would you go about it? Is it possible using only the call-stack as auxiliary storage?
- Modified
- 1 Nov at 15:32
On duplicate key ignore?
I'm trying to finish this query; my tag field is set to UNIQUE and I simply want the database to ignore any duplicate tag. ``` INSERT INTO table_tags (tag) VALUES ('tag_a'),('tab_b'),('tag_c') ON DU...
- Modified
- 27 May at 11:14
nvarchar(max) vs NText
What are the advantages and disadvantages of using the `nvarchar(max)` vs. `NText` data types in SQL Server? I don't need backward compatibility, so it is fine that `nvarchar(max)` isn't supported in ...
- Modified
- 3 Mar at 05:19
Remove last 3 characters of a string
I'm trying to remove the last 3 characters from a string in Python, I don't know what these characters are so I can't use `rstrip`, I also need to remove any white space and convert to upper-case. An ...
How do I get the first n characters of a string without checking the size or going out of bounds?
How do I get up to the first `n` characters of a string in Java without doing a size check first (inline is acceptable) or risking an `IndexOutOfBoundsException`?
- Modified
- 31 Mar at 13:19
How do I get the localhost name in PowerShell?
How do I get the localhost (machine) name in PowerShell? I am using PowerShell 1.0.
- Modified
- 16 Feb at 16:32
Foreign key constraint may cause cycles or multiple cascade paths?
I have a problem when I try to add constraints to my tables. I get the error: > Introducing FOREIGN KEY constraint 'FK74988DB24B3C886' on table 'Employee' may cause cycles or multiple cascade paths. ...
- Modified
- 9 Jul at 20:41
When do you use varargs in Java?
I'm afraid of varargs. I don't know what to use them for. Plus, it feels dangerous to let people pass as many arguments as they want. What's an example of a context that would be a good place to u...
- Modified
- 20 Apr at 00:54
C# vs Java Enum (for those new to C#)
I've been programming in Java for a while and just got thrown onto a project that's written entirely in C#. I'm trying to come up to speed in C#, and noticed enums used in several places in my new pr...
- Modified
- 22 Jan at 14:19
How to get pixel data from a UIImage (Cocoa Touch) or CGImage (Core Graphics)?
I have a UIImage (Cocoa Touch). From that, I'm happy to get a CGImage or anything else you'd like that's available. I'd like to write this function: ``` - (int)getRGBAFromImage:(UIImage *)image atX:(...
- Modified
- 25 Oct at 20:48
Why are primes important in cryptography?
One thing that always strikes me as a non-cryptographer: Why is it so important to use prime numbers? What makes them so special in cryptography? Does anyone have a short explanation? (I am aware tha...
- Modified
- 13 Apr at 16:18
foreach vs someList.ForEach(){}
There are apparently many ways to iterate over a collection. Curious if there are any differences, or why you'd use one way over the other. First type: ``` List<string> someList = <some way to init>...
- Modified
- 1 Nov at 11:18
Quick-and-dirty way to ensure only one instance of a shell script is running at a time
What's a quick-and-dirty way to make sure that only one instance of a shell script is running at a given time?