Posts

c++ - Can I build a shared library by linking static libraries? -

c++ - Can I build a shared library by linking static libraries? - i have bunch of static libraries (*.a), , want build shared library (*.a) link against static libraries (*.a). how can in gcc/g++? thanks! you can (just extract .o files , link them -shared create .so ), whether works, , how works, depends on platform , whether static library compiled position-independent code (pic). on platforms (e.g. x86_64), non-pic code not valid in shared libraries , not work (actually think linker reject create .so ). on other platforms, non-pic code work in shared libraries, in-memory re-create of library not sharable between different programs using or different instances of same program, result in huge memory bloat. c++ c gcc shared-libraries static-libraries

Ruby on rails, form isn't passing part of a parameter -

Ruby on rails, form isn't passing part of a parameter - i'm trying invite new users web application. have next code: = f.fields_for(:memberships, membership.new(:user => user.new( :account => account.new( :invited_by => current_profile))), :child_index => 'new_membership') |ff| = ff.fields_for :user |user_fields| = user_fields.fields_for :account |account_fields| = account_fields.hidden_field :invited_by_id %div{:class => "label_top field"} = account_fields.label :email - if account_fields.object.new_record? = account_fields.text_field :email - else = account_fields.object.email %div{:class => "label_top field"} = user_fields.label :first_name = user_fields.text_field :first_name %div{:class => "label_top field"} ...

automated conversion Mysql Table into an XML-File - Preserve hierarchy -

automated conversion Mysql Table into an XML-File - Preserve hierarchy - i want convert lines of table xml hierarchial structure. mysql-table structured this: ---table construction create table if not exists `carrier_template_helper` ( `carrier_id` int(5) not null default '0', `tarifs_v` int(10) not null default '0', `customer_f` varchar(30) not null, `templates_f` varchar(30) not null, `page` int(2) not null default '1', `customer_f_contains_str` varchar(100) not null, replace_str varchar(100) not null, add_str_before varchar(100) not null, add_str_after varchar(100) not null, call_method varchar(50) not null, font_size float not null default '8', add_xy varchar(10) not null default '0:0', key carrier_id ( carrier_id , tarifs_v , customer_f , templates_f ) ) engine=myisam default charset=latin1; insert `carrier_template_helper` (`carrier_id`, `tarifs_v`, `customer_f`, `templates_f`, `pag...

.net - How do I launch a .pdf programmatically? -

.net - How do I launch a .pdf programmatically? - i have .pdf help file , launch c++/cli application. currently following: system::diagnostics::process::start("iexplore", "c:\\mypdf.pdf"); ...which works has irritating side effect of opening in net explorer. there way launch in whatever windows uses open .pdf files? this allow scheme decide viewer use.. system::diagnostics::process::start("c:\\mypdf.pdf"); .net windows pdf c++-cli

firefox - CSS text-underline rendering difference between FF/IE and Chrome -

firefox - CSS text-underline rendering difference between FF/IE and Chrome - i have question. in next url have set of h1,h2 , p elements respective css styling. h1 element has text-decoration underline. http://nostalgia.mx/light2.html open site both firefox+ie , chrome , you'll notice profound differences: 1.- firefox+ie create underline proportional fontsize of element beingness underlined, smart. google keeps lean , un-proportional. 2.- firefox+ie 'fuse' or 'meld' text underline silhouette 1 single piece, nice. chrome on other hand not. ok. question is: is possible create chrome's ff/ie's? regards sotkra the phenomenon can observed in simple setting have element big font size , set text-decoration: underline on it. browsers implement in different ways regarding width of underline. there no way impact in css. css3 text draft has nil this, though has properties affecting other features of underlining. in discussions, a prop...

c# - Bogus (?) File Not Found error when trying to do client SharePoint coding -

c# - Bogus (?) File Not Found error when trying to do client SharePoint coding - i getting think bogus "file not found" error when simple sharepoint 2010 client coding. not i'm building wrong cpu type or wrong .net version. (i'm building "any cpu" or "x64" , .net 3.5.) copied microsoft.sharepoint*.dlls server , set them in c:\program files\common files\microsoft shared\web server extensions\14\isapi. (i've tried other folders too.) opened visual studio 2010 project, right-clicked on references, clicked browse tab , added 1 or of dlls (i should need microsoft.sharepoint.dll.) simple programme seek run: using system; using system.collections.generic; using system.linq; using system.text; using microsoft.sharepoint; namespace spliststoconsole { class programme { static void main( string[] args ) { using ( spsite sc = new spsite( "http://orsandbox01/sitepages/home.aspx" ) ) { spwe...

java - Debugging with Tomcat -

java - Debugging with Tomcat - i trying test (spring-based) war wrote , deploying tomcat_home/webapps/ , starting tomcat. after min or obvious war not running (because should consuming messages off activemq queue...and not). @ standard output console , see: info: deploying web application archive optimizer.war log4j:warn no appenders found logger (org.springframework.web.context.contextloader). 23 [thread-2] info org.apache.camel.spring.handler.camelnamespacehandler - osgi environment not detected. jan 19, 2012 10:54:20 org.apache.catalina.core.standardcontext startinternal severe: error listenerstart jan 19, 2012 10:54:20 org.apache.catalina.util.sessionidgenerator createsecurerandom info: creation of securerandom instance session id generation using [sha1prng] took [184] milliseconds. jan 19, 2012 10:54:20 org.apache.catalina.core.standardcontext startinternal severe: context [/optimizer] startup failed due previous errors here log4j.properties file: log4j.rootlogge...