Posts

Showing posts from April, 2013

Android intent pass data to activity - am i doing this right? -

Android intent pass data to activity - am i doing this right? - another beginner android question... i have imageview in activity called introduction. want alter image in imageview depending fling gesture. fling detection working fine, have public class flinggesturelistener extends gesturedetector.simpleongesturelistener which calls private void raiseintent(string direction) { intent intent = new intent(demoapp.getappcontext(), introduction.class); intent.putextra("direction", direction); string category = demoapp.getappcontext().getstring(r.string.introduction_imageview_fling); intent.addcategory(category); intent.setflags(intent.flag_activity_new_task); demoapp.getappcontext().startactivity(intent); } it primitive string "left" or "right" passed raiseintent on fling gesture. introduction activity in imageview sits in view. in app manifest activity have: <activity and...

php - Array to multidimensional array ... based on foo.bar.baz-dots in array key name -

php - Array to multidimensional array ... based on foo.bar.baz-dots in array key name - i have array "foo.bar.baz" key names in array. there handy way turn array multidimensional array (using each "dot level" key next array)? actual output: array([foo.bar.baz] => 1, [qux] => 1) desired output: array([foo][bar][baz] => 1, [qux] => 1) code example: $arr = array("foo.bar.baz" => 1, "qux" => 1); print_r($arr); solution: <?php $arr = array('foo.bar.baz' => 1, 'qux' => 1); function array_dotkey(array $arr) { // loop through each key/value pairs. foreach ( $arr $key => $value ) { if ( strpos($key, '.') !== false ) { // reference array. $tmparr =& $arr; // split key "." , loop through each value. foreach ( explode('.', $key) $tmpkey ) { // add together array. $tmparr[$tmpkey] = array(); ...

What are the cons of using in-place collection initializers in Java -

What are the cons of using in-place collection initializers in Java - consider piece of code: set<string> myset = new hashset<string>(){{add("foo");add("boo");}}; or hashmap : map<string,string> mymap = new hashmap<string,string>(){{put("foo","bar");put("boo","jar");}}; pros find: less lines of code, conciseness. cons? upd: question not sets, types of collections, added map illustrate this. when that, creating anonymous subclass of hashset, means unnecessarily polluting code base of operations classes don't new. how instead? set<string> set = new hashset<string>(arrays.aslist("foo", "bar")); or alternatively, utilize guava's sets class. has mill methods initialize different kinds of sets: set<string> set = sets.newhashset("foo", "bar"); with maps it's trickier, can utilize immutablemap : ...

mobile - CSS for Opera Mini only -

mobile - CSS for Opera Mini only - i have issues css , opera mobile. without effecting other pages there way can prepare css on opera mobile? here issues: links aren't underlined css below not center button #likebuttonwrapper //center button { margin: 1em auto; margin-top: 2em; } for button issue, margin: 1em auto; works center item when knows width of item. set width , see if fixes it. my understanding opera mini disables link underlining automatically. see http://my.opera.com/community/forums/topic.dml?id=821082 not sure if can override more specific style such a.link{text-decoration:underline;} or a{text-decoration:underline !important;} css mobile opera-mini opera-mobile

android - onSharedPreferenceChanged question -

android - onSharedPreferenceChanged question - is there way not save changes in shared_pref, instead save sqlite using public void onsharedpreferencechanged(sharedpreferences sharedpreferences,string key) { } i can't seem "intercept" data, writing shared_pref any inputs great intercept alter preference.onpreferencechangelistener.onpreferencechange() , save sqlite, , homecoming false. however may cause visible state of preference not alter may have update yourself. barry android preferenceactivity

UI freezes when running program for searching files in whole system using C# Tasks -

UI freezes when running program for searching files in whole system using C# Tasks - i have written little programme searches kind of files in whole syatem , after search finish shows result in list view when run programme form freezes , can not anything. can please help in trying prepare problem , below code have written using system; using system.collections.generic; using system.componentmodel; using system.data; using system.drawing; using system.linq; using system.text; using system.windows.forms; using system.threading.tasks; using system.io; using system.threading; using system.io.compression; using system.security.accesscontrol; namespace searchandziputility { public partial class mainform : form { private string _destfolder; private string _sourcetosearch = @"e:\new books"; private taskscheduler schedular = taskscheduler.current; private cancellationtokensource _ct = new cancellationtokensource(); priva...

ssh - Cygwin inherits environment variables from Windows sometimes -

ssh - Cygwin inherits environment variables from Windows sometimes - if set environment variable cvsroot in windows , give value cvsserver:/home/cvs, if then 1) open windows cmd shell , "echo %cvsroot%", "cvsserver:home/cvs" 2) open cygwin bash shell , "echo $cvsroot", "cvsserver:home/cvs" 3) linux, ssh machine , "echo $cvsroot", nothing. if want ssh session have value cvsroot, need insert .bashrc. is there can done ssh session inherits environment variable windows? edit: 4) linux, do ssh machine "printenv cvsroot" with environment variable set in .bashrc, nothing. @ interactive prompt, variable value, way gives nothing. i found nice solution here: http://www.smithii.com/node/44 it looks scheme variable in registry , sets variables in session opened via ssh. then, phone call little piece of script ssh client (while connecting cygwin server), this: ssh $windowsuser@$windowsbuildserver ...

Not getting correct port number by GetExtendedTcpTable in delphi 7 -

Not getting correct port number by GetExtendedTcpTable in delphi 7 - i have implemented next code getting tcp info function gettcpextendedtable : const any_size = 1; iphlpapi = 'iphlpapi.dll'; //for using dll tcp_table_owner_pid_all = 5; {states of connections} mib_tcp_state: array[1..12] of string = ('closed', 'listen', 'syn-sent ','syn-received', 'established', 'fin-wait-1', 'fin-wait-2', 'close-wait', 'closing','last-ack', 'time- wait', 'delete tcb'); {record of type mib_tcprow: typedef struct _mib_tcprow { dword dwstate; dword dwlocaladdr; dword dwlocalport; dword dwremoteaddr; dword dwremoteport; }//mib_tcprow, *pmib_tcprow; type {the type of tcp table construction retrieve. parameter can 1 of values tcp_table_class enumeration. } tcp_table_class = integer; pmibtcprowownerpid = ^tmibtcprowownerpid; tmibtcp...

