unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Is is possible to combine a series of PDFs into one using Ruby? === I have a series of PDFs named sequentially like so: * 01_foo.pdf * 02_bar.pdf * 03_baz.pdf * etc. Using Ruby, is it possible to combine these into one big PDF while keeping them in sequence? I don't mind installing any necessary gems to do the job. If this isn't possible in Ruby, how about another language? No commercial components, if possible.
0
[ 2, 25, 25, 938, 20, 12287, 21, 231, 16, 13, 11124, 18, 77, 53, 568, 10811, 60, 800, 3726, 3726, 31, 57, 21, 231, 16, 13, 11124, 18, 377, 1353, 5495, 10107, 102, 101, 86, 45, 1637, 13, 3026, 1, 4120, 111, 9, 11124, 1637, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MVC C# custom MvcRouteHandler - How to? === Does anyone have experiences in providing a custom MvcRouteHandler? In my application I'd like to implement a globalization-pattern like _http://mydomain/en/about_ or _http://mydomain/de/about_. As for persistance, I'd like to have a cookie read as soon as a request arrives and if there is a language setting in this cookie apply it (so a user arriving at _http://mydomain/_ would be transferred to _http://mydomain/en/_ for example). If there is no cookie present, I'd like to get the first language the browser supports, apply this one and store it in this cookie. I guess this can't be done with the standard routing mechanism mvc provides in it's initial project template. In a newsgroup I got the tip to have a look at the MvcRouteHandler and implement my own. But its hard to find a sample on how to do that. Any ideas? Thanks a lot in advance! Matthias
0
[ 2, 307, 8990, 272, 5910, 5816, 307, 8990, 20179, 3203, 1252, 13, 8, 184, 20, 60, 800, 3726, 3726, 630, 1276, 57, 5513, 19, 2674, 21, 5816, 307, 8990, 20179, 3203, 1252, 60, 19, 51, 3010, 31, 22, 43, 101, 20, 8713, 21, 27175, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I return the content of an XML field as a recordset? === Say I've got this table (SQL Server 2005): Id => integer MyField => XML <b>Id MyField</b> 1 < Object>< Type>AAA< /Type>< Value>10< /Value>< /Object>< Object>< Type>BBB< /Type><Value>20< /Value>< /Object> 2 < Object>< Type>AAA< /Type>< Value>15< /Value>< /Object> 3 < Object>< Type>AAA< /Type>< Value>20< /Value>< /Object>< Object>< Type>BBB< /Type>< Value>30< /Value>< /Object> I need a TSQL query which would return something like this: Id AAA BBB 1 10 20 2 15 NULL 3 20 30
0
[ 2, 184, 92, 31, 788, 14, 2331, 16, 40, 23504, 575, 28, 21, 742, 1198, 60, 800, 3726, 3726, 395, 31, 22, 195, 330, 48, 859, 13, 5, 18, 22402, 8128, 812, 6, 45, 4924, 800, 1, 13820, 51, 1109, 800, 1, 23504, 13, 1, 220, 1, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding a SVN repository in Eclipse === I'm trying to add an svn repository to eclipse. I've installed subclipse, and it seems to be working fine. But, when I try to "add a new SVN repository", I input this, for example: *http://svn.python.org/projects/peps/trunk* I get this: *Error validating location: "org.tigris.subversion.javahl.ClientException: RA layer request failed svn: OPTIONS of 'http://svn.python.org/projects/peps/trunk': could not connect to server (http://svn.python.org) " Keep location anyway?* I know that my eclipse can connect to the 'net because I downloaded subclipse earlier (I had to change my proxy settings). I get a similar message for other SVN locations I've tried to add. Anyone have any solutions?
0
[ 2, 4721, 21, 13, 18, 16578, 24869, 19, 11652, 800, 3726, 3726, 31, 22, 79, 749, 20, 3547, 40, 13, 18, 16578, 24869, 20, 11652, 9, 31, 22, 195, 4066, 972, 150, 6013, 870, 15, 17, 32, 2206, 20, 44, 638, 1123, 9, 47, 15, 76, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reverse DNS lookup in perl === How do I perform a reverse DNS lookup, that is how do I resolve an IP address to its DNS hostname in Perl?
0
[ 2, 7006, 13, 43, 2172, 361, 576, 19, 416, 255, 800, 3726, 3726, 184, 107, 31, 2985, 21, 7006, 13, 43, 2172, 361, 576, 15, 30, 25, 184, 107, 31, 9854, 40, 15735, 3218, 20, 82, 13, 43, 2172, 2015, 7259, 19, 416, 255, 60, 3, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
AJAX - How to Pass value back to server === First time working with UpdatePanels in .NET. I have an updatepanel with a trigger pointed to an event on a FormView control. The UpdatePanel holds a ListView with related data from a separate database. When the UpdatePanel refreshes, it needs values from the FormView control so that on the server it can use them to query the database. For the life if me, I can't figure out how to get those values. The event I'm triggering from has them, but I want the updatepanel to refresh asynchronously. How do I pass values to the load event on the panel? Googled this ad nauseum and can't seem to get to an answer here. A link or an explanation would be immensely helpful.. Jeff
0
[ 2, 20624, 13, 8, 184, 20, 1477, 1923, 97, 20, 8128, 800, 3726, 3726, 64, 85, 638, 29, 11100, 3206, 6798, 19, 13, 9, 2328, 9, 31, 57, 40, 11100, 3206, 532, 29, 21, 7286, 2489, 20, 40, 807, 27, 21, 505, 4725, 569, 9, 14, 11100...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What does the option "convert to web application" do if I select it in visual studio? === What are the advantages to converting my site to a web application?
0
[ 2, 98, 630, 14, 4255, 13, 7, 1126, 8122, 20, 2741, 3010, 7, 107, 100, 31, 5407, 32, 19, 3458, 1120, 60, 800, 3726, 3726, 98, 50, 14, 14683, 20, 19583, 51, 689, 20, 21, 2741, 3010, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
TileBrush for SIlverlight 2? === As you may know, Silverlight does not have the TileBrush found in WPF. Is there a workaround to do tiling?
0
[ 2, 13, 9802, 20632, 26, 1172, 3130, 172, 60, 800, 3726, 3726, 28, 42, 123, 143, 15, 1172, 3130, 630, 52, 57, 14, 13, 9802, 20632, 216, 19, 619, 7721, 9, 25, 80, 21, 170, 10037, 20, 107, 9189, 68, 60, 3, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Migrating from MySQL to arbitrary standards-compliant SQL2003 server === Is there an incantation of mysqldump or a similar tool that will produce a piece of SQL2003 code to create and fill the same databases in an arbitrary SQL2003 compliant RDBMS? (The one I'm trying right now is MonetDB)
0
[ 2, 28749, 37, 51, 18, 22402, 20, 17237, 3364, 8, 25509, 4444, 255, 3325, 8128, 800, 3726, 3726, 25, 80, 40, 19, 1245, 8593, 16, 51, 18, 22402, 43, 11134, 54, 21, 835, 5607, 30, 129, 2213, 21, 1855, 16, 4444, 255, 3325, 1797, 20,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Faces Servlet threw exception java.lang.StackOverflowError === Ok, I've run across my first StackOverflowError since joining this site, I figured this is a must post :-). My environment is Seam 2.0.1.GA, JBoss 4.2.2.GA and I'm using JSF. I am in the process of converting from a facelets view to JSP to take advantage of some existing JSP tags used on our existing site. I changed the faces-config.xml and the web.xml configuration files and started to receive the following error when trying to render a jsp page. Anyone have any thoughts? > 2008-09-17 09:45:17,537 DEBUG > [org.jboss.seam.contexts.FacesLifecycle] > Begin JSF request for /form_home.jsp > 2008-09-17 09:45:17,587 ERROR > [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[Faces > Servlet]] Servlet.service() for > servlet Faces Servlet threw exception > java.lang.StackOverflowError > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:210) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) > at org.apache.catalina.core.ApplicationHttpRequest.getAttribute(ApplicationHttpRequest.java:222) My faces-config.xml file is now empty with no FaceletsViewHandler: > &lt;?xml version="1.0" encoding="UTF-8"?&gt; > &lt;faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"&gt; > > &lt;/faces-config&gt; > And my Web.xml file: > &lt;?xml version="1.0"?&gt; > &lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"&gt; > &lt;!-- Ajax4jsf --&gt; > &lt;context-param&gt; > &lt;param-name&gt;org.richfaces.SKIN&lt;/param-name&gt; > &lt;param-value&gt;blueSky&lt;/param-value&gt; > &lt;/context-param&gt; > &lt;!-- Seam --&gt; > &lt;listener&gt; > &lt;listener-class&gt;org.jboss.seam.servlet.SeamListener&lt;/listener-class&gt; > &lt;/listener&gt; > > > &lt;filter&gt; > &lt;filter-name&gt;Seam Filter&lt;/filter-name&gt; > &lt;filter-class&gt;org.jboss.seam.servlet.SeamFilter&lt;/filter-class&gt; > &lt;/filter&gt; > > &lt;filter-mapping&gt; > &lt;filter-name&gt;Seam Filter&lt;/filter-name&gt; > &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt; > &lt;/filter-mapping&gt; > > &lt;servlet&gt; > &lt;servlet-name&gt;Seam Resource Servlet&lt;/servlet-name&gt; > &lt;servlet-class&gt;org.jboss.seam.servlet.SeamResourceServlet&lt;/servlet-class&gt; > &lt;/servlet&gt; > &lt;servlet-mapping&gt; > &lt;servlet-name&gt;Seam Resource Servlet&lt;/servlet-name&gt; > &lt;url-pattern&gt;/seam/resource/*&lt;/url-pattern&gt; > &lt;/servlet-mapping&gt; > &lt;!-- Seam end --&gt; > > &lt;!-- JSF --&gt; > &lt;context-param&gt; > &lt;param-name&gt;javax.faces.DEFAULT_SUFFIX&lt;/param-name&gt; > &lt;param-value&gt;.jsp&lt;/param-value&gt; > &lt;/context-param&gt; > > &lt;servlet&gt; > &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; > &lt;servlet-class&gt;javax.faces.webapp.FacesServlet&lt;/servlet-class&gt; > &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; > &lt;/servlet&gt; > &lt;servlet-mapping&gt; > &lt;servlet-name&gt;Faces Servlet&lt;/servlet-name&gt; > &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt; > &lt;/servlet-mapping&gt;
0
[ 2, 4904, 13, 10321, 1336, 3144, 5391, 8247, 9, 9949, 9, 25325, 2549, 9990, 29992, 800, 3726, 3726, 5854, 15, 31, 22, 195, 485, 464, 51, 64, 7566, 2549, 9990, 29992, 179, 3765, 48, 689, 15, 31, 5700, 48, 25, 21, 491, 678, 13, 45,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make Swing scroll with "ensureIndexIsVisible"? === When I run this code the selected item is not visible. I've already tried to run it in a separate thread with no luck. Searched for "java ensureIndexIsVisible" and tried all solutions proposed in the first 20 results. import javax.swing.JFrame; import java.awt.Container; import javax.swing.JList; import javax.swing.ListSelectionModel; import javax.swing.JScrollPane; import java.awt.Dimension; public class ScrollList extends JFrame { int defaultValue; ScrollList() { Container cp = getContentPane(); JList list = createList(); defaultValue = 20; cp.add(createScrollPane(list)); pack(); setVisible(true); list.ensureIndexIsVisible(defaultValue); } JList createList() { Integer[] model = new Integer[73]; JList list = new JList(model); for (int i = 1; i < model.length; i++) model[i] = i; list.setSelectedIndex(defaultValue); return list; } JScrollPane createScrollPane(JList list) { JScrollPane s = new JScrollPane(createList()); s.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); s.setPreferredSize(new Dimension(100, 200)); return s; } public static void main(String[] args) { new ScrollList(); } } Thanks for helping in advance!
0
[ 2, 184, 20, 233, 5587, 12159, 29, 13, 7, 219, 5838, 25671, 403, 3762, 3426, 7, 60, 800, 3726, 3726, 76, 31, 485, 48, 1797, 14, 1704, 9101, 25, 52, 4560, 9, 31, 22, 195, 614, 794, 20, 485, 32, 19, 21, 1725, 9322, 29, 90, 5419...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When should I use a struct instead of a class? === MSDN says that you should use structs when you need lightweight objects. Are there any other scenarios when a struct is preferable over a class?
0
[ 2, 76, 378, 31, 275, 21, 13, 10346, 700, 16, 21, 718, 60, 800, 3726, 3726, 4235, 43, 103, 898, 30, 42, 378, 275, 13, 10346, 18, 76, 42, 376, 13613, 3916, 9, 50, 80, 186, 89, 19611, 76, 21, 13, 10346, 25, 6369, 579, 84, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
OpenCV Wrappers for DotNet === I've seen there are a few of them. [opencvdotnet][1], [SharperCV][2], [EmguCV][3], [One on Code Project][4]. Does anyone have any experience with any of these? I played around with the one on Code Project for a bit, but as soon as I tried to do anything complicated I got some nasty uncatchable exceptions (i.e. Msgbox exceptions). Cross platform (supports Mono) would be best. [1]: http://code.google.com/p/opencvdotnet/ [2]: http://www.cs.ru.ac.za/research/groups/SharperCV/ [3]: http://sourceforge.net/projects/emgucv [4]: http://www.codeproject.com/KB/cs/Intel_OpenCV.aspx#install
0
[ 2, 368, 12732, 28051, 18, 26, 14123, 2328, 800, 3726, 3726, 31, 22, 195, 541, 80, 50, 21, 310, 16, 105, 9, 636, 10157, 12732, 12527, 2328, 500, 2558, 165, 500, 15, 636, 23646, 106, 12732, 500, 2558, 135, 500, 15, 636, 1503, 3073, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
FindControl() method throws ArithmeticException? === I have a line of C# in my ASP.NET code behind that looks like this: DropDownList ddlStates = (DropDownList)fvAccountSummary.FindControl("ddlStates"); The DropDownList control is explicitly declared in the markup on the page, not dynamically created. It is inside of a FormView control. When my code hits this line, I am getting an ArithmeticException with the message "Value was either too large or too small for an Int32." This code has worked previously, and is in production right now. I fired up VS2008 to make some changes to the site, but before I changed anything, I got this exception from the page. Anyone seen this one before?
0
[ 2, 477, 12898, 5, 6, 2109, 13566, 21211, 10066, 872, 60, 800, 3726, 3726, 31, 57, 21, 293, 16, 272, 5910, 19, 51, 28, 306, 9, 2328, 1797, 439, 30, 1879, 101, 48, 45, 2804, 2968, 5739, 13, 43, 8643, 3859, 18, 800, 13, 5, 12361,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Flush disk cache from Windows CLI === Does anyone know how to flush the disk cache data from the cache manager for the current directory (or any given file or directory, for that matter), from a Windows command line?
0
[ 2, 15017, 8582, 16522, 37, 1936, 19391, 800, 3726, 3726, 630, 1276, 143, 184, 20, 15017, 14, 8582, 16522, 1054, 37, 14, 16522, 1382, 26, 14, 866, 16755, 13, 5, 248, 186, 504, 3893, 54, 16755, 15, 26, 30, 1161, 6, 15, 37, 21, 193...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Can anyone recommend a simple Java logging framework? === I've evaluated Log4j and Commons Logging, along with Java's built-in logging, however frankly all of these frameworks seem over-engineered, and over-complicated, requiring excessive configuration just to achieve basic functionality. Is anyone aware of a simple, yet flexible open source Java logging framework?
0
[ 2, 92, 1276, 12360, 21, 1935, 8247, 13, 13919, 6596, 60, 800, 3726, 3726, 31, 22, 195, 19018, 6738, 300, 728, 17, 8322, 13, 13919, 15, 303, 29, 8247, 22, 18, 392, 8, 108, 13, 13919, 15, 207, 22662, 65, 16, 158, 6596, 18, 2260, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I install modperl under OS X Leopard's default Apache 2? === My attempts to install modperl under the default vanilla Leopard Apache 2 have failed and all I can find online are variations on [this][1]: [1]: http://www.nabble.com/Building-mod_perl2-on-Leopard-td13682685.html
0
[ 2, 184, 107, 31, 16146, 7226, 1432, 255, 131, 13, 759, 993, 15446, 22, 18, 12838, 17140, 172, 60, 800, 3726, 3726, 51, 3265, 20, 16146, 7226, 1432, 255, 131, 14, 12838, 23704, 15446, 17140, 172, 57, 1702, 17, 65, 31, 92, 477, 2087...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to compile Cairo for Visual C++ 2008 (Express edition) === Most precompiled Windows binaries are made with the MSYS+gcc toolchain. It uses MSCVRT runtime, which is incompatible with Visual C++ 2005/2008. So, how to go about and compile Cairo 1.6.4 (or later) for Visual C++ only. Including dependencies (png,zlib,pixman).
0
[ 2, 184, 20, 26561, 11772, 26, 3458, 272, 20512, 570, 13, 5, 21230, 1322, 6, 800, 3726, 3726, 127, 782, 11103, 49, 1294, 1936, 4511, 11301, 50, 117, 29, 14, 4235, 93, 18, 2430, 263, 3384, 5607, 17317, 9, 32, 2027, 4235, 12732, 5256...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I erase my disk? (In a secure way) (Ubuntu) === I mean really erase. In a secure way. (It's Ubuntu)
2
[ 2, 184, 107, 31, 23593, 51, 8582, 60, 13, 5, 108, 21, 4315, 161, 6, 13, 5, 4502, 1020, 2473, 6, 800, 3726, 3726, 31, 884, 510, 23593, 9, 19, 21, 4315, 161, 9, 13, 5, 242, 22, 18, 287, 12968, 2473, 6, 3, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Save remove USB-Drive using Win32 API? === Anyone knows how to remove a USB drive using the win32 API? I do a lot of work on embedded systems and on one of these I have to copy my programs on a usb-stick an insert it into the target hardware. Since I mostly work on the console I don't like to use the mouse and click on the small task-bar icon hundret times a day. I'd love to write a little program to do exactly that so I can put it into my makefiles, but I haven't found any API call that does the same thing. Any ideas?
0
[ 2, 2079, 4681, 182, 220, 8, 14573, 568, 628, 3125, 21, 2159, 60, 800, 3726, 3726, 1276, 3620, 184, 20, 4681, 21, 182, 220, 1493, 568, 14, 628, 3125, 21, 2159, 60, 31, 107, 21, 865, 16, 170, 27, 12138, 1242, 17, 27, 53, 16, 158...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I compare two glob values in Oracle === I have two tables I would like to complare. One of the columns is type glob. I would like to do something like this: select key, glob_value source_table minus select key, glob_value target_table Unfortunately, Oracle can't perform minus operations on globs. How can I do this?
0
[ 2, 184, 107, 31, 11590, 81, 19060, 4070, 19, 15759, 800, 3726, 3726, 31, 57, 81, 7484, 31, 83, 101, 20, 6479, 531, 99, 9, 53, 16, 14, 7498, 25, 1001, 19060, 9, 31, 83, 101, 20, 107, 301, 101, 48, 45, 5407, 1246, 15, 19060, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you compare Websphere Commerce with the rest of the ecommerce tools available in the market? === All those familiar with websphere commerce will know that it is feature rich. It supports B2B, B2C and extended sites(which ATG doesn't) and what not. But it is complicated and on the performance and reliability front it still seems to leave a lot to be desired. Any opinions on which would be better for a high traffic site?
0
[ 2, 184, 107, 42, 11590, 2741, 14079, 5577, 29, 14, 760, 16, 14, 13, 62, 26470, 4672, 904, 19, 14, 1135, 60, 800, 3726, 3726, 65, 273, 3694, 29, 2741, 14079, 5577, 129, 143, 30, 32, 25, 1580, 2042, 9, 32, 6747, 334, 135, 220, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to model recurring events in a calendar application? === I'm building a group calendar application that needs to support recurring events, but all the solutions I've come up with to handle these events seem like a hack. I can limit how far ahead one can look, and then generate all the events at once. Or I can store the events as repeating and dynamically display them when one looks ahead on the calendar, but I'll have to convert them to a normal event if someone wants to change the details on a particular instance of the event. I'm sure there's a better way to do this, but I haven't found it yet. What's the best way to model recurring events, where you can change details of or delete particular event instances? (I'm using Ruby, but please don't let that constrain your answer. If there's a Ruby-specific library or something, though, that's good to know.)
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 1061, 11344, 963, 19, 21, 7036, 3010, 60, 800, 3726, 3726, 31, 22, 79, 353, 21, 214, 7036, 3010, 30, 2274, 20, 555, 11344, 963, 15, 47, 65, 14, 6776, 31, 22, 195, 340, 71, 29, 20, 3053, 158, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to extract TimeZone object from a String? === I have a database field that contains a raw date field (stored as character data), such as >Friday, September 26, 2008 8:30 PM Eastern Daylight Time I can parse this as a Date easily, with SimpleDateFormat DateFormat dbFormatter = new SimpleDateFormat("EEEE, MMMM dd, yyyy hh:mm aa zzzz"); Date scheduledDate = dbFormatter.parse(rawDate); What I'd like to do is extract a TimeZone object from this string. The default TimeZone in the JVM that this application runs in is GMT, so I can't use `.getTimezoneOffset()` from the `Date` parsed above (because it will return the default TimeZone). Besides tokenizing the raw string and finding the start position of the Timezone string (since I know the format will always be `EEEE, MMMM dd, yyyy hh:mm aa zzzz`) is there a way using the DateFormat/SimpleDateFormat/Date/Calendar API to extract a TimeZone object - which will have the same TimeZone as the String I've parsed apart with `DateFormat.parse()`? One thing that bugs me about `Date` vs `Calendar` in the Java API is that `Calendar` is supposed to replace `Date` in all places... but then they decided, oh hey let's still use `Date`'s in the `DateFormat` classes.
0
[ 2, 246, 161, 20, 10962, 85, 11661, 3095, 37, 21, 3724, 60, 800, 3726, 3726, 31, 57, 21, 6018, 575, 30, 1588, 21, 4333, 1231, 575, 13, 5, 16828, 43, 28, 925, 1054, 6, 15, 145, 28, 13, 1, 11612, 1185, 15, 299, 1262, 15, 570, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I make a ComboBox non-editable in .net? === I want to have a "select-only" ComboBox that provides a list of items for the user to select from. Typing should be disabled in the text portion of the ComboBox control. My initial Googling of this turned up an overly complex, misguided suggestion to capture the KeyPress event.
0
[ 2, 184, 92, 31, 233, 21, 22621, 5309, 538, 8, 69, 242, 579, 19, 13, 9, 2328, 60, 800, 3726, 3726, 31, 259, 20, 57, 21, 13, 7, 18, 16964, 8, 4965, 7, 22621, 5309, 30, 1927, 21, 968, 16, 3755, 26, 14, 4155, 20, 5407, 37, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitoring group membership in Active Directory more efficiently (C# .NET) === I've got an Active Directory synchronization tool (.NET 2.0 / C#) written as a Windows Service that I've been working on for a while and have recently been tasked with adding the ability to drive events based on changes in group membership. The basic scenario is that users are synchronized with a security database and, when group membership changes, the users need to have their access rights changed (ie. if I am now a member of "IT Staff" then I should automatically receive access to the server room, if I am removed from that group then I should automatically lose access to the server room). The problem is that when doing a DirectorySynchronization against groups you receive back the group that has had a member added/removed, and from there when you grab the members list you get back the list of all members in that group currently not just the members that have been added or removed. This leads me to quite an efficiency problem - that being that in order to know if a user has been added or removed I will have to keep locally a list of each group and all members and compare that against the current list to see who has been added (not in local list), and who has been deleted (in local list, not in current members list). I'm debating just storing the group membership details in a DataSet in memory and writing to disk each time I've processed new membership changes. That way if the service stops/crashes or the machine is rebooted I can still get to the current state of the Active Directory within the security database by comparing the last information on disk to that from the current group membership list. However, this seems terrible inefficient - running through every member in the group to compare against what is in the dataset and then writing out changes to disk each time there are changes to the list. Has anyone dealt with this scenario before? Is there some way that I haven't found to retrieve only a delta of group members? What would you do in this situation to ensure that you never miss any changes while taking the smallest performance hit possible?
0
[ 2, 8984, 214, 4363, 19, 1348, 16755, 91, 20519, 13, 5, 150, 5910, 13, 9, 2328, 6, 800, 3726, 3726, 31, 22, 195, 330, 40, 1348, 16755, 13, 16023, 1829, 5607, 13, 5, 9, 2328, 172, 9, 387, 13, 118, 272, 5910, 6, 642, 28, 21, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Converting floating point exceptions into C++ exceptions === Is it possible to convert floating point exceptions (signals) into C++ exceptions on x86 Linux? This is for debugging purposes, so nonportability and imperfection is okay (e.g., if it isn't 100% guaranteed that all destructors are called).
0
[ 2, 19583, 8319, 454, 13392, 77, 272, 20512, 13392, 800, 3726, 3726, 25, 32, 938, 20, 8406, 8319, 454, 13392, 13, 5, 11255, 192, 18, 6, 77, 272, 20512, 13392, 27, 993, 3274, 13024, 60, 48, 25, 26, 121, 16254, 2762, 4612, 15, 86, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can anyone reccomend a good modern alternative to bash? === Bash is getting a little long-in-the-tooth. Windows has PowerShell (formerly known as Monad), which is capable of dealing with richer objects than just lines of text. Is there any equivalent new powerful shell for Linux/Mac? It should be of similar expressiveness and functionality to Bash, but not afraid to tackle things in a different way.
0
[ 2, 92, 1276, 6042, 960, 2451, 21, 254, 773, 2676, 20, 13158, 60, 800, 3726, 3726, 13158, 25, 1017, 21, 265, 175, 8, 108, 8, 124, 8, 15808, 9, 1936, 63, 414, 15984, 13, 5, 6092, 167, 28, 9154, 43, 6, 15, 56, 25, 3868, 16, 574...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you switch on a string in XQuery? === I have an external variable coming in as a string and I would like to do a switch/case on it. How do I do that in xquery?
0
[ 2, 184, 107, 42, 5521, 27, 21, 3724, 19, 993, 8190, 93, 60, 800, 3726, 3726, 31, 57, 40, 4886, 7612, 880, 19, 28, 21, 3724, 17, 31, 83, 101, 20, 107, 21, 5521, 118, 10325, 27, 32, 9, 184, 107, 31, 107, 30, 19, 993, 8190, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
php $_GET sort problem === here is the input i am getting from my flash file process.php?Q2=898&Aa=Grade1&Tim=0%3A0%3A12&Q1=908&Bb=lkj&Q4=jhj&Q3=08&Cc=North%20America&Q0=1 and in php i use this code foreach ($_GET as $field => $label) { $datarray[]=$_GET[$field]; echo "$field :"; echo $_GET[$field];; echo "<br>"; i get this out put Q2 :898 Aa :Grade1 Tim :0:0:12 Q1 :908 Bb :lkj Q4 :jhj Q3 :08 Cc :North America Q0 :1 now my question is how do i sort it alphabaticaly so it should look like this Aa :Grade1 Bb :lkj Cc :North America Q0 :1 Q1 :908 and so on....before i can insert it into the DB
0
[ 2, 13, 26120, 5579, 1, 3060, 2058, 1448, 800, 3726, 3726, 235, 25, 14, 6367, 31, 589, 1017, 37, 51, 4433, 3893, 953, 9, 26120, 60, 1251, 135, 3726, 457, 3804, 1569, 6887, 3726, 8031, 165, 1569, 10002, 3726, 3621, 240, 58, 3621, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How should I write code with unique sections for differnt versions of .NET === My source code needs to support both .NET version 1.1 and 2.0 ... how do I test for the different versions & what is the best way to deal with this situation. I'm wondering if I should have the two sections of code inline, in separate classes, methods etc. What do you think?
0
[ 2, 184, 378, 31, 2757, 1797, 29, 2619, 4501, 26, 11394, 2877, 3281, 16, 13, 9, 2328, 800, 3726, 3726, 51, 1267, 1797, 2274, 20, 555, 156, 13, 9, 2328, 615, 137, 9, 165, 17, 172, 9, 387, 13, 9, 9, 9, 184, 107, 31, 1289, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dropping a connected user from an Oracle 10g database schema === Is there a better way to forcefully disconnect all users from an Oracle 10g database schema than restarting the Oracle database services? We have several developers using SQL Developer connecting to the same schema on a single Oracle 10g server. The problem is that when we want to drop the schema to rebuild it, inevitably someone is still connected and we cannot drop the database schema or the user while someone is still connected. By the same token, we do not want to drop all connections to other schemas because other people may still be connected and testing with those schemas. Anyone know of a quick way to resolve this?
0
[ 2, 6780, 21, 2587, 4155, 37, 40, 15759, 332, 263, 6018, 23874, 800, 3726, 3726, 25, 80, 21, 574, 161, 20, 25830, 29363, 65, 3878, 37, 40, 15759, 332, 263, 6018, 23874, 119, 22767, 68, 14, 15759, 6018, 687, 60, 95, 57, 238, 10168, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Sending Excel to user through ASP.NET === I have a web application that is able to open an excel template, push data into a worksheet and send the file to a user. When the file is opened a VBA Macro will refresh a pivot table based on the data that was pushed into the template. The user receives the standard File Open / Save dialog. In Internet Explorer (version 6), if the user chooses to save the file, when the file is opened the VBA code runs as expected, however if the user chooses 'Open' then the VBA fails with: Run-Time error 1004: Cannot open Pivot Table source file. In all other browsers both open and save work as expected. It is not in my power to upgrade to a newer version of IE (corporate bureaucracy); Is there anything Ican do to allow the users to open without first saving?
0
[ 2, 4907, 20700, 20, 4155, 120, 28, 306, 9, 2328, 800, 3726, 3726, 31, 57, 21, 2741, 3010, 30, 25, 777, 20, 368, 40, 20700, 22894, 15, 3250, 1054, 77, 21, 170, 17627, 17, 2660, 14, 3893, 20, 21, 4155, 9, 76, 14, 3893, 25, 520, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to tell if a Javascript function is defined === How do you tell if a function in Javascript is defined? I want to do something like function something_cool(text, callback){ alert(text); if( callback != null ){ callback(); }; } but that gets me a 'callback is not a function' error when callback is not defined.
0
[ 2, 184, 20, 494, 100, 21, 8247, 8741, 1990, 25, 2811, 800, 3726, 3726, 184, 107, 42, 494, 100, 21, 1990, 19, 8247, 8741, 25, 2811, 60, 31, 259, 20, 107, 301, 101, 1990, 301, 1, 17743, 5, 11969, 15, 645, 1958, 6, 1, 7863, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to learn server RESTful code? === I'm an experienced client application developer (C++/C#), but need to come up to speed quickly on writing server side code to perform RESTful interactions. Specifically, I need to learn how to exchange data with OpenSocial containers via the RESTful API.
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 2484, 8128, 760, 1566, 1797, 60, 800, 3726, 3726, 31, 22, 79, 40, 3882, 6819, 3010, 10058, 13, 5, 150, 20512, 118, 150, 5910, 6, 15, 47, 376, 20, 340, 71, 20, 1362, 976, 27, 1174, 8128, 270, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# component do not refresh when source code updated === I have a solution with many projects. One project contain few custom components. One of these components is used to display a title on an image. We can change the color of the background and many other things. The problem is IF I decide to change the default color of the background of the component or change the position of the text, thoses change won't reflect in all other projects of the solution where the component is used. I have compilent the project of the component and all other projects Reference the component by the Project. For the moment, what I have to do is to take off the component from the other project one by one and to add it back, then all is fine. Do you have a quick way to do it?
0
[ 2, 272, 5910, 5912, 107, 52, 24905, 76, 1267, 1797, 6372, 800, 3726, 3726, 31, 57, 21, 4295, 29, 151, 2314, 9, 53, 669, 3717, 310, 5816, 5090, 9, 53, 16, 158, 5090, 25, 147, 20, 3042, 21, 581, 27, 40, 1961, 9, 95, 92, 753, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Intro to maven === I have a sufficient amount of experience with ant so far, but I am interested in learning more about maven. It seems really opaque. Can you recommend a good introduction to maven -- I'm looking for as much clarity and simplicity as possible. I suppose I'm looking specifically for information on maven 2 if it comes down to it.
0
[ 2, 17386, 20, 1216, 3124, 800, 3726, 3726, 31, 57, 21, 6722, 2006, 16, 1496, 29, 40, 38, 86, 463, 15, 47, 31, 589, 3158, 19, 2477, 91, 88, 1216, 3124, 9, 32, 2206, 510, 29068, 9, 92, 42, 12360, 21, 254, 3445, 20, 1216, 3124, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Determine if a function exists in bash === Currently I'm doing some unit tests which are executed from bash. Unit tests are initialized, executed and cleaned up in a bash script. This script usualy contains an init(), execute() and cleanup() functions. But they are not mandatory. I'd like to test if they are or are not defined. I did this previously by greping and seding the source, but it seemed wrong. Is there a more elegant way to do this?
0
[ 2, 3746, 100, 21, 1990, 5636, 19, 13158, 800, 3726, 3726, 871, 31, 22, 79, 845, 109, 1237, 4894, 56, 50, 5557, 37, 13158, 9, 1237, 4894, 50, 2104, 1333, 15, 5557, 17, 13143, 71, 19, 21, 13158, 3884, 9, 48, 3884, 3820, 93, 1588, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I reimplement external pop-up jQuery code in Prototype? === I have this code in jQuery, that I want to reimplement with the prototype library. // make external links open in popups // this will apply a window.open() behaviour to all anchor links // the not() functions filter iteratively filter out http://www.foo.com // and http://foo.com so they don't trigger off the pop-ups jQuery("a[href='http://']"). not("a[href^='http://www.foo.com']"). not("a[href^='http://foo.com']"). addClass('external'); jQuery("a.external"). not('a[rel="lightbox"]').click( function() { window.open( jQuery(this).attr('href') ); return false; }); How can you iteratively filter an collection of elements using an equivalent to the not() operators listed here in jQuery?
0
[ 2, 184, 92, 31, 302, 8983, 413, 1130, 4886, 1675, 8, 576, 487, 8190, 93, 1797, 19, 7063, 60, 800, 3726, 3726, 31, 57, 48, 1797, 19, 487, 8190, 93, 15, 30, 31, 259, 20, 302, 8983, 413, 1130, 29, 14, 7063, 1248, 9, 12894, 233, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Collection initialization syntax in VB 2008? === I'm trying to determine if there's a way in Visual Basic 2008 (Express edition if that matters) to do inline collection initialization, a la JavaScript or Python: Dim oMapping As Dictionary(Of Integer, String) = {{1,"First"}, {2, "Second"}} I know VB2008 supports array initialization like this, but I can't seem to get it to work for collections... do I have the syntax wrong, or is it just not implemented?
0
[ 2, 1206, 2104, 1829, 22649, 19, 13, 20468, 570, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 3746, 100, 80, 22, 18, 21, 161, 19, 3458, 2125, 570, 13, 5, 21230, 1322, 100, 30, 4556, 6, 20, 107, 19, 1143, 1206, 2104, 1829, 15, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a tutorial that teaches common Ruby programming idioms used by experienced programmers, but may not be obvious to newcomers? === I'm looking for a Ruby's equivalent of [Code Like a Pythonista: Idiomatic Python][1] Desirable features: * easy to read * single document which covers all topics: tips, tricks, guidelines, caveats, and pitfalls * size less than a book * idioms should work out of the box for the standard distribution (`% sudo apt-get install ruby irb rdoc`) Please, put one tutorial per answer if possible, with an example code from the tutorial and its meaning. [1]: http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html
0
[ 2, 25, 80, 21, 29724, 30, 13022, 757, 10811, 3143, 28380, 18, 147, 34, 3882, 17968, 18, 15, 47, 123, 52, 44, 4674, 20, 14345, 18, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 10811, 22, 18, 4602, 16, 636, 9375, 101, 21, 20059...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
XML Notepad 2007 breaks MS Access 2007 Help === I tried scouring the web for help on this issue, but there are so many generic words in there, that I couldn't find much of anything that was relevant. I have MS Office 2007 installed on Vista and later installed XML Notepad 2007 (also a Microsoft product). It seems that the MS Access help system is using some sort of XML format that XML Notepad took control of. Now, whenever I open help in Access, the little help window opens and instead of displaying content, attempts to download the content with XML Notepad. Grrr.... Is there a fix for this?
0
[ 2, 23504, 1945, 8240, 624, 7947, 4235, 1381, 624, 448, 800, 3726, 3726, 31, 794, 11530, 10450, 14, 2741, 26, 448, 27, 48, 1513, 15, 47, 80, 50, 86, 151, 12733, 715, 19, 80, 15, 30, 31, 711, 22, 38, 477, 212, 16, 602, 30, 23, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multiple Forms and a Single Update,Will it work? === I need to make an application in .NET CF with different/single forms with a lot of drawing/animation on each forms.I would prefer to have a single update[my own for state management and so on] function so that i can manage the different states, so that my [J2ME Gaming Code] will work without much changes.I have came to some possible scenarios. Which of the one will be perfect? 1. Have a single form and add/delete the controls manually , then use any of the gamelooping tricks. 2. Create different forms with controls and call update and application.doEvents() in the main thread.[ while(isAppRunning){ UPDATE() Application.DoEvents() } 3. Create a update - paint loop on each of the form as required. 4. Any other ideas. Please give me suggestion regarding this
0
[ 2, 1886, 1997, 17, 21, 345, 11100, 15, 5580, 32, 170, 60, 800, 3726, 3726, 31, 376, 20, 233, 40, 3010, 19, 13, 9, 2328, 10084, 29, 421, 118, 14031, 1997, 29, 21, 865, 16, 3533, 118, 3443, 79, 857, 27, 206, 1997, 9, 49, 83, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to Autogenerate multiple getters/setters or accessors in Visual Studio === Before I start, I know there is this post and it doesn't answer my question: http://stackoverflow.com/questions/3017/how-to-generate-getters-and-setters-in-visual-studio In Visual Studio 2008 there is the ability to auto generate getters and setters (accessors) by right clicking on a private variable -> Refactor -> Encapsulate Field... This is great for a class that has 2 or 3 methods, but come on MS! When have you ever worked with a class that has a few accessors? I am looking for a way to generate ALL with a few clicks (Eclipse folks out there will know what I am talking about - you can right click a class and select 'generate accessors'. DONE.). I really don't like spending 20 minutes a class clicking through wizards. I used to have some .NET 1.0 code that would generate classes, but it is long gone and this feature should really be standard for the IDE.
0
[ 2, 184, 20, 3108, 17083, 1373, 1886, 164, 6052, 118, 18, 22323, 18, 54, 1381, 248, 18, 19, 3458, 1120, 800, 3726, 3726, 115, 31, 799, 15, 31, 143, 80, 25, 48, 678, 17, 32, 1437, 22, 38, 1623, 51, 1301, 45, 7775, 6903, 25325, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I export styles from a Microsoft Word 2003 .dot file? === I have an old .dot file with a few dozen styles in it. I need to place them into another .dot file that I received. Is there a better way to get them in there than manually recreating each style?
0
[ 2, 184, 107, 31, 7487, 6443, 37, 21, 7099, 833, 973, 13, 9, 12527, 3893, 60, 800, 3726, 3726, 31, 57, 40, 315, 13, 9, 12527, 3893, 29, 21, 310, 5550, 6443, 19, 32, 9, 31, 376, 20, 209, 105, 77, 226, 13, 9, 12527, 3893, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why I get an "Canvas does not allow drawing" while drawing in TeeChart ActiveX 5 component? === I'm using Steema's TeeChart ActiveX 5 component for an application in .NET C#. I do some drawings using the methods `Line()`, `Rectangle()` and `Circle()` through the "`Canvas`" property of the component. My code for drawing is called on every on every `OnBeforeDrawSeries()` and `OnAfterDraw()` events of the component. When there is only a few drawings, it works ok. But when the amount of drawing increases and after a certain number of redraws, I get an `MessageBox` with an error "**Canvas does not allow drawing**" and the **application quits**. I believe this is somehow due to "overloading" the component with drawing calls. **Am I using this functionality the wrong way, or can I consider this a BUG in the component?**
0
[ 2, 483, 31, 164, 40, 13, 7, 1245, 8471, 630, 52, 1655, 3533, 7, 133, 3533, 19, 10366, 5433, 38, 1348, 396, 331, 5912, 60, 800, 3726, 3726, 31, 22, 79, 568, 6621, 5996, 22, 18, 10366, 5433, 38, 1348, 396, 331, 5912, 26, 40, 301...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASPNET user does not have write access to Temporary ASP.NET Files === When I run my Visual Studio 2008 ASP.NET project (start without Debugging) on my XP Professional box, I get the following error: System.Web.HttpException: The current identity (machinename\ASPNET) does not have write access to 'C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files'. How do I resolve this?
0
[ 2, 28, 306, 2328, 4155, 630, 52, 57, 2757, 1381, 20, 4700, 28, 306, 9, 2328, 6488, 800, 3726, 3726, 76, 31, 485, 51, 3458, 1120, 570, 28, 306, 9, 2328, 669, 13, 5, 13680, 366, 121, 16254, 2762, 6, 27, 51, 23045, 736, 1649, 15,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to sort a flex datagrid according to multiple columns? === I have a datagrid, populated as shown below. When the user clicks on a column header, I would like to sort the rows using a lexicographic sort in which the selected column is used first, then the remaining columns are used in left-to-right order to break any ties. How can I code this? (I have one answer, which I'll post below, but it has a problem -- I'll be thrilled if somebody can provide a better one!) Here's the layout: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="onCreationComplete()"> <mx:Script source="GridCode.as" /> <mx:DataGrid id="theGrid" x="61" y="55" width="466" height="317"> <mx:columns> <mx:DataGridColumn dataField="A"/> <mx:DataGridColumn dataField="B"/> <mx:DataGridColumn dataField="C"/> </mx:columns> </mx:DataGrid> </mx:Application> And here's the backing code: import mx.collections.ArrayCollection; import mx.collections.Sort; import mx.collections.SortField; import mx.controls.dataGridClasses.DataGridColumn; import mx.events.DataGridEvent; public function onCreationComplete():void { var ar:ArrayCollection = new ArrayCollection(); var ob:Object; for( var i:int=0; i<20; i++ ) { ob = new Object(); ob["A"] = i; ob["B"] = i%3; ob["C"] = i%5; ar.addItem(ob); } this.theGrid.dataProvider = ar; }
0
[ 2, 184, 20, 2058, 21, 14409, 1054, 16375, 496, 20, 1886, 7498, 60, 800, 3726, 3726, 31, 57, 21, 1054, 16375, 15, 11111, 28, 1721, 1021, 9, 76, 14, 4155, 10840, 18, 27, 21, 4698, 157, 106, 15, 31, 83, 101, 20, 2058, 14, 11295, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Query a Table's Foreign Key relationships === For a given table 'foo', I need a query to generate a set of tables that have foreign keys that point to foo. I'm using Oracle 10G.
0
[ 2, 25597, 21, 859, 22, 18, 1228, 1246, 5833, 800, 3726, 3726, 26, 21, 504, 859, 13, 22, 4120, 111, 22, 15, 31, 376, 21, 25597, 20, 7920, 21, 309, 16, 7484, 30, 57, 1228, 5534, 30, 454, 20, 4310, 111, 9, 31, 22, 79, 568, 1575...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to best implement simple crash / error reporting? === What would be the best way to implement a simple crash / error reporting mechanism? Details: my app is **cross-platform (mac/windows/linux) and written in Python**, so I just need something that will send me a small amount of text, e.g. just a timestamp and a traceback (which I already generate and show in my error dialog). It would be fine if it could simply email it, but I can't think of a way to do this without including a username and password for the smtp server in the application... Should I implement a simple web service on the server side and have my app send it an HTTP request with the info? Any better ideas? Thanks! [1]: http://stackoverflow.com/questions/49251/crash-reporting-in-c-for-linux
0
[ 2, 184, 20, 246, 8713, 1935, 4597, 13, 118, 7019, 6670, 60, 800, 3726, 3726, 98, 83, 44, 14, 246, 161, 20, 8713, 21, 1935, 4597, 13, 118, 7019, 6670, 6534, 60, 3289, 45, 51, 4865, 25, 13, 1409, 7703, 8, 27035, 13, 5, 6893, 118...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I enumerate the properties of a javascript object? === I actually want to list all the defined variables and their values, but I've learned that defining a variable actually creates a property of the window object.
0
[ 2, 184, 107, 31, 26940, 62, 14, 3704, 16, 21, 8247, 8741, 3095, 60, 800, 3726, 3726, 31, 1121, 259, 20, 968, 65, 14, 2811, 12157, 17, 66, 4070, 15, 47, 31, 22, 195, 2691, 30, 14684, 21, 7612, 1121, 9695, 21, 1354, 16, 14, 1463...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
I need an algorithm for rendering soft paint brush strokes. === I have an array of mouse points, a stroke width, and a softness. I can draw soft circles and soft lines. Which algorithm should I use for drawing my array of points? I want crossed lines to look nice as well as end points.
0
[ 2, 31, 376, 40, 9083, 26, 15307, 1856, 5107, 7588, 16817, 9, 800, 3726, 3726, 31, 57, 40, 7718, 16, 7567, 819, 15, 21, 7080, 9456, 15, 17, 21, 1856, 720, 9, 31, 92, 2003, 1856, 7845, 17, 1856, 1560, 9, 56, 9083, 378, 31, 275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do you keep a personal wiki (TiddlyWiki) current and in sync in multiple locations? === If one were to use TiddlyWiki as a personal database for notes and code snippets, how would you go about keeping it in sync between multiple machines. Would a svn/cvs etc work. How would you handle merges?
0
[ 2, 184, 107, 42, 643, 21, 1319, 13, 17375, 13, 5, 13647, 43, 102, 17375, 6, 866, 17, 19, 6063, 150, 19, 1886, 4095, 60, 800, 3726, 3726, 100, 53, 46, 20, 275, 13, 13647, 43, 102, 17375, 28, 21, 1319, 6018, 26, 2434, 17, 1797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
In Delphi, how can you have currency data types shown in different currencies in different forms? === I need to write a Delphi application that pulls entries up from various tables in a database, and different entries will be in different currencies. Thus, I need to show a different number of decimal places and a different currency character for every Currency data type ($, Pounds, Euros, etc) depending on the currency of the item I've loaded. Is there a way to change the currency almost-globally, that is, for all Currency data shown in a form?
0
[ 2, 19, 23030, 15, 184, 92, 42, 57, 10507, 1054, 2551, 1721, 19, 421, 5087, 139, 22851, 19, 421, 1997, 60, 800, 3726, 3726, 31, 376, 20, 2757, 21, 23030, 3010, 30, 8071, 11399, 71, 37, 617, 7484, 19, 21, 6018, 15, 17, 421, 11399,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Measure Total Network Transfer Time from Servlets === How do i measure how long a client has to wait for a request. On the server side it is easy, through a filter for example. But if we want to take into accout the total time including latency and data transfer, it gets diffcult. is it possible to access the underlying socket to see when the request is finished? or is it neccessary to do some javascript tricks? maybe through clock synchronisation between browser and server? are there any premade javascripts for this task?
0
[ 2, 4058, 600, 982, 2617, 85, 37, 13, 10321, 11045, 800, 3726, 3726, 184, 107, 31, 4058, 184, 175, 21, 6819, 63, 20, 1760, 26, 21, 3772, 9, 27, 14, 8128, 270, 32, 25, 2010, 15, 120, 21, 11945, 26, 823, 9, 47, 100, 95, 259, 20...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the best method for storing SASS generated CSS in your application and souce control? === If you are using HAML and SASS in your Rails application, then any templates you define in public/stylesheet/*.sass will be compiled into *.css stylesheets. From your code, you use stylesheet\_link\_tag to pull in the asset by name without having to worry about the extension. Many people dislike storing generated code or compiled code in version control, and it also stands to reason that the public/ directory shouldn't contain elements that you don't send to the browser. What is the best pattern to follow when laying out SASS resources in your Rails project?
0
[ 2, 98, 25, 14, 246, 2109, 26, 25615, 9233, 18, 6756, 272, 18, 18, 19, 154, 3010, 17, 86, 291, 1105, 569, 60, 800, 3726, 3726, 100, 42, 50, 568, 4111, 255, 17, 9233, 18, 19, 154, 2240, 18, 3010, 15, 94, 186, 22894, 18, 42, 92...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I use classes from VisualBasic-Express in VBA for Excel or Access projects? === I saved my VB-Express code as .dll and registered it with regasm and made a .tlb file. But when I try to run a function from it in an Excel-modul I get: **Run-time error ‘453’: Can’t find DLL entry point RegisterServiceProcess in kernel32** What step did I miss?
0
[ 2, 184, 92, 31, 275, 2684, 37, 3458, 26467, 8, 21230, 19, 566, 969, 26, 20700, 54, 1381, 2314, 60, 800, 3726, 3726, 31, 4377, 51, 13, 20468, 8, 21230, 1797, 28, 13, 9, 43, 211, 17, 3801, 32, 29, 302, 6927, 79, 17, 117, 21, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How much success is there working on ASP.NET decompiled by Reflector? === I just finished a small project where changes were required to a pre-compiled, but no longer supported, ASP.NET web site. The code was ugly, but it was ugly before it was even compiled, and I'm quite impressed that everything still seems to work fine. It took some editing, e.g. to remove control declarations, as they get put in a generated file, and conflict with the decompiled base class, but nothing a few hours didn't cure. Now I'm just curious as to how many others have had how much success doing this. I would actually like to write a CodeProject article on defining, if not automating, the reverse engineering process.
0
[ 2, 184, 212, 1280, 25, 80, 638, 27, 28, 306, 9, 2328, 121, 11103, 49, 1294, 34, 6907, 248, 60, 800, 3726, 3726, 31, 114, 842, 21, 284, 669, 113, 1693, 46, 1390, 20, 21, 782, 8, 11103, 49, 1294, 15, 47, 90, 1045, 1827, 15, 28...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I make a Microsoft Word document “read only” within a SharePoint document library? === How do I make open “read only” the only option within a SharePoint document library? When using either Word 2003 or 2007 and saving the document as a template or modifying the file properties as “read only” doesn’t prevent modification of the file in a SharePoint document library. Modifying the document library permissions to only allow “read only” access doesn’t work either. What works is to use a SharePoint URL link list to access the files within an external server directory, but that defeats the use of a SharePoint document library.
0
[ 2, 184, 107, 31, 233, 21, 7099, 833, 4492, 13, 1, 10647, 104, 1, 363, 21, 1891, 3132, 4492, 1248, 60, 800, 3726, 3726, 184, 107, 31, 233, 368, 13, 1, 10647, 104, 1, 14, 104, 4255, 363, 21, 1891, 3132, 4492, 1248, 60, 76, 568, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to start a thread as a member of a C++ class? === I'm wondering the *best* way to start a pthread that is a member of a C++ class? My own approach follows as an answer...
0
[ 2, 246, 161, 20, 799, 21, 9322, 28, 21, 322, 16, 21, 272, 20512, 718, 60, 800, 3726, 3726, 31, 22, 79, 5712, 14, 1637, 4936, 2483, 161, 20, 799, 21, 351, 96, 10647, 30, 25, 21, 322, 16, 21, 272, 20512, 718, 60, 51, 258, 2141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Why does Imake interpret certain words in a Imakefile to numerical values? === I've found it very difficult to find any existing documentation on this. What I'm trying to find out is why Imake would interpret a word such as "unix", "linux" or "i386" to a number 1 in the produced Makefile? I'm sure it is a function of indicating whether or not your on that system or not. I've not been able to find that this is a #define set somewhere, so is this something that's built in?
0
[ 2, 483, 630, 31, 11115, 11584, 1200, 715, 19, 21, 31, 11115, 16877, 20, 16010, 4070, 60, 800, 3726, 3726, 31, 22, 195, 216, 32, 253, 1956, 20, 477, 186, 3149, 13945, 27, 48, 9, 98, 31, 22, 79, 749, 20, 477, 70, 25, 483, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I ignore files in subversion? === Also, how do I find files which are not under version control?
0
[ 2, 184, 107, 31, 7174, 6488, 19, 972, 10898, 60, 800, 3726, 3726, 67, 15, 184, 107, 31, 477, 6488, 56, 50, 52, 131, 615, 569, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
OpenID providers - what stops malicious providers? === So I like the OpenID idea. I support it on my site, and use it wherever it's possible (like here!). But I am not clear about one thing. A site that supports OpenID basically accepts any OpenID provider out there, right? How does that work with sites that want to reduce bot-signups? What's to stop a malicious OpenID provider from setting up unlimited bot IDs automatically? I have some ideas, and will post them as a possible answer, but I was wondering if anyone can see something obvious that I've missed?
0
[ 2, 368, 1340, 13488, 13, 8, 98, 6604, 24231, 13488, 60, 800, 3726, 3726, 86, 31, 101, 14, 368, 1340, 882, 9, 31, 555, 32, 27, 51, 689, 15, 17, 275, 32, 12680, 32, 22, 18, 938, 13, 5, 1403, 235, 187, 6, 9, 47, 31, 589, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I disable a button cell in a WinForms DataGrid? === I have a WinForms application with a DataGridView control and a column of DataGridViewButtonCell cells within that. When I click on one of these buttons, it starts a background task, and I'd like to disable the buttons until that task completes. I can disable the DataGridView control, but it gives no visual indication that the buttons are disabled. I want the user to see that the buttons are disabled, and to notice that the task has finished when the buttons are enabled again. Bonus points for a method that allows me to disable the buttons individually, so I can leave one of the buttons enabled while the task runs. (Note that I can't actually give out bonus points.)
0
[ 2, 184, 107, 31, 1460, 579, 21, 5167, 1667, 19, 21, 628, 4190, 18, 1054, 16375, 60, 800, 3726, 3726, 31, 57, 21, 628, 4190, 18, 3010, 29, 21, 1054, 16375, 4725, 569, 17, 21, 4698, 16, 1054, 16375, 4725, 811, 444, 9725, 2934, 363...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I supress the browser's authentication dialog? === My web application has a login page that submits authentication credentials via an AJAX call. If the user enters the correct username and password, everything is fine, but if not, the following happens: 1. The web server determines that although the request included a well-formed Authorization header, the credentials in the header do not successfully authenticate. 2. The web server returns a 401 status code and includes one or more WWW-Authenticate headers listing the supported authentication types. 3. The browser detects that the response to my call on the XMLHttpRequest object is a 401 and the response includes WWW-Authenticate headers. It then pops up an authentication dialog asking, again, for the username and password. This is all fine up until step 3. I don't want the dialog to pop up, I want want to handle the 401 response in my AJAX callback function. (For example, by displaying an error message on the login page.) Is there any way I can suppress the authentication dialog? In particular, can I suppress the Authentication Required dialog in Firefox 2 or later? Is there any way to suppress the Connect to _[host]_ dialog in IE 6 and later?
0
[ 2, 184, 92, 31, 2538, 5890, 14, 16495, 22, 18, 27963, 28223, 60, 800, 3726, 3726, 51, 2741, 3010, 63, 21, 6738, 108, 2478, 30, 12298, 18, 27963, 5059, 43, 10107, 18, 1197, 40, 20624, 645, 9, 100, 14, 4155, 8104, 14, 4456, 4155, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VB6/Microsoft Access/DAO to VB.NET/SQL Server... Got Advice? === I can make a DAO recordset in VB6/Access do anything - add data, clean data, move data, get data dressed in the morning and take it to school. But I don't even know where to start in .NET. I'm not having any problems retrieving data from the database, but what do real people do when they need to edit data and put it back? What's the easiest and most direct way to edit, update and append data into related tables in .NET and SQL Server?
0
[ 2, 13, 20468, 12626, 22019, 12980, 1381, 118, 17104, 20, 13, 20468, 9, 2328, 118, 18, 22402, 8128, 9, 9, 9, 330, 4978, 60, 800, 3726, 3726, 31, 92, 233, 21, 13, 17104, 742, 1198, 19, 13, 20468, 12626, 20604, 107, 602, 13, 8, 354...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the pros and cons of the various Python implementations? === I am relatively new to Python, and I have always used the standard cpython (v2.5) implementation. I've been wondering about the other implementations though, particularly Jython and IronPython. What makes them better? What makes them worse? What other implementations are there? I guess what I'm looking for is a summary and list of pros and cons for each implementation.
0
[ 2, 98, 50, 14, 895, 18, 17, 11608, 16, 14, 617, 20059, 6123, 18, 60, 800, 3726, 3726, 31, 589, 3109, 78, 20, 20059, 15, 17, 31, 57, 550, 147, 14, 1236, 9750, 93, 11570, 13, 5, 710, 135, 9, 264, 6, 6123, 9, 31, 22, 195, 74,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the best way to get the default printer in .Net 2.0 === I need to get the default printer name. I'll be using C# but I suspect this is more of a framework question and isn't language specific.
0
[ 2, 98, 22, 18, 14, 246, 161, 20, 164, 14, 12838, 12925, 19, 13, 9, 2328, 172, 9, 387, 800, 3726, 3726, 31, 376, 20, 164, 14, 12838, 12925, 204, 9, 31, 22, 211, 44, 568, 272, 5910, 47, 31, 7551, 48, 25, 91, 16, 21, 6596, 13...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
Help getting .Net WinForms apps to support Vista Aero Glass. === There are a couple of tricks for getting glass support for .Net forms. I think the original source for this method is here: <http://blogs.msdn.com/tims/archive/2006/04/18/578637.aspx> Basically: //reference Desktop Windows Manager (DWM API) [DllImport( "dwmapi.dll" )] static extern void DwmIsCompositionEnabled( ref bool pfEnabled ); [DllImport( "dwmapi.dll" )] static extern int DwmExtendFrameIntoClientArea( IntPtr hWnd, ref MARGINS pMarInset ); //then on form load //check for Vista if ( Environment.OSVersion.Version.Major >= 6 ) { //check for support bool isGlassSupported = false; DwmIsCompositionEnabled( ref isGlassSupported ); if ( isGlassSupported ) DwmExtendFrameIntoClientArea( this.Handle, ref margins ); ... //finally on print draw a black box over the alpha-ed area //Before SP1 you could also use a black form background That final step is the issue - any sub controls drawn over that area seem to also treat black as the alpha transparency mask. For instance a tab strip over the class area will have transparent text. Is there a way around this? Is there an easier way to do this? The applications I'm working on have to work on both XP and Vista - I need them to degrade gracefully. Is there any best practices here?
0
[ 2, 448, 1017, 13, 9, 2328, 628, 4190, 18, 4865, 18, 20, 555, 13520, 8914, 1350, 9, 800, 3726, 3726, 80, 50, 21, 1335, 16, 13747, 26, 1017, 1350, 555, 26, 13, 9, 2328, 1997, 9, 31, 277, 14, 501, 1267, 26, 48, 2109, 25, 235, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why do I need a flickr api key? === Reading through the Flickr API documentation it keeps stating I require an API key to use their REST protocols. I am only building a photo viewer, gathering information available from Flickr's [public photo feed][1] (For instance, I am not planning on writing an upload script, where a API key would be required). **Is there any added functionality I can get from getting a Key?** [1]: http://www.flickr.com/services/feeds/docs/photos_public/
0
[ 2, 483, 107, 31, 376, 21, 12407, 139, 21, 2159, 1246, 60, 800, 3726, 3726, 1876, 120, 14, 12407, 139, 21, 2159, 13945, 32, 8968, 4177, 31, 4077, 40, 21, 2159, 1246, 20, 275, 66, 760, 19957, 9, 31, 589, 104, 353, 21, 3056, 16812,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I improve the performance of the RichFaces ScrollableDataTable control? === **First, a little background:** I'm displaying a data set with 288 rows and 8 columns (2304 records) using a ScrollableDataTable and the performance leaves a lot to be desired. An AJAX request that rerenders the control takes nearly 20 seconds to complete, compared to 7 seconds when rendering the same data using a DataTable control. Metrics captured via Servlet filters and JavaScript show that virtually all of the processing time is spent on the client-side. Out of a 19.87 second request, 3.87 seconds is spent on the server... with less than .6 seconds spent querying and sorting the data. Switching to a DataTable control cuts the request, response, and render cycle down to 1/3 of what I'm seeing with the ScrollableDataTable, but also removes several important features. **And now the question:** Has anyone else experienced performance issues with the ScrollableDataTable? What's the most efficient way to render large amounts of tabular data in JSF/RichFaces with pinned columns and two-axis scrolling?
0
[ 2, 184, 92, 31, 3545, 14, 956, 16, 14, 2042, 6413, 18, 12159, 579, 18768, 5924, 569, 60, 800, 3726, 3726, 13, 1409, 3552, 15, 21, 265, 2395, 45, 1409, 31, 22, 79, 17418, 21, 1054, 309, 29, 13, 24475, 11295, 17, 469, 7498, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ActiveState perl on windows CGI Temp File location === I know this isn't strictly a programming question.... Environment: *Perl 5.8.8.822, IIS 6, Windows 2003 Standard* On all my windows servers except for one when I do this: use CGI; my $tmpfile = new CGITempFile(1); print "tmpfile='", $tmpfile->as_string(), "'\n"; $tmpfile is = '.\CGItemp1' and this is what I want. ...but on one of my servers I incorrectly get: 'C:\temp\CGItemp1'. All servers are running activestate perl 5.8.8.822 (upgrading to later version not an option) and the result is the same whether running script from command line or in IIS (scriptmap: .pl -> c:\perl\bin\perl.exe "%s" %s) Any ideas how I can fix this perl installation and force it to return '.\CGItemp1' by default? I've even zipped and copied the whole perl folder from one of the working servers to this machine but no joy. Thanks in advance Kevin
0
[ 2, 1348, 3859, 416, 255, 27, 1936, 272, 2234, 13, 9577, 3893, 1474, 800, 3726, 3726, 31, 143, 48, 2532, 22, 38, 10369, 21, 3143, 1301, 9, 9, 9, 9, 2307, 45, 1637, 1432, 255, 331, 9, 457, 9, 457, 9, 4075, 135, 15, 595, 18, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Books for an ASP.NET Developer moving to Java === Similar to this question http://stackoverflow.com/questions/72719/good-book-for-a-c-developer-going-over-to-java I'd like to know what books mainly targeting web development people would recommend. I'm currently developing large applications with ASP.NET MVC using TDD/DDD (persistence provided by NHibernate, IoC/Application Framework by Castle), so anything that might build on that would be really appreciated.
4
[ 2, 964, 26, 40, 28, 306, 9, 2328, 10058, 1219, 20, 8247, 800, 3726, 3726, 835, 20, 48, 1301, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 4009, 4241, 12766, 3264, 8, 5199, 8, 1106, 8, 58, 8, 150, 8, 26051, 106, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I enforce data integrity rules in my database? === I'm designing this collection of classes and abstract (MustInherit) classes… ![class diagram][1] This is the database table where I'm going to store all this… ![database table][2] As far as the Microsoft SQL Server database knows, those are all nullable ("Allow Nulls") columns. But really, that depends on the class stored there: LinkNode, HtmlPageNode, or CodePageNode. Rules might look like this... ![rules table][3] How do I enforce such data integrity rules within my database? [1]: http://img396.imageshack.us/img396/1711/nodeclassinheritanceej0.gif [2]: http://img179.imageshack.us/img179/3237/nodetablenorootln3.gif [3]: http://img127.imageshack.us/img127/74/datarulesha0.gif
0
[ 2, 184, 107, 31, 16525, 1054, 11961, 1761, 19, 51, 6018, 60, 800, 3726, 3726, 31, 22, 79, 15026, 48, 1206, 16, 2684, 17, 8502, 13, 5, 3605, 2864, 1694, 242, 6, 2684, 9, 9, 9, 13, 187, 2558, 1898, 14161, 500, 2558, 165, 500, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Detect browser connection closed in PHP === Does anyone know if it is possible to detect whether the browser has closed the connection during the execution of a long PHP script, when using apache and mod_php? For example, in Java, the HttpOutputStream will throw an exception if one attempts to write to it after the browser has closed it -- Or will respond negatively to checkError().
0
[ 2, 9092, 16495, 2760, 827, 19, 13, 26120, 800, 3726, 3726, 630, 1276, 143, 100, 32, 25, 938, 20, 9092, 1472, 14, 16495, 63, 827, 14, 2760, 112, 14, 5769, 16, 21, 175, 13, 26120, 3884, 15, 76, 568, 17140, 17, 7226, 1, 26120, 60, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Internationalised labels in Facelets === Does [Facelets][1] have any features for neater or more readable internationalised user interface text labels that what you can otherwise do using JSF? For example, with plain JSF, using h:outputFormat is a very verbose way to interpolate variables in messages. [1]: https://facelets.dev.java.net/
0
[ 2, 294, 2541, 13173, 19, 276, 11045, 800, 3726, 3726, 630, 636, 6413, 11045, 500, 2558, 165, 500, 57, 186, 967, 26, 15956, 106, 54, 91, 1302, 579, 294, 2541, 4155, 6573, 1854, 13173, 30, 98, 42, 92, 3190, 107, 568, 487, 18, 410, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to conditionally enable actions in C# ASP.NET website === Using a configuration file I want to enable myself to turn on and off things like logging and using a cache in a C# website. I have a configuration xml file in which I can assert that logging and caching should be turned on or off. Then in the Application_Start event I read the file which will result in for example a `bool logging` and a `bool caching` that are `true` or `false`. What I can do is prepend every logging/caching related statement with `if (logging)` and `if (caching)`. What is better way of programming this? Is there also a programming term for this kind of problem?
0
[ 2, 184, 20, 2874, 1326, 9240, 3078, 19, 272, 5910, 28, 306, 9, 2328, 2271, 800, 3726, 3726, 568, 21, 8091, 3893, 31, 259, 20, 9240, 992, 20, 805, 27, 17, 168, 564, 101, 13, 13919, 17, 568, 21, 16522, 19, 21, 272, 5910, 2271, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
http client's programing language === I want to write some app, that communicates with web application, and acts something like human user (BOT). <br/> What programing language would you suggest to use? <br/> <ul> Things that app have to do: <li>Send and receive information via http (GET and POST methods)</li> <li>Ability to change any http field (User-Agent, Content-Type etc.).</li> <li>Deal with received data in GZIP'ed format.</li> <li>Authentification (guess that this one falls under http post? Writted it separate just in case)</li> <li>Finding name of forms input field by what content is next to it (easy use of regex?)</li> <br/> Basic math operations with parts of received content, waiting some time (sleep), random numbers are also needed but I think this is easy in every language. </ul> <ol> Things that would be optional (in preferable order): <li>Ability to run on remote shell (linux, no X).</li> <li>Portable (and no need to install 66 separate librarys to run it)</li> <li>Using under proxy.</li> <li>Ability to change course of action at any time. (maybe added later)</li> <li>OO would be nice.</li> </ol> So maybe you have written something similar and can give me advise. I am not afraid to learn new things. <br/>Thanks in advance :)
0
[ 2, 7775, 6819, 22, 18, 625, 68, 816, 800, 3726, 3726, 31, 259, 20, 2757, 109, 4865, 15, 30, 8709, 18, 29, 2741, 3010, 15, 17, 3167, 301, 101, 585, 4155, 13, 5, 6813, 6, 9, 13, 1, 5145, 118, 1, 98, 625, 68, 816, 83, 42, 560...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
File Replication Solutions === Thinking about a Windows-hosted build process that will periodically drop files to disk to be replicated to several other Windows Servers in the same datacenter. The other machines would run IIS, and serve those files to the masses. The total corpus size would be millions of files, 100's of GB of data. It'd have to deal with possible contention on the target servers, latent links e.g. over a WAN, cold-start clean servers Solutions I've thought about so far : - queue'd system and daemons either wake periodically and copy or run as services. - SAN - expensive, complex, more expensive - ROBOCOPY, on a timed job - simple but effective - Off the shelf repl. software - less expensive than SAN but still expensive - UNC shared folders and no repl. Higher latency, lower cost - still need a clustering solution too. What else have other folks used?
0
[ 2, 3893, 23841, 6776, 800, 3726, 3726, 1440, 88, 21, 1936, 8, 25219, 1895, 953, 30, 129, 19886, 2804, 6488, 20, 8582, 20, 44, 22156, 43, 20, 238, 89, 1936, 17595, 19, 14, 205, 1054, 12641, 9, 14, 89, 6035, 83, 485, 595, 18, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Interfacing with telephony systems from *nix === Does anyone know of any 'standard' way to interface with a telephony system (think Cisco CCM) from a C/C++ app in *nix? I have used MS TAPI in the past but this is Windows only and don't want to go the jTAPI (Java) route, which seems to be the only option on the face of it. I want to monitor the phone system for logging purposes (so I know when users have made calls, received calls, etc.). TAPI is good at this sort of thing but I can't be the first person who wants to do something similar without having a Windows server.
0
[ 2, 1480, 17231, 29, 4338, 22031, 1242, 37, 1637, 14064, 800, 3726, 3726, 630, 1276, 143, 16, 186, 13, 22, 15566, 22, 161, 20, 6573, 29, 21, 4338, 22031, 329, 13, 5, 10550, 28184, 8093, 79, 6, 37, 21, 272, 118, 150, 20512, 4865, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Perl ithreads in Windows === I have a Perl script that I'm attempting to set up using Perl Threads (use threads). When I run simple tests everything works, but when I do my actual script (which has the threads running multiple SQL*Plus sessions), each SQL*Plus session runs in order (i.e., thread 1's sqlplus runs steps 1-5, then thread 2's sqlplus runs steps 6-11, etc.). I thought I understood that threads would do concurrent processing, but something's amiss. Any ideas, or should I be doing some other Perl magic?
0
[ 2, 416, 255, 31, 96, 10647, 18, 19, 1936, 800, 3726, 3726, 31, 57, 21, 416, 255, 3884, 30, 31, 22, 79, 6314, 20, 309, 71, 568, 416, 255, 20396, 13, 5, 3699, 20396, 6, 9, 76, 31, 485, 1935, 4894, 796, 693, 15, 47, 76, 31, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
best JAVA GUI Editor === i know there is nothing called the best Java IDE (eclipse, netbean,...) each one has its own speciality but when it comes the GUI Editor (visual Editor) there are some interesting items out there i would love to know which one is the most recomanded thanks
4
[ 2, 246, 8247, 9457, 1835, 800, 3726, 3726, 31, 143, 80, 25, 626, 227, 14, 246, 8247, 13, 3448, 13, 5, 3319, 6013, 870, 15, 4275, 863, 210, 15, 9, 9, 9, 6, 206, 53, 63, 82, 258, 621, 856, 47, 76, 32, 1624, 14, 9457, 1835, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why am I getting this objective-c error message: invalid conversion from 'objc_object*' === This error message had me stumped for a while: invalid conversion from 'objc_object*' to 'int' the line in question was something like this: int iResult = [MyUtils utilsMemberFunc:param1,param2];
0
[ 2, 483, 589, 31, 1017, 48, 7038, 8, 150, 7019, 2802, 45, 16671, 6263, 37, 13, 22, 4995, 15864, 1, 23793, 2483, 22, 800, 3726, 3726, 48, 7019, 2802, 41, 55, 15781, 69, 26, 21, 133, 45, 16671, 6263, 37, 13, 22, 4995, 15864, 1, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
LINQ to SQL in Visual Studio 2005 === I normally run VS 2008 at home and LINQ is built in. At work we are still using VS 2005 and I have the opportunity to start a new project that I would like to use LINQ to SQL. After doing some searching all I could come up with was the MAY 2006 CTP of LINQ would have to be installed for LINQ to work in VS 2005. Does someone know the proper add ins or updates I would need to install to use LINQ in VS 2005 (preferably without having to use the CTP mentioned above).
0
[ 2, 6294, 1251, 20, 4444, 255, 19, 3458, 1120, 812, 800, 3726, 3726, 31, 4147, 485, 4611, 570, 35, 213, 17, 6294, 1251, 25, 392, 19, 9, 35, 170, 95, 50, 174, 568, 4611, 812, 17, 31, 57, 14, 2893, 20, 799, 21, 78, 669, 30, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why is setInterval calling a function with random arguments? === So, I am seeing a curious problem. If I have a function // counter wraps around to beginning eventually, omitted for clarity. var counter; cycleCharts(chartId) { // chartId should be undefined when called from setInterval console.log('chartId: ' + chartId); if(typeof chartId == 'undefined' || chartId < 0) { next = counter++; } else { next = chartId; } // ... do stuff to display the next chart } This function can be called explicitly by user action, in which case `chartId` is passed in as an argument, and the selected chart is shown; or it can be in autoplay mode, in which case it's called by a `setInterval` which is initialized by the following: var cycleId = setInterval(cycleCharts, 10000); The odd thing is, I'm actually seeing the `cycleCharts()` get a `chartId` argument even when it's called from `setInterval`! The `setInterval` doesn't even have any parameters to pass along to the `cycleCharts` function, so I'm very baffled as to why `chartId` is not undefined when `cycleCharts` is called from the `setInterval`.
0
[ 2, 483, 25, 309, 6280, 3377, 2555, 21, 1990, 29, 5477, 10553, 60, 800, 3726, 3726, 86, 15, 31, 589, 2078, 21, 7686, 1448, 9, 100, 31, 57, 21, 1990, 12894, 2105, 8118, 18, 140, 20, 997, 878, 15, 18761, 26, 18314, 9, 4033, 2105, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Custom row source for combo box in continuous form in Access === I have searched around, and it seems that this is a limitation in MS Access, so I'm wondering what creative solutions other have found to this puzzle. If you have a continuous form and you want a field to be a combo box of options that are specific to that row, Access fails to deliver; the combo box row source is only queried once at the beginning of the form, and thus show the wrong options for the rest of the form. The next step we all try, of course, is to use the onCurrent event to requery the combo box, which does in fact limit the options to the given row. However, at this point, Access goes nuts, and requeries *all* of the combo boxes, for every row, and the result is often that of disappearing and reappearing options in other rows, depending on whether they have chosen an option that is valid for the current record's row source. The only solution I have found is to just list all options available, all the time. Any creative answers out there?
0
[ 2, 5816, 3131, 1267, 26, 22621, 1649, 19, 6357, 505, 19, 1381, 800, 3726, 3726, 31, 57, 9036, 140, 15, 17, 32, 2206, 30, 48, 25, 21, 24943, 19, 4235, 1381, 15, 86, 31, 22, 79, 5712, 98, 4231, 6776, 89, 57, 216, 20, 48, 9164, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# How to check for valid xml in string input before calling .LoadXml() === I would much prefer to do this without catching an exception in .LoadXml() and using this results as part of my logic. Any ideas for a solution that doesn't involve manually parsing the xml myself? I think VB has a return value of false for this function instead of throwing an XmlException. Thanks much!
0
[ 2, 272, 5910, 184, 20, 2631, 26, 7394, 23504, 19, 3724, 6367, 115, 2555, 13, 9, 8294, 396, 8184, 5, 6, 800, 3726, 3726, 31, 83, 212, 6369, 20, 107, 48, 366, 9436, 40, 5391, 19, 13, 9, 8294, 396, 8184, 5, 6, 17, 568, 48, 1736...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is the most effective tool you've used to track changes in a CVS repository? === I'm in Quality Assurance and use Fisheye to track checkins to CVS. What other options do people use?
0
[ 2, 98, 25, 14, 127, 3140, 5607, 42, 22, 195, 147, 20, 792, 1693, 19, 21, 13, 12732, 18, 24869, 60, 800, 3726, 3726, 31, 22, 79, 19, 2190, 16473, 17, 275, 1968, 9374, 20, 792, 2631, 108, 18, 20, 13, 12732, 18, 9, 98, 89, 6368...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do you prevent over complicated solutions or designs? === Many times we find ourselves working on a problem, only to figure out the solution being created is far more complex than the problem requires. Are there controls, best practices, techniques, etc that help you control over complication in your workplace?
0
[ 2, 184, 107, 42, 2501, 84, 8343, 6776, 54, 4748, 60, 800, 3726, 3726, 151, 436, 95, 477, 10021, 638, 27, 21, 1448, 15, 104, 20, 1465, 70, 14, 4295, 142, 679, 25, 463, 91, 1502, 119, 14, 1448, 4781, 9, 50, 80, 8671, 15, 246, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
html button anchor display block === Anchor tag doesnt resize automatically depending on the content, see the following example: http://jsfiddle.net/XmnnY/ I know I can use display inline or display inline-block, but I need that the anchor tag automatically sets its width depending of the inner html size (which is text in this case). Thanks for help!
0
[ 2, 13, 15895, 5167, 6265, 3042, 1921, 800, 3726, 3726, 6265, 3383, 5886, 302, 10454, 7499, 4758, 27, 14, 2331, 15, 196, 14, 249, 823, 45, 7775, 6903, 728, 18, 1707, 12312, 9, 2328, 118, 396, 79, 13207, 118, 31, 143, 31, 92, 275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Session timeout script behaving differently between MAMP and hosted account === I have the following session timeout setup: $inactive = $Timeout; // check to see if $_SESSION['timeout'] is set if(isset($_SESSION['timeout']) ) { $session_life = time() - $_SESSION['timeout']; if($session_life > $inactive) { session_destroy(); header("Location: index.php?page=login"); } } $Timeout is obtained from a database entry. At the moment it is set to 1800. And every time a user clicks on a link or carries out an action, I do $_SESSION['timeout'] = time(); On MAMP it's working as expected, and the session is expiring after 30 minutes of inactivity. On the hosted account (ipower) it seems to be timing out after about 5 mins of inactivity. I am stumped as to what could be causing this? Has anyone experienced something like this? What settings could I check?
0
[ 2, 3723, 85, 1320, 3884, 44, 13693, 12670, 128, 1216, 2554, 17, 2812, 2176, 800, 3726, 3726, 31, 57, 14, 249, 3723, 85, 1320, 18161, 45, 5579, 108, 7889, 800, 5579, 891, 1320, 73, 12894, 2631, 20, 196, 100, 5579, 1, 7202, 5991, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Automatically downloading images from any URL location === I have a serious problem in the late stage of a project I'm working on. I wrote a php function that makes it possible for user to download an image automatically on a hard drive by clicking on its link. But that was easy because the image was uploaded on the website server and I knew it's full server address. For Example: "home/clients/websites/w_apo/public_html/wp-content/uploads/image.jpg" But now the client wants the ability to paste the image URL from his own address (http://www.something.com/image.jpg) and still be able to automatically download that image by clicking on the link on the frontend. i'm kind of new at this area of programming so i really need your help. Any links, advice, resources are most welcome. Thanks!
0
[ 2, 7499, 7121, 68, 3502, 37, 186, 287, 6362, 1474, 800, 3726, 3726, 31, 57, 21, 2055, 1448, 19, 14, 456, 876, 16, 21, 669, 31, 22, 79, 638, 27, 9, 31, 738, 21, 13, 26120, 1990, 30, 1364, 32, 938, 26, 4155, 20, 7121, 40, 1961...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
"Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException". I have no clue what I'm doing wrong === I am making a calculator for an AP Computer Science Final. I built the GUI in Eclipse using Jigloo, and I quickly tried to learn about Action Listeners so you can hit the buttons to make numbers appear. The problems started occurring when I started enter the actual code to make calculations. I keep getting the following error: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at NewJFrame.<init>(NewJFrame.java:82) at NewJFrame$1.run(NewJFrame.java:73) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.awt.EventQueue$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) I'm pretty new to Java, and I've never attempted a project like this before. I would love if you guys can help me fix this problem. Here is a link to my actual code, it won't fit in the code box for some reason: [Link to code][1] [1]: http://pastie.org/4041393
0
[ 2, 13, 7, 10066, 872, 19, 9322, 13, 7, 3885, 38, 8, 4943, 38, 2005, 4185, 8, 387, 7, 8247, 9, 9949, 9, 4215, 211, 3132, 106, 10066, 872, 7, 9, 31, 57, 90, 8906, 98, 31, 22, 79, 845, 1389, 800, 3726, 3726, 31, 589, 544, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can Jira Issue validate fields within a sub-task === My current situation is I have a custom workflow which include many statuses. For each Jira issue, has some sub-tasks. I want a validation mechanism, which can prevent the Issue going to the next statuses untill some certain custom fields have been validated. But the custom fields are not belong to Jira issue, they are belong to sub-tasks. e.g. 1. There are statuses: A, B, C, D, etc for the workflow; 2. There is an issue X who has Y and Z as sub-task; 3. Sub-task Y has a and b as custom fields; 4. Sub-task Z has c and d as custom fields; 5. The issue X won't go from status A to status B until custom fields a, b, c and d are validated. Anyone knows are there any good plugins or method I can do like this. NB: I know there is a plugin called Jira Suite plugin which is powerful, I can do some validation on transition, but the fields validation are only for issues, not include sub-task custom fields. Thanks.
0
[ 2, 92, 487, 3517, 1513, 7394, 1373, 2861, 363, 21, 972, 8, 38, 20310, 800, 3726, 3726, 51, 866, 1858, 25, 31, 57, 21, 5816, 170, 9990, 56, 468, 151, 1782, 160, 9, 26, 206, 487, 3517, 1513, 15, 63, 109, 972, 8, 6922, 4020, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Closing a mobile browser tab with javascript === I know this question has been asked before but maybe you can give me some ideas on how to solve my problem. Alright so I need a native app to fire a browser with some URL that will take the user to a mobile website, inside the mobile website there has to be a button that closes the browser (or sends any signal to the native app) so that the user gets back to the native app. Currently I'm trying to close the window, but I don't think that's gonna do the trick in all mobile devices, my code: $( document ).bind('pageinit', function(){ $.mobile.activePage.find('#close').click(function(){ window.open('', '_self', ''); window.close(); }); }); BTW I'm using jQuery mobile, cheers
0
[ 2, 4239, 21, 3241, 16495, 6523, 29, 8247, 8741, 800, 3726, 3726, 31, 143, 48, 1301, 63, 74, 411, 115, 47, 913, 42, 92, 590, 55, 109, 3478, 27, 184, 20, 8402, 51, 1448, 9, 11885, 86, 31, 376, 21, 1275, 4865, 20, 535, 21, 16495,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Tool to reformat xml-comments (Visual Studio 2008) === does anyone know of a macro or add-on for VS 2008 which reformats xml-comments? There has been this really smart CommentReflower for the older version of VS, but I couldn't find a release supporting VS 2008. Any ideas? Thanks in advance! Matthias
0
[ 2, 5607, 20, 3202, 721, 23504, 8, 960, 6601, 13, 5, 20893, 1120, 570, 6, 800, 3726, 3726, 630, 1276, 143, 16, 21, 9069, 54, 3547, 8, 218, 26, 4611, 570, 56, 3202, 721, 18, 23504, 8, 960, 6601, 60, 80, 63, 74, 48, 510, 3978, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Best way to learn Visual Studio power features === What's the best way to learn the advanced features in Visual Studio? For e.g. using Debug windows like Threads, Memory etc., using the various Tools which come inbuilt such as Spy++ etc. Are there any good advanced/power-user tutorials around? Thanks, Nikhil
0
[ 2, 246, 161, 20, 2484, 3458, 1120, 414, 967, 800, 3726, 3726, 98, 22, 18, 14, 246, 161, 20, 2484, 14, 2255, 967, 19, 3458, 1120, 60, 26, 13, 62, 9, 263, 9, 568, 121, 16254, 1936, 101, 20396, 15, 1912, 2722, 9, 15, 568, 14, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Designing a Yahoo Pipes inspired interface === I really like the interface for Yahoo Pipes (http://pipes.yahoo.com/pipes/) and would like to create a similar interface for a different problem. Are there any libraries that would allow me to create an interface with the same basic look and feel? I especially like how the pipes behave and how they are not just straight lines.
0
[ 2, 15026, 21, 23553, 14104, 3054, 6573, 800, 3726, 3726, 31, 510, 101, 14, 6573, 26, 23553, 14104, 13, 5, 21127, 6903, 15185, 18, 9, 1046, 8884, 9, 960, 118, 15185, 18, 118, 6, 17, 83, 101, 20, 1600, 21, 835, 6573, 26, 21, 421, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When is this VB6 member variable destroyed? === Suppose I have a class module `clsMyClass` with an object as a member variable. Listed below are two complete implementations of this very simple class. Implementation 1: Dim oObj As New clsObject Implementation 2: Dim oObj As clsObject Private Sub Class_Initialize() Set oObj = New clsObject End Sub Private Sub Class_Terminate() Set oObj = Nothing End Sub Is there any functional difference between these two? In particular, is the lifetime of `oObj` the same?
0
[ 2, 76, 25, 48, 13, 20468, 379, 322, 7612, 2183, 60, 800, 3726, 3726, 5787, 31, 57, 21, 718, 12613, 13, 1, 5316, 18, 915, 1898, 1, 29, 40, 3095, 28, 21, 322, 7612, 9, 1510, 1021, 50, 81, 1279, 6123, 18, 16, 48, 253, 1935, 718...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What are the strengths of the various database searching mechanisms with Lucene? === I am looking into mechanisms for better search capabilities against our database. It is currently a huge bottleneck (causing long-lasting queries that are hurting our database performance). My boss wanted me to look into Solr, but on closer inspection, it seems we actually want some kind of DB integration mechanism with Lucene itself. From the [Lucene FAQ][1], they recommend [Hibernate Search][2], [Compass][3], and [DBSight][4]. As a background of our current technology stack, we are using straight JSPs on Tomcat, no Hibernate, no other frameworks on top of it... just straight Java, JSP, and JDBC against a DB2 database. Given that, it seems Hibernate Search might be a bit more difficult to integrate into our system, though it might be nice to have the option of using Hibernate after such an integration. Does anyone have any experiences they can share with using one of these tools (or other similar Lucene based solutions) that might help in picking the right tool? It needs to be a FOSS solution, and ideally will manage updating Lucene with changes from the database automagicly (though efficiently), without extra effort to notify the tool when changes have been made (otherwise, it seems rolling my own Lucene solution would be just as good). Also, we have multiple application servers with just 1 database (+failover), so it would be nice if it is easy to use the solution from all application servers seamlessly. I am continuing to inspect the options now, but it would be really helpful to utilize other people's experiences. [1]: http://wiki.apache.org/lucene-java/LuceneFAQ#head-109358021acbfc89456e446740dc2bbf9049950f [2]: http://search.hibernate.org/ [3]: http://www.compass-project.org/ [4]: http://www.dbsight.net/
0
[ 2, 98, 50, 14, 2169, 18, 16, 14, 617, 6018, 5792, 11626, 29, 18515, 556, 60, 800, 3726, 3726, 31, 589, 699, 77, 11626, 26, 574, 2122, 10209, 149, 318, 6018, 9, 32, 25, 871, 21, 2329, 4040, 9870, 13, 5, 793, 12655, 175, 8, 8558...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...