input stringlengths 51 42.3k | output stringlengths 18 55k |
|---|---|
Excel automation - Select all active cells <p>I have an app where I put a lot of data into an Excel Worksheet. Once I'm done, I would like to select all the cells from the top left to the bottom right where I have put data in. E.g. say I put data into A1, A2, A3, B1, B2, B3, C1, C2, C3 (a 3x3 grid). How can I select ju... | <p>Here you go:</p>
<pre><code>Range("A1").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
</code></pre>
<p>Or if you don't necessarily start at A1:</p>
<pre><code>Range("C6").Select ' Select a cell that you know you populated'
Selection.End(xlUp).Select
Selec... |
How do I give text or an image a transparent background using CSS? <p>Is it possible, using CSS only, to make the <code>background</code> of an element semi-transparent but have the content (text & images) of the element opaque?</p>
<p>I'd like to accomplish this without having the text and the background as two s... | <p>Either use a semi-transparent <a href="http://en.wikipedia.org/wiki/Portable_Network_Graphics">PNG</a> image or use CSS3:</p>
<pre class="lang-css prettyprint-override"><code>background-color:rgba(255,0,0,0.5);
</code></pre>
<p>Here's an article from css3.info, <em><a href="http://www.css3.info/opacity_rgba_and_co... |
C# what does the == operator do in detail? <p>in c# what does exactly happen in the background when you do a comparison with the "==" operator on two objects? does it just compare the addresses? or does it something like Equals() or CompareTo() ?</p>
<p>PS: what about the "==" operator in java? does it behave the same... | <p>As far as I know:</p>
<ul>
<li>it compares value types by value (equality)</li>
<li>it compares reference types by reference (identity)</li>
<li>except if the == operator is overloaded, then it calls that one.</li>
</ul>
<p>Equals is implemented in object and can be overridden as well. The default implementation i... |
iphone: caching and updating xml fields <p>Thanks for your help. Here I have another question. I get the data through XMLParsing, now I want to store it in iphone's cache, and the XML Fields are updates every 12 hours.how can i check that XML Fields are change or not? and how can I store the data in iphone's cache memo... | <p>i just answered them on another post.
<a href="http://stackoverflow.com/questions/805891/safari-cache-size-for-iphone-3-0/806010#806010">http://stackoverflow.com/questions/805891/safari-cache-size-for-iphone-3-0/806010#806010</a></p>
<p>how to store values clientside can be read here</p>
<p><a href="https://develo... |
Scope Of ASP.Net Variables <p>I'm having a bit of a weird problem to do with scope of variables. I've declared a variable in the following way:</p>
<pre><code>public partial class MyClass: System.Web.UI.Page
{
protected static int MyGlobalVariable;
protected void MyFunction()
{
MyGlobalVariable = ... | <p>If you declare <code>MyGlobalVariable</code> as static, then only one instance of it will exist for all instances of the class, so as you said, multiple users, on multiple instances of teh same page will be accessing the same value.</p>
<p>either declare the int without the <code>static</code> modifier or if you ne... |
Good name for "URL-friendly title"? <p>I'm creating a dynamic website with articles. Each article has a title, like "How does one eat a dog and live with it?", but also something I'm now calling "URL Friendly Title", such as "eating-a-dog".</p>
<p>I'm looking for a better word for "URL Friendly Title", because it's qu... | <p>I'm sorry to say that "slug" really does seem to be the standard term. <a href="http://writerway.blogspot.com/2007/04/slugs-on-web.html" rel="nofollow">Here is</a> somewhat of an <a href="http://en.wikipedia.org/wiki/Etymology" rel="nofollow">etymology</a> on the term, it seems it comes from the (oldschool, print) <... |
Inetmgr(iis6) from run dialog and command line <p>How do i change the behaviour of Run Task - inetmgr - so it runs the IIS6 compatible version?</p>
| <p>I just dug around a bit and found that typing 'inet' instead does the trick</p>
|
Optimization settings in VS <p>I am working on an application/GUI created with Win32/ATL .
So there is UI field( text field) which works fine as designed in debug build. With release build it gets malformed and it looks like the width of text field is infinite.
It works fine in debug build but creating issues in releas... | <p>VC++ fills its runtime-memory in debug mode with special values. It does not ensure any fixed or zero-initialization though. Read this SO thread for details. <a href="http://stackoverflow.com/questions/65724/uninitialized-memory-blocks-in-vc">Uninitialized Memory Blocks</a>. These values may not crash the applicatio... |
Input string was not in a correct format <p>i simply created a wcf service which is printing <code>"hello world"</code>. created a sequential console workflow, added a send activity and code activity to the workflow. referenced the service here. configured the send activity. created dependency property for return value... | <p>On Win7 run 'lodctr /R' from an elevated command prompt and restart to reload perf counters.</p>
<p>This KB has more details for older OS's.
<a href="http://support.microsoft.com/kb/300956" rel="nofollow">http://support.microsoft.com/kb/300956</a></p>
|
Choosing a new Setup Tool <p>We have a project with several applications including web applications, web services, windows services and windows applications. We also have prerequisites like SQL Server Express, .NET 2.0 and others. We don't have much user interaction during the setup but we want to add more intelligence... | <p>After reading these answers we ended up deciding to use Advanced Installer, it has the advantage of adhering to the MSI standards and also of being quite simple to use.</p>
|
C# How to show a text bubble on a user control? <p>I'm developing an user control in .NET 3.5. As reaction to some event, I would like to show a simple bubble containing a short text on this control, similar to the well-known system tray notification bubbles. I'm sure this is a very easy task, could you give me a quick... | <p>use <a href="http://msdn.microsoft.com/en-us/library/system.windows.forms.tooltip.aspx">ToolTip</a></p>
<pre><code>System.Windows.Forms.ToolTip myToolTip = new System.Windows.Forms.ToolTip();
myToolTip.IsBalloon = true;
myToolTip.Show("Some text", this.WhereToShow);
</code></pre>
|
What breaks a .net binary (dll) interface <p>Consider two .net dlls. The first, "application.dll" contains the main business logic and data access code. The second, "webservice.dll" consists mostly of WebMethods that link to objects and methods with application.dll for the purpose of providing webservice calls to exist... | <p>Most things will be fine; some things that will break it:</p>
<ul>
<li>Removing* types that are used (unless you are using type-forwarding)</li>
<li>Removing* methods that are used (including constructor)</li>
<li>Changing the signature of methods (that are used)</li>
<li>Changing public fields to properties (that ... |
TeamBuild - Is it possible to choose what projects to compile at build-time? <p>I am automating my build process using TeamFoundation and I need to choose what projects to compile according to the .proj file from the build. Here is the full scenario:</p>
<p>I have a .proj file which uses a .sln file in order to compil... | <p>Look at the SolutionToBuild section in the TFSBuild.proj file.</p>
<pre><code><SolutionToBuild Include="$(BuildProjectFolderPath)/path/MySolution.sln">
<Targets>MyCustomTarget1;MyCustomTarget2</Targets>
<Properties> Configuration=Release</Properties>
</SolutionToBuild>
</co... |
VS2005/VS2008 DataSet designer, insert a row into a table that has an autogenerated guid column <p>I have a strongly typed DataTable created with the VS2005/VS2008 DataSet designer.</p>
<p>The table has a Primary Key column that is a guid, which gets populated by SQL server. The problem is when I want add a row (or m... | <p>Possibly one of these:</p>
<ul>
<li>If you don't need the column in your DataSet for your app, then remove it.</li>
<li>If you want the column but don't care to give it a value, then change it to allow DBNull.</li>
<li>You can always turn off constraint enforcement (probably a bad idea): DataSet.EnforceConstraints ... |
How do I write a join query across multiple tables in CakePHP? <p>can anyone tell me, how to retrieve joined result from multiple tables in cakePHP ( using cakePHP mvc architecture). For example, I have three tables to join (tbl_topics, tbl_items, tbl_votes. Their relationship is defined as following: a topic can have ... | <pre><code>$markers = $this->Marker->find('all', array('joins' => array(
array(
'table' => 'markers_tags',
'alias' => 'MarkersTag',
'type' => 'inner',
'foreignKey' => false,
'conditions'=> array('MarkersTag.marker_id = Marker.id')
),
array(
... |
Azure tools use wrong certificate for publishing <p>I am developing a Windows Azure Demo Site which uses HTTPS instead of HTTP. So I configured my Azure project to use one self-signed certificate for local development and another (not self-signed) certificate for publishing it into the cloud, just like <a href="http://... | <p>This was a bug in the January 2009 CTP that was fixed in the March 2009 CTP. Which version of the Windows Azure Tools are you using?</p>
|
Capture CPU and Memory usage dynamically <p>I am running a shell script to execute a c++ application, which measures the performance of an api. i can capture the latency (time taken to return a value for a given set of parameters) of the api, but i also wish to capture the cpu and memory usage alongside at intervals of... | <p>I'd suggest to use '<a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?time" rel="nofollow">time</a>' command and also '<a href="http://unixhelp.ed.ac.uk/CGI/man-cgi?vmstat" rel="nofollow">vmstat</a>' command. The first will give CPU usage of executable execution and second - periodic (i.e. once per second) dump of CPU/m... |
Naming conventions for BOOL Obj-C 2 properties? <p>I have a readonly BOOL property. What is dominant naming pattern here?</p>
<p>Background: for plain old method declarations, the accepted pattern</p>
<pre><code>- (BOOL)isEditable;
- (void)setEditable:(BOOL)flag;
</code></pre>
<p>In a @property world, that would typ... | <p>quoted from <a href="http://developer.apple.com/iphone/library/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html#//apple%5Fref/doc/uid/20001282">ADC</a></p>
<blockquote>
<p>If the attribute is expressed as an
adjective, the format is:</p>
<pre><code>- (void)setAdjective:(BOOL)flag;
- ... |
using a form variable with a file upload script <p>I am using this form as a file upload form(as part of a larger php script, $pk is sanitized in the actual thing):</p>
<pre><code><?php
if (isset($_GET["pk"]))
{ $pk = $_GET["pk"];}
echo '<form action="up.php" method="post"
enctype="multipart/form-data">
<... | <pre><code>$_POST['pk']
</code></pre>
<p>but you'll see <code>$pk</code> I guess, because you're using single quotes to echo the string.</p>
|
Simulate Mouse move/click/keyPress in an application that is not active <p>I know how to simulate mouse and keyboard events, but they act as if the user did them, so they will affect the window that is active. What I need is to simulate one of those inputs, but in a Window that is not active. </p>
<p>I'm not saying th... | <p>You can try the <a href="http://www.google.com/url?sa=t&source=web&ct=res&cd=1&url=http%3A%2F%2Fmsdn.microsoft.com%2Fen-us%2Flibrary%2Fms747327.aspx&ei=SK75Sdy3KJi6jAf38pihAw&rct=j&q=microsoft%2Bui%2Bautomation&usg=AFQjCNHsMCv84Cc5H5kxooxXhtG7bucO4Q" rel="nofollow">UI automation API</... |
ComboBox bound to an enum type's values while also having a "blank" entry? <p>If I bind a WinForms ComboBox to an enum type's values, i.e.</p>
<pre><code>combo1.DropDownStyle = ComboBoxStyle.DropDownList;
combo1.DataSource = Enum.GetValues(typeof(myEnumType));
</code></pre>
<p>Who knows how I could achieve the same r... | <p>Not sure if you guys have tried all of the code that you've been posting or not, but you can't add items do a databound ComboBox. This is winforms, not WPF, so there is no "DataBind" function.</p>
<p>You could do this:</p>
<pre><code>public static string[] GetEnumValues<T>(bool includeBlank)
{
List<s... |
WCF Timing out from Windows Services but not Web Applications <p><strong>Hi All</strong></p>
<p>I am currently having an issue calling a WCF service from a windows service. My Application Solution looks like this.</p>
<ul>
<li>Web Administration Console (Web Project)</li>
<li>Central Control (Windows Service)
<ul>
<l... | <p>verify that all the endpoints in the appconfig match the settings in the admin webapp's webconfig. each one sets various timeout values, ie:</p>
<pre><code><system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_ILookupService" closeTimeout="00:01:00"
... |
What's a good PL/SQL source code analysis tool? <p>What's a good PL/SQL source code analysis tool?</p>
| <p>Only one I'm aware of is <a href="http://www.quest.com/oracle/" rel="nofollow">toad</a></p>
|
Does the new asp:chart control need to be installed on the server or can it be used from the bin folder <ul>
<li>I have installed the new <code>asp:chart</code> control on my machine and have built an app that uses it. </li>
<li>All is working well so far. Now I want to deploy my app in a hosted environment. </li>
<l... | <p>Apart from deploying the assembly to the bin folder, you also need to configure a folder with write permission to temporarily store the chart images.</p>
<p>In web.config under</p>
<pre><code><appSettings>
<add key="ChartImageHandler" value="storage=file;timeout=20;dir=D:\TEMPDUMP\;"/>
...
</co... |
Infragistics Controls - are they stable/easy to learn? <p>What is your opinion on Infragistics controls (both Web and Win)? Is this a stable library? What do you feel about the learning curve?</p>
| <p>we seriously had huge problems with their controls</p>
<ul>
<li>Help was not good at all and so vague.</li>
<li>the controls felt so heavy and buggy.</li>
<li>support was to slow.</li>
</ul>
<p>now we have tried all of the big names Devexpress, Telerik, ComponentArt, Obout, ComponentOne.</p>
<p>and honestly Teler... |
How do I apply an effect to a Border but not to its contents in WPF? <p>I have a WPF application that has a 3rd party data grid with a border around it. I've used the <code>DropShadowEffect</code> to put a shadow behind the border, but this seems to affect performance somewhat (not nearly as much as a <code>BitmapEffe... | <p>The link from gcores had the answer, which is to put the border and its content together in the same grid so the content overlays the border.</p>
<pre><code><Window x:Class="WpfEffectTest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winf... |
MS Access 2007 - Semi-Autonumber <p>I am building my own CRM access database that will contain a list of contacts. I would like to have an opportunity reference one contact as an employee, and another as the customer. Is there a way that I can add employees using their internal user ID (always 4 digits) and autonumbe... | <p>You cannot assign an ID to an autonumber field. I might suggest adding an employeeID field to your contacts table that would have the employee ID number. The contact ID would still be an autonumber, so in essence they would have two IDs, but their employeeID would need to be stored in a different field.</p>
<p>Yo... |
Django m2m queries, distinct Users for a m2m relationship of a Model <p>I have a model Model with a m2m field : </p>
<pre><code>user = .. fk user
...
watchers = models.ManyToManyField(User, related_name="boardShot_watchers", null=True)
</code></pre>
<p>How do i select all distinct Users involved in this watchers... | <p>Not in your current model. If you want to have explicit access to the joining table, you need to make it part of the Django object model. The docs explain how to do this:</p>
<p><a href="http://www.djangoproject.com/documentation/models/m2m_intermediary/" rel="nofollow">http://www.djangoproject.com/documentation/mo... |
Should I use an expression parser in my Math game? <p>I'm writing some children's Math Education software for a class.</p>
<p>I'm going to try and present problems to students of varying skill level with randomly generated math problems of different types in fun ways.</p>
<p>One of the frustrations of using computer ... | <p>One possible solution is to note how many steps your expression evaluator takes to evaluate the problem's original expression, and to compare this to the optimal answer. If there's too much difference, then the problem hasn't been reduced enough and you can suggest that the student keep going.</p>
<p>Don't be surpr... |
SharePoint Ajax web part web.config problems <p>Hi I am using AJAX Extensions 1.0 in my web part. It works great when I add it on SharePoint and everything runs fine. I also have links to other applications which are put onto SharePoint as IFRAME's. I run into a problem with the application inherting from my SharePo... | <p>You have to modify global web.config. It can be done by WebConfigModification (don't remember full name of the class, it's been a while). There is feature Ajaxify MOSS available on CodePlex which I used and it works just fine. Take a look there.
<a href="http://ajaxifymoss.codeplex.com/" rel="nofollow">http://ajaxi... |
htaccess (no redirection) [REWRITEURL] (folder to index.php) <p>I just want to get a quick htaccess redirection. ie:</p>
<p>domain.com/subfolderGreen --> domain.com/index.php?folder=subfolderGreen</p>
<p>(note that the subfolderGreen actually exists)</p>
<p>I've been trying but couldn't get to the regex needed.</p>
... | <p>I would think your example would cause an endless loop since /index.php matches what you are doing. Try this:</p>
<pre><code>RewriteRule ^([A-Za-z0-9]+)/?$ /index.php?folder=$1 [L]
</code></pre>
<p>If you want it to work for all directories that exist, this will probably work as well.</p>
<pre><code>RewriteCond ... |
Stumped on C# DateTime ToString() formatting problem <p>I am getting some junk data returned from a ToString() call on a DateTime object in C# and I'm afraid I'm stumped after poking around with it for a while.</p>
<p>The function is supposed to format dates to be compliant with RFC 822 (as required by the RSS spec) a... | <p>You're problem is the last </p>
<pre><code>return pubDate.ToString(_tmp + " UT");
</code></pre>
<p>You're doing a second ToString() on the DateTime with the formatted value, as the formatter...</p>
<p>Try changing it to</p>
<pre><code>string _rfc822Format = "ddd, dd MMM yyyy HH:mm:ss";
string _tmp = pubDate.ToUn... |
Interface with a list of Interfaces <p>Maybe I'm dumb but ...</p>
<p>I have:</p>
<pre><code>public interface IRequest
{
IList<IRequestDetail> Details { get; set; }
// stuff
}
public interface IRequestDetail
{
// stuff
}
</code></pre>
<p>I then have:</p>
<pre><code>public class MyRequest : IReque... | <p>I think, based on the question that the problem is that you want to treat Details as a generic list and enforce that it implements IRequestDetail. You also want it to be more specifically typed for the implementing classes. In this case, you need to make IRequest generic.</p>
<p>Try this:</p>
<pre><code>public i... |
TFS command line and SSL/TLS security exception <p>I am trying to use tf.exe command line to setup a new workspace. I don't like the idea installing Team Explorer and therefore required Visual Studio.</p>
<p>Running tested command from the other machine where VS is installed causes security exception on this one since... | <p>Our ssl certificate was signed with some proprietary certificate (issued not by a known authority like Verisign), therefore I had to install the issuer certificate as the trusted root certificate. Afterwards everything worked fine.</p>
<p>Many thanks for your devotion.</p>
|
Disabling Required Field Validators server-side of checkbox is checked <p>I have a Custom Control that has multiple textbox fields and a checkbox contained within it.</p>
<p>If the checkbox is checked, and the user submits the form, I need to allow them to continue if the textbox's are empty (and the checkbox is check... | <p>Have you tried to perform the control initialization logic during the <strong>Control.Load</strong> event by overriding the <strong>Control.OnLoad</strong> method instead?<br/>
At that stage in the control lifecycle you should be able to access the value of the CheckBox.<br/>
<br/>
As a side note, if you want to dis... |
BCL (Base Class Library) vs FCL (Framework Class Library) <p>What's the difference between the two? Can we use them interchangeably?</p>
| <p>The Base Class Library (BCL) is literally that, the base. It contains basic, fundamental types like <code>System.String</code> and <code>System.DateTime</code>.</p>
<p>The Framework Class Library (FCL) is the wider library that contains the totality: ASP.NET, WinForms, the XML stack, ADO.NET and more. You could sa... |
.NET Class Hierarchy Poster? <p>I remember seeing a poster a few years back that had a nice break down of the .NET framework class Hierarchy in a poster. Every link I find to it on google points to a non-existant place on the MSDN site.. Does anyone know where one can find an up to date one?</p>
| <p>Does this help? <a href="http://blogs.msdn.com/brada/archive/2008/01/12/net-framework-3-5-namespace-poster-updated.aspx">http://blogs.msdn.com/brada/archive/2008/01/12/net-framework-3-5-namespace-poster-updated.aspx</a></p>
|
Web Service SoapDocumentMethod OneWay Issue <p>First, I'll say I am not making this up. I have a web method implemented in a asmx file like this:</p>
<pre><code>[WebMethod]
[SoapDocumentMethod(OneWay=true)]
public void Method1(INPUT oInput)
{
// Call SQL stored procedure SP1
// Call SQL stored procedure SP2
}
</... | <p>I found my own answer. There was some code between SP1 and SP2 that accesses the Context.Current.Request object. Commenting it out fixes my issue.</p>
<p>Conclusion? It seems the Request object is unavailable if OneWay=true. Strange though that setting <code><trace enabled="true"></code> makes the object avai... |
Reentrancy was detected <p>I'm getting "Reentrancy was detected" MDA error while setting a webbrowser control's properties.
This only happens if I call "SetWindowsHookEx" to hook some dials within the same thread.</p>
<p>Normally this hooking code works fine but it doesn't play nice with Webbrowser Control. When I ign... | <p>I figured that out:</p>
<ul>
<li>It should be in the same thread (this was expected)</li>
<li>It should not run during the initialization of the unmanaged control. So I run it after setting all properties and events then it worked.</li>
</ul>
|
How to tell if a binary is release or debug in both win and *nix <p>Is there a simple command line utility to inspect binaries like executable and dynamic libraries to tell if they are release or debug versions? Is there anything like that on *nix or windows?</p>
| <ul>
<li><p>for C++ on <strong>Linux</strong>, you can do:</p>
<blockquote>
<pre><code> objdump --source yourbin |grep printf
</code></pre>
</blockquote>
<p>Replace printf with whatever function call you do. If it is debug, it will display all the actual source code call you do. If it is release, it will just disp... |
How do I implement jQuery Sifr Plugin properly? <p>I have been trying all afternoon to get the jQuery Sifr Plugin (<a href="http://jquery.thewikies.com/sifr/" rel="nofollow">http://jquery.thewikies.com/sifr/</a>) to work, without success. The plugin's site has limited documentation and for something so apparently easy,... | <p>I had the same issue using the jQuery plugin (which uses sIFR 3 now), for me it was that the pre-published swf's were < version 436 - specifically fonts from sifrvault. Likely your font needs to be re-published, grab the ttf and use OpensIFRr. </p>
<p>-Jay</p>
|
registry script - can you assign a decimal value without the dword keyword <p>Which of the following registry scripts is syntactically correct? Will both work? Is one preferred?</p>
<p><strong>Sample A:</strong></p>
<pre><code>REGEDIT4
[HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\policies\explorer... | <p>The MS Knowledgebase has an article on this.</p>
<p><a href="http://support.microsoft.com/kb/310516/" rel="nofollow">http://support.microsoft.com/kb/310516/</a></p>
<p>Here's the excerpt you'd be interested in:</p>
<blockquote>
<p>Syntax of .Reg Files A .reg file has
the following syntax:</p>
<p>Registry... |
VC2008, how to turn CLR flag off for individual files in C++/CLI project <p><a href="http://www.techtalkz.com/vc-net/66949-performance-pure-native-c-class-managed-c-cli-dll-comp.html" rel="nofollow">This post</a> says that it is possible to turn off the CLR flag for an individual .cpp file.</p>
<p><strong>From the pos... | <p>Just right click on a file in Solution Explorer and hit Properties. The option is "Compile with Common Language Runtime Support", under C/C++ -> General.</p>
|
Interfacing common functionality between controls <p>I'm not really sure how to ask this question. Suppose I have a class that needs to access certain properties of a Control (for example, Visible and Location). Perhaps I want to use the same class to access properties of another item that have the same name, but the... | <p>It's not a stupid question, it's a good one. :)</p>
<p>What you're asking for on the interface is commonly referred to as "<a href="http://en.wikipedia.org/wiki/Duck%5Ftyping" rel="nofollow">duck-typing</a>." It isn't supported right now, but C#4.0 will support it via the new "<a href="http://stackoverflow.com/qu... |
how to combine similar javascript methods to one <p>I have an asp.net codebehind page linking several checkboxes to javascript methods. I want to make only one javascript method to handle them all since they are the same logic, how would i do this?</p>
<p>code behind page load:</p>
<pre><code>checkBoxShowPrices.Attr... | <p>Add to the event the checkbox that is raising it:</p>
<pre><code>checkBoxShoPrices.Attributes.Add("onclick", "return checkBox_click(this, event);");
</code></pre>
<p>Afterwards in the function you declare it like this:</p>
<pre><code>function checkBoxShowPrices_click(checkbox, e){ ...}
</code></pre>
<p>and you h... |
appending text to matching element attributes within a class in jQuery <p>I'm trying to append query parameters to links within blocks of text within a class, such as</p>
<pre><code><div class="container">
consectetur <a href="foo.php?q=bar">adipisicing</a>
</div>
</code></pre>
<p>where the ?q... | <p>As has been pointed out already when you set you Link variable at the beginning of your function it takes the value of the first element in the set returned by your selector. You need to compute your href for each element in the set before updating it.</p>
<p>You can do this either by calling .each and using .attr... |
Cmake - setting visual studio intermediate dir <p>How do I stop CMake adding .dir to the end of of my IntermdiateDirectory?</p>
<p>E.g.:</p>
<pre><code>IntermediateDirectory="libTea.dir\Debug"
</code></pre>
| <p>There is no variable or property to do this.
New property VS_INTERMEDIATE_DIRECTORY_(CONFIG) can be supported by change a little code. <a href="http://www.fjrun.com/?p=344" rel="nofollow">Here</a> is a step by step guide.</p>
|
Spring + JPA (Hibernate) on Glassfish --> ClassVisitor problem <p>I'm trying to write a simple web app with Spring 2.5 (core + MVC) and JPA (using Hibernate for the persistence mechanism). Every time I deploy, I'm getting a "Class not found exception" that points to ClassVisitor.</p>
<p>This is a known version proble... | <p>You could put jar file into your Glassfish domain's "lib" folder.</p>
|
I can't understand how to use SendMessage or PostMessage calls <p>I need to simulate a keypress in a third party application. Let's say I have a C# application that needs to send an "8" to the Calculator application. I can't use the SendKeys of .Net or the keybd_event of win32 api because they both require the window t... | <p>Any chance you're running this on a 64bit machine? If so, I believe all those 'int' values that are actually hWnds (first argument to Send/Post, return value from FindWindow) need to be IntPtr.</p>
<p><hr /></p>
<p>After a bit more checking, it looks like for both SendMessage and PostMessage, the 1st, 3rd, and 4t... |
How to detect the physical connected state of a network cable/connector? <p>In a Linux environment, I need to detect the physical connected or disconnected state of an RJ45 connector to its socket. Preferably using BASH scripting only.</p>
<p>The following solutions which have been proposed on other sites do NOT work... | <p>You want to look at the nodes in </p>
<pre>
/sys/class/net/
</pre>
<p>I experimented with mine: </p>
<p>Wire Plugged in: </p>
<pre><code>eth0/carrier:1
eth0/operstate:unknown
</code></pre>
<p>Wire Removed: </p>
<pre><code>eth0/carrier:0
eth0/operstate:down
</code></pre>
<p>Wire Plugged in Again:</p>
<pre><co... |
is it possible to start the Rails console from within your code? <p>I know of the ruby gem "ruby-debug" that allows you to place a <b>debugger</b> call inside your code. Using it, it's possible to have breakpoints in your code. </p>
<p>I used <b>script/console</b> a bit for some tests, and I would like to know if I ca... | <p>Whilst debugging you can type <code>irb</code> to open the console. Other than that, I'm not sure I understand what you mean...</p>
|
Combine two (or more) PDF's <p><strong>Background:</strong> I need to provide a weekly report package for my sales staff. This package contains several (5-10) crystal reports.</p>
<p><strong>Problem:</strong>
I would like to allow a user to run all reports and also just run a single report. I was thinking I could do t... | <p>I had to solve a similar problem and what I ended up doing was creating a small pdfmerge utility that uses the <a href="http://www.pdfsharp.net/"><strong>PDFSharp</strong></a> project which is essentially MIT licensed.</p>
<p>The code is dead simple, I needed a cmdline utility so I have more code dedicated to parsi... |
UITableView and didSelectRowAtIndexPath issue <p>I have a UITableView populated with a location-based datasource. I'm calling [self updateView]; to manually refresh the view after the location is found which works fine...but for some reason the didSelectRowAtIndexPath method isn't getting called. Any ideas of why it'... | <p>Ensure that the delegate property of your tableView is set.</p>
<p><strong>slf said:</strong></p>
<blockquote>
<p>Make sure it's defined in your .h
file. The protocol does a
'doesRespondToSelector' first and if
you aren't making it public through
your header the message my fail</p>
</blockquote>
<p><em>... |
Jquery fade background on hover? <p>There is a link, with no background, and a css rule, which changes background on hover.</p>
<p>Parent bg is white, link on hover - blue.</p>
<p><strong>How can I do a hover effect slowly</strong>, from white to blue?</p>
<p>Thanks.</p>
<pre><code>li a {}
li a:hover { background: ... | <pre><code>jQuery('a#theLink').hover(function(){
$(this).stop().animate({backgroundColor: 'blue'});
}, function() {
$(this).stop().animate({backgroundColor: 'white'});
});
</code></pre>
<p>For this to work you need to download the "<strong><a href="http://plugins.jquery.com/project/color">color plugin</a></str... |
What are the elements of a team development suite? <p>For small-to-large teams developing software together, what tools are used to form a comprehensive team development framework? </p>
<p>Specifically, I'm looking for a comprehensive list of all the individual functions involved (e.g. source control, bug management,... | <p>You've hit the major ones in your post:</p>
<ul>
<li>IDE (Integrated Development Environment)</li>
<li>Coding Guidelines (sometimes looked over, but it still helps tremendously)</li>
<li>Source Control</li>
<li>Testing Suite (Unit Testing, Test Case/Test Script Management and Tracking)</li>
<li>Issue Tracking/Bug R... |
(TIBCO BusinessWorks) How do you access a Java Global Instance method from a Java Code activity? <p>The TIBCO ActiveMatrix BusinessWorks Palette Reference states:</p>
<p>"Any Java Code activity can access the shared Java Global Instance by invoking the static methods of the configured Java class", however, I've been u... | <p>If you have the following class referenced in an AliasLibrary:</p>
<p>com.example.foo.Foo</p>
<p>and it has a static method bar(), then you can call that in a Java Code activity by simply using:</p>
<p>com.example.foo.Foo.bar();</p>
<p>in your Java Code activity. Make sure you reference AliasLibrary in the Java ... |
What's the fastest way in Perl to get all lines of file1 that do not appear in file2? <p>I have two (very large) text files. What is the fastest way - in terms of run time - to create a third file containing all lines of file1 that do not appear in file2?</p>
<p>So if file1 contains: </p>
<pre>
Sally
Joe
Tom
... | <p>Create a hashmap containing each line from file 2. Then for each line in file 1, if it is not in the hashmap then output it. This will be O(N), which is the best efficiency class you can achieve given that you have to read the input.</p>
<p>Perl implementation:</p>
<pre><code>#!/usr/bin/env perl
use warnings;
use ... |
Create ActiveX OCX control <p>We are using a system that allows ActiveX extensions through .ocx files.</p>
<p>I need to write an extension to plot some specific proprietary graphics. After lots of searches, I found out Visual Basic 6.0 can create these ActiveX controls and deploy them as .ocx files.</p>
<p>So, is VB6... | <p>You can create ActiveX controls in C++ using Visual Studio 2005 or 2008, via ATL or MFC. There are wizards to help - the process is relatively painless. 8-)</p>
<p>An OCX <em>is</em> a DLL - it's exactly the same, just with a different file extension. (Pedant's corner: I know the inverse is not true; not all DLL... |
Is there an equivalent to the SUBSTRING function in MS Access SQL? <p>I want to do something like this within an MS Access query, but SUBSTRING is an undefined function.</p>
<pre><code>SELECT DISTINCT SUBSTRING(LastName, 1, 1)
FROM Authors;
</code></pre>
| <p>You can use the VBA string functions (as @onedaywhen points out in the comments, they are not really the VBA functions, but their equivalents from the MS Jet libraries. As far as function signatures go, they are called and work the same, even though the actual <em>presence</em> of MS Access is not required for them ... |
Granting Select Rights to a Stored Procedure in SQL Server 2000 <p>I want to give a user access to a stored procedure, but not to all the objects in the database the stored procedure needs to use.</p>
<p>What is the best way to give rights to the stored procedure to enable it to work, but only grant execute access to ... | <p>From <a href="http://msdn.microsoft.com/en-us/library/aa214299.aspx" rel="nofollow">MSDN</a></p>
<blockquote>
<p>Users can be granted permission to
execute a stored procedure even if
they do not have permission to execute
the procedure's statements directly</p>
</blockquote>
|
Django Manager Chaining <p>I was wondering if it was possible (and, if so, how) to chain together multiple managers to produce a query set that is affected by both of the individual managers. I'll explain the specific example that I'm working on:</p>
<p>I have multiple abstract model classes that I use to provide sma... | <p>See this snippet on Djangosnippets: <a href="http://djangosnippets.org/snippets/734/">http://djangosnippets.org/snippets/734/</a></p>
<p>Instead of putting your custom methods in a manager, you subclass the queryset itself. It's very easy and works perfectly. The only issue I've had is with model inheritance, you a... |
PHP Listing Dynamic Member Variables <p>How would I list all the public variables in an instantiated Object given that we do not know the variable names in the first place?</p>
<p>Scenario<br />
A class may have a function declared like:</p>
<pre><code>function addVar($name, $val) {
$this->$name = $val;
}
</co... | <p><a href="http://php.net/manual/en/function.get-object-vars.php" rel="nofollow"><code>get_object_vars()</code></a> should do the trick.</p>
|
Dojo dialog nesting <p>can a dojo dialog bring up another dojo dialog?</p>
| <p>dojo 1.3 only supports one modal dialog at a time, so while, yes, one dialog can open another, closing the second destroys the modality of the first.</p>
<p>This happens because dojo.Dialog uses a single global underlay object that provides screen between the dialog and anything else on the page. You can make it wo... |
What is a good way to generate short and unique file/folder names? <p>The criteria is basically this:</p>
<ul>
<li>folders will exist for about 24-48hrs</li>
<li>folders names can not be readily guessable by a user (if used in a URL)</li>
<li>folder names should be short 5-15 chars</li>
</ul>
<p>Initial thoughts:</p>... | <p>[Edit] Wait a second. PHP includes right in the standard library a <a href="http://us.php.net/uniqid">unique id generator function</a>. There are <a href="http://phpgoogle.blogspot.com/2007/08/four-ways-to-generate-unique-id-by-php.html">other approaches</a> too.</p>
|
ASP.NET - How to load page via server-side code (C#) with MVC Pattern in place? <p>I am trying to use more server-side code (MVC pattern in place) and one of the methods that I am thinking of implementing is something like: LoadWebPage(). If a user is on a page, say Page1.aspx, and they click on a hyperlink, I would l... | <p>It looks like you're trying to do MVC with the standard ASP.net WebForms framework. It's probably a bit late for you now, but have you taken a look at the ASP.net MVC framework? That might make you life a lot easier.</p>
|
C# Compiler : cannot access static method in a non-static context <p>I have the code below :</p>
<pre><code>public class Anything
{
public int Data { get; set;}
}
public class MyGenericBase<T>
{
public void InstanceMethod(T data)
{
// do some job
}
public static void StaticMethod(T ... | <p>A call to a static method will be compiled to call a specific static method on a specific class. In other words, it won't use the contents of B to determine which static method to call.</p>
<p>So the call has to be resolvable at compile time, hence it complains, because for all it knows, you could replace the conte... |
Preventing gtk FileChooserDialog calling stat on all files in the directory? <p>Opening a gtk FileChooserDialog is painfully slow for nfs directories containing many files. strace shows a lot of time calling "stat". About 5 calls for each of the files in the directory. How can we switch off the calls to 'stat' and just... | <p>The gtk+ and gnome team have a <a href="http://bugzilla.gnome.org/show%5Fbug.cgi?id=310642" rel="nofollow">bug</a> report related to this issue, at least since 2005. Recent and future changes in the gnome core libraries will hopefully improve the performance.
This issue can be aggravated if you have any bookmarks to... |
Open-source US- state status display <p>I was wondering if anyone knew of an Open-source project for displaying numbers for the US states.</p>
<p>Specifically, you always see these graphics with California in dark grey, Montana in green, etc. Based on some sort of criteria. </p>
<p>I'm thinking of building one for a ... | <p>Try the <a href="http://code.google.com/apis/chart/types.html#maps" rel="nofollow">maps in the Google Charts API</a>. You can select countries and colors programmatically. </p>
|
How can I decode a PKCS#5 encrypted PKCS#8 Private Key in Java <p>I have a PKCS#5 encrypted PKCS#8 RSA private key stored in a disk file (originally generated by SSLPlus, circa 1997), for example:</p>
<pre><code>-----BEGIN ENCRYPTED PRIVATE KEY-----
MIICmDAaBgkqhkiG9w0BBQMwDQQIybM2XFqx4EwCAQUEggJ4MKg/NE+L6NJgbOf4
...
... | <p>I just dumped your decrypted data into an ASN.1 parser, and it looks like perfectly fine ASN.1 to me:</p>
<pre><code> 0 30 627: SEQUENCE {
4 02 1: INTEGER 0
7 30 13: SEQUENCE {
9 06 9: OBJECT IDENTIFIER rsaEncryption (1 2 840 113549 1 1 1)
20 05 0: NULL
... |
mod_rewrite help to pass full path with query string <p>I'm doing some caching based on the whole url, including query string, and need Apache to recognize the file and use it. It seems to find a match but then strips the query string off before rendering the file.</p>
<p>url: www.somesite.com/default.asp?foo=bar</p>
... | <p>You might want to try something like this:</p>
<pre><code>RewriteRule ^(.+)$ /site_root/cache/$1 [L,QSA]
</code></pre>
<p>This should rewrite the "default.asp" in the URL to what I <em>think</em> you're trying to use. The QSA should cause the original querystring to be appended to the rewritten URL.</p>
<p>I'm no... |
UTF8 or UTF-8? <p>Which of the two is correct terminology?</p>
| <p>That depends on where you use it...</p>
<p>The name of the encoding is <code>UTF-8</code>.</p>
<p>A dash is not valid to use everywhere, so for example in .NET framework the property of the <code>System.Text.Encoding</code> class that returns an instance of the <code>UTF8Encoding</code> class that handles the UTF-... |
Evaluating property equality in Nant <p>In my Nant script I would like to compare a property value to a known string. After reading the <a href="http://nant.sourceforge.net/release/0.85-rc1/help/fundamentals/expressions.html#op-string-equal">Nant Expressions</a> documentation I believed I would be able to do a basic '=... | <p>It also works if you have the entire expression within the curly braces:</p>
<pre><code><if test="${target.env =='Dev'}">
....
</if>
</code></pre>
|
Batch File - Into a Variable <p>I am having problems trying to get the string after the : in the following two lines into two separate variables from the bottom of a text file called file.txt for example</p>
<pre><code>Number of files to delete: 27 Total
Total size of files to delete: 1,427 KB
</code></pre>
<p>I jus... | <p>Something like this should work:</p>
<pre><code>@echo off
setlocal enableextensions enabledelayedexpansion
:: Get the number of lines in the file
set LINES=0
for /f "delims==" %%I in (file.txt) do (
set /a LINES=LINES+1
)
:: Parse the last 2 lines and get the numbers into variable NUMS
set /a LINES=LINES-2
fo... |
Database Search Term Highlighting and Result Truncating <p>I am currently performing a full text search on my "pages" in a database. While users get the results they want, I am unable to provide them with relevant information as to why in the world the results that came up, came up.</p>
<p>Specifications on what I am ... | <ol>
<li>I would not keep the HTML formatting in the search results. That would make your results page very messy. It doesn't make sense to include headings, line breaks, images, paragraph margins, etc. in the result descriptions--especially if you're only going to be printing short excerpt of truncated content.</li>
<... |
How can I create 77 files the content of which is the name of each file? <p>Let's take an example. A "file1" -file has a content "file1", its own name. A "file2"-file has a content "file2", again its own name. The pattern continues until we have covered 77 files. What is the easiest way to do the 77 files?</p>
<p><em>... | <pre><code>#!/bin/bash
for i in {1..77}
do
echo file$i > file$i
done
</code></pre>
|
uninitialized constant ActionController::Dispatcher::MiddlewareStack <p>I installed some new gems for testing and ran into an uninitialized constant ActionController::Dispatcher::MiddlewareStack error. I followed the instructions on the gem rdocs-specified the gem dependency in my environment.rb file and then ran rake ... | <p>I previously wrote some misguided information, however, now I've managed to sit down and look at it undisturbed for a few minutes, I fixed my problem by editing my environment.rb, and moving the <strong>require 'has_many_polymorphs'</strong> statement to <em>after</em> the initializer block.</p>
<p>Bingo. I face-pa... |
How to prevent deletion of the first row in table (PostgreSQL)? <p>Is it possible to prevent deletion of the first row in table on PostgreSQL side?</p>
<p>I have a category table and I want to prevent deletion of default category as it could break the application. Of course I could easily do it in application code, bu... | <p>You want to define a BEFORE DELETE <a href="http://www.postgresql.org/docs/8.1/interactive/triggers.html">trigger</a> on the table. When you attempt to delete the row (either match by PK or have a separate "protect" boolean column), <a href="http://www.postgresql.org/docs/8.1/static/plpgsql-errors-and-messages.html"... |
Should Business Logic objects have knowledge of their LINQ-to-SQL data objects? <p>I've looked at several similar questions but I didn't see any that directly applied to me, so forgive me if this is a duplicate.</p>
<p>For separation of concerns I'm trying to somehow map my business objects with logic to the LINQ to S... | <p>Not sure if you are tied to LINQ to SQL somehow, but what you are trying to accomplish is pretty much the default in NHibernate. I recommend taking a look at NHibernate to see if it would be easier to switch than to fight LINQ to SQL. </p>
<p>I've found that fighting a tool is almost always a bad idea.</p>
|
What is the best UI control for users who need to change language on the fly? <p>Obviously a subjective question but I figure this site has built up a multinational audience so hopefully there will be some good insight.</p>
<p>The option I am thinking of going with is a combo box with flag images to indicate which lan... | <p>My vote: combobox with a list of language name and then dialect in parenthesis.</p>
<p>For example, to list Portuguese:</p>
<ul>
<li>English (UK)</li>
<li>English (US)</li>
<li>português (Brazil)</li>
<li>português (Portugal)</li>
</ul>
<p>Language name comes first and alphabetized and written in the native lan... |
How is CPU usage computed? <p>The Windows Task Manager shows CPU usage in percentage. What's the formula behind this? Is it this:</p>
<blockquote>
<p>% CPU usage for process A = (Sum of
all time slices given to A till now)/
Total time since the machine booted</p>
</blockquote>
<p>Or is it something else?</p>
| <p>I am not 100% sure what is uses, but I think you are a bit off on the CPU calculation.</p>
<p>I believe they are doing something like.</p>
<pre><code>Process A CPU Usage = (Cycles for A over last X seconds)/(Total cycles for last X seconds)
</code></pre>
<p>I believe it is tied to the "update interval" set in tas... |
How do I troubleshoot a CakePHP application stuck in a redirect loop? <p>I've got a CakePHP site that is stuck in a redirect loop. I've removed every piece of code that does a redirect & I've turned off autoRedirect on the Auth object.</p>
<p>This occurred when I logged out of the site and has persisted even afte... | <p>This also occurs in CakePHP 1.3 if you add a custom component that extends <strong>Component</strong> instead of <strong>Object</strong>.</p>
|
Streaming live audio with Flash <p>I've been approached to set up an internet radio station that is focused on the local music scene in El Paso, TX. I've looked at various options, but it seems most solutions out there are for streaming pre-recorded audio. While I might need to fall back on this, I was wondering if any... | <p>First, the Free option:</p>
<p>Remember that a Flash 'Video' (FLV) file can contain only audio.</p>
<p>FLV files are a 'progressive' format - you can start playing them before you've received the whole file.</p>
<p>FLV files can be 'progressively downloaded' via normal http.</p>
<p>The Open Source (GPL) <a href=... |
Test framework for web services <p>We have a monolithic application written in Visual Dataflex, and various complementing applications written in other (.NET) languages. They all share the same database, and need to follow the same business logic. One way to facilitate unified business logic across these is to provide ... | <p>I'm assuming you're talking about Soap web services. You can use Soap4R to talk to a Soap web service. Wrapping this all up in Cucumber scenarios should work fine.</p>
|
GDI To XPS <p>In his blog entry <a href="http://blogs.msdn.com/fyuan/archive/2007/02/24/printing-documents-to-microsoft-xps-document-writer-without-user-interaction.aspx" rel="nofollow">Printing documents to Microsoft XPS Document Writer without user interaction</a> Feng Yuan says</p>
<blockquote>
<p>If you're print... | <p>Indeed the same author provides the answer <a href="http://blogs.msdn.com/fyuan/archive/2005/09/16/469076.aspx" rel="nofollow">Printing to Microsoft XPS Document Writer without showing File Save Dialog Box</a>. The solution is to print to a file using the Microsoft XPS Document Writer printer. </p>
|
DateTime difference operator considers daylight saving? <p>As far as I know the difference operator of the <code>DateTime</code> type considers leap years: so </p>
<pre><code>new DateTime(2008, 3, 1) - new DateTime(2008, 2, 1) // should return 29 days
new DateTime(2009, 3, 1) - new DateTime(2009, 2, 1) // should retur... | <p>.NET does not handle daylight savings time correctly, even though it gives answers you want. You <em>want</em> incorrect answers.</p>
<p><strong>Short version:</strong> </p>
<ul>
<li><p>How can .NET know that in 1977 daylight savings time was in effect the entire year, due to the energy crisis? </p></li>
<li><p>Ho... |
asp.net login control <p>Ok, I have a masterpage, on that i have a linkbutton, popupcontrolextender, a panel as the popupcontrol and within the panel a login control.</p>
<p>When the linkbutton is fired the popup panel reveals itself with the login control inside, if i try to login, the authenticate method does not fi... | <p>I've figured it out!</p>
<p>I found a useful post here</p>
<p><a href="http://www.brianrudloff.com/" rel="nofollow">http://www.brianrudloff.com/</a></p>
<p>they say</p>
<p>I recently ran into an issue where I was trying to dynamically create a Panel with Buttons, Labels, ect and have it popup using the AJAX Popu... |
Why JQuery Autocomplete is not executing? <p>I hava a very interesting case where the JQuery Autocomplete field does not respond the first time i type in the TextBox, but when i TAB outside the TextBox and then return the cursor back to the TextBox for the second time it starts to respond and the results are shown as i... | <p>Why are you making the autocomplete() call on keyup? I think that could be causing your problems. I would try just calling autocomplete() straight from the document ready event.</p>
<pre><code>$(document).ready(function(){
$("#tags1").autocomplete("/taglookup/", {
width: 320,
max: 4,
... |
What are your favorite small handy utility programs (tools) helping you programming ? <p>And how they help you improve your programming ? Could they be integrated in IDE and if yes how ?</p>
<p>Edit: Thanks to <a href="http://stackoverflow.com/users/38971/altcognito">altCognito</a> There has been almost duplicate ques... | <p>Expresso: excellent free and stable tool for regular expressions</p>
|
Javascript / JQUery Dynamic Variable Access <p>I have a javascript variable which is referencing a complex object (it is a slideshow control but that's not important)</p>
<pre><code>e.g.
var slideshow = new SlideShow();
</code></pre>
<p>Because i have multiple slideshows on the page and I want to make accessing certa... | <p>Well... something has to contain the variable, so that's the question you need to answer first. My thought would be to store it in a hash, which, may not look much different to you at first:</p>
<pre><code>var slideshows = {};
slideshows['someslideshowName'] = new SlideShow();
</code></pre>
<p>But now you can ... |
SQL Express 2005/2008 Concurrent Connections <p>How many concurrent connections do the express editions allow? </p>
<p>My front end uses standard ADO.Net code where I open the connection to the server, get my data, and then close the connection. Am I right in saying that as soon as the connection is closed, it then ... | <p>The express editions of SQL Server don't cap the number of concurrent connections - they exert limitations in other ways - such as the maximum size of the database (4GB), CPU sockets (1) and amount of memory (1GB).</p>
<p>More info <a href="http://www.microsoft.com/sqlserver/2008/en/us/editions.aspx">here</a>.</p>
... |
Adding Ribbon support to Excel COM Addin <p>I have a MS Office COM addin written in C# (Visual Studio 2005) and uses a COM Shim dll. The addin DOES NOT use VSTO technology and supports Excel XP and higher. The addin adds a new toolbar and a menu.</p>
<p>The addin works fine in Excel 2007 but it is displayed in a separ... | <p>I havent used OfficeXP, but have built COM AddIns against 2000, 2003 and 2007.</p>
<p>I recently built a COM AddIn for Office 2007 using the IRibbonExtensibility interface, with references to the v12 PIAs. </p>
<p>When I used this with Office 2003, I found it worked pretty well. However, my AddIns is only providin... |
jQuery idTabs plugin hover feature problem <p>I am using jQuery <a href="http://www.sunsean.com/idTabs/" rel="nofollow">idTabs</a> pluging. I want to give hover feature and use divs with this feature. Default settings are working with click event. How can I change this feature.</p>
<p>Best Regards.</p>
| <pre><code><div id="adv1" class="usual">
<span>
<div><a href="#t1">Tab 1</a></div>
<div><a href="#t2">Tab 2</a></div>
<div><a href="#t3">Tab 3</a></div>
</span>
<div id="t1"&... |
looking for some network video camera to program against <p>I am looking for a network camera which I could program against the following functions, </p>
<ol>
<li>I can plug-in the camera into network cable, then it could work to capture video independently, no need to plug-in into a computer to make it work; </li>
<l... | <p>If you have the cash... take a look at <a href="http://www.meetrovio.com/" rel="nofollow">Rovio</a>. I think it comes with a full API and you would have a cool toy to play with after you finish your project.</p>
|
Wizard Control in ASP.NET - How to set the NextButton Causesvalidation property to false <p>I have tried setting it in the code and also in the markup but when the Next Button is clicked, the page is validated, I want to prevnt this from happening and control when validation should occur and when not. Any suggestions o... | <p>The easiest way to do this would be to remove all validator controls from the <code>WizardStep</code> in which validation is to be skipped.</p>
<p>However, if you need advanced functionality, you will need to set the <code>CausesValidation</code> property of the Next/Previous buttons in your <code>StepNavigationTem... |
IPhone Developer Program - How to sell under multiple company names <p>I work for a web agency and we have just been commissioned to produce an IPhone App for a client.</p>
<p>We would want to sell the App on the AppStore under the clients company name, not our own. When signing up our company to the IPhone Developer ... | <p>Each client needs to sign up for the developer program.</p>
<p>If you don't have many clients, it's easiest to do Ad-Hoc builds from your own account and only do the final App Store build from theirs. Or, if they have technical people they can handle the ad-hoc builds themselves and not consume your precious devic... |
how to query strongly type datatable <p>I have a news portal. </p>
<p>For this portal I have a database with a "News" table and with the following columns
(NewsID, CategoryID, NewsTitle, NewsText, DateAdded, ImagePath, TotalRead, NewsType, isActive)</p>
<p>I use dataset files (.xsd) and for this one, I have a query t... | <p>You can use <a href="http://msdn.microsoft.com/en-us/vbasic/bb688086.aspx" rel="nofollow">LINQ to DataSet</a> if you're in .NET 3.5.</p>
|
WPF Resizable Canvas <p>I need to implement a <code>Canvas</code> which scales its contents according to its size. I know there is <code>Viewbox</code>, which scales everything inside of it. However I cannot use that, because some elements have a fixed size and cannot be scaled.</p>
<p>Also how can I bind the size of ... | <p>If you don't specify any width or height to the canvas it automatically uses all the available space. This is because the default <code>VerticalAlignment</code> and <code>HorizontalAlignment</code> are set to <code>Stretch</code>.</p>
<p>What do you mean by canvas that scales it's contents according to it's size wi... |
Why does a Convencience Constructor or Object Factory have to care about releasing the Object? <p>Actually, if you use a method with "new", "create", "alloc" or "copy" in it's name, then you are responsible for releasing the object that is returned to you. BUT: Why do these methods make an call to -autorelease? Wouldn'... | <p>Convenience constructors don't have any of those words in their names (e.g., [NSMutableArray array]), so by convention they return autoreleased objects. Methods that do have one of the words that indicate they return a retained object don't call autorelease, so that part of the premise of your question is incorrect.... |
ASP.NET MVC model binding and action parameters <p>Let's say I have a controller action defined as:</p>
<pre><code>public ActionResult(MyModel model, string someParameter)
{
// do stuff
}
</code></pre>
<p>I have a custom model binder for the MyModel type, and there is a form field called "SomeParameter" in the v... | <p>ASP.NET uses reflection to determine the correct method to invoke and to built up the parameters to pass. It does so based on the FormCollection array. Basically it will see model.* Keysin there and a <code>FormCollection["someParameter"]</code> it will first try <code>Action(model,someParameter)</code> then <code>A... |
Infrastructure required for a large Scale PHP Project <p>My team is developing a large music portal in PHP. It is hoped that the portal will have 1 million+ users within a year of its launch. The portal will allow users to create playlists, stream and download music.</p>
<p>Till now, we have developed applications tha... | <p>Until you actually have that number of users, you shouldn't be too worried about it. One of the number one rules of programming is to not optimize until you actually have performance problems, and even then, don't optimize until you have info on <em>where</em> the performance problems are. Right now, you don't have ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.