java - Deploying webservice using virtualbox sdk 4.0 in glassfish3.1 -

java - Deploying webservice using virtualbox sdk 4.0 in glassfish3.1 - after plenty of attempts , research can't figure out exception comes from: severe: exception in thread "thread-31" severe: java.lang.illegalstateexception: web9031: webappclassloader unable load resource [vboxwebservice_4_0.wsdl], because has not yet been started, or stopped @ org.glassfish.web.loader.webappclassloader.findresourceinternal(webappclassloader.java:2074) @ org.glassfish.web.loader.webappclassloader.findresource(webappclassloader.java:1034) @ org.glassfish.web.loader.webappclassloader.getresource(webappclassloader.java:1169) @ org.glassfish.web.loader.webappclassloader.getresource(webappclassloader.java:1135) @ org.virtualbox_4_0.portpool.getport(virtualboxmanager.java:105) @ org.virtualbox_4_0.portpool.preinit(virtualboxmanager.java:82) @ org.virtualbox_4_0.portpool.access$200(virtualboxmanager.java:36) @ org.virtualbox_4_0.portpool$1.run(virtualbo...

java ee - Is setting up jboss valve the only way to go? -

java ee - Is setting up jboss valve the only way to go? - i have application set using jaas module login. there ajax function calls in application experencing notorious ajax session timeout problem, means ugly login page getting page's place holder if session timeout. fixing in ugly way checking if homecoming ajax result contains login form, apparently, not way. i tried add together filter check if session has timed out , homecoming meaningful ajax request. seems jaas runs prior servlet filters. have checked , acknowledged valve kind of "interceptor" runs before jaas. seems thing needed.but it's container-base not application-based, not application-frieldly imo. asking if way fulfil trying or there improve alternatives. i using jboss 4.2.3 thanks. it seems me there's no real solution problem. jaas didn't consider session timeout using ajax @ all. we can dirtily check if ajax response contains login page elements observe if session time...

Setting the .htaccess MIME type to text/cache-manifest in XAMPP to view websites offline in HTML5 -

Setting the .htaccess MIME type to text/cache-manifest in XAMPP to view websites offline in HTML5 - i've seen pretty much tutorials in web how create site viewable offline using cache manifest , this: a manifest file must served mime-type text/cache-manifest. may need add together custom file type web server or .htaccess configuration. but when @ xampp directory, there aren't files named ".htaccess" in xampp/htdocs folder. did search under xampp/ directory , there's quite lot of them, 1 in each folder below: xampp/htdocs/drupal xampp/phpmyadmin/setup/lib xampp/phpmyadmin/libraries xampp/htdocs/xampp/sqlite xampp/htdocs/forbidden xampp/phpmyadmin/contrib my partner here says have create myself within xampp/htdocs/nameofthefolderofmywebapp don't quite trust him since didn't work. help? this may help, @ to the lowest degree testing: since using php, create php file named themanifestfile.php content: <?php header(...

javascript - Is it possible to disable specific warnings in Komodo Edit? -

javascript - Is it possible to disable specific warnings in Komodo Edit? - komodo edit divides warnings 2 categories: regular , strict. of strict warnings, - example, warning when dictionary definition has trailing comma - useful me, while others aren't. is there way, perhaps through editing komodo resource files, disable specific warnings within 'strict' category? maybe installing kjslint addon can help? gives command on jslint, equal official jslint options. javascript ide komodo komodoedit

receive image with PHP sent from FLASH -

