Jump to content

  • Log In with Google      Sign In   
  • Create Account


Key_46

Member Since 25 Sep 2005
Offline Last Active Today, 01:03 PM
-----

Posts I've Made

In Topic: urllib2 - Website loads fine in browser but not in Python

08 July 2014 - 09:46 AM

Yes, that worked wonderfully. Thanks!

 

For the future, how were you able to diagnose what the problem was?

Since the request was working on my browser I tried to match the header exactly. I enabled the debug verbose for the opener to see what it was sending:

 

opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=1))


In Topic: urllib2 - Website loads fine in browser but not in Python

08 July 2014 - 09:14 AM

In my case the webserver was not accepting the default User Agent from urllib2. Try changing it:

 

opener.addheaders = [('User-agent', 'Mozilla/5.0')]


In Topic: What type of programs can I work on to apply Linear Algebra concepts

18 December 2013 - 10:08 PM

The machine learning, computer vision, data mining are field is full of linear algebra, and so Facebook, Google and Twitter are also full of linear algebra.


In Topic: IDE for C++ Programming

10 September 2013 - 07:07 AM

Well CB doesn't offer the features that visual studio does, but it's a bit more flexible. You can use any compiler you want, the VC++ compiler if you want, while visual studio is stuck to it's only one.

 

Technically not true, since Visual Studio does support makefile projects it can be used with with any tool/compiler. As an example I used it with Mingw to build homebrews for Nintendo DS.


In Topic: DX11 - Instancing - The choice of method

07 July 2013 - 10:44 AM

With the bullets, i mean this:

 

(Just an example)

 

Imagine thousands of spaceships, shooting lasers (or something) all the time, I would imagine that I would instance all bullets, wouldn't I? In that case I don't really see how I would split up each bullet up into a chunk, as they could go anywhere...

 

But Thanks!

You are dealing with the problem of what objects worth drawing, One solution is keeping a buffer large enough only to draw the bullets near the camera and dynamically insert / remove the elements. You can specify the number of instances inside the buffer.


PARTNERS