instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Right now I have a pointer set to a row in my 2D array. I want that pointer to stop pointing to that row, but I will be using the pointer later for something else. I just want to know how to unset the pointer after it is initialized and has pointed to a row. double* tempRow; tempRow = (double*) malloc(size * sizeof(d...
stackexchange/codereview
I have a category structure that is 5 levels deep. when returning the categories for a post, these categories are not in any particular order. I need to find the last child category for a post.
stackexchange/codereview
I have a string that I parse in regex: "one [two] three [four] five" I have regex that extracts the bracketed text into <bracket>, but now I want to add the other stuff (one, three, five) into <text>, but I want there to be seperate matches. So either it is a match for <text> or a match for <bracket>. Is this possibl...
stackexchange/codereview
How do I create an ODBC connection using sp_addlinkedserver in SQL using a DSN-LESS connection string? I assume I am doing something wrong with syntax, here is how I set up the connection: EXEC master.dbo.sp_addlinkedserver @server = N'SERVER_NAME', @srvproduct=N'Oracle', @provider=N'MSDASQL', @provstr=N'DataSource...
stackexchange/codereview
Hey all, kind of new at Kohana and I have a quick question. I have a site where there will be three subsections, organized by subdomain (i.e. admin.site.com, community.site.com, www.site.com) but each of the subsections will be pulling from the same database so should be sharing the same models. Is there a way to organ...
stackexchange/codereview
What is the difference between an abstract class and an interface?
stackexchange/codereview
For a polygon defined as a sequence of (x,y) points, how can I detect whether it is complex or not? A complex polygon has intersections with itself, as shown: Is there a better solution than checking every pair which would have a time complexity of O(N2)?
stackexchange/codereview
In Python there is dict.inspect() method that returns a list of tuples (link). Is there a similar method in ruby to achieve, well, an array of arrays? #input {:a => 1, :b => 2} #result [[:a, 1], [:b, 2]]
stackexchange/codereview
Cabal is giving me mixed messages. When I say: Extensions: DeriveFunctor It says: Warning: Unknown extensions: DeriveFunctor But when I say: GHC-Options: -XDeriveFunctor It says: Warning: Instead of 'ghc-options: -XDeriveFunctor' use 'extensions: DeriveFunctor' For now I'm just going to use the {-# LANGUAGE DeriveF...
stackexchange/codereview
Is it possible to use toupper in replacement string? Suppose, there are member Declarations like this: int myVar; I want to make the first letter of variable name to a capital-letter: int MyVar; Unfortunately this doesn't work: :1,$s/\(\w\+\)\s\+\(\w\)\(\w*\)\s*;/\1 \=toupper(submatch(\2))\3;/ Finally, I could use \...
stackexchange/codereview
Possible Duplicate: Whats the main difference between int.Parse() and Convert.ToInt32 I would like to know what are PRO and CONS of using Convert.ToInt32 VS int.Parse. Here an example of syntax I am using: int myPageSize = Convert.ToInt32(uxPageSizeUsersSelector.SelectedValue); int myPageSiz...
stackexchange/codereview
Are there any annotations in java which mark a method as unsupported? E.g. Let's say I'm writing a new class which implements the java.util.List interface. The add() methods in this interface are optional and I don't need them in my implementation and so I to do the following: public void add(Object obj) { throw n...
stackexchange/codereview
I configured SSL mechanism in tomcat 6 by generated certificate using java keytool with RSA algorithm and I’m able access the urls using the HTTPS. Now I have few doubts While communicating client with server (browser to server or server to browser), is Data also encrypted using 128 bit encryption? If stand alone ap...
stackexchange/codereview
I am still experimenting with how Java handles generics. I stumbled upon the fact/issue/thing that if you have a generic interface like A<T>, you cannot really check afterwards if some object is actually implementing A<B> or A<C>. I wondered if that could cause actual problems. Now I have tried this code: static interf...
stackexchange/codereview
Trying to read the sizes of disks that were created in multiple sessions using GetDiskFreeSpaceEx() gives the size of the last session only. How do I read correctly the number and sizes of all sessions in C/C++? Thanks.
stackexchange/codereview
I'm using a slightly modified version of Twain Dot Net in my scanning application. The problem is, when the user cancels scanning using a button on the scanner (or if paper jams), TWAIN should show an error message and return with some failure code. But instead, what happens is that the call to DG_IMAGE / DAT_IMAGENATI...
stackexchange/codereview
After several hours (~6 hours Win7 64bit, ~24hours WinXP) of running multi-threaded (.NET Framework 3.5 SP1 WinForms) desktop application using .mdb files as backend I'm getting the following runtime error: Exception -> Unspecified error StackTrace -> at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConne...
stackexchange/codereview
Am using An inputbox in my form. If i Press OK the code is fine. When i Press cancel the Program displayin an error. Wat should i Do ?
stackexchange/codereview
I'm trying to use DBUnit to test my DAO layer methods. Every method needs different set of seed data. Example: getEmployeeById(Long id) needs data from Employee table updateOrder(CustomerId cId) needs data from Orders table Is there an elegant way to load different seed data before running different methods instead of...
stackexchange/codereview
At the moment I have a label being sized correctly using [aString sizeWithFont:constrainedToSize:lineBreakMode:] but I've introduced rotation into my device and with a flexible width and height this results in my UILabel stretching width ways (because its set relative to the main view) but not then contracting height-w...
stackexchange/codereview
How can I copy an array of values to a destination array starting from a specific index without looping? For example,if I have an array with 2 values, I have to copy those two elements to another array which has a capacity of 5 starting from index 3? double[] source = new double[] {1, 2}; double[] destination = new d...
stackexchange/codereview
I'm pretty new to SalesForce and their Apex language. I've been reading some documentation and tried the integration between Google and SalesForce. I'm wondering is it possible to emulate an auth token from google to SalesForce? I'm trying to read a google spreadsheet and then fill up a SalesForce object automatically....
stackexchange/codereview
I am getting server has gone away errors when i try to re import a database created with mysqldump. I don't get that error when I export from phpmyadmin. I am trying to mimic the phpmyadmin export output with mysqldump. phpmyadmin has something called "Maximal length of created query" set to 50000. What option does tha...
stackexchange/codereview
Is it possible to mark the locations in google map dynamically with the location name. The client will provide us with the locations names through the rss feed. We will grab that location with php script (thats not a worry) and then want to mark them in google map. Say if we got the address: Weston Town Recreation Dep...
stackexchange/codereview
I am using Visual Studio 2005 and IIS 6.0.. I have this warning in the event log. I am trying to find what it is. I have never went through this exception when i am working. What can be done and where can be done to not get the exception warning again. Thanks so much in advance!! Event code: 3005 Event message: An unh...
stackexchange/codereview
I'm trying to write a simple program that asks a user to choose from a menu in a loop. I use getchar() to get the input, however i've noticed that when I enter a char and press 'Enter' the program makes two loops (as if i pressed twice) one the char as an input and another for 'Enter' as an input. How do I fix this?
stackexchange/codereview
I am in the process of moving my team from TFS to GIT in the very near future, but before I do so I want to know about any pitfalls that others may have experienced when moving a team from a centralized source control such as CVS, SVN, TFS, etc to a distributed source control system like GIT or Mercurial. Some question...
stackexchange/codereview
IE7 deletes a tag and randomly places another one a few lines after the tag. This makes zero sense to me haha. Hopefully someone understands the workings of old IE better than me. Thanks for helping! Here is the actual code: <LI><LABEL>Comments (extra card readers, other questions, etc.) </LABEL><TEXTAREA></TEXTAREA>...
stackexchange/codereview
Sorry if this is a really dumb question!!! I have two WPF Windows (page1 and page2). there is a button on page1 which has an onclick event to do something. i then want it to open page2 . There will also be a close button on page2 to close that window and reopen page1. The only way i could see to do it was by opening...
stackexchange/codereview
I'm trying to create an image (screen-shot) of a non-visible AWT component. I can't use the Robot classes' screen capture functionality because the component is not visible on the screen. Trying to use the following code: BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); Graphics2D g =...
stackexchange/codereview
I have a text box and a button in a form.i want to save a file into the network path entered in the textbox while clicking the button. i tried the code given below. private void button1_Click(object sender, EventArgs e) { string destinationPath = txtFilePath.Text.ToString(); string sourceFile = @"...
stackexchange/codereview
I have an application that has one service and 2 activities.One activity (the main one) is a preferences activity and the other one is a dialog themed activity. The service from time to time needs to open only the dialog themed activity (using FLAG_ACTIVITY_NEW_TASK). The problem is that when the preferences activity i...
stackexchange/codereview
How can I take the text from a textarea (html) and insert line breaks. Right now, if I input info to send out as an e-mail, it puts all the text on the same line without any line breaks. Using $_POST['field'] to get the data from the form and sending using PHP mail.
stackexchange/codereview
Am storing a table name in a String ugad = "INSERT INTO tb(Ugname,Ugdob,Uggender)" this is the ordinary query which functions well. But i need to store a Tablename in a string called "dept" and this string will have diff table name at diff times. How should i run it, Wat query should I Give. ugad = "INSERT INTO dept(Ug...
stackexchange/codereview
I am using a custom Router to enable pages like: mytutorialsite.com/category/:categoryname # added to application.ini resources.router.routes.categorynameOnCategory.route = /category/:categoryname resources.router.routes.categorynameOnCategory.defaults.module = default resources.router.routes.categorynameOnCategory.def...
stackexchange/codereview
I am new to PHP and would like to ask, what will be the best possible way to declare application level variables and database connection strings or configurations? How are these application level variables accessible to my scripts?
stackexchange/codereview
I have 6 required field validators and 1 custom validator. ErrorMsg is common for required fields so I have set that msg to validation summery headertext but the problem is that error message is coming with custom validator too. In case of custom validator I want only customValidator error messsage not Header text. How...
stackexchange/codereview
I have a store application and want my store items to display in a 3 column catalog. I want the 4th item to move to a new row automatically after the 3rd item is placed on the 3rd column on the first row. All items will be called from the database. How can I acheive displaying my product catalog like thumbnails. At the...
stackexchange/codereview
How i can compare type data type in VB.NET? My code: Private Function Equal(ByVal parameter As String, ByVal paramenterName As String, ByVal dataType As Type) As String If dataType = String Then return 1; End If End Function Any ideas?
stackexchange/codereview
I'm trying to create calendar for android. There is a month switcher (previous/next month). How can I call the same activity (which displays the calendar) with other parameters... e.g. previous month will have CalendarMonth(java.util.Calendar.MONTH - 1) and next month will have CalendarMonth(java.util.Calendar.MONTH +...
stackexchange/codereview
I am writing a small app that at the moment generates a random map of textures. I am drawing this map as a 10 x 15 group of "quads" which are infact all triangle strips. I use the "map" to grab an int which I then take as the location of the texture for this square in the textureAtlas. so for example 0 is the bottom le...
stackexchange/codereview
I have an interface (ICamera) which is implemented by 2 classes (FreeCamera, StaticCamera). The classes are inheriting from GameComponent. Example definiton: public class FreeCamera : GameComponent, ICamera { ... } Now I'm adding the classes to the Game Components and register one of the components to a game service...
stackexchange/codereview
In my last post I have asked feedback of my code.Today I have also crated a simple dummy project.If you think that now I have basic knowledge of delegates and events, then please tell me some difficult task for delegates and events. Below is my code- <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DelegatesAn...
stackexchange/codereview
"TreeNode.IsVisible" is available but I can't tell from it whether it's visible or partially visible - "true if the tree node is visible or partially visible". e.g. How can I tell if the following "Temporary ASP.NET" tree node is partially visible? Also, how the text hovers directly over the node is called? Is it a too...
stackexchange/codereview
I am trying to dynamically get a specific data array by using a function (parsing an excel file, so for instance, I can grab the fourth column of the file as follows): foreach ($obj->Worksheet->Table->Row as $row) { $rows[] = (string)$row->Cell[4]->Data; } My problem is im trying to dynamically specify the "cell"...
stackexchange/codereview
i have parsed xml using dom parser,but when the xml element contains no value it throws null pointer Exception.how to check this?... here my code NodeList TrackName1 = fstElmnt2.getElementsByTagName("Artist_Name"); Element TrackElement1 = (Element) TrackName1.item(0); Trac...
stackexchange/codereview
1) CMTimeMake(1,10) means duration of 1 second and timescale of 10, or 10 frames per second. This means 1s duration of video with 10 frames? 2) CMTime lastTime=CMTimeMake(1,10); CMTime frameTime=CMTimeMake(1, 10); CMTime currentTime=CMTimeAdd(lastTime, frameTime) = (2, 10) ? 2 seconds of video and with 10 frames per ...
stackexchange/codereview
If I want to get information about a user's friends in an iPhone app that integrates Facebook SDK, how do I ask the user to invite their friends to use the app and once the friend accepts the invite to ask those people to provide the "user_relationship_details" permission? In other words, what code or methods do I use?...
stackexchange/codereview
I'd like to be able to detect progressive jpegs using python and convert them to non progressive. (I'm writing a tool to manage images for android and progressive jpegs seem to break it.)
stackexchange/codereview
Hey! I need to find a way to keep my page's bounce scrolling looking good. Here's what I need: When the user scroll past a UIWebViews scrollable area (top), the background color of the view should be set to [UIColor colorWithRed:0.839 green:0.871 blue:0.871 alpha:1.000] and when the scrollable area is drug too far on...
stackexchange/codereview
I have a ListView with about 400 entries. I need to search thru it for a value and when found I'm setting it to Selected and I would like ListView to somehow scroll to this item and show it on the screen. How can I do this? Will setting .Focused do it? foreach (ListViewItem item in someListView.Items) { ...
stackexchange/codereview
I'm starting to play around with C++, coming from C and Objective C (and a bit of Java). I thought a good place to start building my skills is by writing a simple hash table from scratch, using linked lists for collisions. So I started out by writing the skeletons for each class. class HashTable { public: ... ...
stackexchange/codereview
I need to get the location of the home directory of the current logged-on user. Currently, I've been using the following on Linux: os.getenv("HOME") However, this does not work on Windows. What is the correct cross-platform way to do this ?
stackexchange/codereview
I am currently working on a Map Editor for my 3D game, but I am having some problems getting the using Microsoft.Xna.Framework.Game included. My 3D engine is stored in a library, and the constructor for it needs the Game instance and a GraphicsDevice. The GraphicsDevice is not a problem since i used some example from A...
stackexchange/codereview
I wish to find out how to get following details in android: · Account name · POP3 address · SMTP address · Username · OWA address if connecting through Exchange · Internet profile through which it is connected.
stackexchange/codereview
I am creating a simple HTTP client/server application on my local machine but I don't know why the ListenerCallback is triggered on the server; however, EndGetContext is not completing while throwing 'Web Exception: Unable to connect to remove server" on the client side. Any ideas? here's the code class Server { ...
stackexchange/codereview
I have 2 procedures (A,B) in Oracle 9i. In individual, they all work fine. But I cannot make a procedure C that calls A, which in turn calls B. I put a dbms_output.put_line before C calls A, before A calls B and one in B. Somehow, only the first put_line works. What are the possible reasons why this doesn't work? Thank...
stackexchange/codereview
Consider this Access query: SELECT prod_Parts.ID, prod_Parts.Number, prod_Parts.Revision, prod_Parts.Description FROM prod_JT_Shipping INNER JOIN (prod_JobTraveller INNER JOIN prod_Parts ON prod_JobTraveller.PartID = prod_Parts.ID) ON prod_JT_Shipping.JT_ID=prod_JobTraveller.ID; Also...
stackexchange/codereview
I'm running swish-e on a subdirectory htm/. On any search results page, the urls have the directory separator escaped, giving unusable links like htm%2Fpage.htm. How do I get swish-e or search.cgi to not escape the urls in the results? I'm using the standard search.tt in search.cgi that came with the distribution, and ...
stackexchange/codereview
I have some small questions...I have a program that stores a list of users in a database and compares on program startup if the user is in the list or is an administrator before letting them use it. At the moment, the way I'm using to check if the user is an administrator is simply by comparing the username to a string...
stackexchange/codereview
I am using: [mapView setRegion: animated:]; [mapView regionThatFits:]; methods in oder to bring map view to center after regular intervals of time but i don't want to refresh map or say locate updated locations. How can i bring map to center (or current location) without refreshing? Is there any method? Please give so...
stackexchange/codereview
Easy way to write servlet that returns table data in xml format - ? Data comes from a database table.
stackexchange/codereview
I found an interesting thing: In word 2010, select some text, and run the following VBA code: public Sub Test() With Selection.Range.Find MsgBox .Execute(Selection.Range.text) MsgBox .Found End With End Sub Both the two message box say "False", but both should be "True". Why?
stackexchange/codereview
Possible Duplicate: Function or interface marked as restricted, or the function uses an Automation type not supported in Visual Basic. Basically, im just searchign for uPnP devices using the uPNPDeviceFinder classes .FindByType method, .FindByUDN works, but FindByType gives an error: VB6 gives a compile error when I...
stackexchange/codereview
I am a newbie to .NET programming and I'm trying to create a simple Windows Forms application for a Windows Mobile device using the .NET Compact Framework 2.0. I develop using Boo and using Nant to build my application. My application compiles but it won't run. When I launch the application on my devices it states that...
stackexchange/codereview
i am trying to sort mysql data with alphabeticaly like A | B | C | D when i click on B this query runs select name from user order by 'b' but result showing all records starting with a or c or d i want to show records only starting with b thanks for help
stackexchange/codereview
I read a lot of articles about how to work with a database in WPF .Net 4 application. As I understood, the main two technologies are: LINQ to SQL (L2S) Entity Framework (EF) but sometimes I also can see mention of LINQ to Entities (L2E) technology, but can't find clear explanation what difference between EF and L2E. ...
stackexchange/codereview
Hi everyobodyI was trying hands on Gxt/Sencha and bumped on this issue of adding widgets into HorizontalPanel etc to change widgets dynamically but not got it to worked as I assumed it is gwt in base may be applicable to it too. I tried repaint() and adding widgets at runtime also but had not luck there too. Kindly sug...
stackexchange/codereview
I have a project with CodeIgniter that requires openId - the janrain libraries seem overkill. Anything simpler or specific to CI?
stackexchange/codereview
Server1: xxx.xxx.xxx.xxx server-id=1 binlog-do-db=sample master-host = xxx.xxx.xxx.xxx master-user = someuser master-password = somepassword master-connect-retry = 60 relay-log = /var/lib/mysql/slave-relay.log relay-log-index = /var/lib/mysql/slave-relay-log.index Server 2: xxx.xxx.xxx.xxx server-id=2 binlo...
stackexchange/codereview
I created a custom control which is actually just two labels inside a panel. I want to add an event so that when my custom control is clicked (which would really be clicking either one of the labels) it would return the properties of the whole control, I think that would mean that 'sender' in the event handler would be...
stackexchange/codereview
I'd like to be able to print a single reference from a Bibtex .bib file anywhere in my LaTeX document—not cite it, but print the reference, exactly as it would appear in the normal bibliography listing. So if this is a regular citation, that prints a bracketed reference: % Normal citation, appears as bracketed referenc...
stackexchange/codereview
i just want to know that is it possible that can we detect lip movement in a video using java....the exact thing is that i m looking to do a project in which we can zoom in at a position using a camera where there is some lip movement (or voice) in a frame of video...pleae tell me is it possible.....advice expected pl...
stackexchange/codereview
I am getting this ConnectionNotEstablished error whenever I try to access any page on my rails app. The error only started to occur when I installed phpMyAdmin and changed my database's password. I updated my database.yml file to reflect the change but am still getting this error. Does anyone have more details about wh...
stackexchange/codereview
Given a set of URL as follows: http://site.com/filename.html http://site.com/filename.htm http://site.com/filename.php http://site.com/filename Using the mod_rewrite module in .htaccess, how can I make it request the file at http://site.com/filename.php and show the URL http://site.com/filename
stackexchange/codereview
I have an iPod Touch 2nd generation and I'm trying to retrieve a photo from the assets library by using the photo name. I ran restore on the device to make sure it is factory 4.1. My header file has: #import <AssetsLibrary/AssetsLibrary.h> { BOOL fetching; } @property BOOL fetching; typedef void (^ALAssetsLibra...
stackexchange/codereview
[ Add HTTP:// to the beginning of picture links to make them work for you. ] [ All Steps here were done with both Release and Debug versions. The pictures shown only display debug-related information. ] OpenCV 2.1.0 does not work properly with Visual Studio 2010 on my computer when it begins to load _Video files with t...
stackexchange/codereview
I use db2look to export my DDL. But it cuts off long procedures. I use the following command: db2look -td @ -d DBNAME -z SCHEMANAME -e -c -o dump.sql If I use, for example, Toad for DB2, everything is fine.
stackexchange/codereview
i have built the dll its QtSolutions_SOAP-2.7d.dll and now i want to reference that in Qt Creator how do i do that ? thanks
stackexchange/codereview
I have never tried out the Android SDK and do not own an Android phone. However it seems that certain libraries are excellent, for example the text to speech lib. Is it possible to use this library with a desktop VM and did anybody here try this?
stackexchange/codereview
I've got a string containing an SQL statement. I want to find out whether the query will modify data or database structure, or if it will only read data. Is there some way to do this? More info: In our application we need to let the users enter SQL-queries, mainly as part of the applications report system. These SQL qu...
stackexchange/codereview
I'm using socat to create a virtual serial port with: socat PTY,link=/dev/ttySV0,echo=1 PTY,link=/dev/ttySV1,echo=1 The in my program written in C++, I open the ttySV1 port and start to read. The read function is in a while, but the problem is that the read function hangs until I send data to the port. Do you know how...
stackexchange/codereview
Is there a way to compare two objects that are generic? I'm supposed to find the largest object in a linked list. My first guess was to use the Object's class compareTo method, but I couldn't get that to work. Thanks
stackexchange/codereview
I've been making increasingly heavy use of the new @Bean configuration style in Spring 3, as a more type-safe alternative to XML bean definition files. Occasionally, though, this type-safety can prevent you do what should be valid things, due to a combination of Java's lack of type expressiveness, and Spring scoped pr...
stackexchange/codereview
I need to solve a problem like below. I'm not sure, can you suggest better method? switch(true){ case $price>100: tooHigh(); break; case (($price<=100) && ($price>70)): negotiate(); break; case (($price<=70) && ($price>20)): accept(); break; case ($price<=20): ...
stackexchange/codereview
I have a series of DIV elements that, when clicked on, trigger a DOMWindow open event. No problem there. Then I had to add keyboard accessibility. DOH!! I added tabindex attributes to the DIVs, which allows the user to tab from one DIV to the next, and I added a keypress handler to deal with the Enter Key. No problem ...
stackexchange/codereview
I am new to iPhone app development. Can someone help me in displaying eps file content in iphone. Thanks Rajeev
stackexchange/codereview
in my web site i have two databases, ASPNETDB.MDF and a self created one (database.mdf). (The don't contain a lot of data yet) But i need a relationship (foreign key) between a table in ASPNETDB.MDF and a table in database.mdf. So i guess i need to merge both databases first, would you just extend the "ASPNETDB.MDF" wi...
stackexchange/codereview
Can we copy VSAM file to a PDS member? eg. I have a VSAM file A.VSAM I have a PDS. B.PDS which has members A,B I want to copy my A.VSAM file to B.PDS(C) ... C is the new member in PDS. Can I do this? Thanks and Regards, Manasi :)
stackexchange/codereview
I am trying to create a negative of this black and white image. The opposite of white (255) is black (0) and vice versa. The opposite of a pixel with a value of 100 is 155. I cannot use convert, invert, point, eval, lambda. Here is my code but it doesnt work yet. Could you please let me know which part i am wrong. def ...
stackexchange/codereview
In the AVD manager for Android in Eclipse I can specify the size of the SD card storage, the "skin", the screen resolution, and certain hardware specs. But what if I wanted to make something that specifically resembled a particular phone, say the Droid Incredible? Then I'd also need to have a row of little buttons be...
stackexchange/codereview
I have a crash dump from a production server that shows an OutOfMemoryException. The exception itself is not relevant here. I happened to run a !dso to view the stack objects: 0:042> !dso OS Thread Id: 0x1014 (42) ESP/REG Object Name 246eeb24 109a21bc System.UnhandledExceptionEventHandler 246eeb2c 39083998 System.R...
stackexchange/codereview
How can I get the row number in the returned mysql query? Let say, if my query is returning some 5 rows as a result, I want to know that row is 1st,2nd, 3rd etc.
stackexchange/codereview
When I start Xcode and let it make a new project, no matter witch. And click, build and run. It gifs this error The Debugger has exited with status 0. [Session started at 2010-10-27 11:14:54 +0200.] GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010) Copyright 2004 Free Software Foundation, ...
stackexchange/codereview
"_OBJC_CLASS_$_NSFetchedResultsController", referenced from: objc-class-ref-to-NSFetchedResultsController in RootViewController.o I'm getting 7 of the errors above in my iphone app. I had an app that used core data but i wanted to use an rss xml parser with it, so i created a new empty app and put both of the projects ...
stackexchange/codereview
I'm trying to write down some concrete ideas for a light framework (on PHP5), with the purpose to handle a lot of requests and to make it scale well in terms of high traffic eventualities. I've already started it, but I'm not really satisfied about the coding style, which is basically composed by simple classes and he...
stackexchange/codereview
After having upgraded to PHP 5.3, my application was inundated with "Declaration of ... should be compatible with that of ..." style errors. I understand the nature of these errors, but I wish to disable them. The error_reporting setting in php.ini is "E_ALL & ~(E_NOTICE | E_DEPRECATED)", but this error continues to...
stackexchange/codereview
I'm trying to count the GPU and CPU FLOPs and I've got the source from here I renamed it to cudaflops.cu and compiled it with this makefile ################################################################################ # # Build script for project # ####################################################################...
stackexchange/codereview
I'm trying to construct a layout where there is a text view at the top of the screen and a bottom bar at the bottom of the screen. Each of these views should stay fixed in place and in between the 2 should be a ListView. TOPBAR LISTVIEW (scrollable) BOTTOM BAR My layout (see below) almost works: the top and bottom com...
stackexchange/codereview
I know that some database drivers and other libraries providing connection to external services are incompatible with coroutine-based network libraries. However, I couldn't find out if SQLAlchemy can be safely used with such libraries (namely, gevent), and if any workarounds should be applied to exclude possible errors...
stackexchange/codereview