input
stringlengths
51
42.3k
output
stringlengths
18
55k
Logging into Peoplesoft App-Designer in 2 Tier using LDAP authentication <p>I have a database with LDAP login enabled. It works fine when logging in through the PIA or when logging into app-designer through the application server.</p> <p>I need to make app-designer allow me to login with 2-tier mode using LDAP authent...
<p>I do not think this is possible. 2-tier logs directly into the database and more importantly, does not run the signon peoplecode that does call-outs for LDAP authentication. In fact, 2-tier is really just a Win32 app that runs no peoplecode - it isn't a peoplesoft "application." There is a user callout dll delivered...
ASP.NET,jQuery UI Dialog showing in page for 1-2 seconds <p>I have an ASP.NET page where i will check whether the user has logged in to the system (by checking the session value) in the page load and if not logged in,it will show a jQueryUI dialog for login.</p> <p>My ASPX page contains these script in the head tag</p...
<p>Try setting the style on your dialog markup to display:none;</p> <pre><code>#dialog{ display: none; } </code></pre> <p>You can then show it if the dialog.open doesn't do it for you.</p> <pre><code>$('#dialog').show() </code></pre>
Comparing arrays in VB.NET <p>Let me provide a little detail to explain what I'm trying to accomplish before I get into the nuts and bolts of the question.</p> <p>I've got two data sources - one is a SQL Server containing part numbers, descriptions, etc. The other is a CAD system that does not have a database in a tr...
<p>You could load the data from the CAD system in a dictionary (indexed by part number). Then you could go through the grid and check if it exists in the dictionary, which is a fast operation ( O(1) ). You could do exactly as you say, remove the found elements in the dictionary and add the remaining elements in the dat...
Should developers be given Domain Admin / DBA access rights? <p>I have just walked out of a meeting room steaming after having to unsuccessfully argue the case for retaining our (development team's) Domain Admin / Oracle DBA access privileges. We support day to day production issues as well as a nationally critical pro...
<p>It's never a good idea for developers to have full access to production, you should be arguing the case for having a test environment which mirrors the production setup.</p>
Why python compile the source to bytecode before interpreting? <p>Why python compile the source to bytecode before interpreting?</p> <p>Why not interpret from the source directly?</p>
<p>Nearly no interpreter really interprets code <em>directly</em>, line by line – it's simply too inefficient. Almost all interpreters use some intermediate representation which can be executed easily. Also, small optimizations can be performed on this intermediate code.</p> <p>Python furthermore stores this code wh...
CruiseControl .Net Plugin Vb.net Error <p>I am trying to make my own Labeller plugin for Cruise Control .Net 1.4.3. I have made a class based on another plug in example but I keep getting an error </p> <p>Class 'AssemblyVersionLabeller' must implement 'Function Generate(integrationResult As IIntegrationResult) As Str...
<p>I cannot judge just by looking at your code, but if you need a sample on how to write labellers (C# code though), you could take a look at <a href="http://sourceforge.net/projects/brekiccnetutils/" rel="nofollow">BrekiLabeller</a> code (written by me).</p>
Garbage Collection does not reduce current memory usage - in release mode. Why? <p>I built a quick program that needed to loop through an enormous log file (a couple of million records) and find various bits and pieces from inside. Because the volume of data was so huge, I have been curious to watch my Windows Task Man...
<p>Calling GC.Collect() is only a request to collect garbage, it's not an order, so the CLR may choose to ignore the request if it sees fit. </p> <p>For example, if there's a lot of garbage that would cause a noticable delay whilst collecting, but there's still free memory to service subsequent allocations, then the G...
Getting Apache to execute command on every page view <p>Is there any way to get Apache to run a command/program every time a web page is requested? I know I could scan the logs for new entries every minute or so, but can I get Apache to directly call the command? There might be an option like this in one of the configu...
<p>You can use the CustomLog directive to pipe the access log to a script or program, which could be useful in your situation. All you would have to do is set up a while loop (or similar structure) on STDIN in the language of your choice and then execute your command from there.</p> <p><a href="http://httpd.apache.org...
Search image pattern <p>I need to do a program that does this: given an image (5*5 pixels), I have to search how many images like that exist in another image, composed by many other images. That is, i need to search a given pattern in an image.</p> <p>The language to use is C. I have to use parallel computing to searc...
<p>Seems straight forward.</p> <ul> <li>Create 4 versions of the image rotated by 0°, 90°, 180°, and 270°.</li> <li>Start four threads each with one version of the image.</li> <li>For all positions from <code>(0,0)</code> to <code>(width - 5, height - 5)</code> <ul> <li>Comapare the 25 pixels of the reference imag...
Weblogic - how to bring server down for maintenance? <p>I need to bring down a server in Weblogic 10.3 (which will have only one application deployment) and display a "Under Maintenance" page when the user requests the application.</p> <p>Is there a way to use two managed servers or WLST to do this somehow?</p>
<p>My first thought is to proxy requests through nginx or apache (or tomcat for that matter) My second thought is that you put the managed severs in a cluster, and when the app goes offline, cluster resolves to the managed server that displays Under Maintenance page. Third thought is if dns resolves to myserver.mydomai...
vb.net textbox validation against a database? <p>one of the fields on my form is a textbox that the user types an id. this is the foreign key to another table so I need to bounce the data against that table before letting them submit. I'd rather not use textchanged as every letter they type may incur another query, foc...
<p>You may want to consider using a timer control for this.</p> <p>Disable and Enable the control every time the key is pressed, to reset the timeout.</p> <p>Then when the timer event fires, Disable the control and query the database.</p> <p>EDIT: I still think your best bet is probably on the Lost Focus event.</p>
Shape descriptor <p>I have an image which is a binary mask, I want to characterize the contours of the black zones in the mask, I have found several functionalities to detect the borders between both zones but only as a new image but what I want is the description of this border, not a new image. Is there any functiona...
<p>Are you comfortable writing a routine that walks the boundary and collects a list of the boundary pixels? If you had such a list, would it let you form the descriptor you have in mind?</p>
how to run php script in eclipse <p>I installed Eclipse PDT-all-in-one-win32-2.0.0GA and WampServer 2.0.</p> <p>I try to run as PHP Script in eclipse but I have this error:</p> <p>"The current debugger does not have any defined PHP executable." </p> <p>How do I create this .exe ??</p>
<blockquote> <p>Ok But I do not have php.exe. I only create Test.php in my project.</p> </blockquote> <p>In order to run *<em>.php</em> files, you will need PHP installed, and because you already have installed WAMP, you should be fine.</p> <blockquote> <p>"The current debugger does not have any defined PHP execu...
ManyToOneField in Django <p>I'm trying to define a many-to-one field in the class that is the "Many". For example, imagine a situation where a user can only be a member of one group but a group can have many users:</p> <pre><code>class User(models.Model): name = models.CharField() class Group(models.Model): ...
<p>A <code>ManyToOne</code> field, as you've guessed, is called <code>ForeignKey</code> in Django. You will have to define it on your <code>User</code> class for the logic to work properly, but Django will make a reverse property available on the <code>Groups</code> model automatically:</p> <pre><code>class Group(mode...
NHibernate StaleObjectStateException when using version optimistic locking for an object with a one-to-many relationship <p>I am using NHibernate and ASP.Net using a session per request as suggested in the best practices article by Billy McCafferty (sorry, I cannot include the link). I have used this successfully with...
<p>For anyone else finding this, it appears the issue has been fixed in nhibernate 2.1, so you should just update.</p>
Do a self handled event prevent the instance from being garbage-Collected? <p>i read the answer of the question <a href="http://stackoverflow.com/questions/298261/do-event-handlers-stop-garbage-collection-from-occuring">Do event handlers stop garbage collection from occuring?</a>, but what happens when the publisher is...
<p>The GC looks and sees if any references to the object are currently rooted in the application. It is smart enough to handle circular references like the one above.</p> <p>In addition, it is smart enough to handle the case where you have two objects, A, and B, and:</p> <pre><code>A.Event += B.Handler; B.Event += ...
how to type certain commands in vim, like CTRL-] ^Wc etc.. on a German Keyboard <p>I'm sitting here feeling silly - the vim help tells me to hit <kbd><strong>CTRL</strong></kbd><kbd><strong>]</strong></kbd> (to follow links in the help) and I can't get it!? Same problem with ^Wc (close a split window)</p> <p>I have a ...
<p>First off, in this type of Help file, the <code>^</code> symbol indicates that you need to hit <code>Ctrl</code> with the key. <code>^Wc</code> means to hit <code>Ctrl+W</code>, then <code>c</code> after releasing <code>^W</code>. It looks like you might need to use <code>Ctrl+AltGr+9</code> to get <code>Ctrl+]</cod...
Silverlight developer wants to gain some designer chops - where do I start? <p>I'd like to reskin a Silverlight app to be more visually compelling. Unfortunately, I went to school for computer science, not design, and I have trouble deciding if two colors even match. How do I get started? Let me add that time and mo...
<p>Design is one of those things that is very difficult to teach. Only a small percentage of it can be taught. The rest must be learned through experience and practice. If you have an inclination toward art / expression, your learning curve will be much shorter. Here are some things to get you started:</p> <p>Color Th...
JAXB List of Choice <p>I have following schema</p> <pre><code>&lt;complexType name="BookShelf"&gt; &lt;sequence&gt; &lt;element name="newBook" type="string" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;element name="oldBook" type="string" minOccurs="0" maxOccurs="unbounded"/&gt; &lt;/sequence&gt; &lt...
<p>You can use the <a href="https://github.com/highsource/jaxb2-basics/wiki/JAXB2-Simplify-Plugin" rel="nofollow">Simplify plugin</a> from <a href="https://github.com/highsource/jaxb2-basics" rel="nofollow">JAXB2 Basics</a>. It can simplify <code>@XmlElements</code> and <code>@XmlElementRefs</code> properties, which ma...
AS3 Class Function Scope <p>If I have 2 classes and the first extends the second, how can the second class call a static function from the first?</p> <pre><code> package p1 { class a { static function a1() { //do soemthing } } class b extends a { static function b1() { ...
<p>When "B extends A" - this actually is not the same as "class B has all methods and properties of A". Not class, but object of class B implements all properties and methods, defined in class A. When you call a static method or property - you deal with classes but not objects (it looks very similar to namespaces usage...
Datagrid CurrentRowIndex returns -1? <p>This seems quite odd. I have a Datagrid (.net 3.5 cf) that I bind to either a List or Inventory[]. When I click on a row and then hit a button to perform an action when I bind to a List CurrentRowIndex is -1. When I bind to Inventory[] and perform the same action CurrentRowI...
<p>Hmmm, I'm having trouble replicating the problem (array and list both work fine for me). What is the target system? Also, what is the operation that you are performing?</p> <p>You might try using a BindingSource as the intermediary between your list and your datagrid, not sure if it would help though. Something ...
In Squeak, how to wrap every method send? <p>I created a class, and in that class I have a method 'sendMessage: to: withArgs:' which recieves an object, a message and an array of arguments. The method is used to send messages to object and perform some algorithm. To use this method I have to create an instance x of the...
<p>In Squeak, see the class ObjectTracer. The class comment describes how to use it. You should be able to accomplish what you need with that, or at least using that as a model.</p>
Should I use an interface for Type Codes? <p>I am working on a project that has several different codes. These codes all basically are used this way:</p> <pre><code>CodeKey Description GetList GetSpecific SetProperties </code></pre> <p>All of my classes implement this. I am hesitent, however, to use an interface b...
<p>You could use a generic interface for it as I read it.</p> <pre><code>Interface IYourType(Of T) Property CodeKey As T Property Description As String Sub GetList... Sub GetSpecific... Sub SetProperties... End Interface </code></pre> <p>I am not sure I understand your question completely, but your type iss...
Find roots of many-to-many category tree in Django <p>I have a Django model like:</p> <pre><code>class Category(models.Model): status=models.CharField(max_length=16) machineName=models.CharField(max_length=50) readableName=models.CharField(max_length=100) description=models.CharField(max_length=1024) ...
<p>Django's many-to-many fields normally operate symmetrically (see this <a href="http://docs.djangoproject.com/en/dev/ref/models/fields/#manytomanyfield">entry in the Django docs</a>). When you do a ManyToMany to self, this means that a reverse ManyToMany entry will be created, so in fact every category with a parent ...
What is the best way to organize multiple projects when using git <p>I have 5-10 independent projects that I want place under version control using Git. What is the best way to organize the projects/respositories:</p> <ul> <li>Use one repository for each project</li> <li>use one repository for all my work and use s...
<p>I'd definitely say use one repository for each project. Otherwise you're going to have all sort of crosstalk between projects, not to mention it's a pain to specify long paths if you're using command line git. Git works great with the one repository per project model, I can't really see any reason to use anything el...
What is a wrapper class? <p>What is a wrapper class?<br /> How are such classes useful?</p>
<p>In general, a wrapper class is any class which "wraps" or "encapsulates" the functionality of another class or component. These are useful by providing a level of abstraction from the implementation of the underlying class or component; for example, wrapper classes that wrap COM components can manage the process of...
has_many and single table inheritance <p>I have a has_many relationship between two entities, Feeds and Posts. I also have specific types of posts, Videos and Photos. This is structured in the database using single table inheritance.</p> <p>Right now I have my Feed model specifying a has_many relationship between Feed...
<p>If i understand you correctly you have Posts and posts can be either video or photo. as Jaryl said what you have is probably the easiest to understand/handle however if you wanted to get fancy you could use single table inheritance or polymophic associations.</p> <p>STI - example (from Agile Web Development with Ra...
How do I get the executing object for a stackframe? <p>When using reflection it is possible to obtain the call stack (apart from that it can be a crude approximation due to JIT optimizations) using System.Diagnostics.StackTrace and examine the StackFrame objects contained.</p> <p>How can I get a reference to the objec...
<p>I'm pretty sure that this is not possible. Here's why:</p> <ol> <li><p>This could break type safety, since anyone can lookup a frame, get the object regardless of which AppDomain\Thread they are executing on or permission they have.</p></li> <li><p>The '<code>this</code>' (C#) identifier is really just an argument ...
How can I get a precise time, for example in milliseconds in Objective-C? <p>Is there an easy way to get a time very precisely? </p> <p>I need to calculate some delays between method calls. More specifically, I want to calculate the speed of scrolling in an UIScrollView.</p>
<p><code>NSDate</code> and the <code>timeIntervalSince*</code> methods will return a <code>NSTimeInterval</code> which is a double with sub-millisecond accuracy. <code>NSTimeInterval</code> is in seconds, but it uses the double to give you greater precision.</p> <p>In order to calculate millisecond time accuracy, you ...
Base64ToHex() on code sample <p>I'm reading this code <a href="http://www.codinghorror.com/blog/archives/001267.html" rel="nofollow">sample</a>:</p> <p>And since I don't know C#, I decided to give it a go. </p> <p>While compiling I've got this message:</p> <pre><code>Main.cs(32,65): error CS1061: Type `string' does ...
<p>If that code ever complied, Jeff probably had an extension method on String called "Base64ToHex". <a href="http://msdn.microsoft.com/en-us/library/bb383977.aspx" rel="nofollow">Extension methods</a> allow you to define methods to "extend" other classes, such that it appears that the method was actually defined in t...
Language/Framework support for Interacting With CouchDB <p>I am interested in knowing if there are any server-side web application frameworks which integrate nicely with CouchDB? Does anyone have any experience in doing this? It seems like a dynamic language would be well-suited for playing with the JSON, but I am more...
<p>Two frameworks that I would suggest for CouchDB are Ruby on Rails and Django. Both have a small file you can include that allows for easy interaction with CouchDB. For Ruby/Rails, this gives you the ability to write code that looks like this (<a href="http://wiki.apache.org/couchdb/Getting%5Fstarted%5Fwith%5FRuby" r...
Sharepoint as an Enterprise Content Management (ECM) <p>I work for a large organization and we have been utilizing SharePoint for document library. Yesterday my boss called me to his office and asked me: </p> <p>"I heard that SharePoint is an ECM! So what can it do for us?". </p> <p>"What kind of problem do you want ...
<p>You might find some useful info on the <a href="http://blogs.msdn.com/ecm/" rel="nofollow">MS ECM team's blog</a>.</p>
Getting specific number of rows from db using nhibernate <p>How can I get specific number of records from nhibernate like 10 or 15 at a time instead of all records. I actually got the answer using criteria.setmaxresults(). But my question is how can I get first 10 records, then next 10 records and then.... next 10........
<p>use <code>SetMaxResults()</code> in conjunction with <code>SetFirstResult()</code></p>
System.Security.Policy.Evidence, Web Services and Blowing Out the LoH <p>A new application that has been developed has a heavy use of web services. We started hitting out of memory exceptions on a regular basis (as usage has increased). Upon reviewing the memory dumps I noticed there were a large number of same sized b...
<p>I've seen the same thing in memory dumps on Framework 3.5 SP1.</p> <p>Tess's blog talks about these assemblies being stored in the ASP.NET Cache, and the Cache flushing the assemblies, causing them to be reloaded. The suggestion was that the Cache would flush them when the system was low on memory, which is the def...
In Visual Studio, can I disable signing my application when in debug? <p>In Visual Studio's Project Properties -> Signing tab, I have signed my project with a code-signing certificate. On my team, however, I'm the only one with the code-signing certificate, even though we're in a multiple-developer environment. When th...
<p>One thing that might work is adding a post-build event to call a script that does your signing. You could use something like <a href="http://msdn.microsoft.com/en-us/library/8s9b9yaz.aspx" rel="nofollow">signtool.exe</a> to sign the files when you publish them.</p> <p>You could make multiple versions of a script f...
Relational & Object-Oriented Database which one is better, will be suppressed? <p>I wonder if RDBMS or OODBMS will be suppressed in near future?</p> <p>Today I read quite a few articles about differences in both of them and most of the articles seem to favor OODBMS. Does that mean that RDBMS will be suppressed by, not...
<blockquote> <p>the new world of information is all about BLOBs.</p> </blockquote> <p>No, it isn't. BLOBs are useful for certain things, but they don't replace or make obsolete more structured databases or the appropriate use of data types.</p> <p>The relational model is very good at solving a certain class of dat...
How do i save code changes to an Excel VBA add-in? <p>I've made an add-in for Excel in VBA and now I need to make changes to the code, but the file won't save. I open the .xlam file, I make the changes, ctrl-S to save with no errors popping up, close down. But when I reopen, none of the change I made are there. What...
<p>In the VB editor, select the project in the Project Explorer pane, then in the Immediate Window enter this line and press Enter:</p> <p>ThisWorkbook.Save</p>
Can I capture "Unrecognized escape" warning when compiling a regex? <p>I'm reading a regular expression from a configuration file, which may or may not have invalid syntax in it. (It's locked down behind a firewall, so let's not get into security.) I've been able to test for a number of errors and give a friendly mess...
<p>You can make the warning FATAL and use block eval:</p> <pre><code>#!/usr/bin/perl use strict; use warnings; my $s = '\M'; my $r = eval { use warnings FATAL =&gt; qw( regexp ); qr/$s/; }; $r or die "Runtime regexp compilation produced:\n$@\n"; </code></pre>
Accurate timing of functions in python <p>I'm programming in python on windows and would like to accurately measure the time it takes for a function to run. I have written a function "time_it" that takes another function, runs it, and returns the time it took to run.</p> <pre><code>def time_it(f, *args): start = ...
<p>Use the <a href="http://docs.python.org/library/timeit.html"><code>timeit</code> module</a> from the Python standard library.</p> <p>Basic usage:</p> <pre><code>from timeit import Timer # first argument is the code to be run, the second "setup" argument is only run once, # and it not included in the execution tim...
Can users interact with services directly on Microsoft Vista? <p>From the Microsoft website (see <a href="http://msdn.microsoft.com/en-us/library/ms683502%28VS.85%29.aspx" rel="nofollow">msdn.microsoft.com/en-us/library/ms683502(VS.85).aspx</a>) it clearly says "Services cannot directly interact with a user as of Windo...
<p>Code running within a service cannot directly interact with an interactive session.</p> <p>However, code running as a service with sufficient privileges can create a new process running within a specific user's desktop - getting the interactive session's user's token and calling CreateProcessAsUser, for example.</p...
Touch in cocos2d? <p>Cocos2d question??</p> <p>How do you change the touch type? Look below</p> <pre><code>image = [MenuItemImage itemFromNormalImage:@"image1.png" selectedImage:@"image2.png" target:self selector:@selector(step1:)]; Menu *menu = [Menu menuWithItems:image, nil]; image.position = cpv( -135, -185); [...
<p>MenuItem's are not currently capable of responding to 'touch began', and are hard-coded to respond to 'touch end' only.</p> <p>In Menu.m, starting on line 105, you'll see the ccTouchesBegan declaration.</p> <p>If you want to modify the current behavior of Menu, you could subclass it like so:</p> <pre><code>@inter...
Textbox stretching issue <p>I have the following code</p> <pre><code>&lt;table cellpadding="2" cellspacing="2"&gt; &lt;tr&gt; &lt;td&gt;Factory:&lt;/td&gt; &lt;td&gt; &lt;asp:TextBox ID="txtFactory" runat="server" Width="100%"&gt;&lt;/asp:TextBox&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code>...
<p>Jagd,</p> <p>Check the Wrap and MaxLength properties.</p> <p>W3Schools has some great information on WebControls.</p> <p>(http)://www.w3schools.(com)/aspnet/control_textbox.(asp) <br />---I can't post links yet, sorry---</p> <p>Good Luck,</p> <p>-Robert</p>
jQuery call function after load <p>Need to call a filter function on some options based on a radio selected <a href="http://stackoverflow.com/questions/877328/jquery-disable-select-options-based-on-radio-selected-need-support-for-all-brows">(Link here)</a>, How can I call this after the page is loaded? the radio is set...
<pre><code>$(document).ready(my_function); </code></pre> <p>Or</p> <pre><code>$(document).ready(function () { // Function code here. }); </code></pre> <p>Or the shorter but less readable variant:</p> <pre><code>$(my_function); </code></pre> <p>All of these will cause my_function to be called after the DOM loads....
How do I format a double to currency rounded to the nearst dollar? <p>Right now I have </p> <pre><code>double numba = 5212.6312 String.Format("{0:C}", Convert.ToInt32(numba) ) </code></pre> <p>This will give me</p> <pre><code>$5,213.00 </code></pre> <p>but I don't want the ".00". </p> <p>I know I can just drop th...
<p>First - don't keep currency in a <code>double</code> - use a <code>decimal</code> instead. Every time. Then use "C0" as the format specifier:</p> <pre><code>decimal numba = 5212.6312M; string s = numba.ToString("C0"); </code></pre>
How do I detect when my window is minimized with wxPython? <p>I am writing a small wxPython utility.</p> <p>I would like to use some event to detect when a user minimizes the application/window.</p> <p>I have looked around but did not find an event like wx.EVT_MINIMIZE that I could bind to.</p> <p>Anyone know of a w...
<p>Add a handler for the <a href="http://www.wxpython.org/docs/api/wx.IconizeEvent-class.html" rel="nofollow">wx.EVT_ICONIZE</a> event.</p>
better way for dynamic forms with Spring? <p>What I wonder is if there's a easier/better way to handle dynamic forms (adding form items to the dom via js) when using SpringMVC and Spring forms?</p> <p>Imaging having an Invoice object that have many LineItems.</p> <pre><code>public class Invocie { private List Lin...
<p>I've implemented a tutorial that might help you solve this using jQuery on the client side and Springs AutoPopulating list for you form backing objects.</p> <p><a href="http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/">http://eggsylife.co.uk/2009/11/30/spring-forms-dynamic-lists-and-ajax/</a><...
Silverlight asp.net WCF authentication 2.0 <p>Can anyone provide some links to <em>good</em> information on setting up Silverlight 2.0 to authenticate to a WCF Service through ASP.NET Forms Authentication?</p>
<p>I guess this link could help you <a href="http://silverlightuk.blogspot.com/2008/03/silverlight-wcf-and-aspnet.html" rel="nofollow">http://silverlightuk.blogspot.com/2008/03/silverlight-wcf-and-aspnet.html</a></p>
starting a struts2 project in eclipse <p>I am in the process of starting a struts2 project. While I was able to use struts2-blank as a quick out-of-the-box project, I have trouble creating my own struts2 project in Eclipse.</p> <p>All necessary jars are located in the web-inf/lib directory, but as soon as I add the fo...
<p>Hard to say. The error is not really Struts specific. I think you will have to provide more information about what you are doing. If you used the maven archetypes are you able to get your project to run using mvn jetty:run? Did you import your project into Eclipse as a Maven project? Are you running this insid...
Textmate whitespace highlighting <p>I want to modify the solution for highlighting trailing whitespace described <a href="http://stackoverflow.com/questions/641794/highlighting-trailing-whitespace-in-textmate-for-python">here</a> by NOT highlighting whitespace on otherwise empty lines.</p> <p>I've modified this in my ...
<p>Try assertions:</p> <pre><code>(?&lt;=\S)\s+$ </code></pre> <p>They're described nicely in <a href="http://uk.php.net/manual/en/regexp.reference.php" rel="nofollow">PHP manual</a> (they're not PHP-specific of course, just php.net happens to have quite readable version of the document).</p>
What are the benefits of enforcing restful routes in an MVC application? <p>I've been toying with the SimplyRestfulRouting assembly that comes with the MvcContrib extras, and for the most part I really like that it quickly sets up my routes and leaves me with a good convention to follow in my controllers. However, I'm...
<p>The main benefit I can see in enforcing RESTful routes -- regardless of the framework used -- is consistency. You'll always be able to know how the API will work for any resource, which will in effect give you a self-documenting API.</p> <p>It also provides a wonderful constraint while architecting the application....
Why would one choose Iron Python instead of Boo? <blockquote> <p><strong>Possible Duplicates:</strong><br /> <a href="http://stackoverflow.com/questions/600539/boo-vs-ironpython">BOO Vs IronPython</a><br /> <a href="http://stackoverflow.com/questions/193862/boo-vs-ironpython">Boo vs. IronPython</a> </p> </blockq...
<p>2 words: User Base.</p> <p>I already know so many languages that I have to keep references handy so I can remember if it's "else if", "elsif" or "elif" in whatever I'm currently working in. Unless there's a compelling reason to use another language (more than just a few small differences) I'm going to stick with on...
Obstructed folders in Subversion <p>What the heck does "obstructed" mean when you try to check into Subversion? I see two folders in red with text status of "obstructed." I don't see what this means anywhere in the docs.</p> <p>When I try the <code>cleanup</code> command, I get "folder name is not a working directory....
<p>it occurs when you have deleted or moved the .svn subdirectories (without going through SVN commands), so SVN has a corrupted view of the working copy. </p> <p>Try a cleanup first, and if that doesn't solve it, revert (or update) the directory to restore the subdirectory .svn folders.</p>
Javascript firefox extension to get the text around the link <p>Is it possible for me waiting for a user to click a link, and upon clicking the link the link's text would be obtained?</p> <p>Maybe by using onClick?</p>
<p>If you mean handling the click event for the links in the page that the user is browsing then this is how: </p> <pre><code>// handle the load event of the window window.addEventListener("load",Listen,false); function Listen() { gBrowser.addEventListener("DOMContentLoaded",DocumentLoaded,true); } // h...
Unable to have Bash-like C-x-e in Zsh <p>I found the following command in Bash which Zsh does not have in the same buttons at the <a href="http://stackoverflow.com/questions/784019/how-can-i-invoke-vim-with-c-x-e-for-long-complex-tricky-commands">thread</a>.</p> <pre><code>Ctrl-x-e </code></pre> <p>It opens the curre...
<p>I'm using it with VIM mode. Basically ESC-v (or simply v if already in command mode) opens the terminal. It is setup by:</p> <pre><code>autoload -U edit-command-line zle -N edit-command-line bindkey -M vicmd v edit-command-line </code></pre> <p>Here is how to setup it in emacs mode:</p> <pre><code>autoload edit-c...
Thumbnail access through for loop. <p>I am creating a photo gallery and am currently stuck on recognizing which thumbnail links to which pic.I'm using an addEventListener function, kindly suggest the method to go about.</p>
<p>Not entirely sure what you mean here, but let me make a suggestion:</p> <p>If your thumbnails all link directly to their larger counter-part, you can prevent them from navigating away from the page, and instead bring the larger image in asynchronously:</p> <pre><code>&lt;ul class="thumbnails"&gt; &lt;li&gt;&lt;a...
A question about storing data that should have been in the same table <p>The software I'm working with has 2 tables, lead and customer. When we sell our product to someone, a record is created in the customer table with data from the lead table (as well as some additional data).</p> <p>Currently there is no relationsh...
<p>Do you really need it to go both directions (i.e. 1:M leads to customers and 1:M customers to leads)? If so, a composite table sitting "between" the two could be the way to go. Each record would contain the PK from customer and the PK from lead (linking the two).</p> <p>If you just need to know how many leads are l...
Find out how many users are online in PHP? <p>Every visit to my website updates a user's individual hit counter and updates a column for <code>time()</code> based on their ip address and id stored in a cookie. So when coming to output the data, what's a more efficient way of my following code with less database calls, ...
<pre><code>SELECT SUM(lastOnline &lt;= 60) AS one_minute, SUM(lastOnline &lt;= 300) AS five_minutes, ... SUM(lastOnline &lt;= 30240000) AS one_month FROM usersonline </code></pre> <p>Using this method, you can get everything you need in a single query with a single table scan; it doesn't get much more efficie...
<table> for layouts is evil right? <p>Just found out that this site uses tables for layouts. Does anyone find this disturbing considering the nature of the site? I really don't know what to believe anymore :-)</p> <p><a href="http://www.w3schools.com/" rel="nofollow">http://www.w3schools.com/</a></p>
<p>More eloquent people than I have made some compelling arguments to the contrary. Here's some recent (because that's important when it comes to browser technology) essays to check out: </p> <ul> <li><a href="http://iamelgringo.blogspot.com/2009/02/tables-vs-css-css-trolls-begone.html">http://iamelgringo.blogspot.co...
Debug Program option in Windows 7 <p>I noticed that in Windows 7, unlike XP, if a program crashes that I am debugging in Visual Studio 2008, I don't get the option to Debug the program. Rather, it just says that the program crashed and Microsoft is looking for a solution.</p> <p>Right now, if my program throws an exc...
<p>I see that if you click to send the error to MS, it finally gives you a Debug option. </p> <p>Also, if you go into Control Panel->Action Center->Change Action Center Settings->Problem Report Settings and change the radio selection to "Each time a problem occurs, ask me before checking for solutions" you get the De...
Pushing updates to a pruned Mercurial branch <p>I have two related repositories, a master, which contains a number of sensitive files which must not be leaked, and a 'public' version, created with hg convert with --filemap to exclude the sensitive files and directories.</p> <p>I would like further updates to the maste...
<p>The easiest solution would probably be to simply put a clone of 'slave' inside 'master'. The inner clone will be ignored by the outer clone -- so when you commit changes to the secret files you wont risk mixing them with the public files. Pushing and pulling will works like normal and you would have to do it twice, ...
DataGridView on WinForms throws exception when I delete a record <p>I have not done a lot with WinForms so I wonder if someone could give me a little assistance with this. I have a DataGridView that is bond to a IList&lt;>. When I delete a selected record from the collection (ILIST&lt;>) I get the following exception:<...
<p>I do it this way, not using a DataSource as I had to customise the cell outputs.</p> <pre><code>// for inserts foreach (var item in data) { DataGridViewRow newRow = new DataGridViewRow(); newRow.CreateCells(myDataGridView, your, data, for, each, cell, here); ...
Which iPhone app ad solution gives the best rates? <p>I have a free iPhone app downloaded by 3,000 users, most of whom use my app at least once per day. So I plan to show ads in my app. Which ad solution is best? I looked in some sites, but no one is giving clear details about CPMs.</p> <p>How much will I get for 1...
<p>There are many iPhone ad networks. Perhaps the most popular is AdMob.</p> <p>I've been using it for my application, iLaugh, for several months now and it's generating decent revenue (average $2000 per month on 175,000 daily ad requests). That low number is partly due to the fact that AdMob displays less than half o...
Animate the drawing of a line (Quartz 2D?) <p>How would you go about animating the drawing of a line in a UIView on the iPhone? Is this possible? It can be drawn but can it <em>easily</em> be animated so it appears to be hand drawn?</p>
<p>There's no built-in way to do this no. You'd have to redraw the line repeatedly, interpolating between the start and end points using a timer callback to invalidate the view and trigger a redraw. Of course the redraw would have to draw everything in the area of the view bring redrawn which is potentially slow. </p> ...
iPhone / .NET WCF Interoperability <p>I'm architecting a .NET "web service" and an iPhone application that will consume these services. I'm curious if there are any best practices for architecting the protocol for exchanging data between the two. SOAP-based web services feel too heavy to me for an iPhone app. Perhap...
<p>We're currently using a WCF based REST/POX service for one of our applications. I would recommend sticking with REST/POX as there are no class generators for web services (that i know of) on the iPhone like you get in the .NET world by adding a service reference. This will make the parsing a lot simpler as you won...
How to activate/deactivate checklist items dynamically according to checked items? <p>I have a <code>checkboxlist</code> wich contains a list of services loaded from a database table. Each of these services can only be executed alone or with some other specific services. For example, if I select "Transfer Property" I...
<pre><code> void ControlCheckBoxList(int selected, bool val) { switch (selected) { case 1: case 2: case 3: checkedListBox1.SetItemChecked(5, !val); break; case 6: checkedListBox1.SetItemChecked(1, true...
How to update to Ruby 1.8.7 <p>I am new to Ruby, so bear with me. I've been trying to update my Ruby to 1.8.7 and just ran into many issues on my Mac OS X (10.5.7).</p> <p>So really, how do you update to Ruby 1.8.7?</p> <p>Thanks.</p>
<p>The simplest answer is "don't". Ruby 1.8.7 was an attempt to create bridging release between 1.8 and 1.9, and the consensus of the community was that this was not necessary, so there was little support for it before 1.9 was finalized. The general recommendation is either to stick with 1.8 (the version is supplied wi...
How to pass a javascript object array to php using POST <p>Lets say I have an array of javascript objects, and I am trying to pass those objects to a php page to save them into a database. I have no problems passing a variable to the php and using $_POST["entries"] on that variable but I can't figure out how to pass an...
<p>maybe you need to take a look at json and jQuery ajax methods:</p> <p>.- <a href="http://blog.reindel.com/2007/10/02/parse-json-with-jquery-and-javascript/" rel="nofollow">http://blog.reindel.com/2007/10/02/parse-json-with-jquery-and-javascript/</a></p> <p>.- <a href="http://us.php.net/json_decode" rel="nofollow">...
Interceptor's getEntityName is not used. Bug in Hibernate? <p>I implemented getEntityName method in my interceptor. I was expecting that the method will be called by Hibernate to resolve entity name of a (transient) object when I save the object. However, the method getEntityName from the interceptor was not used in th...
<p>In Hibernate Core 3.3.2 the resolution of a subclass entity-names has been implemented in a much better way than I had in my fix.</p> <p>Now in a Tuplizer there is a method determineConcreteSubclassEntityName(Object entityInstance, SessionFactoryImplementor factory) which I can overwrite in my case. The Tuplizer cl...
Java anonymous class that implements ActionListener? <p>I was recently doing a programming assignment that required us to implement in code a program specified by a UML diagram. At one point, the diagram specified that I had to create an anonymous JButton that displayed a count (starting at one) and decremented each ti...
<p>I usually go something like this:</p> <pre><code>JPanel panel = new JPanel(); panel.add(new JButton(new AbstractAction("name of button") { public void actionPerformed(ActionEvent e) { //do stuff here } })); </code></pre> <p>AbstractAction implements ActionListener so this should satisfy the task.</...
better way of linq multiple joins? <p>Here is what I am trying to do:</p> <p>I have three tables, manifest, details and billingJournal</p> <p>for each manifest there are details and may be a billingJournal entry or not, if there is and it has the field recordType = 1 then billingJournal.amount is the billing amount a...
<p>Here is a sample of what Rick is talking about with simulating an outer join in LINQ. My VB.Net is rusty but I know this works in C# very nicely :)</p> <pre><code>Dim query = From detail In db.details _ Where detail.InboundDate &gt;= CType(MonthCalendar1.SelectionStart, DateTime) _ ...
How do you track time spent working on a project? <p>I'm not looking for anything complicated or enterprisey. I'm wondering if there exists something simple where I can "punch" in an out and say what I was working on. I'm interested in both how long I spend on different projects and how much I actually work per day. A ...
<p>I still use, and prefer, the Big Red Book method of time monitoring. I never managed to find any application that was as portable as that method.</p> <p>It involves carrying around a big red book (no, seriously) and just writing down what you're working on.</p> <p>Then, if it needs to go into an application, I do ...
How to control ASP.NET Validator Controls Client Side validation from JavaScript? <p>How to control ASP.NET Validator Controls Client Side validation from JavaScript?</p>
<p>If you mean writing custom validation functions on the client side, this is fully supported by the CustomValidator. Simply give it the name of your javascript function that you'd like to use for validation, for example:</p> <pre><code>&lt;script language="javascript"&gt; function MyTextBoxValidation(source, args) ...
Can I change BeautifulSoup's behavior regarding converting XML tags to lowercase? <p>I'm working on code to parse a configuration file written in XML, where the XML tags are mixed case and the case is significant. Beautiful Soup appears to convert XML tags to lowercase by default, and I would like to change this behav...
<pre><code>import html5lib from html5lib import treebuilders f = open("mydocument.html") parser = html5lib.XMLParser(tree=treebuilders.getTreeBuilder("beautifulsoup")) document = parser.parse(f) </code></pre> <p>'document' is now a BeautifulSoup-like tree, but retains the cases of tags. See <a href="http://code.googl...
Prioritized list of tasks <p>I might have to write an application for this, but I thought I'd ask here first, maybe someone else already wrote it.</p> <p>I am looking for a small, preferably web application with the following features:</p> <ul> <li>everyone logs on, so the app can know who does what</li> <li>everyone...
<p>I've not seen a shared todo list before (other than sharing without write changes) but if you have the money to buy a book, then pick up <a href="http://www.apress.com/book/view/9781590597811" rel="nofollow">Practical Rails Projects</a>. The first example in that is an online TODO list application with drag-drop reo...
Partition sort programming problem <p>I need an algorithm to select the <em>k</em>th largest or smallest value. The values will be ints. My instructor told me to use a modified partition algorithm to find the <em>k</em>th largest or smallest value. Any thoughts? </p>
<p>The following is a description of the quickselect algorithm. I will assume that you want to find the <em>k</em>th smallest value.</p> <ol> <li><p>Take the first element of your array. This will be your pivot. Keep track of its position.</p></li> <li><p>Partition the array based on this pivot. Elements smaller than ...
how can i get links on page that have a certain word in them with javascript <p>I am trying to get the link that contains a word on a page and refresh them to another page, in a bookmarklet.</p> <p>Here is the code I am not getting to work for a bookmarklet:</p> <pre><code> javascript: for (i=0; i &lt; docu...
<p>Greg was sharp to catch that you really want the link "<em>label</em>", rather than the href URL. But I would grab all of the elements with <strong><em>getElementsByTagName('A')</em></strong>. Then iterate through their <strong><em>firstChild</em></strong> nodes.</p> <p>It's just as easy to pick up the '<strong><em...
understanding Jasper Reports and Hibernate and parameters <p>I'm sorry this is a little bit of a bad question since my problem is that I just don't understand which approach to take for this. I've got this hibernate database that works great and I want to use <code>JasperReports</code> to create reports based on the d...
<p>I think you may need to look in <a href="http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/data/JRBeanCollectionDataSource.html" rel="nofollow">http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/data/JRBeanCollectionDataSource.html</a></p> <p>this is a data source collection of ...
iPhone - creating a loading view <p>When the app is in one view controller, I want to add a view to simulate that data is being loaded when I click my tab bar controller to open another view controller. Example: When I the app is in the recorder-view, I want it to show a loading view (a view with a activity indicator) ...
<p>Right now it sounds like you have a UITabBarController That takes up the whole screen. What I would do is put the loading view above the TabBarController and hide it when not necessary. I would create a subclass of loadingViewController in the same xib your tab bar controller came from (or programatically if you d...
How do I insert a large number of rows in MySQL? <p>How do I insert for example 100 000 rows into MySQL table with a single query?</p>
<pre><code>insert into $table values (1, a, b), (2, c, d), (3, e, f); </code></pre> <p>That will perform an insertion of 3 rows. Continue as needed to reach 100,000. I do blocks of ~1,000 that way when doing ETL work.</p> <p>If your data is statically in a file, transforming it and using <em>load data infile</em> wil...
Is there any known issues with using linked servers between 64bit sqlserver2005 and 32bit sql2000 <p>I seem to have problem getting linked servers working to query between database/servers running sql2000 32bit and 64bit sql2005. Is this a known bug? If so, is there a workaround, or fix?</p>
<p>Well, there's <a href="http://support.microsoft.com/kb/906954" rel="nofollow">this</a> issue.</p> <blockquote> <p>To resolve this problem, manually run the Instcat.sql script that is included with SQL Server 2000 SP3 or SP4 on the 32-bit SQL Server 2000 server or on the SQL Server 7.0 server.</p> </blockquote>
Allow users to change font size in a webpage <p>I would like to be able to change the size of text in a web page, I guess jQuery can be used, but I have no experience in javascript.</p> <p>Another problem is that the webpage is a phtml file, and multiple php echo commands are used. And the page is made up of multiple ...
<p>The approach I would take is to apply a font-size percentage to the body tag of the html</p> <pre><code>body { font-size: 62.5%; } </code></pre> <p>Then for all other elements specify font-size in ems, which generates the size as a scaled up percentage of the inherited font-size</p> <pre><code>h1 { font-s...
javascript to jquery <p>This function call ResizeableTextbox('myRT'); works well inside javascript(produces a resizeable text box) but doesn't work inside jQuery code.Why?</p> <p>This produces the resizeable textbox.</p> <p><code>&lt;script type="text/javascript"&gt;</code><br /> ResizeableTextbox('myRT');<br /> <c...
<p>You want to append the resizable textbox to .menu li? You could do this:</p> <pre><code>var rt = new ResizeableTextbox('myRT'); //this is for making resizeable text box $('.menu li').append(rt); </code></pre> <p>However Im not quite sure if this is what you wan't. Your question is rather vague.</p>
Is Struts 2 available as an OSGi bundle? <p>I have a server application that consists of multiple OSGi bundles, some mine, some third-party. One of the bundles provides a web frontend using Struts. The necessary Struts libraries live inside the web front-end bundle.</p> <p>Now I want to add a second bundle that provid...
<p>Take a look at the current struts bundles on <a href="http://repo2.maven.org/maven2/org/apache/struts/struts2-core/2.1.6/" rel="nofollow">http://repo2.maven.org/maven2/org/apache/struts/struts2-core/2.1.6/</a>.</p> <p>If you download struts2-core-2.1.6.jar for example, extract it and take a look at META-INF/MANIFES...
Is there a way to access VBA help files from the command line <p>I'm going to have to write a number of vba modules for a project I'm working on, and would prefer to use SciTe to the built in editer in Office.</p> <p>SciTe allows you to redirect the effect of hitting F1 to a arbitary command with the selected text as ...
<p>Another approach is to use the HTML Help command line program HH.EXE to either show specific pages, or to decompile a particular CHM into HTML files.</p> <p>Go to the folder mentioned by Lunatik in a command window and enter this command:</p> <pre><code>hh -decompile html vbaac10.chm ^^ # ac ...
C# - Determine if List<T> is dirty? <p>I am serializing Lists of classes which are my data entities. I have a DataProvider that contains a List. </p> <p>I always modify items directly within the collection.</p> <p>What is the best way of determining if any items in the List have changed? I am using the Compact Framew...
<p>If the items you add to the list implement the <a href="http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx"><code>INotifyPropertyChanged</code></a> interface, you could build your own generic list that hooks the event in that interface for all objects you add to the list, and u...
Which User Control event comes between data binding (other controls) and Render? <p>I'm currently building a user control that displays a message when a Repeater is empty.</p> <p>The idea is simple, provide the user control with the ID of the Repeater. When the user control is rendered look up the Repeater and check <...
<p>Consider the Page's PreRender event. That way binding has happened but nothing has yet been rendered although they are just about to.</p>
Postgresql and PHP: is the currval a efficent way to retrieve the last row inserted id, in a multiuser application? <p>Im wondering if the way i use to retrieve the id of the last row inserted in a postgresql table is efficent..</p> <p>It works, obviously, but referencing on the serial sequence currval value could be ...
<p>If you use a newer version of PostgreSQL (> 8.1) you should use the RETURNING clause of INSERT (and UPDATE) command.</p> <p>OTOH if you insist on using one of the sequence manipulation functions, please read the <a href="http://www.postgresql.org/docs/current/static/functions-sequence.html">fine manual</a>. A point...
NHibernate Interceptor Auditing Inserted Object Id <p>I am using NHibernate interceptors to log information about Updates/Inserts/Deletes to my various entities.</p> <p>Included in the information logged is the Entity Type and the Unique Id of the entity modified. The unique Id is marked as a <code>&lt;generator class...
<p>I've worked around this problem by adding a list to my interceptor class which is populated with objects during the <code>OnSave</code> implementation.</p> <p>In the <code>PostFlush</code> implementation the list is iterated over and each element is audited as an insert. The objects in this list have been persisted...
ASp.NET MVC: TryUpdateModel doesn't update all properties <p>I've got the following action:</p> <pre><code>public ActionResult Create() { var entity = new Employee(); TryUpdateModel(entity, new[] { "Person.Name", "Code", "CompanyID" }); if (ModelState.IsValid) { var result = Service.MergeEmployee(...
<p>Make sure the Person object is initialized in the Employee constructor; if it's null to begin with it is probably not updated properly.</p> <pre><code>public Employee() { Person = new Person(); } </code></pre>
Creating Delta Diff Patches of large Binary Files in C# <p>I looking for a way to create Delta Diff Patches of Large Binary Files (VMWare Virtual Disk Files). Is there an implementation in C# or any useful methods in the the .NET Framework.</p> <p>Any help is appreciated. Thanks.</p> <p>rAyt</p>
<p><a href="http://www.daemonology.net/bsdiff/">bsdiff</a> was designed to create very small patches for binary files.</p> <p>As stated on its page, it requires <code>max(17*n,9*n+m)+O(1)</code> bytes of memory and runs in <code>O((n+m) log n)</code> time (where <code>n</code> is the size of the old file and <code>m</...
SVN on development server <p>Hi I'm new to SVN and would like to know a couple of things or if someone can point me in the right direction either advice or some sites to read.</p> <p>I have subversion and tortoise installed and have subversion installed correctly but I would like to know how I can work on files in my ...
<p>This question isn't entirely clear, but I take it to mean that you want to work on a copy of your data in the htdocs folder on your local machine, view them via the web server on your local machine and, when you are happy, commit the changes and roll them out on the production machine.</p> <p>If so, congratulations...
Selecting text in RichTexbox in C# deletes the text <p>I have typed in the following text in a control derived from Richtextbox</p> <p>"The world is {beautful}".</p> <p>My main intention is to create a link for the word beautful. I can create this using CFE_LINK , but that's when I select the text.</p> <p><strong>W...
<p>I suspect that when the '}' key is pressed, your code runs before the character is sent to the textbox.</p> <p>So you select the text, and then the '}' character is sent to the textbox, overwriting the selection.</p> <p><strong>Edit:</strong> Yup, reproduced it.</p> <p>I'm not sure off the top of my head how to s...
is it possible to disable the submit behaviour of a server side button using Javascript <p>is it possible to disable the submit behaviour of a server side button using Javascript? Note: I dont want to disable the button, the user will click the button but it will not submit/get any value from server.</p> <p>scenario:<...
<p>You need to make sure that UseSubmitBehavior is set to false in the markup, then you need to make sure you return false before the postback javascript is called.</p> <p><hr /></p> <p>Edit:</p> <p>You should return the value of your function, then in the function retrun true if you want a postback, and return fals...
How to send Linq data class via WCF and bind input control with this class property? <p>For <strong>strongly-typed</strong> &amp; <strong>type-safe</strong> solution, I have to do the following step. </p> <ol> <li>Create some Silverlight application.</li> <li>Binding input control to Linq data class.</li> <li>Validate...
<p>Well, I'm glad you know that .NET RIA Services will provide all of those things but I understand size is a consideration. Keep in mind though, since it looks like you're considering Silverlight 3 you can use the option to cache the framework assemblies to greatly reduce your Xap size:</p> <p><a href="http://www.wi...
Configuring dojo in eclipse <p>How do I configure Dojo in Eclipse? Is there any plugins? What are the steps for doing the same? I am using eclipse ganymede.I get a error when I try using the ATF</p>
<p>I don't think ATF is actively being developed. You might try Aptana. Otherwise, using Dojo just amounts to loading a directory in your project. Most JS tools beyond that probably have little to do with Dojo</p>
needed in java stored procedure with OUT parameter for MYSQL <p>I want to create a java program for connection with mysql database. I want to use stored procedure with 1 out parameter and 1 in parameter.</p> <p>How to retrieve result using java? Is there any working example?</p>
<p>The <a href="http://dev.mysql.com/doc/refman/5.1/en/connector-j-usagenotes-basic.html" rel="nofollow">MySQL documentation "Basic JDBC Concepts" page</a> seems to have lots of detailed examples. Have you tried those? If you've tried but are having problems, please post some code.</p>
Are there any issues with Isolated Storage and Windows Vista? <p>My problem is similar but not the same as that exhibited in:</p> <blockquote> <p><a href="http://stackoverflow.com/questions/72626/could-not-find-file-when-using-isolated-storage">"Could not find file" when using Isolated Storage</a></p> </blockquote> ...
<p>Isolated storage location will change as soon as you change the application version.<br /> The proper place to store application configuration is in \ProgramData for all users and \Users\\AppData for user settings.</p>
Infragistics UltraWinGrid EmptyDataText Equivalent? <p>We're using Infragistics UltraWinGrid as a base class for customized controls. One of the projects that will use this control to display search results has a requirement to display a user friendly message when no matches are located.</p> <p>We'd like to encapsula...
<p>I don't know if this will help, but here's to finishing up the thread. I didn't find a built in way, so I solved this problem as follows: In my class which inherits UltraGrid</p> <pre><code>Public Class MyGridPlain Inherits Infragistics.Win.UltraWinGrid.UltraGrid </code></pre> <p>I added two properties, one to s...
How to style links via textile? <p>Is it possible to apply style attribute or class to link in textile? I've tried to find a reference, but found nothing.</p>
<pre><code>"{color:red}This is a testlink":http://www.google.com </code></pre> <p>or</p> <pre><code>"(myclass)This is a testlink":http://www.google.com </code></pre>
error handling in php <p>I have a file that opens a URL and reads it and does the parsing. Now if that URL goes dwon and my file fails to open it then what i need is that an error mail should get generated but on terminal or konsole no error message should appear. how can i do that? Plz help!!</p>
<p>You can always do something like this (i'm assuming you are using file_get_contents)</p> <pre><code>$file = @fopen("abc.com","rb"); if(!$file) { @mail(.......); die(); } //rest of code. Else is not needed since script will die if hit if condition </code></pre>