python location on mac osx
I'm a little confused with the python on osx. I do not know if the previous owner of the laptop has installed macpython using macport. And I remembered that osx has an builtin version of python. I tri...
Updating address bar with new URL without hash or reloading the page
I either dreamt about chrome (dev channel) implementing a way to update the address bar via javascript (the path, not domain) without reloading the page or they really have done this. However, I can'...
- Modified
- 23 May at 12:26
Fastest Way of Inserting in Entity Framework
I'm looking for the fastest way of inserting into Entity Framework. I'm asking this because of the scenario where you have an active `TransactionScope` and the insertion is huge (4000+). It can potent...
- Modified
- 3 Jul at 13:36
Update R using RStudio
How can I update R via RStudio?
How can I ask the Selenium-WebDriver to wait for few seconds in Java?
I'm working on a Java Selenium-WebDriver. I added ``` driver.manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS); ``` and ``` WebElement textbox = driver.findElement(By.id("textbox")); ``` ...
- Modified
- 21 May at 22:39
This API project is not authorized to use this API. Please ensure that this API is activated in the APIs Console
I have a latitude, and longitude : `"-27.0000,133.0000"`. I want produce a map base on that. I've tried go to this link `https://maps.googleapis.com/maps/api/geocode/json?latlng=-27.0000,133.0000&...
- Modified
- 27 Jan at 21:6
How to word wrap text in HTML?
How can text like `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` which exceeds the width of a `div` (say `200px`) be wrapped? I am open to any kind of solution such as CSS, jQuery, etc.
Refresh Part of Page (div)
I have a basic html file which is attached to a java program. This java program updates the contents of part of the HTML file whenever the page is refreshed. I want to refresh only that part of the pa...
- Modified
- 17 Apr at 04:9
IDENTITY_INSERT is set to OFF - How to turn it ON?
I have a deleted file archive database that stores the ID of the file that was deleted, I want the admin to be able to restore the file (as well as the same ID for linking files). I do not want to t...
- Modified
- 7 Mar at 09:11
vbscript output to console
What is the command or the quickest way to output results to console using vbscript?
How to link to a named anchor in Multimarkdown?
I have come across a number of mentions of MultiMarkdown's support for internal links / named anchors but I am unable to find a single example of how to actually do it. So, what is the syntax for de...
- Modified
- 30 Jul at 12:14
TypeError: 'list' object is not callable while trying to access a list
I am trying to run this code where I have a list of lists. I need to add to inner lists, but I get the error ``` TypeError: 'list' object is not callable. ``` Can anyone tell me what am I doing wr...
Listening for variable changes in JavaScript
Is it possible to have an event in JS that fires when the value of a certain variable changes? JQuery is accepted.
- Modified
- 26 Aug at 11:50
What does __all__ mean in Python?
I see `__all__` in `__init__.py` files. What does it do?
- Modified
- 9 Apr at 07:44
Removing multiple files from a Git repo that have already been deleted from disk
I have a Git repo that I have deleted four files from using `rm` ( `git rm`), and my Git status looks like this: ``` # deleted: file1.txt # deleted: file2.txt # deleted: file3.txt #...
- Modified
- 24 Jun at 06:12
How do I get the picture size with PIL?
How do I get a size of a pictures sides with PIL or any other Python library?
- Modified
- 5 Jan at 09:8
make iframe height dynamic based on content inside- JQUERY/Javascript
I am loading an aspx web page in an iframe. The content in the Iframe can be of more height than the iframe's height. The iframe should not have scroll bars. I have a wrapper `div` tag inside the ifr...
- Modified
- 10 Aug at 22:49
Setting table row height
I have this code: ``` <table class="topics" > <tr> <td style="white-space: nowrap; padding: 0 5px 0 0; color:#3A5572; font-weight: bold;">Test</td> <td style="padding: 0 4px 0 0;...
How to permanently add a private key with ssh-add on Ubuntu?
I have a private key protected with a password to access a server via SSH. I have 2 linux (ubuntu 10.04) machines and the behavior of ssh-add command is different in both of them. In one machine, ...
How to read values from properties file?
I am using spring. I need to read values from properties file. This is internal properties file not the external properties file. Properties file can be as below. ``` some.properties ---file name. ...
- Modified
- 23 Feb at 09:12
Remove the last character in a string in T-SQL?
How do I remove the last character in a string in `T-SQL`? For example: ``` 'TEST STRING' ``` to return: ``` 'TEST STRIN' ```
- Modified
- 17 Apr at 08:34
How to replace text in a string column of a Pandas dataframe?
I have a column in my dataframe like this: ``` range "(2,30)" "(50,290)" "(400,1000)" ... ``` and I want to replace the `,` comma with `-` dash. I'm currently using this method but nothing is changed...
Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user 'root'@'localhost'(using password:YES)
I've been trying to create a new database connection on workbench. However, every time I test a connection there is an error message that says > Failed to connect to mysql at 127.0.0.1:3306 with user...
- Modified
- 20 May at 10:16
What is the best Java email address validation method?
What are the good email address validation libraries for Java? Are there any alternatives to [commons validator](http://commons.apache.org/proper/commons-validator/apidocs/org/apache/commons/validato...
- Modified
- 29 Jun at 14:14
How do I commit case-sensitive only filename changes in Git?
I have changed a few files name by de-capitalize the first letter, as in `Name.jpg` to `name.jpg`. Git does not recognize this changes and I had to delete the files and upload them again. Is there a ...
- Modified
- 25 Jul at 21:23