instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am making a video sharing site. What is the best way to store lots of big video files, so that it will be fast and performance efficient while accessing them? A colleague said that storing as files on hard-disk folder is not going to be efficient as it will be very slow on many read/write operations. Someone else sug...
stackexchange/codereview
I have a large video file that I want to put on my main page. I don't want it to bog down the loading time, so I was thinking I could just set it to display:none and then change the display after the page loads. Would this work?
stackexchange/codereview
I am currently designing a system where we need to know if the user is still online/logged in. The system is a .Net web based, so we intend to do this using AJAX/JSONP code, which pings the server every 2 minutes. There is a large number of users, so a ping every 2 minutes causes ca. 600 pings per second. We therefore ...
stackexchange/codereview
I use the latest Springsource ToolSuite (STS) version 2.5.0 (based on Eclipse) and on startup I get this error message: An internal error occurred during: "Processing Dirty Regions". org/springframework/aop/config/AbstractInterceptorDrivenBeanDefinitionDecorator The error occurs by opening my app-config.xml An interna...
stackexchange/codereview
rel(X,Y) :- dep(X,Y). rel(X,Y) :- aux(X,Y). rel(X,Y) :- auxpass(X,Y). rel(X,Y) :- cop(X,Y). rel(X,Y) :- conj(X,Y). rel(X,Y) :- cc(X,Y). rel(X,Y) :- arg(X,Y). rel(X,Y) :- subj(X,Y). rel(X,Y) :- nsubj(X,Y). rel(X,Y) :- nsubjpass(X,Y). rel(X,Y) :- csubj(X,Y). rel(X,Y) :- comp(X,Y). rel(X,Y) :- obj(X,Y). rel(X,Y) :- dobj(X...
stackexchange/codereview
I'm looking for the name of the pattern or technique whereby one can dynamically choose to add, remove, or alter search criteria. I'm thinking it is mostly (if not fully) rule-driven, but I'm not sure if that's a requirement or just a useful application for the technique. I'll try to explain briefly how it works. The u...
stackexchange/codereview
I'm new to the nodejs world, a noob question for you: We use haml, ejs, ... to generate HTML files. Can we load our own HTML file like normal? Which way is more efficienct? Note: I think I'm asking a bad question here but it's the way to understand things clearly :)
stackexchange/codereview
I am using EJB3.0 and jBoss 5.0.1 My project is successfully deployed but when I run Jboss server I got the following error DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:ear=cccrmapp.ear,jar=cccrmapp.jar,name=CustomerFacade,service=EJB3" is missing the following dependencies: Dependency "" (should be ...
stackexchange/codereview
How can I get all (physical) wwwroot directories (home directories) of an IIS with C# from the IIS metabase?
stackexchange/codereview
Ran into a bit of trouble when trying to insert records into my DB from my forum What it does when you create a thread is make an entry into 2 tables. First the forum_threads table with information on the thread title, description, poster, post time, etc. It will use thread_id with AUTO_INTEGER to generate the threads ...
stackexchange/codereview
I am trying to populate a MS SQL 2005 database using python on windows. I am inserting millions of rows, and by 7 million I am using almost a gigabyte of memory. The test below eats up 4 megs of RAM for each 100k rows inserted: import pyodbc connection=pyodbc.connect('DRIVER={SQL Server};SERVER=x;DATABASE=x;UID=x;PWD...
stackexchange/codereview
I'm currently using AppKiDo, but maybe I'm missing the most common tool to browse the class library.
stackexchange/codereview
Suppose I write a web application that stores a lot of information in its database that should only be accessible to users with privileges. A post, for example, may only be readable by its author. For the sake of the example, suppose that each word in the post is assigned an id and must also be checked to see if the ...
stackexchange/codereview
I have created an ASP.NET MVC View. On my MVC WebApp, it works great. I would like to be able to (from a console app) render the View out as an HTML Email. I'm wondering what the best way to do this is going to be, the part I'm struggling with is Rendering the View. Is there any way to do this from a console applicati...
stackexchange/codereview
I'm trying to display the items in an array using the following: NSString *alertString = [NSString stringWithFormat:@"%@", path]; Which works fine, but when I display the string it gets displayed in the following way: ( A, B, C, D ) Is there a way to get it to display in a different way, such as all on one line and wi...
stackexchange/codereview
I have a class which is mapped to a table using the hibernate notations of auto increment. This class works fine when I set values and update this to the database and I get a correct updated value in the table. But the issue is when I create a new object of this class and try to get the id, it returns me a 0 instead of...
stackexchange/codereview
I have a thread class which makes a web request. After 20-30 urls request, its throwing exception: System.Web.HttpException: Request timed out. My code is below where it is throwing exception: httpReq.AllowAutoRedirect = false; httpReq.KeepAlive = false; httpReq.Headers.Add("Location", ""); http...
stackexchange/codereview
In the main thread I open a new thread that gets the number of new messages of user (takes about 5 secs) and this second thread should save the number in some place. In the main thread I should check the "some place" and if the value exists I display it on the page. Where can I save the value from the second thread to ...
stackexchange/codereview
I want to implement the google map in my page. In my page there is one textbox and one button. User need to enter the location for which he want to have the map. Then on clicking of the button the map should appear in a div. Could anyone provide me the steos to do so? Thanks in advance.
stackexchange/codereview
hey, I have strange problem, i've built a prject using the Linq, and most of it works fine, However sometimes all the Linq's Repository commands stop working, and i'm geeting errors, the issue solve when i overwrtie the existig dll files of the Linq project? maybe one bad command hurt the rest to the Datacontext? the ...
stackexchange/codereview
i was learning Linux system programming and i am going through the APUE 2ed book by W. Richard Stevens and Stephen A. Rago. The code given on http://www.apuebook.com/ does not work. Undefined definitions, un-implemented functions (given in appendix) Can anyone point me to getting-compiled code for APUE 2ed, preferab...
stackexchange/codereview
I am using jQuery 1.4.2 and qTip 2.0 pre. I have a qTip displaying with an onClick of an object and closing with a mouseleave. I use the JS below to destroy it after the mouseleave. When I click on the object after the qTip never displays again. If I remove the destroy function then it works as expected. I want to dest...
stackexchange/codereview
My keystore is corrupt, therefore the Android Market is requiring me to rename the app and resubmit it. However, whenever I go to edit the package names in Manifest and throughout the files, it gives me tons of errors. What's the proper way to change the application name?
stackexchange/codereview
Possible Duplicate: how to find the location of the executable in C I would like an executable to be able to discover its own path; I have a feeling that the answer is "you can't do this", but I would like this to be confirmed! I don't think I can use getcwd(), because I might not be executing it from the same direc...
stackexchange/codereview
I'm extending the data model of an Java application to include some kind of a setting facility. Settings in this application would basically be Strings or Numbers, no entities or other model objects. My Question is what's the best way to map this requirement to JPA (Hibernate)? I first thought about implementing a Sett...
stackexchange/codereview
I want to position a JDialog box below a JTextField of a JFrame and when the dialog box opens my JFrame should not able to move -- that is, it should not be draggable. Any suggestions?
stackexchange/codereview
Which 3d surface chart library out there do you recommand? It is ok if it is flash or silverlight, as long as it supports dynamic data update thru json.. Thank you! Gil.
stackexchange/codereview
Im trying to create an NSArray of floats. However, once the value is added to the arrays it is alway 0.0000000. What am i doing wrong? NSLog(@"percent: %f" , percent); prints the correct value and NSLog(@"timeArray: %f", [timeArray objectAtIndex:i]); is always 0.00000. NSMutableArray *timeArray = [[NSMutableAr...
stackexchange/codereview
There is a way to sort in the tag in 'desc'? And is it possible to sort by two columns? I know that there is the possibility to pass the element already sorted in the controller but would be useful to have the chance also in the gsp tag.
stackexchange/codereview
When i embed a flash video in HTML it works in IE and in Firefox but not in chrome. I've looked it up and I've found that chrome adds two attributes to the embed tag, width and height. i have already set the width and height attribute in the embed tag in pixels but from some reason chrome changes it to percentage. when...
stackexchange/codereview
I am going to write a big website, it has hundreds of HTML pages. There are some parts of the file using the same HTML code, such as the banner, the bottom disclaimer, etc. I want to update the common parts of the HTML in a batch when that parts are modified, I am seeking a way to efficiently do that. Currently my solu...
stackexchange/codereview
I've searched for the implementation of the State pattern in Java with Hibernate and found several references to a solution using Enums in order to provide a flexible way to add new States to the situation. I liked the solution here, where reflection is used to create the state object from the value of the table field ...
stackexchange/codereview
I have two tables, users and images which need to be joined. there is exactly one user row in the users table to many images in the images table. In my users bean I have a private Set variable with a @OneToMany relationship it looks like this //Users.java @Entity @Table(name = "users") @NamedQueries ({ @NamedQuery(name...
stackexchange/codereview
I have a synchronous transformation script component, with some input columns, and an extra defined Output column "ID". ID outputs an integer (DT_I4) type. Under certain circumstances, I would like "ID" to output a null value from my script. Assigning it a null value in other SSIS components works, I can use NULL(DT_I...
stackexchange/codereview
if this is a silly question, am sorry about that. I was wondering if its possible to design android icons using a 3d modelling package like blender? i know i have to stick to the guidelines documented already, but was just wondering if anyone had come across or done something similar? Its that little part of the icons(...
stackexchange/codereview
I have a dev server, and a live server. I make a change to the code behind on the dev server, and upload the files to the live server, but nothing changes. I know I'm being dense, but what do I need to do? I've tried restarting the app pool, restarting the website etc but no luck! If I make changes to the aspx file, ...
stackexchange/codereview
I have the following markup: <s:Group width="100%" height="100%"> <s:BorderContainer borderWeight="3" borderColor="black" cornerRadius="5" width="100%" height="100%"> <s:Path> <s:stroke> <s:SolidColorStroke color="black" /> </s:stroke> <s:data>M 14.153 1...
stackexchange/codereview
I have a rake file, that reads content via HTTP and I want to use Paperclip to store the loaded content on Amazon S3. It works fine when I provide a local file, but I would like to set the content as a string and set the content type manually. The following does not work. No error is issued, the database entry is updat...
stackexchange/codereview
I am programming in perl and have an existing connection (progammatically) with my postgres database. After the connection is established, I do not control the connection code, I want to set autocommit to off. How does one do that? When I do it interactively, I do not see any changes. I \set autocommit off and then do...
stackexchange/codereview
I'm trying to Display/Hide some select box options depending on the select values from another select boxes ("accType" will decide what to show in "otherBank" and selected "otherBank" will decide what to show in "otherBankBranch") HTML markup as follows <label>Account Type</label> <select name="accType"> <option val...
stackexchange/codereview
I have a link as follows: <div id="div_1"> <a href="#" id="link_1"><img height="64" src="/images/image.png" width="64" />Link1</a> </div> I set the click event using jQuery as follows: var old_html; $('#link_1').click(function() { old_html = $('#div_1').html(); $('#div_1').html('<input type="button" v...
stackexchange/codereview
I've reworded the question to make it more generic; the original wording is below. How would I get a list of the new/changed methods, either from two java source snapshots, or from a diff of them? Update 1 I found this: http://sourceforge.net/projects/javadiff/. Unfortunatelly it only tracks changes in the interface - ...
stackexchange/codereview
In django/django/contrib/auth/forms.py how to override the default method and include the same in the users module ? So my intention is that i want to change the username field length to 64 characters but this would not be correct to do this in django directories,because whenever new version is downloaded this file has...
stackexchange/codereview
My UI layer calls my business layer which populates a DTO. I need to display properties from the DTO on my ASPX page. Should I create public variables on the code behind page for each of the DTO properties and reference like <%=PublicPropertyName%> OR is it ok to set the DTO instance to public and reference the prope...
stackexchange/codereview
I have some PL/SQL code that I think might have a memory leak. Everytime I run it it seems to run slower and slower than the time before, even though now I am decreasing the input size. The code that I'm suspicious of is populating an array from a cursor using bulk-collect, something like this open c_myCursor(in_ke...
stackexchange/codereview
I basically wanted to know what exactly a virtual processor is. At IBM's site they define it as: "A virtual processor is a representation of a physical processor core to the operating system of a logical partition that uses shared processors. " I understand that if there are x processors, each of which can simultaneous...
stackexchange/codereview
I'm trying to get a list of systems from our inventory software (in this case SCCM) from one view (v_gs_softwarefile) but with multiple criteria. In this particular case, I need all systems (SCCM calls the unique identifier "ResourceID", so i just stuck to that one) which do not have iexplore version > 8 and on the oth...
stackexchange/codereview
Hi I got the following code: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"...
stackexchange/codereview
Need to get rounded corners on table elements, in this case td-tags in IE8 with JavaScript/jQuery. Not images. Have tried different solutions. CSS3 Pie only seem to work on div-tags. Also tested Curvy Corners and jQuery.corner. Is this possible?
stackexchange/codereview
In my Silverlight application I have Canvas control in ScrollViewer and lot of controls in Canvas. If canvas is too long I can use scrollviewer to see all content. But I also wont to show for client in which part of canvas is he now like in photoshop. I wont to do that be saveing canvas as image and than shoing image ...
stackexchange/codereview
I've a relational table (id, parentId, name) which I'd like to convert to a flattened dimentional table (id, Level1, Level2, Level3, Level4) I'm ok fixing the depth at 4 deep. I've made progress with a recursive CTE and pivot, but the result set isn't right I get Id Name Level1 Level2 0 Root NULL NULL 1 NULL...
stackexchange/codereview
I hope someone can help me with the following scenario because I'm breaking my small head over this! I have made a wrapper so I can easily call webservices/pagemethod using jquery. Now in the success function of the ajax call I want to be able to call a function (with optional parameters) I have done the following but ...
stackexchange/codereview
If I have a simple object: class MyObject { public string MyValueProperty { get; set; } } and if I want to instantiate it in XAML and set the property (as below), this works: <local:MyObject MyValueProperty="SomeValue" /> However, if my object has a collection property on it: class MyObject { public MyObject()...
stackexchange/codereview
I want to copy all data from one database to another which has the same structure. The databases reside on the same machine & on same sql server. I have googled a bit & have found solutions like this INSERT states (statecode, statename) SELECT statecode, statename FROM server1.database1.dbo.states But the problem ...
stackexchange/codereview
Ok this is what happend... One of my colleges run a script that created some tables which included one table called "User" on an Oracle XE 10g. Now we are unable to drop that table, we get an ORA-00903 every time we run a: DROP TABLE USER CASCADE CONSTRAINTS The same happens when ever we try to run any alter query on i...
stackexchange/codereview
If i have a file upload and i click on something to cancel it, how do i stop the upload? I tried doing $('form').remove() and it appears to continue uploading. Maybe i should put it in an iframe and destroy the iframe? then i need to figure out how to reload it hmm. Are there any known cross platform ways? -edit- btw ...
stackexchange/codereview
I want to initialize a array. But ı have two different initial values in compile time. So I want to do it in precompile time. My code is static const U8 userFont[8][8] = { #if (LCD_LANGUAGE == LANG_1) { 0x0E, 0x09, 0x09, 0x1D, 0x09, 0x09, 0x0E, 0x00 }, { 0x03, 0x0E, 0x11, 0x10, 0x10, 0x11, 0x0E, 0x00 }, ...
stackexchange/codereview
People, I already searched a lot but I'm not finding my answer.. I did a eclipse plugin that writes junit test cases from source code. By now, I'm starting to use reflection in my code, but the plugin can't find the classes in the java project being tested! Is there a way to use the selected project classpath in my plu...
stackexchange/codereview
Can you explain why the developer is using class << self to add a methods to the base class? base.rb from the GeoPlanet Gem module GeoPlanet class Base class << self def build_url(resource_path, options = {}) end end end
stackexchange/codereview
I've been working on creating my own MVC app in PHP and I've seen a lot of differing opinions online about how exactly this should be set up. Sure, I understand there seems to be a general "It's MVC, it is what you make of it" approach, but I'm running into 2 seemingly conflicting viewpoints. A little background on my ...
stackexchange/codereview
Basically I want to have a UITextView - I want it to scroll up and down (ie: I set a height and width, and if the text overflows this then the contentSize is bigger than the frame). But, I don't want it to get wider. At the moment its scrolling left-to-right. All I want is for it to scroll up and down. Any ideas? Thank...
stackexchange/codereview
I want to create a stored procedure to perform a bulk insert so a user I grant access to the stored procedure can run it without any other permissions. Is there any way I can grant "ADMINISTER BULK OPERATIONS" to the stored procedure so I don't have to grant server wide bulk op permissions to the user? Is there any oth...
stackexchange/codereview
For example: I18n.t('something') should output only something if the translation missing.
stackexchange/codereview
I have some binary data (pixel values) in a int[] (or a byte[] if you prefer) that I want to write to disk in an Android app. I only want to use a small amount of processing time but want as much compression as I can for this. What are my options? In many cases the array will contain lots of consecutive zeros so someth...
stackexchange/codereview
In my code below I am trying to ignore new lines. Is there a better way of doing this? do { scanf("%c",&wouldCount); } while(wouldCount == '\n'); original code #include <stdio.h> int main() { char Yes = 'Y'; char wouldCount; int counter; int start; int end;...
stackexchange/codereview
Possible Duplicate: C++ method only visible when object cast to base class?! I've the follow code: class String { char* _Text; public: String( const char* s ) { int iLen = strlen(s); _Text = new char [iLen+1]; strcpy( _Text, s ); } }; template<typename T> class Vector { public: ...
stackexchange/codereview
MATLAB is a pass by value language. I have a recursive function that processes pixel's neighbors. It is very expensive to make the copy of the image (in my case two images) each time the function is called. I used global variables to solve the problem. Is there any other way to make a recursive function modify an arra...
stackexchange/codereview
I am dealing with some client's that use Windows servers and as such do not support .htaccess files. This is not a huge deal but, my concern is this: I have a rule set up in my .htaccess file to redirect the non-www version of the site to the www version. This makes the URL's look nicer and prevents duplicate content ...
stackexchange/codereview
Lets say I have two modules. Is it possible to include a module inside another one that would behave like a mixin? For example: module A def self.foo puts "foo" bar end end module B include A def self.bar puts "bar" end end B.bar B.foo Edit: I realized I originally copied the code down wrong....
stackexchange/codereview
We currently have a store of images on a network directory and the path to those images stored in a db. I have a web app that needs to display these images to the users and i was wondering if this was possible and how i should i go about doing something like this. Thanks
stackexchange/codereview
I'm getting the following error when I access my webservice localhost/MyService/MyService.svc The SSL settings for the service 'SslRequireCert' does not match those of the IIS 'Ssl, SslNegotiateCert'. I've following the web.config examples as specified in http://msdn.microsoft.com/en-us/library/ms731074.aspx Here is ...
stackexchange/codereview
i'm using jQuery for my task. Then i'm using barcode scanner for input data into my input form. how do i do to show data(setfocus) in the 2nd textfield, if i have two textfields inside this form?
stackexchange/codereview
I have a script that makes an Ajax call to one of my rails resources to grab all the notes for a particular page. Rails Controller: def show if request.xhr? @page = Page.find(params[:page_id]) @note = Note.find_by_page_id(params[:page_id]) @user = User.where("user_id = ?", @note.user_id) end ...
stackexchange/codereview
Possible Duplicate: Read/Write 'Extended' file properties (C#) Does anyone know how to get the information contained in the Details tab of a File's properties window? Any .NET library I'm overlooking? This is the window/information I'm talking about: It seems like there would be a better way to access these data ra...
stackexchange/codereview
If a problem X (decision problem) is known to be NP-Complete, and proven to be reduced to problem Y in polynomialtime, can you then say problem Y is NP-Complete? My first thought was, no, problem Y needs to be shown that it is in NP. But after further thought, if X is reduced to Y, Y is already considered to be NP-Comp...
stackexchange/codereview
In a WPF Window, I've got a line chart that plots real-time data (Quinn-Curtis RealTime chart for WPF). In short, for each new value, I call a SetCurrentValue(x, y) method, and then the UpdateDraw() method to update the chart. The data comes in via a TCP connection in another thread. Every new value that comes in cause...
stackexchange/codereview
I am using Visual Studio 2008 Professional SP1. On my PC, SQL Server 2008 Express R2 and SQL Server 2008 Compact Editions are installed. When I right click on Solution Explorer and add "Local Database", which database I am creating? Is it the non-campact or compact edition?
stackexchange/codereview
I've got an issue related the Javascript popups. I want to set a width of 163px for my pop up, but IE8 ignores this value and sets it's minimum of 250px width. Is there a solution to go round that? Cheers.
stackexchange/codereview
SharePoint 2010 makes greater use of the employee's photo. In my company, employee photos are managed by secretaries and are considered part of HR data. We have a handy web service that resizes and returns employees' photos according to login: http://services.domain.com/photo.ashx?login=kobi&width=64&height=64 What i...
stackexchange/codereview
On the server side, I use node.js to do some distributed asynchronous ping-pong. I now need to display the results as a real-time chart in a client browser. To keep things simple, I am presently using the image-based Google chart URL and restricting the amount of data to be plotted. Eventually this client-side display ...
stackexchange/codereview
I have a imageview that I want to change the color based on a user choice From examples on the internet I see the only way to really do this is by going through and modifying each pixel... however it seems to be EXTREMELY slow if I add this into my code, it takes long enough that it prompts the user to force close or w...
stackexchange/codereview
long timeValue = timeInMillis(); int rand = timeValue%100 + 1; If we execute the above code N times in a loop, it will generate N random numbers between 1 to 100. I know generation of random nos is a tough problem. Just wanted to know is this a good random number generation algorithm? Or is it pseudo random number ge...
stackexchange/codereview
//Backstory i have a LG Rumor Touch phone, and it comes with a couple social media apps that are just awful to use, and restrictive as far as features. //Question Ive worked with people before making iphone apps who would write basically like a "wrapper" that would just invoke a browser window inside the app to load a...
stackexchange/codereview
Possible Duplicate: GetFiles with multiple extentions is there a function like GetFiles that takes more then 1 file type like DirectoryInfo di = new DirectoryInfo("c:/inetpub/wwwroot/demos"); FileInfo[] rgFiles = di.GetFiles("*.bmp, *.jpg, etc");
stackexchange/codereview
I'm looking for some stuff that learn how use Eclipse IDE interface in my own application. Someone know how? I couldn't find something abou it. Tips Thanks
stackexchange/codereview
I want a regular expression for full name with salutation. Can anyone please help me. ^[A-Za-z] ([A-Za-z] (\\s|\\.|_)?)+[a-zA-Z]*$ this is my regular expression which I'm using for full name but it's not taking salutation.
stackexchange/codereview
In C#, when setting a boolean variable's value to false only when it is true, should I check if it is true before setting it or just set it? Assuming the variable is true 50% of the time, checking it makes sense since a comparison is faster. If the variable is true most of the time, should I just skip the comparison? W...
stackexchange/codereview
I am doing a tracking app and it can get positions from CLLocationManager in the background, which brings the danger of eating battery without the user knowing, so I want to save as much battery as possible. I want the app track "actively" (with locationManager.distanceFilter = 10;) when there are enough satellites to...
stackexchange/codereview
This is the PHP code that acts as 'action' for another HTML page that has only a form in it. It doesn't show any errors and after I click submit the message 'Database created' appears, but it's not creating the table 'Simpsons'. Why is this happening? Please, let me know if I should put more details or comment the cod...
stackexchange/codereview
Consider the following: class A { public: const int c; // must not be modified! A(int _c) : c(_c) { // Nothing here } A(const A& copy) : c(copy.c) { // Nothing here } }; int main(int argc, char *argv[]) { A foo(1337); vector<A> vec; vec.push_ba...
stackexchange/codereview
Google App Engine limits urlfetch.fetch() responses to 1MB. Is there any workaround of this (switching to paid version maybe)? I'm using Python and if it's possible to provide an example that would be great.
stackexchange/codereview
I've an application (can't provide code, as it's very long), that uses unixODBC. Also, I have installed isql. Everything seems to be configured correctly - drivers, servers and so on, as using isql, I connect to the Informix DB with no problems. But my application cannot connect, even when I'm using the same settings. ...
stackexchange/codereview
I am using Adobe Citrus and Air. The goal is to make a voice chat application with low latency. I take the sound samples that I get from the Microphone SAMPLE_DATA_EVENT encode them in using Native Process and speexenc.exe. The question with method should I use for the sending of the samples. I tried object repica...
stackexchange/codereview
I've got two sets of hex values as such: ---------- ------------------ 0x0062EB3F 0x000000020062EB3F 0x0062EF17 0x000000020062EF17 0x0062EF30 0x000000020062EF30 0x0062EF38 0x000000020062EF38 0x0062EF3B 0x000000020062EF3B 0x0062EF3F 0x000000020062EF3F 0x0062EF40 0x000000020062EF40 The only difference is the leading zer...
stackexchange/codereview
Previous time I asked a question here I learned a lot so I guess it's worth a shot to try it again. I am using the lazy list by Fedor from this link: Lazy load of images in ListView It's working like a charm. BUT, Fedor is making his main class extend Activity instead of ListActivity. Because of this, I am no longer ab...
stackexchange/codereview
I have a masterpage that contains a user control. The usercontrol uses callbacks for various operations. However, every time a callback is issued from the user control it is propagated down to the pages that inherit from the master page. How do I determine the id of the control that issued the callback so that I can...
stackexchange/codereview
I am not talking about the formal version control (svn, etc) for my iPad app. I wish someone could tell me where in my app to set the version of the app. For example, my app's product name is Go Here. To indicate the version, where should i set the version? bundle version in the plist? I need this version thing just i...
stackexchange/codereview
Could you provide some insight into the techniques that you use to ensure the quality of your solutions. For example, sometimes, I like to test my result using stopifnot() to ensure I'm not receiving ridiculous results. Are there any other techniques or functions that you use in data processing to ensure that you're re...
stackexchange/codereview
I am getting this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's','portal','','offering','MSNBC','News','','sports','','MSN','Money','','games'' at line 3 The only problem is that this error shows up when inserting data ...
stackexchange/codereview
I have a PHP script that imports up to 10 or so different CSV files. Each row of each file contains bank account info, including balance. After I've imported all the CSV data into my database, I'd like to make sure the data got in there correctly by comparing the total account balance in the database to the total accou...
stackexchange/codereview