2015年06月

CSS justify three elements

I want to have a headline on the left side and buttons on the right side.

Between I want a line.





.container {
background-image: url(http://www.deutsches-museum.de/fileadmin/Content/010_DM/020_Ausstellungen/100_Museumsinsel/030_Turm/030_Kunst/bild32.jpg);
height: 100px;
color: #fff;
}
.col-xs-8 {
border: 1px solid blue;
}
ul {
display: flex;
text-align: justify;
margin: 0;
padding: 0;
list-style-type: none;
}
ul li {
overflow: hidden;
white-space: nowrap;
}
li:first-child {
padding-right: 10px;
}
li:last-child {
padding-left: 10px;
font-size: 10px;
}
h2 {
margin: 10px 0 0 0;
font-size: 20px;
font-weight: normal;
}
.fa-stack-1x {
color: #777;
}
.line {
margin: 0 auto 5px;
border-bottom: 2px solid red;
width: 100%;
}

<div class="container">
<div class="row">
<div class="col-xs-8">

<div class="breadcrump">
<ul class="menu">
<li>
<h2>Here is a example Headline</h2>
</li>
<li class="line"></li>
<li>
<span class="fa-stack fa-lg">
<i class="fa fa-square fa-stack-2x"></i>
<i class="fa fa fa-chevron-left fa-stack-1x"></i>
</span>
<span class="fa-stack fa-lg">
<i class="fa fa-square fa-stack-2x"></i>
<i class="fa fa fa-chevron-right fa-stack-1x"></i>
</span>
</li>
</ul>
</div>

</div>
</div>
</div>


Answers

If I understand what you want, all you need to do is replace width:100% in .line with flex:1;.



Answers

Remove overflow:hidden from your list items.



http://codepen.io/anon/pen/gpXgRW



ul li {
overflow: hidden;/*remove this*/
white-space: nowrap;
}




How does one create a JDBC data source without Oracle Weblogic?

Environment: Windows Server 2008R2 Standard SP1
Remote Target: SQL Server 2012 Developer Edition



Is it possible to create a JDBC data source on the Windows server when the server does not have Oracle Weblogic installed?





How to read the saml response that comes to the “../adfs/ls/”?

I am new to the SSO and SAML . We have to set up Single sign on the our customer site using ADFS 2.0 and we did that successfully and when we try to access ../adfs/ls/idpinitiatedsignon.aspx and it redirects to the customer site and if we enter the user name and password and it brings back to the idpinitiatedsignon.aspx page with you are signed in label. When i check the http transactions using SAML Tracer firefox plug in , i can see the <samlp:Response> is coming to our_site_name/adfs/ls/ and when i tried to access Request["SAMLResponse"] in idpinitiatedsignon.aspxpage , it shows as nothing.




how do i read the samlp:responsethat comes to my server and not
to particular page ?

I can see in the SAML Tracer that i'm getting <EncryptedAssertion>.How can i read the assertion values?

Answers

I'm answering from SAML and not from ADFS. Regarding question 2, i would expect that you would have received a block of XML called SAML Metadata that describes your customer's IDP. In that metadata, i would expect that you would receive your customer's public key (2.4.1.1 Element KeyDescriptor). I don't think it's possible to decrypt in SAML Tracer unless there is a way to install the encryption cert in the tool. My team has used the XmlSecTool, available from https://wiki.shibboleth.net/confluence/display/SHIB2/XmlSecTool, for verifying an XML signature pulled out of SAML tracer, but i don't know if anyone has a way to decrypt at the browser. Forgive me if you are asking more specifically at the ASDF level.





Calling static methods of an Objective-C class from Javascript

I am using JSContext to try to change the background color of one of my views. The view is a custom button class called CustomButton subclassing UIButton which conforms to a protocol deriving from JSExport, that exposes the methods of UIButton(setBackgroundColor here). I have a custom color class called CustomColor that inherits from UIColor, which also conforms to JSExport. I have exposed a static method, lets say +(UIColor*)blackColor in the color protocol. I am able to invoke native Objective-C methods from javascript on objects, but how do I call a static method of a class that conforms to JSExport? I am trying to do this in js:





theButton.setBackgroundColor(CustomColor.blackColor());




nodemialer smtp #<SMTPTransport> has no method 'sendMail'

I'm trying to send email using local smtp proxy using code below. And getting either



transporter.sendMail({TypeError: Object #<SMTPTransport> has no method 'sendMail' 


or



$ node models/mailer.js Message sent: undefined


I can't find any example in documentation nodemailer or nodemailer-smtp-transport documentation except using public services like google



var config = require('./config');
var nodemailer = require("nodemailer");
var smtpTransport = require('nodemailer-smtp-transport');
var transporter = nodemailer.createTransport(smtpTransport(
{host:config.smptRelay}));

// console.log(config.emailTo, config.smptRelay);

transporter.sendMail({
from: "nodemailer", // sender address
to: config.emailTo, // comma separated list of receivers
subject: "Hello ", // Subject line
text: "Hello world "// plaintext body
}, function(error, response){
if(error){
console.log(error);
}else{
console.log("Message sent: " + response.message);
}
});




↑このページのトップヘ