Webmaster Forum

Go Back   Webmaster Forum > Search Forums


Showing results 1 to 25 of 51
Search took 0.01 seconds.
Search: Posts Made By: anomaly
Forum: Coding Forum 01-12-2011, 07:06 AM
Replies: 14
Views: 1,440
Posted By anomaly
Yslow...

Yslow (https://addons.mozilla.org/en-US/firefox/addon/5369/) will not only tell you if your page is slow, it will also tell you why.
Forum: Coding Forum 01-09-2011, 05:46 PM
Replies: 23
Views: 13,070
Posted By anomaly
Yep, the count is good now. A few more things. ...

Yep, the count is good now. A few more things.


Get rid of the break, as I mentioned in the post above
There is no reason to assign a random number to flip before the loop, when it's just...
Forum: Coding Forum 01-09-2011, 05:16 PM
Replies: 23
Views: 13,070
Posted By anomaly
*slaps you on the wrist with a ruler* Just...

*slaps you on the wrist with a ruler* Just kidding. ;)

You need to get out of the mindset that "It seems to work, so it's fine as it is." The bugs will pile up that way. For one thing, even if...
Forum: Coding Forum 01-09-2011, 04:50 PM
Replies: 23
Views: 13,070
Posted By anomaly
I'll trust you to make that judgement call. :) ...

I'll trust you to make that judgement call. :)

Where did you move it to? If you really can't figure it out, I will help you, but try and figure it out on your own so you can learn how to debug. ...
Forum: Coding Forum 01-09-2011, 04:21 PM
Replies: 23
Views: 13,070
Posted By anomaly
What are these two variables for? They are for...

What are these two variables for? They are for counting how many coin flips resulted in heads and how many resulted in tails. How many coin flips have resulted in heads or tails at this point in the...
Forum: Coding Forum 01-09-2011, 02:57 PM
Replies: 23
Views: 13,070
Posted By anomaly
No problem. I can see you're progressing, but I'm...

No problem. I can see you're progressing, but I'm a little worried that I'm giving you answers without really telling you why. Do you understand all the changes I made to the code? Don't be afraid...
Forum: Coding Forum 01-09-2011, 02:47 PM
Replies: 23
Views: 13,070
Posted By anomaly
You've taken the random function out of the loop...

You've taken the random function out of the loop again. It's back to the old problem, where you assign a random number to flip ONCE and then never again. You need to assign a random number to flip...
Forum: Coding Forum 01-09-2011, 02:15 PM
Replies: 23
Views: 13,070
Posted By anomaly
Nope, I haven't used Python in years and I have...

Nope, I haven't used Python in years and I have no Python compiler installed. That's why I said the syntax might be wrong. I can really only help you with the logic, not the Python-specific syntax....
Forum: Coding Forum 01-09-2011, 01:29 PM
Replies: 23
Views: 13,070
Posted By anomaly
Okay, maybe that challenge is a little too hard...

Okay, maybe that challenge is a little too hard for the level the book has taken you to at that point. It requires you to know some things that you don't seem to have learned yet.

I haven't done...
Forum: Coding Forum 01-09-2011, 12:53 PM
Replies: 23
Views: 13,070
Posted By anomaly
You're still only flipping once. You have...

You're still only flipping once. You have assigned a random number to flip. Since you say it's only flipping tails, I guess it got 0. You never flipped again, so flip is equal to 0 for the whole...
Forum: Coding Forum 01-09-2011, 12:27 PM
Replies: 23
Views: 13,070
Posted By anomaly
Well, you only flipped the coin once. You need...

Well, you only flipped the coin once. You need to flip the coin each time you go through the loop, and you need to check the result of the flip to see if it's a head or a tail. In the code you have...
Forum: Coding Forum 01-09-2011, 11:39 AM
Replies: 23
Views: 13,070
Posted By anomaly
You're getting there! I don't want to do it for...

You're getting there! I don't want to do it for you because it's an exercise and it would rob you of the chance to learn. But let's see what we can do.

You imported the random module, but you...
Forum: Coding Forum 01-08-2011, 09:06 AM
Replies: 21
Views: 4,010
Posted By anomaly
After you have learned programming with one...

