instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have created a WCF Data Service and using it in a web application which is the part of same solution. The WCF service holds the reference of another DLL(Utility.dll) which is also part of the same solution. I have added the service reference of the WCF service in the web application. So the structure is Solution ...
stackexchange/codereview
I have a page mypage.html which I need to change to mypage.php. If I upload mypage.php and remove mypage.html, I get a 300 Multiple Choice error from Apache. Can I set the htaccess to check if a .php verion of a page is available before it shows an error?
stackexchange/codereview
I have a classifieds website, and a partner of us (who runs another classifieds website) need to have access to a file on our server. The file is called 'partner.php'. This file simply prints out some information about the classifieds on our site. So for our partners, they would just need to access "www.domain.com/part...
stackexchange/codereview
Can someone give me a quick rundown on the old and latest research on scaling databases or storage? I have heard of master/slave. What else are there? Thanks!
stackexchange/codereview
basically i want to remove item from Qtreeview on the dropEvent(QDropEvent *event) inherited in a qtreeview subclass. what is the best way to do this?
stackexchange/codereview
I am using a python library called "tweepy" for twitter. When I try to authorize the user, twitter is supposed to redirect to a callback url with auth_token and oauth_verifier. I am getting only auth_token in the url. Anyone else had the same problem?
stackexchange/codereview
is it possible to display constants php's EOT? for example: <? define('Hey', "HellO"); echo <<<EOT Hey EOT; ?>
stackexchange/codereview
I have syndicated a lot of Wordpress blogs and are now showing them on another site. However, I would like the reader to contribute with comments (through the other site). How can I post a comment for a blog post without using the Wordpress form?
stackexchange/codereview
I need a build tool for compiling,testing, reporting and the deployment of Lua programs. I chose Maven 2 because of our Polarion version supports it. Unfortunately, I couldn't find any Maven plugins/archetypes for Lua. As I am a newbie in Maven I want to know whether it is difficult to write a customized Lua plugin for...
stackexchange/codereview
Suppose I have wrote script Table_ABC.sql which creates table ABC. I have created many such scripts for each of required tables. Now i want to write a script that call all of these script files in a sequence so basically I want another script file createTables.sql. Mysql provides option to execute a script file from "m...
stackexchange/codereview
How do you ignore a function / method of a class so that you can serialize it to disk for later use? I have searched and really cant find any answers. I need the ToString()because I add each instance of the Person to a list box. The ToString() is what is displayed in the list box. I then use the selected items to ge...
stackexchange/codereview
I am comparing two dictionary(dic1 and dic2) with rule that get values from dic2 where key match but values does not match or key is missing in dic2. Don’t need to iterate through dic2 for missing/different values in dic1. Below code is working ok I would like to know is there any better way using .NET 2.0 (NO LINQ) ...
stackexchange/codereview
Why font-family and font size not working of this css code? .content_box { float:left; margin-left:41px; width:265px; font:Arial, Helvetica, sans-serif; } .content_box h2 { color:#585858; font:bold 25px; margin-bottom:20px; } .content_box p { color:#4F4F4F; font:12px/1.8em; margin-top:18px; } ...
stackexchange/codereview
Hello I am having an issue using the proj4js library. Here is my source: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="lib/proj4js-combined.js"></script> </head> <script type="text/javascript"> function go() { ...
stackexchange/codereview
I just made a Linq-to-SQL .dbml file in Visual Studio 2010. I'm getting the following 2 errors, a total of 60 times in total, mostly the first. The type or namespace name 'Linq' does not exist in the namespace 'System.Data' The type or namespace name 'EntitySet' could not be found I've found various similar questions...
stackexchange/codereview
I have a paginated list, and a select box of numbers showing how many pages to display. When the user picks a value I want the screen to refresh with the resized list. View: <%= select_tag :paginate_size, options_for_select([['Display: 5', 5],['Display: 10',10],['Display: 20', 20],['Display: 30', 30],['Display: 50', 5...
stackexchange/codereview
I am using DelphiIXE. I learned that GlobalMemoryStatus may return wrong results on 64 computers with more than 4G RAM, so GlobalMemoryStatusex should be used. But, on the other hand, if I use GlobalMemoryStatusex on 32 computer, the results are wrong on as well (returned numbers are 0 or huge). Of course I can prepare...
stackexchange/codereview
If I want to compile the source (cs) file of the web page, i simply use Src attribute instead of CodeBehind attribute in the Page directive, e.g. <%@ Page Language="C#" AutoEventWireup="true" Src="XXX.aspx.cs" Inherits="Namespace.Path.To.XXX" %> which works perfectly with a source file that has the BuildAction set to ...
stackexchange/codereview
I have a field in my schema which holds the number of votes a document has. How can I boost documents based on that number? Something like the one which has the maximum number has a boost of 10, the one with the smallest number has 0.5 and in between the values get calculated automatically. What I do now is this, but ...
stackexchange/codereview
Is there anything I need to be aware of when creating a HTML e-mail? Is it as simple as creating a valid HTML page then sending it via PHP? Or do I need to use tables to ensure it display's correctly. Any advice to get this right first time would be much appreciated.
stackexchange/codereview
http://www.devx.com/tips/Tip/5573 The above post states that there will not be memory leak during object construction. How about the code below? Will this cause any memory leaks? I see that the memory usage for the sample application increases slowly (in task manager) even after forcing the GC collection. namespace Win...
stackexchange/codereview
class Game < Event has_many :statistics, :dependent => :destroy ... end class Statistic < ActiveRecord::Base belongs_to :game end I want to make a named scope that only returns games that have no statistics. Thanks
stackexchange/codereview
The following code is designer generated: Me.lblXRay.Font = New System.Drawing.Font("Arial", 8.0!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) What does 8.0! mean?
stackexchange/codereview
So, the question is simple to aks: How can I overwrite the constructor of a class from the outside. The Problem itself is, that i have a class which is already compiled, and it already has some constructors, but those idiots of coders removed a constructor, so i am now unable to XML(de)Serialize it... So what they have...
stackexchange/codereview
How can I make a Python script which checks if I have logged in the Facebook? If I haven't, it should log me in.
stackexchange/codereview
I have three different properties, x, y, z. If they all turn nil, I need to take an action, and if one of them is set to a value != nil, I have to carry out a different action. My current implementation is the following: @property (readonly) NSNumber *meta; + (NSSet *)keyPathsForValuesAffectingMeta { return [NSSet s...
stackexchange/codereview
On modern browsers and computers,, is it better to gzip files to save network traffic or to not gzip them which seems like it would save browser CPU?
stackexchange/codereview
I'm trying to debug an ASP.NET 3.5 app, which I've recently migrated from VS 2005. (This uses Crystal Reports 11 Release 2, but I don't know if that comes into what's causing me problems, or not.) This app uses Active Directory for authentication. I'll have the app opened in VS 2008, and then press the F5 key to sta...
stackexchange/codereview
I am using .kml file which points to an overlay image (presumably in UTM projection?). The KML file provides the latitudes and longitudes of the bounding box using the "LatLonBox" tag. I need to calculate the latitudes and longitudes of each pixel in this image. Are there any pre-existing libraries in Python that wo...
stackexchange/codereview
I am new to iPhone application development and currently working on a simple paint application for iPhone. I use GLPaint source code to start with. I tried to change the brush size using the following ways. I created a UIViewController class and linked it to GLPaint.PaintingView and added different buttons to indicate...
stackexchange/codereview
I am new to AES encryption but trying to build a solution which: Accepts consumer data Encrypts that data using AES and a "public" key Store that data in a MySQL database Have the ability to pull and decrypt the data ONLY with a private key (stored on my personal machine, not the server itself). I realize this may be...
stackexchange/codereview
I want to implement a similar function, and want to accept an array or number that I pass to numpy.ones. Specifically, I want to do this: def halfs(shape): shape = numpy.concatenate([2], shape) return 0.5 * numpy.ones(shape) Example input-output pairs: # default In [5]: beta_jeffreys() Out[5]: array([-0.5, -0....
stackexchange/codereview
I want to send email using SMTP client uiing microsft.net with C# as programming language. But for the emails sent through SMTP client, can we add security features like "no forwarding" or "no copying" etc. I dont want recipients of the email to forward or copy the content of the email.
stackexchange/codereview
Is it better to use regex or Stringtokenizer to separate the author and title in this string: William Faulkner - 'Light In August' Is this the simplest regex that would work? Pattern pattern = Pattern.compile("^\\s*([^-]+)-.*$"); Matcher matcher = pattern.matcher("William Faulkner - 'Light In August'"); String author...
stackexchange/codereview
I am learning ways of manipulating HTML 5 Canvas, and decided to write a simple game, scroller arcade, for better comprehension. It is still at very beginning of development, and rendering a background (a moving star field), I encountered little, yet annoying issue - some of the stars are blinking, while moving. Here's...
stackexchange/codereview
Will the automatic recycling of the application pool in IIS kill a working thread that was called from QueueUserWorkItem in ASP.NET? Since this happens at set intervals and I'm getting random errors it would appear, I am wondering if these two are running into each other? If so, how do I run an asynch task and not get...
stackexchange/codereview
This particular variant of Nim involves: Two players alternately take marbles from a pile. In each move, a player chooses how many marbles to take. The player must take at least one but at most half of the marbles. Then the other player takes a turn. The player who takes the last marbles loses. I need to: - Write a pro...
stackexchange/codereview
I'm coding a very basic FTP client on top of my application and I have 2 activities. The first one is the file explorer and the second one is the image viewer. Once I click on the image filename on the explorer, I want to pass the connection to the other activity to handle extra stuff. Basically, I want to keep the sam...
stackexchange/codereview
I just recently started learning Java. I have a question which is more about conventions used in Java... So suppose I have class A: public class A { public void methodA{ methodB(); } private void methodB{ } } Sometimes I see some people calling private methods inside the class using this (e.g. this.method...
stackexchange/codereview
I have bunch of screens (asp.net C#) capturing data and transferring it back to a web service using json. How can i encrypt content like passwords and decrypt it back in the C# code?
stackexchange/codereview
I have a field with product name abc&reg; product1 If I get the data from the database and databind it to the dropdownlist. It becomes <option value="2">abc &amp;reg; product1</option> I don't want ASP.net to escape the &reg; to %amp;reg. What should I do?
stackexchange/codereview
I need to read the number of times that tag_id shows up in the listings_tags db table. Tags are entered into the system via the Listings form. I have a page that lists just tags. current tag1() tag2() tag3() tag4() Desired tag1(40) tag2(22) tag3(5) tag4(4) code that may be relevant schema create_table "listings...
stackexchange/codereview
I have a Custom Controls Library (ex. MyCustomControls.dll) that is a plugin to a 3rd party application. It outputs as a class library and is invoked by the 3rd party application at runtime. My issue is the custom styles I have defined for various user controls like listviewitem, textblock now cannot be loaded at the a...
stackexchange/codereview
What is the correct way to find out if a process is running as the SYSTEM user. I'm looking for a win32 C API to check for the system user. We used to check if the username was "SYSTEM", but since Windows Server 2008 R2 the SYSTEM user appears to be localised. I.e SYSTEEM on a Dutch system. I cant find much informati...
stackexchange/codereview
My question deals delivering information to iPhone devices via an online DB. (Essentially, I want to do something like the NYTimes App, which provides the latest news for each device containing the app). I know I need to use a SQL lite database to accomplish this. What is the best way to approach this problem? I am...
stackexchange/codereview
Application2 was orginally developed an application for WinXP. Now I have to contend with User Account Control (UAC) on Win7. The Application2 runs fine on Win7 as long as the user is logged into an Administrator account and they select "Run as administrator." However, I am trying to evaluate whether it is possible ...
stackexchange/codereview
I am trying to find a way to copy a resource file to a new name in the target directory in a Maven build. Pretty much everything I have found while searching suggests workarounds involving multiple sub-directories in /src/main/resources and selecting among them via profiles. However, in my case, this does not solve the...
stackexchange/codereview
I have a site that uses Ninject for dependency injection and I have Routing defined within a Bootstrapper class like so: public void RegisterRoutes() { Routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); Routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); Rout...
stackexchange/codereview
How to verify if a String in Java is a valid URL?
stackexchange/codereview
I have several web pages with different amount of tables with different amount of columns. I was looking on the net for a jquery spinet which gets the number of columns of the table and depending on the number of columns will define the width of each column. Ex. if (noOfTdOnTable == 2) { tdWidth = "50%"; } ...
stackexchange/codereview
I am using the Jquery cycle plugin to create an announcements slideshow. I would like to pause the slideshow when the user clicks on one of the pager links. I have tried using the pagerClick function and attaching the pause function to the onclick event for the pager links, but neither worked. Can you help? $('#highlig...
stackexchange/codereview
I currently have a TreeView which has the following structure: <TreeView ItemsSource="{Binding RootViewModels}" FontSize="12"> <TreeView.ItemContainerStyle> <Style TargetType="{x:Type TreeViewItem}"> <Setter Property="local:TreeViewItemBehaviour....
stackexchange/codereview
Basically, I want to put my computer in the middle of a serial line and record the conversation going across it. I'm trying to reverse engineer this conversation and eventually emulate one end of the conversation. Rough Diagram of what I'm trying to do: Normally, I have this: __________ __________ | |...
stackexchange/codereview
Hey all I am trying to combine my data into one sum. This is my output right now: Amount --------- $258.0 $400.0 $1011.0 $628.0 $628.0 $340.0 $340.0 $1764.0 of course the total would be $5369. This is the type of output I need Description | Quantity | Price | Amount -------------------------------------------- Fees ...
stackexchange/codereview
How can I ask the user Are you sure you want to leave the page? Like for example if you click the back button while asking a question on Stackoverflow?
stackexchange/codereview
I have many bunches of binary data, ranging from 16 to 4096 bytes, which need to be stored to a database and which should be easily comparable as a unit (e.g. two bunches of data batch only if the lengths match and all bytes match). Strings are nice for that, but converting binary data blindly to a string is apt to ca...
stackexchange/codereview
Was wondering if someone could help me out a little with this query: SELECT u1.id,count(DISTINCT u2.userstatus) as TEMPCOLUMN FROM users AS u1 JOIN friendssym ON u1.id = friendssym.user_id JOIN (SELECT * FROM users) as u2 ON friendssym.friend_id=u2.id WHERE TEMPCOLUMN=1 group by u1.id; I want to only have results whe...
stackexchange/codereview
I'm trying to position the navigation bar below the top of the screen. I've tried the following in viewWillAppear: self.navigationController.view.frame = CGRectMake(0.0, 54.0, 320.0, 426.0); self.navigationController.navigationBar.frame = CGRectMake(0.0, 0.0, 320.0, 44.0); The problem is it only seems to work the very...
stackexchange/codereview
I'm a nub in MVC.I've a Model: public class Usuarios { [Required(ErrorMessage = "**TxtOPID is required")] public string TxtOpID { get { return this.txt_opId; } set { this.txt_opId = value; } } [Required(ErrorMessage="**Password is required")] p...
stackexchange/codereview
I'm about to move from a PHP job to a Coldfusion job. I've never used it before and I'd like to get up to speed quickly. I use a Mac at home (10.5) so what would be the best free development platform to learn on and what are the latest and best tutorials? Currently I use Netbeans as an IDE but I could be persuaded to ...
stackexchange/codereview
I'm new to Maven and I've been reading all morning tutorials (amazing tool). This new Java project I started looking at however doesn't use the default directory structure. Instead of src/main/java for sources it uses something like src/org/myapp. When I run mvn package on the project (where pom.xml is located) I get a...
stackexchange/codereview
I want to use MySQLdb in Pylons, but can't figure out where to actually connect. It would seem that making the connection in app_globals.py would be convenient: class Globals(object): def __init__(self): self.db = MySQLdb.connect() Then controllers can access the db via the globals. However, this seems to ...
stackexchange/codereview
I am building something similar to BBC Zeitgeist. Basically it's a series of workers passing jobs to each other. If I'm doing this by hand, here's what I'll do: Setup some parameters Run the workers Start the initial worker Wait for the workers to do their jobs Test the outcome For the background job workers, I'm us...
stackexchange/codereview
I'm not sure what I'm doing wrong. I have a NSTextView and am registered as the delegate for its textStorage attribute. When I receive -textStorageDidProcessEditing:notification: I'm trying to apply attributes to ranges of characters within the text. It certainly does "something" to the characters, but not what I ex...
stackexchange/codereview
In HTTP there are two ways to POST data: application/x-www-form-urlencoded and multipart/form-data. I understand that most browsers are only able to upload files if multipart/form-data is used. Is there any additional guidance when to use one of the encoding types in an API context (no browser involved)? This might e.g...
stackexchange/codereview
What is the best way to allow a user to insert photos for an image viewer? The end result I am looking for would be thumbnails in a listbox that when selected would open in a viewbox. I understand the binding, but I don't know how to get the photos to a folder or whatever from the user.
stackexchange/codereview
I am teaching myself Android using Eclipse, the Android plug-in, and Sams "Teach Yourself Android Development" book. I have this weird little problem. I've been able to create xml files in the res/values directory that hold strings and color values (colors.xml and strings.xml). I have been able to reference these va...
stackexchange/codereview
I seem to get this error, and don't know how to debug it. Any pointers? Traceback (most recent call last): File "/opt/python2.6/lib/python2.6/site-packages/django/core/handlers/base.py", line 92, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/www/django_test1/omu2/views...
stackexchange/codereview
I am not creating RDL from scratch so maybe this is a problem -- I work on already prepared files. MSDN states that CommandText in RDL file can contain T-SQL query. Ok, this I understand, but what else it can contains? I am asking because the phrasing clearly indicates you can put some other expression there So if I u...
stackexchange/codereview
I have multiple questions. Can I specify the pom.xml in mvn command? Can I mix the goals of another project while executing mvn command on current project ? Eg: mvn clean-otherproject comple-otherproject instal-otherproject compile-thisproject I can do this with multiple mvn commands, but Can I do this in single mave...
stackexchange/codereview
Question summary: What changes do I have to make to make the following xslt document valid. The following is a simplified version of a theme document I am trying to modify for a Gizmox WebGUI DataGrid control. The issue I am having with it is the horrendous onclick event attribute on the button element. I have tried ...
stackexchange/codereview
In Windows Phone a ListBox support the virtualization of the data, that means it can only load the data needed and not everything. Peter Torr explains the interface you need to implement. The short version is that you have to create both a method that return the position of an element and another one that return the el...
stackexchange/codereview
I was wondering if there is any equivalent, or a way to fake, C# style anonymous types in C++. I'm using gcc 4.6 so any parts of C++0x it supports can be used.
stackexchange/codereview
Is it possible to populate the options of a Spinner right in the layout xml? This page suggests I should use an ArrayAdapter? It seems awkward not being able to do it..
stackexchange/codereview
Is it possible to determine the line number that calls a function without the aid of a macro? Consider this code: #include <iostream> #define PrintLineWithMacro() \ std::cout << "Line: " << __LINE__ << std::endl; // Line 4 void PrintLine() { std::cout << "Line: " << __LINE__ << std::endl; // Line 8 } int mai...
stackexchange/codereview
Using PHP 5.3.2, I'm having trouble with handling a request for a page whose name has an umlaut in it: ö Making the request using Firefox + Live HTTP Headers for the test_ö_test.htm page, I can see firefox automatically converts/encodes the umlaut when it makes a request: GET /test_%C3%B6_test.htm HTTP/1.1 Now, using ...
stackexchange/codereview
I have a page that when you press 'log out' it will redirect to the login.aspx page which has a Page_Load method which calls FormsAuthentication.SignOut(). The master page displays the 'log out' link in the top right of the screen and it displays it on the condition that Page.User.Identity.IsAuthenticated is true. A...
stackexchange/codereview
I have the following XML: <?xml version="1.0" encoding="UTF-8" ?> <text> Lorem <foo>ipsum</foo> dolor sit amet. </text> and am trying to parse this XML with JQuery and replace the <foo> tags inside the response with <b></b> tags. The resulting string should be "Lorem <b>ipsum</b> dolor sit amet." I'm doing a GET r...
stackexchange/codereview
I am trying to increase the width of the span tag within a list item tag. Example html; <li><span>10:00 am</span>Toy Soldiers</li> CSS for li/span li span { color:#000; margin-right:5px; background-color:#fff; padding:3px; text-align:center; width:90px; display:inline; } Live site of what I am having a ...
stackexchange/codereview
I'm using wxPython to create a GUI app. Right now I'm using a wx.CheckListBox to display options with check boxes, but I'd like the text in the CheckListBox to be formatted using HTML. What's the best way to go about this?
stackexchange/codereview
Possible Duplicate: Are iframes considered 'bad practice'? Some say that iFrame is evil. But it seems that Facebook uses iFrames for the Facebook applications, and dumping FBML (Facebook markup language). I have never used iFrames before, but is it a good practice to use them if you want to "install" other web appli...
stackexchange/codereview
I am using @Id with @GeneratedValue(strategy=GenerationType.TABLE), just checked that hibernate have created a table hibernate_sequences, but the column type for the sequence_next_hi_value is an int(11). I have some entities (I mean tables) that have an id field of type bigint(20), will that works ? and when my table r...
stackexchange/codereview
Consider an Access front end and SQL Server 2008 backend. Access boolean datatype values are displayed as checkboxes on their forms. I want similar functionality except that my data backend is SQL Server 2008 One of my fields is a 0 or 1 in SQL Server, and when I display this data on my form in Access I want it to be d...
stackexchange/codereview
I have a form where I have created a custom property, DataEntryRole, and set its Browsable attribute to True, as shown: <Browsable(True)> _ Public Property DataEntryRole() As UserRole.PossibleRoles Get Return mDataEntryRole End Get Set(ByVal value As UserRole.PossibleRoles) mDataEntryRole = ...
stackexchange/codereview
I know that the BEGIN block is compiled and executed before the main body of a Perl program. If you're not sure of that just try running the command perl -cw over this: #!/ms/dist/perl5/bin/perl5.8 use strict; use warnings; BEGIN { print "Hello from the BEGIN block\n"; } END { print "Hello from the END block...
stackexchange/codereview
I'm having a serious problem with a prestashop shipping module for FedEx. I know this might not the place for this, but I'm really running out of options. First of all Prestashop is an open source E-commerce platform. Now the problem is it has POOR shipping module capabilities. I was on the search for a real time shipp...
stackexchange/codereview
I have an ASP.NET app that accepts users comments and them in a SQL database. I want to make sure that I weed out any "naughty" words so I can keep my app respectable. Problem is that I'm finding there are LOTS of these words. ;> My question is, what's the most efficient way to do this processing? Should I have a ta...
stackexchange/codereview
I have a domain collection type called SavedAnswers and would like to add that collection to my Entity Framework type Entries. I've been trying to figure out what I need to do but I'm getting confused on all the information out there. Answers has a Identity Primary Key and two Foreign Keys, which brings more issues/que...
stackexchange/codereview
How can I take a dictionary and split it into two lists, one of keys, one of values. For example take: {'name': 'Han Solo', 'firstname': 'Han', 'lastname': 'Solo', 'age': 37, 'score': 100, 'yrclass': 10} and split it into: ['name', 'firstname', 'lastname', 'age', 'score', 'yrclass'] # and ['Han Solo', 'Han', 'Solo', 3...
stackexchange/codereview
How should I do this in Javascript? // CSS *::-moz-selection{ background:transparent; } I tried these but doesn't really works: // Javascript document.mozSelection = "transparent"; document.body.mozSelection = "transparent";
stackexchange/codereview
I am writing a small game for the android platform (HTC Desire) and i am trying to implement a simple scripting language, mostly to set variables and check if conditions are met. So I thought maybe there was a runtime parser in the android library, that way I can put some of the logic in scripts, instead of in the engi...
stackexchange/codereview
What is a good way to read this XML? Or maybe I can structure the XML differently. What I want is the process to be the main thing and then you could have any number of related process to follow. <Job> <Process>*something.exe</Process> <RelatedToProcess>*somethingelse.exe</RelatedToProcess> <RelatedToProc...
stackexchange/codereview
I have a problem. Well, I have an VB6 app that connects to an oracle database. Normally it uses just one session to connect to the database, but after running an update query on a table, it opens another one, on wich it runs just one query : SELECT VALUE FROM SYS.NLS_DATABASE_PARAMETERS WHERE PARAMETER = 'NLS_NCHAR_...
stackexchange/codereview
Is there a way to register some kind of SchemaExportEventListener (that's a name I've chosen) with Hibernate, so that after it has generated the DDL we can make some updates (which Hibernate doesn't support) to the database? We need to set a case-insensitive unique constraint on a PostgreSQL column, and while this is p...
stackexchange/codereview
given is any sequence of integers like 23 7 13 4 8 6. I want to detect local minima and maxima with the following rules: the first number in the sequence is a local minimum when the following number is greater the last number in the sequence is a local minimum when the previous number is greater a number in the sequen...
stackexchange/codereview
For integration tests of my Rails web app I use Steak (something like Cucumber). The specs of Steak are in a folder named spec/acceptance. Are Steak/Cucumber now for integration or acceptance testing? I always thought that this is something different.
stackexchange/codereview
I'm using JEditable and trying to populate a select based on a variable. I need a way to pass a variable from my page back through the JQuery to dynamically create the select. JQuery: $(".dblclick_district").editable('miscfreqs.php?mode=save_edit&module=miscfreqs&type=district', { type: 'select', loadurl: 'too...
stackexchange/codereview
Another question. I have been researching everything this wonderful community has offered me in terms of my journey to pursue game development. I have come to the conclusion that I would prefer to develop on my native machine, OS X - eventually leading to the iPhone. I already own both Big Nerd Ranch guide's, Iphone P...
stackexchange/codereview
Not sure if the title captures what I'm trying to say here. When designing in OO should I be splitting my objects up into their most specific areas - so if I have a factory object that deals with creating objects but later on i come across a way of creating objects for another purpose even though they may be the same o...
stackexchange/codereview
i want to add text to a image,because the text is too length,so i need check the text.width > image.width,if yes,i need automatic newline.also i need check the text.height > image.height,if yes i need other image to draw text.i also drawed text on image. public int makePictrue(string address, string pictrueAddress, ...
stackexchange/codereview