Search found 674 matches

by ash.gti
Fri Jan 29, 2010 6:18 pm UTC
Forum: Hardware
Topic: iPad discussion
Replies: 72
Views: 9349

Re: iPad discussion

also, no flash support is kinda dumb. Anyone know if it has java? Flash on laptops drains batters super quick, also does flash even work on an arm processor? I can see why they wouldn't put it on there. Java, on the other hand, I don't see why they don't include some sort of java support on the iPh...
by ash.gti
Wed Dec 30, 2009 4:18 pm UTC
Forum: Coding
Topic: Game programming: Flash CS3, CS4 or a different platform?
Replies: 11
Views: 1583

Re: Game programming: Flash CS3, CS4 or a different platform?

I really don't like flash either, but if you want at least some sort of consistency between your browsers, flash isn't a horrible plan. In some newer browsers (read Safari 4, FF 3.5+, Opera 10) you can use a Canvas with a 3d context that can let you do some really cool things. Canvas tags are really...
by ash.gti
Mon Dec 28, 2009 8:52 pm UTC
Forum: Coding
Topic: UI Programming
Replies: 55
Views: 5937

Re: UI Programming

If all browsers fully implemented the CSS 3 spec then we could do that, you shouldn't need to nest divs and wrap things in spans to do style magic on them. There is this nifty little :before and :after or having multiple backgrounds on an element that let you do some cool things. With CSS3 you can ...
by ash.gti
Mon Dec 28, 2009 8:35 pm UTC
Forum: Coding
Topic: UI Programming
Replies: 55
Views: 5937

Re: UI Programming

I misspoke when I said that HTML was for presentation-only, as I really meant "content-only". However, when nesting various elements, you're inherently giving it presentation. If it were really content-only, then every bit of text should be its own <div> tag with a unique ID, and then the...
by ash.gti
Mon Dec 28, 2009 4:55 pm UTC
Forum: Religious Wars
Topic: How do apple stay in business?
Replies: 112
Views: 22128

Re: How do apple stay in business?

Woegjiub wrote:Bad troll.
They're less secure than win7 or GNU/Linux, the only reason there haven't been many viruses yet is because they have such a small marketshare.
They used to be more secure than windows, but they became lazy and they leave critical bugs unpatched for ages.


[citation needed]
by ash.gti
Sat Dec 12, 2009 5:04 pm UTC
Forum: Coding
Topic: Perl, Ruby, or Common Lisp?
Replies: 11
Views: 2290

Re: Perl, Ruby, or Common Lisp?

Eh, you'll get a lot more use out of perl 5, since it's, y'know, finished, and there's a whole ton of libraries for it (CPAN). I'm not touching perl 6 until they can decide on a specification that doesn't change with the phases of the moon. That said, I'm very excited for perl 6, and I want it to b...
by ash.gti
Fri Dec 11, 2009 9:54 pm UTC
Forum: Coding
Topic: Perl, Ruby, or Common Lisp?
Replies: 11
Views: 2290

Re: Perl, Ruby, or Common Lisp?

If you want to play with perl but in a slightly different way, go look up Rakudo http://rakudo.org/ . Its a perl 6 implementation. Perl 6 is a complete redesign of perl and definitely an impressive language IMO. Its still being actively developed, but its a lot of fun and still very much perl with a...
by ash.gti
Fri Nov 27, 2009 2:56 am UTC
Forum: Coding
Topic: PHP: calling ps_setfont causes segfaults in error.log
Replies: 7
Views: 1051

Re: PHP: calling ps_setfont causes segfaults in error.log

http://www.xdebug.org/

Might be able to track down the error in a bit more detail, but i am not sure exactly, just a suggestion.
by ash.gti
Tue Nov 24, 2009 8:52 pm UTC
Forum: Coding
Topic: Regular Expressions
Replies: 15
Views: 1509

Re: Regular Expressions

This can be done with regular expressions, I think some of you forgot how to lookaround. Lets see, using perl 6's regex syntax: my $var = 'somestring'; if $var ~~ m/^^[<?before :g [.*\d] ** 3..*><?before :g [.*<[a..z]>] ** 3..*><?before :g [.*<[A..Z]>] ** 3..*>](. ** 10..*)$$/ { #... do whataver ......
by ash.gti
Thu Nov 19, 2009 3:01 pm UTC
Forum: Religious Wars
Topic: smartphone OS wars: Android vs. iPhone vs. WebOS vs...
Replies: 27
Views: 12621

Re: smartphone OS wars: Android vs. iPhone vs. WebOS vs...

iPhone, but I am also biased as its the one i have spent the most time with. I have only gotten to use one of my colleagues phones, a G1, just a few times.
by ash.gti
Tue Nov 10, 2009 3:19 pm UTC
Forum: Coding
Topic: HTML 5 and XHTML 2
Replies: 65
Views: 6894

Re: HTML 5 and XHTML 2

That is because again you're simply demonstrating that you have a severe lack of understanding about large scale software development. Modularity is king. In most cases I would agree, but look at the state of things right now. SVG is not even touched by some browser developers, what about MathML (I...
by ash.gti
Tue Nov 03, 2009 4:49 pm UTC
Forum: Religious Wars
Topic: Am I the only one on here that can't stand Python?
Replies: 184
Views: 33027

Re: Am I the only one on here that can't stand Python?

I recommend you use a proper Python IDE like PyDev. It takes care of the self part of method declaration. It's not the typing that bothers me, but the fact that the method declaration has to have one parameter more than the method call. That's just ugly! Thats because python is transforming: class ...
by ash.gti
Mon Nov 02, 2009 12:29 am UTC
Forum: Coding
Topic: C++ style strings
Replies: 8
Views: 717

Re: C++ style strings

On a somewhat related note, does anyone know of a good 3rd party string class? Preferably one like Java's or Qt's? (I don't want to have to include Qt for just a string class.) What kind of string stuff? I think boost's libraries cover just about everything you could need, IMO... but then again I m...
by ash.gti
Thu Oct 29, 2009 5:13 pm UTC
Forum: Religious Wars
Topic: Is MVC Actually Appropriate for the Web?
Replies: 23
Views: 9287

Re: Is MVC Actually Appropriate for the Web?

I'm starting to think Xandirs lack of contact with PHP frameworks might be to his benefit most PHP frameworks make me angry on some level or other. Either the lock you in to stupid ways of doing things or they let you get away with murder. I've seen a couple of Java things which implement PAC but I...
by ash.gti
Thu Oct 29, 2009 2:28 pm UTC
Forum: Religious Wars
Topic: Is MVC Actually Appropriate for the Web?
Replies: 23
Views: 9287

Re: Is MVC Actually Appropriate for the Web?

http://en.wikipedia.org/wiki/Presentation-abstraction-control Is what your talking about OOPMan, which is just a tiered system of MVC components. 1 Lives in the server, 1 gets transferred to your browser, Javascript is acting as the controller and the internal storage engine can be masked by a javas...
by ash.gti
Thu Oct 29, 2009 2:59 am UTC
Forum: Coding
Topic: What to learn: Perl, Python or Ruby?
Replies: 41
Views: 4340

Re: What to learn: Perl, Python or Ruby?

The only things not objects in ruby are the control statements (if, unless, def, when, case, end, class, module, else, raises, ...), also everything returns something, even if its nil. puts (if 1 == 1 a = 5 end).class #=> Fixnum puts (if 1==2 a = 5 # this never happens and there is no else clause ni...
by ash.gti
Thu Oct 29, 2009 12:00 am UTC
Forum: Coding
Topic: Black hat or White hat?
Replies: 30
Views: 3331

Re: Black hat or White hat?

I have a top hat and a bowler hat, they are both black... hmmm....
by ash.gti
Wed Oct 28, 2009 10:56 pm UTC
Forum: Religious Wars
Topic: Is MVC Actually Appropriate for the Web?
Replies: 23
Views: 9287

Re: Is MVC Actually Appropriate for the Web?

But what exactly does a Controller do, versus a View? Is it like Template vs Widget? # Warning heavily ruby inspired abstract examples incoming... So, your typical request is something like: http://somesite.com/post/what-i-did-today Right? So, restfully speaking, thats a request directed at the Pos...
by ash.gti
Wed Oct 28, 2009 9:36 pm UTC
Forum: Religious Wars
Topic: Is MVC Actually Appropriate for the Web?
Replies: 23
Views: 9287

Re: Is MVC Actually Appropriate for the Web?

I would love to sit down and learn up some proper MVC. I've never really done so - I've relied on functional abstraction to keep things sane so far. Anyone got a good reference for MVC as it applies to webdev? Most web frameworks try to enforce a MVC approach, to varying degrees. MVC is pretty much...
by ash.gti
Wed Oct 28, 2009 5:30 pm UTC
Forum: Computer Science
Topic: Region-based memory management
Replies: 1
Views: 756

Re: Region-based memory management

The only thing I know about region based memory management is that I know Objective C (Apples implementation anyway) uses regions (called NSZone) under the hood to handle Objective-C class instances. Since the iPhone is running Darwin too, and is pretty limited on memory maybe this is an example of ...
by ash.gti
Tue Oct 27, 2009 2:42 pm UTC
Forum: Religious Wars
Topic: Is MVC Actually Appropriate for the Web?
Replies: 23
Views: 9287

Re: Is MVC Actually Appropriate for the Web?

I don't see a problem with MVC and the web, even when you add in features like AJAX. Those are just partial view updates, so you make a request and get a snippet of something back to update the site with, it might be just some data updates or it might be the whole contents of a div, but that doesn't...
by ash.gti
Mon Oct 26, 2009 5:55 pm UTC
Forum: Coding
Topic: What to learn: Perl, Python or Ruby?
Replies: 41
Views: 4340

Re: What to learn: Perl, Python or Ruby?

This poll lacks a "none of the above" option. c-style syntax is superior! perl uses a c-style syntax examples: perl: for ($count = 10; $count >= 1; $count--) { print "$count "; } print "Blastoff.\n"; c: for (int count = 10; count >= 1; count--) { printf("%d "...
by ash.gti
Mon Oct 26, 2009 3:41 pm UTC
Forum: Coding
Topic: What to learn: Perl, Python or Ruby?
Replies: 41
Views: 4340

Re: What to learn: Perl, Python or Ruby?

It would be worth while to learn all 3, but i'd say python's the easiest to learn, as its a little more simple than the others. They are all pretty interchangeable in their uses. A lot of ruby programmers do a lot of meta programming which can take a while to get your heard around. Ruby is used a lo...
by ash.gti
Thu Oct 22, 2009 6:30 pm UTC
Forum: Coding
Topic: Input in Javascript
Replies: 12
Views: 1211

Re: Input in Javascript

CortoPasta wrote:This gives me 1+2=12 :-/ Man, I thought this was a basic question


They are strings if you do the prompt.

You need to cast them to the data type you need, you can do x = parseInt(x); and y = parseInt(y);
by ash.gti
Thu Oct 22, 2009 5:17 pm UTC
Forum: Coding
Topic: Input in Javascript
Replies: 12
Views: 1211

Re: Input in Javascript

Code: Select all

<script type="text/javascript">
var x = prompt('input a x:');
var y = prompt('input a y:');
document.write((x+y));
</script>



Although Xanthir's approach is better IMO.
by ash.gti
Thu Oct 22, 2009 2:26 pm UTC
Forum: Coding
Topic: Could it be possible to truly compile Ruby code?
Replies: 12
Views: 3734

Re: Could it be possible to truly compile Ruby code?

Ruby2C does this by taking the AST normalizing it, adding types, then converting it to C code. It can do it pretty successfully too. It doesn't compile the whole of ruby into C, but it can do bits and pieces. If you really want ruby to compile statically, just take their approach and extend it a lit...
by ash.gti
Wed Oct 21, 2009 7:36 pm UTC
Forum: Coding
Topic: Could it be possible to truly compile Ruby code?
Replies: 12
Views: 3734

Re: Could it be possible to truly compile Ruby code?

1. eval() requires a `require "eval"` as it would no longer be in the very core of the language Why? Just have every application link to libruby (or something) There are languages (like Lisp) that are compiled yet still have eval in the runtime. Its completely possible to keep eval in the...
by ash.gti
Wed Oct 21, 2009 6:13 pm UTC
Forum: Coding
Topic: Could it be possible to truly compile Ruby code?
Replies: 12
Views: 3734

Re: Could it be possible to truly compile Ruby code?

And get me straight I'm talking about really compiling it as a language. Not as pcode or as an executable containing an interpreter library. A compiled language like C, Also an interesting prospect for me is the possibility of using Ruby as a systems programming language.. I see this as a bit harde...
by ash.gti
Wed Oct 21, 2009 4:40 pm UTC
Forum: Coding
Topic: Could it be possible to truly compile Ruby code?
Replies: 12
Views: 3734

Re: Could it be possible to truly compile Ruby code?

You could use Ruby2c which isn't very stable. You can also take your code, have ruby gen the op code for all your files then save that as a string of C code then load the ruby library into a C program and run the string. It would be faster than running it through the interpreter, as it would cut out...
by ash.gti
Wed Oct 21, 2009 2:46 pm UTC
Forum: Religious Wars
Topic: Why Windows is better than Linux
Replies: 211
Views: 89379

Re: Why Windows is better than Linux

Woegjiub wrote:Remember, green ones speed it up, blue ones cool it down, and red ones are just stupid - they heat it up.


But if your an ork (from 40k) then green is the best, red is faster and blue is lucky.
by ash.gti
Mon Oct 19, 2009 1:43 pm UTC
Forum: Hardware
Topic: thinking of getting a mac, got a few questions
Replies: 77
Views: 8663

Re: thinking of getting a mac, got a few questions

OS X does come with vim and emacs by default. You can also install AquaEmacs and MacVim if you want them to be integrated into the window environment instead of just in the console. You can also install gmake, gcc, gedit, etc. from Linux, they all work just fine in my experience. OS X also has TextM...
by ash.gti
Mon Oct 19, 2009 2:07 am UTC
Forum: Coding
Topic: Woo closures in C!
Replies: 24
Views: 2272

Re: Woo closures in C!

A C with built in multiple dispatch would be too OO to be called C IMO, and it would likely break binary compatibility. How does multiple dispatch lead to OO? just curious... I don't see it as much of an OO feature. Its nice, but it doesn't add as much to an OO based system as I think it would to a...
by ash.gti
Sun Oct 18, 2009 7:31 pm UTC
Forum: Coding
Topic: Woo closures in C!
Replies: 24
Views: 2272

Re: Woo closures in C!

I wonder if you made a C lib that took a block and then tried to link to it from say Lisp, you'd need a wrapper turn lisp blocks into C blocks, but that would be cool, it would really open the door for new possibilities I think. Now C just needs multiple dispatch and a better macro system and well y...
by ash.gti
Sat Oct 17, 2009 5:42 pm UTC
Forum: Coding
Topic: Woo closures in C!
Replies: 24
Views: 2272

Re: Woo closures in C!

You, sir, name? wrote:This is not closures in C. It's closures in a third party extension of C.


Thats been speced, purposed and implemented in 3 separate C compilers and is being considered to be added to the C spec.
by ash.gti
Sat Oct 17, 2009 5:14 pm UTC
Forum: Coding
Topic: Woo closures in C!
Replies: 24
Views: 2272

Re: Woo closures in C!

No worries, so what are you doing with closures in C? My friend was trying to play with GCD and implmented A* to solve a 20x20 sliding puzzle in the worst case scenario (when the puzzle is exactly backwards) but it actually didn't speed it up much, he thinks its mostly because of how small his block...
by ash.gti
Sat Oct 17, 2009 3:49 pm UTC
Forum: Coding
Topic: Woo closures in C!
Replies: 24
Views: 2272

Re: Woo closures in C!

http://forums.xkcd.com/viewtopic.php?f=11&t=39232&p=1570376&hilit=+blocks+in ? Also Apple open sourced Grand Central Dispatch (look into that too if you like blocks) and llvm-gcc or clang or the apple gcc have blocks in them. So you can install llvm-gcc on other OS's if you want blocks i...
by ash.gti
Sat Oct 17, 2009 2:50 pm UTC
Forum: Religious Wars
Topic: Why Windows is better than Linux
Replies: 211
Views: 89379

Re: Why Windows is better than Linux

Windows 7. Really? I mean I have ultimate beta on my gaming desktop, but I still don't feel like anything in there is that amazing. I have used OS X and plenty of linux desktop environments and just about every new feature I have seen in 7 has existed before. Its a clear improvement over Vista but ...
by ash.gti
Fri Oct 16, 2009 10:02 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 9862
Views: 1763688

Re: Coding: Fleeting Thoughts

I wonder how often in OO programming you want to go both up and down the inheritance tree to look up a method...
by ash.gti
Fri Oct 16, 2009 9:16 pm UTC
Forum: Religious Wars
Topic: Why Windows is better than Linux
Replies: 211
Views: 89379

Re: Why Windows is better than Linux

I think most of Microsofts current products are "cash cows" now. I personally haven't seen much innovation in most of their products in recent years, but I don't really use any of them on any sort of regular basis, so I may be missing something. They just seem to do enough to not loose mar...
by ash.gti
Thu Oct 15, 2009 9:45 pm UTC
Forum: Coding
Topic: Coding: Hacks and Snippets
Replies: 434
Views: 776199

Re: Coding: Hacks and Snippets

Running MDH's C++0x stuff i get: test.cc: In function 'void printf(const char*, T, Args ...) [with T = int, Args = ]': test.cc:31: instantiated from here test.cc:20: error: call of overloaded 'printf(const char*&)' is ambiguous /usr/include/stdio.h:281: note: candidates are: int printf(const cha...

Go to advanced search