Open Side Menu Go to the Top
Register
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

05-18-2012 , 01:31 PM
Ye, thats a really good idea. Would be nice to have someone from the community do it and I reckon that there are some pretty skilled designers lurking around.

I really want to be able to launch the site officially some time next week so hopefully will be able to find someone who can do it in time. Thanks for the suggestion


On a related note, just been setting up AWS CloutFront, anyone had any experience of it? It looks like a super service and a breeze to setup.

As part of my build process, all the static files (css, js etc) are compressed and sent to AWS S3 to a new bucket named after the hash of the build's git commit (this ensures that browsers will not cache an older version of the static files). AWS CloudFront is basically a CDN for S3... you tell it which S3 bucket you want to access and it gives you a url of the form xyz.cloudfront.net and it then caches your static files in different geographic locations. The best thing about it is that it doesnt cost anything extra (just the bandwidth and S3 storage).
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2012 , 04:18 PM
anybody know any decent places on the net that describes induction really well? ive looked over it so many times and it never gets stuck in my head. and need to learn induction for haskell functions
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-18-2012 , 06:32 PM
Try fiverr.com you can get a bunch of designs made for $5 each. I've seen some decent-ish work come from there.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2012 , 12:15 PM
Quote:
Originally Posted by MrWooster
On a related note, just been setting up AWS CloutFront, anyone had any experience of it? It looks like a super service and a breeze to setup.

As part of my build process, all the static files (css, js etc) are compressed and sent to AWS S3 to a new bucket named after the hash of the build's git commit (this ensures that browsers will not cache an older version of the static files). AWS CloudFront is basically a CDN for S3... you tell it which S3 bucket you want to access and it gives you a url of the form xyz.cloudfront.net and it then caches your static files in different geographic locations. The best thing about it is that it doesnt cost anything extra (just the bandwidth and S3 storage).
We use it for most of our static .js components, which is I believe is ~5mb. One suggestion that you might be able take advantage of, we have had some issues where firewall/browser settings are really tight for some of our customers and it blocks the .js download from the xxxxxxxxxxx.cloudfront.net URL. So when the customer comes to our site, we have it try to access a simple .js file that simply sets a variable telling the rest of the page whether to download all the .js files from cloudfront or directly from our app servers.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2012 , 12:18 PM
Quote:
Originally Posted by jalexand42
We use it for most of our static .js components, which is I believe is ~5mb. One suggestion that you might be able take advantage of, we have had some issues where firewall/browser settings are really tight for some of our customers and it blocks the .js download from the xxxxxxxxxxx.cloudfront.net URL. So when the customer comes to our site, we have it try to access a simple .js file that simply sets a variable telling the rest of the page whether to download all the .js files from cloudfront or directly from our app servers.
wow what a pain, what kind of browser/firewall is blocking that? it seems almost like blocking a google domain.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2012 , 04:52 PM
Found this linked in hsnl, pretty fascinating thread on reddit "IAmA a malware coder and botnet operator, AMA"

http://www.reddit.com/r/IAmA/comment..._operator_ama/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2012 , 06:24 PM
Was linked in here before iirc
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-19-2012 , 10:23 PM
Quote:
Originally Posted by gaming_mouse
wow what a pain, what kind of browser/firewall is blocking that? it seems almost like blocking a google domain.
School districts. :/
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-20-2012 , 12:24 AM
Does anyone here work on apps for tablets? Microsoft has a new APIs that will be available in Windows 8 that are specifically targeted for tablet apps on Windows 8. I was wondering if anyone has looked this API closely. I've looked at it but haven't studied it in detail. App developers for Windows 8 seem to be getting a pretty good deal.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-20-2012 , 12:55 PM
Windows API's seem to be pretty good ... imo maybe a little too good in that bigger isnt always better.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 05:13 PM
if I have the condition if(x || y || z) return false else return true, and assuming x is always true, when does this return false? I just want to make sure that it returns false right when it finds the first true or else I want to rewrite it in three different checks.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 05:23 PM
Quote:
Originally Posted by ryanb99
if I have the condition if(x || y || z) return false else return true, and assuming x is always true, when does this return false? I just want to make sure that it returns false right when it finds the first true or else I want to rewrite it in three different checks.
yeah it's the short circuit operator, so if y is true it will immediately return false and won't evaluate z. Also, you should just write:

