1. Design Practices

    Date: 09/23/07 (WebDesign)    Keywords: php, html, asp, web

    Hello! I'm here with a request for help.

    I've been designing personal websites for about 7-8 years now. Lately I've been feeling pretty unhappy with what I'm creating. Due to being busy with school, I've fallen behind on coding practices and don't really use PHP or newer HTML forms/styles. Coding has always been my favorite part of maintaining sites, so this is a bit stressing (not to mention embarrassing).

    However, I am struggling the most with the design aspect of website creation. I'm wondering if any readers/posters here could point me in the direction of resources (eg tutorials, tips, gallery examples) of how to design good graphics. I'm concerned that I'm missing the basic elements of this process, such as what makes a good layout, how to do popular effects in a graphics program, little things of which the designer should be aware, and so forth. I know my way around Paint Shop Pro 7 (that's the limit of my abilities, I'm afraid), so I don't necessarily need an introduction to the tools available... but more or less how to use those tools to create aesthetic graphics.

    In other words, any resources available (preferably for free, but if you have a book that'd you'd really recommend I would appreciate that, too) concerning design or possibly PHP would be wonderful.

    Thanks so much in advance!

    Source: http://community.livejournal.com/webdesign/1313454.html

  2. Greetings...you're infected

    Date: 10/08/07 (Security)    Keywords: asp, virus, web

    Avinti CEO William Kilmer says the industry is late to grasp the challenge of blended threats that are moving viruses from e-mail to the Web. The Storm Worm ranks as one of this year's most virulent and persistent viruses. After making a January debut, transported by e-mail, the...

    Source: http://news.zdnet.com/2010-1009_22-6211929.html

  3. Ok...so weird question for you....

    Date: 10/12/07 (Javascript Community)    Keywords: asp, java

    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.

    On the form page, the javascript we have in the header is:

    //
    function verify(form) {
    var errors='';
    if ((document.form.first.value == "") || (document.form.last.value == ""))
    errors+="Please enter your first and last name.\n";
    if (errors){
    alert(errors)
    return false;}

    fa = document.form.first.value.charAt(0);
    la = document.form.last.value.charAt(0)

    var len;
    var aryText = new Array()
    var hyp = "";

    if (document.form.last.value.indexOf ('-') != -1) {
    len = document.form.last.value.indexOf('-')
    for (var i = 0; i < len) i++; {
    aryText[i] = document.form.last.value.charAt(i);
    hyp = hyp + aryText[i];
    }
    document.form.username.value = fa.toLowerCase() + hyp.toLowerCase();
    }

    else if (document.form.last.value.indexOf (' ') != -1) {
    len = document.form.last.value.indexOf(' ')
    for (var i = 0; i < len) i++; {
    aryText[i] = document.form.last.value.charAt(i);
    hyp = hyp + aryText[i];
    }
    document.form.username.value = fa.toLowerCase() + hyp.toLowerCase();
    }

    else{
    document.form.username.value = fa.toLowerCase() + document.form.last.value.toLowerCase();
    }
    document.form.code.value = fa.toLowerCase() + la.toLowerCase() + document.form.numbers.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="oursite.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:

    //

Name Username* E-mail Address* Code

<% Response.Write(first)
Response.Write(" ")
Response.Write(last) %>
<% Response.Write(username) %> <% Response.Write(username) %>@oursite.org <% Response.Write(code) %>
//

It currently returns the first and last name, but nothing else. Again, as far as anyone knows, no changes were made to this page and it had been working for over one year. In the last 2-3 weeks sometime, it suddenly stopped and we can't track down why or how.

Can someone see something that we're missing? The person who originally created this has since left and no one really knows a ton about javascript. I've been researching for days and am at a loss.

I would appreciate it!! Thank you!!

Source: http://community.livejournal.com/javascript/142636.html

  • AIX vs. Solaris (4)

    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...

    Source: http://blogs.zdnet.com/Murphy/?p=989

  • One problem, similar to before, but different!

    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:

    //

    Name
    Username*
    E-mail Address*
    Code



    <% Response.Write(first)
    Response.Write(" ")
    Response.Write(last) %>
    <% Response.Write(username) %>
    <% Response.Write(username) %>@oursite.org
    <% Response.Write(code) %>

    //

    It currently returns the first and last name in Netscape and Firefox, but nothing else. Again, it is working in Internet Explorer, Safari, and Opera.

    Can someone see something that we're missing that is unique only for Firefox and Netscape?

    Any help is truly appreciated! You guys are great! Thanks in advance!!

    Source: http://community.livejournal.com/webdev/443669.html

  • One problem, similar to before, but different!

    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:

    //

    Name
    Username*
    E-mail Address*
    Code



    <% Response.Write(first)
    Response.Write(" ")
    Response.Write(last) %>
    <% Response.Write(username) %>
    <% Response.Write(username) %>@oursite.org
    <% Response.Write(code) %>

    //

    It currently returns the first and last name in Netscape and Firefox, but nothing else. Again, it is working in Internet Explorer, Safari, and Opera.

    Can someone see something that we're missing that is unique only for Firefox and Netscape?

    Any help is truly appreciated! You guys are great! Thanks in advance!!

    Source: http://community.livejournal.com/webdesign/1325463.html

  • One problem, similar to before, but different!

    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:

    //

    Name
    Username*
    E-mail Address*
    Code



    <% Response.Write(first)
    Response.Write(" ")
    Response.Write(last) %>
    <% Response.Write(username) %>
    <% Response.Write(username) %>@oursite.org
    <% Response.Write(code) %>

    //

    It currently returns the first and last name in Netscape and Firefox, but nothing else. Again, it is working in Internet Explorer, Safari, and Opera.

    Can someone see something that we're missing that is unique only for Firefox and Netscape?

    Any help is truly appreciated! You guys are great! Thanks in advance!!

    Source: http://community.livejournal.com/javascript/143636.html

  • Creating a better Go Program (an article by IEEE)

    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

  • Индусы и STL

    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

  • The Labyrinth, and the Monster

    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:

    1. It is appropriate to represent the maze as a two-dimensional grid;

    2. Every place on the grid is either blocked (is a wall) or open (is a path);

    3. Both the starting and the ending point are known;



    Suppose you were actually lost in a maze, and that someone else was in there with you. If you were looking for one another, you might call out to them, "Hey, where are you?" and follow the sound of their voice when they answered. The trouble is that there might be a wall in the direction you wanted to go. The most intuitive thing would be to keep moving, tending in the direction of the sound whenever possible, and simply following the wall when you had to.

    The basic idea motivating the approach is that knowing the ending point is a very large advantage; it gives some vague notion of what direction to go in. The complicating factor is that the direction of the actual solution path (if there is one) may not agree with the direction of the end to the start "as the crow flies." The challenge, then, becomes one of striking a consensus between the intuitive sense of direction and the actual constraints of the solution path.

    Consider: if there is a path between the start and the end of the maze, then, if we iteratively build two lists of every (respective) open space adjacent to the start and (respectively) the end, eventually the two lists will have a common element. This element, represented as an ordered pair of coordinates, lies on the solution path.

    Below is a semi-formal, if flawed, pseudo-code implementation from my original program. It should be noted that the original involves a number of redundant operations and, as formulated, is not very efficient. (This is largely because I spent so much time coming up with a correct version of the algorithm that I had to rush the implementation to make the deadline.) Nonetheless, it should cover all the details:

    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;
    


    (excerpted from the original documentation

    Essentially, the start and the end work together and "meet half-way" to find a solution. Originally, I thought of two waves (as in a sound wave) emitted by both the start and the end and propagating through the maze (in this case as a diagonal in the grid) until they met; the point at which they met would then serve to locate a point on the solution path.

    Another interesting aspect of this approach is that the path is built (and correctly), but NOT in order. One failing of the above implementation is that it would be more natural (but again, I was sloppy due to time constraints) to recurse, as:

    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);
    	}
    }
    




    The beauty of this approach is that it forgets the search; every point in the space cooperates to come together. In the old myth, Theseus found his way out of the Labyrinth not on his own, but with the help of Ariadne, on the outside. The cleverness of the labyrthin's engineer couldn't defeat the accord of two people. That's communication.

    Source: http://community.livejournal.com/algorithms/94758.html

  • Passing data in JPG

    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?

    Source: http://community.livejournal.com/csharp/88978.html

  • Passing data in JPG

    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

  • Fastest Phenom quad core beaten by slowest Core 2 Quad

    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."


    AMD's Phenom Unveiled: A Somber Farewell to K8
    http://www.anandtech.com/cpuchipsets/showdoc.aspx?i=3153&p=1
    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.


    Phenom 13.5% Slower Than Intel's Q6600
    http://www.tomshardware.com/2007/11/19/the_spider_weaves_its_web/page22.html

    It's really not a close fight between AMD and Intel at this point. "Steamroll" would be an apt description of the situation.

    Source: http://community.livejournal.com/computergeeks/1127705.html

  • Setting Default Page with ASP

    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

  • an endless loop of Csharp.Frustration[s]

    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:





    protected void btnOrder_Click(object sender, EventArgs e)
    {
    //Check for Shoppingcart object
    // Create first if not there

    if (Session["cart"] == null)
    {
    Session["cart"] = new ShoppingCart();
    int quantity = 0;
    }

    // make sure there is text
    if (txtQuantity.Text.Trim().Length != 0)
    {
    // try to convert text to int ???
    int quantity = int.Parse(txtQuantity.Text);
    // check for this item in the cart
    // Note this only makes sense if the "cart" exists
    // since it checks for an individual item in the cart
    if (((ShoppingCart)Session["cart"]).
    keyExists(int.Parse(TextBox1.Text)))
    {
    //throw new Exception("Item already in cart - fix this");

    Response.Write("Item already exists in cart. What do you want to do?");
    // Message to user that product is already in the order


    ///AND this is where my problems start:
    /*try
    {

    Response.Write("Item already exists, what do you want to do?");
    }

    catch (ArgumentException de)
    {
    ShoppingCart;
    }

    finally
    {
    Console.WriteLine("Finally Block");
    }
    * */
    ///END of one set of problems (sorry for intending issues)

    }
    if ((txtQuantity.Text.Trim().Length != 0)) // This is a new item
    {
    //Response.Write("Please choose the quantity");
    OrderItem item = new OrderItem(
    int.Parse(TextBox1.Text), TextBox2.Text,
    double.Parse(TextBox6.Text),
    int.Parse(txtQuantity.Text));
    ((ShoppingCart)Session["cart"]).addToCart(item);
    Response.Write("Item added successfully!");
    Server.Transfer("CatalogDisplay.aspx");

    }
    else
    {
    // Make the item
    OrderItem item = new OrderItem(
    int.Parse(TextBox1.Text), TextBox2.Text,
    double.Parse(TextBox6.Text),
    int.Parse(txtQuantity.Text));
    // add to cart
    ((ShoppingCart)Session["cart"]).addToCart(item);

    ///////////////////////////////not sure what the next part does

    // How to make this work ??
    // Who is the sender ?
    // What are the System.EventArgs ?
    this.btnReturn_Click(sender, e);

    //////////end of "not sure"
    }
    else
    {
    //Basically if the quantity field is empty, you can't move on to the Order page.
    Response.Write("Nothing Ordered
    You must order some of the product or return to the Catalog");
    }




    Database reference: Northwind.mdb

    Source: http://community.livejournal.com/webdev/449890.html

  • App_Code

    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

  • Ick, Excel?

    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

  • GridView question

    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

  • Master Pages

    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.

    Source: http://community.livejournal.com/webdev/454534.html

  • The budget overclock legend reborn: Celeron E1600

    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


    antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home