Posts

html - How do you make a responsive site without media-queries? -

for life of me, can't quite figure out how template responsive without extensive use of media-queries. https://02dc74ce3e31e56a52ebcc845dca58e87283aabe.googledrive.com/host/0bxbofwq0kd4reut2ywvoymt3wvu/ anyone have ideas? i bought template, , responsiveness kinda broke while applying , author not responding emails. i can't quite figure out how looks elegant on small screens particularly. you can set max-width prevent element wider required on large screens. here fiddle: http://jsfiddle.net/ur3futxp/

objective c - Publishing a private iOS app - Clarifications -

i'm developing ios app going used internally within our organization, , not intend publish app store. i have elementary questions can't seem correct answers despite research. since company owns code, in name should apple id created? once app ready deployed device, in name should purchase developer program? should go corporate purchase asks duns number of corporation? in such cases, should rely on purchase departmentof company make actual purchase? also, how sign app? believe asks email id generate key. can id mine? finally, how add more team members can support or add new features app in absence? how can provide them access build app (code signing). the intention have id test app in real devices. test machines in country 1 , country 2. so, if purchase id country 1, can use same id test devices in country 2 too. there restriction in doing that? we test app in iphone , ipad. there limitation in number of devices added developer id? we have apple id in country...

Open source Android helper library project I can contribute to? -

over past years, own library many helper methods has grown lot , kind of lost vision how sort it. i tried simple folder structure ui/textview , ui/edittext , on. logic have general name root, type name folder, classes inside. in time, grew cannot find many methods , discovered have multiple duplicated methods. can direct me , quality android helper project can see how sorted library? or there public open source project android developers contribute own helper methods aiming creating ultimate helper library? if such thing exist, rather fill gaps own methods , use whole project in applications, continue upgrading own library. try library it's interesting . it's android-bootstrap library , while it's still in beginning , needs improvements necessity of such libraries may make important project , contribution may helpful , community , design of library code easy makes easy understand , can add futures want .

javascript - replacing header text on jQuery click event -

i trying replace text in h3 tag based on jquery click event. however, code not working , if put alert statement inside click event, can see reacting inside function not able execute text() call. header html markup <div class="section margin-top-50"> <h3 id="page_header" class="section-height"><?php echo $this->translate('text_1'); ?></h3> </div> menu html markup (where defining click events) <ul id="mytab" class="nav nav-layout-sidebar nav-stacked"> <li class="active"> <a href="#mood-graph" data-toggle="tab"> <?php echo $this->translate('text_1') ?> </a> </li> <li> <a href="#quick-mood-stats" data-toggle="tab"> <?php echo $this->translate('text_2') ?> </a> </li> <li...

jquery - How do I make a button inactive until requirements are met -

i trying make button have set remain inactive until requirement met, after use button becomes inactive. in code, have money counter count 1 every time click piece of coal on screen. want button inactive until reach amount of money, when it's active want able replace coal ore. finally, when purchase new ore want button become inactive again until earn enough money buy next upgrade. don't know if can use same button multiple purchases want i'm learning use them thoroughly possible! important code: <ul id="one"><strong id="clicks">$<span id="money">0</span></strong></ul> <!-- amount of money earned --> <button type="button" id="upgrade">upgrade gem</button> <!-- button upgrade gem --> <script> /* when coal.png clicked, 1 unit added money counter */ $(function() { $('#coal').click(function() { moneycalc(); }); function moneycalc() { var ...

java.lang.SecurityException when JMX monitor Tomcat from JConsole -

the scenario simple. i'm trying monitor local workstation (mac os 10.9) remote server (ubuntu 12.04) that's running tomcat 7.0.54 spring java app deployed. jvm hotspot 64bit "1.7.0_51" used in both server , workstation. the steps configure tomcat's jmxremotelifecyclelistener fix ports (server.xml) <listener classname="org.apache.catalina.mbeans.jmxremotelifecyclelistener" rmiregistryportplatform="9940" rmiserverportplatform="9941" /> copy catalina-jmx-remote.jar catalina_home/lib open ports sudo iptables -l accept tcp -- anywhere anywhere tcp dpt:9940 accept tcp -- anywhere anywhere tcp dpt:9941 setenv.sh ip=`ifconfig eth0 | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'`; export catalina_opts="$catalina_opts -dcom.sun.management.local.only=false -dcom.sun.management.jmxremote=true -dc...

scheme - How to delete the first and last elements of a list? -

i'm trying remove both first , last elements of list in racket. there other way of doing instead of: (cdr (reverse (cdr (reverse my-list)))) here's 1 way it, using racket's built-in procedures: (define my-list '(1 2 3 4 5 6 7 8 9 10)) (drop-right (rest my-list) 1) => '(2 3 4 5 6 7 8 9) note: can use cdr instead of rest , rest more idiomatic in racket. more general solution: ; remove `left` number of elements elements left side ; , `right` number of elements right side of list (define (trim lst left right) (drop-right (drop lst left) right)) (trim my-list 1 1) => '(2 3 4 5 6 7 8 9) (trim my-list 2 4) => '(3 4 5 6)