return !(x || y || z);
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 06:22 PM
Quote:
Originally Posted by ryanb99
if I have the condition if(x || y || z) return false else return true, and assuming x is always true, when does this return false? I just want to make sure that it returns false right when it finds the first true or else I want to rewrite it in three different checks.
Unless I'm misreading something...if x is always true, then it will always return false.

Also +1 to GM suggestion.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 06:37 PM
A clause is always true if one of the literals is true so your code should always return false.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 07:03 PM
Quote:
Originally Posted by gaming_mouse
Also, you should just write:

return false;
silly FYP
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 07:17 PM
Quote:
Originally Posted by jalexand42
We use it for most of our static .js components, which is I believe is ~5mb. One suggestion that you might be able take advantage of, we have had some issues where firewall/browser settings are really tight for some of our customers and it blocks the .js download from the xxxxxxxxxxx.cloudfront.net URL. So when the customer comes to our site, we have it try to access a simple .js file that simply sets a variable telling the rest of the page whether to download all the .js files from cloudfront or directly from our app servers.
Thanks for the tip, pretty drastic for a proxy to block all .cloudfront domains. I also read that you can use your own dns but only on http, not https which rules it out for me.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 07:21 PM
Oh I took it to mean he was asking, "if x is always true, then y and z won't be evaluated, right?" rather than his saying that x will, in fact, always be true. It was confusingly worded so I went ahead and went with the interpretation that made the question non-trivial.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 07:59 PM
yeah I wouldn't have made silly FYP if you hadn't already given proper explanations
I think that was the intention of the question too, if not
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 08:31 PM
that makes sense. It depends on what language you are writing in but most do use short circuit evaluation http://en.wikipedia.org/wiki/Short-circuit_evaluation
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 10:07 PM
yeah u guys know what i meant lol, just wanted to make sure that when you do a chain of "ors" or "ands" in an "if" that it didn't have to check all of them before it could return. So it looks like the compiler takes if(x and y) and turns it into if(x) { if (y) }.

Is it "standard" practice to organize these if(x y z) so that x is the fastest-found and z is the longest? or is there not much to be gained here. Maybe compilers are smart enough to do the easiest / fastest checks first and the longest last? I'm trying to see how much I can reduce my cpu usage on a program. (looks like short circuit is only left to right)
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-21-2012 , 10:32 PM
Quote:
Originally Posted by ryanb99
yeah u guys know what i meant lol, just wanted to make sure that when you do a chain of "ors" or "ands" in an "if" that it didn't have to check all of them before it could return. So it looks like the compiler takes if(x and y) and turns it into if(x) { if (y) }.

Is it "standard" practice to organize these if(x y z) so that x is the fastest-found and z is the longest? or is there not much to be gained here. Maybe compilers are smart enough to do the easiest / fastest checks first and the longest last? I'm trying to see how much I can reduce my cpu usage on a program. (looks like short circuit is only left to right)
It can't hurt, but the only way to know for sure is to profile the code and find out whether it makes any difference or not.

That said, there's no point in guessing at where your programming is spending it's time...profile it, find the hotspots, optimize them, lather, rinse, repeat until it's fast enough!
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-22-2012 , 06:31 PM
Not much going on in the software world today apparently.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-22-2012 , 06:55 PM
there is but its top secret.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-22-2012 , 07:04 PM
Well, not really newsworthy, but I officially launched my new site today in the software forum (http://forumserver.twoplustwo.com/45...views-1202397/).

@ryan did you loose your old s/n?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
05-22-2012 , 07:18 PM
Nonsense! That's newsworthy! Nice job Wooster, I like the new features you implemented.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote

      
m