After you have learned programming with one language, you can then learn any other language pretty quickly. So if you learn Python, you can then learn any language you choose.

Other languages you...
Forum: Coding Forum 01-08-2011, 08:50 AM
Replies: 21
Views: 4,010
Posted By anomaly
You don't have to. I just recommend it because...

You don't have to. I just recommend it because Javascript is an absolute mess of a language, it's hard to learn programming with, and it will teach bad habits. If you aren't too serious about...
Forum: Coding Forum 01-08-2011, 07:55 AM
Replies: 21
Views: 4,010
Posted By anomaly
When I said Java was runner-up, I meant that I...

When I said Java was runner-up, I meant that I think it's the second best language to learn with. After you have learned to program with one language, you should then be able to go on to learning...
Forum: Coding Forum 01-08-2011, 06:38 AM
Replies: 21
Views: 4,010
Posted By anomaly
Wow, that's quite a question. Python is a...

Wow, that's quite a question. Python is a server-side language when using it for the web, so it cannot do what Javascript does. If you want to program client-side, you will indeed need to learn...
Forum: Coding Forum 01-08-2011, 05:57 AM
Replies: 21
Views: 4,010
Posted By anomaly
If you just want to throw a couple little tricks...

If you just want to throw a couple little tricks into your site and you will mostly be copy-pasting, then just going through an introductory book on Javascript should be sufficient.

If you are...
Forum: Coding Forum 01-08-2011, 04:35 AM
Replies: 21
Views: 4,010
Posted By anomaly
Javascript: The Good Parts is a wonderful book. ...

Javascript: The Good Parts is a wonderful book. It is aimed at those who already know how to program, so I wouldn't recommend it for those who are new to programming. Then again, I wouldn't...
Forum: Web Design Lobby 01-03-2011, 11:43 PM
Replies: 5
Views: 807
Posted By anomaly
Thanks a lot, guys and gals. I'll go ahead and...

Thanks a lot, guys and gals. I'll go ahead and work around the messy code to do what he wants, and then I can offer to improve his code and list out the benefits of the improvements. :-)
Forum: Web Design Lobby 01-03-2011, 03:46 AM
Replies: 5
Views: 807
Posted By anomaly
What do do when a client gives you awful code to work with?

Happy new year, everyone! I hope someone can give me some advice. I just got a new client who has created his website himself. He wants to hire me to just help him with one thing that he couldn't...
Forum: Coding Forum 12-30-2010, 01:24 AM
Replies: 2
Views: 2,086
Posted By anomaly
Nice. I can use that for convincing clients to...

Nice. I can use that for convincing clients to let me put in some extra time to make their site degrade gracefully. Clients tend to think

"I want it to work on my computer, with my operating...
Forum: Coding Forum 12-27-2010, 01:18 AM
Replies: 2
Views: 1,408
Posted By anomaly
What do you mean? You want to delete some data...

What do you mean? You want to delete some data in a text file? Or you're trying to insert a ^H caret?

How are you doing this? Linux terminal? Windows terminal? PHP? Python? Something else?
Forum: Coding Forum 12-22-2010, 10:02 AM
Replies: 4
Views: 887
Posted By anomaly
You need an image with transparency, then turn on...

You need an image with transparency, then turn on alpha blending so that the transparent image can be attached to it.

<?php

$img = imagecreatefrompng('original_image.png');
$width =...
Forum: Coding Forum 12-20-2010, 11:07 PM
Replies: 7
Views: 4,055
Posted By anomaly
Yes, that was just what I needed! I'm going to...

Yes, that was just what I needed! I'm going to give this one (http://www.drasticdata.nl/DDHome.php?m=3) a try. Thankies.
Forum: Coding Forum 12-20-2010, 10:14 PM
Replies: 7
Views: 4,055
Posted By anomaly
Thank you for the replies. How so? You make...

Thank you for the replies.

How so? You make a table of acceptable values and then have a foreign key. No problem in InnoDB.

AJAX seems a bit unnecessary unless you are going to be updating a...
Showing results 1 to 25 of 51

 
Forum Jump

V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 08:40 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC