instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I need to use Visual C++ to build a customized Apache web server. Here is the goal I am trying to achieve: specify some of the functions or data in Apache source code, and put them in separate and 4k-page aligned sections (not .text .data .bss) of output .exe file. The closet solution I can find online is use /Gy compi...
stackexchange/codereview
I set a static file on Amazon S3 to use Cache-Control: max-age: 259200, must-revalidate. However, when I load a test page on my browser in Safari, the resource tracker shows it's getting the file from Amazon S3 even though it's supposed to be cached. What's going on? Do browsers have special caching rules I'm not aware...
stackexchange/codereview
The application is working well in Win server 2003 /IIS 6.0 environment. When I move the code to win server 2008/IIS 7.0 , I am getting below error? Could you advise what is the error cause? Did i missed anything? Server Error in '/' Application. Arithmetic operation resulted in an overflow. Description: An unhandled...
stackexchange/codereview
Getting ready to submit my app to the Apple's Itunes store and got puzzled by a question during the submission process: "Export laws require that products containing encryption be properly authorized for export...... Does your product use encryption?" I've used CommonCrypto CommonCryptor.h to encode settings file again...
stackexchange/codereview
I have a JSF 1.2/Spring Web flow 2.0.7 app that need to serve binary content (an image). This content is fetched from a web service (along with some other data) as a Base64-encoded string, and ends up in the bean together with the rest of the data. How can I get the image to show on my web page? Note: No, there is no w...
stackexchange/codereview
I'm working with a legacy table which I cannot change. The database have a settings table which consists of a lot of columns (one for each setting) and only one row: Columns: Setting1 | Setting2 | Setting3 | etc... ----------+--------------+-----------+------------- Row1: SomeValue | AnotherValue | La...
stackexchange/codereview
Im pulling data across the line for a listing. Is there a way in OData syntax to only pull the first 100 characters of a field. e.g. EmployeeDescription field, I only want to show the first 100 characters of a Nvarchar(1000) database field. Am trying to cut down as much as possible data going across the line. Thanks
stackexchange/codereview
Should one need to learn php(or jsp) to create dynamic web-sites or just to use CMS ?.I am new to web-development...
stackexchange/codereview
I am studying for an exam and there is a sample question like : You are the Manager of the UN web site, which comprises of a number of sub-sites, in the six official languages, with information prepared and produced by different Departments. You have been asked by senior Management to devise and establish ...
stackexchange/codereview
Is it possible to substitute your own tiles for google's map tiles in the flash version of the api? I don't mean overlaying tiles on top of google's tiles but actually replacing them. We already do this using the V3 Javascript API, and would like to do the same for flash.
stackexchange/codereview
I know about code development using PHP but not much about modern day web APIs. I want to implement a framework of APIs like Facebbok connect. Myspace connect, Google connect etc for 2 purposes: 1) Users can upload photos to their photo album 2) Other websites can login users using authentication from my site (similar ...
stackexchange/codereview
I am developing an application,I would like publish my application in android market. I want to find what are the user using my application and his location point out in Google map,How to find my user for my application,How to possible? Thanks all
stackexchange/codereview
I am trying to do a very simple web crawler/spider app in C++. I have been searching using Google for a simple one to understand the concept. I found this: spider_simpleCrawler However, it is complicated to understand for me, since I started learning C++ about 1 month ago. This is, for example, what I'm trying to do: ...
stackexchange/codereview
Update #1 So I now have the data in the format shown in the screenshot below. The last thing I need to do is take this data and add a percentile column at the end. The percentile is valuable because it will show how common a given password is in the entire data set. Does anyone have a good idea on a SQL query that will...
stackexchange/codereview
I have a requirement to read and process log file incrementally. Any suggestions on how to do this in Java? I need to consider all possible scenarios like file rollover, different logging formats, etc.
stackexchange/codereview
This is very odd. Here is a quick test function: function test_function(){ code = '<img src="http://www.myimage.com/img.jpg" alt="image" />'; alert(code); document.getElementById('test').innerHTML = code; alert(document.getElementById('test').innerHTML); } Running the code above will show /> in the fir...
stackexchange/codereview
When I use Mac Mail to send a message, it has a received header included in it. Even though I'm running my SMTP through a remote server, my IP shows up (where it's 123.123.123.123). Received: from [123.123.123.123] (host.of.my.ssh.tunnel.com [x.x.x.x]) I've seen many messages where it says: Received: from my.own.domai...
stackexchange/codereview
I would like to change an error message returned by SharePoint 2007 "An error occurred copying some or all of the selected files" So that it is more informative to end users. Is this possible? If so how?
stackexchange/codereview
Edited: There is a file has 5000 records that are parsed and loaded into Oracle database table. after the completing the process the results will be logged into a file that will show the success and failure counts. There it has only 4999 records are success. 1 record is not inserted (may be it not formatted correctly)....
stackexchange/codereview
Can i use creation complete in item renderers , i have a data grid and i have kept every single cell as an item renderer. is it a good practice to use creation complete here. I fear events might fire up at wrong instances.suggestions are most welcomed.
stackexchange/codereview
How can I make the selection color (blue here) stop at the end of the filename instead of going all the way to the edge of the ListView? I put the orange background on the item StackPanel to show that it is not because it fills the whole width which I first thought. <Expander Header="Project"> <Expander.Resources> ...
stackexchange/codereview
in a controller: protected override void Initialize(RequestContext requestContext) { if (db == null) { db = new myRepository(); } if (currentCalendar == null) { currentCalendar = db.FindCalendarInfoByUrl( requestContext.RouteData.Values["calurl"].ToString()); ...
stackexchange/codereview
how do you know the parameters (eg height and width) of the element, if the constructor is passed only his Graphics?
stackexchange/codereview
I'd like to get a sequence of number like this 01,02,..,30 But if I use {01..30}, I will get 1,2,..30, the zero before single-digit number is missing. How can I get the format like 01,02..30 ? Thanks in advance
stackexchange/codereview
Consider this jQuery code: $('button#my').click(function(event) { alert('hello'); }); $('button#my').click(); Obviously, this will bring up an alert window. However, can I tell, with jQuery only, if that event handler was triggered with code or if the user clicked it (without ugly flag checking, e.g. var userClic...
stackexchange/codereview
I have been getting random crashes when trying to access my std::list<string> object and can't figure out why it happens. I started out with an extern vector<string> object but I've created a class for accessing it now, use a list instead (not that it matters but probably more appropriate for what I need it for) and ma...
stackexchange/codereview
I have been reading that cursors are pretty slow and one should unless out of options avoid them. I am trying to optimize my stored procedures and one of them uses a cursor. It frequently is being called by my application and with lot of users(20000) and rows to update. I was thinking maybe I should use something else ...
stackexchange/codereview
I need to keep a list of logged users STATUSES at the Server level (either "ONLINE" or "OFFLINE"). So I wrote a Partial View to maintain the user current Status (Online, Offline). The server stores these values both on the Database and all the current Online users also in a Cached entry so that I can retrieve the list...
stackexchange/codereview
How do i get the default xaml template for a control? In expression blend you can right click a control and press style then i generates the current template as xaml.. how do i do this if i don't have expression blend?
stackexchange/codereview
i wont to add a new Link on /wp-admin/edit.php by using a plugin. I wont to have on every post a Link to a page of my plugin and passing the postid any idea to do this? thx
stackexchange/codereview
i have try the label value pass one view to another view .i have use the table view and table view put a label . code...... such as - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSString *CellIdentifier = [NSString stringWithFormat:@"%i %i",indexPath.row,ind...
stackexchange/codereview
My machine is running on window 7. I want to communicate between two android emulator's running on same machine. Emulator first is listening on some IP 10.0.2.15 When second emulator tries to create Socket socket = new Socket ("10.0.2.15",8080); It gives exception, unable to connect to 10.0.2.15 does any one know h...
stackexchange/codereview
I have some code: XmlDocument doc = new XmlDocument(); using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["LocalSqlServer"].ToString())) { SqlCommand command = connection.CreateCommand(); command.CommandText = "sproc1"; ...
stackexchange/codereview
How to search int[] QTaskId in Entity. i try to make below but i can not void (Run(int[] QTaskId) { var Que = calculateCtx.QTaskRelations.Where(q => q.QTaskId.Contains(QTaskId)).Select(q => q); }
stackexchange/codereview
I need to check if a window is loaded, and that it is in the taskbar. I already tested IntPtr blaha2 = FindWindow(null, "Tibia"); if (blaha2 != null) { client = Tibia.Objects.Client.GetClients()[0]; } But the getClients() method doesn't get any Tibia clie...
stackexchange/codereview
How do I use Excel to load product backlog items, bugs, tasks, etc. into Team Foundation Server/VS2010?
stackexchange/codereview
this solution Receive iPhone keyboard events offers a way to capture the keypress event using notification center. [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(keyPressed:) name: UITextFieldTextDidChangeNotification object: nil]; [[NSNotificationCenter defaultCenter] addObserver: self se...
stackexchange/codereview
User has_many :posts has_many :post_tags, :through => :posts PostTag belong_to :post belongs_to :tag scope :distincttag, :select => ('distinct post_tags.tag_id') with Rails 3.0.4, i get invalid SQL: SELECT post_tags.*, distinct tag_id... at least one other person experienced the same problem: http://www.ruby-forum.co...
stackexchange/codereview
I have the following code: $username = 'username'; $password = 'password'; $host = 'localhost'; $db = 'dbname'; $dbh = new mysqli('p:'.$host, $username, $password, $db) or die('no connection to server'); But I get the following error PHP Warning: mysqli::mysqli() [<a href='function.mysqli-mysqli'>function.mysqli...
stackexchange/codereview
I am trying to learn about ways to layout my data from a database using ASP.NET and C# I can layout my data without any problem in rows using things like the GridView control, as the below image illustrates. However I want to layout all of the information that would normally be in 1 row, in 1 cell. So for example, eac...
stackexchange/codereview
I need to serialize inputs and selected option in table row(tr) <form action='' METHOD='post' id='formConfirmOrder'> <table id='viewTableOrders'> <tr id='vagon1'> <td> <select name="order[1][rail_path]" title="1"> <option value="" selected="selected"></option> <option value="1">Patch1</option><option v...
stackexchange/codereview
I got some problem with my database in my Android application. Perhaps, my application is working but let me explain you. Here are just parts of the code from my app.. i don't want to paste the whole it's not needed. private SQLiteStatement insertStmt; private static final String INSERT = "insert into " + TABL...
stackexchange/codereview
When trying to run my app with eclipse/linux on tomcat I got the following info message: INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.20/jre/lib/amd64/server:/usr/lib/jvm/java-6-sun-1.6....
stackexchange/codereview
Looking to build a Rails 3 stack and trying to sort out Ruby versions. I'm very interested in the concept of JVM, but not 100% sure if it even relates to Rails 3; meaning why not just do a deploy just for JVM if needed. Then there's heroku saying there's a bug in Ruby 1.9.1, but they don't say what the bug is, if it's ...
stackexchange/codereview
I have 153 markers and need to generate a static map with them, but when put them in the url I get an error like this: 414 Request-Uri Too Large My url is something like this "http://maps.google.com/maps/api/staticmap?center=13.00,-85.00&size=600x500&maptype=roadmap&markers=13.305,-86.18636&markers=13.72326,-86.13705&...
stackexchange/codereview
I am using a spinner using tutorial shown here there are 3 functions running ajax calls I want to hide it for only a specific function running ajax call, how to do this ? Currently my code for adding spinner for ajax call is this : $(document).ready(function(){ $("#spinner").bind("ajaxSend", function() { ...
stackexchange/codereview
I'm developing and AIR application in html. I have: var myDir = air.File.desktopDirectory.resolvePath("HelloWorld"); myDir.openWithDefaultApplication(); // This works. var X = myDir.getDefaultApplication(); // This doesn't. It instead says "getDefaultApplication is not a function." But it's talked about on page 337 o...
stackexchange/codereview
I have the following method to open documents. - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError { NSString *stringData = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; [editorView setString:stringData]; if ( outError != NULL ) { *outError = [NSError ...
stackexchange/codereview
Hi I wrote a PHP script that connects to some urls via TOR & Privoxy with CURL. My script needs to change Tor Identity periodically. and needs that new identity be really new and didn't used before so I need to know what is current Tor Exit Node . I need a technique to know what is my current tor exitNode via PHP scrip...
stackexchange/codereview
I'm cleary doing something wrong. My guess would be the component, but here's the problem. This is my cell renderer: public class WildcardCellRenderer implements TableCellRenderer { @Override public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasF...
stackexchange/codereview
I have a subclass of UIViewController that is responsible for a single UIWebView. Since this is a simple case, I override -(void)loadView, instantiate the UIWebView and assigning it the controller's view property: - (void)loadView { UIWebView *wv = [[[UIWebView alloc] initWithFrame:self.frame] autorelease]; /...
stackexchange/codereview
I am trying to create a regex to match a CSV file of records in the form of: optional value, , ,, again some value; this is already, next record; Now there is an upper limit of commas (10) separating attributes of each record and unlimited number of ; separating each record. Values might or might not be present. I am ...
stackexchange/codereview
In the latest iOS, apps now "deactivate" rather than close by default. So the app retains state and stays in memory. I want my app to reset its state when it's reactivated, just like when it's closed/opened on iPhone 3. I suspect reactivate is the wrong word! But hopefully you know what I mean. thanks
stackexchange/codereview
I am currently trying to show a series of images that slightly differ from each other in a 3D view, and which contain lots of transparent areas (for example, points that move in time inside a rectangle, and I would provide a 3D view with all their positions over time). What I'm doing now is generate an image with the p...
stackexchange/codereview
I'd like to build a financial software. I want to know if there is public web service to provide data? preferable free. BTW, I don't need real-time data.
stackexchange/codereview
I write an native application for an iOS devices(iPhone and iPad) and want to print to Receipt Printer Epson TM-T88. I can not find any information on how to write a driver for Receipt Printer on iOS devices. Pleas can some one help me out or point out where even to start, thank you all.
stackexchange/codereview
Some of my users are creating links that look like <a href='http:/some_local_path'>whatever</a> I've noticed that Firefox interprets this as <a href='/some_local_path'>whatever</a> Can I count on this occurring in all browsers? Or should I remove the http:/s myself?
stackexchange/codereview
I am working on an iPad application which has hundreds of photo-quality images. I would have naturally assumed to store these images as JPEGs so as to optimize the app file size. However, Apple's guidelines state: Use the PNG format for images. The PNG format provides lossless image content, meaning that saving image ...
stackexchange/codereview
I have a DropDownList that particpates in an Address View Model. Is it best to store the list of 170 or so countries in a database and load them into a collection on the View Model, or is it better to hard code them into the View Model as a collection containing SelectListItems? Which is best practice? When does hardco...
stackexchange/codereview
I'm having to troubleshoot a website in IE7 (I currently have IE8 installed on my machine). I've installed Virtual PC and the IE7-on-XPSP3.exe file, but when I run the virtual machine, open IE7, and direct it to any page, it returns a blank screen. I know that there is some connection to the internet because it gets a...
stackexchange/codereview
I'm trying to write a Gradle task which copies generated war files to my local tomcat instance: This isn't working and I'm not sure how to debug it: task deploylocal() << { println "Copy from ${buildDir}\\libs into ${tomcatHome}/webapps" copy{ from "${buildDir}\\libs" into "${tomcatHome}/webapps" ...
stackexchange/codereview
I have the following select: public function fetchFooSum($id) { $db = Zend_Registry::get('dbAdapter'); $select = $db->query("SELECT SUM(prod) FROM `output` WHERE loc_id IN (SELECT loc_id FROM `locations` WHERE location_id = ".$id.");"); return $select->fetchAll(); } I have 2 questions ...
stackexchange/codereview
I use Apache Commons Mail and recognised that the email subject (and other settings like character encoding) are not used at all: props.put("mail.smtp.host", "localhost"); Session s = Session.getInstance(props, null); s.setDebug(true); MimeMessage message = new MimeMessage(s); message.setHeader("Co...
stackexchange/codereview
I want to create a script that, after knowing that my machine has been turned on for at least 7h, it does something. Is this possible? Is there a system variable or something like that that shows me the last time the machine was turned on?
stackexchange/codereview
i'm currently developing an application for android. Therefore i want to create a microphone widget, like the one in googles Searchdialog. This icon is filled with white color, like a bargraph, depending on the recorded volume level. I already found the icon (ic_btn_speak_now.png) in the drawable ressources, delivered ...
stackexchange/codereview
I was trying to wrap my brain around Decorators in python but can't understand why we cannot achieve the same thing by using sub classes?
stackexchange/codereview
Hello i am using htmlagilitypack in my program its build in c# WPF I acually Extract all html page . know i dont know how to mine it Html page is look like this <tr> <th rowspan="4" scope="row">General</th> <td class="ttl"><a href="network-bands.php3">2G Network</a></td> <td class="nfo">GSM 850 / 900 / 1800 / 1900 </td...
stackexchange/codereview
jp.php?q=dog or jp.php?h=123&f=14 etc. Is there a better way to resubmit the arguments (other than looping through q,h,f,...) and eg add '&action=update'? This is an attempted looped version: $req_str=""; foreach($_REQUEST as $req_k => $req_v){ $req_str.=$req_k."=".$req_v."&"; } echo "<a href=jp.php?".$req_str."&action...
stackexchange/codereview
I want to make a FUNCTION which calculates size of passed array. I will pass an Array as input and it should return its length. I want a Function int ArraySize(int * Array /* Or int Array[] */) { /* Calculate Length of Array and Return it */ } void main() { int MyArray[8]={1,2,3,0,5}; int length; length=A...
stackexchange/codereview
i want to add live searching to a list whose data provider is a very large XML. for simplicity, let's assume my XML is just a list of the world's 180ish countries: package { //Imports import fl.controls.List; import fl.data.DataProvider; import flash.display.Sprite; import flash.events.Event; import flash.events.Mouse...
stackexchange/codereview
I'm diving into iOS development and I'm trying to create a count up timer in one of my views. I have the NSTimer code figured out to call a selector once every 0.04 seconds that updates the UILabel. Where I'm having trouble is with the formatting of the current time (starting initially at 00:00). I figured the best ...
stackexchange/codereview
How costly would SELECT One, Two, Three be compared to SELECT One, Two, Three, ..... N-Column If you have a sql query that has two or three tables joined together and is retrieving 100 rows of data, does performance have anything to say whether I should be selecting only the number of columns I need? Or should I write...
stackexchange/codereview
Whats the best method to use the words itself as the features in any machine learning algorithm ? The problem I have to extract word related feature from a particular paragraph. Should I use the index in the dictionary as the numerical feature ? If so, how will I normalize these ? In general, How are words itself use...
stackexchange/codereview
I had made a personal note software in PHP so I can store and organize my notes and wished for a nice simple format to write them in. I had done it in Markdown but found it was a little confusing and there was no simple syntax highlighting, so I did bbcode before and wished to implement that. Now for GeSHi which I rea...
stackexchange/codereview
The codebase I've been handed to work with features a databse class that inherits from MDB2. This forms the basis for the MVC framework in use (a custom built affair) and the models in turn inherit from db. As I'm sure some of you have noticed, this leads to a rather big problem. Every time you instantiate a model, the...
stackexchange/codereview
My page accepts a viewmodel on HttpGet. When i submit the form my HttpPost decorated method binds to that model and all is dandy... i can use the model data to save. My problem is: Not all values from the original model is passed to the post, only the form fields. Is there a way to pass the original model to the post m...
stackexchange/codereview
i have this code below to validate a required field: $(document).ready(function(){ $("#gestione_profilo").validate({ rules: { 'person_data[document_number]': "required" } }); When I show the form and remove the value of that field, it doesn't show the "Required" message. But after t...
stackexchange/codereview
I am not very familiar with the Mac OS X APIs (coming from a long background of iPhone sdk) and I was wondering how I could add a transition when I switch nsimageviews. Does anyone have a short code snippet they can share about how to go about doing this?
stackexchange/codereview
I'm going to ask this question, and then answer it myself. I'm, aware that its a newbie question, but as it took me approx. two days to find the correct answer, I'll post it anyway. So much for disclaimers - this one is dedicated to all you newbies out there: I've go an MFC project in VS 2010, and I needed to add some...
stackexchange/codereview
In SSMS I see 7 temporary tables, all with names like dbo.#0876219E. When I end my connection and come back in, they are still there. I'm not able to query them or get properties on them. I get errors. How do I find their source, purpose and what they contain? Is there a particular system sp that gives info on temp t...
stackexchange/codereview
I am writing an SFTP module using a Java class (Yes. I know it's stupid. Yes, I know about Net::SFTP. It's political why we have to do it this way). The underlying Java program has basically a few classes to get, put, list, and remove the file from the server. In these calls, you have to give it a directory and file. T...
stackexchange/codereview
Sweet..I bought myself a 1TB portable harddrives this week. Don't you just love how much data you could store on one of these disks? The fact that I could store my bluray rips on to my portable harddisk and that my lg lcd tv can do HD rips right from the drive - that's amazing practicality right there! However, life it...
stackexchange/codereview
I'm using django-paypal as a payment solution inside my django application. I'm trying to implement a IPN handler. What happens when I receive an IPN message at my IPN-handling URL the django server crashes: Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/django/core/servers/basehttp.p...
stackexchange/codereview
I'd like to use jQuery UI's dialog to implement a confirm dialog which is shown when the user clicks a delete-link (implemented using an asp:LinkButton). I'm using code as shown below (copied from the jquery ui documentation): <!-- the delete link --> <asp:LinkButton ID="btnDelete" runat="server" Text="Delete" OnClic...
stackexchange/codereview
NSMutableArray *sectionTitles; [sectionTitles addObject:due]; How do I just add unique values to an array?
stackexchange/codereview
I have a data file with a fixed record length. There are no carriage returns or line feeds delimiting the records. How can I insert a carriage return linefeed pair at every X characters using Notepad++(where X is the record length)?
stackexchange/codereview
I have been writing an which works fine but I was testing it with Instruments for leaks and came across leaks from UIBarButtonContent here are the offending lines. UIButton *searchbutton = [UIButton buttonWithType:UIButtonTypeCustom]; [searchbutton setImage:[UIImage imageNamed:@"searchbutton.png"] forState:UICon...
stackexchange/codereview
I am sure I have goofed up somewhere in my configs. So this is what is happening. My document root does not have any folder called "2". Yet, if I access, for example, http://www.mostpopularsports.net/2/poll.php or even some totally crazy url like: http://www.mostpopularsports.net/2/poll.php/dsadsdsdsdsdsads apache is...
stackexchange/codereview
Is it "app store safe" to use this lib?
stackexchange/codereview
Is there a way to style the alt? With javascript? With pseudo attributes? like this: <img src="foo.jpg" alt="<h1>This is the caption</h1><p>This is some text</p><p>Another text</p>" /> ?? And javascript (I use JQuery framework) does something like this? Get value of <alt> from <img> make value between <h1></h1> css fo...
stackexchange/codereview
Is -1 a valid read timeout for pcap? I was told by someone that setting to_ms to -1 in pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *errbuf); causes it to return immediately when a packet is detected - effectively a zero timeout. It makes a lot of sense that there be some way to set a zero tim...
stackexchange/codereview
I'm using an UpdatePanel to swap the ActiveView of a MultiView. In IE6, 7 and 8 and Chrome 7 I get a JavaScript error when the UpdatePanel returns. In Firefox 3.6.1 there is no error reported (in the error console or in Firebug). The error is on line 3621 of ScriptResource.axd function Sys$_ScriptLoader$_loadScriptsInt...
stackexchange/codereview
Does anyone know how to calculate the medial axis for two given curves? Medial axis: http://en.wikipedia.org/wiki/Medial_axis Here is the shape I need to calculate it for: I drew in the medial axis myself, the dark black line, but I need to be able to calculate it dynamically. Here is the applet and code of what I ha...
stackexchange/codereview
I am doing a study (as part of a course requirement) on the new Fork-Join framework in Java 7 and analyze the performance improvement compared to the conventional threading mechanism. What are the kinds of divide and conquer algorithms that are guaranteed to run faster with the new fork join framework. Can you suggest ...
stackexchange/codereview
I have a project that uses the Core Telephony framework. Recently my code stopped working on a CTCarrier category, the linker complains that it can’t find the CTCarrier class: Undefined symbols: "_OBJC_CLASS_$_CTCarrier", referenced from: l_OBJC_$_CATEGORY_CTCarrier_$_Foo in CTTests.o ld: symbol(s) not found T...
stackexchange/codereview
I'm trying to build an RTP packet metric analyzer in C, but i ended up in a strange issue, I'm cutting down implementation details for ease of exposure: Since the RTP packets are contained in UDP my socket is initalized with the following parameters: sock_domain = AF_INET; sock_type = SOCK_DGRAM; sock_proto = IPPROTO_U...
stackexchange/codereview
I have three activities, Activity1, Activity2, and Activity3.. Activity1 is the main activity from which am switching to other two activities. While I switch to Activity2 from main activity it starts properly, when I switch to Activity3 from main activity and come back to the Activity2 all previous data will be lost an...
stackexchange/codereview
I am using paypal pro in sandbox. when I send the request and in response I get this error: Array ( [TIMESTAMP] => 2010%2d11%2d23T09%3a21%3a12Z [CORRELATIONID] => 2aa783b64659 [ACK] => Failure [VERSION] => 51%2e0 [BUILD] => 1620725 [L_ERRORCODE0] => 10501 [L_SHORTMESSAGE0] => Invalid%20Confi...
stackexchange/codereview
Im looking into a small javascript game and is currently making a tool for testing "sqeuences" (game scenes where i want the script to move the player around thru waypoints, gonna call it actionscenes :D). I think I almost got it right, but as you can see if you copypaste the code to a html the logic is broken. I need ...
stackexchange/codereview
This compiles and executes: var re = new Regex(@"what\ever"); But I can't find anything that matches it. whatever, what\ever and what\\ever all fail to match. \e isn't a valid escape sequence AFAIK, so I'm not sure what the intended behaviour here is...
stackexchange/codereview