instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'd like to make a program that can enter login credentials for authentication purpose at winows login screen. From what I've read, this can only be done as a windows service, because it can start before an user logs in. Can this even be done? Any ideas of where to start?
stackexchange/codereview
I have a lot of content-heavy views in my ASP.NET MVC 2 site. These contain several re-occurring HTML patterns. When using ASP.NET Webforms, a class derived from WebControl could encapsulate these patterns. I'd like some pointers on the correct approach for this problem with MVC. Detailed Explanation Patterns not unlik...
stackexchange/codereview
Context: MVC 2 app using EF. Why does some of this work, but some doesn't? The display name gets set to "Court Name" but no validation is happening, i.e. I don't see the error message. I'm thinking the editor templates are interfering with validation, or else Model.IsValid doesn't work with a complex view model. Any ...
stackexchange/codereview
Is it possible for widget to launch SMS app (via BONDI API) on SamSung wave device, so that the pre-defined content can be included ? Thanks.
stackexchange/codereview
Sorry for long question, but I don't know how to make it shorter. 1. Decorators without args Implementation 1.1 (through function) import time import functools def pause(f): @functools.wraps(f) def wrapper(*args, **kwargs): time.sleep(1) return f(*args, **kwargs) return wrapper @pause def...
stackexchange/codereview
I'd like to create an onbeforeunload "You have made edits to the page. Stay On This Page, Leave This Page" jQuery plugin. The plugin will need to: Accept a containing element. $(".editableFieldContainer").beforeUnload() Autodetect changes to not(:hidden) input/textarea/selects. Prompt user to stay on the page if eleme...
stackexchange/codereview
I knew this was a problem I would run into and I'm just not sure how to solve it. I have two tables with the following structures: dbo.File FileID int Title nvarchar(50) ISBN nvarchar(50) UploadDate datetime UserName nvarchar(50) dbo.Cover CoverID int Cover...
stackexchange/codereview
I can't seem to get my CSS to link to a div when I use: [in stylesheet(style.css)] #sitecontainer .header { background-image:url('/images/header-background'); } <div id="sitecontainer"> <div id="header"></div> <div id="content"></div> <div id="footer"></div> </div> However when I place t...
stackexchange/codereview
How to get the character ± in a string?
stackexchange/codereview
I have a form to create a user and a corresponding command object. It looks like so: public class CreateUserForm { private String name; private String email; private String password1; private String password2; private Boolean enabled = true; ... getters and setters ... } I have a user entity o...
stackexchange/codereview
I am trying to prevent the GridLayout in a JPanel from filling the cells entirely and ignoring any setSize of the components i am using this code: import javax.swing.*; import java.awt.*; public class GrideComponents{ public static void main(String[] args) { JFrame frame = new JFrame("Laying Out Components in a ...
stackexchange/codereview
I'm running a webapp from eclipse helios using the jetty plugin. In debug mode the apps seems to run very slow (almost stall) and I can't get the app even to startup. When running in normal mode or in debug from command line (using mvn jetty:run) the app works ok. Any ideas? I'm using the latest run-jetty-run plugin i...
stackexchange/codereview
Folks, I have a combobox component backed by a JSONStore. The data loaded into the store is returning null for the combobox's value. The value is an int. The JSON decode process is converting the null value into a zero; causing the combobox to fail to render when it attempts to find the pk, zero that doesn't exist i...
stackexchange/codereview
I want to save text I scrape from various sources without the HTML tags that are on it, but also keeping as much of the structure as I reasonably can. Markdown seems to be the solution to this (or possibly MultiMarkdown). There is a question which offers a suggestion on converting from HTML to markdown, but I want to s...
stackexchange/codereview
I'm completely puzzled here. I have a list of objects each containing a location. I look up this location using the google.maps.geocoder and afterwards I put a marker for that location on a map. But for some reason only one marker appears. I guess this has to do with the closures problem I've seen in other threads arou...
stackexchange/codereview
I want to save the output (contents) to a file (saving it in UTF-8). The file shouldn't be overwritten, it should be saved as a new file - e.g. file2.txt So, I fists open a file.txt, encode it in UTF-8, do some stuff and then wanna save it to file2.txt in UTF-8. How do I do this? import codecs def openfile(filename): ...
stackexchange/codereview
As you can see in the MSDN StringValidator documentation, the Validate method returns void. If validation doesn't succeed the Validate method throws ArgumentException. I thought that "You only throw an exception when something exceptional happens". Surely a validator that failed to validate isn't exceptional.. Why not ...
stackexchange/codereview
I have a simple has_many association, and I want to change an attribute from public to private the associated object. What's the best way to do this: class User < ActiveRecord::Base has_many :posts end class Post < ActiveRecord::Base belongs_to :user end user = User.first #=> #<User...> user.posts.count #=> 100 ...
stackexchange/codereview
I'm using a grid engine to run R scripts. The STDERR is taken seriously under this setup, so I would like to keep it clean and have only real/serious/fatal errors printed to STDERR. The problem is my R script generate various STDERR messages which are not really serious warnings... for example, scan seems to print to S...
stackexchange/codereview
I like Google App Engine for the Datastore (and the fact that I can develop in Python) but they have 1MB limits on fetching and uploading files. On the other hand it wasn't made for that I guess. I managed to create a service that is getting a URL (or a file from user), fetching it on GAE and then putting it on Google ...
stackexchange/codereview
I am in the midst of evaluating the benefits of changing our program from 30+ statically linked libraries to 30+ dynamically linked libraries. We hope by changing to DLL, it will reduce the link time. One immediate problem is the requirement to add __declspec in front of all the classes to create the lib file for othe...
stackexchange/codereview
I have a single line text field that gets his .text property populated from a external .XML file. This text is pretty long and I want to display it on one line as much as I can and add a "..." afterwards. e.g. whole text = Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut lab...
stackexchange/codereview
Yes. I am using normal confirm boxes for my "did you mean firstname lastname?" with yes/no I also have "Who of these did you mean:" and i want a popup/dialog for this too, where you can select one of the names you ment. example so the popup would look like this: Who did you mean?: [ ] Bumb bam [x] bim bum [ ] bam bam O...
stackexchange/codereview
Hey I wonder about I have written a C++ linked list, where I call a destructor to go through an allocated linked list and delete every node found. However what I found is that although it goes through the linked list and delete every occurance it will still print out values. Although just some scrap values. But shouldn...
stackexchange/codereview
I would like to draw an opaque line on a control in c#. I tried this with visual basic powerpacks shapecontrol.. but I couldn't find any properties that set opacity. How do I draw an opaque line ? Thanks,
stackexchange/codereview
According to http://mdbf.codeplex.com/: "Due to the organizational restructuring of the team that developed and supported the Mobile Device Browser file, we will no longer have the resources to support and update this CodePlex project. The team will be providing two more releases – one on the 27th July 2010 and the fi...
stackexchange/codereview
byte s[] = getByteArray() for(.....) Integer.toHexString((0x000000ff & s[i]) | 0xffffff00).substring(6); I understand that you are trying to convert the byte into hex string. What I don't understand is how that is done. For instance if s[i] was 00000001 (decimal 1) than could you please explain: Why 0x000000ff & 0000...
stackexchange/codereview
I am new to programming and trying to write a javascript function to set a cookie value when a popup button is clicked. In home.aspx <input id="btnCanOK2" type="button" value="Close" class="popupButton" runat="server" onclick="return btnClose_Click" /> for this button, i have written a javascript function: function b...
stackexchange/codereview
I'm surprised I just put object to embed youtube in a wordpress blog and surprise it did play also on ipad. <object width="425" height="344" type="application/x-shockwave-flash" data="http://www.youtube.com/watch?v=hoA1MBRJ_BA&amp;hl=de&amp;fs=1&amp;rel=0"><param name="movie" value="http://www.youtube.com/watch?v=hoA1...
stackexchange/codereview
Possible Duplicates: How to pass objects to functions in C++? is there any specific case where pass-by-value is preferred over pass-by-const-reference in C++? I have members of a class implemented like this: void aaa(int a, float b, short c) { bbb(a, b); } void bbb(int a, float b) {} If the values of a, b and c ...
stackexchange/codereview
I have a DataGridView that's populated and bound dynamically. One column is a CheckBoxColumn. How can I programmatically check individual boxes within that column?
stackexchange/codereview
I'm developing a binary PowerShell module. I've setup the debug tab of the module's project to launch the PowerShell console and import my module. If I press F5 it does so as expected. The issue that I'm having is that Visual Studio isn't really "attached" to the process. The Modules window is empty and none of my bre...
stackexchange/codereview
I'm looking into the different options for choosing a search server for a project I'm involved in. The search server is used to power results on a dating website built in Rails, in which the search provides all the 'matchmaking'-magic. Typical queries would involve ranking documents/results using an expression (in pseu...
stackexchange/codereview
I'm trying to write code that talks to Google Spreadsheets. We do a bunch of processing on our end and then pass data out to our client into this spreadsheet and I want to automate it. This seems like it should be easy. On this page, Google says "Given a SpreadsheetEntry you've already retrieved, you can print a list...
stackexchange/codereview
Youtube mobile uses RTSP streaming, but thats rather overkill to set up and to maintain. So it looks like HTML5 is probably the best way to serve videos embedded in websites to mobile devices. (Can I get confirmatino on that or does any one disagree?) Also to include a static link to the media file so the phone can dec...
stackexchange/codereview
I made some HeaderTemplate for Combobox.GroupStyle in order to display items in groups. And know I need to do some operations with the Combobox when user clicks on the GroupHeader. I have tried to write a trigger in my HedaerTemplate for Combobox.GroupStyle, but it doesn't work. Below is full code of the combobox: <Com...
stackexchange/codereview
I would like to invoke a script from my Perl code and capture its STDERR and STDOUT combined together. I usually use capture from IPC::System::Simple but ti doesn't seem to allow capturing of STDERR.
stackexchange/codereview
I have overwritten the Mage_Tax_model_Calculation::getRate, so that I want to not tax certain customers. I do not have a special customer class for them. I have a custom field in my customer model, which I want to check after I am able to load my customer model and if this field has a value I do not tax him, otherwise ...
stackexchange/codereview
I would like to know how to make the UITabBarItem be highlighted when I choose to do so in the program. Is this possible? THanks
stackexchange/codereview
do you know whether there is a way to not let the scrollbars in IE8 appear? I've got a complete empty .html site and loaded it in IE8 and scrollbars are appearing. I've been searching the net for a while, but couldn't find any hint. Is it solveable with CSS or do I need Javascript? Every hint is much appreciated.
stackexchange/codereview
Problem: Simple UDP proxy - receive UDP packets from multiple sources on port X and forward (resend) them to IP Y on port Z. Description: I am able to create a simple UDP server using twisted, and receive incoming packets easily. However, I cant find a way to resend these packets (their data) further, using Twisted. Is...
stackexchange/codereview
I would like to create a method which returns several NSString. I am thinking of this kind of method but I do not find it in the objc style, rather C programmer style - it uses pointers to (NSString*), thus (NSString**): - (LONG) readOwnerInformationToNationalNumber:(NSString**) nationalNumber ...
stackexchange/codereview
Converting an app to Rails 3. Ran into this missing syntactic sugar. class Group < ActiveRecord::Base has_many :memberships has_many :users, :through => :memberships end class Membership < ActiveRecord::Base belongs_to :group belongs_to :user end class User < ActiveRecord::Base has_many :memberships has_m...
stackexchange/codereview
Is it possible to copy a DLL from an installed application into your own bin folder, link to it and call functions at runtime, if you know the API? Does the DLL change if you've bought it from the component vendor and if you grab it off an install?
stackexchange/codereview
I’m still working on a properly functioning ICMP listener and puzzling how to deal with ‘endianness’. My first approach was getting the data out of the buffer into an appropriate (array initially) field (uint etc.) and then reversing the byte order, before passing the data on to the appropriate BitConverter member. Th...
stackexchange/codereview
I have following entities public class Entity1 { public virtual Guid Id { get; set; } public virtual IDictionary<Guid, Entity2> Entities2 { get; set; } } public class Entity2 { public virtual Guid Id { get; set; } public virtual IDictionary<Guid, Entity1> Entities1 { get; set; } } DB table CREATE TABL...
stackexchange/codereview
I want to create a C++ application that is to run on some Linux platform on a specific laptop computer. I do however not want the users of this laptop to use any other applications/system features than this program - much like the kiosk modes you would find on computers in a typical internet café. One issue is that th...
stackexchange/codereview
I have a perl CGI script doing the Facebook authorization flow as described at http://developers.facebook.com/docs/authentication/. When I go to my Facebook app page in a browser my script receives the initial query from Facebook, authenticates the signed_request, and then sends a redirect to the following url: https:...
stackexchange/codereview
I was writing a query against a table today on a SQL Server 2000 box, and while writing the query in Query Analyzer, to my surprise I noticed the word LineNo was converted to blue text. It appears to be a reserved word according to MSDN documentation, but I can find no information on it, just speculation that it migh...
stackexchange/codereview
Is it possible to broadcast an Intent from native code? If so, is there documentation and/or sample code pertaining to the relevant APIs?
stackexchange/codereview
Desktop app C# Compact Framework 2 projects in one solution Main project uses DataAccess project (reference), because everything related to Database is in DataAcess project I am actually connecting to 2 different databases. How can I make a "global" variable that would be available from both projects? (without needing ...
stackexchange/codereview
I made a very simple 2d game with OpenGl ES for Iphone (kind of tetris mixed with arkanoid stuff, for fun). Now i need to build the UI below (playground is transparent) and on top of the play space. Score, level and player display, background animation, control buttons... Should i (can i?) use Uikit for all these eleme...
stackexchange/codereview
So, I have two fields I am indexing: | NAME | TYPE | ------------------------------------- |Texas Steak | Restaurant | |Bone Digs Restaurant | Restaurant | |Rain Sushi | Restaurant | |Brazil Steakhouse | Restaurant | |Alfredos | Restaurant | |Mediterranean Corner | Restaurant | |Korean Taqueria | Restaurant | |Orlando ...
stackexchange/codereview
What Control can I use in WPF to emulate the Word Color Picker? In the WPF Ribbon, I think I have the RibbonGallery + IsSharedColumnSizeScope as shown in Lester's Blog. Can I do the same with a normal WPF ComboBox?
stackexchange/codereview
Please help me, i'm clueless. when I try to open the date picker of the jquery UI and attach it to input tag it works perfectly, but when i try to attach it to textarea nothing is happens. <script type="text/javascript"> $(function() { $("#${data_picker}").datepicker(); }); </script> ---- This will work ---- ...
stackexchange/codereview
I have a player character and I would like him to fire bullets, one each second. It's a top down view, no gravity. I've been doing it with SetLinearVelocity() and ApplyLinearImpulse() and the object moves, but I can't control the speed. How can I control the speed of the bullets?
stackexchange/codereview
In one of my mapped classes, I have a Set field mapped to the DB via hibernate. I now need this collection to be sorted according to some logic, which I wrote into a new Comparator implementation. I changed the field type to SortedSet, added this Comparator as an attribute to my hibernate mapping (XML, no annotations),...
stackexchange/codereview
I'm thinking of writing an X11 window manager which does for windows something like what TabKit does for tabs in Firefox (in its default tree view mode). To do this, I'd need to be to able to find out which window a window was opened from. Is there a standard way of finding this out? (I've never done any X11 programmin...
stackexchange/codereview
I get an error when I want to checkout my SVN server. I use Turtoire on my Windows and the SVN server is based on linux. svnserve.conf [general] anon-access = none auth-access = write password-db = passwd authz-db = authz realm = Project_ASI passwd [users] red = v1z2r dips = dipsi authz [groups] red_and_dips = red,di...
stackexchange/codereview
I have the relatively common setup of a TabBarController whose tabs contain NavigationControllers which have TableViewControllers as their roots. I'm trying to perform some logic on initialization of one of these TableViewControllers but can't seem to find what init function gets called. My goal is to add a listener in...
stackexchange/codereview
Let's say I have this rule: andR( conj(C,D) ). So I want it to match with items such as conj(x,y) which is fine. However, how do you get it to match with something more complicated like (i.e. a conjunction again but not of two atoms): andR( conj(not(conj(not(a),c)),c),not(a) ). because Prolog doesn't match with th...
stackexchange/codereview
I'm just starting to get the hang of animations, tweened animations that is. I have made several imageviews with pictures rotating and moving, and its all very fun, but I don't know what the best approach for doing multiple animations is. For example I created a LinearLayout and stuck some ImageViews in it and wrote th...
stackexchange/codereview
We currently have a bunch of windows services. I am wondering what the advantages would be of making these WCF Windows Services? Thanks
stackexchange/codereview
We've seen plenty of questions about when and why to use try/catch and try/catch/finally. And I know there's definitely a use case for try/finally (especially since it is the way the using statement is implemented). We've also seen questions about the overhead of try/catch and exceptions. The question I linked to, howe...
stackexchange/codereview
So I'm using Core Data in an existing iPhone app, and I've set up two entities: Person and Item. The root view of my app's navigation (currently) shows a list of people, and you drill down from there to items. In short, the hierarchy looks like this: Person -> Item I want to add a new entity above Person in the hierarc...
stackexchange/codereview
I have two URL's which contain the parameter "tour_date" which I am trying to read out in PHP. Running $_REQUEST["tour_date"] for the first URL: .php?tour_id=336&tour_date=11/06/2010 returns the value of: 11/06/2010 While the second URL: .php?tour_id=336&tour_date=11/06/2010 returns nothing. I've run the empty() method...
stackexchange/codereview
All, I have a Windows Service which queries a database (SQL Server) for some data. What is the best way to store that data for later usage and can very accessed very easily? Maybe a DataTable ? Rgds, MK
stackexchange/codereview
By default, a basic MFC C++ project in Visual Studio 2010 will store all its workspace settings in the HKCU registry hive under a user-configurable key name. This includes last window size/position, ribbon settings, status bar, etc. How can you disable this feature completely so as to not write to the registry at all?...
stackexchange/codereview
If I have a factory that creates an object that needs an instance of another object should i use another factory responsible for this second's object creation or should the original factory handle this?
stackexchange/codereview
Howdy, I currently have my main activity in Android. It's called start activity. My programm is designed so that it loads an XML File from the web, and parses it. Now in future I want to add also the ability that the program loads the XML file and instead of parsing it every runtime it loads the data from an SQLLite ...
stackexchange/codereview
To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives? Any help is appreciated.
stackexchange/codereview
I have this in my .htaccess on a linux server in the root but it wont redirect my site (its a new .co domain) Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^mmyoldsite\au.com$ [NC] RewriteRule ^(.*)$ http://www.newsite.co/$1 [R=301,L]
stackexchange/codereview
I need to get a label for specific device using c/c++ (and no d-bus) in linux. The problem is that i can't just open device and read it's information (for extN it is very easy to get label from device) because reading from /dev/xxx requires root privileges.
stackexchange/codereview
I am currently writing code in Qt. How to compile the code statically? From Qt document I came to know the following step 1) Visual Studio 2008 -> commandPrompt -> QtDir -> configure -static -> nmake But, it took 17 GB and at the end it exited before the completion stating that "the space is not enough". Is there any s...
stackexchange/codereview
I have a Users table, which has a Unique constraint on the username (for obvious reasons). I am using an EF 4.0 DAL to populate the database, and in the process of coding the CreateUser() method. Is it... Best to catch the SqlException thrown if I try to insert a username which already exist. Explicitly check for the ...
stackexchange/codereview
Can anyone tell me how to read the value 500 from the xml document, please? XmlDocument xmldoc = new XmlDocument(); xmldoc.LoadXml ("<move action='bet' value='500' />");
stackexchange/codereview
I cannot figure out why this is not working. I will put up all three of my files and possibly someone can tell me why it is throwing this error. I am using g++ to compile the program. Program: #include <iostream> #include "h8.h" using namespace std; int main() { char sentence[MAX_SENTENCE_LENGTH]; char writeTo[...
stackexchange/codereview
i want to take screenshots in landscape mode. currently my below code takes screenshots in PORTRAIT mode. also i want to store the images into the given location not in photo library.. how can i attain this... thanks for any help below is my code UIGraphicsBeginImageContext(self.view.bounds.size) ; [self.view.layer ren...
stackexchange/codereview
I found this from original link: http://www.ecb.europa.eu/stats/exchange/eurofxref/html/index.en.html#dev e.g. <?php function StartElement($parser, $name, $attrs) { if (!empty($attrs['RATE'])) { echo "1&euro;=".$attrs['RATE']." ".$attrs['CURRENCY']."<br />"; } } $xml_parser= xm...
stackexchange/codereview
I'm using Map Reduce with MongoDB. Simplified scenario: There are users, items and things. Items include any number of things. Each user can rate things. Map reduce is used to calculate the aggregate rating for each user on each item. It's a complex formula using the ratings for each thing in the item and the time...
stackexchange/codereview
Hey everyone! I'm building a webapp in PHP that uses a MySql DB. What I want to do is for example when someone tries to access to a page, but the DB throws an error, to display a HTML (or redirect) page with the HTTP code 500. Something like the "fail whale" in Twitter. Is that possible?
stackexchange/codereview
I'm trying to dynamically generate a csv file with some cells that will contain multiple lines, the address field for example will need to be grouped into a single "address" cell instead of address,city,state etc. All is going well and but for the last two days i've tried to insert \r, \r\n, \n, chr(10),chr(13), as wel...
stackexchange/codereview
I find that there is an annoying horizontal scrollbar that appears only on firefox (not IE or Chrome) when I use IFrames and content that is too big to fit within the width of the iFrame. I have tried: 1. overflow:hidden 2. scrolling:no I have no control over the content of the iframe so,i cant do anything about the wi...
stackexchange/codereview
I am fairly new to the android platform. I have to implement a SeekBar or a ProgressBar with the following constraint: it should not be clickable. I only want to allow my users to change the value of the bar by dragging it not by clicking on it. I have not found any solutions for that so far. Do you have any ideas?
stackexchange/codereview
This query isn't working as I'm expecting it to. Anyone see the problem? I'm trying to get an element by it's name, but it's not returning anything. Here is the specific part of the function I need some help with: Update The solution was to use an XName instead of a string. Like so: var matchingElements = elements.W...
stackexchange/codereview
I look after a large site and have been studying other similar sites. In particular, I have had a look at flickr and deviantart. I have noticed that although they say they have a whole lot of data, they only display up to so much of it. I persume this is because of performance reasons, but anyone have an idea as to how...
stackexchange/codereview
Possible Duplicate: PHP: self vs this Hello, Could you help me understanding the meaning of the PHP variable name $this? Thank you for your help.
stackexchange/codereview
Say I have two date fields receiveDate and currentDate. I want to check if receiveDate was 5 days before currentDate. What I did was to convert the dates in milliseconds and then compare against 5. Is there a better way of doing so? If so, how and why mine is any less better? Thanks. Method I wrote - private static fin...
stackexchange/codereview
I have this ajax call at the moment: $.ajax({ url: "misc/sendPM.php", type: "POST", data: data, success: function(stuff) { if (typeof stuff == "object") { var err = confirm(stuff.error); if (err) { alert('You pressed OK'); // MAKE AJAX CALL HERE HERE HER...
stackexchange/codereview
I'm working on code that have the following attributes on some of its methods: [CLSCompliantAttribute(false)] How is it that when I build the code as is, I see that the compliance checking is being performed, and when I comment it out, it seems that the compliance checking is NOT being performed? I've expected the op...
stackexchange/codereview
Query: BEGIN TRY SELECT @AccountNumber, @AccountSuffix, @Sedat, @Dedo, @Payalo, @Artisto FROM SWORDBROS WHERE AMAZING ='HAPPENS' END TRY EGIN CATCH Print @Sedat END CATCH How can I get the @Sedat, is it possible? SQL 2005 , ...
stackexchange/codereview
In my loop I am trying to remove items from a list that have a certain name. I can't do this with a for-each, so I tried a regular for-loop. It seems the for loop is not working as expected. It always goes over the limit. I had to put an if-then to break out of the loop (very ugly solution). I'm trying to find the corr...
stackexchange/codereview
I'm using omnet++ for the simulation of two networks. One uses IPv6, the other one ipv4. Do you guys know if there is any IPv6 to IPv4 NAT module already available for omnet++? So far I haven't been able to find any, and writing one from scratch is not an easy task. Thanks.
stackexchange/codereview
I want to build a game which the user can be able to create for him a character and after the game will convert it to PNG file for example. The user will choose the clothes of the character and will see it online, when he finish - he will click finish and get it as PNG file. With which language program i can build it? ...
stackexchange/codereview
When I try to use require or require_once, it will work fine if the file to be required is in the same subdirectory, but the moment it sees a file outside of their subdirectory, it generates a fatal error. Here is basically what the file tree looks like: * main.php + login/ * login.php + includes/ * session.php ...
stackexchange/codereview
I have a rails 3 application on localhost, but my host (dreamhost) uses 2.3.5. Are there any techniques to downgrade my application? I've tried installing rails 3 locally, but there is a conflict with rake. And simply trying to run my application results in an "uninitialized constant Bundler" error. I'd rather not re-...
stackexchange/codereview
I have a rather misterious problem dealing with booleans in Rails, here is how to reproduce: rails new boolean_bug rails generate model User verified:boolean With this you should have an empty project with the User model. 3 Inside boolean_bug/app/models/user.rb ' class User < ActiveRecord::Base before_save :set_fals...
stackexchange/codereview
I'm amazed at ReportBuilder 3.0. This might be just what I need for my job. I haven't thoroughly checked the differences between SQL Server 2008 and its R2 version so I don't know if upgrading would be a hassle.
stackexchange/codereview
I have tried to use an implementation of mini-kanren in clojure. But been struggling to understand the difference between cond-a cond-u and cond-e. I seem to be quite clear about cond-e but understanding of cond-a and cond-u is quiet bad. cond-e takes a set of goals and then tries each of them... i.e tries all the bran...
stackexchange/codereview
I have learned a lot of fancy diagrams to be used in modeling software , But only Use case and Class diagrams seems to have a clear usage for me . I searched the web a lot and I found little exercise . I need a book or a document which contains loads of UML examples so I can start thinking and trying the tools I have l...
stackexchange/codereview