Reply
Page 16 of 53 FirstFirst ... 6 14 15 16 17 18 26 ... LastLast
Results 451 to 480 of 1574
  1. #451
    Registered User ckmiscer's Avatar
    Join Date: Aug 2014
    Age: 43
    Posts: 1,681
    Rep Power: 1699
    ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000)
    ckmiscer is offline
    Originally Posted by digistp View Post
    Simple coding is probably one of the least intensive things you could do on a computer. Any modern laptop will work fine.

    Uh maybe the actual code you run but the IDEs and frameworks and big db apps are resource intensive. You need a good laptop for coding.
    Java Crew
    Always Pick 4 Crew
    30+ Miscer Crew
    Free Balcony Brah Crew
    Reply With Quote

  2. #452
    Banned AppsBrah's Avatar
    Join Date: Mar 2013
    Posts: 5,588
    Rep Power: 0
    AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500)
    AppsBrah is offline
    Originally Posted by Rangerz91 View Post
    Do you do any contract work along side your job ?
    No. I've found that most serious contract work (not 'build this app for $500 pls') is pretty intensive, eg fulltime for x months, not like 10-15 hours/week or something. In reality even if you can find a less intensive contract job, it brings your total hours around 55-60/week. At that point it's more than likely to affect your fulltime job. Better to have consistent good results with one company fulltime and build your salary that way imo.

    Originally Posted by ckmiscer View Post
    Uh maybe the actual code you run but the IDEs and frameworks and big db apps are resource intensive. You need a good laptop for coding.
    Have to agree with this. It's not necessary, but it's definitely nice to have, things running smoothly = more fun, less frustration
    Reply With Quote

  3. #453
    Registered User BDub85's Avatar
    Join Date: Jun 2010
    Location: California, United States
    Posts: 6,096
    Rep Power: 7135
    BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000)
    BDub85 is offline
    What are your guy's opinion on bootcamps for non CS majors compared to doing a post bachelor CS program (no CS bachelors degree)?

    Personally I know of a couple guys who did a bootcamp and found employment at a very successful web app.

    Finally, what about us self taught brahs looking for experience?
    Reply With Quote

  4. #454
    Infinite Series jack3d_brah9's Avatar
    Join Date: Aug 2008
    Posts: 3,899
    Rep Power: 13951
    jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000) jack3d_brah9 is a splendid one to behold. (+10000)
    jack3d_brah9 is offline
    Originally Posted by BDub85 View Post
    What are your guy's opinion on bootcamps for non CS majors compared to doing a post bachelor CS program (no CS bachelors degree)?

    Personally I know of a couple guys who did a bootcamp and found employment at a very successful web app.

    Finally, what about us self taught brahs looking for experience?
    My company tends not to hire any programmers recently (less than 2 years) out of coding bootcamps because they tend to lack deep problem solving skills found in individuals that went through a CS or Mathematics program. CS undergrad with a strong personal project portfolio is an ideal setup to have going into the recruiting process. If you only have a coding bootcamp background you need to be able to demonstrate that you really understand data structures, algorithms, and OOP principles. I know some bootcamps do a better job than others, but it probably wouldn't hurt to supplement a coding bootcamp with taking a DS&A course at your local university. Just my two cents.
    Reply With Quote

  5. #455
    Platinum User Chroll's Avatar
    Join Date: Dec 2012
    Location: United States
    Age: 40
    Posts: 893
    Rep Power: 1299
    Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000) Chroll is just really nice. (+1000)
    Chroll is offline
    Originally Posted by bov188 View Post
    Was wondering if anyone ITT could recommend me a decent laptop for programming/development?

    My company is paying for me to take some entry level programming courses at a local college but they won't set me up with an appropriate laptop. All they offered was an 11" Lenovo thinkpad.

    Will be using javascript, node.js, SQL, Java
    Anything with a decent Intel processor. I have a computer with a decent AMD and it takes forever to run an Android emulator. My other computer has an i5 and it's super fast. I haven't had problems with any other IDE except for Android Studio
    Reply With Quote

  6. #456
    Registered User BDub85's Avatar
    Join Date: Jun 2010
    Location: California, United States
    Posts: 6,096
    Rep Power: 7135
    BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000) BDub85 is a name known to all. (+5000)
    BDub85 is offline
    Originally Posted by jack3d_brah9 View Post
    My company tends not to hire any programmers recently (less than 2 years) out of coding bootcamps because they tend to lack deep problem solving skills found in individuals that went through a CS or Mathematics program. CS undergrad with a strong personal project portfolio is an ideal setup to have going into the recruiting process. If you only have a coding bootcamp background you need to be able to demonstrate that you really understand data structures, algorithms, and OOP principles. I know some bootcamps do a better job than others, but it probably wouldn't hurt to supplement a coding bootcamp with taking a DS&A course at your local university. Just my two cents.
    Hmmm. I have a BBA in finance and a C++ intro class. I am self taught on modern web programming and programming practices (OOP/design patterns)

    Can't afford more college. Am I screwed?
    Reply With Quote

  7. #457
    Registered User MaximumCapacity's Avatar
    Join Date: Dec 2012
    Location: Fort Pierce, Florida, United States
    Posts: 4,940
    Rep Power: 2155
    MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000) MaximumCapacity is just really nice. (+1000)
    MaximumCapacity is offline
    Originally Posted by BDub85 View Post
    Hmmm. I have a BBA in finance and a C++ intro class. I am self taught on modern web programming and programming practices (OOP/design patterns)

    Can't afford more college. Am I screwed?
    just take online data structures and algorithms in a free online class and use that knowledge to pass interviews
    legal disclaimer: OP sucks cock
    Computer Science autist race
    aspie
    Reply With Quote

  8. #458
    Registered User joshewwah's Avatar
    Join Date: Jan 2013
    Location: Australia
    Posts: 10,277
    Rep Power: 6432
    joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000)
    joshewwah is offline
    Reps for anyone to tell me the difference between BFS and Iterared deepening DFS. Diagrams, and which order elements are stored/expanded would be nice
    Reply With Quote

  9. #459
    Branned Didlid's Avatar
    Join Date: Oct 2012
    Posts: 7,009
    Rep Power: 10225
    Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000)
    Didlid is offline
    Hey guys quick question about jquery/javascript.

    I have an xml file which im reading locally which has image urls in and i need to get an image to display in a table i've created. how do i go about this?

    Currently it looks like this
    Code:
    <id>0001</id><title>waefewfa</title><picture>gaga.jpg</picture>
    My jquery looks like this.

    [code]
    var Col0 = $row.find('id').text();
    var Col1 = $row.find('title').text();
    var Col2 = $
    Last edited by Didlid; 03-10-2016 at 06:09 AM.
    /
    Reply With Quote

  10. #460
    u wot zinkhan99's Avatar
    Join Date: Apr 2010
    Location: New York, New York, United States
    Age: 33
    Posts: 10,421
    Rep Power: 27434
    zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000)
    zinkhan99 is offline
    Originally Posted by Didlid View Post
    Hey guys quick question about jquery/javascript.

    Doing the picture variable it just shows up as objectObject in the table without the image, is there a .image(); notation to display it or something? can't seem to find it anywhere. If i do .text(); it just says picture1.jpg etc.

    It doesn't let me post the code... create new image element and append/prepend it to your table.




    lol had to screenshot it
    Reply With Quote

  11. #461
    Banned AppsBrah's Avatar
    Join Date: Mar 2013
    Posts: 5,588
    Rep Power: 0
    AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500)
    AppsBrah is offline
    Originally Posted by Didlid View Post
    Hey guys quick question about jquery/javascript.

    I have an xml file which im reading locally which has image urls in and i need to get an image to display in a table i've created. how do i go about this?

    Currently it looks like this
    Code:
    <id>0001</id><title>waefewfa</title><picture>gaga.jpg</picture>
    My jquery looks like this.

    [code]
    var Col0 = $row.find('id').text();
    var Col1 = $row.find('title').text();
    var Col2 = $
    XML? groce

    Convert to JSON and parse in JS
    Reply With Quote

  12. #462
    u wot zinkhan99's Avatar
    Join Date: Apr 2010
    Location: New York, New York, United States
    Age: 33
    Posts: 10,421
    Rep Power: 27434
    zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000)
    zinkhan99 is offline
    Originally Posted by AppsBrah View Post
    No. I've found that most serious contract work (not 'build this app for $500 pls') is pretty intensive, eg fulltime for x months, not like 10-15 hours/week or something. In reality even if you can find a less intensive contract job, it brings your total hours around 55-60/week. At that point it's more than likely to affect your fulltime job. Better to have consistent good results with one company fulltime and build your salary that way imo.
    I have been traveling a lot past two years so I have been doing freelance work on top of my startups. Is it only me, or do you also lose interest in the project the longer it drags? I find last weeks to be extremely painful and forceful lol.
    Reply With Quote

  13. #463
    Registered User ckmiscer's Avatar
    Join Date: Aug 2014
    Age: 43
    Posts: 1,681
    Rep Power: 1699
    ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000)
    ckmiscer is offline
    Originally Posted by joshewwah View Post
    Reps for anyone to tell me the difference between BFS and Iterared deepening DFS. Diagrams, and which order elements are stored/expanded would be nice

    I don't know what "iterated, deepened DFS" is, but I call tell you that Depth First Search goes all the way down a branch before traversing to a neighboring node, whereas Breadth First Search goes to all neighboring nodes first.

    Seems like you are asking weird machine learning questions without understanding the underlying base algorithms.
    Java Crew
    Always Pick 4 Crew
    30+ Miscer Crew
    Free Balcony Brah Crew
    Reply With Quote

  14. #464
    Registered User ckmiscer's Avatar
    Join Date: Aug 2014
    Age: 43
    Posts: 1,681
    Rep Power: 1699
    ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000)
    ckmiscer is offline
    Originally Posted by Rolling View Post
    What do you guys think of node.js? Is this where the industries are heading?

    Would it be wise to skip php altogether and just learn node since node can do everything php can anyway?

    Well Node.js is server-side JavaScript. So if you don't know JS then you could conceivably learn both at once.

    I would recommend skipping PHP regardless. It's a **** quasi-HTML server side language that doesn't fit well into any paradigm anymore (and it's horrible to use).

    Learn Node.js if you really want to do server side ****. But it really all depends on what you are trying to accomplish.
    Java Crew
    Always Pick 4 Crew
    30+ Miscer Crew
    Free Balcony Brah Crew
    Reply With Quote

  15. #465
    u wot zinkhan99's Avatar
    Join Date: Apr 2010
    Location: New York, New York, United States
    Age: 33
    Posts: 10,421
    Rep Power: 27434
    zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000)
    zinkhan99 is offline
    Originally Posted by Rolling View Post
    What do you guys think of node.js? Is this where the industries are heading?

    Would it be wise to skip php altogether and just learn node since node can do everything php can anyway?
    nodeJS > PHP, that's for sure. While you might find PHP more popular, with more frameworks, easier to code and better community, nodeJS yields better performance and is booming hard. Also there is a major benefit of one language for both client and server side.
    Reply With Quote

  16. #466
    Banned AppsBrah's Avatar
    Join Date: Mar 2013
    Posts: 5,588
    Rep Power: 0
    AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500)
    AppsBrah is offline
    Originally Posted by Rolling View Post
    What do you guys think of node.js? Is this where the industries are heading?

    Would it be wise to skip php altogether and just learn node since node can do everything php can anyway?
    Node > all. PHP is dying, it has always sucked and it always will suck
    Reply With Quote

  17. #467
    Branned Didlid's Avatar
    Join Date: Oct 2012
    Posts: 7,009
    Rep Power: 10225
    Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000)
    Didlid is offline
    Originally Posted by AppsBrah View Post
    XML? groce

    Convert to JSON and parse in JS
    Originally Posted by AppsBrah View Post
    XML? groce

    Convert to JSON and parse in JS
    Gotta use it for an assignment for some reason they wont allow us to use other things. I hate it and jquery, i fix one problem then the next thing is a ballache and im stuck again.

    Anybody know why my button only shows the last item in my list?

    Code:
    					for(var childNum in itemResults){
    					
    						//get the products specific child
    						$row = $products.find('product').filter(":nth-child(" + itemResults[childNum] + ")");
    						
    						var Col0 = $row.find('id').text();
    						var Col1 = $row.find('picture').text();
    						var Col2 = $row.find('title').text();
    						var Col3 = $row.find('brand').text();
    						var Col4 = $row.find('description').text();
    						var Col5 = $row.find('price').text();
    												
    						$('#product_table > tbody').append("<tr><td>" + Col0 + 
    						"</td><td><img id='tableImgs' src='ProductImages/" + Col1 + "' height='200' width='250'></td><td>" + Col2 + "</td><td>" + Col3 + 
    						"</td><td>"+ Col4 +"</td><td>&pound" + Col5 + "</td><td id='productLink'><button/></td></tr>");	
    						
    						$("#product_table button")
    							.text(Col2)
    							.addClass("productButton")
    							.hover(function(){
    								$(this).addClass("productButtonHover");
    							}, function() {
    								$(this).removeClass("productButtonHover")
    							})
    							.click(function(){
    								window.location.href="product.html?id=" + Col0;
    							});
    					}
    For some reason the bolded part wont iterate through each thing like the above does. Instead the button just creates 20 buttons (the whole tables rows as intended) but then fills them all with the data for the last item in the xml.
    /
    Reply With Quote

  18. #468
    Registered User ckmiscer's Avatar
    Join Date: Aug 2014
    Age: 43
    Posts: 1,681
    Rep Power: 1699
    ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000)
    ckmiscer is offline
    Gahh why is your formatting all ****ed up? Where are the semicolons? Aren't you using an IDE?
    Java Crew
    Always Pick 4 Crew
    30+ Miscer Crew
    Free Balcony Brah Crew
    Reply With Quote

  19. #469
    u wot zinkhan99's Avatar
    Join Date: Apr 2010
    Location: New York, New York, United States
    Age: 33
    Posts: 10,421
    Rep Power: 27434
    zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000)
    zinkhan99 is offline
    Originally Posted by Didlid View Post
    Gotta use it for an assignment for some reason they wont allow us to use other things. I hate it and jquery, i fix one problem then the next thing is a ballache and im stuck again.

    Anybody know why my button only shows the last item in my list?

    Code:
    					for(var childNum in itemResults){
    					
    						//get the products specific child
    						$row = $products.find('product').filter(":nth-child(" + itemResults[childNum] + ")");
    						
    						var Col0 = $row.find('id').text();
    						var Col1 = $row.find('picture').text();
    						var Col2 = $row.find('title').text();
    						var Col3 = $row.find('brand').text();
    						var Col4 = $row.find('description').text();
    						var Col5 = $row.find('price').text();
    												
    						$('#product_table > tbody').append("<tr><td>" + Col0 + 
    						"</td><td><img id='tableImgs' src='ProductImages/" + Col1 + "' height='200' width='250'></td><td>" + Col2 + "</td><td>" + Col3 + 
    						"</td><td>"+ Col4 +"</td><td>£" + Col5 + "</td><td id='productLink'><button/></td></tr>");	
    						
    						$("#product_table button")
    							.text(Col2)
    							.addClass("productButton")
    							.hover(function(){
    								$(this).addClass("productButtonHover");
    							}, function() {
    								$(this).removeClass("productButtonHover")
    							})
    							.click(function(){
    								window.location.href="product.html?id=" + Col0;
    							});
    					}
    For some reason the bolded part wont iterate through each thing like the above does. Instead the button just creates 20 buttons (the whole tables rows as intended) but then fills them all with the data for the last item in the xml.
    It would be much easier if you post it on jsfiddle, it's hard to read code on here. I don't get it why you are adding a class on hover instead of just using css hover selector or creating a href in click event for each button. Seems really weird.
    Reply With Quote

  20. #470
    Banned AppsBrah's Avatar
    Join Date: Mar 2013
    Posts: 5,588
    Rep Power: 0
    AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500)
    AppsBrah is offline
    Originally Posted by zinkhan99 View Post
    I have been traveling a lot past two years so I have been doing freelance work on top of my startups. Is it only me, or do you also lose interest in the project the longer it drags? I find last weeks to be extremely painful and forceful lol.
    Lol no that's normal. New projects are fun because you can start over clean. The longer a project gets dragged out, requirements changed, etc, the more ugly it becomes. You start to avoid working on it if you can because it's no longer clean and simple and super maintainable.

    Originally Posted by Didlid View Post
    Gotta use it for an assignment for some reason they wont allow us to use other things. I hate it and jquery, i fix one problem then the next thing is a ballache and im stuck again.

    Anybody know why my button only shows the last item in my list?

    For some reason the bolded part wont iterate through each thing like the above does. Instead the button just creates 20 buttons (the whole tables rows as intended) but then fills them all with the data for the last item in the xml.
    God damn that's some ugly code son. Have some consistency. Use dashed classnames and ID's. Space between ) and {. Single quotes for JS, double quotes for HTML. Declarations on new lines. Contain HTML tab formatting even in JS strings. Looks like you could also improve jQuery performance with .each() instead of for-looping and calling .find() for every node. Also it looks like you're adding hover and click handlers for every node? Inefficient.

    And those hover functions can be replaced with CSS :hover. Edit, ^wizard


    You're calling $("#product_table button"), eg ALL buttons in your table.
    Reply With Quote

  21. #471
    Branned Didlid's Avatar
    Join Date: Oct 2012
    Posts: 7,009
    Rep Power: 10225
    Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000)
    Didlid is offline
    Originally Posted by ckmiscer View Post
    Gahh why is your formatting all ****ed up? Where are the semicolons? Aren't you using an IDE?
    Idk i see semicolons? I'm just using notepad++ thats what we were recommend to use in uni, what IDE would you suggest? Sublime?

    Originally Posted by zinkhan99 View Post
    It would be much easier if you post it on jsfiddle, it's hard to read code on here. I don't get it why you are adding a class on hover instead of just using css hover selector or creating a href in click event for each button. Seems really weird.
    Never heard of jsfiddle cheers for the headsup, And as for the hover i have no idea im just following what my ****ty uni shows me to do. What do you mean create a href in click event for each button? Isn't that what i've done with the .click(function() ? thats the part im stuck on. Every button links to the same reference rather than all of them.

    Originally Posted by AppsBrah View Post
    God damn that's some ugly code son. Have some consistency. Use dashed classnames and ID's. Space between ) and {. Single quotes for JS, double quotes for HTML. Declarations on new lines. Contain HTML tab formatting even in JS strings. Looks like you could also improve jQuery performance with .each() instead of for-looping and calling .find() for every node. Also it looks like you're adding hover and click handlers for every node? Inefficient.

    And those hover functions can be replaced with CSS :hover. Edit, ^wizard


    You're calling $("#product_table button"), eg ALL buttons in your table.
    So how would i change the buttons to each individual one? i create them all at once how do i link each page to each individual button i thought what i was doing was right. Originally i had #product_table as my last columns id which is id='productLink

    tell me what i can improve on guys and i will take it on board thats part of the learning process haha.
    /
    Reply With Quote

  22. #472
    Banned AppsBrah's Avatar
    Join Date: Mar 2013
    Posts: 5,588
    Rep Power: 0
    AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500) AppsBrah is a glorious beacon of knowledge. (+2500)
    AppsBrah is offline
    Originally Posted by Didlid View Post
    Idk i see semicolons? I'm just using notepad++ thats what we were recommend to use in uni, what IDE would you suggest? Sublime?



    Never heard of jsfiddle cheers for the headsup, And as for the hover i have no idea im just following what my ****ty uni shows me to do. What do you mean create a href in click event for each button? Isn't that what i've done with the .click(function() ? thats the part im stuck on. Every button links to the same reference rather than all of them.


    So how would i change the buttons to each individual one? i create them all at once how do i link each page to each individual button i thought what i was doing was right. Originally i had #product_table as my last columns id which is id='productLink

    tell me what i can improve on guys and i will take it on board thats part of the learning process haha.
    Post the complete assignment and put your code on jsfiddle
    Reply With Quote

  23. #473
    Captain Quivers LongJohnQuivers's Avatar
    Join Date: Nov 2015
    Posts: 947
    Rep Power: 1811
    LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000) LongJohnQuivers is just really nice. (+1000)
    LongJohnQuivers is offline
    I think I'm going to play another prank on someone at work.

    I'm going to write a script that loops every ten seconds and checks if any vowels on the keyboard are being pressed at that time... if there are, turn Caps Lock on for 3 seconds then turn it off. Hopefully it will not happen super often, but often enough to make people go "wtf" lol
    I rep anyone who posts gifs of Ray Liotta laughing.
    Reply With Quote

  24. #474
    clownslayer SaviorSelfJT's Avatar
    Join Date: Aug 2010
    Posts: 8,495
    Rep Power: 141496
    SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000) SaviorSelfJT has a reputation beyond repute. Second best rank possible! (+100000)
    SaviorSelfJT is online now
    Originally Posted by LongJohnQuivers View Post
    I think I'm going to play another prank on someone at work.

    I'm going to write a script that loops every ten seconds and checks if any vowels on the keyboard are being pressed at that time... if there are, turn Caps Lock on for 3 seconds then turn it off. Hopefully it will not happen super often, but often enough to make people go "wtf" lol
    Do you write device drivers?
    Best lifts:
    Bench press: 315x4, 345x1
    Squat: 465x1
    Strict press: 185x8, 195x5, 215x1
    Deadlift: 405x13 (conv tap'n'go with straps)
    Reply With Quote

  25. #475
    Registered User joshewwah's Avatar
    Join Date: Jan 2013
    Location: Australia
    Posts: 10,277
    Rep Power: 6432
    joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000) joshewwah is a name known to all. (+5000)
    joshewwah is offline
    Originally Posted by ckmiscer View Post
    I don't know what "iterated, deepened DFS" is, but I call tell you that Depth First Search goes all the way down a branch before traversing to a neighboring node, whereas Breadth First Search goes to all neighboring nodes first.

    Seems like you are asking weird machine learning questions without understanding the underlying base algorithms.
    I know the difference between DFS and BFS, those are easy, but apparently theres another one called IDDFS. If you draw it out, the order of expansion of nodes, you get something similar to that of BFS and I don't know why its more efficient


    https://en.wikipedia.org/wiki/Iterat...h-first_search
    Reply With Quote

  26. #476
    Banned jaybc's Avatar
    Join Date: Nov 2010
    Posts: 2,006
    Rep Power: 0
    jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000) jaybc is a name known to all. (+5000)
    jaybc is offline
    Originally Posted by joshewwah View Post
    I know the difference between DFS and BFS, those are easy, but apparently theres another one called IDDFS. If you draw it out, the order of expansion of nodes, you get something similar to that of BFS and I don't know why its more efficient


    https://en.wikipedia.org/wiki/Iterat...h-first_search
    Is this for AI class? Basically in potato terms, IDDFS is a DFS that is "smart" and "knows" the optimal depth for the solution. It is DFS, but will only go as deep as necessary. It's more efficient wrt to memory since IDDFS only stores the current path in memory (height), whereas BFS is storing every node in the level (width).

    For example look at a this tree below. At the bottom level (level 4 or 3 if you zero index), the space required for IDDFS is 4. For BFS it is 8. Go another level down it is 5 for IDDFS and 16 for BFS, so you can see that for trees with greater depth IDDFS will really start to be more efficient then BFS. Assume for example, that the tree below is an infinite depth and the solution is at depth 100. Regular DFS would outright fail, BFS would require 2^100 of memory, and IDDFS would only require 100 memory. Hope that all makes sense lol.
    Reply With Quote

  27. #477
    u wot zinkhan99's Avatar
    Join Date: Apr 2010
    Location: New York, New York, United States
    Age: 33
    Posts: 10,421
    Rep Power: 27434
    zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000) zinkhan99 has much to be proud of. One of the best! (+20000)
    zinkhan99 is offline
    Originally Posted by Didlid View Post

    Never heard of jsfiddle cheers for the headsup, And as for the hover i have no idea im just following what my ****ty uni shows me to do. What do you mean create a href in click event for each button? Isn't that what i've done with the .click(function() ? thats the part im stuck on. Every button links to the same reference rather than all of them.


    So how would i change the buttons to each individual one? i create them all at once how do i link each page to each individual button i thought what i was doing was right. Originally i had #product_table as my last columns id which is id='productLink

    tell me what i can improve on guys and i will take it on board thats part of the learning process haha.
    All you do in your click event is redirect to specified link. Like Appsbrah already mentioned, you are assigning the click event to all buttons as well. just add href attribute on your button with "product.html?idCol0", not sure what you mean by ?idCol0 either. Post your working example on jsfiddle so we can see the whole thing. If you really want to continue with your code, although the flow seems unusual, just change the selector to "#product_table button:last-of-type" so it will only select the last appended button or add unique attribute for that row to each button so you can use it in selector. Anyways, you should be creating and assigning attributes/events to your elements differently imo, unless it's one of those impractical forced examples to do for assignment.
    Reply With Quote

  28. #478
    Branned Didlid's Avatar
    Join Date: Oct 2012
    Posts: 7,009
    Rep Power: 10225
    Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000)
    Didlid is offline
    Originally Posted by zinkhan99 View Post
    All you do in your click event is redirect to specified link. Like Appsbrah already mentioned, you are assigning the click event to all buttons as well. just add href attribute on your button with "product.html?idCol0", not sure what you mean by ?idCol0 either. Post your working example on jsfiddle so we can see the whole thing. If you really want to continue with your code, although the flow seems unusual, just change the selector to "#product_table button:last-of-type" so it will only select the last appended button or add unique attribute for that row to each button so you can use it in selector. Anyways, you should be creating and assigning attributes/events to your elements differently imo, unless it's one of those impractical forced examples to do for assignment.
    Thanks a bunch, ill try it out when I get home and ill post my code on jsfiddle.

    Its not surprising im **** at jquery considering we only started it this semester and the tutor spends 90% of the lecure talking about cognitive walk throughs...

    Oh while im here does anybody know of an app/plugin for eclipse which can reverse engineer my working code into uml diagrams? Or if thats even possible
    /
    Reply With Quote

  29. #479
    Registered User ckmiscer's Avatar
    Join Date: Aug 2014
    Age: 43
    Posts: 1,681
    Rep Power: 1699
    ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000) ckmiscer is just really nice. (+1000)
    ckmiscer is offline
    Originally Posted by Didlid View Post
    Oh while im here does anybody know of an app/plugin for eclipse which can reverse engineer my working code into uml diagrams? Or if thats even possible
    http://lmgtfy.com/?q=eclipse+uml+generator
    Java Crew
    Always Pick 4 Crew
    30+ Miscer Crew
    Free Balcony Brah Crew
    Reply With Quote

  30. #480
    Branned Didlid's Avatar
    Join Date: Oct 2012
    Posts: 7,009
    Rep Power: 10225
    Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000) Didlid is a splendid one to behold. (+10000)
    Didlid is offline
    Tried using jsfiddle and its all kinds of ****ed up lol. Because the tutor has created .js files and then put js inside the html too it just gives me a **** ton of things saying "this is not needed" "this isn't needed either" "this shouldn't be here" lol. **** this ****ty ass uni

    Still can't get this stupid button to change with whatever is in the xml file either even using :first-of-type and last-of-type.
    /
    Reply With Quote

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts