[QUOTE=Zyx;37036687]
so many posts about something as little as this.[/QUOTE]
Your colours look weird, did you know that the palettes are in BGR format?
[QUOTE=Philly c;37037082]Your colours look weird, did you know that the palettes are in BGR format?[/QUOTE]
I don't think that matters here. I didn't take the colors directly from the palette ingame, but rather from the RBG palette from a screenshot in Photoshop.
But that does explain why the colors looked like shit when I tried getting it from ingame.
Also, I think that I've fixed the colors now.
Fucking hell. Every Android device has that awesome crop feature where you can select which part of your wallpaper you want to use. Naturally everyone wanted to do that when selecting a wallpaper for my 3D thingy too. I can't blame them.
Thanks to Android's intent system you can easily use features of other apps without having to implement it yourself. You don't have to code an email, client, gallery, browser, music picker, etc. In Android <1.6 they also included an intent to crop images like that.
Well, those fuckers removed it and I now had to use [url=walletapp.net/en/cookbook/crop-image]some library[/url] someone made where he copied some code from the 1.6 AOSP, but I finally got it work now and even rewrote like 50% of my app because the code sucked [url=http://pastebin.com/yvCkM5Bv]HARD[/url].
TL;DR: Cropping is hard :(
Edit:
Screenshot because otherwise nobody would read my post:
[img_thumb]http://puu.sh/NHqO[/img_thumb]
No highlights from me.
I suddenly have the urge to peel bananas furiously.
A mediocre Rune Scape Private server.. That's what I use to learn Java.
[QUOTE=geel9;37035555]Overv is just mad that I actually finished one of his projects[/QUOTE]
No one even needs to ask how you store passwords... :v:
[QUOTE=COBRAa;37037574]No one even needs to ask how you store passwords... :v:[/QUOTE]
For the most recent project where I had to store passwords, SHA256 with a salt.
The one time the GNU feels it isn't [i]right[/i] to implement its own extensions is cpp, which is just bullshit. I'd give my left nut for a capitalizing macro builtin. (And now I kind of wish they'd extended the namespace block syntax so you can enter a nested namespace too. I don't know why the ISO never got to that.)
On the note of the .cpp extension, why do so many C++ projects use .h/.cpp? Or for that matter .h/.cc?
I realize there's no direct standard for them, but why not use the extensions that at least seem to fit together?
[QUOTE=HubmaN;37037972]The one time the GNU feels it isn't [i]right[/i] to implement its own extensions is cpp, which is just bullshit. I'd give my left nut for a capitalizing macro builtin. (And now I kind of wish they'd extended the namespace block syntax so you can enter a nested namespace too. I don't know why the ISO never got to that.)[/QUOTE]
There's loads of GNU extensions for C because they implement C++ functionality, but they do also have a bunch of stuff for that language as well, I believe. Let's see... [url=http://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Extensions.html]Ah[/url].
[editline]1st August 2012[/editline]
[QUOTE=ace13;37038446]On the note of the .cpp extension, why do so many C++ projects use .h/.cpp? Or for that matter .h/.cc?
I realize there's no direct standard for them, but why not use the extensions that at least seem to fit together?[/QUOTE]
I think some IDEs by default use .h for C++, at least. Lately I've been starting to use .hpp, primarily because github considers every .h file C and I don't like the graphs being wrong :v:
[QUOTE=ace13;37038446]On the note of the .cpp extension, why do so many C++ projects use .h/.cpp? Or for that matter .h/.cc?
I realize there's no direct standard for them, but why not use the extensions that at least seem to fit together?[/QUOTE]
I use .hpp/.cpp
I spent about 5 days making this. I'm proud.
[IMG]http://i.imgur.com/GfIBE.jpg[/IMG]
[IMG]http://i.imgur.com/STFz9.jpg[/IMG]
[QUOTE=ace13;37038446]On the note of the .cpp extension, why do so many C++ projects use .h/.cpp? Or for that matter .h/.cc?
I realize there's no direct standard for them, but why not use the extensions that at least seem to fit together?[/QUOTE]
I use .cpp and .h. I have no idea why. I think maybe the references and tutorials I was using when I started learning C++ used .h files, so eh.
[QUOTE=Robber;37037256]Fucking hell. Every Android device has that awesome crop feature where you can select which part of your wallpaper you want to use. Naturally everyone wanted to do that when selecting a wallpaper for my 3D thingy too. I can't blame them.
Thanks to Android's intent system you can easily use features of other apps without having to implement it yourself. You don't have to code an email, client, gallery, browser, music picker, etc. In Android <1.6 they also included an intent to crop images like that.
Well, those fuckers removed it and I now had to use [url=walletapp.net/en/cookbook/crop-image]some library[/url] someone made where he copied some code from the 1.6 AOSP, but I finally got it work now and even rewrote like 50% of my app because the code sucked [url=http://pastebin.com/yvCkM5Bv]HARD[/url].
TL;DR: Cropping is hard :(
[/QUOTE]
Why on earth was it removed.
[QUOTE=geel9;37037943]For the most recent project where I had to store passwords, SHA256 with a salt.[/QUOTE]
Good, much better than storing them in a plain text file where the directory is not even password protected.
[QUOTE=geel9;37037943]For the most recent project where I had to store passwords, SHA256 with a salt.[/QUOTE]
Why even store passwords?
store them in plain text, it works for OSX, too.
[QUOTE=Overv;37039223]Why even store passwords?[/QUOTE]
Because you need to?
If you need to decode the passwords, store them as plain text instead of obfuscating them.
Otherwise just use bcrypt.
baby's first dll injection, putting that 64-bit compiler to use
[img]http://img52.imageshack.us/img52/4787/babystepsk.png[/img]
now I'll be able to debug the patch I made that's supposed to allow me to draw directly onto the desktop background
Why can't we just have LD_PRELOAD for Windows?
[QUOTE=Jookia;37040472]Why can't we just have LD_PRELOAD for Windows?[/QUOTE]
Because we don't have a system like ld.so on windows.
Working on a Tower Defense game in Love2d. I'm pretty familiar with Lua, so it's not too bad. It'll have random levels so it's not the same every time, so I'm trying to get the random pathway made for the enemies.
[t]http://i.imgur.com/bwcUJ.png[/t]
So far not so good.
i just signed up for a programming class. :< I took java last year and got an A.
...how different is C++? Can't be THAT hard, right?
[QUOTE=Zinayzen;37041257]i just signed up for a programming class. :< I took java last year and got an A.
...how different is C++? Can't be THAT hard, right?[/QUOTE]
Well other than memory management and pointers and the lack of a VM to do most of the work for you...
A question for you guys: I've been doing some C#. Whenever there are lists, arrays, files (Anything that you can count), is there a convention for naming the length of it? Some are called lengths, some size, some count. Any ideas?
Length makes sense to me. Count works as well. Size could be misunderstood as the actual size in bytes of an object.
[QUOTE=DoctorSalt;37042490]A question for you guys: I've been doing some C#. Whenever there are lists, arrays, files (Anything that you can count), is there a convention for naming the length of it? Some are called lengths, some size, some count. Any ideas?[/QUOTE]
General convention seems to be Length for fixed-length and Count for variable-length.
[QUOTE=Jookia;37039804]If you need to decode the passwords, store them as plain text instead of obfuscating them.
Otherwise just use bcrypt.[/QUOTE]
So "SHA256" doesn't give you a hint as to the method of storing the passwords at all?
[QUOTE=geel9;37044214]So "SHA256" doesn't give you a hint as to the method of storing the passwords at all?[/QUOTE]
Yes. The wrong way. You're using a method that's meant to check if two things are equal as fast as it can rather than something that will take a decent amount of time. Use bcrypt.
Sorry, you need to Log In to post a reply to this thread.