Everytime I load my model into XNA, I can usually see it far off in the distance. When I change some parameters and make it zoom up close, 10/10 times it's rotated funny and I'm set with the task of rotating it. Is there any easy way to do it except by experimenting? Or am I exporting it wrong (using Blender)? Is there any value I should set the objects in my 3d scene to be before exporting it so they appear 'upright'?
On some pages youtube uses "Turn off the lights" feature.
The same can be done in jQuery. Example
The example dims the entire page background but the video player remains on the top. Why is it so?
And what is the simplest way to dim all divs except the video one explicitly?
Does anyone know where I can find the code for the carousel.us JavaScript 3D Carousel? Developer's site (http://www.piksite.com/carousel.us/) is down. I see it referenced all over in articles and tutorials but so far haven't been able to find the actual code to download except from that site which is just ads now.
Client wants that specific thing and it doesn't make sense to code it from scratch.
Thanks.
.htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^site\.com$ [NC]
RewriteRule ^(.*)$ http://www.site.com/$1 [L,R=301]
RewriteRule ^new/?$ index.php?section=new
This works great and all, but I have recently implemented a subdomain m.site.com which reads off of a /mobile directory. When accessing m.site.com/new it will not display anything except return a server error. What can I do to correct this problem?
Basically, I want http://m.site.com/new
To achieve the same affect as http://www.site.com/new
instead of SELECT * FROM mytable, i would like to select all fields EXCEPT one (namely, the 'serialized' field, which stores a serialized object). this is because i think that losing that field will speed up my query by a lot. however, i have so many fields and am quite the lazy guy. is there a way to say...
`SELECT ALL_ROWS_EXCEPT(serialized) FROM mytable`
?
thanks!
I want to search my filesystem for any files with the extension .template.
The below works fine for everything except .htaccess.template
FileList.new(File.join(root, '**', '*.template')).each do |file|
# do stuff with file
end
because windows doesn't like nameless files, grrrr
How do I make this work on Windows? This code works fine on Linux....
I am comfortable with both Java and C#. Both with Eclipse and VisualStudio. So except I'll have to annoy people with installing Silverlight, is there something that should make me use GWT instead?
I have some data like this:
ID Value
1 AAA
1 ABC
2 dasd
2 dsfdsf
2 dsfsd
3 df
3 dwqef
they are objects(not plain text).
and i want to get all objects with the ID = 2.
I can do a binary binary search and get the index 3,but how can i get (2 and 4) is there any efficient algorithm?
the real problem has lists with about one Million items.
any language except bf and lisp can help.
Everyone, every blog is talking about HTML 5 and giving solution to use HTML in all browsers including IE6.
Should we leave XHTML 1.0 now and go
for HTML 5 and use JavaScript for IE6 support?
Does all other desktop/mobile browser
except IE6 supports HTML 5 without
adding JavaScript?
Will every browser render CSS written
for HTML 5 elements?
What about Screen- readers?
What are pros and cons to choose HTML 5 for all new projects?
Hi,
a colleague and I are trying pair programming for the first time. We both remote into a development machine; I'm using RemoteDesktop and my colleague is using UltraVNC. This works great except that he can't see the Intellisense dropdown in Visual Studio 2008. According to online posts, this may be something to do with DirectDraw, but I don't see much by way of a workaround.
Has anyone else experienced this?
Thanks,
Andrew
Hello,
I am a seasoned Delphi developer and would like to create something like seamless terminal services where an application is executed on a server but appears on the the desktop of the client.
To someone working on the server i don't want them to see the remote application running (except if they looked in at the list of running processes).
Im lost as to how to go about this, where to start, how to get an application to render to a surface other than the servers desktop.
Any suggestions would be most appreciated.
I tried running a script using nohup like,
nohup script.sh &
When I tried
ps -ef | grep "script.sh"
I couldn't find it there except for the grep which is being run with that string as a parameter.
Am I doing it right?. Does this mean that the process has indeed finished execution?
Thanks.
I am using Zend Framework and it works fine in Firefox/Safari. In IE I have a problem with images not loading.
Say I have an image in my public folder and I have this in my page:
<img src="/photos/category/img.jpg" />
Well that works, except when I'm at a URL with a controller like
http://www.example.com/controller/action
I can see why, but I want a good solution to properly creating these img src links that works across browsers.
I'm getting a segfault that GDB says is coming from SDL_GL_SwapBuffers. However, I can't imagine why. The SDL documentation mentions no specific pre-conditions for calling swapBuffers except that double buffering be allowed. Is this an option I have to turn on while initializing OpenGL or is this a hardware capability thing?
My code:
http://pastie.org/859721
(Ignore the unused variables, strange comments and other things. I haven't prettied this up at all. :P)
How to, using PHP and/or .htaccess prevent hotlinking?
There's a site, which is allowed to access the flv files located on my server, however I've noticed that there are many requests from other domains as well...
Here's the actual rule:
RewriteCond %{HTTP_REFERER} !^http://alloweddomain.com/.*$ [NC]
RewriteRule .flv denied.php [NC,L]
It's working OK except for Firefox, because FF is not sending referrer info when accessing .flv files...
I want to allow people to select a feature region on an image using jQuery.
This should work similarly to the Facebook tagger except once someone "tags" an area of the image an ellipse should appear with the ability for the user to rotate and scale it.
How can I achieve this using jQuery?
I installed Ubuntu 10.04, and with it came Emacs 23. If I want to select text in Emacs, that works perfectly fine except the fact that the region is not highlighted.
However, this only happens, if I try to make a region using the keyboard. If I select something with the mouse, it is highlighted as usual.
Does anybody know, why the region is not highlighted and how to fix that?
Hi all,
I have a similar problem as a previously solved problem of mine, except this time solution doesn't seem to work:
http://stackoverflow.com/questions/2991365/how-to-auto-insert-the-current-user-when-creating-an-object-in-django-admin
Previously i used to override the save_model to stamp the user submitting the article. Now i need to do the same for comments, it doesn't seem to work anymore.
Anyone have any ideas?
Thanks a lot!
Jason
When using a SQL join, is it possible to keep only rows that have a single row for the left table?
For example:
select * from A, B where A.id = B.a_id;
a1 b1
a2 b1
a2 b2
In this case, I want to remove all except the first row, where a single row from A matched exactly 1 row from B.
I'm using MySQL.
Hi,
I am using
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{ return YES; }
to allow rotation, which works fine - except that the landscape view jumps backwards up the page that is being displayed. I can't figure out what I should be looking at to fix it. I just want the page to rotate where it is.
Any pointers would be great. Am a noob, as is probably clear.
Thanks
Jonathan
Hello,
I would like to sanitize a string in to a URL so this is what I basically need.
Everything must be removed except alphanumeric characters and spaces and dashed.
Spaces should be converter into dashes.
Eg.
This, is the URL!
must return
this-is-the-url
Thanks
Hello,
I have created a loginform that is displayed on the front page.
Everything works fine except one thing, if you log in with bad information you get redirected to wp-login.php and the error message pans out there.
What i want is so the error message displays at the form on my front page.
Is there way of doing this?
When I compile a c++ application I'm writing that makes use of hash_map, I get this warning on g++ 4.3.2:
You are using the deprecated header . To eliminate this warning, use an ANSI-standard header file or use hte -Wno-deprecated compiler flag.
9> #include <ext/hash_map>
What include replaces this? I've searched for a while on google, and can't find anything except for people having similar problems, but no solution.
Hi
How to protect files (documents, images..) that r being sold over internet.
Is it possible to Deny access to all except a particular php file that lists those documents.
for instance www.mysite.com/list