instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have two linqTOsql entities that has a parent and child relationship, one to many. I'm running into an issue that when I retrieve the parent record, I am unable to loop through the related records in the child table. This code fails: public string test() { string output; StreamEntry entry = ...
stackexchange/codereview
I've got a simple module: -module(dist). -compile([add/3]). add(From,X,Y) -> From ! X+Y. And I'm starting two nodes. One with erl -sname foo and another with erl -sname bar On the bar node I'm doing: > c(dist). {ok,dist} > self(). <0.37.0> > spawn('foo@unknown-00-23-6c-83-af-bd', dist, add, [self(), 3, 5]). B...
stackexchange/codereview
I'm trying to define a custom formatter for my class, but I can't find the @Formatted annotation mentioned in Spring's documentation: 5.6.2 @Formatted The @Formatted annotation allows you to easily associate a Formatter implementation with one of your classes. To use this feature, simply annotate your class as @Format...
stackexchange/codereview
I have the following JavaScript function on a page: function setFields(){ var menu = document.getElementById('EditLocation'); var itemDataArray = menu[menu.selectedIndex].value.split('|'); form.LocationShortName.value = itemDataArray[0]; form.LocationLongName.value = itemDataArray[1]; form.Phone.value = itemDataArray[2...
stackexchange/codereview
I would like to be able to do something like this: void f(int*p = nullptr) { if (!p) { //HERE I WOULD LIKE TO HAVE AN MSG THAT WOULD BE DISPLAYED DURING COMPILATION AS A WARNING POSSIBLY } }
stackexchange/codereview
This is Grails 1.2.0 and Acegi 0.5.2. Part of my security config (the requestMapString): requestMapString = """\ CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /login/auth=IS_AUTHENTICATED_ANONYMOUSLY /logout/**=IS_AUTHENTICATED_ANONYMOUSLY /role/**=IS_AUTHENT...
stackexchange/codereview
I've made a class containing a list, with the following code: class ProdReg: def __init__(self): self.__Pliste=[] This works perfectly. I've also added a method to print the contents of my list: def printProdReg(self): for produkt in self.__Pliste: print(produkt) This doesn't work all to great, Whe...
stackexchange/codereview
I need advance. I send HTTP GET request and parse HTML response, if HTML response(html string) consist some substring, I want sent to client app,(WPF app) some error/warning message. In my solution, if html string consist some substring I throw new exception, it is stupid, what solution is suitable for this problem? co...
stackexchange/codereview
Could anyone point me to a sample implementation of a thread pool in C++, please? I'm looking for a very basic one without too much complexity, which would be suitable for a beginner in threading to study.
stackexchange/codereview
I have a VB6 application that uses a COM DLL. The DLL is written in C#. In the C# project properties I have checked the "Register for COM interop" option. The VB6 app works fine on my development machine. The C# code follows this format exactly: CodeProject C# COM Example When deploying to other machines, Regsvr32.exe ...
stackexchange/codereview
I have a table called Employee Eno ename AttributeValue AttributeName 1 aa a123 abc 2 bbb b123 dcf 3 cc c7sd wew3 I want to swap the data from column AttributeValue to AttributeName and AttributeName to AttributeValue...
stackexchange/codereview
I am using tinyxml to save data input by the user in a c++ console program. I pass a save function an array of structs that look like the following struct day { string name; string note; }; I have seven of these, and pass all seven to the save function that looks like the following void saveData(day dayAr...
stackexchange/codereview
is there any simple library for managing contacts on Android platform for 1.x and 2.x? I have found http://code.google.com/p/contactslib/ but it's not for 1.x. tnx in advance.
stackexchange/codereview
I am having problems with a remotely executed action and a partial that doesn't update the first time I click the link. Inside the view (a partial named books) I am creating a link: link_to "⊗", read_book_path(book), :remote => true The read_book_path is defined in routes.rb There is also a conditional that displays a...
stackexchange/codereview
After looking the documentation I cannot figure this one out. I can write code such as typedef boost::multi_array<boost::int32_t, 3> data_t; // 3d -- typedef data_t::array_view<3>::type data_3d_view_t; // 2d -- typedef data_3d_view_t::reference data_2d_subarray_t; typedef data_t::array_view<2>::type data_2d_view_t; ...
stackexchange/codereview
My model is implemented using Doctrine's Nested Set behaviour. It's a simple hierarchical model where Categories have Sub-categories that in turn have Items. Is there a plugin, or a pattern I can implement that will generate the navigation for me, starting from the schema.yml? I am thinking of a fully-fledged solution...
stackexchange/codereview
What I need to do is to read an application specific string value from HKLM from a windows service. The registry hive and values were added using a windows form, a tool for modifying configuration values for the windows service. I am not able to read the values from my windows service, "Requested registry access is n...
stackexchange/codereview
Where lb is a listbox, txtfield is a textbox, this code takes all the values of the options, puts them in an array and makes it into a comma-separated list: var arr = []; for (var i = 0; i < lb.length; i++) { arr[i] = lb.options[i].value; } txtfield.value = arr.join(','); lb.options.toString() obviously doesn't wo...
stackexchange/codereview
I want to implement an override of equals that compares two Java Queue objects on the basis of them each having contents that are equal (by value). I can probably hack together some code, but surely someone has solved this elegantly already. A google search didn't turn up any results, so I came here next. I appreciat...
stackexchange/codereview
I know I can do this: std::vector<double> vec; std::back_insert_iterator<std::vector<double> > it( back_inserter(vec) ); it = 4.5; But I'd like to do something similar (in syntax) to std::set (and use a front_insert_iterator instead of a reference to the set and use set::insert). Is it possible, or am I forced to use ...
stackexchange/codereview
I need to have parent and parent.child.count()....in the query.. when i do this it is taking 20 seconds....its not a huge database...Any ideas for optimization... var plist = context.persons .Select(p => new { p.fullName, c.personID, p.Status, p.Birthdate, p.Accounts.Count }).ToList();
stackexchange/codereview
Hello this is my onload function :- $(function() { <?php if( isset ($this->validation->error_string) && $this->validation->error_string != '') {?> str = '<?php echo $this->validation->error_string;?>'; alert(str); <?php }?> }); And i always get this err...
stackexchange/codereview
Is there program that allows output of a git-diff command to be explored in a GUI? What i am looking for is something similar to the how SmartGit displays its view of the differences between the working copy and the HEAD. Where each of the files that are different to the HEAD are displayed and the diff for the focused ...
stackexchange/codereview
The error in the title occurs on the '#define' line for every single function-like macro in this header file (starting at line 45). Am I doing something wrong? #ifndef ASSEMBLER_H #define ASSEMBLER_H /* Ports */ #define Input 0 #define Output 15 /* Registers */ #define Z 0 #define A 1 #define B ...
stackexchange/codereview
So, the query I'm trying to make looks like this right now: SELECT `jid`, MAX(`start`) as `start` FROM `dates` WHERE `start` < NOW() GROUP BY `jid` The table dates basically holds a DATETIME value start associated with a job. As you probably guessed, jid is the id of a job, stored in another table. A job can have many...
stackexchange/codereview
i want a function with the following signature: bool signed_a_greater_than_signed_b(unsigned char a, unsigned char b); its output should be 1 iff the 2's-complement view of the bits stored in a is greater than the 2's complement view of the bits stored in b. otherwise the output should be 0. for example: signed_a_grea...
stackexchange/codereview
We have local servers, central dev, staging and production servers. However the dev and staging are password protected for obvious reasons. So after deploying any changes to the htaccess i have to manually edit the htaccess file to enable the password protection on the dev and staging server. Is there any way to have c...
stackexchange/codereview
I was wondering what does the xml:lang attribute do and what are it's values in HTML5. and does the xml:lang attribute have any restrictions?
stackexchange/codereview
I want to add basic WYSIWYG functionality to Drupal 6. It does not have to be bleeding edge. I have found about 150 blogs and posts with options and an equal about of issues and problems Can somebody point me to the easiest solution?
stackexchange/codereview
what is the difference between padding and margin? both do the same thing.
stackexchange/codereview
I have a UiTableView and the first cell is only showing information. The following cells are going to push new viewControllers to the window. I don't want it to be possible to click on the first one, but the second cell (indexpath.row == 1) to be the first cell to click on... Is there some property I can set to make t...
stackexchange/codereview
I have the following problem, when I pass GString to SQL.executeInsert, the text variables are not automatically souranded by ' so the insert query failes: String value4fa = "I would like to get know" int value4fb = 2 def query = "INSERT INTO TAB_A (F_A, F_B) VALUES (${value4fa}, ${value4fb})" sql.executeInsert(query);...
stackexchange/codereview
We have a file share on a debian server which people will be putting mostly small plain text, word, excel, pdf, misc, files into. We want to keep file level versioning of everything placed in that file share. We'd like all of the versioning to happen automatically in the background every time a change is made to a file...
stackexchange/codereview
Hello I currently have a program that gets a full path of a file's location and is put into a variable that is the type of: boost::filesystem2::path I have looked up how to do this and have found that using: string result1 = boost::filesystem::basename (myPath) will convert the path to string BUT it only converts the...
stackexchange/codereview
I've got 3 domain names all pointed at the same MVC2 application. What I've got now is the homecontroller acting as a traffic cop and redirecting to controllers and views for the specific host name. But I don't like the URI result this causes... ex: www.webhost1.com/webhost1/imagegallery www.webhost2.com/webhost2/imag...
stackexchange/codereview
I have quite a program.. Its almost complete.. However I am seeing a heap crash after about 12 hours of running. I remember hearing that you can't program erlang in a certain way if not when you recurse the stack builds up. Can anyone provide an example of that?? And also is there any way to have a realtime monitor o...
stackexchange/codereview
I'm testing NuGet for the first time today and I'm a little bit disappointed with the documentation and support material for it. I know that it is CTP and that it should probably get better but I feel like the product is incomplete. I was able to install packages with almost no problem (it crashed once and its a littl...
stackexchange/codereview
I'm having trouble writing the HTML below to the page after an asynchronous get request. The HTML is provided by a 3rd party charting service, so I can't modify it myself, other than when I get the response after the $.get(). I asked the following question a while ago: Why is this HTML causing the page to go blank. Th...
stackexchange/codereview
I'm really perplexed at this. I'm creating a BitmapImage with a raw byte array like so: void SetBitmapData(byte[] imageData) { var bitmapImage = new BitmapImage(); bitmapImage.BeginInit(); bitmapImage.StreamSource = new MemoryStream(imageData); bitmapImage.EndInit(); this.Bitmap = bitmapImage; } U...
stackexchange/codereview
How can I use jQuery UJS to submit a form after the change event of a select box fires in Rails? My view looks like this: <% for perm in @permissions %> <%= form_for [@brand,perm], { :remote => true } do |f| %> <tr id="permission_<%= perm.id %>"> <td><%= perm.configurable.name %></td> <td><%= f.select...
stackexchange/codereview
Now I have my bot to send message when the bot joins. However how do I make a form that would post data so that the bot will say the message to the channel? Here is my script (Rewamped): <?php set_time_limit(0); $socket = fsockopen("//", 6667) or die(); $msg = $_POST['message']; $pr = $_POST['percentage']; $pr /= 100...
stackexchange/codereview
I have an input, when someone hovers over the input I want it's BGcolor to change to gray, then when they hover off of the input I want it's BGcolor to change back to white(default color). But I also want the input's BGcolor to change to gray when there's focus on the input, but when the person has focus on the input, ...
stackexchange/codereview
I am using acts_as_commentable and am curious if anyone has any good ideas on how to allow for anonymous and registered users to post comments? Meaning, if a registered user is authenticated, I want the comment to be marked with their name, etc. But I also want an anonymous user to be able to comment and have a name an...
stackexchange/codereview
I am working with stacked headers on a Telerik WPF data grid. The way I was approaching the problem was to create a flattened view of my data. For example. it would display like the following: Person A | Person B | Person C Month | Earning Month|Earning Month|Earning I have a collection of p...
stackexchange/codereview
I've just started learning to use valgrind and the --tool=memcheck But what I am having trouble with is actually finding the problems. e.g. One such problem is this. ==12561== Conditional jump or move depends on uninitialised value(s) ==12561== at 0x425779: Server::HandleReceiveFrom(boost::system::error_code cons...
stackexchange/codereview
I'm writing an OSGI bundle using the javax.script package and am having some issues getting Felix to load the package correctly. When attempting to start the bundle, I'm getting: Failed bundle start for org.plugin.script.plugin-scripter [2]: org.osgi.framework.BundleException: Unresolved constraint in bundle 2: package...
stackexchange/codereview
Is there any SQLite command or third-party tool that allows database dumps to include column names in the INSERT INTO statements? Instead of INSERT INTO "MyTable" VALUES ('A', 'B'); I'd like to see INSERT INTO "MyTable" (Column1, Column2) VALUES ('A', 'B'); The .dump command in SQLite only offers the first version.
stackexchange/codereview
A subrotuine is getting hash ref : sub test { my $hash_ref = shift ; if ( $hash_ref->{app} ) { ... } TheHash ref look like following format : How to find out what type of data its has #scallar $hash {app} = 'app' ; (or) #array $hash {app} = ['app1' ,'app2' ,'app3']; (or) #hash $hash {app} = { app1 ...
stackexchange/codereview
I use databasemetadata to find the column size. But getColumns(null,null,"table_name",null) returns an empty resultset. I checked for the table by querying it and the table is present. Where is the error? Thanks in advance! Update: Connection connection = getConnection(); //getting the connection - Statement st = ...
stackexchange/codereview
We are still on .net v2 (C#) due to issues with getting customers to upgrade. I am looking at using a mocking framework, but don’t wish to have method names as strings all over the place. In the past I have used Moq, but don’t believe it will work with .net v2. What options should I be looking at?
stackexchange/codereview
is it same for the following two code snippets Snippet 1: using() using() { blah blah blah } Snippet 2: using () { using () { blah blah blah } }
stackexchange/codereview
I override save_form to automatically populate the author field in class Grievances by using obj.author = request user. Works great. But then, for purposes of the inline, I try the same thing using obj.status_author = request.user. Doesn't work - nothing is input and the sql execution fails because status_author is ...
stackexchange/codereview
I'm just having a look at ruby and was playing with the date/time thing. irb(main):001:0> jamis_DOB = Time.mktime(2003, 10, 22, 06, 59) => Wed Oct 22 06:59:00 +0300 2003 irb(main):002:0> age = Time.now - jamis_DOB => 222934108.172989 irb(main):005:0> age_in_years = (((age / 3600) / 24) / 365).to_i => 7 So my example ...
stackexchange/codereview
i have a composite id defined on my class structure as below. Unfortunatly i always get a hibernate error that complains on the not found "part2": "Property of @IdClass not found in entity MoreClass : part2" Can anybody help me on fixing the problem? (or at least point me on a helpful jpa/hibernate doc?) @IdClass(Class...
stackexchange/codereview
I'm looking for a regular expression that can find and replace all the text "anytext" with "anything" in netbeans, some of the symbols also contain this text. I've done it a while back for a single file but now I want to change everything in my application & I'm struggling to get it right.
stackexchange/codereview
I have created a strongly signed assembly in Visual Studio 2008 against the .NET 3.5 framework (I tried 2.0 framework as well). I exposed a class as COM visible, and I am able to find this dll in the object browser of Visual Studio 6 for Visual Basic. I can create an exe in VB6 and run that exe directly from windows ...
stackexchange/codereview
i have a combobox : <Grid> <ComboBox Height="52" HorizontalAlignment="Left" ItemsSource="{Binding templatesNames}" SelectedValuePath="Type.FullName" Margin="169,43,0,0" Name="comboBox1" VerticalAlignment="Top" Width="148" /> <Button Content=...
stackexchange/codereview
I want to integrate a "share" button that syncs: With Facebook With Twitter With mail With LinkedIn With ... I can integrate all of this by myself but maybe already exists a library that does all. How can I do it?
stackexchange/codereview
I have this markup <dt id="dt0"> &nbsp; </dt> <dd id="dd0dd"> <textarea id="dd0"></textarea> </dd> <dt id="dt1"> &nbsp; </dt> <dd id="dd1dd"> <input id="dd1" type="hidden"> </dd> <dt id="dt2"> <label for="dd2">Dd2 Label:</labe...
stackexchange/codereview
I have a dynamically created drop down and if the option "Other" is in that drop down i want to show div #optionalmess <select class="VariationSelect" style="width: 95px;"> <option value="">Select Size</option> <option value="1">Example</option <option value="21">Other</option> </select> If .variationselec...
stackexchange/codereview
Does the Scala library provide any support for lifting a method of a given type to a function value? For example, suppose I want to lift String.length. I can write val f: String => Int = _.length or val f = { s: String => s.length } However, this syntax is not always ideal (particularly in the midst of a larger exp...
stackexchange/codereview
I'm trying to learn on multithreading, and I have a simple question. On most of the examples I find, the standard output buffer is turned off before letting multiple threads to use it with: setbuf(stdout,NULL); Why? Codes print the same if I remove that line on them!
stackexchange/codereview
To read/write binary files, I am using DataInputStream/DataOutputStream, they have this method writeByte()/readByte(), but what I want to do is read/write bits? Is it possible? I want to use it for a compression algorithm, so when I am compressing I want to write 3 bits(for one number and there are millions of such nu...
stackexchange/codereview
I've been learning some Clojure, and I currently have a single .clj file which I edit in a text editor and which I execute on the command line. Where can I find a guide on the practical aspects of scaling this up to larger programs/libraries? How should I lay out multiple .clj files on the filesystem? How should I org...
stackexchange/codereview
I have an array of words I need to do a find-and-replace by regex operation on, and sometimes this array can be thousands of words long. I've tested and found that stemming the words using common prefixes is much faster than searching for them individually. That is, ^where|why$ is slower than ^wh(ere|y)$. Obviously it'...
stackexchange/codereview
I was wondering if I can send simple text to SpamAssassin. I want to put the comment in a text file and call 'spamc < file.txt' (i don't know if it is possible to send text direct to spamc). The problem is that SpamAssassin will report everything as spam if i don't specify headers or title ... Can i bypass all headers...
stackexchange/codereview
Is there a built in function (I know I can easily create one) to create simple tags: MakeTag("Tag","myvalue") would generate: <Tag>myvalue</Tag> I'd rather something simpler than an XML class and all I need is just a tag created like this. Also, any suggestions on a parser for the same?
stackexchange/codereview
I see a lot of references to "compressed JSON" when it comes to different serialization formats. What exactly is it? Is it just gzipped JSON or something else?
stackexchange/codereview
I have an overlay that covers the screen with a modal window that pops up over it. With the current code below I get a flash in Firefox before the over lay and modal window fade in. Is there a way to get rid of the flash? I need to wait for the fadeout to be completely done before going visible but i am not sure how...
stackexchange/codereview
I have a class method in a model that calls thinking_sphinx's search() method. I need to check this class method. I want to start, index or stop sphinx in my rspec test cases. I am trying with this piece of code. before(:all) do ThinkingSphinx::Test.start end after(:all) do ThinkingSphinx::Test.stop end and with...
stackexchange/codereview
I need to achieve zero downtime deployment for my e-commerce site while performing database schema changes. The database is sql server 2005. Can someone verify whether the following steps are feasible? Please provide your suggestions. The principal database will serve the requests and changes will be replicated to mir...
stackexchange/codereview
I'm working through "Programming collective intelligence". In chapter 4, Toby Segaran builds an artificial neural network. The following function appears on page of the book: def generatehiddennode(self,wordids,urls): if len(wordids)>3: return None # Check if we already created a node for this set of words sorted...
stackexchange/codereview
Regarding the Asset packager plugin for RoR. Is there a way to configure it, so that it packages JS/CSS files in development environment, but without minifying the JS files?
stackexchange/codereview
guys! I have stored procedure, written on C# using Visual Studio 2010. It is running very slow and I want to profile it to detect slowness source. I have JetBrains dotTrace profiler and built-in Visual Studio profiler, but have no idea, how to attach any of these great tools to CLR stored procedure. Any suggestions, h...
stackexchange/codereview
About to start going through the 'Learn Python The Hard Way' book and I am at the 'Installation' chapter, the book says to get 2.x... but should I get 64 or 32 bit? Does it matter one way or another? If so, how? I am running Windows 7 x64. Thanks!
stackexchange/codereview
I created an internal website that use lots of data from a SQL Database (1 282 727 lines for now (~800MB), growing each minutes), I use this code (LINQ to entities) to render the page with pagination : public ActionResult Index(int page = 0) { IronViperEntities db = new IronViperEntities(); db.C...
stackexchange/codereview
Say I have an INI file like so: [123] name=Ryan name=Joe How would I retrieve "name=Ryan\nname=Joe" using API calls such as GetPrivateProfileSection and GetPrivateProfileString?
stackexchange/codereview
Hi I'm looking for a quick and easy solution to the following: I have a division tag that is three times the width of the cell (so my visible cell/div will be 200px but the content will be 600px) it needs to be displayed in and I would like it to do the following: -------------------------- | | | | |...
stackexchange/codereview
How to force set the type to create a generic instance? public class MyClass<T extends MyClass2> { /* ... */ } public class A extends MyClass2 { /* ... */ } This should fail: MyClass myInstance = new MyClass(); And this should work: MyClass<A> myInstance = new MyClass<A>();
stackexchange/codereview
Usually I'd like to edit files with Spaces only. But when I open files with Tabs, I'd like to see them (for example as arrows ->). With such files I do my edits careful, so not to destroy the original authors coding style -- usually I insert tabs by hand when needed. So, I want to see Tabs all the time, but using the G...
stackexchange/codereview
I need to select the number of rows: select int_re_usu as Qtd_Respostas from tb_questionario_voar_resposta group by int_re_usu It returns: 1- 687 2- 375076 3- 339012 4 -314083 5 -52741 6 -339977 7- 276041 8- 373304 9 - 339476 10- 51095 11- 270365 12 - 6 13 - 308670 14 -305232 15 - 85868 16 - 9893 17...
stackexchange/codereview
What does it mean when you have a this List as a parameter to a method? public static void KillZombies(this List<Zombie> ZombiesToKill, int NumberOfBullets) { ... }
stackexchange/codereview
I'm trying to compile a C++ program and one of the classes uses . g++ is not able to find the libraries would be my guess. The command i use to compile is - g++ c1.cpp c2.cpp c3.cpp c4.cpp -o c4 -lm -lmysqlclient c3.cpp is the file that needs mysql.h. This works perfectly on my local machine, but refuses to run on the...
stackexchange/codereview
How do you handle exceptions in visual basic?
stackexchange/codereview
Sorry for my english) Looking for information about read frames from a video with iPhone i found this project, http://www.codza.com/extracting-frames-from-movies-on-iphone/comment-page-1#comment-1116, but i also read somewhere that you can use AVFoundation to capture frames from a video for better performance.. But i c...
stackexchange/codereview
Hi I am trying to connect to a MSMQ from an Android phone. The problem is that all the libraries that I seem to find have to run in Windows since they appear to just be wrappers around C libraries ("DLL"). I found J-Integra but it seems like a very messy non-open source solution. Anybody has any ideas? And does anybo...
stackexchange/codereview
I have two CSV files with a common column and I want to "Join" the tables together on the common column. For example: Join 'A' with 'B' equals 'Result'. If a one table has a key value that does not exist on in the other table its just left as blank. == Table A == == Table B == == Table result == Name ,...
stackexchange/codereview
We are seeing a lot of queuing on our build agents and I am looking for a way to see guilty builds. Anyone know of an out of the box way to do this? I would imagine that I can write a report that looks at this or that I could use the TFS API to get this information, but this feels like something that should be availa...
stackexchange/codereview
As the title says, I can't get .attr('checked', false) to work on IE6. I am cloning some HTML and then before I assign the newly cloned HTML to a element, I run through it and un-check all of the checkboxes that are in the newly cloned section, which works fine in all browsers except IE 6. Here is the code: //give...
stackexchange/codereview
I have a string: hello example >> hai man How can I extract the "hai man" using Java regex or another technique?
stackexchange/codereview
I have had to work on a project that was written by someone else, and the way they wrote the site everything is positioned using margins, both positive and negative margins. I only ever really use margins for textual elements like <p> or <h1> tags. Using padding to space the contents within my div building blocks. I ha...
stackexchange/codereview
I am writing a gadget to be embedded in a Google Spreadsheet. Reading data using the visualization API (i.e. google.visualization.QueryResponse object) works fine, however I also need to amend some data in the spreadsheet from within the gadget. Though having searched for it for a while, I have not found a way to do th...
stackexchange/codereview
I have been trying to write Scheme code to get the date and store the month in a variable, but have no clue how, even after reading the online manual. What I understand now is there is a struct called Date that needs 10 arguments, but not sure how to retrieve the month, or even date, from the library..could anyone ple...
stackexchange/codereview
I have a SWF that contacts a php script all on the same domain. In the first case both are hosted behind the same domain and communicate with no problem. Everything is working great. However when I take the same markup that embeds the SWF and paste it on another site (using a full qualified path for the swf in both th...
stackexchange/codereview
If you were trying to explain someone how nicely Scala blends functional and object-oriented techniques, which example would you use?
stackexchange/codereview
I'd like to insert an int into a sorted array. This operation is going to be performed very often, so it needs to be as fast as possible. It is possible and even preferred to use a List or any other class instead of an array All values are in the 1 to 34 range The array typically contains exactly 14 values I was thin...
stackexchange/codereview
The stock ELMAH_Error table uses an nText field to store an Error entry. I found that by adding a field of type XML; then adding this new field to the INSERT statement of the SPROC that populates the field; i could make better use of ELMAH's output. Now I'd like to learn how to query specific element values within that...
stackexchange/codereview
Here's the code that raises the exception public Configuration GetConfiguration() { var persister = SQLiteConfiguration .Standard .UsingFile("Test.db") .ShowSql(); var configuration = Fluently .Configure() .Database(persister) ...
stackexchange/codereview
Is there a way to build a Grails Plugin and deploy the artifacts to the local Ivy repository? With Maven, I would do this: mvn install
stackexchange/codereview
I want to do some simple data change auditing on an SQL Server table. I have created the trigger as explained in this article http://www.simple-talk.com/sql/database-administration/pop-rivetts-sql-server-faq-no.5-pop-on-the-audit-trail/ But when a user log's into the ASP.net application with their asp.net membership a...
stackexchange/codereview