[QUOTE=arleitiss;37855321]Well my college blocked ports to access database online. What can I do?[/QUOTE]
I gave you the instructions in the post you quoted. Which part are you unable to comprehend?
How do I manage app switching on Android? Like if the user goes to the home screen? Currently if they switch back to the app (if the device gets it's screen turned off, or switches to another app or homescreen) it crashes with a null pointer exception pointing to [code]GLES20.glUniformMatrix3fv(mTextureMatrixHandle, 1, false, render.mTexMatrix, 0);[/code]
Any idea how to fix this?
How similar is LibGDX to the Slick game engine for Java?
I want help porting these python scripts to assembler or like c or something faster than python...
[QUOTE=pkt;37867634]I want help porting these python scripts to assembler or like c or something faster than python...[/QUOTE]
If speed is such a concern, I recommend changing to a faster language and learning it instead.
[QUOTE=pkt;37867634]I want help porting these python scripts to assembler or like c or something faster than python...[/QUOTE]
Has it ever occured to you that Python may not be at fault, but your programming skills?
Im tring to build Lupa but I get this error:
This is just using the provided make file
[code]
make -C ./lib
make[1]: Entering directory `/home/richy/Desktop/lupa/lib'
make -C ./sys
make[2]: Entering directory `/home/richy/Desktop/lupa/lib/sys'
git submodule update --init ./inc
You need to run this command from the toplevel of the working tree.
make[2]: *** [sys] Error 1
make[2]: Leaving directory `/home/richy/Desktop/lupa/lib/sys'
make[1]: *** [sys.so] Error 2
make[1]: Leaving directory `/home/richy/Desktop/lupa/lib'
make: *** [libs] Error 2
[/code]
Is XNA worth it for all the extra stuff I have to install in my PC that I don't want?
[QUOTE=hogofwar;37867552]How similar is LibGDX to the Slick game engine for Java?[/QUOTE]
In fact, they are very different. As far as I know, you have to use OpenGL in LibGDX in order to draw stuff.
[QUOTE=hogofwar;37871828]Is XNA worth it for all the extra stuff I have to install in my PC that I don't want?[/QUOTE]
Only if you want to develop for XBox
I'm trying to write a Win8 app that uses [url=http://todoist.com/API/help]the API from this website[/url] and create a ToDo manager for it.
Can this be achieved with [B]Javascript[/B]? I've never had to use APIs before, so if anyone has a tutorial on how to use them that'd be great.
[QUOTE=Jookia;37868486]Has it ever occured to you that Python may not be at fault, but your programming skills?[/QUOTE]
Well the thing is that it does what it does more than faster enough and such, but I want it to be faster. So far the biggest bottleneck in my coding of it is pretty much the disk write speed of my drive...on a ramdisk it'll finish off like 2gb worth of work in less than a second...
If that's the case, switching languages won't be of much use.
[editline]2nd October 2012[/editline]
Python's implementation of file i/o is based on stdio
[QUOTE=pkt;37878600]Well the thing is that it does what it does more than faster enough and such, but I want it to be faster. So far the biggest bottleneck in my coding of it is pretty much the disk write speed of my drive...on a ramdisk it'll finish off like 2gb worth of work in less than a second...[/QUOTE]
Why not load the file in to RAM, do your shit then put it out to the HDD?
[QUOTE=T3hGamerDK;37856320]I'm using Ruby and I was wondering something.
I've got a script that's going to load external ruby scripts up, and execute a function in them. The function is called [file]::main()
Is there any way to do this?[/QUOTE]
Anyone?
Couldn't you import it at runtime then call it?
[QUOTE=Jookia;37882781]Couldn't you import it at runtime then call it?[/QUOTE]
I don't know, that's why I'm asking. Currently the code can be cut down to this:
[code]
cmd = ARGV[0]
require( '90s_' + cmd )
# Somehow call 'cmd'::main
[/code]
Anyone know of a good 2d Graphics Library to use with C#?
[QUOTE=Sand;37884025]Anyone know of a good 2d Graphics Library to use with C#?[/QUOTE]
Have you tried SFML.NET?
[QUOTE=Sand;37884025]Anyone know of a good 2d Graphics Library to use with C#?[/QUOTE]
XNA or as the guy above me said, SFML.Net.
Having used SFML in C++ and XNA in C#, I can highly recommend both.
[editline]2nd October 2012[/editline]
[QUOTE=T3hGamerDK;37882958]I don't know, that's why I'm asking. Currently the code can be cut down to this:
[code]
cmd = ARGV[0]
require( '90s_' + cmd )
# Somehow call 'cmd'::main
[/code][/QUOTE]
[url]http://khelll.com/blog/ruby/ruby-dynamic-method-calling/[/url]
Is that what you want? Haven't used ruby really before, but just found the link.
[QUOTE=T3hGamerDK;37884060]Have you tried SFML.NET?[/QUOTE]
[QUOTE=ArgvCompany;37885372]XNA or as the guy above me said, SFML.Net.[/QUOTE]
[QUOTE=ben1066;37885656]Having used SFML in C++ and XNA in C#, I can highly recommend both.[/QUOTE]
I was trying to use OpenTK initially, but it does not have that many tutorials or general questions as those other libraries. I will look into those thanks.
[QUOTE=Sand;37885951]I was trying to use OpenTK initially, but it does not have that many tutorials or general questions as those other libraries. I will look into those thanks.[/QUOTE]
All OpenGL tutorials translate directly to OpenTK tutorials. OpenTK just binds all the OpenGL methods and includes some math classes and window/context management.
OpenTK is about as low-level as it gets for C# graphics and isn't technically 2d (although you can just ignore the Z axis and be fine)
What's a good, free, barebones C++ compiler for Windows 7 64 bit, command line preferred? I just need to make some simple programs.
[QUOTE=Ardosos;37888957]What's a good, free, barebones C++ compiler for Windows 7 64 bit, command line preferred? I just need to make some simple programs.[/QUOTE]
MinGW
[QUOTE=Jookia;37882406]Why not load the file in to RAM, do your shit then put it out to the HDD?[/QUOTE]
Currently it does this so I guess it might be as fast as it can get...I have no way to tell though...Like I just wanted to know if redoing it all in assembler or something would make it use less of the processor or something too...dunno...I guess that would come with concerns about memory allocation and such and threading...
[QUOTE=pkt;37893948]Like I just wanted to know if redoing it all in assembler or something would make it use less of the processor or something too[/QUOTE]
Your program is [url=https://en.wikipedia.org/wiki/IO_bound]I/O-bound[/url], not [url=https://en.wikipedia.org/wiki/CPU_bound]CPU-bound[/url]. Rewriting it in assembly could make it use less CPU, but the time spent doing CPU work is a tiny fraction of the time spent waiting for disk activity, so optimizing the CPU part can only make a tiny fraction of a difference in the total run time.
I'm playing around with CURL and Code::Blocks trying to create a program that reads from Random.org. Simple enough.
[code]#include <iostream>
#include <curl\curl.h>
using namespace std;
int main()
{
CURL *curl;
CURLcode res;
curl = curl_easy_init();
if(curl)
{
curl_easy_setopt(curl, CURLOPT_URL, "http://www.random.org/integers/?num=1&min=1&max=6&col=1&base=10&format=plain&rnd=new");
res = curl_easy_perform(curl);
curl_easy_cleanup(curl);
}
return 0;
}[/code]
However, when I run the program, all I get is this line:
[code]Error: Server too busy right now, try again in a few minutes[/code]
If I replace the url with Facepunch or anything else, I get results. Anyone know what's up?
Also, my project folder is right below. If you got Code::Blocks, just go to "Test" and click on the *.cbp file. Everything's already configured and should run smoothly.
[url]https://www.dropbox.com/sh/x7ml877ccp3r7ha/Is4Vcx_CCW[/url]
It's possible they're blocking you from querying the service for random numbers. Maybe you've met your quota for the moment or maybe they're looking at the request and determine that it's an automated request and won't answer it properly.
Sorry, you need to Log In to post a reply to this thread.