instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'd like to be able to automatically save the DDL scripts from my development schema on a regular basis.
stackexchange/codereview
I'm currently researching ways to speed up and scale up a long running matching job which is currently running as a stored procedure in MSSQL 2005. The matching is involves multiple fields with many inexact cases. While I'd like to ultimately scale it up to large scale data sets outside of the database I need to consid...
stackexchange/codereview
Here's my scenario: I am using Silverlight, RIA and POCO objects (no Entity Framework; we're working against Oracle and SP's). I have a Parent object that contains a collection of Child objects. I have setup the Association and Composition attributes on the Parent correctly. When I want to save changes, the entire ob...
stackexchange/codereview
I know that mysqldump does not include stored procedures/functions by default and that you have to use the -routines to include them. I am also aware that to dump just the functions and stored procedures you would use the following. mysqldump --skip-triggers --routines --no-create-info --no-data --no-create-db --skip-o...
stackexchange/codereview
I'm stuck when trying to create the simplest partial class in order to access a table property. I have a LINQ auto generated DataContext with: Namespace VuBridgeDB <System.Data.Linq.Mapping.DatabaseAttribute(Name:="C:\Users\Didier\Documents\Visual Studio 2010\Projects\VuBridge1\VuBridge1\Data\VuBridgeDB.sdf")> _ ...
stackexchange/codereview
I have a custom map using the Google Maps API to navigate it, and I was looking into getting an address for hot-linking to the current location on the map (like the Maps link such as the following; http://maps.google.com/?ie=UTF8&ll=37.0625,-95.677068&spn=64.880423,135.263672&t=h&z=4 ) I'm not quite sure what the featu...
stackexchange/codereview
when I mouseover the div, it will show the image title, then the date will move 10px. In my code, it just show the title, but not move the date part. How to make two jquery animate action all run well? Thax. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitio...
stackexchange/codereview
I'm writing a small program in Python on Linux that will intercept packets flying over the wire on specific port from host A to host B. Host C will act as a man in the middle so all traffic will be going through host C (arp poisoning method). I've written successfuly the part with interception so I can see all the data...
stackexchange/codereview
My solution is to find all the child table for the id of the parent , if not that destroy. Is there another way better that this? use has_many's options?
stackexchange/codereview
I want a notification when a specific RegistryKey in HKEY_CURRENT_USER is changed. So far I tried this via WMI with no success: var query = new WqlEventQuery(string.Format( "SELECT * FROM RegistryKeyChangeEvent WHERE Hive='{0}' AND KeyPath='{1}' AND ValueName='{2}'", hive, keyPath.Replace("\\","\\\\"), ...
stackexchange/codereview
I setup a EDM for a SQL database in visual studio. I set the connection string in a configuration file but my question is how I can test if the database was properly connected. If I put a broken connection string for the database in the config file, the program still boots and makes its way to the queries, then it thro...
stackexchange/codereview
in my own Magento Extension I'm using a grid block, to display the collection of data in my db table. Everything works fine so far and the standard pagination from magento works, too. I now want to add some random data, which isn't in the db table, to the collection to show it in my grid. If I try as follow the paginat...
stackexchange/codereview
can any one tell me which classes supports to read & display svg files in android.
stackexchange/codereview
When the user selects a file to be uploaded, is there a way I can get the exact size of this file before the upload even begins? I'm guessing this needs to be done on the client side with jQuery or JavaScript. Any ideas how?
stackexchange/codereview
So I know how to use .wrap, .wrapInner and .wrapAll but I am wondering how to use the quick creation syntax introduced in jQuery 1.4 and the wrap function together. Basically I want to be able to use var targetUl = $(this), // would be populated by script maxWidth = 1400; // would be populated by script $('<di...
stackexchange/codereview
If I have a javascript object that looks like below var columns = { left: true, center : false, right : false } and I have a function that is passed both the object, and a property name like so //should return false var side = read_prop(columns, 'right'); what would the body of read_prop(object, property) look ...
stackexchange/codereview
Does anyone have a sample of how to use WITH and UPDATE in a query in PLSQL? I binged and googled without success. Here is what I am trying to do WITH OldRecords AS ( SELECT 'New Records' as RecordLabel, rowid, OrDev.* FROM CDR.MSRS_OR_ORDEV OrDev WHERE 1=1 AND OrDev.ASOFENDDATETIME IS NULL AND OrDev.REP...
stackexchange/codereview
The separation between application context and web context (and the class loader issues that ensue) are a constant source of problems for me. I'm using Spring in my first project, migrating from a badly written JSP-based webapp to Spring-based. I just want to know if this configuration makes sense: I have the controll...
stackexchange/codereview
I have 52 items which I randomly insert into a database with the help of the php rand function. Each item has an ID from 1 - 52, and also has a value. Every 13 items has a value of 1 - 13. E.g. Items 1 - 13 have values of 1 - 13, while items 14 - 26 also have values 1 - 13, and so on until the last item, 52. How would ...
stackexchange/codereview
I have no idea how this option got turned off but... Showing Client Objects & Events: Missing Client Objects & Events: How do I turn this option back on so that it's showing again?
stackexchange/codereview
Both seem to allow coding applications entirely in JavaScript. Both allow server side JS as well as client-side JS. So, from a technology and programming standpoint, what is the difference between the both?
stackexchange/codereview
I'm using this template: http://visualstudiogallery.msdn.microsoft.com/en-us/81153747-70d7-477b-b85a-0374e7edabef And get the following error: Validation of viewstate MAC failed.. Web farm.. There are a lot of people with this problem and (the best?) suggestion I found was to update web.config with a machine key (as th...
stackexchange/codereview
Our company makes many embedded devices that communicate with PC's via applications that I write in C#.net. I have been considering different ways of improving the data transfer so that the PC application can be more easily synchronized with the devices current state (which in some cases is continually changing). I hav...
stackexchange/codereview
As far as I understand, C++ default copy constructor only behaves as expected when the class is a POD class. I would like to know if there's a solution for preventing the programmer to write code which (implicitely or not) uses the default copy constructor if the object is not POD. I know you can always make your copy...
stackexchange/codereview
I am trying to retrieve Phone Number hence using String addrWhere = Contacts.Phones.NUMBER + " = " + userNumber; String id = ""; Cursor c = mContext.getContentResolver().query( Contacts.Phones.CONTENT_URI, new String[] { Contacts.Phones._ID }, addrWhere, null, null); try { if (c.getCount() > 0) { c...
stackexchange/codereview
I need an event for jQuery equivalent to onbeforeprint and onafterprint on jQuery that is cross browser compatible. I can't use @media print on CSS as I need to remove some classes from the document and add those classes back when finish printing.
stackexchange/codereview
I am working on an alarm application, I need to find the best method of playing a sound that will: Play a looped sound, or pre-looped sound when the app is in the background Can be paused/stopped. When the user has clicked to dismiss the alarm in an alert I need to stop the sound Override the mute switch (preferably) ...
stackexchange/codereview
What is the best way to store enumerations? For example, I have an entity Person that has a property Sex. The first option that I can think of is a table that stores the enumeration values and names (1 is for Male and 2 is for Female for example) and then in the Person table to store the int values. The second option ...
stackexchange/codereview
everyone! We have a problem with our app. There are UITabBarController with 4 tabs, that loading at start. When app launch at iPhone 4 more three days, first tab don't display UITableViewController. But other tabs work good. After unload from cashe all tabs are displaying. @implementation MyProfileController - (id)...
stackexchange/codereview
I have a custom Line Shape that use an adorner to display an array and some text in the middle of that line. The problem is that the adorned behaves independently of the adorned element, and does not "transfer" the event to it. In the following code I am forced to manually relink the adorner elements to adorned elemen...
stackexchange/codereview
In most common sense of course "it is a method to influence the behavior of a program in a way its authors did not intend" (wiki). Then all reflection and typebuilder using techniques also can be named with "code injection" but nobody do this. When I was always thinking that "code injection" is something about "runtime...
stackexchange/codereview
I am having troubles with creating up this sql query to find records having more than (n) entries [n=1] in example I have table |--id-|--user_id--| | 1 | 1 | | 2 | 1 | | 3 | 1 | | 4 | 2 | | 5 | 2 | | 6 | 3 | want to retrieve duplicates in my table |--id-|--us...
stackexchange/codereview
We have a wiki page in MediaWiki with instructions like this: complete instruction 1 also in case A do this complete instruction 2 also in case B do this complete instruction 3 etc Is there a way to show just the lines / paragraphs in which we are interested? E.g. someone could show all rows or hide certain rows, pre...
stackexchange/codereview
I need help in linq from refoffence in Ref_OffenceCodes join offenceCodeMatrix in INF_OffenceCodeMatrixes on refoffence.OffenceCodeId equals offenceCodeMatrix.OffenceCodeId where refoffence.Code=="1909" select new {offenceCodeMatrix.StandardPenaltyUnits * offenceCodeMatrix.StandardDollarAmount } I need muliplication ...
stackexchange/codereview
How do I convert a time string like 20101115083000 +0200 to 2010-11-15 08:30:00 +0200 using XSLT?
stackexchange/codereview
I have developed a Computer Based Examination application. I have designed the application so that when initialized by admin. client computers could take exam with their logins. I am using SQL Server Compact Edition. I tested it with a small network (shared computers through a hub) It works well. I am not so good ...
stackexchange/codereview
Could somebody explain me the following compiler issue Error: Type of conditional expression cannot be determined because there is no implicit conversion between 'string' and 'int' // WORKS string text = string.Format( "the id is {0}", _Obj.Id.ToString()); // WORKS, without implicit conversion <<< string t...
stackexchange/codereview
As topic says, I have a string like string CreatedDate = "12/09/2010" and I want to pass it to a web method that only accepts it as DateTime customer.dateCreated = Convert.ToDateTime(CreatedDate); naturally it add hh:mm:ss after the date which the web service doesn't accept so how can I keep the date in the short for...
stackexchange/codereview
Is there any way to add RSS feeds to Wordpress itself, and have Wordpress merge your posts with the ones from the RSS feed and display them as if they were posts on the blog itself? More importantly, the external feeds must be present in the final RSS feed provided by Wordpress. Ideally, I would like to setup a categor...
stackexchange/codereview
What's the problem here? generator: class: sfDoctrineGenerator param: model_class: Builds theme: admin non_verbose_templates: true with_show: false singular: ~ plural: ~ route_prefix: builds with_doctrine_rout...
stackexchange/codereview
I am re-posting this question since I did not get any useful answers the first time. I have a simple session counter on my site utilizing session_save_path(). The code does not work in a shared hosting environment because it returns a count of all sessions on the server for all sites - or so I presume. Could someone t...
stackexchange/codereview
I have almost hundred properties like this NotEmpty.order.languageFrom=Field Language can't be empty NotEmpty.order.languageTo=Field Language can't be empty NotEmpty.order.description=Description field can't be empty NotEmpty.order.formType=FormType field can't be empty NotEmpty.cart.formType=FormTy...
stackexchange/codereview
I have the page written on classic ASP and href element on it. Href leads to the same page but with another query parameters. After clicking the link all the session variables become clear. With the Response.Write(session.sessionID) command I compare session ID before and after clicking the link. And I've found out tha...
stackexchange/codereview
I either want the email address or the user account of the user who created or modified a list item. I was thinking calculated field, but you can't do a calculated field on created by or modified by fields! Is this possible?
stackexchange/codereview
I declared one method in sample.h and implemented in sample.m . Now i want to perform one action through connecting to a button and that method. but the files owner doesn't show any of my methods. Whats the problem.. Can anyone help me. i am new to this. Thanks in Advance.
stackexchange/codereview
I am using Adobe Air to get data from SalesForce, and present it in a datagrid. I am using a query to get the data, and then put it into an arraycollection that is bound to the datagrid, this works correctly and the data is displayed. The problem is that I want to convert the Account Id in the Event to show the account...
stackexchange/codereview
What do you prefer when you want to "RESTify" your Django project in Django? I came to the conclusion that there are really three options to do that: django-piston http://bitbucket.org/jespern/django-piston/wiki/Home django-rest-interface http://code.google.com/p/django-rest-interface/ django-restful-resources http://...
stackexchange/codereview
I have creating a minify/obfusctor/gzip script in PHP of all my JS and CSS files but I can't expire but I have put this in my .htaccess: ExpiresActive On ExpiresDefault A0 ExpiresByType text/css "access plus 2 hours" ExpiresByType text/javascript "access plus 2 hours" ExpiresByType application/x-javascript "access plus...
stackexchange/codereview
when i use AudioQueue to Record voice to file, this is ok. i try at MyInputBufferHandler function use AudioQueueBufferRef->mAudioData can get raw data, but in this MyInputBufferHandler function can't call other object , like oStream . i want get AudioQueue Buffer's raw data , and send this raw data to internet ,how t...
stackexchange/codereview
I haven't found any server side panorama making from stitching images or a video. I would like an open source alternative, but found any. I just don't want to go trough the hassle of developing all this on my own since but paid software usually are closed source and not very flexible. I've seen some nifty panorama from...
stackexchange/codereview
I'm going to have a link to a website in my app. The user will click on a button that says Website and an Alert will appear with 2 buttons. One of the buttons is just going to be a cancel button and the other button is going to open the website. Could you help me with this? Thanks!
stackexchange/codereview
I'm developing an iPhone app that is a tabViewController with one of the tabs including a tableView. Objects in the table can be touched to go to a splash screen with information for that specific object. Here's how I set up the array tableView: -(UITableViewCell *) tableView:(UITableView *)tableView cellForRowAtInd...
stackexchange/codereview
I cannot find the jar for json while trying build the sample application "LatencyDashboard" provided with speedtracer
stackexchange/codereview
So I have a view controller called MainViewController with a button which when I press this code is called: NewViewController *newViewController; newViewController = [[NewViewController alloc] initWithNibName:@"NewView" bundle:nil]; [self.navigationController.view addSubview:newViewController.view]; [newViewController ...
stackexchange/codereview
I have two models, address and country. Address contains basic address info (line1,line2,city,etc.) and has a one to one relationship with a country. The countries table is read-only, I don't want it change. I have the forms creating a country_id column in the "addresses" table, but it's looking for address_id in the ...
stackexchange/codereview
I need to generate a 'hash' for any unique method invocation in my project. For example, I have method string GetSomeString(int someInt). So, I need different hashes in those cases: string GetSomeString(1) -- key 1 string GetSomeString(2) -- key 2 string GetSomeString(3) -- key 3 How to generate this kind of hashes? U...
stackexchange/codereview
Hey therer, I am wondering whether I could fix the focal length of iPhone camera to certain distance, such as 120mm. Is it possible to achieve this programmatically? Thank you for your time and help :D
stackexchange/codereview
Is there a way in css3 to target a div on hover, so if I have an sturucture like below could I target the divs as direct siblings of the h1? <h1>item1</h1> <div>this is the description for 1</div> <h1>item2</h1> <div>this is the description for 2</div> <h1>item3</h1> <div>this is the description for 3</div>
stackexchange/codereview
I am developing a webapp that uses client certificates to authenticate against Tomcat during web service calls with Jersey. This is working great so far, but I need a web frontend on the same context that will let me administer this application. Since the SSL configuration is "per context", the only option to have the ...
stackexchange/codereview
I need this php code changed to preg_match please if(eregi("someurl",$data))
stackexchange/codereview
I've been trying various methods to trigger some code when returning to the first level of a UINavigationController, but none of the below work... // HomeViewController.m -(void)navigationController:(UINavigationController *)navigationController didShowViewController:(UIViewController *)viewController animated:(BOOL)an...
stackexchange/codereview
I have developed a Computer Based Examination application. I have designed the application so that when initialized by admin. client computers could take exam with their logins. I am using SQL Server Compact Edition. I tested it with a small network (shared computers through a hub) It works well. I am not so good at ne...
stackexchange/codereview
hi i am trying to sort a field with multiple orders for example here is my table 1st rule is to sort by Status. in following order: Active, Inactive, Merged, Promo A, Promo B, Promo C, Promo D, Defunct Once they are sorted like this within each of these categories the 2nd rule in following Order: Traditional, Native,...
stackexchange/codereview
I have a screen that contains there different layout. BigLayout [it contains all three layout] LayoutA - title LayoutB - body LayoutC - button the title layout contain TextView, Button and CheckedTextView and of it in the BighLayout, if i want that the CheckedTextView will be display over the body layout, how can...
stackexchange/codereview
i'm doing an application for iPhone/iPad which uses the in-app purchase functionality. On the server side i load a php script for the receipt verification. Here is the content of the script: <?php $receipt = json_encode(array("receipt-data" => $_GET["receipt"])); // NOTE: use "buy" vs "sandbox" in production. $url = "h...
stackexchange/codereview
On Linux system, how does one run a process as a different, unprivileged user (like how lighttpd is run by www-data in the default setup)? I've been using su $user; $command & over ssh, but those processes get killed when I logout. If it makes any difference, I'm using a default Ubuntu setup on EC2.
stackexchange/codereview
I just noticed that using the .NET HttpWebRequest, I wasn't getting gzip'd contents back from the server (running nginx 0.8.52). Testing with curl, I verified that gzip was set up properly server-side, then dug into the issue with the VS debugger. The culprit turns out to be how the Accept-Encoding header field is gene...
stackexchange/codereview
Can you explain what the title error usually means? I get it sometimes and I always eventually manage to fix it by accident, but I still don't have a clue what it means. Here's an example from my current error: Lca<RankVec, VertexVec> lca(graphList[0], dset, ss&); error: expected primary-expression before ')' token
stackexchange/codereview
Maybe I'm going about this the wrong way but I'm trying to create a <ul> filled with elements like this: <li> <div> <img src="img/productname.png" alt="desc" /> <h2>Product name</h2> <p>This text is variable in lenght so the height of each list item may differ.</p> </div> </li> Since th...
stackexchange/codereview
I'm trying to change some SQL into Linq-to-Sql, however I have the following line in SQL that I'm not sure how to convert: SUM(Quantity * IsNull(ExchangeRate,1) * Factor ) So I've so far written the grouping Linq as follows: var items = from item in _dataContext.GetTable<Trade>() group it...
stackexchange/codereview
I'm having multiple iframes in one page each one contains a form , and i put the submit button outside the iframes , and when user press on submit all forms should be submited and then the page should be closed , any one can help me in this? this function called onclick on submit button function Save_Close() { ...
stackexchange/codereview
Interesting if there any Implementation of MSNP Live Messanges Protocol for Java or ActionScript (Flash)?
stackexchange/codereview
Given something like: message.split(/\n.* at.* XXXXXXXX wrote:.*/m).first This works if there is a match, but when there isn't, it just returns all of message.
stackexchange/codereview
<query1><abc>76</abc><abc>20</abc><abc>30</abc></query1> I am getting this output after executing the xquery.What I need is That I want to count the numbers -76+20+30. I want the sum as the output. But it is giving me the above line as ouput. I just used the "for" expression and then return the result.How do I get th...
stackexchange/codereview
Good Day to All, Been writing code for years, but still a bit green when it comes to PyQt, so please forgive my syntactically lacking question(s) ;-) I'm hacking a derivative of the (famous?) packaged example that comes with PyQt4 (and Qt), namely "basicsortfiltermodel.pyw" from "../examples/itemviews" in PyQt4... I've...
stackexchange/codereview
I'm chasing down an assembly loading/binding error that has popped up recently. During my investigation I've found a confusing contradiction (assuming I'm parsing the fusion log correctly). The exception that is thrown by my application at startup states: {"Could not load file or assembly 'Microsoft.Practices.Composi...
stackexchange/codereview
How can I create multiple threads and wait for all of them to complete?
stackexchange/codereview
I'm attempting to parse an XML string with libxmljs (https://github.com/polotek/libxmljs). I'm having some issues though. I need to apply logic to what I'm parsing and return based upon what's defined and what isn't. Because of this I don't see a SAX-style parser being a valid option. I'm willing to look at other alte...
stackexchange/codereview
I'm not sure how to write this JS, so ask for help here! HTML <div class="grid_18" id="reference_container"> <div class="grid_16"> <fieldset> <legend>Website</legend> <span class="grid_2">Person</span> <input name="person" class = "grid_6" type="text" /> <sp...
stackexchange/codereview
I am trying to have a function that among other things declares global variables based on a variable that i give it. the part that fails is making the variables global function setGlobalVariable($name) { global $name, $arrayname_{$name}; } any idea? thanks :)
stackexchange/codereview
I am using EclipseLink libraries in eclipse (at dev time) and deploy on TopLink, I need to show the generated sql statement. I am using the following persistence.xml: <?xml version="1.0" encoding="UTF-8"?> <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XM...
stackexchange/codereview
If I have an AFTER UPDATE trigger, will SELECT * FROM inserted and SELECT * FROM deleted give me back their records in the same order? I.e. lets say I was able to index into their result sets, will del[5] and ins[5] give me back the matching entries, even if one value of the compound primary key has changed (which w...
stackexchange/codereview
I need to implement a particular network graph in javascript. I've looked at InfoVis Toolkit and Protovis, but I'd have to implement a custom layout for them and a lot of custom code. I'm not sure they add much value. This widget needs to be super efficient as it will go on many highly visited webpages, I don't want...
stackexchange/codereview
Is it possible to generate rails models from a rails schema (or migration)?
stackexchange/codereview
I have a view which is essentially made up of three forms, all inside their own div. On page load I want to have the first form shown and the other two hidden and if the validation is successful then I want the first form to hide and have the second one made visible and so on. I currently have them all working in separ...
stackexchange/codereview
I want to create an installer using Wix that copies a certain file to the folder "C:\Users\Your User\Documents\Visual Studio 2010\Addins\" When I write the following code: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="PersonalFolder"> <Directory Id="VS2010" Name="Visual Studio 2010"> <Di...
stackexchange/codereview
I'm having trouble with duplicates when changing views on fullcalendar after an update. I call the following function after and add/edit/erase or change of selected users. var u=''; $('#tree1 li.user.jstree-checked').each(function() { u=u+'&Showuser='+$(this).attr('id'); }); var jsonFeed = "cal.cgi?events=y"+u; ...
stackexchange/codereview
I have a large mysql table (about 5M rows) on which i frequently insert data. This table is the same i have to read data from and sometimes the entire database gets slow because of selecting data while there are many pending inserts. I put indexes on each field i use in the WHERE statment, so i really don't know why ...
stackexchange/codereview
I'm creating a sort of database, using a list that is read in from the user. When the user enters finish I want the while loop to stop. However, for some reason I need to enter finish TWICE for it to break the loop. Also, the list is empty after being returned. def readNames(): nameList = [] count = 0 while count != -1...
stackexchange/codereview
NEW CODE DatePickerViewController.h #import <UIKit/UIKit.h> @protocol DatePickerViewControllerDelegate; @interface DatePickerViewController : UIViewController { IBOutlet UIDatePicker *datePicker; id<DatePickerViewControllerDelegate> delegate; } @property (retain) IBOutlet UIDatePicker *datePicker; @property ...
stackexchange/codereview
I get confused about this - please can any one tell me how it works ? array db 10,20,30,40 mov eax,DWORD PTR array ;eax should contains 40302010 (in Little endian.) but this is not working in my computer/system. Please can anyone help me - why is it like that ? In my program it contains some garbage value. Please ...
stackexchange/codereview
I have a quiz that have many questions and 5 possibilities of answers. Lets take one question,it has follow answers: 148 - Good 5 - N/A 268 - Great 5 - Regular 11 - Bad These are numbers collected directly from database.Now i need to show it as percentage.i.E: Great - 45% Good - 40 [..] and so on Any ideas?
stackexchange/codereview
I followed the railscast which uses CollectiveIdea's fork. I'm not able to get it to work. I created a new file in my /lib folder and included this class Device def deliver #my long running method end handle_asynchronously :deliver end device = Device.new device.deliver I do a script/delayed_job and that f...
stackexchange/codereview
In JPQL I want to construct the equivalent query to this: select *, count(*) as finger_count from page_delta_summary where delta_history_id = ? and change_type = ? group by fingerprint; where fingerprint is a varchar field in table page_delta_summary. What I have is this: select d, count(d) as finger_count from PageD...
stackexchange/codereview
template <class T> class ListRemake { ... friend ostream& operator << (ostream& out, const ListRemake& obj); }; template <class T> ostream& operator << (ostream& out, const ListRemake& obj) { for (int i = 0; i < obj.size; i++) out << obj[i] << '\n'; return out; } Gives the error C2955: 'ListRe...
stackexchange/codereview
I'm trying to do some image processing on iPhone. I'm using http://developer.apple.com/library/ios/#qa/qa2010/qa1702.html to capture the camera frames. My problem is that when I'm trying to access the captured buffer, the camera FPS drops from 30 to about 20. Does anybody knows how I can fix it? I use the lowest captur...
stackexchange/codereview
I am trying to do 2 things: Get the output XML formated with TABULATION instead of spaces. Remove the ending space it generates for video element. " /> to "/> I have tried to use xmlWriter.Formatting = Formatting.Indented; as well as IndentChar but they did not worked for me dont know why. This is the code I hav...
stackexchange/codereview
I have a list of lists. Using itertools, I am basically doing for result in product([A,B],[C,D],[E,F,G]): # test each result and the result is the desired product, with each result containing one element from each of the lists. My code tests each of the results element-by-element, looking for the first (and best...
stackexchange/codereview
I have a performance issue when using hibernate and GWT. this happens if I tried to insert or load an object from database where I have to bind every element of the UI to the hibernate object which takes a long time, for example: School sc=new School(); sc.setNo(Long.parseLong(textBox.getText)); sc.setName(textBox1.g...
stackexchange/codereview
I'm working on a DSP related iOS app. Part of the work is to copy audio data from outBuffer ->mAudioData to an user-specified array for data processing. The read method is like this: OSStatus result = AudioFileReadPackets(myInfo->mAudioFile, // The audio file from which packets of audio data are to be read. ...
stackexchange/codereview