What is meaning of [_|\_|\.]? in Javascript regexps?
I have a js codeF
/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/
But what's meaning of [_|\_|\.]?ijs regexpj
Thursday, 3 October 2013
Wednesday, 2 October 2013
How can i make setExpressCheckout in PayPal SOAP php
How can i make setExpressCheckout in PayPal SOAP php
I have a problem with setExpressCheckout in PayPal. When i try GetBalance
or GetTransactionDetail all is ok. But in this code when i try make
SetExpressCheckout i have error with Version is not suported. But i think
is not about version. i was spend 4 days on try to resolve and can not :(
$client = new SoapClient('https://www.paypal.com/wsdl/PayPalSvc.wsdl', array(
'soap_version' => '106.0',
'trace' => 1,
'exceptions' => 1,
'location'=> 'https://api-3t.paypal.com/2.0/',
));
$cred = array(
'Username' => 'my username',
'Password' => 'KO23W9UJSB57HIJD',
'Signature' => 'AFcWxV21C7fd0v98TYYRCpSSRl31A7MbjiHUHOLDgv0HmrH.pJcvMr.r'
);
$Credentials = new stdClass();
$Credentials->Credentials = new SoapVar( $cred, SOAP_ENC_OBJECT,
'Credentials' );
$headers = new SoapVar( $Credentials,
SOAP_ENC_OBJECT,
'CustomSecurityHeaderType',
'urn:ebay:apis:eBLBaseComponents'
);
$client->__setSoapHeaders( new SoapHeader(
'urn:ebay:api:PayPalAPI',
'RequesterCredentials',
$headers
));
$args = array(
'Version' => '106.0',
'ReturnAllCurrencies' => '1'
);
$GetBalanceRequest = new stdClass();
$GetBalanceRequest->GetBalanceRequest = new SoapVar( $args,
SOAP_ENC_OBJECT,
'GetBalanceRequestType',
'urn:ebay:api:PayPalAPI'
);
$params = new SoapVar( $GetBalanceRequest, SOAP_ENC_OBJECT,
'GetBalanceRequest' );
$result = $client->GetBalance( $params );
echo 'Balance is: ', $result->Balance->_, ' ', $result->Balance->currencyID;
/*
This is correct and i see my bakance
*/
//set Express checkout
$args2 = array(
'OrderTotal' => '10.0 PLN',
'PaymentRequestID' => '78y3h7y8y78',
);
$PaymentDetails = new stdClass();
$PaymentDetails->PaymentDetails = new SoapVar( $args2,
SOAP_ENC_OBJECT,
'PaymentDetailsType',
'urn:ebay:api:PayPalAPI'
);
$args3 = array(
'PayPalAccountID' => '3C988uJMfU7A',
'PaymentRequestID' => '3366y66uug',
);
$SellerDetails = new stdClass();
$SellerDetails->SellerDetails = new SoapVar( $args3,
SOAP_ENC_OBJECT,
'SellerDetailsType',
'urn:ebay:api:PayPalAPI'
);
$paymentDetailsArray = array();
$paymentDetailsArray[] = $PaymentDetails->PaymentDetails;
$args1 = array(
'Version' => '106.0',
'ReturnURL' => 'linkTOsuccess',
'CancelURL' => 'linkTOcancel',
'ReqConfirmShipping' => '0',
'NoShipping' => '1',
'PaymentDetails' => $paymentDetailsArray,
);
$SetExpressCheckoutRequestDetails = new stdClass();
$SetExpressCheckoutRequestDetails->SetExpressCheckoutRequestDetails = new
SoapVar( $args1,
SOAP_ENC_OBJECT,
'SetExpressCheckoutRequestDetailsType',
'urn:ebay:api:PayPalAPI'
);
//var_dump($SetExpressCheckoutRequestDetails);
//die();
$params = new SoapVar( $SetExpressCheckoutRequestDetails, SOAP_ENC_OBJECT,
'SetExpressCheckoutRequestDetails' );
$result = $client->SetExpressCheckout( $params );
var_dump($result);
die();
And this time i have error VERSION NOT SUPORTED but it is not about
version i think
I have a problem with setExpressCheckout in PayPal. When i try GetBalance
or GetTransactionDetail all is ok. But in this code when i try make
SetExpressCheckout i have error with Version is not suported. But i think
is not about version. i was spend 4 days on try to resolve and can not :(
$client = new SoapClient('https://www.paypal.com/wsdl/PayPalSvc.wsdl', array(
'soap_version' => '106.0',
'trace' => 1,
'exceptions' => 1,
'location'=> 'https://api-3t.paypal.com/2.0/',
));
$cred = array(
'Username' => 'my username',
'Password' => 'KO23W9UJSB57HIJD',
'Signature' => 'AFcWxV21C7fd0v98TYYRCpSSRl31A7MbjiHUHOLDgv0HmrH.pJcvMr.r'
);
$Credentials = new stdClass();
$Credentials->Credentials = new SoapVar( $cred, SOAP_ENC_OBJECT,
'Credentials' );
$headers = new SoapVar( $Credentials,
SOAP_ENC_OBJECT,
'CustomSecurityHeaderType',
'urn:ebay:apis:eBLBaseComponents'
);
$client->__setSoapHeaders( new SoapHeader(
'urn:ebay:api:PayPalAPI',
'RequesterCredentials',
$headers
));
$args = array(
'Version' => '106.0',
'ReturnAllCurrencies' => '1'
);
$GetBalanceRequest = new stdClass();
$GetBalanceRequest->GetBalanceRequest = new SoapVar( $args,
SOAP_ENC_OBJECT,
'GetBalanceRequestType',
'urn:ebay:api:PayPalAPI'
);
$params = new SoapVar( $GetBalanceRequest, SOAP_ENC_OBJECT,
'GetBalanceRequest' );
$result = $client->GetBalance( $params );
echo 'Balance is: ', $result->Balance->_, ' ', $result->Balance->currencyID;
/*
This is correct and i see my bakance
*/
//set Express checkout
$args2 = array(
'OrderTotal' => '10.0 PLN',
'PaymentRequestID' => '78y3h7y8y78',
);
$PaymentDetails = new stdClass();
$PaymentDetails->PaymentDetails = new SoapVar( $args2,
SOAP_ENC_OBJECT,
'PaymentDetailsType',
'urn:ebay:api:PayPalAPI'
);
$args3 = array(
'PayPalAccountID' => '3C988uJMfU7A',
'PaymentRequestID' => '3366y66uug',
);
$SellerDetails = new stdClass();
$SellerDetails->SellerDetails = new SoapVar( $args3,
SOAP_ENC_OBJECT,
'SellerDetailsType',
'urn:ebay:api:PayPalAPI'
);
$paymentDetailsArray = array();
$paymentDetailsArray[] = $PaymentDetails->PaymentDetails;
$args1 = array(
'Version' => '106.0',
'ReturnURL' => 'linkTOsuccess',
'CancelURL' => 'linkTOcancel',
'ReqConfirmShipping' => '0',
'NoShipping' => '1',
'PaymentDetails' => $paymentDetailsArray,
);
$SetExpressCheckoutRequestDetails = new stdClass();
$SetExpressCheckoutRequestDetails->SetExpressCheckoutRequestDetails = new
SoapVar( $args1,
SOAP_ENC_OBJECT,
'SetExpressCheckoutRequestDetailsType',
'urn:ebay:api:PayPalAPI'
);
//var_dump($SetExpressCheckoutRequestDetails);
//die();
$params = new SoapVar( $SetExpressCheckoutRequestDetails, SOAP_ENC_OBJECT,
'SetExpressCheckoutRequestDetails' );
$result = $client->SetExpressCheckout( $params );
var_dump($result);
die();
And this time i have error VERSION NOT SUPORTED but it is not about
version i think
printing first word in a txt file unix bash
printing first word in a txt file unix bash
So I'm trying to print the first word in each line of a txt file. The
words are separated by one blank.
cut -c 1 txt file
Thats the code I have so far but it only prints the first character of
each line. Thanks
So I'm trying to print the first word in each line of a txt file. The
words are separated by one blank.
cut -c 1 txt file
Thats the code I have so far but it only prints the first character of
each line. Thanks
ExtJs Store no record found, but saved one recently
ExtJs Store no record found, but saved one recently
Im working on a project with Sencha Touch and the sqLite proxy you can
find here
I have this WorkShift model which is used by WorkShifts store.
Model:
Ext.define('KCS.model.WorkShift', {
extend: 'Ext.data.Model',
config: {
fields: [
{ name: 'id', type: 'int' },
{ name: 'WorkShiftID', type: 'int' },
{ name: 'StartDate', type: 'date' },
{ name: 'ClosureDate', type: 'date' },
],
proxy: {
type: 'sqlitestorage',
dbConfig: {
tablename: 'tbl_WorkShift',
dbConn: KCS.util.InitSQLite.getConnection()
}
}
}
});
And the store:
Ext.define('KCS.store.WorkShifts', {
extend: 'Ext.data.Store',
requires: ['KCS.model.WorkShift'],
config: {
model: 'KCS.model.WorkShift',
autoLoad: true,
storeId: 'WorkShifts',
pageSize: 1000
}
});
Now, in my Controller, i want to see if there is an opened WorkShift (if
the app crashed or was closed without closing the last Workshift.) So i
use the launch callback like this:
launch : function(){
var workShifts = Ext.getStore('WorkShifts');
workShifts.clearFilter(true);
var openedWS = workShifts.findBy( function( record ){
return (record.get("StartDate") != null) &&
(record.get("ClosureDate") == null);
});
if( openedWS != -1 ){
// do stuff when an opened WS is found
}
else{
// do normal stuff
}
},
I did a bunch of tests, First, there is a bunch of valid entries in my
sqLite proxy, and i can create WS from the store and model. There is also
an entry that meets the findBy function filter. I've tried
workShifts.getCount() and even workShifts.getAllCount() but both functions
return 0. What the hell is happening?
Im working on a project with Sencha Touch and the sqLite proxy you can
find here
I have this WorkShift model which is used by WorkShifts store.
Model:
Ext.define('KCS.model.WorkShift', {
extend: 'Ext.data.Model',
config: {
fields: [
{ name: 'id', type: 'int' },
{ name: 'WorkShiftID', type: 'int' },
{ name: 'StartDate', type: 'date' },
{ name: 'ClosureDate', type: 'date' },
],
proxy: {
type: 'sqlitestorage',
dbConfig: {
tablename: 'tbl_WorkShift',
dbConn: KCS.util.InitSQLite.getConnection()
}
}
}
});
And the store:
Ext.define('KCS.store.WorkShifts', {
extend: 'Ext.data.Store',
requires: ['KCS.model.WorkShift'],
config: {
model: 'KCS.model.WorkShift',
autoLoad: true,
storeId: 'WorkShifts',
pageSize: 1000
}
});
Now, in my Controller, i want to see if there is an opened WorkShift (if
the app crashed or was closed without closing the last Workshift.) So i
use the launch callback like this:
launch : function(){
var workShifts = Ext.getStore('WorkShifts');
workShifts.clearFilter(true);
var openedWS = workShifts.findBy( function( record ){
return (record.get("StartDate") != null) &&
(record.get("ClosureDate") == null);
});
if( openedWS != -1 ){
// do stuff when an opened WS is found
}
else{
// do normal stuff
}
},
I did a bunch of tests, First, there is a bunch of valid entries in my
sqLite proxy, and i can create WS from the store and model. There is also
an entry that meets the findBy function filter. I've tried
workShifts.getCount() and even workShifts.getAllCount() but both functions
return 0. What the hell is happening?
Rotate just the text in a CSS button
Rotate just the text in a CSS button
i ve created a css button. I want to rotate the text vertical in button
but just only the text. How can i achieve this. My css button code:
.button_example{
border:1px solid #7d99ca;
-webkit-border-radius: 3px;
display: table-column-group;
/*-webkit-transform: rotate(-90deg); rotate the whole button*/
-moz-border-radius: 3px;
border-radius: 5px;
font-size:22px;
font-family:Impact, Charcoal, sans-serif;
padding: 10px 10px 10px 10px;
text-decoration:none;
display:inline-block;
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
font-weight:strong;
color: #00a19c;
color: #3388fa;
background: transparent; /* size and positioning*/
margin-left: 121px;
margin-top: 1px;
width: 24px;
height: 485px;
font-size:14px;
font-weight:700;
position:absolute;left:1120px;top:180px;
background-image: linear-gradient(to bottom, #FFFFFF, #FFFFFF);
filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#FFFFFF,
endColorstr=#FFFFFF);
}
Any idea how to rotate just the text?
i ve created a css button. I want to rotate the text vertical in button
but just only the text. How can i achieve this. My css button code:
.button_example{
border:1px solid #7d99ca;
-webkit-border-radius: 3px;
display: table-column-group;
/*-webkit-transform: rotate(-90deg); rotate the whole button*/
-moz-border-radius: 3px;
border-radius: 5px;
font-size:22px;
font-family:Impact, Charcoal, sans-serif;
padding: 10px 10px 10px 10px;
text-decoration:none;
display:inline-block;
text-shadow: -1px -1px 0 rgba(0,0,0,0.3);
font-weight:strong;
color: #00a19c;
color: #3388fa;
background: transparent; /* size and positioning*/
margin-left: 121px;
margin-top: 1px;
width: 24px;
height: 485px;
font-size:14px;
font-weight:700;
position:absolute;left:1120px;top:180px;
background-image: linear-gradient(to bottom, #FFFFFF, #FFFFFF);
filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=#FFFFFF,
endColorstr=#FFFFFF);
}
Any idea how to rotate just the text?
Tuesday, 1 October 2013
Unity: The type InjectionPolicy cannot be constructed.
Unity: The type InjectionPolicy cannot be constructed.
This is a puzzle I've been struggling with for hours. Here's the background:
We use Unity IoC in an MVC4 web app
We have a couple ApiControllers (IHttpController) and a bunch of regular
controllers (IController)
Resolution of the IControllers works fine
Resolution of the IHttpControllers has been working fine for months and
now fails with the a type resolution error having the details "The type
InjectionPolicy cannot be constructed. You must configure the container to
supply this value"
Both the regular and Api controllers take an ICustomerService dependency
which has an ICustomerRepository dependency which in turn has an IClient
dependency, but none of this is new or different.
Removing the ICustomerService dependency from the ApiController solves the
problem (but that interface is clearly configured and working everywhere
else)
We have in place an HttpControllerActivator that is registered in Unity
and is intercepting calls to resolve the IHttpControllers - it fails on
container.Resolve, even though looking into the container, the controller
is clearly there.
I have searched on this particular error and find nothing. Has anyone seen
it before or does it give you any clues as to what might be going on?
Thanks so much!
This is a puzzle I've been struggling with for hours. Here's the background:
We use Unity IoC in an MVC4 web app
We have a couple ApiControllers (IHttpController) and a bunch of regular
controllers (IController)
Resolution of the IControllers works fine
Resolution of the IHttpControllers has been working fine for months and
now fails with the a type resolution error having the details "The type
InjectionPolicy cannot be constructed. You must configure the container to
supply this value"
Both the regular and Api controllers take an ICustomerService dependency
which has an ICustomerRepository dependency which in turn has an IClient
dependency, but none of this is new or different.
Removing the ICustomerService dependency from the ApiController solves the
problem (but that interface is clearly configured and working everywhere
else)
We have in place an HttpControllerActivator that is registered in Unity
and is intercepting calls to resolve the IHttpControllers - it fails on
container.Resolve, even though looking into the container, the controller
is clearly there.
I have searched on this particular error and find nothing. Has anyone seen
it before or does it give you any clues as to what might be going on?
Thanks so much!
Redirect to jQuery Dialog after Action call
Redirect to jQuery Dialog after Action call
I have an asp.net MVC website (Visual Studio 2012, C#) that users can log
into. When they click the "Login" link, it opens a jQuery dialog which
renders a partial login view. I can get the dialog to post to the right
action and controller but I need help with redirecting back to the dialog
screen if the username/password combination is invalid. I already have the
error checking on the Submit button to check if a value exists in both
before proceeding but need help with the other part.
I'll do my best to explain how the website is laid out:
_HeaderPartial View
<header id="header" class="style2">
<link
href="@Url.Content("~/Content/themes/base/minified/jquery-ui.min.css")"
rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.min.js")"
type="text/javascript"></script>
<script type="text/javascript">
var jq = jQuery.noConflict(true);
jq(document).ready(function ($) {
$("#ViewLogin").live("click", function (e) {
var url = $(this).attr('href');
$("#login_panel").dialog({
title: 'Client Login',
closeOnEscape: true,
autoOpen: false,
resizable: false,
height: 350,
width: 400,
show: { effect: 'drop', direction: "up" },
modal: true,
draggable: true,
open: function (event, ui) {
$(this).load(url);
},
close: function (event, ui) {
$(this).dialog('destroy');
}
});
$("#login_panel").dialog('open');
return false;
});
});
</script>
<div class="container">
<!-- logo -->
<h1 id="logo"><a href="@Url.Action("Index", "Home")">
<img src="~/images/small_logo.png" alt="Logo"></a></h1>
<ul class="topnav navRight">
<li> </li>
@if (Session["LoggedIn"] == null ||
Convert.ToBoolean(Session["LoggedIn"])==false)
{
<li><a href="@Url.Action("ViewLogin", "Home")"
id="ViewLogin">LOGIN</a></li>
}
else
{
<li><a href="@Url.Action("LogOut", "Home")">LOGOUT</a></li>
}
</ul>
<other generic html markup omitted>
As you can see, the jQuery opens a dialog when the "Login" link is
clicked, which is a simple div named "login_panel":
_Layout View
<div id="login_panel" style="display: none"></div>
_Login View
@model MyApp.LoginViewModel
@{
Layout = null;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")"
type="text/javascript"></script>
<div id="login_panel">
<div class="inner-container login-panel">
<h4>SIGN IN TO ACCESS YOUR ACCOUNT</h4>
@using (Html.BeginForm("Login", "Home", FormMethod.Post))
{
<div class="validation-text">
<h5>@Html.ValidationSummary()</h5>
</div>
<div>
@Html.LabelFor(x => x.Username)
@Html.TextBoxFor(x => x.Username, new { placeholder =
"Username..." })
</div>
<div>
@Html.LabelFor(x => x.Password)
@Html.PasswordFor(x => x.Password, new { placeholder =
"Password..." })
</div>
<br />
<button class="btn btn-danger" type="submit">LOG IN</button>
<div class="links"><a href="#"
onclick="ppOpen('#forgot_panel', '350');">FORGOT YOUR USERNAME
or PASSWORD?</a></div>
}
</div>
</div>
LoginViewModel
public class LoginViewModel
{
[Required(ErrorMessage = "Username is required.")]
public string Username { get; set; }
[Required(ErrorMessage = "Password is required.")]
public string Password { get; set; }
}
And the HomeController
public ActionResult ViewLogin()
{
return View("_Login");
}
public ActionResult LogOut()
{
Session["LoggedIn"] = false;
return RedirectToAction("Index", "Home");
}
[HttpPost]
public ActionResult Login(LoginViewModel model)
{
if (ModelState.IsValid)
{
using (ProPhysiqueContext db = new ProPhysiqueContext())
{
var user = db.Users
.Where(u => u.EmailAddress == model.Username &&
u.WebPassword ==
model.Password).FirstOrDefault();
if (user != null)
{
Session["LoggedIn"] = true;
return RedirectToAction("Index", "ClientStats");
}
}
}
ModelState.AddModelError("", "Invalid Username or Password.");
return PartialView("_Login", model);
}
So as you can see, I can get the dialog to render the _Login partial view
correctly and it will post to the Login action on the Home controller. I
just can't figure out how to reopen the dialog from within the Action. The
way it is now, the website redirects to _Login partial view on the main
page, not in a dialog.
ANY help is appreciated.
I have an asp.net MVC website (Visual Studio 2012, C#) that users can log
into. When they click the "Login" link, it opens a jQuery dialog which
renders a partial login view. I can get the dialog to post to the right
action and controller but I need help with redirecting back to the dialog
screen if the username/password combination is invalid. I already have the
error checking on the Submit button to check if a value exists in both
before proceeding but need help with the other part.
I'll do my best to explain how the website is laid out:
_HeaderPartial View
<header id="header" class="style2">
<link
href="@Url.Content("~/Content/themes/base/minified/jquery-ui.min.css")"
rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.20.min.js")"
type="text/javascript"></script>
<script type="text/javascript">
var jq = jQuery.noConflict(true);
jq(document).ready(function ($) {
$("#ViewLogin").live("click", function (e) {
var url = $(this).attr('href');
$("#login_panel").dialog({
title: 'Client Login',
closeOnEscape: true,
autoOpen: false,
resizable: false,
height: 350,
width: 400,
show: { effect: 'drop', direction: "up" },
modal: true,
draggable: true,
open: function (event, ui) {
$(this).load(url);
},
close: function (event, ui) {
$(this).dialog('destroy');
}
});
$("#login_panel").dialog('open');
return false;
});
});
</script>
<div class="container">
<!-- logo -->
<h1 id="logo"><a href="@Url.Action("Index", "Home")">
<img src="~/images/small_logo.png" alt="Logo"></a></h1>
<ul class="topnav navRight">
<li> </li>
@if (Session["LoggedIn"] == null ||
Convert.ToBoolean(Session["LoggedIn"])==false)
{
<li><a href="@Url.Action("ViewLogin", "Home")"
id="ViewLogin">LOGIN</a></li>
}
else
{
<li><a href="@Url.Action("LogOut", "Home")">LOGOUT</a></li>
}
</ul>
<other generic html markup omitted>
As you can see, the jQuery opens a dialog when the "Login" link is
clicked, which is a simple div named "login_panel":
_Layout View
<div id="login_panel" style="display: none"></div>
_Login View
@model MyApp.LoginViewModel
@{
Layout = null;
}
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")"
type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")"
type="text/javascript"></script>
<div id="login_panel">
<div class="inner-container login-panel">
<h4>SIGN IN TO ACCESS YOUR ACCOUNT</h4>
@using (Html.BeginForm("Login", "Home", FormMethod.Post))
{
<div class="validation-text">
<h5>@Html.ValidationSummary()</h5>
</div>
<div>
@Html.LabelFor(x => x.Username)
@Html.TextBoxFor(x => x.Username, new { placeholder =
"Username..." })
</div>
<div>
@Html.LabelFor(x => x.Password)
@Html.PasswordFor(x => x.Password, new { placeholder =
"Password..." })
</div>
<br />
<button class="btn btn-danger" type="submit">LOG IN</button>
<div class="links"><a href="#"
onclick="ppOpen('#forgot_panel', '350');">FORGOT YOUR USERNAME
or PASSWORD?</a></div>
}
</div>
</div>
LoginViewModel
public class LoginViewModel
{
[Required(ErrorMessage = "Username is required.")]
public string Username { get; set; }
[Required(ErrorMessage = "Password is required.")]
public string Password { get; set; }
}
And the HomeController
public ActionResult ViewLogin()
{
return View("_Login");
}
public ActionResult LogOut()
{
Session["LoggedIn"] = false;
return RedirectToAction("Index", "Home");
}
[HttpPost]
public ActionResult Login(LoginViewModel model)
{
if (ModelState.IsValid)
{
using (ProPhysiqueContext db = new ProPhysiqueContext())
{
var user = db.Users
.Where(u => u.EmailAddress == model.Username &&
u.WebPassword ==
model.Password).FirstOrDefault();
if (user != null)
{
Session["LoggedIn"] = true;
return RedirectToAction("Index", "ClientStats");
}
}
}
ModelState.AddModelError("", "Invalid Username or Password.");
return PartialView("_Login", model);
}
So as you can see, I can get the dialog to render the _Login partial view
correctly and it will post to the Login action on the Home controller. I
just can't figure out how to reopen the dialog from within the Action. The
way it is now, the website redirects to _Login partial view on the main
page, not in a dialog.
ANY help is appreciated.
Check bluez version on Ubuntu 12.04
Check bluez version on Ubuntu 12.04
I am using 12.04 on my machine. I want to check which version of bluez
right now my machine using. How to check that.
I am using 12.04 on my machine. I want to check which version of bluez
right now my machine using. How to check that.
bijective correspondence involing homomorphsims to a direct product of groups?
bijective correspondence involing homomorphsims to a direct product of
groups?
Let $G$, $G'$ and $H$ be groups. Establish a bijective correspondence
between homomorphisms $\Phi: H \to G \times G'$ from $H$ to the product
group and pairs $(\varphi, \varphi')$ consisting of a homomorphism
$\varphi: H \to G$ and a homomorphism $\varphi': H \to G'$.
I am confused as to what a bijective correspondence is referring to in
this context.
groups?
Let $G$, $G'$ and $H$ be groups. Establish a bijective correspondence
between homomorphisms $\Phi: H \to G \times G'$ from $H$ to the product
group and pairs $(\varphi, \varphi')$ consisting of a homomorphism
$\varphi: H \to G$ and a homomorphism $\varphi': H \to G'$.
I am confused as to what a bijective correspondence is referring to in
this context.
Subscribe to:
Comments (Atom)