Apache allows to apply certain configuration using FileMatch, Location and the rest.
Is it possible to apply a certain configuration using IP as a condional
Something like this:
# some rules here.
In my app, the GPS picks the location of the vehicle. It is then supposed to put markers at all points where the vehicle could be if it drives for 1 KM in any direction (note that the roads may fork many times within his 1KM reach).
Can someone suggest me how to do this. Thanks in advance.
i need php script running on my server frequently request a web page
i thought of php header, with meta tag (refresh) but that's will not success, because header will redirect me once to the url then the refresh will stop.
<?php
header('Location: http://www.example.com/');
?>
<html>
<META HTTP-EQUIV=Refresh CONTENT="60">
</html>
any suggestion please;
Hi,
I'm trying to find a way to get some weather information with Yahoo Weather using Yahoo Query Language.
As i'm living in France, in a city called Nice, the following query returns an error:
select * from weather.forecast where location='Nice'
And as I have the latitude and longitude coordinated, how can I give them to the YQL to return the weather info? Is this service worldwide or just for USA?
Thank you,
Regards.
A little context
There is a wpf based application which i left opened for 2-3 days without performing any activity throws out of memory exception , this is very Weird situation and does not happen all of the time. During this ideal activity , my application does nt perform any activity but just a file system watcher contineously watching a shared location , so i thought that would be a problem but i am not sure. Any suggestion is always welcomed.
My app has created a bunch of data files as development has progressed through the simulator. Their location is obtained by this function:
NSString *pathInDocumentDirectory(NSString *fileName) {
NSArray *documentDirectories = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,
NSUserDomainMask,
YES);
NSString *documentDirectory = [documentDirectories objectAtIndex: 0];
return [documentDirectory stringByAppendingPathComponent: fileName];
}
The files are now required on the device as testing of the app is moving from the simulator to actual devices. How do I transfer the data files from my current working environment to the devices?
when I redirect my page to another page header("location:popup.php"); it gives following error -
Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\303\levelupdate.php:289) in C:\xampp\htdocs\303\levelupdate.php on line 320
Hi, I am loading data from one sample.xml file using http service. the xml file will generated by jsp and it is saving in one proper location like(d:/programfiles/some.xml).now when I first time login to application i need to check whether that xml file is present or not. How can I check?
Please help me in this it will very help full for me.
Hello.
I have created a folder and published my webservice to this folder. I then created an application (in IIS 7) and pointed it at this folder location. When I try and hit the ASMX file from a browser on the local machine I get the following error:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
Can someone tell me why?
I have a scenario where I'm moving the contents of a blob stored in a core data entity into a file. I need a way to export that data during a migration, where I know the entity that's being converted and save the blob to a file, writing the location of that file into the converted entity's appropriate attribute.
I can't seem to find a way to do this. The docs regarding the Three Stage Migration seem to indicate what can be done, but I'm not sure where to define things, or what exactly to define.
I am trying to create a simple RSS parser using the two frameworks. However I am getting PHPerrors when trying to write to my cache directory:
set_cache_location(APPPATH.'cache/rss');
I am running windows 7 with XAMPP using the latest version of Simplepie from github
error:
A PHP Error was encountered
Severity: User Warning
Message: C:\xampp\htdocs\geekurls/system/application/cache/rss is not writeable. Make sure you've set the correct relative or absolute path, and that the location is server-writable.
Filename: libraries/simplepie.php
Line Number: 1732
Question: I was just browsing
http://msdn.microsoft.com/en-us/library/ms190447.aspx?PHPSESSID=tn8k5p1s508cop8gr43e1f34d2
for information about how to restore a database to a new location
The interesting part is (my question has nothing to do with databases), why is there a PHP-Session-ID (PHPSESSID) parameter in the ULR if the extension is aspx?
Unless one would reroute .aspx to .php ?
I have sync eclair sources using repo ~/eclair_sources/
In Eclipse I create a project using existent sources and I add the former folder and I have a lot of errors like thos:
Description Resource Path Location Type
android.R.attr cannot be resolved to a type SuggestionsAdapter.java /eclair/frameworks/base/core/java/android/app line 411 Java Problem
_Original_Bitmap cannot be resolved to a type Bitmap.java /eclair/frameworks/base/tools/layoutlib/bridge/src/android/graphics line 27 Java Problem
Any advise?
How do I configure the Enterprise Library Logging Application Block to place the log files in the ProgramData folder? AFAIK it's only possible to use relative paths (from the installation directory) or absolute paths to set the location in EntLib configuration.
I did a git on the com.android.music app and then created a project in eclipse from existing code. I chose 2.1 as the sdk target but I am getting errors trying to compile.
Is the music app referencing code that is not part of the 2.1 sdk? Can someone list the steps for how to compile in eclipse?
Description Resource Path Location Type
ArrayListCursor cannot be resolved to a type PlaylistBrowserActivity.java Music/src/com/android/music line 529 Java Problem
MediaFile cannot be resolved AlbumBrowserActivity.java
Hello,
I wanted to open up the topic to discuss ways to encourage or incentivize users to fill in information in a user profile on a website, such as skills, location, organization, etc. More information in a user profile can give a website an improved capability for its users to search, network, and collaborate.
Without bugging users to fill in their profiles (ie - via annoying e-mail reminders), what other ways have you guys come up with to encourage user input?
Best,
-Matt
Hi I don't want to display the any notification service in status bar if i saw one notification service once .For example i am displaying persons who are exceeding the 20 km distance from my location .some persons are displayed.when i saw it once then automatically the icon in the status bar is don't displayed.For this one give me some suggestions .Thanks in advance.
This code is not working on IE8
window.open(url, "find_users",
"resizable=yes,scrollbars=yes,menubar=no,toolbar=no,location=no,status=yes,height=300,width=500");
I am getting Object Expected error in only IE8, its working fine in all other brouser.
Hi!
I'm using the tags in HTML5 to play a video on a web browser... (and I'm very impressed with this new feature)
Is there the functionality to change the video being played through Javascript? Say when I select another video from a list, a Javascript function would be called which would contain something on the lines of MyVideo.VideoLocation = //location of new video to be played. Is this possible please?
Thanks and regards,
Krt_Malta
I want to drag controls on panel and when dragging I want to move the control and get its location to drop on to panel.I have tried out mouseUp,mouseDown,MouseMove events of control.But that is not what I am looking for.I want to fire DragDrop event on panel and move control.Can I do this?If you can give me an idea it will be great.Thank you
I'm trying to create some pages in my Windows Phone application without the use of any XAML. Everything is working, however, I'm failing to use NavigationService/ Journal with this approach and all my attempts to utilize it are answered by the usual "No XAML was found at the location {0}'" response. Yes, I can add an almost empty XAML file to get everything working, but is this kind of boiler plate code really necessary?
Is it maybe possible to use the UriMapping to map certain Uris to specific classes instead of *.xaml files?
My site is for listing theatrical productions
(http://theaterOnline.com)
I want to use a drop down list to enable users to filter the listings by location or genre.
The following code refreshes the screen:
$("#cfilter").change(function() {
$('#calendar').fullCalendar('refetchEvents' )
})
but I need to be able to change SRC in the ajax call below:
$.ajax({
url: src,
dataType: 'json',
data: params,
cache: options.cacheParam || false,
success: reportEventsAndPop})
which is a passed parameter from eventSources[1]
TIA for anyone who can help!
I need to have a file for database configuration outside of EAR file of my EJB application. Even if I define a datasource and call it via JNDI, I still have some properties that I want to change, like hibernate.dialect or hibernate.show_sql, for example.
I tried using:
<property name="hibernate.ejb.cfgfile" value="some-file.xml" />
and it works fine when some-file.xml is in jar file, but how to call it from another location. I tried file:/// but didn´t work.
thanks