I want to do following things:
If recipient address not exist in exchange ,redirect to a@test.com
If recipient address meet specific pattern , redirect to b@test.com
Thank in advance!
Those two web shops are using same script I guess.
http://www.ipmart.com
and
http://www.gsm-traders.com
anybody knows what kind of script they are using? Or at least recommend some script similar to this?
Hi, I am using tcsh and define an environmental variable as follows:
setenv mycomp [email protected].com
so that when I need to copy files from the remote my.computer.com, I type the following:
scp $mycomp:sourcepath destpath
But when I do this, I get the following error: "Bad : modifier in $ (m)." where (m) is the first character after the colon.
What is this error telling me, and how can I fix it?
I want to implement CalendarView / DatePicker button into my Google Map
How can i do it ?
On click of this button i want a small calendar to open and enable to pick a date from the calendar,when the date is picked i want to execute a function that i wrote.
Thank you !
**The area marked with red doesn't exist right now :
I want this button to open a datePicker
https://imagizer.imageshack.us/v2/390x695q90/633/VyWT4l.jpg
my activity xml right now looks like:
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/map"
tools:context=".MapsActivity"
android:name="com.google.android.gms.maps.SupportMapFragment"/>
I'm running into problems trying to pass absolute URIs as parameters with clean URLs enabled.
I've got hook_menu() set up like this:
function mymodule_menu() {
return array(
'page/%' = array(
'title' = 'DBpedia Display Test',
'page callback' = 'mymodule_dbpedia_display',
'page arguments' = array(1),
),
);
}
and in the page callback:
function mymodule_dbpedia_display($uri) {
// Make an HTTP request for this URI
// and then render some things
return $output;
}
What I'm hoping to do is somehow pass full URIs (e.g. "http://dbpedia.org/resource/Coffee") to my page callback. I've tried a few things and nothing's worked so far...
http://mysite.com/page/http%3A%2F%2Fdbpedia.org%2Fresource%2FCoffee Completely breaks Drupal's rewriting
http://mysite.com/page/?uri=http%3A%2F%2Fdbpedia.org%2Fresource%2FCoffee Gives a 404
http://mysite.com/page/http://dbpedia.org/resource/Coffee Returns just "http:", which makes sense
I could probably use $_GET to pull out the whole query string, but I guess I'm hoping for a more 'Drupal' solution. Any suggestions?
I have a hosting company, I am using resellerpanel.com to buy domain and hosting for my clients, but I want to switch to cPanel, resellerpanel offers from 17.50$/M and hostgator.com offers 19.96$/M, I don't care about money all I care about services, live support and up time.
Note: some of my clients request email only not hosting can I limit access to email mananger or hosting only with cPanel?
Thanks.
I'm using send_dbmail to send a text message to customers. This is the following sql:
exec msdb.dbo.sp_send_dbmail
@recipients='[email protected]',
@body='check out this url https://www.someurl.com/directory/blah.aspx',
@subject='I am the subject!'
The body gets truncated to "check out this url https://www.someurl.com/directory/blah.as" (the "px" is removed from the end of the url).
I've ruled out message length as I have tried sending just "www.google.com/test.aspx" and the "px" is removed as well. Another strange thing, when I try forwarding the text message to myself and add the "px" back on myself, it works. It also works if I send a email from outlook with the same body.
Any ideas?
Thanks.
My app reads a from decentralized (so I have the ability to change servers if I have to) xml file with TBXML parser. The xml file consists of only a few lines like this
<xml>
<mirror url="http://www.someserverabc.com/data.xml" priority="1"/>
<mirror url="http://www.someservermirror.com/data.xml" priority="2"/>
<mirror url="http://www.anotherserver.com/data.xml/" priority="3"/>
</xml>
So I have the corresponding priority to the url.
Now I want to check if server with priority 1 is reachable, and if not, try the 2nd one and so forth. If a server is reachable I'm parsing XML with the url from the mirror list
How could I implement this approach and is it even a good approach or how can this be tweaked? (is XML even desirable in the first scenario)
I want to use rsnapshot to make backups of some folders on a remote server.
I've already setup Key Based Authentication, and I've specified in rsnapshot.conf:
snapshot_root [email protected]/
however I get the following error:
ERROR: snapshot_root snapshot_root
[email protected]/ - snapshot_root \
must be a full path
So I was wondering if the only way is to mount first the remote server and how (I'm on Ubuntu 9.04)
thanks
I need to extract the name and the e-mail from one data file. the file contains more than 500 lines and I want to extract this two informations almost all the data. I would like to use preg_match_all, but my function doesn't work ...
$chaine =
" -----------------
11/21/12 16:06:54 tcp static-qvn-qvt-127041
MAIL toto1@web.com
NAME tata1
-----------------
11/21/12 16:06:54 tcp static-qvn-qvt-127041
MAIL toto2@web.com
NAME tata2
* -----------------
11/21/12 16:06:54 tcp static-qvn-qvt-127041
MAIL toto3@web.com
NAME tata3
";
//$chaine =" #76:50#89:1#86:50#49:1#84:22";
$motif="/MAIL([a-z]{2,4}+)NAME([a-z]{2,4}+)/";
preg_match_all($motif,$chaine,$out);
$nb=count($out[0]);
for($i=0;$i<$nb;$i++)
{
echo $out[0][$i].'<br/>';
}
I have an asp.net site. It has an order form which is accessible at https://secure.example.com/order.aspx. The links on the site do not include the domain name. So for example the home page is 'default.aspx'.
The issue is that if I click on a link like the home page from the secure page, the url becomes https://secure.example.com/default.aspx instead of http://www.example.com/default.aspx.
What's a good way to handle this? The scheme should automatically work using any domain name based on where it's launched from. So if the site is launched from 'localhost', moving away from the secured page, the url's should be http://localhost/...
The navigation links are in a master page.
I upgraded from 1.1.1 to 1.2.1 and I seem to be getting the following exception when it attempts to connect to MySQL:
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.mysql.jdbc.Util.handleNewInstance(Util.java:407)
at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:343)
...
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
I've confirmed that MySQL is indeed running and seems to be working fine. The following is the line from my application.conf file (with user/pass/db replaced):
db=mysql:username:password@databasename
I also tried using the full JDBC configuration. Did I miss something? This worked just fine in 1.1.1. I'm running MySQL 5.1.41.
Thanks.
Hi,
I'm trying to make a page for use with wordpress and it's almost working,
The page I want to use is an HTML page with designated space for it within certain DIVs.
I'm encountering the problem of wordpress using the wrong links to kind of everything. I will probably have to change every link to http://www.mydomain.com/sub/folder/image.jpg while there are many links.
the page is positioned in a subfolder, there where wordpress is installed on the server.
But other pages are positioned in the root, and retrieve all other files directly starting from the domain so writing /sub/folder/image.jpg is enough.
Is there a way I could get this to work with html/php files in sub folders as well (so when typing a link like /sub/folder/image.jpg they retrieve http://www.mydomain.com/sub/folder/image.jpg
and not
http://www.mydomain.com/sub/folder/sub/folder/image.jpg
thanks!
I am using VSTS 2008 + C# + .Net 3.5 + Windows Vista Enterprise x86. I have used Silverlight Deep Zoom composer tool to export my composed images into Siverlight type. Everything is previewed fine after export successful message (I select browse from browser).
But when I click the Test.html in the exported project to show Deep Zoom effects from browser, nothing is displayed. Here is my screen snapshot. Any ideas what is wrong?
http://i41.tinypic.com/2dac561.jpg
EDIT 1:
to my surprise, there is no clientbin folder in my exported project.
I have made two screen snapshots for,
my project folder generated by Deep Zoom Composer under Exported Data folder;
the content of GeneratedImages folder under my project folder.
Please refers them to,
http://i42.tinypic.com/346ncec.jpg
http://i42.tinypic.com/15zqkn9.jpg
Any ideas what is wrong?
thanks in advance,
George
We are trying to log requests made through an nginx load balancer.
When we make requests to our server on a subdomain (api.blah.com), the request does not show up in the access logs
However, requests made directly to blah.com do show up in the access logs.
CONFIGURATION INFO
We have a DNS record that creates a CNAME for the subdomain 'api'
TRIED SO FAR
We have tried looking in nginx.conf for exclusions (or anything that would be telling it to not log)
We have tried adding server entries with the subdomain specifically and telling those to log
but nothing seems to make a difference
Hy, i need the content of a web page, in greasemonkey.
i wrote a function like this.
unsafeWindow.testpage = function()
{
GM_xmlhttpRequest(
{
method: "GET",
url: "http://www.test.com/xml/xml.php",
headers: {
"User-Agent": "Mozilla/5.0",
"Accept": "text/xml"
},
onload: function(response)
{
alert(response.responseText);
}
});
}
If i execute the above it just logs that GM_xmlhttpRequest cannot be executed inside a unsafewindow.
How can i get the content of http://www.test.com/xml/xml.php in a unsafe window?
What i expect is that the content of http://www.test.com/xml/xml.php is returned in alert box
How can i do that?
my university created an outlook email for me username@university.com i can't see if the email uses pop3 or imap, i have only access to the mailbox, i sign it to it from hotmail.com, i don't want to check my email, i prefer to:
1) use thunderbird to check the email (i'm a linux guy, i don't have outlook software)
2)forward emails from the university email to my gmail
any of these options is fine for me, can i do that?
I'm trying to generate website thumbnails programatically in PHP. To do this, I'm using imagegrabwindow() with a COM object:
$browser = new COM("InternetExplorer.Application");
$handle = $browser->HWND;
$browser->Visible = true;
$browser->Navigate($pre.$URL);
while ($browser->Busy)
{
com_message_pump(4000);
}
$img = imagegrabwindow($handle);
What I'm wondering is if there is any way to do the same thing with Firefox or Chrome? Can I invoke either of them with PHP COM?
I want to receive email when people login to my server via ssh (as a security measure), however, when I login, I get:
No mail for root
Email is something@gmail.com
Does it need Postfix to work?
I already install it on server but i haven't configured it
Can you give me a tutorial to configure Postfix in case it needed?
Will email be sent even if my domain hasn't been propagated yet?
I added this in .bash_profile
echo 'ALERT - Root Shell Access on:' `date` `who` |
mail -s "Alert: Root Access from `who | awk '{print $6}'`" [email protected]
please see following link,i want to know it this server is able to work with many host?
http://www.itema-pg.com/pc/desktop/xseries_x336.pdf
http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&item=150515177017&ssPageName=ADME:X:RTQ:US:1123#ht_1662wt_1139
main requirment is that i want to make hosting servers,maybe i will buy some amount of this server just am curious if it can work and is good.
Hi to Concern
I want to deliver email to my Non exchange user here our domain is same and i have some exchange user that is host by in our end and some external user with same domain.if i ll send any email from my exchange user then they are able to send email to any other domain but if iwant to send email in my exchange user abc@123.com to xyz@123.com (non exchange user) then i m not able to get this email here can you pls help me what i need to do here.
thanks
I'm migrating some code from a working web app, but can't get it to work on the new server. Everything seems to be configured correctly, but I'm getting internal redirect limit errors in Apache2. Here are my rewrites and explanation
This WORKS - any subdomains that aren't cdn. or manage. should be redirected to u.php
RewriteCond %{HTTP_HOST} ^(^.*)\.mediasprk\.com$ [NC]
RewriteCond ^(.*)$ !^(cdn|manage)$
RewriteCond %{REQUEST_URI} !\.(png|gif|jpg)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ u.php?uri=$1&hostName=%{HTTP_HOST}
This is no longer working. Goal here is to handle CName pointing. So if it's not my app domain (mediasprk.com), then handle it by sending it to u.php.
RewriteCond %{HTTP_HOST} !^mediasprk\.com$ [NC]
RewriteCond %{REQUEST_URI) !\.(png|gif|jpg)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ u.php?uri=$1&hostName=%{HTTP_HOST}
Can anyone see the issue here in the second block that would cause the redirect limit errors? Maybe something wrong in the rewrites? Thanks.
I need to dynamically load a CSS stylesheet into a page that's on a different domain. How can I get the complete URL of the JS file to use in the href attribute of the stylesheet?
For instance, here is the structure:
http://bla.com/js/script.js
http://bla.com/css/style.css
I want to dynamically load the stylesheet into a page http://boo.net/index.html. The problem is, I don't know the bla.com bit in advance, just the fact that the stylesheet is in ../css/ relative to the JS file.
The script is, of course, included on index.html. jQuery's fine too.