Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ILikePie

Pages: 1 ... 15 16 [17] 18 19 ... 127
241
Life Advice / Re: Give up or try again?
« on: April 27, 2011, 10:58:13 am »
Oh we've done a lot together in past couple of weeks. Spring break is 2.5 - 3 weeks over here, so we saw each other almost every day.

And yeah... I think I'll just let it go this time.

242
Life Advice / Give up or try again?
« on: April 27, 2011, 07:39:07 am »
Here we go again... and this time Ronnie needs some help.

I asked this girl out a couple of weeks ago. A friend of mine suggested I'd try, otherwise I wouldn't have thought of it (Not because I don't like her, but because I've never asked anyone out before.). Anyway, I asked her out to see a movie, and she cancelled a day before, saying "it wouldn't work" and that "it wasn't a good time" for her.
Anyway, some time has passed, and I'm thinking of asking her out again. The same friend says I shouldn't bother, she just isn't "into" me.
So my question is, should I give up, or should I give it another try? Is this usually how things work or something?

243
Do what we all do and shave it away.

Also, Passover has passed over. I can finally have that pita I've been longing for.

244
Creative Projects / Re: The programming language thread.
« on: April 24, 2011, 08:56:00 am »
Eclipse? MonoDevelop? NetBeans? All three are great, but I'd go with Eclipse (MonoDevelop is fine, and NetBeans lacks Intellisense).

245
Creative Projects / Re: The programming language thread.
« on: April 24, 2011, 02:27:33 am »
Emacs does indentation nicely, it'll make sure everything is on the same level with just one press of the tab key. I've always hated how other IDEs mess with my style.
 

246
Creative Projects / Re: The programming language thread.
« on: April 22, 2011, 03:24:31 pm »
I'll say what I said in Tolyk's thread:
(Ok, granted, it lacks a preprocessor and it's not extensible, but then again, most languages aren't)
You can always use cpp for macros and whatever.
Code: [Select]
[ron@Tux:~]$ cat hello.cs
#define TEXT "hello, world!"
class Hello {
    static void Main() {
       System.Console.WriteLine(TEXT);
    }
}
[ron@Tux:~]$ cpp hello.cs | awk "NR>5" > temp.cs
[ron@Tux:~]$ dmcs temp.cs && rm temp.cs
[ron@Tux:~]$ mono ./temp.exe
hello, world!
cpp can be used anywhere, it doesn't look very good, but it's all a matter of adding another line to your Makefile.

247
Creative Projects / Re: Programming la Next Game
« on: April 22, 2011, 04:47:28 am »
(Ok, granted, it lacks a preprocessor and it's not extensible, but then again, most languages aren't)
You can always use cpp for macros and whatever.
Code: [Select]
[ron@Tux:~]$ cat hello.cs
#define TEXT "hello, world!"
class Hello {
    static void Main() {
       System.Console.WriteLine(TEXT);
    }
}
[ron@Tux:~]$ cpp hello.cs | awk "NR>5" > temp.cs
[ron@Tux:~]$ dmcs temp.cs && rm temp.cs
[ron@Tux:~]$ mono ./temp.exe
hello, world!

248
Life Advice / Re: Video editing software (Linux)
« on: April 21, 2011, 12:24:47 pm »
I don't have much experience with video editing and video editing software, but I hear Kdenlive is great. (It's made for KDE but it should work on GNOME as well.)

249
Life Advice / Re: Ipad-- should I keep it?
« on: April 19, 2011, 12:05:26 pm »
I don't understand all of this hatred towards Apple, they've got some great products. Definitely keep it.

250
Life Advice / Re: a small problem
« on: April 17, 2011, 12:29:51 pm »
I'd guess they either they hid it, or managed to kill Explorer.

251
Just wrap it in an extern block and you should be fine.

252
General Discussion / Re: Linux...how/why?
« on: April 16, 2011, 02:44:38 pm »
Okay, maybe I did get a bit carried away with that stability part, but yeah. Selected text likes disappearing, sometimes it decides to render size 10 font as size 8, size 14 as 10, etc. Right-to-left paragraphs still have that punctuation flips around bug (MS Office used to do the same thing a few years ago), docx tables show up flipped sometimes, I'd say it's right-to-left related as well.
I almost forgot, Hunspell/ispell/etc. are kinda terrible compared to MS's spellchecker. The stuff the have in Word does grammar checking and it makes sure you don't mix up homophones (their and there, etc.). I also find its suggestions much more relevant.

Also, I don't know about you guys, but love the ribbon. It's got quite the learning curve, but it's great.

Linux runs on pac-man... and yogurt?
They say on runs on kerosene-powered cheese graters too

253
What does it say when you try to access the memory directly?
C might be "padding" your values in your struct, they're not guaranteed to be consecutive. Especially since you use multiple types in one struct.
So you're saying the only way to prevent this "padding," is to write the members one by one?
e, Wikipedia says I can use a #pragma directive to mess with padding. Seems to work fine, but it's hardly portable (The gcc manual says it comes from MSs compiler or something).

254
I remember doing this correctly once, and I think this is the syntax.
When I try to write a whole struct to a file, I get two extra bytes right after the first entry:
Code: [Select]
void write_bitmap (canvas c, FILE *f)
{
     BITMAPINFOHEADER h = mkheader(c);
     fwrite(&h, sizeof(BITMAPINFOHEADER), 1, f);
}

...

$ hexdump -cV file
00000000  42 4d 00 00 66 00 00 00  00 00 00 00 36 00 00 00  |BM..f.......6...|
00000010  28 00 00 00 04 00 00 00  04 00 00 00 01 00 18 00  |(...............|
00000020  00 00 00 00 30 00 00 00  00 02 00 00 00 02 00 00  |....0...........|
00000030  00 00 00 00 00 00 00 00                           |........|
00000038
Those two 00s after 42 4d aren't supposed to be there, and when writing individual parts of the struct, they aren't:
Code: [Select]
void write_bitmap (canvas c, FILE *f)
{
       BITMAPINFOHEADER h = mkheader(c);
       fwrite(&h.magic, sizeof(uint16_t), 1, f);
       fwrite(&h.size,  sizeof(uint32_t), 1, f);
}

...

$ hexdump -vC file
00000000  42 4d 66 00 00 00                                 |BMf...|
00000006

Have I missed anything?

Spoiler: the struct (click to show/hide)

255
General Discussion / Re: Linux...how/why?
« on: April 15, 2011, 10:22:07 am »
Meh, you can always write your projects in html then.
For both openoffice is more than ok. I really doubt there would be a difference with word.
I mean ok, word have a few cool features but there isn't such a difference between the two, especially for simple task like that.
Umm.. No, not really. Have you even tried Word? It's far more stable, it's faster, it doesn't crash, it doesn't flip your text all over the place, it parses doc/docx correctly, and it does right-to-left paragraphs correctly. I can go on, but I think you get the picture.

Pages: 1 ... 15 16 [17] 18 19 ... 127