input stringlengths 51 42.3k | output stringlengths 18 55k |
|---|---|
How to walk the methods and their properties contained in a DLL? <p>Using preferably JScript, but VBscript will also do, how does one walk a DLL obtaining the properties and their attributes contained therein?
Why? Because it would be good to ascertain the attributes of certain objects such as their datatypes at runtim... | <p><a href="http://www.vbsedit.com" rel="nofollow">VBSEdit</a> will at least show you methods and properties of DLLs for VBScript when you create an object of that type in a script.</p>
|
How to show real-time suggestions (e.g. existing entries with same initial characters) while user is typing in a text field in Cocoa Touch? <p>I'm wondering if there is an existing class or library code in Cocoa Touch that shows the user a list of real-time suggestions while they are entering text input, with the sugge... | <p>You need to check out the UITextFieldTextDidChangeNotification to see when the UITextField is changed. Look at NSNotificationCenter to see how to register an observer.</p>
|
Convert a Silverlight text to a path <p>Is there any way to render a Silverlight text to a path or graphics object <strong>at runtime</strong>? I know this can be done using the design tools, but I want to be able to do this on the fly.</p>
<p>I've seen an example that <a href="http://blogs.msdn.com/webnext/archive/20... | <p>As you suspected, you'd have to do it server-side to convert the text to a PathGeometry which <b>is</b> supported in Silverlight.
What are you trying to achieve?</p>
|
Delphi object persistence, what is the best way <p>I have developed application for drawing some shapes (lines mostly) , now i need to be able to store sketch to a file, i know that delphi has build in routines for object persistance, but i have never used it. </p>
<p>Can someone tell me can object persistence be us... | <p>The built in object persistance is primarily designed for use in streaming components to a dfm, the work that you would need to do to persist your sketch would not benefit very much from that mechanism. </p>
<p>I think that you would be better off coming up with a custom scheme.</p>
|
Google Friend Connect - Logged in user profile info <p>I am trying to implement Google Friend Connect. Is it possible to obtain the email address of the logged in user? If so how?</p>
| <p>Nope. Google doesn't let you have this information for the obvious reason that they don't want you to spam their users. If you need it, you'll have to ask for it explicitly.</p>
<p>Stuff that should be available via GFC:</p>
<ul>
<li>opensocial.Person.Field.ID</li>
<li>opensocial.Person.Field.NAME</li>
<li>opens... |
How to make Firefox extension auto install in nav bar? <p>I'm working on a Firefox extension. I'd like to make it auto-install in the far right position on the nav bar when a user installs it. As it stands, a user has to go to View > Toolbars > Customize... and drag the extension to the nav bar once it's installed. I'd... | <p>I think I got it. It's basically spelled out in the link I mentioned in the original post. I'm not sure why I thought there was more to it than that.</p>
|
Getting a PHP DateTime object into a string representation of a MYSQL date <p>I have a DateTime which I want to store in a Date MySQL column. I am using MySQLi and prepared statements. </p>
<p>When binding parameters, I cannot specify date as a type, only strings and integers.</p>
<p>How do I convert the DateTime to ... | <p>I almost closed this as a duplicate of <a href="http://stackoverflow.com/questions/136782/format-mysql-datetime-with-php">http://stackoverflow.com/questions/136782/format-mysql-datetime-with-php</a> but I think it's actually the reverse problem. That question asked how to format a date fetched from MySQL, and you'r... |
PHP to ASP.NET - call_user_func() equivalent? <p>I'm wondering if there is an equivalent function to PHP's <code>call_user_func()</code> in ASP.NET application. I'm looking to do a conversion from a PHP application to ASP.NET as a means of teaching myself the language, by taking a CMS I built professionally and trying ... | <p>In .NET I would probably create some events and handle them. Here's one way of doing it:</p>
<pre><code>public class CMS
public Event DoSomethingHook(byval sender as Object, byval e as DoSomethingEventArgs)
public function DoSomething()
dim data() as Integer = {}
Dim e as new DoSomethingEventA... |
Why is my mounted MacFUSE NTFS vol read-only? <p>I got the impression from the <a href="http://code.google.com/p/macfuse/" rel="nofollow">MacFUSE</a> site that when you install it and connect an NTFS volume it will be writable. However, the volume I mounted is read only. Here is some of the output of <code>mount</code>... | <p>Did you also install the <a href="http://macntfs-3g.blogspot.com/" rel="nofollow">NTFS-3G</a> driver?</p>
|
Converting a development team from FTP to a Versioning System <p>I work at a small LAMP Development Studio where the idea has been to just get the code done and go on to the next item on the list.</p>
<p>The team works in Zend Studio 5.5 connected to the Live server via FTP or SFTP. What they love about this is the sp... | <p>Questions:</p>
<ol>
<li><p>Have you (they) never had a disaster where you (they) needed to revert to a previous version of the web site but couldn't because they'd broken it?</p></li>
<li><p>Do they use a staging web server to test changes?</p></li>
<li><p>Surely they don't modify the code in the production server ... |
The future direction of Help File formats <p>It would appear that CHM help files are no longer the help file format of choice.</p>
<p>WinHelp<br />
- obsolete</p>
<p>HtmlHelp (CHM)<br />
- not supported on Vista by default<br />
- does not work well on a network share</p>
<p>Help 2 (HXS)<br />
- I understand thi... | <p>What exactly makes you think there's no default .chm viewer on windows Vista ? (There certainly is one on my computer, as well as on my Win7 box)</p>
<p>You might confuse .chm with .hlp (Microsoft indeed dropped .hlp support in vista, then eventually resumed it in a windows update)</p>
<p>Bottom line : .chm files ... |
CommandBars.FindControl throwing an exception <p>I am trying to use the FindControl Method of the CommandBars object in a VSTO Word addin to get <em>what else</em> a command bar object
Code is as follows</p>
<pre><code> private void WireContextMenu(string MenuID,string Tag, string ID, ref Office.CommandBarButton Contr... | <p>you are using Missing where Missing is not allowed as parameter
ref: <a href="http://msdn.microsoft.com/en-us/library/system.type.missing.aspx" rel="nofollow">link text</a>
<a href="http://msdn.microsoft.com/en-us/library/system.type.missing.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/system.type.mi... |
Unicode Regex; Invalid XML characters <p>The list of valid XML characters is well known, as defined by the spec it's:</p>
<pre><code>#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
</code></pre>
<p>My question is whether or not it's possible to make a PCRE regular expression for this (or its in... | <p>I know this isn't exactly an answer to your question, but it's helpful to have it here:</p>
<p>Regular Expression to match <strong>valid</strong> XML Characters:</p>
<pre><code>[\u0009\u000a\u000d\u0020-\uD7FF\uE000-\uFFFD]
</code></pre>
<p>So to remove <strong>invalid</strong> chars from XML, you'd do something ... |
Frame position in JavaScript <p>I am having a frame-based webpage with 3 frames. A topliner, a navigation on the left side and a content frame on the bottom right side.</p>
<p>Now, I want to show up a popup-menu when the user right-clicks on the content-frame. Because a div-container can not go out of the frame, my id... | <p>You say it's an enterprise application - do you have to support all major browser, or is IE enough?</p>
<p>I'm asking this because IE has a function that works exactly like you need:</p>
<pre><code>window.createPopup(...)
</code></pre>
<p><a href="http://msdn.microsoft.com/en-us/library/ms536392" rel="nofollow">h... |
How do firefox extensions make use of the whole screen in 3D (eg. CoolIris)? <p>I understand that <a href="http://www.mozilla.com/en-US/" rel="nofollow">Firefox</a> addins can be created in Javascript and Chrome.</p>
<p>How do they run advanced graphics applications such as <a href="http://www.cooliris.com/" rel="nofo... | <p>Cooliris uses native compiled code utilizing graphics acceleration on the platforms it supports.</p>
<p>You can get a full screen GUI if you use Flash, but the user is informed about it (try watching a YouTube vid in fullscreen) and also the user can't do everything they can otherwise, like type using the keyboard.... |
Database design question <p>I accumulated a quite a lot of data in a raw form (csv and binary) - 4GB per day for a few months to be precise.</p>
<p>I decided to join the civilized world and use database to access the data and I wondered what would be the correct layout; the format is quite simple: a few rows for every... | <p>You don't really say what your background is and how much you know about programming and <a href="http://en.wikipedia.org/wiki/Database_design" rel="nofollow">database design</a>. It sounds like you should do some reading. Conceptually though your design is fairly simple. Your description identifies a mere two en... |
Can any one provide me a sample of using CreateHatchBrush <p>I want to draw a shadow around a thumbnail in my software.
It seems CreateHatchBrush can help but I do not know how to use it, can anyone provide me a sample in C++?
Many thanks!</p>
| <p>I don't have a sample, but some hints on general usage of brushes in Windows.</p>
<p><code>CreateHatchBrush()</code> returns a handle. You need to use that handle to make that brush the current brush in the Device Context you are using to render. Call the Device Context's <code>SetObject</code> function (plain Wind... |
Using FTP with NSURL <p>I want to write a cocoa application which downloads a file using ftp. I read about the NSURL class which has "NSURLHandle FTP Property Keys". I want to know how do I make use of these constants to provide username and password to the ftp site.</p>
| <p>NSURLHandle is deprecated and has been for a while. Please use NSURLConnection or NSURLDownload instead. Either create one of these objects with a URL like this:</p>
<p>ftp://user:password@ftp.example.com/foo/bar.zip</p>
<p>Or, implement the authentication delegate method and pass in a standard URL:</p>
<p>ftp://... |
How can one add an XML file in classpath at runtime in java? <p>I am not sure if a URLClassLoader can be used. Also, only the relative path of the XML is known.</p>
<p>Thank You.</p>
| <p>If you just mean read in an XML file that is already on the classpath, so that you can parse it using whatever library you prefer, the most compact way is using a <code>ClassLoader</code>:</p>
<pre><code>InputStream is = ClassLoader.getResourceAsStream();
// use the input stream however you want
is.close()
</code><... |
How to design interface for a game in Java <p>We're a team of a designer and a programmer. Me, the programmer, is hopeless on design of all sorts, so the user interface of the game must be created by the designer. We were thinking of a main screen, where the character walks around, a small minimap in the top, an invent... | <p>take a look at this:</p>
<p><a href="http://www.cs.qub.ac.uk/~P.Hanna/CSC207/lectures/lectures.htm" rel="nofollow">http://www.cs.qub.ac.uk/~P.Hanna/CSC207/lectures/lectures.htm</a></p>
|
C#: What does the [string] indexer of Dictionary return? <p>What does the <code>[string]</code> indexer of <code>Dictionary</code> return when the key doesn't exist in the Dictionary? I am new to C# and I can't seem to find a reference as good as the Javadocs.</p>
<p>Do I get <code>null</code>, or do I get an excepti... | <p>If you mean the indexer of a <code>Dictionary<string,SomeType></code>, then you should see an exception (<code>KeyNotFoundException</code>). If you don't want it to error:</p>
<pre><code>SomeType value;
if(dict.TryGetValue(key, out value)) {
// key existed; value is set
} else {
// key not found; value ... |
What is the best method to find the newest last modified time of a folder of files? <p>I have a folder with subfolders of files. I would like to get the newest filename by modified time. Is there a more efficient way of finding this short of looping through each folder and file to find it? </p>
| <p>depends on how you want to do it. do you want you software to start and then look for it or continuously run and keep track of it?</p>
<p>in the last case its good to make use of the FileSystemWatcher class.</p>
|
incrementing array value with each button press? <p>I am building a calculator in C#.
I am not sure what the best way is to have it increment a number in an array every time the button is pressed. Here is one of my current button event handler methods:</p>
<pre><code> //Assign button '2' to 2 with array address of... | <p>numbers[1] += 2;</p>
<p>That should do the trick.</p>
|
Linking a Bundle Target to a Command-Line Target in Xcode <p>I have a project in Xcode that contains multiple targets. One of these builds a sync schema bundle, and another one builds a Foundation command-line tool that initiates a sync session using the schema defined in the bundle.</p>
<p>The schema bundle template ... | <p>After stepping away from the computer for a while, I realized that one solution to this problem was to add <code>Schema-strings.m</code> to the "Compile Sources" phase of the command-line tool's target. But I'd still be interested in hearing about any other ways to get a similar result.</p>
|
SQL Selecting "Window" Around Particular Row <p>It's quite possible a question like this has been asked before, but I can't think of the terms to search for.</p>
<p>I'm working on a photo gallery application, and want to display 9 thumbnails showing the context of the current photo being shown (in a 3x3 grid with the ... | <p>Probably could just use a UNION, and then trim off the extra results in the procedural code that displays the results (as this will return 20 rows in the non-edge cases):</p>
<pre><code>(SELECT
*
FROM photos
WHERE ID < #current_id#
ORDER BY ID DESC LIMIT 10)
UNION
(SELECT *
FROM photos
WHERE... |
How to modify page URL in Google Analytics <p>How can you modify the URL for the current page that gets passed to Google Analytics? </p>
<p>(I need to strip the extensions from certain pages because for different cases a page can be requested with or without it and GA sees this as two different pages.) </p>
<p>For ... | <p>You could edit the GA profile and add custom filters ...</p>
<p>Create a 'Search and Replace' custom filter, setting the filter field to 'Request URI' and using something like:</p>
<p>Search String: <code>(.*ilikecake\.)html$</code></p>
<p>Replace String: <code>$1</code><br />
(was <code>\1</code>) </p>
|
Change Assembly Version in a compiled .NET assembly <p>Simple question... is there a way to change the Assembly Version of a compiled .NET assembly?</p>
<p>I'd actually be fine with a way to change the Assembly File Version.</p>
| <p>You can use <a href="http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx">ILMerge</a>:</p>
<pre>ILMerge.exe Foo.dll /ver:1.2.3.4 /out:Foo2.dll</pre>
<p>A valid reason to do this is to increment the assembly version in a build in you find breaking changes (using NDepend for example). That way if there ... |
MSSQL 2005 Fulltext search setup <p>I'm beginning my foray into fulltext search for MSSQL2005. This is a new, in-dev database, so I can monkey around with it.</p>
<p>Let's say I have a "Form" table that has a one-to-many relationship to two other tables, "Answer" and "Comment." I want the user to be able to enter one ... | <p>In SQL you should use this rule of thumb:
- start with the element you want to retrieve
- add filters to limit the set of elements to retrieve</p>
<p>that sounds like a no-brainer, but it's really all you have to do. Here, you want Form elements (rows), so you write:</p>
<pre><code>SELECT ID
FROM Form
</code></pre... |
What are the implications of using GPL django apps in a non-GPL django project? <p>If I was to integrate a third-party GPLv3,v2 or LGPL django app in my django project, would the licence apply to the complete project or just the third-party application I'm using?</p>
| <p>GPLv2 isn't so viral on web apps, since you're not distributing.
GPLv3 might be, there's some extra wording for this case.</p>
<p>usually it's best to contact the developer. it's not uncommon that he changes licenses, or clarifies his intentions. most Django-related code is under MIT licenses, so it's not unreaso... |
Crystal reports 11: How to handle or trim special characters <p>In my crystal report, I noticed one of the fields being pulled from a table has special characters. More specifically carriage returns and tabs. Is there a way to strip this out, so it doesn't show up blank in my reports?</p>
<p>Thanks in advance.</p>
| <p>This should do it:</p>
<pre><code>stringvar output := {TABLE_NAME.FIELD_NAME};
output := Trim(output); //get rid of leading & trailing spaces
output := Replace(output,Chr(13),''); //get rid of line feed character
output := Replace(output,Chr(10),''); //get rid of carriage return character
//add any other sp... |
Application of [L]GPL to Java/C# code <p>How the [L]GPL license should be applied to Java and C# code ? I know that when Sun JDK become GPL, they did special exceptions for standard libraries. </p>
<p>So, if I cannot open my application source and still want to distribute it ...</p>
<ul>
<li>... could I use GPL'ed li... | <p>Firstly, if you're building commercial software on top of someone else's work, you should hire a lawyer to help you ensure that you remain in compliance with the copyright holder's license and your specific usage.</p>
<p>That said, here's my advice:</p>
<ol>
<li>You should not link to a GPL app or library unless y... |
Task Schedule Refusal <p>Although some might not think of it as programming related, it certainly is. The task Scheduler is a program. It's launching a process that I have written. Stating that it's a common problem is not very helpful.</p>
<p>I've set up my own backup procedures, both on a Windows xP machine at ... | <p>Maybe a dumb question - but is his login an administrator on the box? I would set up a "service account" and give it administrator privileges and run the task under that account. There may be residual problems with anti-virus or firewall - depending on what he is using now he may have to explicitly authorize that ... |
Windows Disk Cloning vs Automatic installation of servers <p>During development , testing, and deployment, I have a need to fully automate a windows 2003 server setup.</p>
<p>I'm trying to find the best way to automatically delpoy a server, which installs the OS, software dependencies that I have (for example SQL serv... | <p>I don't know if it is an option in your case, but another thing to seriously consider is Virtualization.</p>
<p>Virtualization basically has all the benefits of disk cloning, but you don't have the hardware / driver issues.</p>
<p>If you take snapshots at the right points in time on your base VM you will be able t... |
Split by \b when your regex engine doesn't support it <p>How can I split by word boundary in a regex engine that doesn't support it?</p>
<p>python's re can match on \b but doesn't seem to support splitting on it. I seem to recall dealing with other regex engines that had the same limitation.</p>
<p>example input:</p>... | <p>(\W+) can give you the expected output:</p>
<pre><code>>>> re.compile(r'(\W+)').split('hello, foo')
['hello', ', ', 'foo']
</code></pre>
|
Why would you use a ".pfx" file in .NET <p>What is the ".pfx" extension used for in .NET?</p>
<p><br /></p>
<p>Why does it ask for a password when the solution is being built?</p>
| <p>A file containing an encrypted private key. It's probably being used for code signing the application (so the user knows who created the program and hence if they can trust it).</p>
<p>You can probably see it being used by right-clicking on the project, getting Properties, then looking at the Signing tab.</p>
|
Data Access Library Return DataSet or Object <p>Is there a general consensus out there for when working with library's that call stored procedures? Return datasets or use sqldatareader to populate custom objects?</p>
<p>Is the cost of serialization your Data Transport Object less then a DataSet?</p>
| <p>Personally, I use a SqlDataAdapter with DataTables. DataTables have <em>WAY</em> less overhead than DataSets. My entity objects only contain business rules, they aren't used to transport data across tiers.</p>
|
What's the difference between using jQuery's onclick and the onclick attribute? <p>What's the difference between the following two pieces of HTML (apologies if there are any typos as I'm typing this freehand)?</p>
<p>Using jQuery:</p>
<pre><code><script type="text/javascript">
$(document).ready(function() {... | <p>One big difference is that jQuery's events are handled in a registry which is parsed on the click event. Crucially, this means that you are permitted to assign multiple callbacks, and have them triggered in the order in which they were registered:</p>
<pre><code><script type="text/javascript">
$(document... |
Keyboard hook w/ C# and WPF for minimized system tray application <p>I have a WPF application that I minimize to the system tray through this.Hide() and System.Windows.Forms.NotifyIcon. When it's minimized, I want to have a keyboard hook maximize the application. How do I register a keyboard hook like Windows-Button ... | <p>If you don't mind Win32 API calls, I'd say your best bet is to call <a href="http://msdn.microsoft.com/en-us/library/ms646309%28VS.85%29.aspx" rel="nofollow">RegisterHotKey</a>. You pass it the modifier and key to catch, then a <code>WM_HOTKEY</code> is sent to the HWND that you passed in originally.</p>
|
productivity superstar frameworks/tools for side gigs <p>If you were going to start building web sites as a consulting business on the side -- keeping your day job -- and you also had a toddler and a wife, what frameworks/tools would you pick to save you typing? </p>
<p>Any language. </p>
<p>I'm looking for a product... | <p>I would suggest Django. Super simple to get something up and running really quick. You are using Python which has a large library to go with it. For me Ruby on Rails would be a close second.</p>
|
How to install JScience library in Eclipse? <p>Or just any library, in general? I downloaded the bin.zip file, but I can't seem to do much with it? This is driving me up the wall...</p>
<p>EDIT: In other words, there is no "standard" way to do it? I know how to add the Jar files, is it ok to just put them (and the doc... | <p>Shouldn't be much harder than putting the JARs into your project build path.</p>
<p>Unzip the archive and put the JARs where Eclipse can find them.</p>
|
How to flush all caches in process for EntLib Caching <p>I'd like to know if there is a way to tell the Enterprise Library Caching objects to flush all configured caches for that process to flush.</p>
<p>Even enumerating through all of the configured caches for that process, and manually flushing each one, is ok, but ... | <p>How about this:</p>
<pre><code>CacheManagerSettings conf = (CacheManagerSettings)ConfigurationSourceFactory.Create()
.GetSection(CacheManagerSettings.SectionName);
conf.CacheManagers.ForEach(delegate(CacheManagerDataBase cache) {
CacheFactory.GetCacheManager(cache.Name).Flush();
});
</code></pre>
|
How can I obtain the dimensions of a Flash video file from PHP code? <p>I have an application where users can upload video files of any size, and I'd like to be able to determine the the height/width of a Flash video file (flv or f4v) from a PHP script so that I can size the player appropriately. I'd love a pure PHP s... | <p><a href="http://www.ffmpeg.org/">ffmpeg</a> is probably your best bet, there is even a <a href="http://ffmpeg-php.sourceforge.net/">php module</a> of it.</p>
<p>ffmpeg -i "FileName"</p>
<p>Alternativly you could read the information from the flv file directly by opening the file and reading the meta information.</... |
HTMl Helpers in MVC: How do I render html tags with helper such as ActionLink? <p>When using ActionLink to render data from database which has HTML tags </p>
<pre><code>(ie <p>)
</code></pre>
<p>incorporated in it, ActionLink escapes the tags. What is the best way to handle this? </p>
| <p>I don't know that you can turn off the XSS protection in the helper methods, but you can always build your own helper methods. Just make an extension method that hangs off the Html class. </p>
<p>If you just want to render some HTML from the database, you can use <%= ViewData["MyContent"] %> if you're controll... |
Calculating the semantic distance between words <p>Does anyone know of a good way to calculate the "semantic distance" between two words?</p>
<p>Immediately an algorithm that counts the steps between words in a thesaurus springs to mind.</p>
<hr>
<p>OK, looks like a similar question has already been answered: <a hre... | <p>The thesaurus idea has some merit. One idea would be to create a graph based on a thesaurus with the nodes being the words and an edge indicating that there they are listed as synonyms in the thesaurus. You could then use a shortest path algorithm to give you the distance between the nodes as a measure of their si... |
Going where PHP parse_url() doesn't - Parsing only the domain <p>PHP's parse_url() has a host field, which includes the full host. I'm looking for the most reliable (and least costly) way to only return the domain and TLD.</p>
<p>Given the examples:</p>
<ul>
<li><a href="http://www.google.com/foo">http://www.google.... | <p>How about something like that?</p>
<pre><code>function getDomain($url) {
$pieces = parse_url($url);
$domain = isset($pieces['host']) ? $pieces['host'] : '';
if (preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)) {
return $regs['domain'];
}
return false;
}
</cod... |
Why doesn't a Dictionary access nonexistent keys like a Hashtable does? <p>If I'm using a <code>Hashtable</code>, I can write code like this:</p>
<pre><code>object item = hashtable[key] ?? default_value;
</code></pre>
<p>That works whether or not <code>key</code> appears in the <code>Hashtable</code>.</p>
<p>I can't... | <p>The difference between a <code>Dictionary<T></code> and a <code>Hashtable</code> is that a <code>Dictionary<T></code> is a generic type that can specialize to store value types along reference types.</p>
<p>The hashtable can only store reference types (a <code>Object</code> passed by reference) and only... |
Is it possible to get the raw param string in rails? <p>Given the following url: </p>
<pre><code>http://foo.com?bar=1&wee=2
</code></pre>
<p>What is the quickest way to get the raw param part of the url from an action? </p>
<p>i.e.</p>
<pre><code>?bar=1&wee=2
</code></pre>
| <p>Sure, just use request.query_string from within your controller</p>
|
WPF Default Credential <p>I am trying to access .net 2.0 Web Service from WPF. I generated the proxy using Visual Studio and also Credential of the proxy to Default Credentials. </p>
<p>I am getting 401 Unauthorized while accessing the web service. When I output the user name from the default credential it is empty, A... | <p>found solution to my problem, </p>
<p>{proxy}.UseDefaultCredentials = true;
It works after setting this flag to true</p>
|
<label> on checkboxes: is there a reason why more websites don't use it? <p>I always try to do the following:</p>
<pre><code><label><input type="checkbox" /> Some text</label>
</code></pre>
<p>or</p>
<pre><code><label for="idOfField"><input type="checkbox" id="idOfField" /> Some text<... | <p>I think it's probably more a factor that people don't know about the <label> tag. I didn't, until this post.</p>
|
How to make an embedded video not autoplay <p>I'm embedding a Flash video into an HTML and would like the user to have to click it to begin playing. According to the <a href="http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_12701">Adobe <code><object></code> / <code><embed></code> element docume... | <p>A couple of wires are crossed here. The various <code>autoplay</code> settings that you're working with only affect whether the SWF's root timeline starts out paused or not. So if your SWF had a timeline animation, or if it had an embedded video on the root timeline, then these settings would do what you're after.</... |
Development tactics : phoenix development cycles <p>I was wondering how you guys actually develop large applications when you are your own boss. For myself I have been learning the hard way the necessity for patience and hope.
I have been working on implementing an application (in the form of a series of scripts linke... | <p>keep a development log; this is the place to discuss details with yourself, work things out on paper, sketch documentation, make notes about current and future issues, remind yourself what you've tried and what you have left to try, and so on. It's also a good idea to always note what the 'next thing to do' is, so y... |
Google Map Overlay Icon disappears at certain zoom level <p>I notice that Firefox 3 demonstrates this problem. I put down an overlay icon and play around with the map zoom. At certain zoom level, I found that the icon disappears for some unknown reason. </p>
<p>Zooming out brings back the icon. Or during the disappear... | <p>Try using <code>optimized: false</code> when creating the marker.</p>
|
rails model attributes without corresponding column in db <p>I have some rails models which don't need any persistence, however I'd like rails to think the model actually has attributes x, y, z so when calling methods like to_json in the controller I get them included for free.</p>
<p>For example,</p>
<pre><code>clas... | <p>Just don't inherit from ActiveRecord::Base</p>
<p>Edit: Have you tried passing options to to_json, like :methods perhaps? See <a href="http://api.rubyonrails.org/classes/ActiveRecord/Serialization.html#M001637" rel="nofollow">here</a></p>
|
Making JavaFX compile to Java 1.6 level source code <p>How do I make JavaFX with netbeans compile my code to 1.6 level compliance.</p>
<p>At the moment it seems to be hard coded to 1.5 levels - stopping me from using useful tools in java.awt.Desktop (and the like)</p>
| <p>Remember - because JavaFX must run on the Apple Java run-time which currently is Java 1.5 - JavaFX can't compile to Java 1.6.</p>
<p>Thus it likely will change in the future so that it can compile to Java 1.6.</p>
|
iPhone Development - Complex application using multiple views/xib/nib <p>I'm new to iPhone development, and multiple views (xib or nib) are really confusing me. This is what i'm trying to achieve...</p>
<ol>
<li>View with Tab Bar (Tab 1, Tab 2, Tab 3)</li>
<li>Tab 2 View (Navigation Controller)
2.1 Selecting Table Row... | <p>For the iPhone, you'll want to handle most views and switching between with the the respective view controllers. For your case, these would be the UITabBarController and UINavigationController. For the purposes of controlling them outside the user's own actions and for storing data, as you want, you'll probably need... |
Design question for abstract base class? <p>Have a interface </p>
<pre><code>class abc {
public:
virtual int foo() = 0;
...
}
class concrete1: public abc {
public:
int foo() {
..
}
class concrete2 : public abc {
public:
int foo() {
..
}
}
</code></pre>
<p>Now in my main program I need to construct clas... | <p>You are looking for <a href="http://en.wikipedia.org/wiki/Factory_method_pattern" rel="nofollow">http://en.wikipedia.org/wiki/Factory_method_pattern</a></p>
|
How do I enforce a package-level build order in eclipse <p>Explanation:
Say package A is always built first and then package B. I need to configure my eclipse workspace such that it mimics the build environment and shows compilation errors when sources in package A refer package B. Is this possible? If yes, how?</p>
| <p>You'd need to build them as separate projects, with project B referring to project A but not the other way round.</p>
|
Should developers fear updates to their workstation software / development stack? <p>As I have discovered, many developers avoid any updating (automatic or manual), because they fear it might do changes to their machine they don't understand, and the software they are developing might fail at some point for reasons the... | <p>B. Definitely. </p>
<p>If you're developing for a platform with uncertain update pedigrees (e.g. The Real World) then virtual machines are an important weapon, but it pays to be as up to date as possible when you release. </p>
<p>It's so much easier to tell your users "just run the update" than to try and guess wh... |
Best compiler warning level for C/C++ compilers? <p>What compiler warning level do you recommend for different C/C++ compilers?</p>
<p>gcc and g++ will let you get away with a lot on the default level. I find the best warning level for me is '-Wall'. And I always try to remove fix the code for the warnings it genera... | <p>This is a set of extra-paranoid flags I'm using for C++ code:</p>
<pre><code> -g -O -Wall -Weffc++ -pedantic \
-pedantic-errors -Wextra -Waggregate-return -Wcast-align \
-Wcast-qual -Wchar-subscripts -Wcomment -Wconversion \
-Wdisabled-optimization \
-Werror -Wfloat-equal -Wformat -Wformat=2... |
Populating Rails Form Fields after an auto_complete field is populate <p>I am trying to create a form in Rails 2.2.2 that populates a field based on a choice a user has made in an 'auto_complete' field. It looks as though the observe_field functionality is what I need to use but I'm stuck on how to update the value of ... | <p>There's a Railscasts episode for this:
<a href="http://railscasts.com/episodes/88" rel="nofollow">http://railscasts.com/episodes/88</a></p>
<p>hope this helps :)</p>
|
Should I use the same controller and view for editing and creating models in ASP.NET MVC? <p>Should I use the same controller and view for editing and creating models in ASP.NET MVC, or should I create a view and controller action for creating and a view and controller action for editing?</p>
<p>The editing view is ce... | <p>The recommendations I've seen are suggesting that the views are separate with common elements contained within a control to stay DRY.</p>
<p>It seems logical to take the same approach with the controller - reuse common parts where appropriate.</p>
<p>This view is mirrored here <a href="http://stackoverflow.com/que... |
Ignoring XML errors in Python <p>I am using XML minidom (xml.dom.minidom) in Python, but any error in the XML will kill the parser.
Is it possible to ignore them, like a browser for example?
I am trying to write a browser in Python, but it just throws an exception if the tags aren't fully compatible.</p>
| <p>There is a library called <a href="http://www.crummy.com/software/BeautifulSoup/">BeautifulSoup</a>, I think it's what you're looking for.
As you're trying to parse a invalid XML, the normal XML parser won't work. BeautifulSoup is more fail-tolerant, it can still extract information from invalid XML.</p>
<blockquot... |
Reading and running a mathematical expression in Python <p>Using Python, how would I go about reading in (be from a string, file or url) a mathematical expression (1 + 1 is a good start) and executing it? </p>
<p>Aside from grabbing a string, file or url I have no idea of where to start with this.</p>
| <p>Because python supports some algebraic forms, you could do:</p>
<pre><code>eval("1 + 1")
</code></pre>
<p>But this allows the input to execute about anything defined in your env:</p>
<pre><code>eval("__import__('sys').exit(1)")
</code></pre>
<p>Also, if you want to support something python doesn't support, the a... |
Linq returns list or single object <p>I have a Linq to Entities query like this one:</p>
<pre><code>var results = from r in entities.MachineRevision
where r.Machine.IdMachine == pIdMachine
&& r.Category == (int)pCategory
select r;
</code></pre>
<p>Usually, I use th... | <p><strong>EDIT</strong>: Based on your update, the error may be related to an enum in your entity class. See this <a href="http://gmontrone.com/problem-with-casting-enums-in-linq-to-entities/">blog entry</a> for more information and a work-around. I'm leaving my original answer as an improvement on your query syntax... |
How to dispose asynchronously? <p>Let's say I have a class that implements the <strong>IDisposable</strong> interface. Something like this:</p>
<p><img src="http://farm4.static.flickr.com/3199/3149605015_f090f20185_o.png" alt="http://www.flickr.com/photos/garthof/3149605015/" /></p>
<p><strong>MyClass</strong> uses s... | <p>It looks like you're using the event-based async pattern (<a href="http://msdn.microsoft.com/en-us/library/ms228969.aspx">see here for more info about .NET async patterns</a>) so what you'd typically have is an event on the class that fires when the async operation is completed named <code>DoSomethingCompleted</code... |
How do I automatically delete tempfiles in c#? <p><br>
What are a good way to ensure that a tempfile is deleted if my application closes or crashes? Ideally I would like to obtain a tempfile, use it and then forget about it.</p>
<p>Right now I keep a list of my tempfiles and delete them with an eventhandler that trigg... | <p>Nothing is guaranteed if the process is killed prematurely, however, I use "<code>using</code>" to do this..</p>
<pre><code>using System;
using System.IO;
sealed class TempFile : IDisposable
{
string path;
public TempFile() : this(System.IO.Path.GetTempFileName()) { }
public TempFile(string path)
{... |
Office XP Shared Addin VS 2008 <p>I'm trying to create a Shared Addin using VS 2008 for Office XP (Excel to be precise). However, after creating the project in Visual studio and changing the references to Office XP (apart from Extensibility which I don't seem to be able to find a copy for office xp) and adding excel.ex... | <p>I found the problem with this in the end.</p>
<p>The problem came from a KB entry <a href="http://support.microsoft.com/kb/908002" rel="nofollow">908002</a>. Unfortunatley, to run the fix you need Visual Studio 2005 and Office 2003 installed otherwise it won't deploy the fix and so I had glossed over this quite a f... |
How can I get a list of available wireless networks on Linux? <p>I would like to get a list of the wireless networks available. Ideally this would be via some C call, but I don't mind if I have to kludge it with a system call. Even better if the required C call or program doesn't require some exotic 3rd party package.<... | <p>It's pretty easy to do a scan in the command line. The man pages are your friend here (check out <strong>iwconfig</strong> and <strong>iwlist</strong>). But using the C interface is a little more difficult so I'll focus on that.</p>
<p>First of all, as other people have mentioned, definitely download out the <a hre... |
Tool for testing using parameter permutations <p>I remember there existed a testing program/library that will run your code and/or unit tests, creating all kinds of permutations of the parameters (null values, random integers, strings and so on). I just can't remember what it was called and searching google doesn't see... | <p>The <a href="http://www.agitar.com/solutions/products/automated_junit_generation.html" rel="nofollow">AgitarOne JUnit Generator</a> comes to mind. I'm not sure it's what you're thinking of, though.</p>
|
Getting an error while attempting to checkout with SharpSVN <p>While attempting to use the following code, I am receiving the following error : Already working for different url, error code 155000.</p>
<pre><code>string targetPath = @"C:\Documents and Settings\Admin\My Documents\CPM Creator\"; //" for prettify
client... | <p>Well, is it correct? Is this already the working path for a SVN folder? Are there any hidden svn folders in that location?</p>
<p>I use SharpSVN in a "get to scratch area, work locally, throw away" cycle, so I always start with a clean (empty) folder (with no SVN folders in the ancestors). This has always worked fa... |
What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? <p>What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? Why would I choose one over the other? and what happened to Java Applets and ActiveX controls?</p>
<p>Oh, and where does AJAX fit in to all this? and is Las... | <p>Big topic and it would take pages to provide a full answer so here is the "short" version...</p>
<ol>
<li><p>Adobe Flex/AIR is by far the most mature RIA platform out there and it runs in FlashPlayer. You write apps using ActionScript (similar to Javascript) and MXML (markup used primarily for layout/view code). Yo... |
Sample Hibernate program? <p>How would I write a simple program using Hibernate in Java, with MySQL as a backend?</p>
| <p>The <a href="http://www.hibernate.org/hib_docs/v3/reference/en-US/html/" rel="nofollow">Hibernate reference docs</a> are a good place to start.</p>
<p>Maybe a <a href="http://www.javaworld.com/javaworld/jw-10-2004/jw-1018-hibernate.html" rel="nofollow">"Hello, Hibernate"</a> can help.</p>
|
What are the major differences between Rails 1.X and 2.X <p>Most dead-tree books and web tutorials address Rails 1.X. I'm wondering if they are worth using to learn Rails 2.X. If so, what sections and concepts should I avoid and what have pretty much stayed the same?</p>
| <p>One of my favorite books is the "skateboard" book from The Pragmatic Programmers, "Agile Web Development with Rails". Many of the things that have changed were moved from core into plugins, so if they are features that you want or need, then you can still use them. Most of the new features were adding, rather than r... |
Best practice for managing data-model changes in a released system <p>I am about to embark on the development of a web application project.</p>
<p>I'd like to get something up early and often for early adopters to play with and feedback.</p>
<p>But I envisage the data model changing as the project progresses and my u... | <p>What platform are you using? Ruby on Rails gives you migration scripts as part of the package. If you're in Java-land, you might want to check out <a href="http://migrate4j.sourceforge.net/" rel="nofollow" title="migrate4j">migrate4j</a>.</p>
<p>In the end, I'd suggest doing both things: Warn your users that the... |
Testing C code using the web <p>I have a number of C functions which implement mathematical formulae. To-date these have been tested for mathematical "soundness" by passing parameters through command line applications or compiling DLL's for applications like Excel. Is there an easy way of doing this testing over the ... | <p>You should have a look into automated testing. Manual tests will all have to be repeated every time you change something in your code. Automated tests are the solution for your kind of tests. Let testers write test cases with the accompanying results, then make them into unit tests. </p>
<p>See also: <a href="http:... |
How can I create an instance of an arbitrary Array type at runtime? <p>I'm trying to deserialize an array of an type unknown at compile time. At runtime I've discovered the type, but I don't know how to create an instance.</p>
<p>Something like:</p>
<pre><code>Object o = Activator.CreateInstance(type);
</code></pre>
... | <p>Use <a href="http://msdn.microsoft.com/en-us/library/system.array.createinstance.aspx">Array.CreateInstance</a>.</p>
|
layer hit test only returning layer when bottom half of layer is touched <p>I have a sublayer on a layer-backed view. The sublayer's contents are set to an Image Ref and is a 25x25 rect.<br />
I perform a hit test on the super layer when the touchesBegan and touchesMoved methods are invoked. The hit test method does, ... | <p>The documentation for hitTest says:</p>
<pre><code>/* Returns the farthest descendant of the layer containing point 'p'.
* Siblings are searched in top-to-bottom order. 'p' is in the
* coordinate system of the receiver's superlayer. */
</code></pre>
<p>So you need to do (something like this):</p>
<pre><code>CGP... |
What ASP.NET Web Controls implement IPostBackDataHandler? <p>Could someone point me to a list of controls that implement <code>IPostBackDataHandler</code>?</p>
<p>I want to know what controls implement this interface and what properties the controls will set during the <code>Postback</code>.</p>
<p>For example:</p>
... | <p>In the .NET IDE open the Object Browser Window. You can find this window on the View menu, or it may be, depending on your configuration, on the top toolbar.</p>
<p>In the search textbox type in the class, or interface in this case, you are looking for: <code>IPostBackDataHandler</code> and submit.</p>
<p>In the r... |
Preventive vs Reactive C# programming <p>I've always been one to err on the side of preventing exception conditions by never taking an action unless I am certain that there will be no errors. I learned to program in C and this was the only way to really do things.</p>
<p>Working with C# I frequently see more reactive... | <p>As usual, the answer is "it depends", but I subscribe to the "fail fast" philosophy in general.</p>
<p>I prefer to use try/finally (sans catch) unless I can actually do something useful to recover from an exception in a particular block of code. Catching every possible exception isn't worth it. In general, failing ... |
Display os x window full screen on secondary monitor using Cocoa <p>I'm working on a Cocoa Mac app where I need to display a window/view on a secondary monitor, full-screen. I know how to create a window that could be dragged onto the secondary monitor, but I was wanting to programatically create the window and make i... | <p>First, determine which screen you want to use by iterating over [NSScreen screens].</p>
<p>Create a full screen window with:</p>
<pre><code>NSScreen *screen = /* from [NSScreen screens] */
NSRect screenRect = [screen frame];
NSWindow *window = [[NSWindow alloc] initWithContentRect:screenRect
styleMask:NSBorder... |
high cpu in IIS <p>I'm developing a POS application that has a local database on each POS computer, and communicates with the server using WCF hosted in IIS. The application has been deployed in several customers for over a year now.</p>
<p>About a week ago, we've started getting reports from one of our customers that... | <p>Usually this has nothing to do with hardware and everything to do with how IIS is configured coupled with some slightly long running queries (100+ milliseconds).</p>
<p>Under your application pool configuration set your web garden setting to something like 20 or more. </p>
<p>The web garden setting is pretty much... |
Expression Web: Shortcut doesn't point to an exe file, but I want to use it to edit <p><strong>Problem:</strong> I have to support users who need to edit web pages. Some of these web pages exist only as textarea controls. Fortunately, there is a firefox plugin that allows the user to open the textarea in a default text... | <p>I found my executable in the following location:</p>
<pre><code>C:\Program Files\Microsoft Expression\Web Designer\EXPRWD.EXE
</code></pre>
<p>I'm not sure if that gives you what you need, but you can always have your users (or programmatically) search for EXPRWD.EXE and go from there.</p>
|
Converting GUID to Integer and Back <p>so I have a 3rd party application that I have to interface with, this application needs the userID from my users table. the problem is that I store my userIDs as GUIDs and the 3rd party app only accepts an integer. so I figure, if there is a way to convert a GUID to an integer th... | <p>You'll need a store a mapping from your Guid to the 3rd party's integer: either a new "int thirdPartyId" field in your existing user table, or a new table.</p>
|
How do I Change the FontFamily on a ContentPresenter? <p>I have a custom template for an expander that is close to the code below. I had to change some of the code to take out custom classes, brushes, etc..</p>
<pre><code><Style TargetType="{x:Type Expander}">
<Setter Property="HorizontalContentAlignment"
... | <p>You need to use the FontWeight property to specify a bold font. However, you've probably noticed that ContentPresenter doesn't have that property. So you'll need to use the <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.textblock.fontweight.aspx">TextBlock.FontWeight</a> attached property t... |
"Brokered definition set" design pattern -- well-known under another name? <p>In a project that I've been involved with for many years, I've gradually evolved a design pattern that's proven to be extremely useful for me. I sometimes feel I should get a bit evangelical with it, but I'd be a bit embarrassed if I tried a... | <p>I've used a pattern similar to this before, most often in games. I'd have a WeaponDefinition and WeaponInstance classes (not quite with those names). The WeaponDefinition class (and various subclasses, if I have different types of weapons, e.g. melee vs projectile) would be responsible for keeping track of the glo... |
Is there anyway to speed up SQL Server Management Objects traversal of a existing database? <p>I'm currently using SMO and C# to traverse databases to create a tree of settings representing various aspects of the two databases, then comparing these trees to see where and how they are different.</p>
<p>The problem is, ... | <p>Try to force SMO to read all the required fields at once, instead of querying on access.
See <a href="http://davidhayden.com/blog/dave/archive/2006/03/29/2894.aspx" rel="nofollow">this blog</a> for more information</p>
<hr>
<p>EDIT: Link is dead but I found <a href="http://web.archive.org/web/20100102060107/http:/... |
More than a window in Processing <p>Is it even possible? Can you load more than one image and have them displayed in more than one window?</p>
| <p>Yes.</p>
<p>It would be useful if you could clarify your question a bit more (Web or Desktop application? Server or Client Side (Flash, Java, JavaScript)? Any existing Framework (.net? Ruby on Rails?) or technology (GDI+? ImageMagick?), but the answer to your question is in most circumstances "Yes", and "Yes, but.... |
Jquery video tutorial resources <p>Is there any place where I can find JQuery video tutorials from novice level to master level? The books I saw mostly assume you are very familiar with CSS syntax. If there is any video tutorial resource for CSS, that would be awesome too.</p>
| <p>I found the following links: </p>
<ul>
<li><a href="http://www.google.ca/search?hl=en&q=jquery+video+tutorials&btnG=Google+Search&meta=" rel="nofollow">JQuery Video Tutorial</a> (via <a href="http://google.com" rel="nofollow">Google</a>) </li>
<li><a href="http://15daysofjquery.com/jquery-online-movie... |
ASP.net Ajax: Use Code behind function instead web service <p>Is it possible not to use web service for ASP.net ajax instead call code-behind function to fetch data?</p>
<p>any example or link is much appericate.</p>
| <p>According to the <a href="http://www.asp.net/AJAX/AjaxControlToolkit/Samples/AutoComplete/AutoComplete.aspx" rel="nofollow">ASP.NET AJAX documentation</a> (at least for the AutoComplete TextBox control), if you do not provide the ServicePath property for the control to access, then the method that is to be called (s... |
Trace and Debug statements <p>Im a little confused over how to use the .NET Trace and Debug classes.</p>
<p>Why would you bother using Trace instead of Debug?</p>
<pre><code>Trace.TraceError()
Trace.TraceInformation()
Trace.Assert()
Debug.WriteLine()
Debug.Assert()
</code></pre>
<p>Also, I understand that Debug sta... | <p>At the simplest level, they have different compilation switches - i.e. <code>Debug.WriteLine</code> etc is only toggled if you have the <code>DEBUG</code> compilation symbol (not common for release builds), where-as <code>Trace.WriteLine</code> will usually be included even in release builds.</p>
<p>The <code>Trace... |
Working with large wsdl, can we trim it? <p>My webservice provider give me a large WSDL file, but we are going to use only a few function inside.</p>
<p>I believe that the large WSDL have negative impact to the application performance.</p>
<p>We use the webservice in client appliction, <strong>startup time</strong> a... | <p>In short, your answers are "No tool, but you can DIY".</p>
<p>I wish there are simple tool can do it because my WSDL contains too many unused function and schema of data structure.</p>
<p>If I can automate it, WSDL -> trimmed WSDL -> generate client stubs classes. Nothing unused will be generated, no misuse, no m... |
Layering images in CSS - possible to put 2 images in same element? <p>Supposing I'm setting a background image for a web page in CSS like this:</p>
<pre><code>body {
font-size: 62.5%; /* Resets 1em to 10px */
font-family: Verdana, Arial, Sans-Serif;
background-color: #9D5922;
color: #000;
margin-left: auto;
margin-... | <p>Layered backgrounds are part of the <a href="http://www.w3.org/TR/css3-background/#layering" rel="nofollow">CSS3 Working Draft</a> but, as far as I know, support for them is limited to WebKit/KHTML-based browsers such as Safari, Chrome, Konqueror and OmniWeb.</p>
<p>Using your example code, this would look like:</p... |
Back Button with iFrames <p>I'm using an iframe to display content that has links. When the user clicks around in the iFrame and hits "back," it goes back in the iFrame. This behavior is OK. However, once they're back to the first page of the iFrame and they hit "back" again, the entire window is taken back to the p... | <pre><code>document.location.href = document.referrer;
</code></pre>
|
Is it possible to "add" to classpath dynamically in java? <pre><code>java -classpath ../classes;../jar;. parserTester
</code></pre>
<p>How can i get the functionality in the above command programmatically? Like, is it possible to run as:</p>
<pre><code>java parserTester
</code></pre>
<p>and get the same result? I tr... | <p>You can use a java.net.URLClassLoader to load classes with any program defined list of URL's you wish:</p>
<blockquote>
<p>public class URLClassLoader
extends SecureClassLoader</p>
<p>This class loader is used to load
classes and resources from a search
path of URLs referring to both JAR
files and di... |
About "AUTOMATIC TEXT SUMMARIZER (lingustic based)" <p>I am having "AUTOMATIC TEXT SUMMARIZER (linguistic approach)" as my final year project. I have collected enough research papers and gone through them. Still I am not very clear about the 'how-to-go-for-it' thing. Basically I found "AUTOMATIC TEXT SUMMARIZER (statis... | <p><a href="http://research.microsoft.com/en-us/um/people/cyl/download/papers/lexical-chains.pdf">Using Lexical Chains for Text Summarization (Microsoft Research)</a></p>
<p>An analysis of different algorithms: <a href="http://www.ark.cs.cmu.edu/LS2/images/9/90/DasMartins.2007.pdf">DasMartins.2007</a></p>
<p>Most imp... |
Possible to generate an iPhone application automatically from another iPhone application? <p>As title; is there any function that can achieve this?</p>
| <p>Officially, no. Official apps must be compiled and signed on an OS X machine.</p>
<p>In practice, sort of - if you don't mind jailbreaking. For jailbroken phones, gcc and signing tools are available that run on the iPhone. So on jailbroken phones you could have an application that generated new applications. Apple ... |
Batching in ADO.NET without DataAdapters <p>Is it possible to implement batching of multiple stored procedure calls (doing updates/deletes) in ADO.NET without resorting to DataAdapters?</p>
| <p>You could try using System.Data.SqlClient.SqlCommandSet. It's actually internal, but <a href="http://ayende.com/Blog/archive/2006/09/13/OpeningUpQueryBatching.aspx" rel="nofollow">Ayende made a wrapper to make it public</a>.</p>
<p>Code is currently hosted in <a href="http://rhino-tools.svn.sourceforge.net/viewvc/r... |
Using Git in a Company? <p>At my workplace we have one large Subversion repository which holds about 100 projects. Some projects use each other through svn:externals. Usually all people have read+write access to everything, but sometimes external people and interns have only restricted read/write access to some custom ... | <p><strong>Structure:</strong> Yes, 1 project per repository. Git is designed for it to work this way and it does it quite nicely.</p>
<p><strong>Reusing Code:</strong> Use <a href="http://git-scm.com/docs/git-submodule">git submodules</a> (very similar to svn:externals, only better)</p>
<p><strong>Access rights:</s... |
Easiest way to move Outlook 2007 emails to GMail? <p>I've decided to move completely away from my old POP3 email accounts and into GMail.</p>
<p>I have a lot of archived mail in a Outlook 2007 .pst file.</p>
<p>I know I could just forward them from Outlook, but then I would receive them as only one email with a lot o... | <p>The most foolproof way I think is add your Gmail account to Outlook and move the messages within Outlook. Don't have any experience, but Google gives a lot of useful results.</p>
|
Camellia Ruby Computer Vision Library on OS X <p>Has anyone had any luck getting the <a href="http://camellia.sourceforge.net/" rel="nofollow">Camellia</a> computer vision library to install on OS X? I've been banging my head against a wall trying to get it to install. There is <a href="http://po-ru.com/diary/camellia-... | <p>What exactly is your problem? Is there any error message? Are you trying to compile the library or are you trying to build the gem?</p>
<p>The sourcecode of the Camellia library is written in C. If you want to compile the library on your OS X machine you'll need a C <a href="http://en.wikipedia.org/wiki/Compiler" r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.