Python

Room rules: sopython.com/chatroom Code formatting guide: tinyu...
Sep 11, 2014 07:32
I wrote something like this to be used by the reduce function:
`def cascade_modifiers(modifier1, modifier2):

def cascaded_modifier(self, *args, **kwargs):

modifier1(self, *args, **kwargs)
modifier2(self, *args, **kwargs)

return cascaded_modifier`
Sep 11, 2014 07:31
I want to cascade callbacks in Python
Sep 11, 2014 07:29
Can anyone please look at this and help me out on this? stackoverflow.com/questions/25771266/…
Sep 11, 2014 07:28
Hello everyone!!
Jul 16, 2014 10:45
Jul 16, 2014 10:41
Hey @Fenikso thanks for pointing out at sopython! But I was wondering why not just plain simple old school english?
Jul 16, 2014 10:05
???
Jul 16, 2014 09:58
note that UserProfile references User as a Foreign Key.. So my specific question is that can we do values('user__id')???
Jul 16, 2014 09:57
Can I do this in Python Django??

users = UserProfile.objects.filter(user__date_joined__lte=some_date).values('user__id')
 

Java

Dedicated to the discussion of the Java programming language a...
Jan 19, 2013 18:49
Hello
 

 Android Developer

Complete solution of Android
May 27, 2012 08:14
okay thanks.
May 27, 2012 08:13
hellO?
May 27, 2012 08:12
Anyone here who has some experience with openGL or libgdx?
May 27, 2012 08:11
thanks!
May 27, 2012 08:11
Hello
 
Feb 18, 2012 18:07
I am wondering if someone has worked with libgdx here?
Feb 18, 2012 18:06
Hello everyone
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Jan 1, 2012 00:59
and stores their html content in MySQL database
Jan 1, 2012 00:58
yeah it has halted the final working of a web crawler that particularly crawls .edu domains
Jan 1, 2012 00:57
thanks anyways
Jan 1, 2012 00:57
okay no problem rees92
Jan 1, 2012 00:57
It has been hours trying to solve this little problem but so far, i am unsuccessful :(
Jan 1, 2012 00:56
Please can you try atleast ??
Jan 1, 2012 00:55
can anyone help with the link i have posted??
Jan 1, 2012 00:54
yaaa
Jan 1, 2012 00:46
Can anyone help me on this. My project is badly stuck due to this.
http://stackoverflow.com/questions/8691042/using-preg-match-to-discover-and-validate-types-of-links-embedded-in-html
 

Lounge<C++>

Today we're daydreaming about C++26 reflection
May 15, 2011 12:55
@MartinhoFernandes can u help me with the problem i just posted on this chat??
May 15, 2011 12:45
@TonyTheTiger K No problem :)
May 15, 2011 12:43
I am not very well acquainted with the windows.h so i need help..
May 15, 2011 12:42
2
Q: Console Graphics Help!!

SpoiltIn the following code, how am I supposed to create a colored bar at the bottom of the console?? The following code makes the bar at the very top but I wan't to create the bar at the bottom. How am I supposed to do that? void main(void) { HANDLE hOutput = (HANDLE)GetStdHandle( STD_OUTPUT_HAND...

May 15, 2011 12:41
@TonyTheTiger pls help me in this regard
May 15, 2011 12:41
I am not getting the answer that is being posted there
May 15, 2011 12:40
Here:
May 15, 2011 12:40
Yep
May 15, 2011 12:40
void main(void)
{
HANDLE hOutput = (HANDLE)GetStdHandle( STD_OUTPUT_HANDLE );
// Set the text output position to (5,10)
COORD sPos;
sPos.X = 5;
sPos.Y = 10;
SetConsoleCursorPosition( hOutput, sPos );

// Set the color to bright green
SetConsoleTextAttribute( hOutput,
FOREGROUND_INTENSITY | FOREGROUND_GREEN );

// Write the text
DWORD nWritten;
WriteConsole( hOutput, "This is a test", 14, &nWritten, NULL );

CHAR_INFO buffer[SCREEN_HEIGHT][SCREEN_WIDTH];

COORD dwBufferSize = { SCREEN_WIDTH,SCREEN_HEIGHT };
May 15, 2011 12:40
In the following code, how am I supposed to create a colored bar at the bottom of the console?? The following code makes the bar at the very top but I wan't to create the bar at the bottom. How am I supposed to do that?
May 15, 2011 12:39
??
May 15, 2011 12:39
Can anyone here help me pls with console
May 15, 2011 12:13
In the above code, how am I supposed to create a colored bar at the bottom of the console?? The above code makes the bar at the very top but I wan't to create the bar at the bottom. How am I supposed to do that?
May 15, 2011 12:12
void main(void)
{
HANDLE hOutput = (HANDLE)GetStdHandle( STD_OUTPUT_HANDLE );
// Set the text output position to (5,10)
COORD sPos;
sPos.X = 5;
sPos.Y = 10;
SetConsoleCursorPosition( hOutput, sPos );

// Set the color to bright green
SetConsoleTextAttribute( hOutput,
FOREGROUND_INTENSITY | FOREGROUND_GREEN );

// Write the text
DWORD nWritten;
WriteConsole( hOutput, "This is a test", 14, &nWritten, NULL );

CHAR_INFO buffer[SCREEN_HEIGHT][SCREEN_WIDTH];

COORD dwBufferSize = { SCREEN_WIDTH,SCREEN_HEIGHT };
May 15, 2011 12:12
*C++
May 15, 2011 12:12
Can anyone help me with basic console graphics in C__
May 15, 2011 12:11
Hello people!!