Posts

Showing posts from September, 2014

matlab - Make multiple histograms for each column in matrix -

Image
i loop through each column in 306x20 matrix, nan values filling in empty spaces, , create histogram each row (finish 20 histograms). best way this? pseudocode implement: for = 1:(number of columns) % loop through each column generate different histogram same % x , y labels , title % hist(data, 20) end thank you i assume want separate figure each histogram. can achieved for-loop , figure -statement open new figure in each iteration. in matlab version r2014b , above, use histogram -function plot histogram, in versions below r2014b use hist instead ( hist still works in r2014b , above). both functions ignore nan -values in dataset. % generate random data nan-values x = randn(306,20); = randi(5,[306,20]); x(a==3) = nan; % plot histograms = 1:size(x,2) figure; histogram(x(:,i)) % before r2014b use "hist" instead title(['histogram of row ',num2str(i)]); xlabel('bins'); ylabel('frequency'); end this...

video - Videojs - multi bitrate on VOD -

hi using aws elastic transcoder transcode files mp4, want achieve multi-bitrate vod. create 3 different renditions , depending on device or/and connection user best suited file. all files h.264 , bitrates are: bitrate - 1200 bitrate - 720 bitrate - 5000 1) on right track can videojs deliver different renditions of mp4 out of box or require dev on side? 2) presets used realistic? 3) server different rendition mobile devices better use js device detection? you can use hls achieve this. elastic transcoder supports creating multi-bitrate video manifests: http://aws.amazon.com/about-aws/whats-new/2015/04/amazon-elastic-transcoder-adds_playready-drm-support/ then use hls plugin video.js: https://github.com/videojs/videojs-contrib-hls

angularjs - How to make a link function change a scope variable -

i trying use angularjs make model responds click user. have information model in controller (other elements added scope later), , directive handles showing element in view , performing actions on it, such minimizing on click. what i'm having trouble making link function in makedialog directive change value of experimentdialog.minimized in model. how can accomplish this? doing wrong? right now, nothing happens when click button -- troubleshooting appreciated. let me know if need more information! angular: angular.module('root', []) .controller('index', ['$scope', function($scope){ $scope.experimentdialog = { minimized: false, width: 200, height: 300, top: 10, left: 10, template: 'experiment-dialog.html' }; }]) .directive('makedialog', function() { return { restrict: 'e', scope: { model: '=' }, templateurl: 'dialog.ht...

imagemagick - Ghostscript convert PDF into large TIFF -

i want resize pdf tiff format ghostscript. use input pdf/x-3 has limitation of 5 meters in length or height. as result, want have tiff - file correct dimensions , final resolution of 200dpi by scaling bigger format bigtiff (e.g): gs -sdevice=tiff32nc -dnumrenderingthreads=6 -dnopause -dbatch -dsafer \ -dpdffitpage -r2000 -dusecropbox -dusebigtiff \ -soutputfile=example.tiff test.pdf edit here: first result 2000 dpi file just trick scale correct pixels, change 200dpi exiftool: exiftool -resolutionunit="inch" -xresolution="200" -yresolution="200" example.tiff i have resulting tiff 200 dpi , dimension of 72/200 times format expect. to sure result has real expected format convert calculated format: convert example.tiff -depth 8 -resize 70866x15748\! temp-1.tiff would best suitable way achieve goal? basics steps are: convert image resolution final dimension resize target dimension , final resolution of 200 dpi edit...

gradle - How do I extend the main distZip so I get a copy of the ZIP file with some extra files in it? -

