Posts

html5 - CSS Transform does not increase parent div height -

i have added 2 divs 1 parent , other child. <div class="parent_div"> <div class="child_div_with_transform"> </div> </div> i have added webkit-transform child div. want set parent div height same it's child div after transform. want remove scrollbar. you can ref. following code. http://jsfiddle.net/sab2t/ i love try solution. try this add .parent { display:table; // add parent width:400px; // per requirement } .child { display:table-row; // add child } it solve problem. have jsfiddle

Split date into parts - PHP/Laravel/Carbon -

i'm starting integrate carbon website , can't seem able format wants. carbon::create($year, $month, $day, $hour, $minute, $second, $tz); // initial data $day = 'today'; $time = '1100'; // convert them $d = date('y-m-d',strtotime($day)); $t = date('h:i:s',strtotime($time)); // end date = "2016-01-05" time":"11:00:00" how can split them php me extract $year, $month, $day, $hour, $minute, $second so based on comments: function converttime($day, $time){ $d = date('y-m-d-h-i-s',strtotime($day." +".$time)); $expd = explode("-", $d); $year = $expd[0]; $month = $expd[1]; $day = $expd[2]; $hour = $expd[3]; $minute = $expd[4]; $second = $expd[5]; return array($year, $month, $day, $hour, $minute, $second); }

libgdx - texture packer doesn't create one huge image of images -

i'm following book libgdx , haven't comprehend texture atlases to. far understood, texture packer creates 1 huge image textures , atlas or pack file. when run it creates atlas/pack file , stores images 1 one. end same number of images stared with, therefore have done nothing. why happening? additional option needs checked, can create 1 huge file of images? used texture packer https://code.google.com/p/libgdx-texturepacker-gui/ i not use texture packer gui easier , faster pack textures source. if work eclipse, can following. make raw-assets folder inside android/assets folder , copy images there make pack folder inside android/assets folder create new class on desktop project , copy code public class texturesetup { static string input = "../android/assets/raw-assets"; static string output = "../android/assets/pack/"; static string atlas = "my-assets"; public static void main(string[] args){ texturepa...

memory management - How can 8086 processors access harddrives larger than 1 MB? -

how can 8086 processors (or real mode on later processors) access harddrives larger 1 mb, when can access 1 mb (without expanded memory) of ram? access not linear (by byte) sector. sector size may example 512 bytes. computer reads sectors memory needed.

php - using stdClass() to create soap request wsdl complex type -

after finding php soap not handle arrays complex type, i'm using stdclass() i've coded creates soap request in wrong sequence. want idtag , idtaginfo in pairs below. <soap:body> <ns:sendlocallistrequest> <ns:updatetype>full</ns:updatetype> <ns:listversion>1</ns:listversion> <ns:localauthorisationlist> <ns:idtag>1</ns:idtag> <ns:idtaginfo> <ns:status>good</ns:status> </ns:idtaginfo> <ns:idtag>2</ns:idtag> <ns:idtaginfo> <ns:status>bad</ns:status> </ns:idtaginfo> </ns:localauthorisationlist> </ns:sendlocallistrequest> </soap:body> my soap request wrong coming out below <env:body><ns1:sendlocallistrequest><ns1:updatetype>full</ns1:updatetype> ...

java - How to handle ConnectTimeoutException Android -

does know how handle connecttimeoutexception? i'm posting variables url using asynctask internet connection shocking i'm recieving null data because of connecttimeoutexception. best ways handle example if time out occurs try run again etc have not had problem before don't have clue how handle feel needs handling improve user experience. ideas? you use handler let activity know got connecttimeoutexception catch exception in asynctask , send message handler (then whatever want) just information, asynctask aren't designed long running operation, if should use thread

javascript - Changing server from client-side on Socket.io -

this first question on website. lot of questions on google have been answered site, can't find answer question, or can't think of right way post question. i have 3 socket.io servers should change clicking different buttons. thought this: var pot_bot = io('12.12.12.12:3222'); pot_bot.on('action', function(data) { console.log('unique data '+data.hi);}); if(button1.clicked) pot_bot = io('12.12.12.12:3223'); everything correct, problem when override variable pot_bot .on('action') called when new server emits it. isn't case code example above. does have solution this? i suggest removing event listener old manager before overwriting pot_bot , binding new listener new one. (io caches managers if every switch old manager back, , if keep adding listener, without ever removing them, duplicate listeners on same manager). can put in function don't have repeat code: function switch_to_server( new_uri ) { pot_bot &...