Posts

how can I change a software of openwrt and rebuild it in Bin file -

... $make menuconfig select package ... $make ... there many bin files in bin folder.: my question , want change software source code of openwrt , rebuild again. i have try edit source code of build_dir. want rebuild openwrt code refresh newest code of svn. does 1 how that? writing code , synchronizing it: 1) clone official linino repository arduino on machine using git (install using sudo apt-get install git): git clone https://github.com/linino/linino_distro.git 2) own changes in relevant code files, makefiles or whatever need change. 3) whenever want synchronize work latest changes remote master branch in linino repository, need first fetch changes, meaning retrieving them without yet merging them, in 2nd time merge them , resolve conflicts if any: preliminary: if created local branch own changes make sur master branch, need check out master: git checkout master a) fetching latest changes: git fetch master b) merging them changes on local re...

html - My template responsive menu Bootstrap does not work? -

as can see in picture drew line on menu menu when little, got browser menu why not? i want menu when browser little drumbi site menu main site : drumbi menu my template code code menu: <div class="header"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand"> <img class="img-responsive" style="width: 150px" src="images/websitelogo.png" alt="logo" /> </a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav navbar-right nav-menu"> <li><a href="#">pricing</a> </li> <li><a href="#">about </a></li> <li><a href="#">blog </a></li> <li><a href="#">help </a>...

Encoding PHP MySQL -

i can see query results see � character characters "Á". basic connection this: $mysqli = new mysqli(server, user, pass, db); mysqli_set_charset($mysqli, 'utf8'); i tried with: $mysqli->query("set names 'utf8'"); $mysqli->set_charset("utf8"); mysql_query("set names 'utf8'"); but characters still watching. query function connection($mysqli) { mysql_query("set names 'utf8'"); if ( ! $link = mysqli_connect("localhost", "user", "pass") ) { echo ("error"); return false; } if ( ! mysqli_select_db($link, "db") ) { echo ("error"); return false; } if ( ! $consulta = mysqli_query($link, $mysqli) ) { echo ("error"); return false; } return $consulta; } all files saved utf8, var columns in db utt8 too. what or problem? thank you! m...

Fastest collection for concurrent read and write other than Java Collections -

i have requirement store strings collections. collection hold billions of strings. the collection must support fast up, add , delete in concurrent manner. is there know fast, low latency collections available besides java collections... i searched didn't come across interesting... to hold billions of strings of reasonable length on reasonable cost server need use strategy have outlined below. first consider implications of "billions" of strings: do storage calculation (e.g. 10 billion strings, 64 characters per string average): 1.28 trillion bytes = 10 billion x 64 x 2 (utf-8 need @ least 2 bytes per character) that means 1 cannot use storage on computer hold strings. the required storage capacity drives 1 use external storage ... flexible use database, fronted cache in mamory. since collection interface, can implement huge storage strings using collection (that internally strings , handle "overflow" database. further implications: t...

c++ - cpp: error when using rename function -

i have following code: void commandrenhandler::handlecommand(socket* socket, std::vector<std::string>& rvparams){ if (rvparams.size() < 2){ socket->writeline("not enough parameters specified"); return; } std::string filepath = base_directory; filepath.append(rvparams.at(0)); std::string filepath2 = base_directory; filepath2.append(rvparams.at(1)); int result = rename(filepath.c_str(), filepath2.c_str()); // test std::cout << filepath << " " << filepath2 << std::endl << "result: " << result << std::endl; if (result == 0) socket->writeline("file renamed"); else socket->writeline("could not rename file"); } in function receive 2 file-paths files need renamed. i've added test cout. i've got 1 file need renamed. here input , output of tests: 1 (renaming file manually - works intent...

javascript - jQuery hover images carousel timeout overlaps -

i'm building webpage shows products. when hovering on product image, slideshow-like event should start. you'll see photo's of product in several states. i've coded jquery , i'm facing kinda annoying bug. when hover on several products fast , leave mouse on 1 product, slide through images fast. the html structure looks this: <div class="products"> <div class="productcontainer" data-product-id="1"> <img src="http://detestdivisie.nl/upload/images/hover-tests/inside/bmw-inside.jpg" class="mainproductimage" /> <div class="hoverimages"> <img src="" data-lazy-src="http://detestdivisie.nl/upload/images/hover-tests/inside/bmw-inside-1.jpg" /> <img src="" data-lazy-src="http://detestdivisie.nl/upload/images/hover-tests/inside/bmw-inside-2.jpg" /> <img src="" data-lazy-src="http://detestd...

zurb foundation - How to show/not show a Reveal depending on data being returned from an AJAX source -

i have convert system runs ajax script , displays alert if returned data length greater 0 ie message returned. runs on form load, , periodically thereafter via timer. i'm trying impliment using foundation 5. when add reveal page, displays whether there's data or not. if use success callback function check length of returned data, how stop reveal displaying if length zero? i've tried following code: $('#messagemodal').foundation('reveal', 'open', { url: 'check_message_ajax.php', success: function(data) { if(data.length == 0) { return false; // tried "return;" , "stop;" } }, error: function() { alert('failed loading modal'); } }); any pointers appreciated.