i'm trying generate multiple zip files project using application plugin can include os specific exe files in zip. have exe files under src/win32/dist , end in win32 zip file fine, that's that's in zip file. how configure additional distributions each include in main zip plus these exe files, not these exe files? here's example bit of config: distributions { //i want win32 include same 'main' dist plus files in src/win32/dist win32 { contents { { libsdir } } } amd64 { contents { { libsdir } } } } here's directory structure: src/ win32/ dist/ prunsrv.exe <-- win32 specific exe amd64/ dist/ prunsrv.exe <-- amd64 specific exe i never used 'distribution' or 'application' plugin; going through documentation of 'distribution' plugin & distribution javadoc, understand : ...

c# - Getting error on jQuery Tag-it UI widget Failed to load resource -

i using jquery ui widget tagit in asp.net. code working fine want highlight tags not available list. previously asked question , using same method highlight tags not available list my code .aspx code <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript" charset="utf-8"></script> <link href="../css/jquery.tagit.css" rel="stylesheet" /> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script> <script src="../javascript/tag-it.js"></script> <link href="../css/tagit.ui-zendesk.css" rel="stylesheet" /> <script> $(function () { $.ajax({ url: 'updatesingimgkwds.aspx/getkeywords', type: 'get', datatype: ...

ruby on rails - Converting string to title-case -

so i'm bit of noob in ruby , mission manually convert string title-case. have been able create method believe meet requirements assignments (it's not flexible, do), have hit 1 final snag. cannot seem join final array 1 string. code , rspec errors below. believe have use .join(" ") somewhere, not sure of exact syntax. in advance help! my code: class title attr_accessor :string def initialize(string) @string = string end def fix string.split(" ").each_with_index |value, index| if index >= 2 && value.length <= 3 value.downcase! else value.capitalize! end end end end rspec: expected: "the great gatsby" got: ["the", "great", "gatsby"] (compared using ==) exercise_spec.rb:6:in `block (3 levels) in <top (required)>' again: expected: "little red riding hood" got: ["little", "red", "ri...

database - Is self join possible in lookup Transformation? If yes how do we get managers for all the employees using Lookup transformation -

is self join possible in lookup transformation, if yes how managers employees using lookup transformation? yes kinds of joins possible in lookup transformation using sql override. write sql return employee , manager ids. can put employee id in conditions tab , use manager id output or return port.

php - How to store documents encrypted -

i writing web application store documents server-side. looking best way document storing part. directly in file system no option, because user should not have direct access them. have options in mind , want here opinion or experience or ideas other possible ways. store them in password protected container format zip, , store container , document name in table. split archives after size limit. store them blob inside mysql in separate table. store them in mysql archive engine table. https://dev.mysql.com/doc/refman/5.1/en/archive-storage-engine.html use mongodb , gridfs store data. requirements: the user has no direct access files. the files must consistent. storing files in table should not slow down rest of application. if use db, store data in separate table , search on second table meta data fields.

javascript - HTML5 D&D loosing dataTransfer data, please advise -

i made small demo data attached via datatransfer lost. here code example: var element = document.getelementbyid('draggable'); element.addeventlistener('dragstart', function (evt) { evt.stoppropagation(); evt.datatransfer.effectallowed = 'move'; evt.datatransfer.setdata('test', 'some_dummy_data'); } ); var zone = document.getelementbyid('dropzone'); zone.addeventlistener('dragenter', function (evt) { evt.stoppropagation(); evt.preventdefault(); console.log( '>>>', evt.datatransfer.getdata( 'test' ) ); } ); http://jsfiddle.net/u24sc/33/ any appreciated. "note: security purposes, getdata method can called within ondrop event handler." reference: apple

c++ - How to remove catchpoint in gdb -

i've set catch point in gdb catch exceptions catch throw . how remove without restarting gdb session? neither delete nor clear seem helpful here. it turned out tried delete wrongly delete throw . (gdb) info breakpoints num type disp enb address 2 breakpoint keep y 0x063e3255 exception throw delete 2 did trick.

javascript - Selenium webdriver doesn't click on save button in chrome and firefox -

my project in mvc , want test using selenium web driver. button clicks work properly. when navigate different page saying continue on page save button doesn't work. below code driver.findelement(by.id("btnaddnew")).click(); iwebelement cat = driver.findelement(by.id("cat")); cat.sendkeys("single-family house"); iwebelement ext_id = driver.findelement(by.id("externalid")); ext_id.sendkeys("sar_47"); iwebelement zip = driver.findelement(by.id("addressziptown")); zip.sendkeys("1205 genève"); iwebelement street = driver.findelement(by.id("addressstreet")); street.sendkeys("tramstrasse 10"); driver.findelement(by.id("btncontinue")).click(); driver.findelement(by.id("btnsave")).click(); driver.quit(); can solve problem? you can solve problem checking dom amoun...

javascript - JSON.stringify converting Infinity to null -

i have javascript object say: var = {b: infinity, c: 10}; when do var b = json.stringify(a); it returns following b = "{"b":null, "c":10}"; how json.stringify converts object strings? i tried mdn solution . function censor(key, value) { if (value == infinity) { return "infinity"; } return value; } var b = json.stringify(a, censor); but in case have return string "infinity" not infinity . if return infinity again converts infinity null. how solve problem. like other answers stated, infintity not part of values json can store value. you can reverse censor method on parsing json: var c = json.parse( b, function (key, value) { return value === "infinity" ? infinity : value; } );

jsp - Users at a time should login from one place only in java -

i want suppose if user logged website 1 location , @ same time user tries login location/computer should display "user logged in already" or should give error.. not asking code please dont close question. have searched alot posting question . please give me links or ideas can implement in project. have made website in java struts2. spring security has this, take @ http://docs.spring.io/spring-security/site/docs/3.1.x/reference/session-mgmt.html#concurrent-sessions you can either use spring security (which means redoing auth stuff) or @ classes concurrency , implement similar.

c# - Secure connection string in Worker Role -

what other options there secure connection strings , not commit them version control when using worker role apart encrypting serviceconfiguration.cloud.cscfg - if possible? web apps have accessible variables in portal - seems not case worker roles. cloud services, part of worker role are, have settings exposed in portal , can changed in app service webapps. cannot encrypt .cscfg on cloud. can have them encrypted locally, have decrypt them before deployment. if want secure connection strings , sensitive data, using azure keyvault . can protect connection strings or other sensitive values , retrieve them vault in secure way within application.

require - Is there a faster way to include PHP files? -

i have following code when want include code php file: $domain = 'www.example.com'; require_once $domain.'/footer.php'); i wonder though if slower be, because surely has go through dns find page? is there quicker way this? maybe should set ip $domain? or maybe there php snippet detect me? i pay dns hits, there's too... no thought can include file via autoloader there no other way include files require , include in php , both fast, if use temples same.

javascript - how can I set markers with different colours depending on the markertype, and how to determinate their coordinates?, Im using openlayers.org library -

i starting using openlayers javascript library openlayers.org. i want set dinamic markers diferent colours each device type(cam marker, server marker , on), , tried different ways set this, doesn't work actually. map im developing: http://manotazsoluciones.com/map/ . another problem im facing when set coordinates. example: if set [0,0] coordinates on marker, when use click event, marker coordinates [30000,-7.081154551613622e-10]. this code im using display map on manotazsoluciones.com/map <!doctype html> <html> <head> <title>manotaz soluciones</title> <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> <link rel="stylesheet" href="https://cdnjs.c...

hierarchical - Why does oracle SYS_CONNECT_BY_PATH return null values? -

why path column full of null values? cycles in hierarchical data cause problems sys_connect_by_path function? sql fiddle oracle 11g r2 schema setup : create table modules ( mod_id integer not null, name varchar2(20) not null, prnt_mod_id integer ); insert modules values(1, 'base module', 1); insert modules values(2, 'sub module 1-2', 1); insert modules values(3, 'sub module 1-3', 1); insert modules values(4, 'sub module 1-4', 1); insert modules values(5, 'sub module 1-2-5', 2); insert modules values(6, 'sub module 1-2-5-6', 5); query 1 : select t.mod_id, t.name, t.prnt_mod_id, max(level) mx_lvl, sys_connect_by_path(t.name, '>') path modules t start t.mod_id = 1 connect nocycle prior t.mod_id = t.prnt_mod_id group t.mod_id, t.name, t.prnt_mod_id order mx_lvl, t.name results : | mod_id | name | prnt_mod_id | mx_lvl | path | |--------|---------------...

html - PagedList MVC causing strange image positioning issue within Bootstrap row -

Image
question background: i have web page uses pagedlist mvc pagination of images. uses bootstrap render images responsive the issue: i have code set display 9 items per page. working causing images display in 'broken' manner, shown: obviously want these images displayed in continuous manner. i orginally thought sizing issue set them 100px shown not issue: the code: the html markup: <div class="container"> <div class="row"> @for (int = 0; < @model.count; i++) { <div class="col-lg-4 col-sm-12"> <div class="imagebottompadding imagewidths"> <a href="#" data-featherlight="@model[i]"> <img class="img-responsive" src="@model[i]" alt=""> </a> </div> </div...

python - Separate one year from a data value; taking care of leap years -

this should pretty simple can't syntax correct. so, have parameter dictionary below - paramdict = { startpostingdatefilter": { "msgprompt": "start date", "datatype": "datetime", "tablefield": [{"table":"tablename", "field":"columnname"}], "value": ["2006-01-01"] } } startpostingdatefilter = paramdict['startpriordatefilter']['value'][0] now, want subtract 1 year "startpriordatefilter" user provided date value. how take care of if it's leap year? want achieve below - if, startpostingdatefilter = '2006-01-01' create new variable, newstartpostingdatefilter = '2005-01-01' thanks. you use dateutil: from dateutil.relativedelta import relativedelta dateutil import parser d = parser.parse(startpostingdatef...

javascript - AngularJS Using $timeout giving undefined error -

im trying make 1 of these memorization games, u need flip 2 cards on , try match images on other side otherwise both turn over. my code working fine, except need add delay/pause before 2 cards flipped on if no match made. i'm trying use $timeout , i'm getting error: typeerror: cannot set property 'isflipped' of undefined html <body ng-controller="mainctrl main"> <figure ng-class="{true: 'flipped', false: 'not-flipped'}[card.isflipped]" class="card" ng-repeat="card in cards" ng-click="flipcard(card.id, card.pair)"> <img ng-src="img/cardback1.png" class="back"></img> <img ng-src="{{card.img}}" class="front"></img> </figure> </body> myctrl angular.module('cardapp').controller('mainctrl', ['$scope', '$timeout', function($scope, $timeout) { $scope.cards = [ {...

php form is not updating database in mySQL -

i have created table display top 10 high scores game users. trying create form allows user enter new high score in form, hit submit, database updated , new leaderboard newly entered high score displayed. when go change high score database isnt updated , table doesnt change. frustraiting me , if knows why happening , give advice great. code below/ <?php class databasemanager { private $servername = "localhost"; private $username = "root"; private $password = ""; private $dbname = "sokodatabase"; private $dbc; function __construct() { $this->dbc = mysqli_connect($this->servername, $this->username, $this->password, $this->dbname); } function __destruct() { mysqli_close($this->dbc); } public function selecthighscores(){ // create query database $query = " select use...

java - How to use field injection with action composition? -

play 2.4 supports dependency injected controllers out of box. have used constructor injection provide dependencies controllers. however, when using action composition , fields marked @inject not injected. is there way inject dependencies composite action? example code controller: public class application extends controller { private domainservice ds; @inject public application(domainservice ds) { this.ds = ds; } @security.authenticated(randomauthenticator.class) public result index() { return ok(); } } example code composite action: public class randomauthenticator extends security.authenticator { @inject private randomservice rs; // field never injected @override public string getusername(context context) { float randfloat = rs.nextfloat(); // error! rs null if (randfloat > 0.1) { return "foo"; } return null; } } instead of field injection ...

Excel named range used in chart -

i have defined named range , used feed data in chart in excel. data start row 11 (column b) , may reach until row 500, doesn't expands further row 75. entries #n/a. so, first #n/a, data follows , blank. the problem data plotted correctly (i.e. data picked , plotted, leaving out #n/a), there times empty chart, if #n/a followed numbers. leave #n/a in, because if replace them blank, chart picks blanks 0 , don't want that. in column have named range keeps years, used x-axis chart. so, example, dataset looks that: in column row 11 31 have years 1990-2010, in column b row 11 18 have #n/a, , 19 31 numbers. after row 31 there empty cells. let's assume imported correctly in chart. if change data in column #n/a expanding until e.g. b22, empty chart. when check chart , seems picked data until eg b20, empty chart. i suspect has way defined range, cannot find solution. in advance help. i found solution problem. problem caused problem in named range definition. happen...

specific records using procedure in mysql without using the static values in the table -

create table company(id int, name varchar(20), designation varchar(20), parent int); insert company values(1,'shyam', 'vp', null); insert company values(2,’sundar’, 'gm', 1); insert company values(3,'rajan', 'm', 2); insert company values(4,'karthik', 'lead', 3); insert company values(5,'raj', 'developer',4); insert company values(6,'sami', 'developer', 4); insert company values(7,'diva', 'lead', 3); insert company values(8,'dina', 'developer', 7); insert company values(9,'mahe','developer', 7); ` the table created. there 2 teams in table. both under gm , m, each team contains lead , 2 developers. now, need create procedure parameter. when give input on calling id, need entire team gm, m, lead , 2 developers. for example: if giving input 8, need select sundar, rajan, diva, dina, mahe table. if giving input 6, ente...

