Posts

javascript - How to add more than 2 views to a view stack? -

i have been having problems adding more 2 views stack through dashcode gui interface. have seen how programmatically, there way statically keep views within stack? i okay using different stack, problem there have add browser area , get's ugly , messy in editor. thanks help, connor you've figured out now, there subviews section of stacklayout's inspector. click on + button add view. (or click on - button remove view.) can move view order , down in order dragging , dropping them in inspector panel. hope helps!

c - Fastest way to find out minimum of 3 numbers? -

in program wrote, 20% of time being spent on finding out minimum of 3 numbers in inner loop, in routine: static inline unsigned int min(unsigned int a, unsigned int b, unsigned int c) { unsigned int m = a; if (m > b) m = b; if (m > c) m = c; return m; } is there way speed up? ok assembly code x86/x86_64. edit: in reply of comments: * compiler being used gcc 4.3.3 * far assembly concerned, beginner there. asked assembly here, learn how this. :) * have quad-core intel 64 running, mmx/sse etc. supported. * it's hard post loop here, can tell it's heavily optimized implementation of levenshtein algorithm. this compiler giving me non-inlined version of min: .globl min .type min, @function min: pushl %ebp movl %esp, %ebp movl 8(%ebp), %edx movl 12(%ebp), %eax movl 16(%ebp), %ecx cmpl %edx, %eax jbe .l2 movl %edx, %eax .l2: cmpl %ecx, %eax jbe .l3 movl %ecx, %eax .l3: ...

continuous integration - How to add revision numbers in the title of e-mail published by cruisecontrol.NET? -

this question should ask year earlier. back day, setup cruisecontrol.net 1.4.2.14 our continuous integration system. wanted add source revision number , revision number of binary built. however, since restarted automatically if of external files , environment variable including ccnet.config modified, can't find way edit title of build informing e-mail while not making cruisecontrol.net restart. somehow solved problem in crapy way, not worth mention. time make things right. any appreciated. in advance. it not totally clear want do, can extract revision information xml (here subversion): <!-- extract subversion revision information xml. --> <target name="revisionstamp"> <property name="_target" value="${tmpdir}/svn.xml"/> <exec program="${svn}" output="${_target}"> <arg value="info"/> <arg value="--xml"/> <ar...

vb.net - When catching a general exception, how can I determine the original exception type? -

when catching exception in .net, can have many type-specific exception blocks needed. try have @ least 1 "general" exception catch block. there way type of "real" exception thrown caught generic exception handler, perhaps using reflection? for example, if have catch ex system.servicemodel.faultexception(of invaliduser) processmoduleloadexception(me, ex) catch ex system.servicemodel.faultexception(of sqlexceptions) processmoduleloadexception(me, ex) catch ex system.servicemodel.faultexception(of datanullreference) processmoduleloadexception(me, ex) catch ex system.servicemodel.faultexception processmoduleloadexception(me, ex) catch ex exception processmoduleloadexception(me, ex) (i have broken them out debugging, though same thing each exception). in short, in "catch ex system.servicemodel.faultexception" want examine "ex" , base "real" type of exception, either type (mostly debugging can add catch bl...

java - Missing start boundary Exception when reading messages with an attachment file -

i don't know why i'm getting following exception when reading mail attachment file mail server: exception in thread "main" javax.mail.messagingexception: missing start boundary @ javax.mail.internet.mimemultipart.parsebm<mimemultipart.java:872) @ javax.mail.internet.mimemultipart.parse<mimemultipart.java:493) @ javax.mail.internet.mimemultipart.getcount<mimemultipart.java:240) @ getparts.handlemultipart(getparts.java:57) @ getparts.main(getparts.java:42) the file i'm using read messages is: import java.io.*; import java.util.properties; import javax.mail.*; import javax.mail.internet.*; public class getparts { public static void main (string args[]) throws exception { string host = args[0]; string username = args[1]; string password = args[2]; // session properties props=new properties(); props.put("mail.mime.multipart.ignoremissingboundaryparamete",true); ...

objective c - regarding iTunes & iPhone simulator -

this question has answer here: how load photos , videos iphone simulator 4.0 3 answers i want know how can synchronize images, music & videos through itunes iphone simulator. if search forum you'll find more 1 discussion this. this post comprehensive. ultimately, media stored in ~/library/application support/iphone simulator/user/media. there not seem way of syncing itunes, various people have written scripts transfer files.

Rails Search Across Multiple Models -

i have issue. have show view acts dashboard , brings in records other models , models associated that. have simple search form working fine search through 1 model, don't know how have through associated models well. don't think full text search necessary , not sure how work because don't want going search across whole site. thanks companies/show/1 <div id="form"> <div class="search"> <% form_tag battalion_company_path, :method => :get %> <p> <%= text_field_tag :search, params[:search] %> <%= submit_tag "search", :name => nil %> </p> <% end %> </div> </div> <div id="bc_box"> <% @soldiers.each |soldier| %> <div id="bc_focus"> <div class="right"> <%= link_to image_tag("../images/buttons/info.png", :border=>0), battalion_company_soldier_path(@battalion, @company,soldier) %>...