Where Linux/Unix environment variables are kept? How can I add my own environment variable and make it persistent, not only within currently running script?
I'm wondering if you have one, or u know any developer/programmer online portofolio. I know many web developers have one (and in many cases very well designed), but not any C++ developer (for example). On the net there are only some good blogs about some programming language, but in many cases these are extremely poor from a design point of view…
I am trying to recreate a page flipping type animation in HTML5 using canvas. The animation is based on ideas from here: hxxp://oreilly.com/javascript/archive/flashhacks.html but thats not really important. The problem I am having is that using the 'source-in' composite operation is not giving me the results I expect and would like clarification…
The Android API with LocationManager.getProvider(String name) has the option to choose between NETWORK_PROVIDER and GPS_PROVIDER. What should I consider when choosing one for my application?
I retrieved data from the log table in my database. Then I started finding unique users, comparing/sorting lists, etc.
In the end I got down to this.
stats = {'2010-03-19': {'date': '2010-03-19', 'unique_users': 312, 'queries': 1465}, '2010-03-18': {'date': '2010-03-18', 'unique_users': 329, 'queries': 1659}, '2010-03-17': {'date':…
I have a web application made for several groups of people not connected with each other. Instead of using one database for all of them, I'm thinking about making separate databases.
This will improve the speed of the queries and make me free from checking to what group the user belongs.
But since I'm working with LINQ to SQL, my…
I have a code
void SomeButton_Click(object sender, EventArgs e)
{
if (this.Controls.Contains(Panel2))
{
this.Controls.Remove(Panel2);
}
else
{
this.Controls.Add(Panel2);
}
}
My problem is: the code changes document…
How do YOU debug a Scala program?
I mean YOU as in the person posting the Answer :) Please answer only from personal experience, not from stuff you've heard or read on the Internet. You should not believe everything you read on the Internet, especially tales of complex open-source software configurations that actually work :-)
…
Hi all.
Problem:
I am using JComboBox, and tried using setSelectionIndex(-1) in my code (this code is placed in caretInvoke())
suggestionComboBox.removeAllItems();
for (int i = 0; i < suggestions.length; i++) {
suggestionComboBox.addItem(suggestions[i]);
}
suggestionComboBox.setSelectedIndex(-1);
…
Running Eclipse 3.5.1, JDK 1.6.0_17 on WinXP SP3 32Bit with 3.5 gigs of RAM.
I'm aware of the known Eclipse best practices, still trying to figure out eclipse.ini.
This will launch: -Xmx588m and this won't: -Xmx589m.
Same with -XX:MaxPermSize. Anything above -XX:MaxPermSize=140m won't launch.
The screen of death is simlar…
I'm trying to pass a variable from one function to another, but the var elmId is being returned as an object and giving an error. When we click on any of the generated divs we should be able to change the size of the div by choosing a width / height value from the drop down menus.
I'm trying to pass the clicked div id…
I am trying to get the number of rows affected in a simple mysql update query. However, when I run this code below, PHP's mysql_affected_rows() always equals 0. No matter if foo=1 already (in which case the function should correctly return 0, since no rows were changed), or if foo currently equals some other integer…
When using .Protocols, I can run the following pseudocode to authenticate to an AD:
try
{
LdapConnection c = new LdapConnection("User", "Password");
c.Bind();
}
catch (LdapException le)
{
Debug.WriteLine(le.ResultCode);
}
This code will allow me to get the "Invalid Credentials" error string, and the AD…
Hello,
I have an XML file that looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<PrivateSchool>
<Teacher id="teacher1">
<Name>
teacher1Name
</Name>
</Teacher>
<Teacher id="teacher2">
<Name>
…
I have been looking into this for a little while now.
I have a gallery on my page, that uses Ariel Flesler's scrollTo plugin.
It works fine on the home page, but not on the Contact page.
In Firefox, I get the error...
Too much recursion
I have sorted through as much code as possible and set…
So on my site there is a Javascript function that will load a new site from the server via XMLHttpRequest. After that it replaces the current page with the new one:
var post = new XMLHttpRequest();
post.open('POST', data);
post.onload = function() {
var do = document.open("text/html",…
I want to pass some parameters (e.g string parameter = request.getParameter("blah")) from JSP page to XSL stylesheet for purposes of filtering the XML file based on some criteria which is the parameter to be passed. Is there any way how I can do it??
I have a YQL query that extracts data from a page and returns it to my script as JSON. The JSON is huge, and as such, here's my question:
Is JSON array parsable? So that I can iterate over the entire JSON structure?
It seems that javascript only can ready inline css if i want to check if element is display:hidden getting it with:
el.style.display
But how to check if display:none is placed inside external CSS file?
I am receiving a lot of deadlocks in my big web application.
http://stackoverflow.com/questions/2941233/how-to-automatically-re-run-deadlocked-transaction-asp-net-mvc-sql-server
Here I wanted to re-run deadlocked transactions, but I was told to get rid of the deadlocks - it's much…
Hi,
I have a div absolutely positioned at top: 0px and right: 0px, and I would like to use jquery. animate to animate it from it's current position to left: 0px. How does one do this? I can't seem to get this to work:
$("#coolDiv").animate({"left":"0px", "slow");
Why doesn't this…
I have a page that is just a non interactive display for a shop window.
Obviously, I don't link to it, and I'd also like to avoid people stumbling across it (by Google etc).
It will always be powered by Chrome.
I have thought of...
Checking User Agent for Chrome
Ensuring…
My app is a very simple "one page" type app-
It has Default.aspx
I'm basically trying to get, for example:
www.myappurl.com/this is my text
I want to get hold of "this is my text" from the above example.
This will be displayed on the page (for now)
I didn't really want to…
Hi everybody,
I am developing with NHibernate for the first time in conjunction with ASP.NET MVC and StructureMap. The CodeCampServer serves as a great example for me. I really like the different concepts which were implemented there and I can learn a lot from it.
In my…