instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am new to mac os X development ,I downloaded an open source mac application ,but i couldn't able to understand the flow of execution of cocoa program.so any one can explain the program flow of a general cocoa program briefly. Thanks in advance
stackexchange/codereview
As short as possible, I have: class X { int p1; int p2; int p3; string p4; } class Y { int a1; int a2; string a3; string a4; } list<X> XLIST; list<Y> YLIST; and I want to shorten this: foreach (X x in XLIST) { Y y=new Y(); // arbitrary conversion y.a1=x.p1; y.a2...
stackexchange/codereview
I have data in an SQLite table that looks like this: user_id event_date ---------- ---------- 1000001 2008-01-01 1000001 2008-03-13 1000001 2008-07-04 1000002 2007-01-06 1000002 2008-01-01 1000002 2009-06-01 1000002 2010-12-11 For each of the user_ids I would like to select the largest...
stackexchange/codereview
I can't find any list for the various table types and if possible the basic default 'good practice' security permissions for tables types. I am referring to a complete list like this: http://www.databasejournal.com/features/oracle/article.php/3616476/Types-of-Tables-in-Oracle.htm The above list has few general but not ...
stackexchange/codereview
I am trying to write a chi square goodness-of-fit test for Beta distribution from scratch, without using any external functions. The code below reports '1' for a fit, even though kstest from scipy.stats returns a zero. Data is distributed normally, so my function should also return zero. import numpy as np from scipy.s...
stackexchange/codereview
I'm looking to use the HTML Bridge to send data currently in an ObservableCollection to some JavaScript. I'm assuming that this data would need to be in an array, rather than in an ObservableCollection, for it to be usable in JavaScript. Note: This assumption may be incorrect. Silverlight doesn't seem to have the To...
stackexchange/codereview
I noticed that (use 'somemodule :reload) doesn't reload the module if the .clj file was not modified. However I have an usecase for forcing the reload of the module even if the file isn't changed. I created a haml macro for clojure which reads an external file and generates clojure code. ( http://www.coldcode.net/2010/...
stackexchange/codereview
I'm trying to automate a website and find myself needing to get to the contents of an iframe. Since this is an internal application, I've put in this sample, which illustrates the error $ie = new-object -com "InternetExplorer.Application" $ie.navigate("http://arstechnica.com/") $ie.visible = $true $doc = $ie.docume...
stackexchange/codereview
I am trying to localize an app in Dutch, but the emulator doesn't seem to pick up and recognize the Dutch versions of my resource strings. I have a base Strings.resx file with the english translations. Then, I have Strings.nl.resx with the Dutch translations. I also have Strings.es.resx, Strings.fr.resx, and Strings.it...
stackexchange/codereview
I've never tried OO PHP before so I decided to make a simple CMS to learn more. I am having a problem loading values into a multi-dimensional array. class Article { private $index = 0; private $article; public function Article() { $get_articles = mysql_query("SELECT * FROM `articles`"); while ($result = my...
stackexchange/codereview
I know UIView's hitTest:withEvent: method digs down to the far-most view that gets the touch event, but how would you get the opposite result? The first view to get an event at a certain CGPoint? EDIT As zem pointed out, that hitTest method returns the farthest descendent in the view hierarchy. In my case, I have a map...
stackexchange/codereview
i want to call a webpage from jQuery and add the content to it to a div. The downloaded data should not undergo any parsing, it should be in raw format. I try to integrate the another application to my website. I've done some experimenting and the code does a successful request, but there seems there is no result displ...
stackexchange/codereview
I'm working on an Android application that will come with lots of data. I'd have expected to just distribute the SQLite database, but it's clear from researching this that the database can be included, but must be copied from raw to data, which if there's a good few MB of data will take up space needlessly. For my app ...
stackexchange/codereview
I'm writing a program that consists of a while loop that reads two doubles and prints them. The program also prints what the larger number is and what the smaller number is. this is the code i have so far. int main() { // VARIABLE DECLARATIONS double a; double b; whil...
stackexchange/codereview
I want to create a two stored procedures that will remove records older than N days from a stgging database. Both stored proc will call in a package to cleanup data older than N days. Stored proc A will remove records from table A.Fullimport & stored proc B will remove records from table B.weeklyimport. The same stored...
stackexchange/codereview
I'm putting together a sprite and have two questions. Something I've always wondered whether possible is negatively positioning a background picture to the right or bottom. A negative position is bread and butter stuff on the left of an element or top but what about the right and bottom? If I have a 500px by 500px div ...
stackexchange/codereview
The search query is: "product1 prod2 prod4" I need to make the mysql SELECT * FROM tableprod WHERE (prod LIKE '%product1%' AND prod LIKE '%prod2%' AND prod LIKE '%prod4%') using the mysql_real_escape_string for the input query...
stackexchange/codereview
I have a program that get's input string with file path in one JTextArea and then loads it's content to a second JTextArea. Problem is that when using JTextArea I cannot add an actionListener that will load content in the second JTextArea when leaving this field. How to get around this problem ? protected JTextArea inp...
stackexchange/codereview
How to Compile CUDA App is Visual Studio 2010 ? Here are my steps: 1. Create Empty C++ project without precompiled headers 2. Add main.cpp int main() { return 0; } Add kernels.cu I referred to sample project MAtrixMul and copied its settings step by step. it can be complied now #include "cuda.h" __global__ void Ve...
stackexchange/codereview
I have found MANY threads on packing all dependencies along with the project into one jar package, and it seems like there are many different ways to achieve this (oneJar, FatJar, Ant-build...) So cooking up my own recipe, I have (after quite some effort) managed to package the project I am working on. In this one jar...
stackexchange/codereview
I am trying to create a content provider where the key contains forward slash "/". I searched about it for quite a while but there is no place/example illustrating it. content://com.lily.provider/items/* General example, which I understand: content://com.lily.provider/items/ab What I want to do: my key is a string wi...
stackexchange/codereview
i am working in asp.net and c# i have a grid view. i have 10 columns in that grid view. I have some problems with grid view header text color. some of the columns header have link (for sorting). the color of such header text is a light blue.after clicking the blue color change to another color. some of columns header d...
stackexchange/codereview
I need to convert a text entered in a textarea, to a form like: word1|word2|word3|word4|word5 How can i do this?
stackexchange/codereview
I'm trying to convert a basic tkinter GUI program to an .exe using py2exe. However I've run into an error using the following conversion script. # C:\Python26\test_hello_con.py py2exe from distutils.core import setup import py2exe setup(windows=[r'C:\Python26\py2exe_test_tk.py']) C:\Python26\py2exe_test_tk.py is the...
stackexchange/codereview
am not too experienced in android and i am just using the TabActivity, so please bear with me. i keep seeing post about not using activites in Tabhost but views. and am not sure which is which and if thats the reason of my latest headache? i have a code with 4 tabs like this: // Category TabActivity class tab.setC...
stackexchange/codereview
I made a c extension out of a python script that was fairly labour intensive. The code itself is well tested and simple. The c extension is called with a few large lists, and it then performs some clever arithmetic and returns a few new lists. The c extension is 100% self sufficient, it doesn't use any other c function...
stackexchange/codereview
hey, I need to rotate a 2d array in such way : 4X4--> Input Output 1 2 3 4 5 1 2 3 5 6 7 8 1 2 6 4 1 2 3 4 5 3 7 8 5 6 7 8 6 7 8 4 or for odd 5X5--> Input Output 1 2 3 4 5 6 1 2 3 4 6 7 8 9 10 1 2 7 8 5 1 2 3 4 5 6 7 3 9 10 6 7 8 9 10 1 8 9 4 5 1 2 3 4 5 2 3 4 5 10 can someo...
stackexchange/codereview
Is there any conventions should I follow while using QueryStrings in ASP.NET? For eg: which is better one? 1 or 2 ? 1. url?stock_trnasfer_ID=10 2. url?sid=10
stackexchange/codereview
I have navigation menu. When clicked, only page content div should be updated from html content file (that in the server) without doing a full page refresh. How can I achieve this using jQuery?
stackexchange/codereview
Ok, so I have an XML file that pretty much looks like this: <Templates> <Template> <TemplateID>00X500000011iTSEAY</TemplateID> <To> <To type='User'>00550000000mfOU</To> <To type='User'>00550000000mb3pAAA</To> <To type='Group'>00G50000001PiHz</To> <To ...
stackexchange/codereview
It's kind of a silly question, but what would be the maximum INT value of a time() and it's future date, e.g. 1st January 2999 Would time() ever get to that value? Going for a large time() value would return this: Thu 1st Jan 1970 1:00AM A normal int date 1287320788 - outputs today's date: Sun 17th Oct 2010 2:06P...
stackexchange/codereview
Hello I need a good SCM with integration in Visual Studio 2010 and ability to work over internet, I mean other users should be able to checkin/checkout files through internet/network. I saw Git and its Extensions but I had problem with VS Integration. Its toolbar buttons and menu items didn't respond to my clicks, it j...
stackexchange/codereview
I have a table that contains link_ids that relate to another table; and this table has column titled ammount that stores values typed int. To retreive some total ammount along with individual values I query it as follows: SELECT ip, ammount, (SELECT SUM(ammount) FROM stats WHERE link_id = $link_id) as total_ammount FRO...
stackexchange/codereview
I was wondering what these terms are in php...I looked up google but couldn't find any good answers. I would appreciate if someone here can help me about it. Thanks a lot.!!!
stackexchange/codereview
Is it possible to install "Windows Phone Developer Tools RTW" on a machine without installing Visual Studio and Expression Blend? The reason I am asking is that I want to install it on a build server. http://www.microsoft.com/downloads/en/details.aspx?FamilyID=04704acf-a63a-4f97-952c-8b51b34b00ce&displaylang=en
stackexchange/codereview
I have seen strange behavior when I marked an object as abstract="true". how the object will behave when I marked an object as abstract="true"? what is abstract="true". when to use abstract="true"? becuase I can inherit the property by using parent="object id" without marked parent object as abstract="true". the strang...
stackexchange/codereview
I'd like to be able to create dynamic menus associated with certain object. Let’s say, I will have 3 listview container with one style where I also have a Menu. I need to generate different menu items from collection of the RoutetUICommands in relation on each listview. I was trying to solve this puzzle but took me a w...
stackexchange/codereview
Websites involve email functions, such as sending registration information, password reminders, etc. I try to routinely run functional tests of complete websites from outside the website, and need a way to receive these test emails from an httplib based test script. Previously, I have used anonymous email services, whe...
stackexchange/codereview
We cannot deploy our app as Maven is trying to update glassfish plugin from maven.ocean.net.au repository, although no such repository was defined in our pom. The problem is maven.ocean.net.au isn't online and therefor our build fails. Has this happened to anybody else?
stackexchange/codereview
I wrote a tool that looks in several places for an INI config file: in /usr/share, /usr/local/share, ~/.local/share, and in the current directory. c = ConfigParser.RawConfigParser() filenames = ['/usr/share/myconfig.conf', '/usr/local/share/myconfig.conf', os.path.expanduser('~/.local/share/my...
stackexchange/codereview
I have a tab (Internal Development Review) on one of my work item forms that I would not like to show to all users: Is it possible to hide this from a specific user group (or conversely, to grant it to another group)? I cannot find a way to put permissions on a tab.
stackexchange/codereview
Initially, after upgrading to ASP.Net 4.0, I was receiving request validation errors, which I wanted to stop. I was able to do this by setting the httpruntime to use 2.0 of the request validation, as mentioned here: Request Validation - ASP.NET MVC 2 However, I also need to allow longer querystrings, and want to make u...
stackexchange/codereview
I was over at MailChimp's css inliner http://www.mailchimp.com/labs/inlinecss.php and I was wondering if there are any classes out there that can do this, I'd love to have it in my email code instead of going all the way over to MailChimp. Basically I'm looking for the code, behind the page or something very similar. ...
stackexchange/codereview
I need to get ServletContextResource in class that implements InitializingBean, how is that possible? I tried with following, code but it get expcetion for that code. Code: public class InitBean implements InitializingBean { @Autowired private ServletContextResource context; @Override public void afterPro...
stackexchange/codereview
html code to make image size are same with table size. bacause i want to create a newsletter.. and how to set table size in html
stackexchange/codereview
The problem I'm trying to solve is not dissimilar to Subversion out of sync with production code, easiest way to update subversion but somewhat different. I converted a (Java) project from CVS to SVN (using cvs2svn, retaining full history) - say at version 1.00 Development on version 2.00 continued with the code in SVN...
stackexchange/codereview
We overlap two Divs using "postion:absolute" and z-index. http://jsfiddle.net/z5GXV/ The text in the green zone (div id="Zone2") is hide by text in the yellow zone (div id="Zone3"). Any help on how to display the text? Edit1: We can't use nested divs.
stackexchange/codereview
Can I just say from the outset that this isn't a homework question as I'm way to old for that. But is related to an open source radio decoder project I'm working on .. http://github.com/IanWraith/DMRDecode Part of the radio protocol I'm interested uses a Hamming (7,4,3) code to protect 4 bits in a particular part of a...
stackexchange/codereview
opengl ver: opengl es 1.x platform: iphone The blending equation: (Rs Sr + Rd Dr, Gs Sg + Gd Dg, Bs Sb + Bd Db, As Sa + Ad Da) How does it work? I don't understand if I set both src and des to GL_ONE, and I have src color red (255,0,0) and des color black (0,0,0), the result will be (0,0,0) Can someone explain how the...
stackexchange/codereview
Can anyone tell me how to make an EditText not editable via XML? I tried setting android:editable to false, but it is deprecated; and it didn't work.
stackexchange/codereview
How do I deal with: Current code looks like; class Class1 : ISomeInterface IFooService _service; void SomeMethod(){ _service = new FooService(this); ..... } class FooService : IFooService public FooService(ISomeInterface class1Implementer) { _class1Implementer = class1Implement...
stackexchange/codereview
I am in process of creating a dialog IDD_DIALOG2 which i want to be in the same size as existing dialog IDD_DIALOG1, what would be the easiest way to do this in VC++?
stackexchange/codereview
I have a table with rows like id, length, time and some of them are duplicates, where length and time is the same in some rows. I want to delete all copies of the first row submitted. id | length | time 01 | 255232 | 1242 02 | 255232 | 1242 <- Delete that one I have this to show all duplicates in table. SELECT idgarmi...
stackexchange/codereview
How do i run s3cmd from PHP. What i am trying to do is backup certain files on s3 and will be storing its public url in database. $result = shell_exec("s3cmd put --skip-existing --acl-public /var/www/RD/temp.txt s3://xxxx/xxx/xx/"); However when i run the .php file .. nothing happens.. I have gone through the link ment...
stackexchange/codereview
I have a1.png image. I want to apply a color effect on that image. By "apply a colour" I mean a foreground color with alpha < 1. Does anyone have a solution?
stackexchange/codereview
I have a table in a PostgreSQL database which tracks usage of various resources. The (simplified) Schema of the table is that each row has a ResourceID, StartTime Timestamp and EndTime Timestamp. Each row in the table represents a timespan in which the resource was in use, so the table might look like: (Note, timestamp...
stackexchange/codereview
as asked above. cheers in advance
stackexchange/codereview
I've got a list like: alist = [[a,b,(1,2)], [a,b,(1,2)], [a,b,(1,2)]] I want to remove the last element from all the elements in a list. So the result will be: alist = [[a,b], [a,b], [a,b]] Is there a fast way to do this?
stackexchange/codereview
If I use new Image() to load up an image in JavaScript, will it use a cached version if possible, or will it always load up a fresh copy? var imgObj = new Image(); imgObj.src = 'http://...'; imgObj.onload = function (loadedImg) { }
stackexchange/codereview
I trying to create an "edit in place" table cell. You click an edit link, and a text area appears in its place. I also only want to display the edit link when I hover over the table row. The problem I'm having with the following code is that the edit link always appears when you hover over the table row. How can I make...
stackexchange/codereview
I've got a fiddle going here to show what I'm trying to do. I have a table that is generated dynamically, so the columns could appear in whatever order the user chooses. So, I'm trying to get the index of two specific headers so that I can add a CSS class to those two columns for use later.
stackexchange/codereview
I have this: curl -H \"api_key:{key}\" http://api.wordnik.com/api/word.xml/dog/definitions How do I parse this (within the commandline) to make it take whatever's in between <text> and </text> in this page?
stackexchange/codereview
In my page, I have a form inside a div. When I resize the browser, some parts of the form won't be seen and scroll bars will appear. How can I do it in css wherein after resizing, the whole form will still be visible without having to use scroll bars?
stackexchange/codereview
What's the main difference between the Tkinter geometry managers grid and pack? What do you use for your projects ? If grid is better to align object, what the main purpose of pack?
stackexchange/codereview
I am trying to build in color-coding in my site for a particular class method, such that some values display in a different color if they are low. I just defined a class method that translates numbers stored in my database to words that are displayed to my users. # model.rb def numbers_explained numbers_explained = c...
stackexchange/codereview
In my project I need to check if a date string evaluates to a proper Date object. I've decided to allow yyyy-MM-dd, and Date formats [(year, month, date) and (year, month, date, hrs, min)]. How can I check if they're valid ? My code returns null for "1980-01-01" and some strange dates (like 3837.05.01) whon giving a st...
stackexchange/codereview
Is it possible to play a MIDI file (existing on the hard drive) from Common Lisp? If so, how?
stackexchange/codereview
How would I write a query using entity framework where I need to make a list with a column for the product, category and parent category. I have not figured out how to get the parent category. Any Help is appreciated. So far I have the following: from product in Products select new { Ctg = (from prdCategory in ProductC...
stackexchange/codereview
GUI apps for Win/Linux/Mac in C/C++: I want know how to write a "pure," "native," "API-level" apps for Windows, Linux, and Mac in C++. I don't want "one-code run-anywhere", but native code for every OS. Solution For Windows: Just use Mingw/Win32 API; it's very simple and clear. That way I like programming under Window...
stackexchange/codereview
i want to hide the soft keyboard when i click out side of editbox in a screen. how can i do this?
stackexchange/codereview
I have a table with columns 'customer' and 'location' and I need to check top 10 locations visited by unique customers. I'm ready to do the following: SELECT location FROM myTable GROUP BY location load results to an array (maybe a hundred of few hundreds of locations) SELECT COUNT(*) AS total, tbl.location AS LOCATIO...
stackexchange/codereview
Loading a custom input view into a UITextField, I can arbitrarily change the keyboard type of the standard keyboard between UIKeyboardTypeAlphabet and UIKeyboardTypeNumberPad. Just call something like: [editingField setKeyboardType:UIKeyboardTypeNumberPad]; [editingField reloadInputViews]; And viola! There is your n...
stackexchange/codereview
How create an iphone-like search for android? I could not alter the standard search android. Is it possible? I decided to make a my custom widget. Have any ideas how best to do this?
stackexchange/codereview
I have a code , but I do not how can I find copy file progress . what should I do to recive file copy progress ? public sealed class FileRoutines { public static void CopyFile(FileInfo source, FileInfo destination) { CopyFile(source, destination, CopyFileOptions.None); } public static void Cop...
stackexchange/codereview
I am trying to figure out what is causing this crash. I have built and given the app to our testers but we cannot seem to reproduce this reliably. It just happens sometimes... Thread 0 Crashed: 0 libobjc.A.dylib 0x000027da objc_msgSend + 18 1 Foundation 0x00032896 -[NSURLConnectio...
stackexchange/codereview
Here's the Schema in mysql: CREATE TABLE IF NOT EXISTS `labs_test`.`games` ( `game_id` INT NOT NULL AUTO_INCREMENT , `key` VARCHAR(45) NOT NULL , `config` BLOB NOT NULL , `game_version` BIGINT NOT NULL DEFAULT 1 , PRIMARY KEY (`game_id`) , INDEX `key` (`key`(8) ASC) , INDEX `version` (`game_version` ASC...
stackexchange/codereview
I would like to stream video from an iPhone camera to an app running on a Mac. Think sorta like video chat but only one way, from the device to a receiver app (and it's not video chat). My basic understanding so far: You can use AVFoundation to get 'live' video camera data without saving to a file but it is uncompres...
stackexchange/codereview
If I attach to a application's process and debug, then stop debugging, and recompile a dependent assembly, is it possible to add logic to my application which does an unload/re-load to that assembly such that I'll be able to re-attach to the process and debug again without re-starting?
stackexchange/codereview
I have a class that constructs a new object to add to the internal state of an object I am mocking... something like public class foo { public bar raz; public foo(bar raz) { this.raz = raz; } public void InsertItem() { raz.Insert(new FooB...
stackexchange/codereview
I'm looking for some solution for creating modal dialog box, like when you are not logged in or donot have enought reputation, and try to vote on some question or answer at stack overflow... That orange box that is show... Can someone help me?
stackexchange/codereview
I have a simple ActionMailer class like this: class MyMailer < ActionMailer::Base def mail(from, to, cc, bcc, subject, message, sent_at = Time.now) @subject = subject @recipients = to @from = from @cc = cc @bcc = bcc @sent_on = sent_at @body["message"] = message @headers = {} end end...
stackexchange/codereview
I have a Tree View control for a Windows Application that uses the CheckBoxes property. Sometimes (often) when a Tree Node is either checked or unchecked, I get Stack Overflow Exceptions in my static methods below. Could someone point out why? Maybe even show me how to do this the right way? In the After Check Event, I...
stackexchange/codereview
Ok so the official Twitter Share button has stopped display the counter if the count is 0. I've fixed this before with the Facebook share button (wants 3 shares before it shows the counter), but can't seem to fix it with the twitter button. Has anyone had any luck overriding this and forcing the counter to show at all ...
stackexchange/codereview
I'm facing a problem initializing an array with pointers to members of a structure. The structure members have to be accessed through a structure pointer. The reason for this is we initialize the pointer at runtime to a memory mapped address location. The following code snippet is an example of the problem; #include <...
stackexchange/codereview
Ok I have this script where I read in a CSV (converted from a XLS) and save an ID-field as well as a date-field into an array. Like so: New-Object PSObject -prop @{ TheId = $_."The ID"; TheDate = [DateTime]::Parse($_."The Date") } It works like a charm and I get a nice array of objects with the two properties ...
stackexchange/codereview
I'm new with objective-c (and obviously iphone development) and I have to dynamically create UI layout of my aplication, to be more precise I have to create N (3 for example) different views which are connected with UIPageControl (link). After that, I have to add various dynamically created controls on created views. A...
stackexchange/codereview
What pattern/architecture do you use in a 3-tiered application using NHibernate that needs to support retries on transaction failures, when you are using the Session-Per-Request pattern? (as ISession becomes invalid after an exception, even if this is a deadlock or timeout or livelock exception).
stackexchange/codereview
How do you detect the last record in a result set when using php and mysql. In ASP its EOF (End of File). Whats the php/mysql equivalent? I'd like to know the last record so i can draw a line after it or close a tag or anything else.
stackexchange/codereview
I am trying to start openOffice as a service on CentOS(non-graphical) server. soffice -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" & > /dev/null 2>&1 How ever I am getting below error Set DISPLAY environment variable, use -display option or check permissions of your X-Server...
stackexchange/codereview
Mercurial provides the command parents to examine a given revision's parent(s). This can easily be used to Traverse the DAG backward. I need to traverse the DAG forward. Is there a hg children command?
stackexchange/codereview
I have total 3 activities. First activity(A) starts second activity(B). From Activity B, 3rd activity(C) is called. Activity B, shows list with checkbox to select items and single OK button. On clicking OK button Activity C is called with selection. When user clicks BACK button in Activity C, by default Activity B is ...
stackexchange/codereview
I'm trying to write my JSON object to a .json file on the server. The way I'm doing this now is: JavaScript: function createJsonFile() { var jsonObject = { "metros" : [], "routes" : [] }; // write cities to JSON Object for ( var index = 0; index < graph.getVerticies().length; index++) ...
stackexchange/codereview
I'm trying to get this animation to delay for 60 seconds and take 125 seconds to complete it's animation cycle. then repeat infinitely. the problem is that the delay only lasts 20 seconds. Is there a limit on the delay you can specify? or, perhaps a better way to do what I'm attempting? here's my code: - (void)firstAn...
stackexchange/codereview
as we all see Google was increased his country list on android market on ( 30 countries for selling) and I saw some talks here about this theme , but I did not find quality answer .. My question is there any company or person etc. who make some service for publishing android app on android market from develop...
stackexchange/codereview
I wanna make a function that erases everything inside of a multiple select using jQuery. Also if it could remove some text from text fields it'd be good too.
stackexchange/codereview
Is it possible to somehow monitor who "Likes" my Facebook page, by intercepting the clicks in the Facebook Like Box? http://developers.facebook.com/docs/reference/plugins/like-box I would like to find out if the user who comes to my site already likes it, and enable some additional functionality based on this (for exa...
stackexchange/codereview
Im looking for a way to select the innermost div with PHP for example: <div> <div> <div> - </div> </div> <div> <div> <div> - </div> </div> </div> </div> The DIV's containing the - would be selected in the NodeList Im us...
stackexchange/codereview
I have a project which includes aprox 100 images and 101 files. which creates the application size 85MB on itunes. users can't download that much huge application. Is there any way to download the sound files in resources of xcode project instead of adding all the files in project and then upload it to itunes? Thanks g...
stackexchange/codereview
I'm currently trying to write an iPhone companion to a website that I'm developing. I'm trying to get JSON data from my website by making a controller a delegate of the NSURLConnection. Here's the problem though, I have an NSMutableData object named responseData initialized like so: responseData = [NSMutableData dataWi...
stackexchange/codereview
I have something like: $client = new Zend_XmlRpc_Client('<XML-RPC URL>'); $result = $client->call('<method name>', array( ... )); I get an XML string in $result. Is Zend capable of marshalling this XML into some object or associative array? If Zend doesn't marshall this automatically and I have to do so using plain P...
stackexchange/codereview