Hi,
how show current web browser page address with C#?
for example, should now show: http://stackoverflow.com/questions/2658592/current-web-browser-page-address
Thanks
I would like to port this question to Python (Windows + Linux + Mac Os)
http://stackoverflow.com/questions/2725529/how-to-create-ascii-animation-in-windows-console-application-using-c
Thank you!
Question: How can you use the JQuery Auto-Completion plugin to suggest a location ("City, State") for an input field?
Meaning, someone wants to type in "Chicago, IL" ... so they begin typing "Chi" and it auto-suggestions "Chicago, IL".
My biggest hurdles is finding a service that I can query to find out all US city+state names.
I essentially want to do what the StackOverflow "Tags" input form works but form "City, State" auto completion.
This question is related to http://stackoverflow.com/questions/54989/change-windows-hostname-from-command-line, but I'm in a different situation. The netdom tool will not work on a computer not joined to a domain. I've tried setting the hostname from the registry, but I was wondering if there was another way from the command-line.
This may be a duplicate of http://stackoverflow.com/questions/31672/learning-fortran-in-the-modern-era, but that thread went on discussing legacy code concerns.
Anyway, few months ago in a bookstore sale I picked up book called FORTRAN 66 for PDP-11. I found it interesting and decided it would be nice to learn FORTRAN. So I'm looking for some modern books/tutorials dealing with new versions of FORTRAN.
I've got collection of words, and i wanna create collection from this collection limited to 5 chars
Input:
Car
Collection
Limited
stackoverflow
Output:
car
colle
limit
stack
word.Substring(0,5) throws exception (length)
word.Take(10) is not good idea, too...
Any good ideas ??
Similiar to question:
http://stackoverflow.com/questions/2266132/how-can-i-get-a-list-of-element-names-from-an-xml-value-in-sql-server
How would I also get the values for the list of elements.
For example:
a1
b1
c1
Would return
Element | Value
A | a1
B | b1
C | c1
Hello everyone,
I have got a new Mac book (MacBook Pro), and I am previously using Windows. I use this MacBook for personal (e.g. instant messaging, document, browsing the web) and development (writing C++ and Java code) purpose. Any recommended discussion group or forums (or I can directly ask here in StackOverflow)? I am a newbie.
thanks in advance,
George
I am using python lxml library to parse html pages:
import lxml.html
# this might run indefinitely
page = lxml.html.parse('http://stackoverflow.com/')
Is there any way to set timeout for parsing?
I'm seeing it in a ton of search results and even copy pasted into content on this site (http://stackoverflow.com/questions/2687289/adding-a-bookmark-link-to-a-facebook-iframe-app). Is it a phishing thing or just some actual proxy thing that is innocent?
How does do you auto resize a large image to fit a smaller width div container?
Example can be seen here on stackoverflow.com - when an image is inserted onto the editor panel and it is too large for display, the image is automatically resized.
What is the best Django syncdb crash debugging technique ?
I've previously asked a question about a problem with manage.py syncdb returning an exception
and the answer was that the app has a wrong import.
http://stackoverflow.com/questions/2734721/django-manage-py-syncdb-not-working
I'd like to know the technique used to find the place where there is a wrong import.
I tried ./manage.py syncdb --verbosity=2 but I didn't get any more information that way.
I am trying to find the total number of lines added and total number of lines removed by a user in a git repository. I looked at http://stackoverflow.com/questions/1265040/how-to-count-total-lines-changed-by-a-specific-author-in-a-git-repository, which had the command git log --author="<authorname>" --pretty=tformat: --numstat, but the answer failed to give a script(however simple) to total the lines changed. What's the simplest way to sum up the lines added/removed?
Hello all.
I've noticed that some form processors make a mess out of posted TinyURLs (converting the thing to a broken 'tinyurl": "http:\/?\/?tinyurl.com\/?whatever", "ok": tr') while leaving alone other plain URLs.
I've seen it happen in WordPress, and I've seen it here on SO (eg.: http://stackoverflow.com/questions/2508690/whats-the-most-efficient-way-to-setup-a-multi-lingual-website - second comment to first answer).
Has anybody looked into what component or function is doing this? Is there a way to prevent it?
I read your matter and I wonder did you resolve it? If you found out, let me know and give mail for me. My mail is [email protected]. Thanks much!
http://stackoverflow.com/questions/2298908/advanceddatagrid-does-not-displays-object-properties
It is possible to use CRX with VS 2010:
http://stackoverflow.com/questions/1441554/can-i-use-coderush-xpress-in-visual-studio-2010
Refactor Key works. (After assigning the shortcut)
What doesn't work is QuickNav and QuickFileNav.
The Standard Shourtcut for QuickFileNav is CTRL+ALT+F, which is conflicted with VS View.F#Interactive.
But removing this shortcut or changing the shortcuts for QuickNav and QuickFileNav doesn't bring up the nav-windows.
NextReference (TABULATOR) doesn't work
Any solutions?
Other issues?
I am not sure if this fits better on StackOverflow, but here goes:
I want to programmatically log on to:
http://wrds-web.wharton.upenn.edu/wrds/index.cfm?true
I tried capturing the log on url using fiddler2 and HttpFox, but to no avail.
Is this a server side script that I cannot capture? If so how can I do the log on?
Are there any other languages besides English or cultures, that append suffixes to Arabic Numerals such as 1st or 2nd?
Do other cultures/locales use the English suffixes?
Reference - Wikipedia
I'm including this on stackoverflow because it directly relates to localization in applications I work on.
Hi
I have a need to move an item in an IEnumerable< up, that is move one item above another. What is the simplest way to do this?
A similar question was asked here but I don't have a generic list only an IEnumerable<: http://stackoverflow.com/questions/450233/generic-list-moving-an-item-within-the-list
Hi I have a web form that sends a string to one php file which redirects them to a corresponding URL. I've searched about web form hacking and I've only received information about PHP and SQL... my site only uses a single PHP file, very basic etc. Would it be open to any exploits? I'm obviously not going to post the URL, but here is some code I was working on for the php file:
http://stackoverflow.com/questions/2888077/newbie-php-coding-problem-header-function-maybe-i-need-someone-to-check-my-cod
Thanks
What is the difference between project management and process management?
Similar to this question: http://stackoverflow.com/questions/23509/what-is-the-difference-between-project-leader-and-project-manager
In one of the Stackoverflow podcasts, I remember Jeff Atwood saying that there was a configuration option in SQL Server 2008 which cuts down on locking, and was kind of an alternative to using "with (nolock)" in all your queries. Does anybody know how to enable the feature he was talking about, possibly even Jeff himself. I'm looking at deploying SQL Server 2008, and want to see if using a feature like this would help out my web application.
If an object exists outside of Flash's stage boundaries, is on the Display List, and is visible, is it causing a performance hit from Flash rendering it? In other words, does Flash render what isn't seen?
This leads me to believe so:
http://stackoverflow.com/questions/170203/how-do-you-make-flash-not-render-an-object-on-the-stage
I am looking for resources to develop HTML5 apps for iphone primarily. Are their frameworks and tools that I can use to get started? I am looking for:
Javascript frameworks that help with UI layout
Touch based controls for phones
Articles on iphone development, best practices, etc.
I searched stackoverflow and was not able to come up with a good list of resources. I am looking for examples like these http://jqtouch.com/
I'm trying to use the api-stackexchange with java but when I do the request and try to parse the response with a json parser I have an error.
public ArrayList<Question> readJsonStream(InputStream in) throws IOException {
JsonReader reader = new JsonReader(new InputStreamReader(in, "UTF-8"));
reader.setLenient(true);
try {
System.out.println(reader.nextString()); // ? special character
return readItem(reader);
} finally {
reader.close();
}
}
public ArrayList<Question> readItem(JsonReader reader) throws IOException {
ArrayList<Question> questions = new ArrayList<Question>();
reader.beginObject();
while (reader.hasNext()) {
System.out.println("here");//not print the error is before
String name = reader.nextName();
if (name.equals("items")) {
questions = readQuestionsArray(reader);
}
}
reader.endObject();
return questions;
}
public final static void main(String[] args) throws Exception {
URIBuilder builder = new URIBuilder();
builder.setScheme("http").setHost("api.stackexchange.com").setPath("/2.0/search")
.setParameter("site", "stackoverflow")
.setParameter("intitle" ,"workaround")
.setParameter("tagged","javascript");
URI uri = builder.build();
String surl = fixEncoding(uri.toString()+"&filter=!)QWRa9I-CAn0PqgUwq7)DVTM");
System.out.println(surl);
Test t = new Test();
try {
URL url = new URL(surl);
t.readJsonStream(url.openStream());
} catch (IOException e) {
e.printStackTrace();
}
}
And the error is:
com.google.gson.stream.MalformedJsonException: Expected literal value
at line 1 column 19
Here is an example of the Json :
{
"items": [
{
"question_id": 10842231,
"score": 0,
"title": "How to push oath token to LocalStorage or LocalSession and listen to the Storage Event? (SoundCloud Php/JS bug workaround)",
"tags": [
"javascript",
"javascript-events",
"local-storage",
"soundcloud"
],
"answers": [
{
"question_id": 10842231,
"answer_id": 10857488,
"score": 0,
"is_accepted": false
}
],
"link": "http://stackoverflow.com/questions/10842231/how-to-push-oath-token-to-localstorage-or-localsession-and-listen-to-the-storage",
"is_answered": false
},...
So what's the problem? Is the Json really malformed? Or did I do something not right?
Thanks, Anthony