receive image with PHP sent from FLASH - how can save image php uploaded http post using flash? to upload i'm php using this: var upload_to:*=new flash.net.urlrequest("url"); filehandler.upload(upload_to); and when print $_files in php get: {"filedata":{"name":"img_8​658 copy44.jpg","type":"applic​ation\/octet- stream","tmp_​name":"c:\\windows\\temp\\​php35.tmp","error":0,"size​":183174}} so question is, how form file $_files variable?: ) thanks php doesn't store file in memory. it's written out temporary file, can retrieve name/path of tmp_name value (c:\windows...). name field filename provided client (img_8658...); in case, that'd be $_files['filedata']['tmp_name'] <-- location of temporary file $_files['filedata']['name'] <---original filename $_files[...

github - How do I automatically add new files to Git? -

github - How do I automatically add new files to Git? - i know can git add together files, got ton of files. there way "git add together *.h", or "git add together *.py" ? yes can git add together *.py create sure have done git init before doing this. to add together files in folder can git add together . git github

visual studio 2010 - TF30063: You are not authorized to access Collection. Nuget and Tfs conflicting -

visual studio 2010 - TF30063: You are not authorized to access Collection. Nuget and Tfs conflicting - latest comment i believe problem occurs when using nuget, however, if reading because of tf30063 error. have @ reply provided , accepted. original post i getting error message when seek check out. happens randomly , can occur if minutes ago same instance of visual studio allowed me check else out edit. the current workaround reopen vs2010. using w7x64, vs2010 ultimate tf2010 , sql2008 on local dev machine. not part of domain. administrator of computer. additional 2011-08-09 when problem occurrs, "close solution" under file. , reopen solution. uid/pwd box. set admin uid/pwd , farther error message. again, closing vs2010 , reopening solves issue. additional: 2011-08-30 i believe has nuget. have provided reply , far after many months have not had tfs error. should have had error given types of operations have been performing identical scenarios ma...

jquery - How to asynchronously load a partial page in rails -

jquery - How to asynchronously load a partial page in rails - in creating ruby on rails / jquery app, there's part of page time-consuming generate. i want alter how page loaded of page loads right away, , placeholder reserved time-consuming part load asynchronously, , injected page ajax / jquery when finished. what have (simplified): app/views/sample/show.html.erb: <div id="theresult"> <%= render :partial => 'calculate', :object => @org) %> </div> and partial utilize parts @org generate content (hitting external rest service). app/views/sample/_calculate.html.erb <% # code take org , turn content %> <!--...html display results here --> i realize breaking proper mvc architecture rules since partial seems have much logic, , clean well... so guess have 2 questions in one: (1) how work, , (2) how should clean follow ruby/rails/mvc practices? first set empty, placeholder div in main respon...

grid - extjs rowexpander how to expand all -

grid - extjs rowexpander how to expand all - i'm using ext.ux.grid.rowexpander var expander = new ext.ux.grid.rowexpander({ tpl : new ext.template( '<p>{history}</p>' ) }); it's used in grid: var grid = new ext.grid.gridpanel({ store: store, columns: [ expander, ... now want expander rows expanded deafult. i'm trying utilize expander.expandrow(grid.view.getrow(0)); (i think if create it, i'll able utilize loop :) error this.mainbody undefined @ ***/ext/ext-all.js:11 please, help me expand rows of grid! thanks! you can loop, it's quite simple... for(i = 0; <= pagesize; i++) { expander.expandrow(i); } where pagesize number of records per page in grid. alternatively utilize store's count (probably more scalable solution)... for(i = 0; <= grid.getstore().getcount(); i++) { expander.expandrow(i); } extjs grid expander

breaking output of php array into chunks -

breaking output of php array into chunks - i have array containing info images, using print number of img html tags foreach loop follows: <?php foreach ( $images $image ) : ?> <img alt="<?php echo $image->alttext ?>" src="<?php echo $image->thumbnailurl ?>" /> <?php endforeach; ?> i wrap div around every 10 images. remainder should div well. i thinking need utilize array_chunk on $images , wrap above in loop each chunk. little bit of math did start follows: $pics_per_page = 10; $imgcount = count($images); $num_pages = ceil($imgcount/$pics_per_page); $pages = array_chunk($images, $num_pages); how proceed here? how utilize $images array correctly, if @ all, in outputting html? forgetting array_chunk method, have next way, array_chunk method seems cleaner. for 1 num_pages: echo "<div>" j = (i-1) * pics_per_page; while j <= * pics_per_page echo "<img src = ...

jquery - Improve JavaScript setInterval code -

jquery - Improve JavaScript setInterval code - i have bit of javascript uses jquery animate create water motion effect. var waves = function() { (function() { var firstwave = function() { this.css = function(p) { var s = math.sin(p*5) var x = (960 * 2) - (p * 960) + 10 var y = s * 5 + 15 homecoming {backgroundposition: "-" + x + "px", bottom: "-" + y + "px"} } }; var tidalwave = function() { $("#waves-1").animate({path: new firstwave}, 10999, "linear"); }; setinterval(tidalwave, 500); })(); }; waves() called within $(document).ready() handler. as can see, setinterval set 500 though animation lasts under 11 seconds. did ensure animation starts on page load, since calling $.animate() did not kick off animation. i'm sure doing way have lot of speed issues ...

javascript - JSFL for...in loop doesn't seem to work -

javascript - JSFL for...in loop doesn't seem to work - i'm writing script in jsfl flash cs5, , i'm trying list of layers off main timeline. i'm getting timeline, looping through for...in loop, objects i'm getting seem undefined. here's test code made: alert(fl.getdocumentdom().gettimeline().layers[0].name); //returns "text1" for(layer in fl.getdocumentdom().gettimeline().layers) { alert(layer.name); //returns "undefined" } so, jsfl not back upwards for...in? that's kinda odd, since seems it's javascript engine. whoooh there. jsfl not javascript engine, bizarro world javascript can remarkably unpredictable. don't believe me? not sure if still case, seek fl.getdocumentdom().selection.push(<obj>) . didn't work, did: var s = fl.getdocumentdom().selection; s.push(<obj>) fl.getdocumentdom().selection = s . that said, syntax off: var layers = fl.getdocumentdom().gettimeline().layers; // incl...

How is Opa handling communication between client and server? -

How is Opa handling communication between client and server? - is opa using ajax or websockets? i'm guessing former. if want utilize websockets instead of ajax? or similar socket.io javascript - if browser supports websockets uses them, otherwise falls ajax & flash sockets. opa doesn't back upwards websockets. but it's considere again, since firefox 6 brings back upwards websockets , prepare proposed previous big security issue. opa

c# - Intersecting points of curve! -

c# - Intersecting points of curve! - i drawing arc within square or polygon maximum possible radius inside. when arc drawn within boundary of square or polygon, arc length intersect @ few points on square or polygon. how find coordinates of intersecting points of arc @ periphery of square/ polygon? the line segment of polygon has (or hasn't) tangent point distance center point of arc arc radius. if problem project 2 lines parallel segment on either side of segment @ distance of radius, determine if either line intersects arc center point, if not, no tangent exists... if so, point of intersection relative projected segment proportional tangent on original segment. c# asp.net vb.net math

how to populate child node in jQuery Treeview in specific parent? -

how to populate child node in jQuery Treeview in specific parent? - i'm using jquery treeview. there's way populate children node in specific parent on onclick event? please give me advise or simple sample code this. you can access node javascript using document.getelementbyid('theparent') .getelementsbytagname('firsthierarchytag')[n] .getelementsbytagname('secondhierarchytag')[n] ... jquery treeview

datetime - How to find start and end date of last 4 months including current in php -

datetime - How to find start and end date of last 4 months including current in php - i want start , end dates on lastly 4 months including current month.please help. regards jos i'd way... <?php // current day start $start = mktime(0,0,0,date('m'), date('d'), date('y'));; // loop through current , lastly 4 month ($i = 0; $i <=4; $i++) { // calculate first day of month $first = mktime(0,0,0,date('m',$start) - $i,1,date('y',$start)); // calculate lastly day of month $last = mktime(0, 0, 0, date('m') -$i + 1, 0, date('y',$start)); // output... echo date('y-m-d',$first) . " - ".date('y-m-d',$last). "<br>"; } ?> php datetime

java - Exporting Access Tables Programmatically -

java - Exporting Access Tables Programmatically - alright, after few hours of searching , reading on net, have broken downwards , decided inquire help. working automate many of more medial , repetitive tasks work, , stumbled upon autoit, love tool. anyway, today's task export of slew of tables , queries access 2007 in few different formats. csvs tab delimited, , couple of dbase dbfs , dbts. none of hard , in fact person held position created hundred macros in mdb export tables. seems me fell short of hastening process still have run each macro. looking create autoit script export right tables in right format right place right name. doesn't seem should difficult. so far have been imagining using ado tell access export table in format , where. cannot seem find necessary commands needed that. figured perhaps, @ to the lowest degree text based formats (csv, txt, tab) read each record out of given table or query , build text file myself in autoit, not simplest way of ...

javascript - What are the standard externs provided by the command line Google Closure, and how do I get them through the Java interface? -

javascript - What are the standard externs provided by the command line Google Closure, and how do I get them through the Java interface? - i'm using code: com.google.javascript.jscomp.compiler.setlogginglevel(level.off); com.google.javascript.jscomp.compiler compiler = new com.google.javascript.jscomp.compiler(); compileroptions options = new compileroptions(); compilationlevel.advanced_optimizations.setoptionsforcompilationlevel(options); warninglevel.verbose.setoptionsforwarninglevel(options); list<jssourcefile> externs = new arraylist<jssourcefile>(); externs.add(jssourcefile.fromfile(extern_src)); list<jssourcefile> primary = new arraylist<jssourcefile>(); primary.add(jssourcefile.fromfile(tmp)); compiler.compile(externs, primary, options); however, lots of errors this: error message: jsc_undefined_variable. variable array undefined error message: jsc_undefined_variable. variable typeerror undefined error message: jsc_undefined_variable....

What is the purpose of Virtual member in C++? -

What is the purpose of Virtual member in C++? - i don't see purpose of virtual fellow member in class other safety. there other reasons utilize virtual when designing implementations? edit: erased variable part. there no such thing virtual variable, virtual function or virtual inheritance. such, lack of purpose such thing seems rather thing. edit: virtual functions how c++ implements run-time polymorphism. trying explain uses/purposes of polymorphism bit beyond fit reasonable-sized post. general idea, however, can define type of behavior in base of operations class, implement behavior differently in each derived class. more practical illustration most, consider base of operations database class defines things finding set of records fit criteria. can implement behavior 1 way sql database (by generating sql), , with, say, mongodb. implementation 1 quite bit different other, viewed abstractly they're still both doing same basic things (finding/reading/writing r...

assembly - How do I obtain disk manufacturer information? -

assembly - How do I obtain disk manufacturer information? - i'm learning programme ata bus. in bochs seems code r/w works, can't sure until seek real disk. need find out how obtain disk manufacturer info to the lowest degree importnant thing when talking it's functionality on other hand printing info on screen 1 of things can assure me i'm not gonna screw whole pc. trying google out wasn't lucky. if provide me links or hints great. thx stu. ps - solutions without interrupts prefered i found solution in this pdf (look indetify device command) , there nice c code here. there lot of info on osdev, think best if don't much reading through source codes. bochs works fine, qemu works fine, desktop pc works fine, of course of study laptops feeling special couldn't create work on these yet. 1 prints 40 characters pi , 1 doesn't print @ all. should have ideas matter please share opinions me. hope references help others seek information. edi...

javascript - Internet Explorer: how do I refresh html layout programmatically? -

javascript - Internet Explorer: how do I refresh html layout programmatically? - i have active-x component on html page long-run method (process) fires callback javascript. activex.process( function (message) { // alert(message); --> message box appears, ok $("#panel").text(message); // panel doesn't refreshed! } } <div id="panel" > active-x messages should here! </div> callbacks fire ok (i can see messagebox'es) panel doesn't refreshed until process method returns. may forcefulness panel refreshed or shall fire callbacks thread? thank in advance! if you're calling activex.process() javascript, browser blocks until js function returns. try create new thread in process() , homecoming immediately. should "unlock" browser. ie's javascript engine should synchronize callback code when invoke new thread. javascript internet-explorer ...

java - General hardening tips for a Apache Tomcat JSP application -

java - General hardening tips for a Apache Tomcat JSP application - i developing quite straightforward crud webapplication company. using apache tomcat 6.0 , jstl 1.2 the application on road beingness finished , withstands constructive testing , basic mischief such invalid input format in forms. the security level doesn't have high since it's internal use, still i'd have basics covered. i trying harden , or accomplish failsafety/exceptionsafety , looking general hints , tipps usualy error sources lie. what have thought of: sql injection ('fixed' using prepared statements) fail gracefully on sql-exceptions range checking on parameters such pagenumbers what recommendations this? thanks in advance the owasp (open web application security project) guide on tomcat pretty thorough. many first-class resources on site. java security jsp jstl

java - don't allow non member show jsp page -

java - don't allow non member show jsp page - i design jsp page want 1 login fellow member of site(have session futures) see page , if 1 not fellow member seek see page refer custom eror page.can advise me helpfull? <%@ page language="java" contenttype="text/html; charset=iso-8859-1" pageencoding="iso-8859-1"%> <!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> <title> user account</title> </head> <body> <%@include file="header.jsp" %> ${welcome } ${name} ${family } </body> </html> any help fall me in greatfull... use servlet filter. implement javax.servlet.filter . phone call chain.dofilter(..) if find user in session; otherwise phone call response.sendredirect(...

iphone - Grouped Table View - Realizing which cell was selected -

iphone - Grouped Table View - Realizing which cell was selected - i making grouped table view multiple sections (using nsarrays). anyway, normally, if have regular table view no sections able utilize next code realize cell user tapped. no longer works since utilize nsarrays split table , don't place cell names straight table view code ([tblsimpletable addobject:@"cell 1"]; <-- don't that). new code should use? thanks! - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { if ([[tblsimpletable objectatindex: indexpath.row] isequal:@"iphone"]) { if know row number , section number try this - (void)tableview:(uitableview *)tableview didselectrowatindexpath:(nsindexpath *)indexpath { if(indexpath.section==yoursection) { if(indexpath.row==yourrow) { //do } } } iphone ios uitableview table nsarray

php - How can I parse recipient's email server's reply after email sent? -

php - How can I parse recipient's email server's reply after email sent? - my programme sends out emails in batch according specified mailing list, email sending plugin used ( swift mailer 4.11 ), know smtp server sending emails out. but how can parse recipient's email server's reply? should parse "undelivered mail service returned sender" mails using php ( since undeliverable email sent sender ? or other alternatives parse transport ? i want next message : 554 1 or more of sender or recipients in email invalid , not accepted. (in reply info command) or in success case : 200 ok php email smtp swiftmailer

java - hide common package in doxygen output -

java - hide common package in doxygen output - given packages foo.bar.project.something.firstmodule foo.bar.project.something.secondmodule , etc. have long foo.bar.project.something in common. how tell doxygen hide (or @ to the lowest degree shorten) mutual bundle names , print firstmodule.someclass , secondmodule.myinterface in output? you set hide_scope_names yes, strip firstmodule , secondmodule. an alternative write simple input filter (see input_filter in doxygen config file) replaces "package foo.bar.project.something.amodule;" "package amodule;". have total command on how much stripped. java doxygen

hibernate - Is the ForeignKey annotation only used by HBM2DDL to generate the schema? -

hibernate - Is the ForeignKey annotation only used by HBM2DDL to generate the schema? - i'm having issue how hibernate generates foreign key names when using table_per_class inheritance strategy: foreign keys have random number appended when using hibernate's table_per_class inheritance so i'm wondering if can replace annotation following: @inheritance(strategy = inheritancetype.table_per_class) @entity abstract class item { @manytoone @foreignkey(name="fk_item_org_changeme") @joincolumn(name="org_id") private organization org } that way know go generated ddl , replace occurrences of changeme. hibernate else @foreignkey attribute i'm not aware of or workaround? possible, redefine such behavior via own naming staretgy - http://docs.jboss.org/hibernate/core/3.2/api/org/hibernate/cfg/namingstrategy.html#foreignkeycolumnname(java.lang.string, java.lang.string, java.lang.string, java.lang.string) ? hibernate fore...

Consuming a WCF service from Javascript - getting HTTP 400 on requests for jsdebug -

Consuming a WCF service from Javascript - getting HTTP 400 on requests for jsdebug - i'm trying create simple javascript test front-end wcf service, front-end isn't working. i've traced problem web page asks service http://..../myservice.svc/jsdebug (which, understand it, returns javascript code proxy client web page can utilize access service) - request returning http 400 -bad request. in effort cut down problem essentials, i've found can replicate problem simply: open visual studio 2010 create new project of type wcf service application build run in browser navigate http://localhost:portnumber/service1.svc/jsdebug the result server returns http 400 - bad request what's going on here? update: .svc file in is: <%@ servicehost language="c#" debug="true" service="webdataproxy.webdataproxy" codebehind="webdataproxy.svc.cs" %> the service interface looks like: namespace webdataproxy { [service...

asp.net mvc - Validating dates in aspnet mvc -

asp.net mvc - Validating dates in aspnet mvc - i have viewmodel on i've defined properties; 1 of them datetime field defined : [displayname("data")] [datatype(datatype.date)] [required(errormessage="selezionare una data")] [displayformat(applyformatineditmode = true, dataformatstring = "{0:dd/mm/yyyy}" )] public datetime? dtnews { get;set; } when submit form receive error msg "the value '13/07/2011' not valid dtnews" because scheme swaps days , months ... need have dd/mm/yyyy format: how can avoid silly problem? thanks in advance you set civilization in web.config civilization date format dd/mm/yyyy . illustration that's case it-it : <globalization culture="it-it" uiculture="it-it"/> by default civilization set auto . means asp.net uses browser settings in order deduce civilization of client. if browser configured utilize en-us , format dates m...

php - Colorbox not closing in ie and giving an error -

php - Colorbox not closing in ie and giving an error - i using colorbox value of textbox. have function in file: jquery(document).ready(function(){ jquery(".example5").colorbox({ oncomplete:function(){ document.getelementbyid('question').value;} }); }); where question textbox id name. than have php code check send question if array empty utilize exit exit out of code. here code that: if($array != ""){$f_array = explode(",", $array);} else { echo 'you have no 1 inquire questions.'; exit; } this code giving me 2 problems cant figure out. 1 colorbox shows message 'you have no 1 inquire questions.' can close firefox not close in ie. sec error in firefox: document.getelementbyid("question1") null [break on error] oncomplete:function(){ document.getelementbyid('question1').value;} i been trying figure out cant. appreciate help. php jquery colorbox

windows - How to Execute Clojure File? -

windows - How to Execute Clojure File? - how can run clojure file/script, uses clojure-contrib, command line? (winodws) machine has clojure-1.2.1.jar , clojure-contrib-1.2.0.jar on classpath. note: can start repl with: java clojure.main and can execute *.clj files not utilize clojure-contrib with: java clojure.main file-name.clj you need add together clojure-contrib jar classpath. since using windows, add together multiple classpaths separating entries semicolons. java -cp clojure-1.2.1.jar;clojure-contrib-1.2.0.jar clojure.main file-name.clj the above code should enable run file-name.clj script depends on clojure-contrib. windows clojure clojure-contrib

android - How could I get the controls in onListItemClick from ListActivity -

android - How could I get the controls in onListItemClick from ListActivity - i have listactivity in android project. code: public class listactivityapp extends listactivity { /** called when activity first created. */ @override public void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.list); arraylist<hashmap<string, string>> listitem = new arraylist<hashmap<string, string>>(); hashmap<string, string> map; map = new hashmap<string, string>(); map.put("title", "my note"); map.put("img", string.valueof(r.drawable.paper)); listitem.add(map); map = new hashmap<string, string>(); map.put("title", "second"); map.put("img", string.valueof(r.drawable.paper)); listitem.add(map); map = new hashmap<string, string>(); map.put("title", ...

content of XML file created by java app dissapears if computer is shut down -

content of XML file created by java app dissapears if computer is shut down - i developed desktop application, has class reads xml file (using dom), performs operations data, , saves info xml (replacing previous file). class instantiated , method invoked every 30 seconds. problem have if computer running application shutdown (suddenly powerfulness button, not properly). then, when pc starts again, xml file empty. blank file remains. doesn't happen every single time computer shut down, though. if computer turned off, never happens. code: private org.w3c.dom.document dom; private javax.xml.parsers.documentbuilder db; public playerconfighandler() { documentbuilderfactory dbf = documentbuilderfactory.newinstance(); seek { db = dbf.newdocumentbuilder(); dom = db.newdocument(); } grab (exception e) { } } public void updateconfig(list<file> playlists) { string playerpath = preferences.getinstance().readstringproperty("playerdirect...

python - Django view gets called twice... sometimes -

python - Django view gets called twice... sometimes - i have several logging.debug statements in home view of web site, log start time , end time of bunch of sql queries. however, sometimes, see sets of debug statements pop twice in row in debug log. of course, during time 1 user has made 1 request (as in refresh, nail enter, etc.) any ideas on might cause this? think may related problem we're having. it's possible view function called once, logging twice. i've had problems before logging add_handler phone call beingness run twice, log had same handler twice, 1 log.debug() phone call result in same message in log twice. python django http request

java - How do you redirect to another URI and access an object from the previous modelAndView -

java - How do you redirect to another URI and access an object from the previous modelAndView - i have next code. want access booleanvalueobj on nextpage.jsp. how done? object not available nextpage() method on every request, requestparam seems it's not appropriate. @requestmapping(method=requestmethod.post) public modelandview sendemail() { modelandview modelandview = new modelandview(); modelandview.addobject(booleanvalueobj, true); modelandview.setviewname("redirect: /nextpageclass"); homecoming modelandview; } @requestmapping("/nextpageclass") public class nextpagecontroller { @requestmapping(method = requestmethod.get) public modelandview nextpage() { modelandview modelandview = new modelandview("/nextpage"); homecoming modelandview; } } you can't pass booleanvalueobj redirected page. if booleanvalueobj boolean value, seems appropriate passed /nextpageclass thru request pa...

android facebook publish without prompt problem -

android facebook publish without prompt problem - i've tried find reply searching similar problem, couldn't it. developing android app game can post score facebook straight after login. problem is, posting result show message, didn't show description, name, caption, , picture. here code. public void oncomplete(bundle values) { seek { byte[] info = null; bitmap bi = bitmapfactory.decoderesource(getresources(),r.drawable.rocket); bytearrayoutputstream baos = new bytearrayoutputstream(); bi.compress(bitmap.compressformat.png, 100, baos); info = baos.tobytearray(); bundle params = new bundle(); params.putstring("message", var.getpostcontent() + " achieved"); params.putstring("name", "this appear beside picture"); params.putstring("caption", "this appear under title"); ...

iphone - Configuring the sound played when Push Notification is received -

iphone - Configuring the sound played when Push Notification is received - how can configure sound gets played when application in background , force notification received? check out "the notification payload" section of this document. example json payload (adapted above document): { "aps" : { "alert" : "you got emails.", "badge" : 9, "sound" : "bingbong.aiff" } } the key you're looking here sound , it's string points aiff , caf , or wav file within bundle. iphone objective-c ios cocoa-touch push-notification

php - Wordpress Won't Keep My Url Params -

php - Wordpress Won't Keep My Url Params - i'm working on wp website , anytime add together url params url, redirects page version without params. example: http://mysite.com/?foo=bar -> redirects -> http://mysite.com/ http://mysite.com/contact-us/?foo=bar -> redirects http://mysite.com/contact-us/ how can prepare this? need params load page various reasons. contents of .htaccess (edited add together qsa - isn't working): # begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewriterule ^index\.php$ - [l,qsa] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l,qsa] </ifmodule> # end wordpress you have utilize query_vars create happen. wordpress stores query string parameters may need in global object , ignores else. you need instruct following: instruct wordpress save variables. add together filter query_vars that. illustration given in link below...

css - Help debugging jquery simple gallery - swf / images -

css - Help debugging jquery simple gallery - swf / images - i have next code: <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" language="javascript" src="jquery/jquery-1.5.1.js"></script> <script type="text/javascript" language="javascript" src="http://jquery.thewikies.com/swfobject/jquery.swfobject.1-1-1.min.js"></script> <style> div#test{background:#ffffff;width:360px;height:360px;display:none;z-index:5;position: fixed;} </style> </head> <body> <table border="1"> <tr> <td height="360"><div id="test"></div> <img id="full_ima...

activerecord - Ruby, use of '?' - db or model method? -

activerecord - Ruby, use of '?' - db or model method? - i love using ? boolean fields, e.g, 'animals' table "alive?" obvious. define this? name db field when creating table migration(don't think so). or automatic boolean fields or have little method in active record model class animals says def alive? if live true else false end ? rails automatically generates method ending in ? each of fields in model. examples: animal #=> animal(id: integer, alive: boolean, name: string) = animal.new a.alive #=> nil a.alive? #=> false a.alive = true a.alive? #=> true a.name #=> nil a.name? #=> false a.name = "giraffe" a.name? #=> true also note can define own ? methods: class animal def young? created_at > 1.day.ago end end ruby-on-rails activerecord

css - h2 margin or padding is greater than h3 even if they have same font-size? -

css - h2 margin or padding is greater than h3 even if they have same font-size? - i'm running unusual problem. trying style h2 , h3 similar. identical on different pages. i've ready samples too, please take look: http://artvard.com/category.html h2 posttittle should have exact same margins -> http://artvard.com/main.html h3 posttittle. for unusual reason, have different margin/padding @ top, spacing looks different. i'm running out of ideas on how solve :( i see in css have set font sizes on <a> elements within post titles - means post titles still have differing font sizes, , different line heights, discrepancy in spacing coming from. try changing h3.posttittle a, h2.posttittle { color:#e95d01; font-size:16px; } to h3.posttittle, h2.posttittle { font-size: 16px; } h3.posttittle a, h2.posttittle { color:#e95d01; } css html-heading

iphone - Getting the width of a UIBarButtonSystemItem -

iphone - Getting the width of a UIBarButtonSystemItem - is there way programmatically width of uibarbuttonsystemitem. width property returns 0 scheme items. in particular, want exact width of editbuttonitem property of uiviewcontroller. on iphone value 44 bit bigger on ipad , cannot nail down. i got reply link @jobu1324 left of comment. here code used. uibarbuttonitem *item = /*...*/; uiview *view = [item valueforkey:@"view"]; cgfloat width = view? [view frame].size.width : (cgfloat)0.0; iphone objective-c ios uiviewcontroller uibarbuttonitem

java - Determining a Private Key (Diffie-Hellman) -

java - Determining a Private Key (Diffie-Hellman) - i've been given challenge , has testing friend's encryption process. it's diffie-hellman exchange process, , here known variables / constants: p , g my generated private key (variable) my generated public key(variable) the recipients public key (constant). when looking @ private key - p , g both within it. example, first 'x' bytes seem have no relation anything, next 'y' bytes p , next 2 bytes static, , next 'z' bytes g , remainder variable. the process encrypt file, , send device, in turn decrypt - ideas of attack this: try duplicate secret shared key. problem here is fine long know generated private key, @ case - don't files he's given me. try find recipients private key. here, brute forcefulness way in - take forever unless had sort of supercomputer. are there other options @ when trying attack this? i should maintain mouth shut, chance interested in di...

Asp.net listview control -

Asp.net listview control - here using listbox populate info database. in listbox have 1 button , name of button delete. here using ajax. if click on delete button showing confirmation message " sure delete item". show confirmation message using ajax command , name "confirmbuttonextender". , attribute confirmtext="are sure want delete?". question how show message name of product "are sure want delete keyboard?" here instead of keyborad change, depend on selected item. how can it, please help me. here code : <td runat="server" id="action"> <asp:imagebutton id="ibtnedit" runat="server" commandname="edit" alternatetext="edit" tooltip="edit" imageurl="../images/icons/fugue/pencil.png" /> <asp:imagebutton id="ibtndelete" runat="server" commandname="delete" alternatetext="delete" tooltip="delete...

objective c - iPhone - UILabel containing text with multiple fonts at the same time -

objective c - iPhone - UILabel containing text with multiple fonts at the same time - i looking way utilize uilabel (or similar) display this: tom: message. it how it's done in illustration facebook app display "what's on mind?" messages. have suggestions how approach this? use 2 uilabel iboutlets, each different format (font/color/etc), desire.. move sec 1 on first based on first one's text ends. can via sizewithfont:forwidth:linebreakmode: alternatively, can subclass uilabel, , draw text in drawrect. if way, add together instance variable tell how much of string draw in 1 format, , draw rest in another. update: please see @aam's response below. of ios6 uilabel's can contain nsmutableattributedstring. when wrote this, not available. iphone objective-c uilabel

Kohana 3.1 orm. How to make this has_one relashionship? -

Kohana 3.1 orm. How to make this has_one relashionship? - i have 2 models: address , country . now, every address has 1 country. address model has: protected $_has_one = array('country' => array( 'model' => 'country', 'foreign_key' => 'code', )); i load address object: $addr = orm::factory('address', 1); $country = $addr->country->find(); but $country contains first record instead of related record country table. doing wrong here? if yes, what's right way? edit: table country has pk code , no fk. table address has pk id , fk country_code your has_one property should follows: protected $_has_one = array('country' => array( 'model' => 'country', 'foreign_key' => 'country_code', )); foreign key key in table of current model links primary key of related model. kohana kohana-orm

in Java what words cant we use inside a static method? -

in Java what words cant we use inside a static method? - i know cant utilize "this" within static method, because used point object , static methods called classes , not objects. is there else cant utilize within static method? you may not utilize instance members without instance ... that's mentioned ... java static

java - Using Quartz to Schedule Single Job Across Multiple Stateless App Servers -

java - Using Quartz to Schedule Single Job Across Multiple Stateless App Servers - i have layer of identical app servers behind load balancer. operational reasons have constraint application configuration on both app servers must identical nodes can added , removed. app servers share same database. app servers not/will not clustered. this has worked fine until now, have scheduled job executes on 1 of app servers. app servers run quartz , have same schedule running jobs. trigger fire on every app server, 1 app server execute job - race start , 1 starts, remaining app servers ignore job. thought here if lose app server, 1 run job instead, , if add together new app servers, take turn @ running jobs. i planning having 'job lock' table in database app servers read prior starting job , start if job 'unlocked'. app server makes update first table block others updating table running state/resetting @ end of job. before build this, i'd appreciate input more expe...

websphere mq - MQ java process taking 100% of CPU -

websphere mq - MQ java process taking 100% of CPU - following process in our linux server taking 100% of cpu java -dmqjms_log_dir=/opt/hd/ca/mars/tmp/logs/log -dmqjms_trace_dir=/opt/hd/ca/mars/tmp/logs/trace -dmqjms_install_path=/opt/isv/mqm/java com.ibm.mq.jms.admin.jmsadmin -v -cfg /opt/hd/ca/mars/mqm/data/jmsadmin.config i forcibly killed process , bounced mq don't see this. might reason happen? websphere-mq

winforms - c++ terminate process in window forms -

winforms - c++ terminate process in window forms - i want create windows forms app , want terminate programme it system("tskill process"); doesnt't work nor calling bat file doing operation i think have utilize terminateprocess() terminateprocess don't know set callback functions illustration in button code private: system::void button4_click(system::object^ sender, system::eventargs^ e) {} your callback looks in c++/cli assume using language. here's simple code kill process named myprocess array<process^>^ processes = process::getprocessesbyname("myprocess"); each (process^ p in processes) p->kill(); note may need run programme in administration mode. getprocessesbyname returns array of process, in case have several instances of myprocess can kill of them code. to utilize process class, sure add together in source file: using namespace system::diagnostics; winforms process c++-cli termina...

sql - iPhone + server + production-scale -

sql - iPhone + server + production-scale - okay, i'm developing iphone app plan take production , scale. i'm bit lost on whole subject. what improve use: core info or sqlite? (as local db) also, can sqlite used exclusively communicate remote server well? @ first thought i've been reading sqlite isn't great utilize on servers massive amount of hits. i've read oracle, mysql, or mssql may improve utilize on remote server , can communicate these servers via rest or soap. i plan able both read , write remote server. files transferred little info objects , pictures. speed of essence, i'd know options fastest routes. of course, want alternative scale , not have performance take much of nail well. on subject of core info vs sqlite see question. sqlite little , lite embedded sql database engine. it's not meant used in server environments. in general, it's not thought communicate straight on internet. it's more mutual...

xpath - selenium can't find the element -

xpath - selenium can't find the element - i'm testing webapp using selenium webdriver, driver can't find element, element's style set display:none visible,and i'm using xpath retrieve element here xpath by.xpath(".//*[@id='box']/table/tbody/tr[3]/td[4]") please advise. many thanks the tbody looks suspicious me. implicitly inserted browsers. don't know uses in html. therefore, seek xpath without it: by.xpath("//*[@id='box']/table/tr[3]/td[4]") if doesn't help: add together (x)html snippet? xpath

http headers - RestTemplate, PUT method, and Expect: 100-CONTINUE -

http headers - RestTemplate, PUT method, and Expect: 100-CONTINUE - i'm newbie resttemplate , how backed apache http classes. @ first thought needed manually create http headers expect: 100 go on in order start implementing set method using feature. in case server having dialogue responded correctly application never saw 100-continue response because 100-continue beingness ignored, such: [org.apache.commons.httpclient.httpmethodbase] - <'discarding unexpected response: http/1.1 100 continue>. wireshark confirms got 100 continue. i understand after doing reading somewhere must set default behavior of set method utilize expect: 100-continue header...and i'm starting think in springsource authored class. far can tell relevant apache abstract class is: org.apache.commons.httpclient.methods.expectcontinuemethod, has sublclass called org.apache.commons.httpclient.methods.putmethod, , in event has setter using expect: 100-continue in set requests. so leads 2 q...

css - IE6/7 bug: there are empty space without any logical reason -

css - IE6/7 bug: there are empty space without any logical reason - this unusual (well, many ie bugs lol). page here. fine modern browsers, there empty space between footer , bottom of page on ie6 , ie7. can't imagine reason. using ie7.js hack, doesn't help here. the screenshots: ie6 , ie7. css footer: #footer { background: url("images/footer_bg.png") repeat scroll 0 0 transparent; clear: both; color: #ffffff; float: left; font-family: 'special elite',arial,serif; font-size: 13px; line-height: 85px; margin-top: 90px; min-height: 85px; text-align: center; width: 100%; } any suggestions appreciated! remove float:left footer, then makes other browsers "collapse" top margin of #footer , if add together overflow: hidden #wrapper should create them even.. re:bug : widths ie6/7 triggering haslayout , instead of avoiding that, overflow on wrapper makes same at to the lowest degre...

iphone - Initializing NSMutableDictionary to create a filter -

iphone - Initializing NSMutableDictionary to create a filter - this continuation question had post yesterday: initializing nsmutabledictionary (it's stupid question, don't see i'm doing wrong.) i liked thought of having "all" listed in tableview pops when filter button pressed in order indicate no filter applied. info model class sorted correctly nsmutablearray so: nsarray *anarray = [dmgr.categorydictionary allkeys]; self.categoriesarray = [anarray sortedarrayusingselector:@selector(localizedcaseinsensitivecompare:)]; [self.categoriesarray insertobject:@"all" atindex:0]; // line causes crash but want add together "all" alternative categoriesarray show in uitableview. when seek run it, crashes @ line because of nsarrayi insertobject:atindex:]: unrecognized selector sent instance 0x59baba0 *** terminating app due uncaught exception 'nsinvalidargumentexception', reason: '-[__nsarrayi insertobject:at...

objective c - Static background for CGContext -

objective c - Static background for CGContext - this first question here, hello everyone. have spent time wrapping mind around next problem , not come solution. i'd happy if point me in right direction. i'm using cgcontext draw various layers of graphical representations of live info should refreshed @ reasonable framerate of @ to the lowest degree 50fps. want utilize static image background. re-drawing image using context every cycle slows downwards frame-rate. thought using uiimageview display image once. problem here want utilize blendmodes provided cgcontext in order accomplish more sophisticated overlays setting alpha-value each layer. since uiimageview displaying background image not part of context, it's not affected blendmodes. have thought how accomplish desired behavior without affecting frame-rate much? help. a phone call cgcontextdrawimage cgimageref the same size dimensions cgrect fast. setup cgimageref background image in code gets ...

Is it possible to use @Transational worked in Spring, Eclipselink &Tomcat environment? -

Is it possible to use @Transational worked in Spring, Eclipselink &Tomcat environment? - hiall, confused eclipselink tomcat documentation saying: limitations jpa: no @persistencecontext injection of container managed persistence unit available - utilize persistence.createentitymanagerfactory(jta_pu_name) and, question&answer: but typical jpa configuration in spring looks this, don't need create entitymanager manually : @persistencecontext private entitymanager em; so, question is: may utilize annotation @persistencecontext entitymanager sure created automatically , dont need create manually? currently @transactional annotation not work , i'm afraid because of creating entity manager manually! please, need help. eclipselink documentation says @persistencecontext not handled tomcat on own. however, if utilize spring, @persistencecontext handled spring, can utilize it. see also: 13.5 jpa spring tomcat transactions an...

actionscript 3 - AS3 alternatives to *_exclude.xml files, loading class definitions dynamically -

actionscript 3 - AS3 alternatives to *_exclude.xml files, loading class definitions dynamically - i've been banging head against wall couple days , hoping can point me in right direction. working in very big flash application, in as2/cs3 have setup following: root.swf -- modules ---- code_a.swf ---- code_b.swf -- views ---- view_a.swf ---- view_b.swf using _exclude.xml files, exclude classes defined in code_a , code_b ouptut .swf of view_a , view_b . root.swf responsible loading code modules before view_a or view_b , ensuring class definitions view_a , view_b depended on existed. the problem we've migrated using actionscript 3/cs5. *_exclude.xml files no longer exist. same functionality above, i've tried following: my setup looks like: root.swf -- modules ---- class_a.as ---- class_b.as -- views ---- view_a.swf ---- view_b.swf use mxmlc compile root.swf , view_a.swf , view_b.swf , passing -externs alternative specify classes loaded ext...

How to crop a region selected with mouse click, using Python Image Library? -

How to crop a region selected with mouse click, using Python Image Library? - is there way select part in image mouse click , crop these part using python pil ? how can it? thanks the pil library provides no gui code --what asking application gui. i'd suggest using tkinter + pil, there no way trivial - have handle mouse clicks, create rectangle object tracking it, have way "reset" rectangle, , on. unfortunatelly canvas tkinter widget used draw things on poorly documented - have read trough here: http://www.pythonware.com/library/tkinter/introduction/canvas.htm bellow there illustration code reads image file disk , draws on tkinter window. can see, here object juggling right. import tkinter import image, imagetk, imagedraw image_file = "svg.png" w = tkinter.tk() img = image.open(image_file) width, height = img.size ca = tkinter.canvas(w, width=width, height=height) ca.pack() photoimg = imagetk.photoimage("rgb", img.size) pho...

BASH: Shell Script as Init Script -

BASH: Shell Script as Init Script - i have shell script calls java jar file , runs application. there's no way around this, have work have. when execute shell script, outputs application status , sits there (pretty much console); when happens programme updates screen. normal non daemonized/backgrounded process. way out of ctrl-c, ends process altogether. know around doing path_to_shell_script/script.sh & , background session (i utilize nohup if wanted logout). my issue is, don't know how set script init script. have of init script written, when seek daemonize it, doesn't work. i've got working, however, when run initscript, spans same "console" on script, , sits there until nail ctrl-c. here's line in question: daemon ${basedir}/$prog && success || failure the problem can't background daemon ${basedir}/$prog part , think that's i'm running issue. has been successful @ creating init script shell script? sh...