Denilson Sá Maia

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Apr 2, 2014 21:40
Yes, Frapi, but there is no ORM in there.
Apr 2, 2014 21:38
@webarto link to that example?
Apr 2, 2014 21:34
Django uses ActiveRecord, but I think a library that has a powerful way of querying (such as Django's foobar.objects.filter(foo=3).order_by('bar')) would be great.
Apr 2, 2014 21:25
Hello, I know StackOverflow is not the place for recommendations, so maybe I should ask for one here in the chat. What are some good PHP ORM (object-relational-mapping) libraries? I'm used to Django's ORM in Python, and I was looking for something similar in PHP
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
Oct 19, 2011 08:40
So... In C people shoot themselves on the foot... If instead they shoot the crate, they would find a c-faq inside...
Oct 19, 2011 07:58
Yes, you're right. Maybe now I need some coffee. Actually, some food.
Oct 19, 2011 07:40
@AlfPSteinbach Okay, if you talk about codepoints… But Latin1 is not a subset of UTF-8 nor UTF-16 nor UTF-32. (but you never mentioned them, you just mentioned "Unicode") :)
Oct 19, 2011 07:36
@AlfPSteinbach Actually, ASCII is a subset of Unicode, but Latin1 isn't.
Oct 19, 2011 07:32
Just trying to clear the most obvious mistakes, as sometimes they are the most time-consuming to track down! ;)
Oct 19, 2011 07:31
Maybe different byte order?
Oct 19, 2011 07:30
According to the manpage, if none is passed, it uses the current locale.
Oct 19, 2011 07:30
@LucDanton Did you tell iconv which encoding it was receiving? (see -f parameter)
Oct 19, 2011 06:21
Well, thank you guys. :)
Oct 19, 2011 06:02
Well, I guess I will "rewrite" all access to a,b,c to use that intermediate struct name.
Oct 19, 2011 05:58
syntactic convenience.
Oct 19, 2011 05:54
FooBar would actually have an unsigned char, followed by XYZVector (another struct), followed by an array of 4 XYZVector elements.
Oct 19, 2011 05:53
It's because int a,b,c; are actually more than just 3 integers.
Oct 19, 2011 05:50
got an idea... Ugly trick using #define… I can put #define struct_contents int a,b,c;, and then put that macro inside both FooBar and Something. Ugly, I know, but I don't see other way.
Oct 19, 2011 05:48
To be precise, C for AVR microcontroller, but it's just plain old C.
Oct 19, 2011 05:47
yep
Oct 19, 2011 05:47
Is there any way to achieve that?
Oct 19, 2011 05:47
I want to access some.a, instead of some.fb.a
Oct 19, 2011 05:46
typedef struct Something {
    int something;
    FooBar fb;
} Something;
Something some;
Oct 19, 2011 05:45
I wanted to have it inside another struct, but access .a .b .c members "directly"... Let me explain with code:
Oct 19, 2011 05:44
Hey, suppose I have a struct like this: typedef struct FooBar { int a,b,c; } foobar;
Oct 1, 2011 23:45
@IDWMaster Wanna portable code? Stick to OpenGL.
Oct 1, 2011 22:40
(I'm a Vim user) Yes, Vim has syntax highlighting. Yes, Vim has some kind of code completion (although not as complete as a full IDE, but good enough). No, it doesn't have a debugger (or it does have and I don't know!).