instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to secure my SQL Server Database so that no one could open it or access programatically without a password. How can I do it? I tried the security section of SQL Server Management Express but it is too complicated for me. Please help. Thanks
stackexchange/codereview
ive a news server Built on Delphi7, using Indy9 TIdTCPServer, and the clients are using TClientSocket from ScktComp for size, and the traffic is encrypted in RC4 (string) what exactly do i need to make my app work on XE or 2010 with Unicode support? what of these things will i have to change?
stackexchange/codereview
Lets say I have a content region that can hold viewmodels/views implementing a certain interface. Now I want to build something that looks like the windows task field thing. You can have several windows open. And if you Minimize one, I want the window to shrink and "fly" down to the task-pane. Just like when you minimi...
stackexchange/codereview
I have a SQL table with the following schema: fruit_id INT price FLOAT date DATETIME This table contains many records where the price of a given fruit is recorded at a given time. There may be multiple records in a single day, there may be I would like to be able to fetch a list of prices for a single fruit o...
stackexchange/codereview
I am starting out with PyGtk and am having trouble understanding the interaction of windows. My very simple question is the following. Suppose I have a class that simply creates a window with a text-entry field. When clicking the "ok" button in that window, I want to pass the text in the entry field to another window, ...
stackexchange/codereview
I have an existing asp.net web app that uses facebook to authenticate users. I am using this facebook toolkit http://facebooktoolkit.codeplex.com/ My page has the following code: <script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script> <script type="...
stackexchange/codereview
I recently switched hosts and am having an issue with the mail() function. On my previous host, I could define the from address through the header by doing this: mail("test@email.com","subject","message","From: fake@email.com"); On the new host however, it ignores the From header. Instead it sends from a default email...
stackexchange/codereview
Why is the save method of the FileReference class not documented in adobe livedocs? Is the documentation just outdated? Are there any more methods/properties I should know about? FileReference Documentation
stackexchange/codereview
MPMoviePlayerDidExitFullscreenNotification is working fine in IOS 4.0 (>=3.2). But leaves a white screen when loaded in IOS 3.1.3 (<3.2).
stackexchange/codereview
i want to get the only one email-id from contact list on clicking the contact list NAME in android. please help me. thank you
stackexchange/codereview
We changed from VS2008 to VS2010 for development. But requirement for the installation of the app is still Framework 3.5. Therefore we target the build to this framework. Everything works fine except an odd behaviour I would like to verify not to be a problem: If someone edits resources existing entries in the resource...
stackexchange/codereview
here my code- if ($handle = opendir('banner/')) { while (false !== ($file = readdir($handle))) { echo "$file"; } closedir($handle); } wher I run this code unnecessary dots(.) are coming. output image-3.jpgimage-4.jpgimage-1.jpgimage-2.jpgimage-5.jpg... why 3 dots are coming at the...
stackexchange/codereview
A stupid question but I am a little confused. I use pubsubhubbub and check for a new information with if(isset($_HTTP_RAW_POST_DATA)). I check if user is logged with: if(isset($_SESSION['user'])) { //logged } Can a user send a HTTP_RAW_POST_DATA?
stackexchange/codereview
In my ASP.Net MVC application I am using IoC to facilitate unit testing. The structure of my application is a Controller -> Service Class -> Repository type of structure. In order to do unit testing, I have I have an InMemoryRepository class that inherits my IRepository, which instead of going out to a database, it u...
stackexchange/codereview
We wrote an application that makes heavy use of QML, and now that it's time to try to deploy it I'm running into really irritating issues because of the reliance on QtWebKit I compile the application and everything works fine on my computer. Then I run the macdeployqt script on the .app, and for whatever reason the We...
stackexchange/codereview
currently I setting up a test environment for an application. I'm using jUnit and Spring in my test environment. Before a test execution I want to set up a database test environment state. I already has written the SQL scripts (schema and data) and they runs fine in Oracles SQLDeveloper. As I tried to execute them by u...
stackexchange/codereview
Why this code (fnc value in class M) do not get resolved by SFINAE rules? I'm getting an error: Error 1 error C2039: 'type' : is not a member of 'std::tr1::enable_if<_Test,_Type>' Of course type is not a member, it isn't defined in this general ver of enable_if but isn't the ...
stackexchange/codereview
I would like to determine, if there's a translation to current language for a given string. I'd like to write something like: if not translation_available("my string"): log_warning_somewhere() I didn't find anything appropriate. The ugettext function just returns the translation or the original string (if the tran...
stackexchange/codereview
I am pretty sure I can get the results I want from a single Linq statement, I am just not able to find it by myself! This is what I have so far: var query = from uir in Aspnet_UsersInRoles join r in Aspnet_Roles on uir.RoleId equals r.RoleId select new { UserId = uir.UserId,...
stackexchange/codereview
I occasionally get a number of warnings in my web app: Warning 5 The type library importer could not convert the signature for the member 'ADS_OCTET_STRING.lpValue'. Warning 6 The type library importer could not convert the signature for the member '__MIDL___MIDL_itf_ads_0000_0002.lpValue'. Warning 7 The typ...
stackexchange/codereview
I am attempting to modify TreeListColumns to behave like a GridColumn with regards to filtering. I know that the TreeListColumns can filter, but would like to include the shortcut as performed by the GridColumn. This is running on a winclient. Can anyone point me in the right direction? Thanks.
stackexchange/codereview
I try to auto minimize window when I click a link. I don't want when I click to open on a new tab, but in a new which minimize automatically. I searched the answers but I the only answer that I found was that it's not possible, but an example of what I want you can find at http://www.medifastcouponsfor2010.org/ when y...
stackexchange/codereview
I'm currently using Adobe's Acrobat Interop library (v1.1) in a single threaded fashion to batch edit multiple PDF documents across several volumes. This is a major bottleneck in my program, and, as the project has matured, I've become tempted to parallelize parts of this. However, it seems that before I can continue ...
stackexchange/codereview
"Prove that it is NP-Complete to determine given input G and k whether G has both a clique of size k and an independent set of size k. Note that this is 1 problem, not 2; the answer is yes if and only if G has both of these subsets." We were given this problem in my algorithms course and a large group of students could...
stackexchange/codereview
I'm trying to wrap my head around what the C# compiler does when I'm chaining linq methods, particularly when chaining the same method multiple times. Simple example: Let's say I'm trying to filter a sequence of ints based on two conditions. The most obvious thing to do is something like this: IEnumerable<int> Method1(...
stackexchange/codereview
I am generating a crystal report and using a C# prog to break or "burst" the file in to individual pdf's (using this prog.... Crystal Reports "File Break" ) When move the PageHeader section to the "Report Head" section, the details part of crystal reports does not show after the C# prog generates. When I preview the...
stackexchange/codereview
Hey everbody. I have a little issue here. I just want to scale my view, but only to up. I mean, i dont want it move out from original coords, i just want to scale in one direction, without affecting the position. [UIView beginAnimations: @"myViewAnimation" context: nil]; [UIView setAnimationDuration:1.0]; red...
stackexchange/codereview
string Authenticate(string username, string password); Give a simple authenticate method that takes in a username and password and returns a token if successful, I need to be able cope cope with various failure situations including - invalid credentials, locked account, awaiting verification etc. What is the best way ...
stackexchange/codereview
I have created my application under package music. Now I want to change my package to com.mp3.songs.music. One way is I can manually create the package for grails-app. Is there anything else that I need to take care while changing the package name. Alternatively, is there a command in grails which can be used to change...
stackexchange/codereview
I'm trying to replace a text element placeholder with an image in an openXML docx. I've found a tutorial here which seems to do what I need, but I'm not quite following what he does to insert the image. Basically, I have an XML 'image template' stored in a string. I can store my image to media folder and insert the ima...
stackexchange/codereview
So this is what I want to do, if it's possible. I've got a lot of rich textboxes in a Word template. And I want to create a macro that basically checks if any characters in the text entered into the placeholder is formatted with superscript, subscript, bold or underline etc. So, What I've got so far is this Dim i As L...
stackexchange/codereview
This is a problem that comes up often when I am importing raw data from data loggers. A temperature logger is set to record temperature every ten minutes, and a separate gas logger is set to record gas used in the last ten minute interval. I want to combine the data from these two loggers into a single data frame for p...
stackexchange/codereview
hello i want to replace between right and left in my doc for example frontpage searches left and replace with right and searches right and replace it with left so : right >>> left left >>> right i think i need to regular expressions
stackexchange/codereview
I am just curious what data or info. I have to collect to migrate the code from mainframe to ClearCase. Any tutorial will be really helpful.
stackexchange/codereview
Imagine I have table1 which has a column named 'table_name'. I use table1.table_name to store the name of another table in the database. The referenceable tables would all have a field 'target_id. Is is possible to use table_name in a JOIN statement? For example: SELECT t1.*, t2.* FROM table1 AS t1 JO...
stackexchange/codereview
I have data struct QMap<QString, int> how can i sort it by int key? Thank you.
stackexchange/codereview
I want to create a form similar to the form given below using Zend framework <input type="text" name="number[]" /> I tried with the following code $element1 = new Zend_Form_Element_Text('element', array('isArray' => true)); $element1->setName('element'); $element2 = new Zend_Form_Element_Text('element...
stackexchange/codereview
I've been playing around with a search facility for my application table view for a while now trying to get it working but i keep getting the same error in my console. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: ' [NSCFDictionary rangeOfString:options:]: unrecognized selector sent to...
stackexchange/codereview
Possible Duplicate: what is the equivalent for java class : BigDecimal in c# I know in this post: Arbitrary precision decimals in C#? says to use java.math.BigDecimal, but I don't have J# installed. How would I achieve arbitrary precision in C#? I was thinking of using binary strings but I may run into some trouble ...
stackexchange/codereview
I've jusy finished a login script and noticed that even after I log out that I can go back and view the protected page again. This really isn't an issue because the user can't do any damage but I do get loads of javascript errors that I don't like. I'd like to be able to totally prevent client side caching if at all po...
stackexchange/codereview
Suppose we need to embed a widget in third party page. This widget might use jquery for instance so widget carries a jquery library with itself. Suppose third party page also uses jquery but a different version. How to prevent clash between them when embedding widgets? jquery.noConflict is not an option because it's re...
stackexchange/codereview
Possible Duplicate: How can I hide the address bar in a modal dialog? hello guys, how to hide address bar (location bar ) on showmodaldialog.. code: var dialogFeatures = 'center:yes; dialogWidth:600px; location:no;dialogHeight:400px; edge:raised; help:no; resizable:no; scroll:no; status:no...
stackexchange/codereview
Hey! I am making an app with a slider which slides out from the bottom and I would like to make other parts of the app a bit darker to show that the picker is the active component, like when alertbox comes, the background darkens. How do archieve this?
stackexchange/codereview
I have domain www.mysite.com and subdomain api1.mysite.com. There (in domain) are several folders and folder "images". There also is a folder called api1 which is subdomain's folder. What I can't figure out, is how to locate from subdomain a domian's folder "images" and upload files there or check if they exist. I'm us...
stackexchange/codereview
I have been using the Moveable-Type website to aid me in some Geocoordinate calcuations and it's been very useful, however, I have a bug in my calculation of the mid-point between two coordinates. My result is close to the expected, but not close enough: posA = {47.64570362, -122.14073746} posB = {47.64316917, -122.14...
stackexchange/codereview
hi my name is luca! im just a beginner with jquery and i completely stuck on uploading a file(or more) with jquery. Im actually trying to post a form (with input fields like "title","text"..plus the file upload one) with jquery and i can get all of the input file posted correctly in the $_POST array..but i have problem...
stackexchange/codereview
I started with an article from Scott Hanselman about how to stream video to an iPhone using the IIS 7 Smooth Streaming and the Transform Manager. Fantastic article and everything works 100% as advertised. http://www.hanselman.com/blog/CommentView.aspx?guid=86968CD5-FEEB-47F2-B02E-1EB4FA556379 I am able to use the brow...
stackexchange/codereview
I have a third party library(Assembly) used in the project. I want to know if there is a way to print out all its method entry information?
stackexchange/codereview
Using Netbeans 6.9.1 my unit tests pass without issue. Using junit (4.8.2, which seems to be the same version that Netbeans uses) the tests fail on the command line. The failure has to do with this line: assertEquals("x doit être >= 10 et < 100, était la suivante: 1 000", messages_fr.between("x", 10, 100, 1000)); On ...
stackexchange/codereview
I have the following JSON string as part of a log line. cells : {"Lac":"7824","CntryISO":"us","NetTyp":"GSM","NetOp":"310260","Cid":"11983"} I want to filter out to the following format: {"Lac":"7824","Cid":"11983"}. How can do this using regular expression ? in Javascript or Python ? the keys are constant strings(Lac...
stackexchange/codereview
Can someone who have developed apps for iPhone and Android, tell the challenges that we would be facing when developing using Titanium? UPDATE: My question is based on the following perspective: UI Design, layout differences in iPhone and Android, supporting multiiple devices in Android.
stackexchange/codereview
I'm trying to set default sort of my hasMany attribute using mapping statement. I'm following the grails doc but it doesn't work for me (grails 1.3.5). My code looks like: class Note { Calendar sendDate static belongsTo = Message } class Message { static hasMany = [notes: Note] static mapping = { ...
stackexchange/codereview
When I post a text with Ajax, like this: var text = encodeURIComponent(transtext); and receive it with PHP: $text=$_POST['text'] it seems that PHP automatically decodes the encoded string. Is there any way to avoid this? Ok here is my original Json string that i want to post with ajax: {"1":"\\"sdfsdfsdf" as&das&d ",...
stackexchange/codereview
I want to implement parsing using operator precedence. I have implemented +, -, *, and /. How would I implement rest with out using any grammar? This is a college project and yacc or bison are not allowed.
stackexchange/codereview
1) I have a trunk and created a branch from it. 2) The trunk contains a directory A, in the branch this directory was renamed to B. 3) Now in the trunk we accidently made a change to a file F in A. 4) Reintegrating the branch generates a tree conflict 5) Beeing clever I reverted the changes to file F in the trunk - how...
stackexchange/codereview
From what I see in the documentation of MPMoviewPlayerController, NSURLCredentialStorage can be set up as an alternative of NSURLConnection authentication challenges (this is useful for higher level classes that load resources from URLs but abstract the NSURLConnection away and don't provide a delegate for handling aut...
stackexchange/codereview
I've been having performance problems with an SQL trigger. The problem relates to performing an SQL query when using a select statement with the INSERTED trigger table. SELECT x FROM y WHERE x IN ( SELECT x FROM INSERTED ) The query execution plan points to the ( SELECT x FROM INSERTED ) taking much longer than expect...
stackexchange/codereview
I really like the way that Magento uses code pools so that classes and functionality can be extended without actually changing the core functionality of the code. (for those not familiar with Magento you can have the same class in the "core" code pool and the "local" code pool and when you create a class it first look...
stackexchange/codereview
I'm trying to find out how to make a custom knob control. To explain I have included a mockup: I would like the numeric values shown to be databindable (and include ticks to optionally snap to) I think I have to take the slider as a base but it's confusing how to make a custom control properly and databind all the valu...
stackexchange/codereview
I am writing a Java currency exchange program, in which I program 3 foreign currencies for the user to change from US dollars to foreign dollars. I want to break out of the while when user inputs "000" import java.lang.StringBuffer; import java.io.IOException; class Project6_5 { public static void main(String args...
stackexchange/codereview
I'm trying to sync an external audio file with a video that is played back at a variable framerate. When the video plays slowly, the audio should slow down, and when speeding up it should speed up. I got the video playback sorted out, but the audio is still troubling me. How to sync the video to the audio this way? I ...
stackexchange/codereview
So I am trying to detect if the values in an array is in a certain range and then return a binary logical array i.e. one for true and zero for false. I have this but iPython keeps complaining D = ( 1 < X[0,:] + X[1,:]) < 2 ).astype(int) the interesting thing is that just checking one way works totally ok D = ( X[0,:] ...
stackexchange/codereview
I have a scenario where a class loads objects of one type, due do abstractions I can not use a generic class (generics tend to spread like cancer :) but I often want to work with a generic version of the objects once retrieved, which resulted in code like this (simplified): List<SomeClass> items = Storage.LoadItems(fi...
stackexchange/codereview
This is my drawing code to draw a custom line with mouse onto a Chart. Can you please help me to do it proper way ? namespace Grafi { public partial class Form1 : Form { bool isDrawing = false; Point prevPoint; public Form1() { Ini...
stackexchange/codereview
I have a site where users will first enter their search criteria. The search combines data from 2 sources, one of which is not a database. The search results are generally large enough to be paged. Since the initial query is expensive, I would like to cache the search results if the search criteria doesn't change for ...
stackexchange/codereview
My site is using Google's Geo-code Webservice to get latitude and longitude of a address and based on returned coordinates, it is calculating distance between this and another coordinates. As I feel that Google may return coordinates based on only city even though user enters in-correct address. I am calculating prices...
stackexchange/codereview
I am using Git Bash and am trying to figure out what is happening when I type 'git commit -a'. Looks like VIM opens up to edit my commit message but how do I save and actually complete this commit? I type in the editor and hit enter but it just creates another line. FYI: I am using VM Fusion on my mac so some of my k...
stackexchange/codereview
Here I have a problem that seems to be easy to solve but I can't find the solution. I need to select all rows that have the tag X and Y in the table tags grouped by product. Tags +---------+------+ | product | tag | +---------+------+ | 1 | x | +--+--+ | 1 | y | +--+--+ | 2 | y | +--+--+ | 2...
stackexchange/codereview
i want to invoke a url from iphone.I am using NSURLConnection the server sende response data,but the problem is response data contains only the html source of the corresponding page.I need the reposne as a JSON format.How to fix it
stackexchange/codereview
I am trying to redirect users to a page, only from a specific page. I have tried meta Refresh, windows.location, top.location.replace, but they all take a little too long to redirect as my client needs the page changed instantly or as close as possible. I am wondering if there is a faster, non-server method to do so. p...
stackexchange/codereview
I am trying to get mercurial to run in a shell from my C# wpf application. My purpose is to retrieve the output into a string so that I can parse it. Unfortunately for me, it seems that hg.exe (from tortoiseHg), does not return anything via the code below. Other .exe's appear to work, as seen in the comments below; My ...
stackexchange/codereview
I am trying to retrieve some information about any given webpage (namely the of the page and the of the domain) and then make a jquery asynchronous POST with the retrieved information. Unfortunately, the javascript execution reaches the $.post(), but never makes the actual web request. Here is my code: $.get('../embe...
stackexchange/codereview
Through experimentation, I have found that I can connect to services requiring a Certificate, using Google Earth. However, I cannot find out how to get Google Earth to actually use a certificate. The pop up dialog box doesn't have an option of "Add Certificate." Anyone know how I can give Google Earth a certificate to ...
stackexchange/codereview
i am using tcsh shell, I am trying to write two files concurrently with same output. One file the stdout will send to the start of the file and the second file stdout will send to the end of file. I have tried doing this ./something 2>&1 | tee log1.txt 1> log2.txt Just log1.txt has the STDOUT data Any ideas? Thank...
stackexchange/codereview
I'm trying to get JSON data from facebook using the following code: var getFriends = function() { var friendsURL = 'https://graph.facebook.com/<?= $cookie['uid'] ?>/friends?access_token=<?= $cookie['access_token'] ?>&jsoncallback=?'; $.getJSON(friendsURL, function(data) { var names = ""; $.ea...
stackexchange/codereview
I have a 3 dimensional dataset that describes the gene interactions which can be formulated as a graph. The sample of dataset is: a + b b + c c - f b - d a + c f + g g + h f + h '+' indicates that a gene on the left side positively regulates the gene on the right. In this data I want to count the sub-...
stackexchange/codereview
Please advice me some really great Ruby on Rails 3 application which i can use like example of best practices in Rails 3. The idea is i want to have the app on my hdd which i can use like reference when i have any questions how to implement some feature. It could be any blog engine, or app like Redmine does not matter ...
stackexchange/codereview
I am creating a custom form in Drupal. In this form I wish to create a select box. In this box I wish to list all users on the site. When saving my form this will populate a CCK field which references users. I know to create the select list I use something like: $form['access']['timer'] = array( '#type' => 'select'...
stackexchange/codereview
Possible Duplicate: What is the meaning of a const at end of a member function? Dear all, I was trying to overload the operator += and I was getting some error of "discard qualifiers", only by adding "const" at the end of a method, I was able to get rid of the error. Does anybody could explain me why this is needed?...
stackexchange/codereview
I am getting this error (note the code is from openGL red book: GLfloat mat_specular[] = { 0.8, 0.8, 0.8, 1.0 }; ^ SyntaxError: invalid syntax for the following code, i know i need to import something use GLfloat, can you any one tell me what do i need to import for doing this in python. GLfloat...
stackexchange/codereview
https://stackoverflow.com/questions/149698/what-is-a-good-mfc-starting-book A lot of the upvoted comments claim there are much better alternatives. I'd like to know what they might be. My main requirement is that the UI use the native widgets so that our automation software can work. Owner drawn windows are much hard...
stackexchange/codereview
i want to check the type of uploaded file. If name like example.txt, i want to get the .txt part only. How can i achieve it using Jquery or javascript. Any Suggestions or links would be appreciative!!!
stackexchange/codereview
I have a Moose object with the following attribute: has 'people' => ( is => 'ro', isa => 'ArrayRef[Person::Child]', traits => ['Array'], default => sub { [] }, handles => { all_people => 'elements', get_people => 'get', push_people => 'push', pop_people => 'pop', count_people =...
stackexchange/codereview
I have class Person (first name, last name, address, age) and overloaded operators << and >> to use it with filestreams: ostream& operator<< (ostream& outStream, Person& person) { ... } istream& operator>> (istream& inStream, Person& person) { ... } It works fine - I can read from and write to file easily, but I ...
stackexchange/codereview
Is there a BitArray alternative for the .NET Micro Framework? I was thinking about simply using a bool[], but how can you convert it back into a byte[] ? In the full framework, considering "bits" is a BitArray, the following works: byte[] data = new byte[dimensions / 8]; bits.CopyTo(data, 0); But I cannot seem to find...
stackexchange/codereview
Consider user is denied access to a table of financial secrets: SELECT * FROM Transactions SELECT permission denied on object 'Transactions' No problem: CREATE VIEW dbo.Transactions2 AS SELECT * FROM Transactions Command(s) completed succesfully. SELECT * FROM Transactions2 (84,387,982 row(s) affected) Are users sup...
stackexchange/codereview
I'm kind of new to threading in C# and had a couple of questions about what is out there: What are the ways to implement threads in C#? (i.e. I can think of two off the top: backgroundWorker, Thread, etc) How do you cause deadlock and if there is deadlock how do you get out of it (in C#)? How does backgroundworker ge...
stackexchange/codereview
I got the following regex: "throw new [a-zA-Z]+Exception" I want do modify it so that all Argument exceptions ("Argument[a-zA-Z]*Exception") are not included How do I combine them?
stackexchange/codereview
I am wondering if any tool can help do noninvasive logging for a third party assembly library. Can log4net/Postsharp do it?
stackexchange/codereview
Greetings. I'm just starting to explore Maven and I use m2eclipse as to use Maven in Eclipse. I found that there is a hibernate-based archetype with Group Id: com.rfc.maven.archetypes and Artifact Id: jpa-maven-archetype Does anybody knows if there are archetypes for OpenJPA-based projected with test frameworks includ...
stackexchange/codereview
Can anyone recommend a tool to help with the manual and automated testing of WCF SOAP 1.2 services that use X.509 certificates for authentication? I've tried WCFStorm - and while it is reasonably close to what I need, it doesn't support X.509 authentication. SoapPanda (though free - my favourite price) didn't seem able...
stackexchange/codereview
Possible Duplicate: What is dependency injection? Spring uses dependency injection pattern. Can someone show a simple example of this pattern? I heard there is another pattern called service locator, which one is better?
stackexchange/codereview
I'm developping some kind of IM application for iPhone/WP7/Android. After reading documentation I'm not sure, that understand right what credentials I must use, to authentificate my backend on ac2dm service. In chrometophone server uses user's auth token, but my client's application is not linked with google at all. Sh...
stackexchange/codereview
my application is loading addins dynamically and when i add a new module i need to Rebuild the Pipeline segments cache, but the app doesn't have write permissions in the program folder and causes a UnauthorizedAccessException. i don't want to copy the addins in a temporary directory or the users application directory....
stackexchange/codereview
I have a part number like this: part_number = '18-TX25-37 DMDFC PS' When I do >>> re.findall(r'\w+', part_number) ... ['18', 'TX25', '37', 'DMDFC', 'PS'] Some part numbers may have a dot such as '18-TX25-37.25 DMDFC PS' and my regex returns '37', '25' etc. How can I make it not to split at the dot and return '37.25'...
stackexchange/codereview
I am using pyodbc to access an access (accdb) file. I want to add an excel workbook into the access database programatically, but cannot find an API to do so. Here is my current code: import pyodbc DBFile = r'C:\Documents and Settings\IA.accdb' conn = pyodbc.connect('DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DB...
stackexchange/codereview
Here is what I want to do: current table: +----+-------------+ | id | data | +----+-------------+ | 1 | max | | 2 | linda | | 3 | sam | | 4 | henry | +----+-------------+ Mystery Query ( something like "UPDATE table SET data = CONCAT(data, 'a')" ) resulting ta...
stackexchange/codereview
Can the minimax algorithm with alpha-beta pruning yield a different answer than minimax without pruning?
stackexchange/codereview
I have a Silverlight project with a generated Reference.cs file where the service reference is in. The class is attributed with [GeneratedCode] and in the project configuration the code analysis on generated code is disabled (Release and Debug). What have I done wrong?
stackexchange/codereview
Can I set if-else condition with hover function? I want to load a page next to the text link when I hover it and I want to be able to hover/ mouseover on the loaded content. But this loaded content will be removed under two situations: when the mouse leave the loaded content when the mouse leave the box that holds the...
stackexchange/codereview