.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
Hi,
I have a TabActivity. Each tab points to a sub activity. Works great.
Is there any clever way to refresh one of the activity tabs? I just want to 'restart' the activity in tab #3 for example. Not sure of a good way to do this other than building in refresh support to the activity itself, or clearing ALL the tabs and recreating all of them.
Thanks
I've read through other questions but to no avail - I really can't work this out.
The site is http://bit.ly/cqEO53 (hoping to not have any search links to this page so shortening URL).
The gradient on the footer looks great in non IE browsers, but fails to show in IE 7,8 and the dev preview.
Any ideas?
i need help with a wordpress theme, i want to localize a theme but i have some problemes my new blog is in arabic (rtl) and i want to replace the theme logo in the right (float to right) and the banner ad to the left side in the header, also i tried to float the search bar to the left but i did not succeed in that, can you please help me to localize this great theme? ah i forget to tell you the theme name is "Vanillia" http://newwpthemes.com/wordpress-theme/vanillia/ here is a screenshot of what i need to do (http://) i47.tinypic.com/28cg0ax.png
I was reading a Sun's tutorial on Concurrency.
But I couldn't understand exactly what memory consistency errors are? I googled about that but didn't find any helpful tutorial or article about that.
I know that this question is a subjective one, so you can provide me links to articles on the above topic.
It would be great if you explain it with a simple example.
I'm writing for an atmel at91sam9260 arm 9 cored single board computer [glomation gesbc9260]
Using request_mem_region(0xFFFFFC00,0x100,"name"); //port range runs from fc00 to fcff
that works fine and shows up in /proc/iomem
then i try to write to the last bit of the port at fc20 with
writel(0x1, 0xFFFFFC20);
and i segfault...specifically "unable to handle kernel paging request at virtual address fffffc20.
I'm of the mind that i'm not allocating the right memory space...
any helpful insight would be great...
Am looking for open source Django apps in Google App engine. I want to play around with the code and learn in the process.
Not mandatory, but Would be great feature in the app:
- account registration/login
- image/file upload
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
Hi,
I followed this article and it works great except when paging or sorting the HeaderCheckBox is still checked. How and where should this be unchecked? I think it would be best to uncheck it in the control itself, but I am not having any luck even getting a reference to it using this code:
protected override void OnSorted(EventArgs e)
{
base.OnSorted(e);
if (AutoGenerateCheckBoxColumn)
{
CheckBox cb = (CheckBox) HeaderRow.FindControl(String.Format(HeaderCheckBoxId, ClientID));
if(cb != null)
{
cb.Checked = false;
}
}
}
Thanks
We're migrating from StarTeam (aka "the horrible") to SubVersion (aka "the alleged great"). We've already migrated the files by doing a "dumb" commit to all files and started working on the SubVersion repository.
However, we're still forced to use StarTeam because we lack the per-file history of check-ins. Is it possible to inject that history into SubVersion after the first check-in has been done? If yes - how?
I'm just trying to understand the Templating(system). If you use MVC in your web application then you don't need to use something like Smarty(template engine) as you are already separating application code from presentation code anyway by using MVC right? please correct me?
So am i correct in thinking it's MVC OR Templating or do you use both in your apps?If any one could explain this in detail it would be great.
Thank you in advance;-)
hi,
I'm using JQuery Media module to integrate my own flash video player with Drupal website.
I've tested everything on a local drupal installation and it works great. However I've updated an online drupal website and the player is not used. I can only see this message:
"Use SwfTools Module to play FLV files if you only convert/upload FLV videos or FlowPlayer Module must be enabled in order to play FLV videos with other types."
thanks
Hey guys,
does anybody know how to disable or manipulate the (in most browsers) dashed border of a dom-element if it has the focus in a tabindex order?
i want to build my own style for a focused element but it would be great to use the exixsting feature -because with tabindex it is possible to bind keydown event to the dom-element ...
you know what i mean?
thanks and regards
Hi,
Can anyone plz tell me how to implement an image button in blackberry...
It would be great if i can be helped with some sample code of how to implement it...
I am trying to find a CSS tutorial that would enable me to create a 4x3 grid of features like on this site http://www.ewedding.com/features.php
If anybody can suggest one it would be great! All the tutorials that I have found seem to style the entire page rather that a particular part of the page.
Thanks in advance
Decbrad
Here's the scenario:
Many users access an application (running on tomcat), the user's data is segmented into multiple databases, say each db containing 1000 user's data.
Now is it somehow possible to have 100s of tomcat servers running on 'inexpensive' PC class machines with each connecting to a single db, with user's session getting passed to appropriate tomcat and becoming 'Sticky' there. Can have some sort of 'gateway' deciding which user goes where and doing the load-balancing appropriately.
Would make a great scalability solution :)
Hi,
I just want somthing like this:
select SUM(*) from `mytable` group by `year`
any suggestion?
(I am using Zend Framework; if you have a suggestion using ZF rather than pure query would be great!)
Hi All. I'm new to php. So, please forgive me if this seems like a dumb question.
Say i have a MySQL insert statement insert into table (a,b) values (1,2),(3,4),(5,6). table 'table' has a auto increment field called 'id'.
how can I retrieve all the ids created by the insert statement above?
It will be great if i get an example that uses mysqli.
Duplicate of: Silverlight Install Base - How big is it?
Hi,
Anyone knows the penetration rate (in %) for all North-American internet users with the Silverlight plugin installed? Been looking all around, but couldn't find any comprehensive numbers.
I'm looking for General Public penetration rates, not only within the dev community. Something close to Adobe's flash version penetration stats would be great.
im new on drupal and want to make a menu for a restaurant showing all the dishes with photos, prices and descriptions in categories (japanese food, chinese food etc).
i wonder if there are some great tutorials or modules for this?
i cant find any on the web.
thanks you
any idea related to the android applications, with a possibility of integration on facebook or twitter ?
I found this link useful:
http://www.talkandroid.com/android-forums/android-applications/80-9-great-ideas-android-applications.html , but I appreciate your opinion and any interesting idea :)
After being convinced ("schooled") that Swing apps on Mac do look native, I'm trying to make mine look as native as possible. Everything looks great, but when I hit command-Q or do it from the menu, my windowStateChanged(WindowEvent e) is not firing on my main JFrame (if I exit in any other way, it does fire). How can I respond to the real Apple quit?