instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm writing a function that calculates the value of PI, and returns it as a double. So far so good. But once the function gets to 14 digits after the decimal place, it can't hold any more. I'm assuming this is because of the double's limited precision. What should I do to continue getting more numbers after the decimal...
stackexchange/codereview
See below the solid line for my original question. I have a folder in my local directory that is untracked. When I run git status, I get: Changed but not updated: modified: vendor/plugins/open_flash_chart_2 (modified content, untracked content) When I type git add vendor/plugins/open_flash_chart_2 then try git statu...
stackexchange/codereview
I need a child div to be as high as its parent, but I do not know the parent's height. It can change. Setting "height: 100%" does not work, as the div will take the height of the entire page. This is the layout of the divs: <div id="deelnemersballoon"> <div class="balloonarrow"></div> <div class="balloonborder...
stackexchange/codereview
I've got a User an a Log class (which I cannot change): class User { private long id; private String name; private Set<Log> accessLogs; private Set<Log> actionLogs; } class Log { private String what; private Date when; } A possible mapping will look like: <class name="com.example.User" table="...
stackexchange/codereview
i have a vbscript which connects to db2 and recset gets long varchar 18000 (contains xml message). The problem is that variable in vbscript has length only 250. Ok, i have divided recset to array(50) 250 chars each string. Then when i trying to pass first string from array to file it throws error. Because in array(0) s...
stackexchange/codereview
I'm currently taking a year off between high school and college. I'm working as a junior IT technician, so I'm getting plenty of experience on the hardware side of things. I want to use this year off to also get started on some programming; I have experience in Visual basic from high school courses, but want to further...
stackexchange/codereview
I know that the only really correct way to protect SQL queries against SQL injection in Java is using PreparedStatements. However, such a statement requires that the basic structure (selected attributes, joined tables, the structure of the WHERE condition) will not vary. I have here a JSP application that contains a se...
stackexchange/codereview
How do I make it so that when a user types letters into a textbox in silverlight that it changes these letters to all capitals? And at the same time still fires all the same events such as keypress.
stackexchange/codereview
Hello I have a PHP program with my own classes. I am using a Xampp server in the office. It has 4 basic parts: 1)The program reads one mysql record ("SELECT a, b, c.... then loops a few times to total. 2) echo some variables to the screen (about 10) 3) Insert a record into a second mysql file (summary of the first g...
stackexchange/codereview
I encounter problem on FastReports, it will not print correctly on pages which contain Korean character. It hapens only on Printer HP K5300 jet, T test it using rave and having no problem. I think it a bug for fast reports. I already convert all my reports from rave to FastReports and dont have plan to moved back. I a...
stackexchange/codereview
So I have been reading about std::move, std::forward, rvalues, lvalues ad so on in SO and other places. But I find that I can't grasp it. Even though I sometimes get into fixes, I think I understand basic stuff about pointers, references, etc which were in C++ before all this. Is it me or are these stuff getting too he...
stackexchange/codereview
I keep getting this error on a new server i have recently starting using. At home on my home server it works fine, at my workplace my site also works fine on their server but on this server everytime i try to go from one .php document to another .php document and run the code it comes up with this error. Please help i...
stackexchange/codereview
I have an application that is using a lot more than expected short lived objects this is causing significant performance issues which I need to resolve. To give you an idea of the scale of the problem the Eden space jumps from around 200mb to 1800mb in 10 seconds before the garbage collection runs again and brings Eden...
stackexchange/codereview
I've been searching some topics concerning facebook registration. Its just that i cant find any topics on how to save the user's facebook data to my users model. Currently, users can Login successfully in my site. here's my code: base.html <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = fu...
stackexchange/codereview
I have a <ul> that is centered and contains pictures, each displayed side by side in one row. The problem comes when the client resizes the browser or has a lower resolution than the width of the <ul> with the pics in it. What I am trying to achieve is that the center of the <ul> always remains in the center of the br...
stackexchange/codereview
How can i view rar or zip file content before downloading it ?
stackexchange/codereview
I'm profiling some Flash code, and one of the methods that's taking a lot of time is BitmapData.ctor. What, err, is that?
stackexchange/codereview
Given the following: <div" id="NAV"> <ul> <li class="navitem " id="79"> <span class="icon"> </span> Title </li> <li class="navitem " id="33"> <span class="icon"> </span> Title </li> <li class="navitem " id="123"> <span class="icon"> </span> Title </li> <li class="navitem " id="41"> <span clas...
stackexchange/codereview
Inside the MS BI Studio (2005) for the Reporting Services, how to populate a DataSet (DSet2) based on another DataSet (DSet1) ? DSet1 carries the result of a specific DB query. Please kindly advise. Thank you.
stackexchange/codereview
Further to my previous question, here's what I decided to implement; it may not be pure P-R-G, but it seems ok. Care to comment? The form.php has an action; let's call it validate.php. validate.php is never seen by the user; if validates all $_GET and, if valid writes it to database and generates the HTML of a confirma...
stackexchange/codereview
Currently I'm developing a dashboard for the company that I'm working for. The functionality of this dashboard is not interesting for this problem. This dashboard is build up like: Asp.net page (with a codebehind ofcourse) Class where webmethods are defined Javascript external file (with all the funcitonality of the d...
stackexchange/codereview
I wish to pause the slideshow for about 4 seconds with no slide displayed before resuming. Is this possible? I have tried to do this myself with the following code but it does not seem to work. $(document).ready(function () { $('#homeSlideshowWrapper').cycle({ fx: 'fade', timeout: 4000, ...
stackexchange/codereview
I am trying to configure transactions using annotations. When I am running in an environment with load time weaving enabled (e.g., tc server or tomcat with the weaving classloader), it seems that my transaction interception is handled by aspectj, but since it is not fully configured it doesn't work (I get a message "S...
stackexchange/codereview
I use ASIHTTPRequest to do http requests in my iPhone app. ASIHTTPRequet comes with that feature that starts the activity indicator when issuing a request and stops it when finished. The problem is, once I started a request the indicator never stops and keeps spinning as long as my app runs. Here is my code, a little u...
stackexchange/codereview
I have created a small script that sends a multipart email via php the mail() (that has been a challenge in itself!). When I test the script and send and email it all works fine, but when I try another address (one which has the same domain as the server) the email appears blank. All the content is there when you look...
stackexchange/codereview
Assume we have a list (mylist) that is use as input object for a lapply function. Is there a way to know which element in mylist is being evaluated? The method should work on lapply and snowfall::sfApply (and possible others apply family members) as well. On chat, Gavin Simpson suggested the following method. This work...
stackexchange/codereview
Does Tkinter or underlying Tk framework support the ability to apply the equivalent of the attributes() method to Frames vs. Windows? Specifically: I have forms with a message area that I would like to fade away in jquery-like manner, eg. display a non-modal status message that fades away. I know I can fade a Tkinter w...
stackexchange/codereview
If I do something to a list inside a synchronized block, does it prevent other threads from accessing that list elsewhere? List<String> myList = new ArrayList<String>(); synchronized { mylist.add("Hello"); } Does this prevent other threads from iterating over myList and removing/adding values? I'm looking to add/re...
stackexchange/codereview
HI all, I am creating a timesheep app and I have five colums that can contain hours worked. When the user enters a new form how do I check to see if at least one of the columns contains data. I must admit I am not a developer just a Sharepoint/Sharepoint designer hack so be nice. Thanks Glenn Thibeault
stackexchange/codereview
i want to disable the day selection option on the android sdk date picker. any easy xml configuration would be the best
stackexchange/codereview
Does anybody success in using AspectJ load-time weaving with signed jars? I got an exception and have no idea how to fix it (tested with AspectJ 1.6.8-16.10): Exception in thread "main" java.lang.NoClassDefFoundError: com/package/clazz$AjcClosure1 at com.package.test.main(test.java:55) Caused by: java.lang.ClassNo...
stackexchange/codereview
I need a script to create 10 users in Windows 2003.
stackexchange/codereview
I user jQuery's ajax to sign up users. I use almost the exact code below to do similar stuff all over my site and yet for some reason the code below is throwing this error in Firebug. Error: uncaught exception: [Exception... "Not enough arguments" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS fra...
stackexchange/codereview
After pushing my app on heroku, my app crashes. I don't want to make a git rebase before getting heroku last version (if I do so, I'll get fast-forward errors...) I would be pleased to know if there is a command to do it (I don't find it on the heroku doc) Thank you!
stackexchange/codereview
In the situation of a web application that organizations can sign up for and use to manage data, what are the pros and/or cons of the two following options? One database per organization where the data for each organization is entirely separated into individual databases, with one (very small) centralized database tha...
stackexchange/codereview
If I have a 1:N relationship with A with B. Is there a web service method that I could use to remove the link between A and B[i] with out actually removing the entity B[i], if the Id of both are know. Btw A and B are custom entities. Thanks
stackexchange/codereview
I have a task where I need to take some existing pictures[ which show some automata (DFA, NFA, Turing machines)] and somehow convert them into a format, which enables me to use the data to represent it as an automata as well as compile it into some graphical representation. Has any of you done something similar before?...
stackexchange/codereview
I'm struggling to understand how I'd go about changing an ImageView's src at runtime in a ListActivity. In a function I have this line which is where the custom file row is set for the ListView: setListAdapter(new ArrayAdapter<String>(this, R.layout.listrow, R.id.listtext, this.directoryEntries)); In listrow.xml, I ...
stackexchange/codereview
i have the following code: let rec sums1 n = function | (a,b,x:int array,s,k) when (s<n&&b=x.Length-1) -> []//None | (a,b,x:int array,s,k) when (a=b&&((x.Length-1)=b))->[]// None | (a,b,x,s,k) when (s=n) -> (Array.toList(Array.sub x a k)) | (a,b,x,s,k) when (s<n) -> sum...
stackexchange/codereview
I'm currently working on a win32 application and I'm thinking I should probably use the MVC pattern. Now according to the pattern, the code that handles user interaction should be in the controller so that I can update the model and/or view accordingly. But in Win32, would that mean that my windowProc should be in the ...
stackexchange/codereview
After a call to initial HttpWebResponse.GetResponseStream() and reading through the stream, that stream is done for and cannot be reused. I have a situation where I need to examine the content of the response and if it is of a certain data, get another page and then pass the new response down the line. Otherwise, pass...
stackexchange/codereview
For example, glfw for Max OS installed the library in /usr/local/lib/. Now I want to use it in an Xcode project. I can't seem to add it because Mac Finder has hidden that folder. How do I find it to add? Ideally how do I just paste in an arbitary path somewhere without having to drag files from Finder?
stackexchange/codereview
I have used JProfiler, JProbe, AppSight, YourKit for the finding out what code is consuming CPU. But YourKit looks better than others. Is there anything better ?
stackexchange/codereview
Im building a little mvc style framework, with a single point of entry through the index in the public folder. I am now passing all my ajax requests through this, and directing them to the appropriate controllers in the private application directory. What are the pros and cons of doing it like this? should I do be doi...
stackexchange/codereview
I'm building a validation function for a particular enumeration data type. The validation function returns 0 (false) or 1 (true) if string passed is valid. At the same time, if the string is valid, then the enumeration subType is then populated with the correct entry. As the code is, it correctly populates subType in ...
stackexchange/codereview
I have a table to store data for the phones and it has about 50 columns .......... should be inserted on average 30 million phones in one year ........ however, it is necessary to store a history of these phones, for example, if I want to change a field in a phone at a given date, latter I need to know at any given tim...
stackexchange/codereview
Is there a valid domain name used by convention for test cases where the host is supposed to be unreachable? E.g. http://www.unreachable.net/ or http://www.downforever.net/ which seem to be down right now - but for how long? Or at least an IP address guaranteed to be unreachable? (The Special-Use IPv4 Address spec http...
stackexchange/codereview
While the C++ standard libraries are very generic and efficient libraries, some minor details of their interfaces just seem disappointing. Algorithms cannot take containers directly. std::sort(myvec.begin(), myvec.end()); instead of std::sort(myvec); (I don't really see a valid why the second form was not provided fro...
stackexchange/codereview
I want to detect possible hardware breakpoints on my application. To do this I need read access to debug registers. Direct access is not possible so I do this in this way: HANDLE thread = GetCurrentThread(); WOW64_CONTEXT context; context.ContextFlags = CONTEXT_FULL; BOOL status = Wow64GetThreadContext(thread, &contex...
stackexchange/codereview
How can we find out the size of a Java object? Example: class Person{ String name; int age; public Person(String n, int a){ name = n; age = a; } } Person person = new Person("Andy", 30); How can I know the size of person object?
stackexchange/codereview
I'm trying to use the GlobalRequestMiddleware strategy as described here. I have implemented the middleware exactly as written, and when I want to use it, I have from myapp.middeware.GlobalRequestMiddleware import get_request request = get_request() but get_request throws a KeyError. I have a feeling that the proble...
stackexchange/codereview
I'm trying to automate form creation and submission in codeigniter. Basically what I want is to find a way to go over all the data in the POST array and format it correctly to an insert or update sql query. The problem is I don't know how to access to whole POST array in CI, all I know of is the $this->input->post(fiel...
stackexchange/codereview
I want to find the average of the optical flow, I could extract the features from the first frame and found their location in the next frame. Now, I want to find the average of the displacement in order to translate the image back to its stationary background in order to stabilize the image. // here I take the optica...
stackexchange/codereview
I have, for example, this string: asd? asdfasdfsdf <description>&lt;div? style=&quot;color:000000;font-family:Arial, Helvetica, ?sans-serif;font-size:12px;font-size:12px;width:555px;&quot;&gt;Bohus Malm?t;/a&gt;</description> blah blah blah? asdfasfize:12px;font-size:? I need to know how I can remove all the ? that ex...
stackexchange/codereview
Just because you don't see use for a feature doesn't mean it isn't useful. The Stack Exchange network, GMail, Grooveshark, Yahoo! Mail, and Hotmail use the onbeforeunload prompt to prevent/warn users that they are leaving a page after they have begun editing something. Oh yah, nearly every single desktop program that a...
stackexchange/codereview
Is there a way to manually trigger the code inside a LocationListener's onLocationChanged method? It should receive a Location object with the last known location, I guess.
stackexchange/codereview
In my application user should be able to select a video from video library and also should able to trim the video and play the video in a movie player. Can any one please help me???
stackexchange/codereview
for example would this be constant or change with each pass? for(int i = 0; i < InputStream.readInt(); i++)
stackexchange/codereview
The Problem. C# WCF Client/Server Application using Net TCP Binding (Publisher/Subscriber Pattern). Client-side keeps crashing with an OutOfMemoryException. When I run Task Manager along with the client, I can see the Memory Usage column increase until the application crashes. Intention is for multiple instances of th...
stackexchange/codereview
I am familiar with the MySQL function LAST_INSERT_ID; is there a similar function for performing the same query with a MS Access database via ODBC? In my specific case, I am using PHP+PDO to insert rows into an Access database, and would like to know the last primary key value of each insert as they are performed. If t...
stackexchange/codereview
I need to be able to provide web access to interact with a file system, to upload and download files to a directory. In general people will access these files using sshfs but in a pinch we want people to have web access to these files. We want to run a web server, probably apache2, and some kind of web app or something...
stackexchange/codereview
I'm not sure what Database I will be going with (more likely SQL Server Express), so I don't know if that makes a difference (or that much of a difference) to matter. Basically I am looking to store my object in a database so I can search for a unique object. public class FooBar { public GridItem[,] Items { get; s...
stackexchange/codereview
I would like to show the route between 2 locations, from the users current location to a certain point on the map. I have seen this done in a couple of applications like layar. http://itunes.apple.com/us/app/layar-reality-browser/id334404207 Can someone give me pointers on how to achieve this on iphone sdk 4 Thanks
stackexchange/codereview
I have the following content stored inside a database column: <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor ...
stackexchange/codereview
Why is this extremely basic JavaScript array giving me a length of 13 when there are only 3 key/value pairs in it. It makes sense that it might think 13 as 0 based index and my last array has a key of 12, but I need to have any array that has a key/value pair that returns me the correct number of pairs. The keys need...
stackexchange/codereview
I am writing an application using MVC2 and EF4. I have created entities from my Database, I have a Timesheet table and a TimesheetEntry table. I am using the Model binding features of MVC2 and successfully receiving a Timesheet object with its TimesheetEntries populated with the TimesheetEntries created by the user. If...
stackexchange/codereview
When I run my app full screen mode (Game Canvas, setFullScreenMode(true)) in Nokia Symbian3 emulator a on-screen keypad appears that covers half of the screen. How do I get rid of it to implement my own menu/touch screen events? Can I make sure it won't appear on users' screens when they install this app? I've read I...
stackexchange/codereview
Question: I am working with existing commercial MS Visual Foxpro application, and need to extract data from the database directly using a c# application. Unfortunately, not all of the tables are stored in the same database, some of the records are stored in a database broken down by year. How do I create a query agains...
stackexchange/codereview
I'm looking for a plugin or codesnippet, which automatically calculates the passage of time. For example: you create an element with a timestamp and jquery should change the time as it grows older. Maybe you know that behavoir of the timeline in Twitter or Facebook. Does anybody know or heard something about such a thi...
stackexchange/codereview
There is a widget equivalent to Qt QDockWidget in GTK+? I'm trying to find one on glade-3 but I couldn't find it. If there isn't, what's the correct way to create a dockable widget?
stackexchange/codereview
So I've read over several questions here about the pros and cons of using only OpenID for your website/app. Every question I read seemed to be in the context of OpenID for your users/visitors. What I am considering is using it for the administrative portion of the web app as well. Is this nuts? It seems counter product...
stackexchange/codereview
I'm looking for a good function to remove HTML from a string of HTML. Ideas?
stackexchange/codereview
I have a JsonStore with the following fields: id date time type I have a form that collects the three fields (date, time, type) and inserts a new record into the store (I save the store separately). I would like to perform a check if a record with the same combination of field values already exists in the store to avo...
stackexchange/codereview
Hello I have the following repositories: /var/svn-repos/ /project-repo1/ /project-repo2/ /project-repo3/ I would like to change this to: /var/svn-repos/new-super-repo/ /project-folder1/ /project-folder2/ ...
stackexchange/codereview
I have 2 lists and I am using the sortable feature - works great. But I also need to be able to select multiple items and drag those to the connected list as well. I have 100's of items in a given list and dragging 1 at a time is a bit painful. Has anyone achieved this?
stackexchange/codereview
I am using Flash Builder 4 Burrito Preview - builing a Mobile Application. I have a custom component called footer.mxml. That footer has 4 buttons, and one of them has a lable that is bound to cartValue. I am trying to maintain a global variable called cartValue within all views and footer component. footer.mxml <s:...
stackexchange/codereview
I'm interested in hearing about the best practices for converting Adobe files to jpg's for an upcoming project. I've read some about Imagemagick being used to convert .psd files to jpg, but what about .ai? Is there any magic bullet solution for converting files to jpg? My goal is to accept many image formats, but to cr...
stackexchange/codereview
Visual Studio 2008 doesn't provide me the generated SQL expression through IntelliSense by the simple act of hovering my mouse over the System.Data.Linq.DataQuery<..> variable. (However 2010 does). When I'm working in VS 2008 is there an easy way to see the generated SQL expression without resorting to MS SQL Server Pr...
stackexchange/codereview
What is the correct way to go about creating a welcome window for a first-time user that has multiple pages of information and settings that the user can hit "Next" through, to get oriented with and perform an initial setup of the app before using it? Is there something I can use in Interface Builder for this purpose?
stackexchange/codereview
I've been reading a lot about this since I've been asked to fix a C# application that has memory leaking problems, but I haven't found an answer for these 2 issues: Consider the following code: private static ArrayList list = new ArrayList(); public void Function() { list.add(object1); list.add(obje...
stackexchange/codereview
I thought the iphone width/height size is 320 * 480. But the photo taken from UIImagePickerController is about 320 * 430. Not sure whether I missed anything. picker = [[UIImagePickerController alloc] init]; picker.showsCameraControls = NO; picker.allowsEditing = YES; [window addSubview: picker.view]; Any advices? T...
stackexchange/codereview
Is there a way to prevent a page from being cached based on some logic? I want to cache anonymous access to a page, so I can set VaryByCustom="user" and have some magic in Global.asax's GetVaryByCustomString method. Ok. But I don't actually want to cache the page if the user's authenticated, only if it's not authenti...
stackexchange/codereview
Is there a way in SQL SERVER(05 & 08) that I can insert records from an external file into a temp table? I do not have privilege to the database at all. Here is what i tried to do: CREATE table #temp (KEY_ID INT) INSERT INTO #temp SELECT 90883000 Ran #temp table with result: KEY_ID --------- 90883000 It kind of work...
stackexchange/codereview
Sorry to bother again. I posted this before and got help by the amazing guy called Trix but I think he gave up on me... :( Problem: I have a list of times with an ID and I want to loop through those time within an ID to get the start times and end times. This is an example: time_id time_duration 1 201...
stackexchange/codereview
I have two UINavigationController in the appdelegate.h { UINavigationController *leftView; UINavigationController *rightView; UIWindow *window; } @property (nonatomic, retain) IBOutlet UIWindow *window; @property (nonatomic, retain) IBOutlet UINavigationController *leftView; @property (nonatomic, retain)...
stackexchange/codereview
Is it worthwhile checking return codes for methods that should not fail ? For example, I usually do: char buf[MAXBUF]; snprintf(buf, sizeof(MAXBUF), "%s.%d", str, time); Is it good practice to check the return code for snprintf even if I know that MAXBUF is large enough for my purposes? It seems to make sense to do th...
stackexchange/codereview
With Rspec 2 the "rspec"command is supposed to run the tests, replacing "spec" from previous versions. I tried running it on a new app and no tests were run (despite having a set of specs created). Regular rake spec works fine to run the tests so the issue is with the command jack$ rspec Finished in 0.00003 seconds 0 ...
stackexchange/codereview
I have an existing application that uses SQL Compact Mobile 3.5 and SQL Merge replication to sync with a full SQL database using HTTP. Can I run another application (exe) on the same device that uses the same db (same sdf file) at the same time. I understand that SQL Compact Mobile is hosted in process, but could it s...
stackexchange/codereview
I have a picture here with a width of 2008px. If I read this picture with WPF using this code: byte[] baSource = File.ReadAllBytes(strFileName); using (Stream streamPhoto = new MemoryStream(baSource)) { BitmapFrame bfPhoto = ReadBitmapFrame(streamPhoto); Console.Write...
stackexchange/codereview
What does the fn here mean? jQuery.fn.jquery
stackexchange/codereview
Nearly all of the Ninject examples I've seen explain how to use it with ASP.NET MVC, which will automatically inject dependencies into controllers. How would I use Ninject manually though? Let's say I have a custom ActionResult: public class JsonResult : ActionResult { [Inject] public ISerializer Serializer { get; ...
stackexchange/codereview
I'm sending an automatic html email from my website. In my email I set some text to red color and the font to a certain font type. When I view the html email from yahoo mail, The red color is applied, but the font is not applied. Why is it? Also, when I try to view the html source code of the yahoo mail web page, I can...
stackexchange/codereview
I want to do an ArrayList in Delphi 5.0. So I found a solution doing this code: var arr: array of String; OK, but every time I add something I do this: var Form1: TForm1; var arr : array of String; procedure TForm1.Button1Click(Sender: TObject); var aux :string; var len:integer; begin len := Length(arr) +...
stackexchange/codereview
Anyone got examples of how to do a DB deployment without TFS in MSBuild. I had automated db deployments in nant at an old position, but need to do it in msbuild at a new job. I was using the nant and setting a boolean flag to trigger processing sql files, but im unsure of how to do this in msbuild. Everything surpri...
stackexchange/codereview
I'm using MVC 3 (the ASPX ViewModel) while I store and display data from my SQL database. I've tried using the raw input to store it as well as using HttpUtility.HtmlEncode. Neither are working when I try to display. I've tried using the HttpUtility.HtmlDecode as well as using <%: Model.MyHtmlVariable %>. Am I missing ...
stackexchange/codereview
Assume there is an abstract class with a constructor that calls a protected abstract method that is yet to be implemented by the child class. Is this a good or bad idea? Why?
stackexchange/codereview
We're trying to implement some dynamically configurable logging into our Azure application and we're using the enterprise libraries to do so which works fine, however the xml required to facilitate this is more complex than the simple 'appSetting' style setting which the ServiceConfiguration.cscfg file seems to accept ...
stackexchange/codereview
I'm having a hard time trying to figure out how to use annotations in the Django ORM to achieve grouping through a model. from django.db import models class Customer(models.Model): name = models.CharField(max_length=255) class Store(models.Model): name = models.CharField(max_length=255) class Order(models.Mo...
stackexchange/codereview
Mac OS X 10.5 compatibility required. I have a (large, complex) NSDictionary I'm writing out as a plist file. For file size reasons, I want to zip the file, and later read it in again from the zip archive. (I can also save it as as a binary plist, to save some space. But not enough for my purposes.) The zipping/unzipp...
stackexchange/codereview
I am trying to create a preference pane which will reside within system preferences. All the bindings are done as usual (for a normal windowed application), but when the setter for the binding property is called (data is updated), the table data does not reset. Are preference panes capable of updating table data via ...
stackexchange/codereview