Posts

HTML ul li width not correct -

HTML ul li width not correct - i trying create drop-down-menu , having problems width of links out of box... check out http://jsfiddle.net/v4cgn/ you can this: http://jsfiddle.net/v4cgn/8/ add together overflow:hidden; #popupbox html html-lists anchor

javascript - Next step for learning asp.net after read book beginning asp.net 4 -

javascript - Next step for learning asp.net after read book beginning asp.net 4 - i'm started larn asp.net , untill finish book origin asp.net 4, should read ? (css - jquery - javascript - ajax - ...) i suggest pick problem give focus (something little such to-do list application) , start writing code. doing highlight gaps have giving basis more research. while webforms 'easy' , handles much of http stack you, agree ed r going downwards asp.net mvc 3 route. javascript jquery asp.net css ajax

java - Android: CountDownTimer skips last onTick()! -

java - Android: CountDownTimer skips last onTick()! - code: public class smh extends activity { public void oncreate(bundle b) { super.oncreate(b); setcontentview(r.layout.main); textview tv = (textview) findviewbyid(r.id.tv); new countdowntimer(10000, 2000) { public void ontick(long m) { long sec = m/1000+1; tv.append(sec+" seconds remain\n"); } public void onfinish() { tv.append("done!"); } }.start(); } output: 10 seconds remain 8 seconds remain 6 seconds remain 4 seconds remain done! problem: how show "2 seconds remain"? time elapsed indeed 10 seconds, lastly ontick() never happens. if alter sec parameter 2000 1000, output: 10 seconds remain 9 seconds remain 8 seconds remain 7 seconds remain 6 seconds remain 5 seconds remain 4 seconds remain ...

ruby on rails - Paperclip resize and crop to rectangle -

ruby on rails - Paperclip resize and crop to rectangle - so expecting series of photos of different sizes , aspect ratios. want able shrink/stretch photo fit much can in 200x100 rectangle , crop rest not fit. want crop happen around center well. possible? confused imagemagick documentation. thanks! paperclip's # alternative want: fit image maximally within specified dimensions crop excess gravity @ center. example: has_attached_file :photo, :styles => { :original => "200x100#" } note: if want maintain original intact , generate additional cropped thumb, alter :original key else, :thumb . reference: http://rdoc.info/github/thoughtbot/paperclip/paperclip/classmethods ruby-on-rails ruby imagemagick paperclip

javascript - Fancybox stops working when invoked twice in the same browser session -

javascript - Fancybox stops working when invoked twice in the same browser session - i have odd problem fancybox. using version 1.2.6 (yes it's old, that's i'm stuck currently), invoke iframe via button click (see screenshot below) everything fine if user selects radio button , submits form. however, if user closes fancybox invokes iframe 1 time again (using same button click before), form not clickable. instead there left , right arrows on iframe if it's trying display image (see screenshot below) the way 'fix' issue reload page or not dismiss fancybox in first place. [update] here how invoke fancybox. dismiss fancybox, have click on "modify address" button. $('#hidden_link').fancybox({ framewidth:400, frameheight:500, hideonoverlayclick:false, hideoncontentclick:false, showclosebutton:false }).trigger('click'); the element #hiddenlink hidden href . <a href="/assets/cnt/index.htm...

php - Opening more than two connections to apache per client -

php - Opening more than two connections to apache per client - bit of odd problem here. we're migrating website new software platform. part of migration, must re-create files 1 amazon s3 bucket another. there hundreds of thousands of files. we must utilize software have (phpfox) this. php framework. the job broken in segments phone call using offset in url. basically: re-create 10 files , update database necessary increment offset 10 rinse, repeat. the api traffic light, load on server sub 1%, however, if open more 2 tabs on 1 machine server, script begins slowing downwards proportionally, if web server (apache) queuing commands instead of running them in parallel. we've found if open 2 tabs on many machines, scales expected. in order either saturate our uplink or set noticeable load on server, need fill room laptops. while comical, highly impractical , pain in ass. there has gotta improve way here. i've tried increasing max spare processes, , ...

symfony2 - symfony 2 sending an object from a template to a controller -

symfony2 - symfony 2 sending an object from a template to a controller - i need send object template controller. in case want send product object. possible send object argument in path ? {% product in products %} <p>{{ product.name }} price: {{ product.price}} <a href="{{ path('shopmyshopbundle_addproduct') }}">add product</a></p> {% endfor %} you can use: {% product in products %} <p>{{ product.name }} price: {{ product.price}} <a href="{{ path('shopmyshopbundle_addproduct', {id : product.id}) }}">add product</a></p> {% endfor %} but improve way using html form: <form action="{{ path('shopmyshopbundle_addproduct') }}" method="post" {{ form_enctype(form) }}> {# hidden fields #} {{ form_widget(form) }} <input type="submit" value="add product" /> </form> symfony2