Posts

html - JavaScript issue with animating elements on hover -

i'm having slide in menu, contains 3 elements (div's), idea each 1 on hover expands width 33% 60, while @ same time other 2 shrink 20%, therefore 100% never exceeded. two issues having right now: on fast mouse move element 1 element 3, screen starts behave funny, flickers hover on element 2 being called (because mouse goes on element 2 element3), , results in blank space , overflow second or two, until hover function on element 3 takes place. i tried stopping using timeout function, must not solution, did not work once hover off container, hover on element 1, last hovered time, stays @ 60%, , not return. not quite sure set behavior. on hover of element , check, or mouseout, idk. the code.. html <div id="elem1" onmouseover="focusdiv('elem1')"> <div style="position: relative; top: 50%; left: 0">e1</div> </div> <div id="elem2" onmouseover="focusdiv('elem2')"> ...

amazon web services - AWS Auto scaling drops ~/.ssh/authorized_keys -

the thing have ec2 instance public key inside ~/.ssh/authorized_keys let developers ssh instance, 1 day autoscaling mechanism create new instance , drop old instance(with authorized keys inside), , gotta edit ~/.ssh/authorized_keys in new instance again. how can prevent this? mean how can make sure whenever autoscaling creating new instance or dropping old instance, sync of authorized_keys, don't need manual copying. thanks much. i guess ami id have specified in auto scaling contains old data. create ami of latest , update instance , remove old ami have specified in as-config , add latest ami id. thing work fine.

.net - Parsing JSON correctly through JsonTextWriter -

i facing difficulty binding json data kendo ui grid while searching solution problem came face face other one. how correctly parse json match correct format mentioned @petur subev here. my current json in format: //{"no":null,"desc":"asfasfasfasfasfasfasfasfasfasfasfasf","date":"2013-03-27t00:00:00","height":0,"final":null} //{"no":null,"desc":"etwetwetwetwet","date":"2013-03-27t00:00:00","height":0,"final":0} but pointed out should this: [{"no":null,"desc":"asfasfasfasfasfasfasfasfasfasfasfasf","date":"2013-03-27t00:00:00","height":0,"final":null}, {"no":null,"desc":"etwetwetwetwet","date":"2013-03-27t00:00:00","height":0,"final":0}, {"no":null,"desc":"asfasfasfskfjklajsf...

I have an issue with authorization tokens on openshift -

i developing web app on openshift. today got error when did port forwarding command: "your authorization token has expired. please sign in continue on openshift.redhat.com. password:" when enter openshift password nothing happens. know what's going on? i had such problem when have tried execute commands through git bash console. try common console!

html - HTML5/CSS3 proprely lining up elements -

i building website 3 "main" elements, banner, nav section , content section (see joint image) site plane . however, know "proper" way line different elements on vertical (i mean left - right) axis using css propreties. have investigated static, absolute, relative attributes nothing quite worked. i'm doing wrong should do? here's css code @font-face { font-family: florsn17; src: url('fonts/florsn17.ttf'); } ::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px gray; border-radius: 10px; } ::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 6px white; } body { font-family:arial,helvettica,sans-serrif; background-image:url("images/background.jpg"); background-color:black; } header { background-color:black; height:300px; width:720px; float:center; border-style:ridge; border-width:1px; margin-lef...

javascript - Clear LocalStorage from server-side -

hello need clear() localstorage server-side. the right moment after inserting info in db (info took localstorage) , need redirect , clear localstorage.. i tried node-localstorage can't controller... edit: im working on node.js javascript server side.. part of code: var mpa = require('../models/mpedidosabastecimiento'); var mysql = require('mysql'); var async = require('async'); var localstorage = require('node-localstorage').localstorage, localstorage = new localstorage('./scratch'); function postalta(req, res){ params = req.body; var objdatos = params.objdatos; var objdatosparsed = ""; tipo_de_objdatos = typeof objdatos; if (tipo_de_objdatos == "string"){ objdatosparsed = json.parse(objdatos); }else if (tipo_de_objdatos == "object"){ stringiii = json.stringify(objdatos); objdatosparsed = json.parse(stringiii); } else { ...

sql update - Preferred method of updating and setting SQL -

i'm learning sql @ moment, , have found different methods of updating , setting table. for example, wondering "most correct way" of doing this? update student set test1 = 7, test2 = 9 stuid = 999 or update student set test1 = 7 stuid = 999 update student set test2 = 9 stuid = 999 thanks. firstly google before posting questions. the answer (as said others) off-course method 1 . not reload database twice. also if beginner try go learn w3schools