Very strange, I have a list of products. When a user clicks on an the image it opens up a new IE window.
Firefox doesn't do this.
What could be the reason for this?
the urls are:
http://website.example.com
and clicking on the image goes to (which is hosted on another server):
http://store.website.example.com
Could this be some internal security measure or ?
There are two basic ways to subscribe to an event:
SomeEvent += new EventHandler<ArgType> (MyHandlerMethod);
SomeEvent += MyHandlerMethod;
What is the difference, and when should I chose one over the other?
Edit: If it is the same, then why does VS default to the long version, cluttering the code? That makes no sense at all to me.
I think all of us have a favourite programming language, and most of us want to add a certain feature to it.
My question is, if you were on the standards committee or were one of the language designers, what feature would you add to it?
My code looks like this:
if (firstCondition() &&
secondCondition()) {
// ... code
}
The default settings for the code formatter in NetBeans wants to put the && on a new line, like this:
if (firstCondition()
&& secondCondition()) {
// ... code
}
The formatter works well so I would just like to find the setting so it doesnt change the code to the latter. Whats the setting called?
My problem seems to be this: heap data allocated by one thread (that later dies) seems to die as well. As so:
Thread X: starts
Thread Y: starts
Thread X: ptr = new some bytes
Thread X: dies
Thread Y: tries to use ptr - and crashes!
So far, I've only seen this problem on Darwin (Mac OS 10.5 and 10.6), but haven't tried more other platforms than Windows and Linux (Ubuntu) where it works as expected. I've had this problem for some time, so any know-how or more information about this is highly appreciated!
Hi There
I have a named range like the following covering A2:D3
ITEM PRICE QTY SUBTOTAL
1 10 3 30
1 5 2 10
TOTAL: 40
I am looking for some VBA code to insert a new row into the range copying the formulas not values.
Any tips/links greatly appreciated.
I try to load an image with:
ImageIcon imageIcon = new ImageIcon(url);
if I query the load status:
imageIcon.getImageLoadStatus();
it returns MediaTracker.ERRORED
Is there a way to get an error message saying what the problem was?
I'm gettinga n error message in line 8 when I try to call out the script to stop when it finds teh attribute in the Web page: field in AD.
Set objSysInfo = CreateObject("ADSystemInfo")
strUserDN = objSysInfo.UserName
Set objUser = GetObject("LDAP://" & strUserDN)
strwWWHomePage = objItem.Get("wWWHomePage")
If wWWHomePage 6 Then
wscript.quit
Else
Set ppt = CreateObject("PowerPoint.Application")
ppt.Visible = True
ppt.Presentations.Open "\\abngan01\tracking\ppt.pptx"
End If
Why is there a need to define a new method in RESTful controller, follow it up with a create method?
Google search didn't provide me the answer I was looking for. I understand the different, but need to know why they are used the way they are.
All examples I've found on git-svn detail how to use git to mirror an existing SVN repo, work on it, then commit your changes back.
I have a pure git repo, created via git init not git-svn init and want to commit it to a new SVN service (Google Code, to be specific).
Is this something that can be done?
I have an html page which contains link to open pdf file. however this link opens in adobe reader when i click on it. I have set target property to blank. but it doesnt work either.
I want to open this pdf file in new tab in the same window.
Hi everyone, hope someone can help. just cannot get a new window to open in Firefox without address bars. IE works fine with below code
Blockquote
window.open('/pageaddress.html','winname',directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=no,resizable=no,width=400,height=350);
i need to make for all browser
Hi to All,
I developed an iPhone app which displays iPhone AddressBook contacts list.
I want to add extra fields to the selected contact.
Using AddressBook framework,it was not possible.So,i want to attach those values to the "contacts" table of my database.
How can i store(insert) those existing contacts into contacts(using sqlite3 insert command).
Please,help me with a sample code.
Thanks in Advance,
Ramya.
I like to compare two tables in oracle and copy the values from table_a to table_b with the following conditions.
Which doesn't exist in table_b but in table_a.
And only the values starting with an alphabet or not starting with a number.
And only the records modified today.
I'm not an oracle expert so please be gentle. :)
Thanks....
For about a year I have been thinking about writing a program that writes programs. This would primarily be a playful exercise that might teach me some new concepts. My inspiration came from negentropy and the ability for order to emerge from chaos and new chaos to arise out of order in infinite succession.
To be more specific, the program would start by writing a short random string. If the string compiles the programs will log it for later comparison. If the string does not compile the program will try to rewrite it until it does compile. As more strings (mini 'useless' programs) are logged they can be parsed for similarities and used to generate a grammar. This grammar can then be drawn on to write more strings that have a higher probability of compilation than purely random strings.
This is obviously more than a little silly, but I thought it would be fun to try and grow a program like this. And as a byproduct I get a bunch of unique programs that I can visualize and call art.
I'll probably write this in Ruby due to its simple syntax and dynamic compilation and then I will visualize in processing using ruby-processing.
What I would like to know is:
Is there a name for this type of programming?
What currently exists in this field?
Who are the primary contributors?
BONUS! - In what ways can I procedurally assign value to output programs beyond compiles(y/n)? I may want to extend the functionality of this program to generate a program based on parameters, but I want the program to define those parameters through running the programs that compile and assigning meaning to the programs output. This question is probably more involved than reasonable for a bonus, but if you can think of a simple way to get something like this done in less than 23 lines or one hyperlink, please toss it into your response.
I know that this is not quite meta-programming and from the little I know of AI and generative algorithms they are usually more goal oriented than what I am thinking. What would be optimal is a program that continually rewrites and improves itself so I don't have to ^_^
I am drawing a Sequence Diagram where the scenario is.
1. an Actor calls :Table::query(query:String)
:Table::query Calls :Connection::execute(query)
:Connection::execute < a new :Row Object
:Connection::execute calls :Row::fillData(result)
:Connection::execute returns :Row
...... There are More
But I am Stuck in Step 5
I cant Understand how to draw that, :Connection::execute returning the newly Constructed Row itself, in a Standard way.
I want to do a Response.Redirect("MyPage.aspx") but have it open in a new browser window. I've done this before without using the JavaScript register script method. I just can't remember how =)
Thanks
May I know how to add a new custom text field in TFS to show the lastest revision number?
Can anyone explain in deatil about
Making use of work item’s XML and customize TFS work items.
How to create custom window form control to add to work item.And installation of
custom control runtime
Hi everyone,
I'm following the Agile RoR book somewhat to apply it to a project for school. It's going good until I get to sessions. I continually get Authenticity Invalid Tokens and when I look at my sessions table in the database, there's a new session being created every time I refresh the page. Is that right or is something messed up?
Thanks.
I am new to ASP.NET Development and can't decide between developing with Webforms or MVC 2. Nevermind the pros and cons of each. I've seen mixed opinions of each. But which method would be the best for someone who has no prior experience in ASP.NET or C#?
If your answer is: learn both, then which should I learn first? MVC 2 or Webforms?
When I create a new sharepoint site collection, is there some way I can automatically set the regional settings to my local settings as part of the creation process? In particular, I want to set the default date/time format to be non-US.
Thanks
I'm relearning UNIX commands to use git on windows using MINGW32.
When I launch a program, for example "$ notepad hello.txt" I can't use the shell again until I close the notepad file or CTRL-C in the shell.
How do I essentially fork a new process so I can use both programs?