I have php record for adding email addresses to a newslistthe record is in
my wp-content/plugins directorymy record is called add_subscriber.phpi
cruise my htaccess retard this record for some reasonmy htaccess record is
as followIndexIgnore .htaccess */.??* *~ *# */HEADER* */README*
*/_vti*order deny,allowdeny from allallow from allorder deny,allowdeny
from allRewriteEngine OnRewriteBase /RewriteRule ^index\.php$ -
[L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME}
!-dRewriteRule . /index.php [L]when i try to call this record it somehow
redirects to a 404 page.my AJAX code <?php relate 'var blog_url =
\''.get_bloginfo('wpurl').'\''; ?>;function validateEmail(email) { var
re =
/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
relapse re.test(email);}function subscribeMailList(){
email=jQuery("#ml-email").val(); if(!validateEmail(email)){
relapse false; } //jQuery("#ml-").fadeIn(0); //jquery ajax ask
var url=blog_url+"/wp-content/plugins/mail-list/ajax/add_subscriber.php"
console.log(url);
jQuery.post(url,{emailaddress:email},function(result){
if(result=="true"){
$("#newsletter-form-succeeded").css("display","block");
$("#newsletter-form").css("display","none"); } });
//hide a form /*jQuery("#ml-").fadeOut(0);
jQuery('#ml-p').fadeOut(0); jQuery('#ml-p-sent').fadeIn(0);
jQuery('#ml-form').fadeOut(0);
jQuery('#ml-newsletterform').delay(3000).fadeOut(1000);*/ relapse
false;}
Tuesday, 8 April 2014
Friday, 4 April 2014
Navigation bar right bar symbol vigilant is not visible
-(void)setRightNavigationBarViewForUser {UIBarButtonItem *spacer =
[[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace
target:nil action:nil];spacer.width = 760;NSString
*title = [VimondStore sessionManager].userName;UIView *tempView = [[UIView
alloc] initWithFrame:CGRectMake(0, 0, 144, 44)];tempView.backgroundColor =
[UIColor clearColor];UIImageView *tempImageView = [[UIImageView alloc]
initWithFrame:CGRectMake(4, 0, 44, 44)];tempImageView.image = [UIImage
imageNamed:@"user.png"];UILabel *tempLabel = [[UILabel alloc]
initWithFrame:CGRectMake(44, 0, 80, 44)];tempLabel.backgroundColor =
[UIColor clearColor];tempLabel.text = title;tempLabel.font = [UIFont
boldSystemFontOfSize:14.0];tempLabel.textColor = [UIColor
whiteColor];tempLabel.textAlignment =
NSTextAlignmentLeft;tempLabel.adjustsFontSizeToFitWidth =
YES;tempLabel.minimumScaleFactor = 0.8;[tempView
addSubview:tempImageView];[tempView addSubview:tempLabel];UIBarButtonItem
*userView = [[UIBarButtonItem alloc]initWithCustomView:tempView];NSArray
*items = @[spacer
,userView];self.navigationTableViewController.navigationItem.rightBarButtonItems
= items;}-(void)navigateToHome {[self
setRightNavigationBarViewForUser];self.loginViewController = nil;[self
showCenterPanelAnimated:YES];[self
setLeftBarButtonForDrawerTitle];NSAssert([self.centreViewController
isKindOfClass:[GGBaseViewController class]], @"Must be of
GGBaseViewController class");[GenreNavigator
navigateToRoot:(GGBaseViewController*)self.centreViewController
completionHandler:nil];}My formula is given above: The problem, we am
opposed is that navigation right bar symbol equipment are not manifest
initial time when we navigate to home. When we navigate to some other page
and comes behind afterwards the visible. The initial slight is used to
emanate right navigation bar symbol items.
[[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace
target:nil action:nil];spacer.width = 760;NSString
*title = [VimondStore sessionManager].userName;UIView *tempView = [[UIView
alloc] initWithFrame:CGRectMake(0, 0, 144, 44)];tempView.backgroundColor =
[UIColor clearColor];UIImageView *tempImageView = [[UIImageView alloc]
initWithFrame:CGRectMake(4, 0, 44, 44)];tempImageView.image = [UIImage
imageNamed:@"user.png"];UILabel *tempLabel = [[UILabel alloc]
initWithFrame:CGRectMake(44, 0, 80, 44)];tempLabel.backgroundColor =
[UIColor clearColor];tempLabel.text = title;tempLabel.font = [UIFont
boldSystemFontOfSize:14.0];tempLabel.textColor = [UIColor
whiteColor];tempLabel.textAlignment =
NSTextAlignmentLeft;tempLabel.adjustsFontSizeToFitWidth =
YES;tempLabel.minimumScaleFactor = 0.8;[tempView
addSubview:tempImageView];[tempView addSubview:tempLabel];UIBarButtonItem
*userView = [[UIBarButtonItem alloc]initWithCustomView:tempView];NSArray
*items = @[spacer
,userView];self.navigationTableViewController.navigationItem.rightBarButtonItems
= items;}-(void)navigateToHome {[self
setRightNavigationBarViewForUser];self.loginViewController = nil;[self
showCenterPanelAnimated:YES];[self
setLeftBarButtonForDrawerTitle];NSAssert([self.centreViewController
isKindOfClass:[GGBaseViewController class]], @"Must be of
GGBaseViewController class");[GenreNavigator
navigateToRoot:(GGBaseViewController*)self.centreViewController
completionHandler:nil];}My formula is given above: The problem, we am
opposed is that navigation right bar symbol equipment are not manifest
initial time when we navigate to home. When we navigate to some other page
and comes behind afterwards the visible. The initial slight is used to
emanate right navigation bar symbol items.
Tuesday, 1 April 2014
Call windows form VB.NET dll from vc++
I am controlling a vc++ CLI way to anxiety a dll that is combined in
vb.net and contains a form that runs SURF algorithm. My problem is that a
form is combined and dissapears immediately. On step by step execution, a
Form_Load eventuality duty runs totally though a timer in a form doesn't
run. After Form_Load a execution stops and my vc++ returnsThis is my
codevb.net dllPrivate Sub frmSURF_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load tgtImage =
New Image(Of Gray, Byte)(imgFile) startTracking = True
actualImage = camCapture.RetrieveGrayFrame AddHandler
Me.TextChanged, AddressOf getPoints tmSURF.Start() End Sub**
Till this point, a formula is executed and it advantage **Private Sub
tmSURF_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles tmSURF.Tick actualImage = camCapture.RetrieveGrayFrame If
startTracking = True Then Dim CPUsurfDz As SURFDetector = New
SURFDetector(500, False) 'less a number, some-more a underline
points Dim homography As HomographyMatrix = Nothing Dim
modelkeypoints As VectorOfKeyPoint 'keypoints in a denote
image(set image) Dim observedkeypoints As VectorOfKeyPoint
'keypoints in a realtime constraint Dim indices As Matrix(Of
Integer) Dim dist As Matrix(Of Single) Dim masquerade As
Matrix(Of Byte)vc++ .exe application#include "stdafx.h"#using
"SurfDLL.dll"using namespace SurfDLL;int _tmain(int argc, _TCHAR* argv[]){
frmSURF ^surf = gcnew frmSURF(); surf->imgFile =
"E:/camshift/cam1.jpg"; surf->Show();}Any assistance is appreciated.
Thanks in advance
vb.net and contains a form that runs SURF algorithm. My problem is that a
form is combined and dissapears immediately. On step by step execution, a
Form_Load eventuality duty runs totally though a timer in a form doesn't
run. After Form_Load a execution stops and my vc++ returnsThis is my
codevb.net dllPrivate Sub frmSURF_Load(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MyBase.Load tgtImage =
New Image(Of Gray, Byte)(imgFile) startTracking = True
actualImage = camCapture.RetrieveGrayFrame AddHandler
Me.TextChanged, AddressOf getPoints tmSURF.Start() End Sub**
Till this point, a formula is executed and it advantage **Private Sub
tmSURF_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles tmSURF.Tick actualImage = camCapture.RetrieveGrayFrame If
startTracking = True Then Dim CPUsurfDz As SURFDetector = New
SURFDetector(500, False) 'less a number, some-more a underline
points Dim homography As HomographyMatrix = Nothing Dim
modelkeypoints As VectorOfKeyPoint 'keypoints in a denote
image(set image) Dim observedkeypoints As VectorOfKeyPoint
'keypoints in a realtime constraint Dim indices As Matrix(Of
Integer) Dim dist As Matrix(Of Single) Dim masquerade As
Matrix(Of Byte)vc++ .exe application#include "stdafx.h"#using
"SurfDLL.dll"using namespace SurfDLL;int _tmain(int argc, _TCHAR* argv[]){
frmSURF ^surf = gcnew frmSURF(); surf->imgFile =
"E:/camshift/cam1.jpg"; surf->Show();}Any assistance is appreciated.
Thanks in advance
Subscribe to:
Comments (Atom)