I am looking for a step-by-step Mercurial guide for iPhone projects. Please assume:
hg already installed
the audience is comfortable with command line operations
everything is on OS X
As a newbie, I am particular interested in:
what files should be excluded
how to exclude above files
guideline/suggestion of naming builds
any relevant…
Wordpress themes are beautiful!
Is there any guideline to use Wordpress themes in a rails app? Even better, are there rails app templates which can use the Wordpress themes already?
Thanks!
What is the meaning of *~ in glob syntax? For example, in a sample .hgignore file:
syntax: glob
.DS_Store
*.swp
*~.nib
what is difference between a *~.nib and *.nib ? Thanks
When rotating a View from UIInterfaceOrientationPortrait to UIInterfaceOrientationPortraitUpsideDown on the iPad simulator, there is a white border along one side of the view (see diagram, lower left of the image). The white border shows only on one side, but not the opposite side. How can I prevent (hide) it? Thanks!
I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions:
what are the right ViewControllers to use?
(link) what is the tile strategy? (I put this in another question, as it's not iPhone specific)
Requirements:
whole image (though…
Hi,
Im still having issues using HttpWebRequest.
For some reason sometimes in my app the call just times out...
HttpWebRequest req = null;
req =
(HttpWebRequest)WebRequest.CreateDefault(new Uri(aRequest));
req.PreAuthenticate = true;
req.AllowAutoRedirect = true;
req.KeepAlive = false;
.....
resp =…
In one iPhone app, I'd like to add drop shadows to a few icons dynamically (the angle of the shadow is not fixed). Is there any built-in API for this purpose? If not, how can this be done? Thanks!
This is Part 2 of this question and thanks very much for David's answer. What if I need to extract dates which are bounded by two keywords?
Example:
text = "One 09 Jun 2011 Two 10 Dec 2012 Three 15 Jan 2015 End"
Case 1 bounding keyboards: "One" and "Three"
Result expected: ['09 Jun 2011', '10 Dec 2012']…
A periodic computer generated message (simplified):
Hello user123,
- (604)7080900
- 152
- minutes
Regards
Using python, how can I extract "(604)7080900", "152", "minutes" (i.e. any text following a leading "- " pattern) between the two empty lines (empty line is the \n\n after "Hello user123" and the…
(this is related to another question about implementation on iPhone)
I have a large image, size around 30000 (w) x 6000 (h) pixels. You may consider it's like a big map. I assume I need to crop it up into smaller tiles. Questions:
what is the tile strategy?
Requirements:
whole image (though…
I'm currently working with systems that has quite a lot of configuration settings that are environment specific (Dev, UAT, Production). Does anyone have any suggestions for minimizing the changes needed to the config file when moving between environments as well as minimizing the duplication of…
I zipped a rails project from OS X and sent it to a colleague who works on Windows. He updated the source, zipped the whole project folder and sent the zip file back to me.
After unzipping the project, I found that the file permissions information is kind of lost. For example, the…
I am look for a server side PDF library (or command line tool) which can:
split a multi-page PDF file into individual PDF files, based on
a search result of the PDF file content
Examples:
Search "Page ???" pattern in text and split the big PDF into 001.pdf, 002,pdf, ...…
So according to my testing, If you have something like:
Module modA = new AbstractModule() {
public void configure() {
bind(A.class).to(AImpl.class);
bind(C.class).to(ACImpl.class);
bind(E.class).to(EImpl.class);
}
}
Module modB = New…
How can I find as many date patterns as possible from a text file by python? The date pattern is defined as:
dd mmm yyyy
^ ^
| |
+---+--- spaces
where:
dd is a two digit number
mmm is three-character English month name (e.g. Jan, Mar, Dec)
yyyy is four…
In a new app, I plan to let users download their own files and stored them inside iPhone. The process is typically:
iPhone present a web page by UIWebView, in which there are several links to .zip files
the user browser the page and click on one of the .zip file…
Chinese characters can be view horizontally and vertically. I want to let users have both options. How can this be done in an iPhone views?
e.g.
+-------------------------+ +-------------------------+
| Hello, I am a newbie. | | …
Hello,
I am trying to implement Type Hinting of PHP5 on one of my class,
class ClassA {
public function method_a (ClassB $b)
{}
}
class ClassB {}
class ClassWrong{}
Correct usage:
$a = new ClassA;
$a->method_a(new ClassB);
producing error:
…
First time I saw a class Kase, I was scratching my head.
My guess it's something to do with a conflict of the keyboard case. BTW, since when, for which language(S), it becomes a norm?
I have an simple array
array = ["apple", "orange", "lemon"]
array2 = [["apple", "good taste", "red"], ["orange", "bad taste", "orange"], ["lemon" , "no taste", "yellow"]]
how can i convert in to this hash whenever element in array match the first element of…
Since I cannot pre-render all the images in PNGs and real-time image transformation functions are required, namely:
skew
perspective
(like the transform action found in Photoshop)
Which API (CoreAnimation? OpenGL ES?) should I look into? Even better, is…
In touchesBegan:
CGPoint touch_point = [[touches anyObject] locationInView:self.view];
There are tens of UIImageView around, stored in a NSMutableArray images. I'd like to know is there a built-in function to check if a CGPoint (touch_point) is inside one…