Posts

Struts2 -- NullPointerException from radio button -

i have following form in struts2 jsp contains radio buttons. there 2 other forms on page work correctly, 1 doesn't. have determined value selected somehow not being passed, , that reason i'm getting nullpointerexception, can't figure out why it's happening. can me? here jsp form. <s:form action="processpoll3"> <table> <tr> <td><b><i>poll #3</i></b></td> <td>how many kids have?</td> <td><s:radio name="poll3" list="#{'1':'0.', '2':'1.', '3':'2.', '4':'3.', '5':'more 3.'}" /> <s:submit value="vote poll #3" align="left" /></td> ...

javascript - tty.js does not work -

i installed tty.js: $ npm install -g tty.js start it: $ tty.js when call http://example.com:8080/ can't open terminal , http://example.com:8080/socket.io/socket.io.js returns http error 404. i tried node 0.6.19. i posted in github maybe stackoverflow can :) you should not using "example.com", external domain, own machine. try replacing localhost, or 127.0.0.1, so: http://localhost:8080

jquery - Load certain pages in a modal box on page load -

i have built simple modal using jquery takes url , loads using ajax method , inserts response html div display on screen in design of modal box. simple stuff! however these pages actual urls e.g. domain.com/posts/add , can accessed directly via browser , not clicking link within app. prefer displayed in modal @ times if user types url address bar. make if request not ajax redirect them homepage or show 404 prevent happening. i prefer load these pages in modal should user access them directly via http in same way chrome store e.g. https://chrome.google.com/webstore/detail/pjkljhegncpnkpknbcohdijeoejaedia how though? without having messy javascript? ideas or suggestions appreciated. please note should work proper app in allows user use , forth buttons , modal should appear , disappear as modal code use... it simple , example of how looks (note mine more robust this, code purely example of simplicity) $('.ajax-link').click(function(e){ e.preventdefault; $.ajax({...

iOS push notifications nightmares, Provisions app IDs and certificates -

hey apple developers, i'm pulling hair out trying figure out how ios provisioning profiles, certificates , app ids work push notifications. thought close getting work, maybe not. when run app , attempt register push notifications, error in console: 2012-06-26 17:52:29.380 grouped[1732:707] badgenumber: 0 2012-06-26 17:52:30.089 grouped[1732:707] [info] device ready 2012-06-26 17:52:32.654 grouped[1732:707] jslog: registering apns via app delegate 2012-06-26 17:52:32.655 grouped[1732:707] register success callback set 2012-06-26 17:52:32.661 grouped[1732:707] didfailtoregisterforremotenotificationswitherror:error domain=nscocoaerrordomain code=3000 "no valid 'aps-environment' entitlement string found application" userinfo=0x18a0c0 {nslocalizeddescription=no valid 'aps-environment' entitlement string found application} i've done several hours of research , can't figure out i'm doing wrong. i've created new provisioning prof...

c# - DirectX not showing up in references -

i installed directx sdk when try add reference it, isnt showing in list. so, need know either how dx references added list or dll need browse for. i'm trying microsoft.directx.audiovideoplayback for now, anyways, i've downloaded directx9 managed code still exists , fixed problem. considered using sharpdx had 0 documentation.

linux - search.h-No such file or directory while porting libtiff on Android-tiff 4.0.1 -

i trying port libtiff on android. source version using tiff 4.0.1. building source inside u1 android os. getting below error when run mmm external/tiff 4.0.1/ in file included external/tiff-4.0.1/libtiff/tiffiop.h:33, external/tiff-4.0.1/libtiff/tif_dirread.c:42: external/tiff-4.0.1/libtiff/tif_config.h:93:1: warning: "have_malloc_h" redefined in file included <command-line>:0: ./system/core/include/arch/linux-arm/androidconfig.h:221:1: warning: location of previous definition in file included external/tiff-4.0.1/libtiff/tif_dirread.c:42: external/tiff-4.0.1/libtiff/tiffiop.h:54:21: error: search.h: no such file or directory i tries searching lot on internet not issue. can 1 provide me approx idea wrong or package missing. i resolved issue finally. hope doing work in future. need remove lines libtiff/tiffiop.h header file being referenced.that worked me.

r - Delete "" from csv values and change column names when writing to a CSV -

i'm trying create csv files out of r table. cant understand why values checked "" when use write.csv() function. data looks this: sample sample_name sample_group pool_id sample_plate nortum sentrix_id sentrix_position hybnr 1 00_11242 00_24200n2 mutyh gs0005703-opa gs0010004-dna n 1280307 r007_c005 1 2 00_11242 00_24200n2 mutyh gs0005704-opa gs0010004-dna n 1280307 r007_c011 1 3 00_11242 00_24200n2 mutyh gs0005702-opa gs0010004-dna n 1416198 r007_c011 2 4 00_11242 00_24200n2 mutyh gs0005701-opa gs0010004-dna n 1416198 r007_c005 2 5 00_7 00_7t mutyh gs0005701-opa gs0010004-dna t 1416198 r006_c005 2 6 00_7 00_7t mutyh gs0005702-opa gs0010004-dna t 1416198 r006_c011 2 7 00_7 00_7t mutyh gs0005704-opa gs0010004-dna t 1280307 r006_c011 1 8 00_7 00_7t mutyh gs0005703-opa gs0010004-dna t 12...