ios - How to trim the video file and convert to 20 seconds video with Swift? -

i want trim video file. want pick video gallery , convert 15 second video. following this link objective c. works fine me i'm beginner swift language. can 1 me convert code in swift? below code in objective c: -(void)cropvideo:(nsurl*)videototrimurl{ avurlasset *asset = [avurlasset urlassetwithurl:videototrimurl options:nil]; avassetexportsession *exportsession = [[avassetexportsession alloc] initwithasset:asset presetname:avassetexportpresethighestquality]; nsarray *paths = nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes); nsstring *outputurl = paths[0]; nsfilemanager *manager = [nsfilemanager defaultmanager]; [manager createdirectoryatpath:outputurl withintermediatedirectories:yes attributes:nil error:nil]; outputurl = [outputurl stringbyappendingpathcomponent:@"output.mp4"]; // remove existing file [manager removeitematpath:outputurl error:nil]; // exportsession.outputurl = [nsurl fi...

php - WP display content based on content id -

i trying display content based on if category id matches array. far code displays nothing. unsure have coded wrong. great. <header class=""> <div class=""> <a title="<?=$post->post_title?>" href="<?=esc_url( get_permalink() )?>" rel="bookmark"> <div onclick=""> <?php $showmapsortfor = array(2,3); if(in_array($_category->getid(),$showmapsortfor )):?> <? if ( is_single() ) : the_title( '<h1 class="entry-title">', '</h1>' ); else : the_title( '<h1 class="entry-title">', '</h1>' ); endif; ?> <div> <div id="1">a </div> <div id="2">b </div> </div> </div> </div> </a> </div> <?php else: ?> <? if ( is_single() ) : the_title( '<h1 class="...

html - How can I make header scrollable for smaller screens in MDL? -

with mdl 1.0( http://www.getmdl.io/ ) i'm trying make header scrollable on bigger & smaller screens. scrollable on bigger screens(like on pc), not on smaller screens. here's html: <html> <head> <link rel="stylesheet" href="https://storage.googleapis.com/code.getmdl.io/1.0.0/material.teal-light_green.min.css" /> <script src="https://storage.googleapis.com/code.getmdl.io/1.0.0/material.min.js"></script> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=material+icons"> </head> <body> <!-- simple header scrollable tabs. --> <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header"> <header class="mdl-layout__header mdl-layout__header--scroll"> <div class="mdl-layout__header-row"> <!-- title --> <span class="mdl-layout-title">title</sp...

entity framework - Getting a 'System.InvalidOperationException' when changing the connection string for connecting to a database C# -

i getting unhandled exception of type 'system.invalidoperationexception' occurred in entityframework.dll when run application. my application basic c# application using entity framework code first approach , trying connect database. the following code used add data database (which worked before added connection string app.config file. static void main(string[] args) { using (var context = new behaviourcontext()) { behaviour behaviour = new behaviour() { name = "test behaviour", activation_threshold = 90, currently_executing = false, preconditions_met = false, priority = 0.9f }; context.behaviours.add(behaviour); context.savechanges(); } } this context class: public class behaviourcontext: dbcontext { public behaviourcontext(): base("name=behaviourconnectionstring") { ...

asp.net mvc - I need to take the controller action's name out of the URL, but don't know how -

this question has answer here: asp.net mvc 4 routes - controller/id vs controller/action/id 1 answer example: view contract id of 12483, use url: /contract/12483 i can't in asp.net mvc because asp.net route exepects /{controller}/{action}/{id} able route needed code handle request have this: /contract/view/12483 this not restful, however. anyone know way around this? one option can use name of actionresult index instead of view . or can use in app_start/routeconfig.cs routes.maproute( name: "book", url: "{controller}/{id}", defaults: new { controller = "contract", action = "view", id = urlparameter.optional });

mysql - How to select rows from a table that matches all the rows from a second table which has predicates? -

i have 2 tables, transaction table , transaction property table follows. transaction table create table `mydb`.`event` ( `id` int not null auto_increment, `user` varchar(45) not null, `type` int not null, primary key (`id`)); property table create table `mydb`.`event_property` ( `event_id` int not null, `property_type` varchar(45) not null, `value` varchar(45) not null, primary key (`event_id`, `property_type`, `value`), constraint `event_id` foreign key (`event_id`) references `mydb`.`event` (`id`) on delete restrict on update restrict); a single event may have multiple properties. want select event has 2 properties values. how this? you can group by , having : select event_id event_property property_type in ('1', '2') group event_id having count(distinct property_type) = 2;

design patterns - Cross cutting concern logging -

i want log information methods being executed, considered aop okay, knocked demo, need log specific information each method, think of additional info related call. now options considered log in each method, think going pollute code, last resort, perhaps or create class maps methods information needs logged, , use aop log info. what guys think? an alternative approach might decorator pattern / interceptor pattern results in increased coding effort: interface icomponent { int foo(int input); } class component : icomponent { public int foo(int input) { return input * 2; } } class loggingcomponent: icomponent { private readonly icomponent target; public loggingcomponent(icomponent target) { this.target = target; } public int foo(int input) { // todo: add logging before method call int returnvalue = this.target.foo(input); // todo: add logging after method call return returnv...

android - How to save the current image from viewpager? -

i have images in viewpager , want user can save current image click on button save image sd card in phone this demoactivity.java public class demoactivity extends activity { button play; mediaplayer mp; public int playstop = 0; private button extisaw; public void oncreate(bundle ww) { super.oncreate(ww); setcontentview(r.layout.activity_main); play = (button) findviewbyid(r.id.saw); mp = mediaplayer.create(this, r.raw.raj); show1(); show2(); play.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { if (playstop == 0) { mediahandler(mp, 1); mp.start(); playstop = 1; } else { mediahandler(mp, 2); mp.pause(); playstop = 0; } } }); } private void show2() { // todo: implement method this.extisaw = ...

windows - Batch - Zigzag merging with two files -

i make zigzag merging of 2 text files following. have 2 files in input: file1.txt a and file2.txt b b b i have output: output.txt b b b can please tell me may simpliest way in batch (i'm forced use native windows langage). thank you! if can assume number of lines in both files equal, work: @echo off type nul>output.txt setlocal enabledelayedexpansion set linecount=0 /f %%i in (file1.txt) set /a linecount=!linecount!+1 /l %%n in (1,1,!linecount!) ( /f "tokens=1* delims=:" %%a in ('findstr /n .* "file1.txt"') ( if "%%a"=="%%n" set linea=%%b ) /f "tokens=1* delims=:" %%a in ('findstr /n .* "file2.txt"') ( if "%%a"=="%%n" set lineb=%%b ) echo !linea! >> output.txt echo !lineb! >> output.txt ) the first loop count lines in file1.txt. second loop iterates on number of lines. both internal loops execute comman...

jquery - Multiple keyframe animations break custom slider in Internet Explorer 11 -

edit: added jsfiddle here we made custom image slider jquery , css3 keyframe animations. image slider works in browsers except ie11. think has simultaneous animations. basically if navigating through slider. add , remove class previous slide , add new 1 current one. add these classes: .slide-display-top or .slide-display-bottom based on direction. after adding, 2 child-divs start animating bottom , top of screen. it work when navigate , forth. live version: http://creativeforce.nl we stuck @ one. part of css: body main .slider .slide-display-top { visibility: visible; } body main .slider .slide-display-top>div { height: 100%} body main .slider .slide-display-top>div:first-child { -webkit-animation: movefrombottomfade 700ms ease-in-out; -moz-animation: movefrombottomfade 700ms ease-in-out; -o-animation: movefrombottomfade 700ms ease-in-out; -ms-animation: movefrombottomfade 700ms ease-in-out; ...

html - Can't remove text-decoration? -

i can't remove text decoration website, precisely on 2 places: site title, , on contact page. i tried classes, copied css path inspect element mode in opera , transfered , modified wordpress editor. but nothing happend. tried <a> tags using a{} in css. some nice. in advance guys! it looks text-decoration has been removed, there border-bottom: 1px dotted #333 applied site title , social media icons on contact page. confusing two? if remove border-bottom, dotted line styling goes away.

kibana - Timestamp difference in Elasticsearch -

i know has been asked, elk seems changing rapidly , maybe possible @ point. so, i'm using kibana 4 , i'm trying visualize (or @ least calculate) time difference between 2 docs in query. docs logs batch process lot of fields , timestamp 1 of them (of type "date"). possible calculate time difference between consecutive docs in query using scripted field? (doesn't matter type returned). i hope made sense, i'm new elk. in advance. dauta _from understand, cannot in kibana, scripted fields apply documents 1 one. however, if matters getting calculated result, can scripted_metric agregation in es query. i think may like { "sort" : [ { "mydatefield" : {"order" : "asc"}} ], "query" : { (something of match, range, match_all...) }, "aggregations": { "scripted_metric": { "init_script": "(declarations, eg :) _agg...

javascript - How to set selected to option using ddSlick after postback? -

i need use image drop-down list http://designwithpc.com/plugins/ddslick trying set "selected" option after postback, infinite loop of postbacks. here code: <form id="form1"> <select id="localeid" name="localeid"></select> </form> <script type="text/javascript"> //dropdown plugin data var dddata = [ { text: "english", value: "en", selected: false, description: "english", imagesrc: "/assets/img/flags-icons/en-flag.png" }, { text: "portuguese", value: "pt", selected: false, description: "portuguese", imagesrc: "/assets/img/flags-icons/pt-flag.png" }, { text: "russian...