|
Source: http://community.livejournal.com/javascript/142636.html
Date: 10/23/07 (Data Management) Keywords: asp
IBM's newest AIX products feature the Power6, Sun's the UltraSPARC T2. It probably makes sense, therefore, to base a data center hardware cost comparison as much as possible on these two technologies. Comparable scaling is a key issue, but there's enough consistency about the benchmark...
Date: 10/26/07 (Web Development) Keywords: asp, java, google
Ok, we've got a form where people put in their first name, last name, email address, and a five digit number. On the confirmation page, we want to return to them: the first initial of their first name and full last name and then the first initial of their first name, first initial of their last name, and the five digits they put in.
For example, if I entered:
First Name: Brittany
Last Name: Jackson
5 Digits: 12345
I would want returned:
bjackson
bj12345
We are using Javascript for it, and where it previously worked, it suddenly stopped working. Thanks to all of your wonderful suggestions and help, I now have it working in Internet Explorer, Opera, and Safari, but it won't work in Netscape or Firefox and I'm not sure why. I have searched and googled it, but haven't come up with an answer.
On the form page, the javascript we have in the header is (with the script type="text/javascript" in the appropriate < >'s, of course:
//script type="text/javascript"
function verify(forms) {
var errors='';
if ((document.forms.first.value == "") || (document.forms.last.value == ""))
errors+="Please enter your first and last name.\n";
if (errors){
alert(errors)
return false;}
fa = document.forms.first.value.charAt(0);
la = document.forms.last.value.charAt(0)
var len;
var aryText = new Array()
var hyp = "";
if (document.forms.last.value.indexOf ('-') != -1) {
len = document.forms.last.value.indexOf('-')
for (var i = 0; i < len) i++; {
aryText[i] = document.forms.last.value.charAt[i];
hyp = hyp + aryText[i];
}
document.forms.username.value = fa.toLowerCase() + hyp.toLowerCase();
}
else if (document.forms.last.value.indexOf (' ') != -1) {
len = document.forms.last.value.indexOf(' ')
for (var i = 0; i < len) i++; {
aryText[i] = document.forms.last.value.charAt[i];
hyp = hyp + aryText[i];
}
document.forms.username.value = fa.toLowerCase() + hyp.toLowerCase();
}
else{
document.forms.username.value = fa.toLowerCase() + document.forms.last.value.toLowerCase();
}
document.forms.code.value = fa.toLowerCase() + la.toLowerCase() + document.forms.ssn.value;
return true;
}
//
The words after form relate to the fields in the form.
And then in the body, under the start of the form class we have (obviously these would have the start and end tags (<>):
form class="forms" name="forms" action="apply.asp" method="post"
input type="hidden" name="code"
onchange="javascript:this.value=this.value.toLowerCase();" /
input type="hidden" name="username"
onchange="javascript:this.value=this.value.toLowerCase();" /
On our confirmation page/asp page we have:
//
Date: 10/26/07 (WebDesign) Keywords: asp, java, google
Ok, we've got a form where people put in their first name, last name, email address, and a five digit number. On the confirmation page, we want to return to them: the first initial of their first name and full last name and then the first initial of their first name, first initial of their last name, and the five digits they put in.
For example, if I entered:
First Name: Brittany
Last Name: Jackson
5 Digits: 12345
I would want returned:
bjackson
bj12345
We are using Javascript for it, and where it previously worked, it suddenly stopped working. Thanks to all of your wonderful suggestions and help, I now have it working in Internet Explorer, Opera, and Safari, but it won't work in Netscape or Firefox and I'm not sure why. I have searched and googled it, but haven't come up with an answer.
On the form page, the javascript we have in the header is (with the script type="text/javascript" in the appropriate < >'s, of course:
//script type="text/javascript"
function verify(forms) {
var errors='';
if ((document.forms.first.value == "") || (document.forms.last.value == ""))
errors+="Please enter your first and last name.\n";
if (errors){
alert(errors)
return false;}
fa = document.forms.first.value.charAt(0);
la = document.forms.last.value.charAt(0)
var len;
var aryText = new Array()
var hyp = "";
if (document.forms.last.value.indexOf ('-') != -1) {
len = document.forms.last.value.indexOf('-')
for (var i = 0; i < len) i++; {
aryText[i] = document.forms.last.value.charAt[i];
hyp = hyp + aryText[i];
}
document.forms.username.value = fa.toLowerCase() + hyp.toLowerCase();
}
else if (document.forms.last.value.indexOf (' ') != -1) {
len = document.forms.last.value.indexOf(' ')
for (var i = 0; i < len) i++; {
aryText[i] = document.forms.last.value.charAt[i];
hyp = hyp + aryText[i];
}
document.forms.username.value = fa.toLowerCase() + hyp.toLowerCase();
}
else{
document.forms.username.value = fa.toLowerCase() + document.forms.last.value.toLowerCase();
}
document.forms.code.value = fa.toLowerCase() + la.toLowerCase() + document.forms.ssn.value;
return true;
}
//
The words after form relate to the fields in the form.
And then in the body, under the start of the form class we have (obviously these would have the start and end tags (<>):
form class="forms" name="forms" action="apply.asp" method="post"
input type="hidden" name="code"
onchange="javascript:this.value=this.value.toLowerCase();" /
input type="hidden" name="username"
onchange="javascript:this.value=this.value.toLowerCase();" /
On our confirmation page/asp page we have:
//
Source: http://community.livejournal.com/webdesign/1325463.html
Date: 10/26/07 (Javascript Community) Keywords: browser, asp, java, google
**EDIT**
What I am asking for, is if the javascript code below is not compatible with Netscape or Firefox for some reason or if you know of any reason why it might not work in only those browsers. I can't figure out why it's not working in only those two browsers. It gives back the appropriate information in IE, Safari and Opera.
I have attempted to search online for it but I keep hitting dead-ends. If you have suggestions as to what keywords I should be searching for online, that would also be appreciated. I have been searching for "javascript, netscape, safari, compatibility, issues, problems" and various other words like that. The code below does work in IE 6 and 7, Safari, and Opera.
Ok, we've got a form where people put in their first name, last name, email address, and a five digit number. On the confirmation page, we want to return to them: the first initial of their first name and full last name and then the first initial of their first name, first initial of their last name, and the five digits they put in.
For example, if I entered:
First Name: Brittany
Last Name: Jackson
5 Digits: 12345
I would want returned:
bjackson
bj12345
We are using Javascript for it, and where it previously worked, it suddenly stopped working. Thanks to all of your wonderful suggestions and help, I now have it working in Internet Explorer, Opera, and Safari, but it won't work in Netscape or Firefox and I'm not sure why. I have searched and googled it, but haven't come up with an answer.
On the form page, the javascript we have in the header is (with the script type="text/javascript" in the appropriate < >'s, of course:
//script type="text/javascript"
function verify(forms) {
var errors='';
if ((document.forms.first.value == "") || (document.forms.last.value == ""))
errors+="Please enter your first and last name.\n";
if (errors){
alert(errors)
return false;}
fa = document.forms.first.value.charAt(0);
la = document.forms.last.value.charAt(0)
var len;
var aryText = new Array()
var hyp = "";
if (document.forms.last.value.indexOf ('-') != -1) {
len = document.forms.last.value.indexOf('-')
for (var i = 0; i < len) i++; {
aryText[i] = document.forms.last.value.charAt[i];
hyp = hyp + aryText[i];
}
document.forms.username.value = fa.toLowerCase() + hyp.toLowerCase();
}
else if (document.forms.last.value.indexOf (' ') != -1) {
len = document.forms.last.value.indexOf(' ')
for (var i = 0; i < len) i++; {
aryText[i] = document.forms.last.value.charAt[i];
hyp = hyp + aryText[i];
}
document.forms.username.value = fa.toLowerCase() + hyp.toLowerCase();
}
else{
document.forms.username.value = fa.toLowerCase() + document.forms.last.value.toLowerCase();
}
document.forms.code.value = fa.toLowerCase() + la.toLowerCase() + document.forms.ssn.value;
return true;
}
//
The words after form relate to the fields in the form.
And then in the body, under the start of the form class we have (obviously these would have the start and end tags (<>):
form class="forms" name="forms" action="apply.asp" method="post"
input type="hidden" name="code"
onchange="javascript:this.value=this.value.toLowerCase();" /
input type="hidden" name="username"
onchange="javascript:this.value=this.value.toLowerCase();" /
On our confirmation page/asp page we have:
//
Source: http://community.livejournal.com/javascript/143636.html
Date: 11/01/07 (Algorithms) Keywords: software, asp, web, microsoft
Cracking GO By Feng - Hsiung Hsu
First Published October 2007 < http://www.spectrum.ieee.org/oct07/5552 >
Brute-force computation has eclipsed humans in chess, and it could soon do the same in this ancient Asian game
In 1957, Herbert A. Simon, a pioneer in artificial intelligence and later a Nobel Laureate in economics, predicted that in 10 years a computer would surpass humans in what was then regarded as the premier battleground of wits: the game of chess. Though the project took four times as long as he expected, in 1997 my colleagues and I at IBM fielded a computer called Deep Blue that defeated Garry Kasparov, the highest-rated chess player ever.
You might have thought that we had finally put the question to rest—but no. Many people argued that we had tailored our methods to solve just this one, narrowly defined problem, and that it could never handle the manifold tasks that serve as better touchstones for human intelligence. These critics pointed to weiqi, an ancient Chinese board game, better known in the West by the Japanese name of Go, whose combinatorial complexity was many orders of magnitude greater than that of chess. Noting that the best Go programs could not even handle the typical novice, they predicted that none would ever trouble the very best players.
Ten years later, the best Go programs still can't beat good human players. Nevertheless, I believe that a world-champion-level Go machine can be built within 10 years, based on the same method of intensive analysis—brute force, basically—that Deep Blue employed for chess. I've got more than a small personal stake in this quest. At my lab at Microsoft Research Asia, in Beijing, I am organizing a graduate student project to design the hardware and software elements that will test the ideas outlined here. If they prove out, then the way will be clear for a full-scale project to dethrone the best human players... (full story at the above website)
Source: http://community.livejournal.com/algorithms/94110.html
Date: 11/10/07 (Code WTF) Keywords: asp, microsoft
Недавно я наткнулся в MSDN на такой прекрасный образец индуского кода:
один. http://msdn2.microsoft.com/en-us/library/bke28kf2(VS.80).aspx
два. http://msdn2.microsoft.com/en-us/library/0ee18a2x(VS.71).aspx
посмотрите только как эти быдленыши с расжиженными от .нет мозгами пользуются stl. в индии видимо не знаюn, что такое back_inserter... и не только про это!
Source: http://community.livejournal.com/code_wtf/112327.html
Date: 11/14/07 (Algorithms) Keywords: asp
Hello.
Computation is the process of state transition. An algorithm is a permutation of those states in such a way as to produce a correct output. 'Correct' means that what was put in agrees with what came out, and everyone's perceptions of those things.
"The fundamental problem of communication is that of reproducing at one point, either exactly or approximately, a message selected at another point." [Claude Shannon, "A Mathematical Theory of Communication"]
The algorithm is communication. That idea has always meant something to me.
So there's no use wasting words. I have an algorithm.
A while back, I had to solve the common maze-running problem for a course. The instructor gave the usual depth-first and breadth-first search algorithms, but instead of implementing one of those, I spent an extra week or so developing my own algorithm, based on what is, as far as I know, an entirely novel idea.
We have these assumptions:
STEP 1: Input maze grid; set UP = {(START_ROW, START_COL)}, DOWN = {(END_ROW, END, COL)}, and ALL = {all open spaces in grid};
STEP 2: while(UP intersection DOWN is empty AND new elements were added to UP or DOWN on the last iteration)
repeat STEP 3 through STEP 5;
STEP 3: DOWN = {all elements located by PingDwn( )} union DOWN;
DOWN = DOWN union {all elements of ALL adjacent to an element of DOWN};
STEP 4: UP = {all elements located by PingUp( )} union UP;
UP = UP union {all elements of ALL adjacent to an element of UP};
STEP 5: ALL = ALL complement (UP union DOWN);
STEP 6: if(the loop exited with no new elements added either to UP or DOWN)
output NO SOLUTION;
EXIT;
else
go to STEP 7;
STEP 7: PATH = {(START_ROW, START_COL), (END_ROW, END_COL)} union (UP intersection DOWN);
STEP 8: while(an element not in PATH could be pinged between any pair of points in PATH)
repeat STEP 9;
STEP 9: for(each pair of elements p1, p2 in PATH)
repeat STEP 3 through STEP 5, subsituting p1 for START and p2 for END;
STEP 10: output maze, description of the solution;
EXIT;
It also serves to more completely describe the "ping" operation; we do so for PingDwn only; the operation for PingUp
is distinct only in that the directions are reversed, and '-' is substituted for '+'.
STEP 1: Input START := (START_ROW, START_COL);
DOWN = {START};
STEP 2: while(elements could be added to DOWN)
repeat STEP 3;
STEP 3: for(each element (i, j) in DOWN)
if((i + 1, j) is CLEAR)
add to DOWN;
if((i, j + 1) is CLEAR)
add to DOWN;
STEP 4: return the list DOWN;
solve(start, end, PathList){
if(start == end){
return NULL;
}
else{
mid = ping(start, end); /*meet half-way*/
if(NULL == mid){
NO SOLUTION; /*if no common point, no solution*/
goto END;
}
insert(mid, PathList); /*else add mid-way to solution*/
solve(start, mid, PathList);
solve(mid, end, PathList);
}
}
Source: http://community.livejournal.com/algorithms/94758.html
Date: 11/16/07 (C Sharp) Keywords: asp, web
I have the need to pass data in a JPG image.
That is, I'm generating the JPG image dynamically using GDI+ in .NET from an ASP.NET call. What I need to do is place some data into the JPG, say a GUID, and be able to read it back when I load the JPG from the web site where it is displayed.
I surely can't do this with the actual image data, as my understanding is that JPG is run-encoded and getting data in and out would be a bear.
Are there any metadata headers in JPG that I have access to? Anyone know of or have any C# code to read and write these?
Date: 11/16/07 (Computer Geeks) Keywords: asp, web
I have the need to pass data in a JPG image.
That is, I'm generating the JPG image dynamically using GDI+ in .NET from an ASP.NET call. What I need to do is place some data into the JPG, say a GUID, and be able to read it back when I load the JPG from the web site where it is displayed.
I surely can't do this with the actual image data, as my understanding is that JPG is run-encoded and getting data in and out would be a bear.
Are there any metadata headers in JPG that I have access to? Anyone know of or have any C# code to read and write these?
Source: http://community.livejournal.com/computergeeks/1126762.html
Date: 11/19/07 (Computer Geeks) Keywords: php, software, html, asp, web
When quad-cores collide: AMD Phenom vs Intel Core 2 Quad
http://www.hexus.net/content/item.php?item=10427
"We can debate all day whether the majority of consumer software is threaded enough to take advantage of four execution cores, but the immutable fact remains that AMD's fastest quad-core offering is slower than Intel's slowest..."
"...AMD's nascent Phenom also suffers under the considerable yoke of Intel's Core 2 Quad 6600 pricing, which at £165 for a hugely-overclockable 2.4GHz part is something of a bargain. AMD, though, is pitching its slightly underperforming quad-core part at roughly the same price."
The problem is, and I hate to ruin the surprise here, Phenom isn't faster than Intel's Core 2 Quad clock for clock. In other words, a 2.3GHz Phenom 9600 will set you back at least $283 and it's slower than a 2.4Ghz Core 2 Quad Q6600, which will only cost you $269.
Source: http://community.livejournal.com/computergeeks/1127705.html
Date: 11/21/07 (WebDesign) Keywords: asp, web, google
This is a very desperate cry for help. I seem to have broken my company's website.
How do I set index.asp in the directory public as the default page?
Nothing is working and I'm not sure what it is that I deleted accidentally :(
I'm kind of new to ASP, and I can't seem to find anything helpful with a Google search.
Source: http://community.livejournal.com/webdesign/1333611.html
Date: 11/22/07 (Web Development) Keywords: database, asp, security, web, shopping
Hi all,
I'll write my C# frustrations here...Note that this is for an assignment, so there is no need to worry about security issues and all those other wonderful things. I would ask my professor, but he's a programmer...and he's horrible at getting his thoughts across.
I created a web form that allows users to choose a certain amount of a product they want, and afterwards, it all gets confirmed and a message shows up saying the conversion was completed (even though it wasn't...not yet anyway)
Please note that I am NOT looking for code answers just to copy and paste. I would like the theory of how I should go about solving this - since most websites just give you a basic understanding of how try/catch works.
Problem 1: How do I implement the "try", "catch", "finally" exception if a user picks the same product and quantity twice? I already have an if-statement that keeps track of what has been chosen in the user's session. Would the try/catch go into that if-statement?
Problem 2: What if the user decides to first order 3 items of a product, then decides to order more? How would I input this into the "try", "catch", "finally"? I have an if-statement that keeps track of whether the quantity has been "trimmed" or not.
Problem 3: Do I need a database connection command in that particular web page to determine how much of a product has been chosen and how much is available to other users?
Problem 4: Confirmation e-mail. I understand the whole idea of "using System.Net;" for email, but how would I go about implementing code to get an e-mail application started? (This problem/question is seperate from the code below)
Here's my code for the different problems 1 - 3:
Date: 11/26/07 (Asp Dot Net) Keywords: asp, web
Is App_Code a ASP.NET 2.0 (VS2005) or ASP.NET 3.5 (VS2008) feature? I've tried running a simple little page on my local IIS system as well as my webhost (Brinkster), and both times it tells me the class from the code in my App_Code directory is missing, and it throws this error:
Compiler Error Message: BC30002: Type 'TestFunctions' is not defined.
However, when I test the same page out using Cassini, it works without any problems. I apologize if this is worded awkwardly, I'm a bit new to ASP.NET 2.0/3.5 scene.
Any help would be welcome. Thanks!
EDIT: Hmm. Looks like the App_Code directory needs to be in your wwwroot directory for it to work.
Source: http://community.livejournal.com/aspdotnet/93438.html
Date: 12/09/07 (Computer Geeks) Keywords: software, asp
I'm working with a museum that needs a better way to track visitors - whether they're members, why they came, etc. Right now they're using a log book which means that people write things that don't fit into the categories, skip anything they don't remember - well, it's a data disaster.
It seems to me that they need a simple laptop at the reception desk with a program on it that allows input into specific categories and an easy way to name and add special events. This sounds like an Excel script to me, but since I have virtually no knowledge of Excel (beyond making pretty graphs) I'm not sure I'm right. Does this sound plausible to you? Or is there existing cheap-free software that does it better?
If you know how to write such a script, how much should they budget paying a developer to do it?
FYI, http://www.haywardareahistory.org/default.asp is the museum. TIA for any help and advice.
edit: It should allow entries as visitors come in and provide a daily tally. Monthly and annual totals would be nice, too.
Source: http://community.livejournal.com/computergeeks/1134279.html
Date: 12/11/07 (Asp Dot Net) Keywords: asp
I'm sure this question has been asked a thousand times so I apologize in advance.
I have a grid with two columns. I'd like one of them to be a link which the user can click on to load more details.
I've seen how I can use a HyperLinkField to do this but then I have to put the item ID in the URL /details.aspx?id={0} etc.
Instead I'd like to use the SelectedIndexChanged Event. I made a version of the grid that will do what I want using a CommandField column.
Unfortunately the CommandField column has "Select" in each row - whereas I would like the item name.
Is there a way to do that using the CommandField column or should I use another approach ?
Source: http://community.livejournal.com/aspdotnet/93930.html
Date: 12/26/07 (Web Development) Keywords: asp, web
Hey Gang,
I'm creating a website and was wondering if there was a way to centralize changes that would take effect on every webpage by referencing the base page/layout. For example, if I made a menu, the menu would show on every page without me having to copy and paste the code. I know there are master pages with ASP, but is there any other way? What's the "old school" way of doing this?
Thanks.
Date: 12/26/07 (Computer Geeks) Keywords: asp
Intel Celeron E1600 OC'ed to 3.6GHz
http://en.hardspell.com/doc/showcont.asp?news_id=2144
Remember the Celeron 300A, the most bang-for-buck processor ever made? I had one of those. I ordered one that came in a motherboard/CPU bundle. It was overclocked and tested by the dealer to 450MHz, a 50% overclock. I used the thing for 7 years before it finally croaked (and I think it was the motherboard that died from aging caps, not the processor).
Intel is coming back with Celeron E1600, and it appears that the same ridiculous 50% overclocking is achievable at least on engineering samples. If the same results are met on production (Core architecture chips have a fairly good track record as far as the performance of ES vs. production units are concerned) then I'd expect a stampede of buyers once again scooping up these little buggers once they hit the shops...
Feels like 1999 all over again.
Source: http://community.livejournal.com/computergeeks/1139584.html
Previous page | || | Next page |