Posts

networking - ping with tcpflow and tcpdump -

when use tcpflow icmp , ping have no answer, when use tcpdump icmp aand ping i'm getting answer. wrong tcpflow configuration or should that? when use tcpflow icmp , ping have no answer uh... how this: tcpflow captures data tcp connections , icmp messages (e.g., pings & etc) not part of tcp connections.

sass - How do you handle compiled files from pre-processors in git commits? -

we meta languages sass/scss, less, coffeescript, etc. when comes git commits there 1 question: should compiled files source files repo or better ignore them? problem is, when ignoring files, 1 not use repository out of box. you've compile first (to right location) before using it. kinda bad way, because not using pre-processors. how deal it? git used source-tracking system, , such meant use developers of project. people development on project need able build source files generated files. in case not having generated files in repository doesn't impose additional burden on them. to useful end-users, may want periodic releases of project. these typically done archives of necessary files. include generated files, , quite-possibly exclude source files. end-user git seen unnecessary tool. including generated files in repository doesn't either of class of people, , makes more difficult see being changed each commit.

html5 - jQuery (or CSS3) Switch between content sections on scroll -

i hope can point me in right direction. i replicate navigation, similar 1 on website: http://vsamarehorosho.ru/ basically, idea don't allow user have different sections of website on screen @ same time. so, if section larger screen scrolls until reach bottom of section. if scroll further, jump onto next section. if section smaller screen size, see main section @ top , part of next section down bottom, when try scroll, next section jumps top , 1 after shows down bottom if 1 smaller screen size. on example, slides 100% height, that's not achievable. hope can me. wrap sections in div height of 100%; this way, if section under 100% height, wrapper ensure 1 sections shows on page. if section height on 100%, scrolling can occur on wrapper, rather on page.

How to assign a PHP variable value to JavaScript variable -

in code posting have 1 problem. want php variable stored in javascript variable shows error. code below. <?php $name="anurag singh"; echo ' <html> <head> <script type="text/javascript" src="jquery-2.0.2.js"></script> <script type="text/javascript"> $(document).ready(function(){ var name1=.$name.";" $.post("main_page.php",{input1: name1}, function(msg){ alert("hi "+msg); }); }); </script> </head> <body> <h1>this demo!</h1> <h2>in echo can add more 1 statements</h2> </body> </html> '; ?> now when assigning $name variable name1 syntax error. please let me k...

knockout.js options binding not reflecting added item -

the page shows original list of advisers properly. however, when attempt use push() method array, list size updates, select option list on page not update. need tell knockout update or something? here sample code: function updatestudentadviserlist(student) { var list = viewmodel.studentadvisers(); if (student.isstudentadviser() == "true" || student.isstudentadviser() == true) { var alreadyinlist = false; (var = 0; < list.length; i++) { alert(list[i].id); if (list[i].id == student.id()) { return; } } list.push(student); alert('new size: ' + list.length); } else { (var = 0; < list.length; i++) { alert(list[i].id); if (list[i].id == student.id()) { list.splice(i, 1); alert('new size: ' + list.length); break; } } } } function viewmodel(da...

c# Oracle Dynamic Connection string solution -

i have application connects specific oracle user & database data provided user through 1 little form. user inputs username, password , host address , can connect user defined locally, in oracle client's file: tnsnames.ora. works fine, have problem when designing reports devexpress (or other reports designer tool) same application. all devexpress reports communicating database tables through dataset uses fixed, hardcoded values defined in connection string in app.config. the problem can't have hardcoded values connecting database, because user can every time enter different values , connect different user on database, through little connection form, when application running. know best way deal this? i don't know, maybe replacing connection string in app.config every time when user inputs connection data? you have static connection string reports , separate 1 oracle db/user connection.

ios - Too much boiler plate code - Methods -

i have simple uiviewcontroller 9 uiimageviews . when each uiimageview pressed method (or function) called. works fine problem have boiler plate code now. in viewdidload method have 9 uitapgesturerecognizer detect when of 9 uiimageviews pressed. call method run. here code: uitapgesturerecognizer *tap1 = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(imagepressed1:)]; [picview_1 addgesturerecognizer:tap1]; uitapgesturerecognizer *tap2 = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(imagepressed2:)]; [picview_2 addgesturerecognizer:tap2]; uitapgesturerecognizer *tap3 = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(imagepressed3:)]; [picview_3 addgesturerecognizer:tap3]; uitapgesturerecognizer *tap4 = [[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(imagepressed4:)]; [picview_4 addgesturerecognizer:tap4]; uitapgesturerecognizer *tap5 = [[uitapgesturerecognizer alloc] initwithtarget:self...