James Lawrie

United Kingdom

twitter.com/stwange

Age: 25

It's not the server's fault, it's yours.

Mar
14
awarded Yearling
Mar
14
awarded Yearling
Dec
19
awarded Enlightened
Dec
19
awarded Nice Answer
Oct
26
comment Truncated label titles in xib (new project). Any idea what I'm doing wrong?
Thanks, edited.
Oct
26
revised Truncated label titles in xib (new project). Any idea what I'm doing wrong?
edited body
Oct
26
asked Truncated label titles in xib (new project). Any idea what I'm doing wrong?
Oct
23
comment Weird PHP upload behaviour
Try uploading smaller files, as small as possible. eg. will 1kb upload? If it will, determine the size that breaks it by uploading something half way between that and your current failing files, then split the difference in half again.
Oct
23
answered Mac OS X Lion can't SSH to AWS?
Oct
22
comment how to forward IP request to a specific port
if ts.domain2.tld points to the same IP address as ts.domain1.tld, it won't work.
Oct
22
comment how to forward IP request to a specific port
Don't use hostnames, use IP addresses. If you have three domains on that server but only one IP, as far as IPTables is concerned you only have one "domain". If you can't redirect :25565 for that IP you can't use this method. I'm not sure what -d ts.domain.tld is supposed to be - try just copying my rules as they are and replacing ports and IP addresses only.
Oct
22
comment how to forward IP request to a specific port
You won't because iptables --list doesn't show the nat table by default. Try iptables -t nat --list
Oct
22
comment how to forward IP request to a specific port
See my "it's not recommended" in the above comment. My comment was only in response to "it may not even be possible", which it is. I've given OP a solution which doesn't depend on hostname lookups.
Oct
22
comment how to forward IP request to a specific port
IPTables can do hostname lookups but it only resolves them when the rules are loaded. It's not recommended. I think IP is fine in this instance though.
Oct
22
comment Setting a mapped drive in Virtual hosts causes apache to not start
I don't know how windows does mapping, but what if you add another \ to the end? So \Site\? It might be that without the \ it's seeing it as a map, and doesn't follow it as a directory unless you add it.
Oct
22
answered how to forward IP request to a specific port
Oct
22
comment After xcode crash some buttons have either empty titles or are partially truncated
Thanks CodaFi. I'll submit a bug report today. In the meantime, do you know how I can rectify this? Somebody told me that deleting the nib and starting again with the UI would do it, but it's storyboard and I don't know what the equivalent is for that. I was then told not to look for it because it's definitely not corruption. So I'm not sure where to look.
Oct
22
comment After xcode crash some buttons have either empty titles or are partially truncated
How do I do that roronoa?
Oct
22
comment Variable becomes NULL in IF statement
+1 to above. If you're accidentally unsetting $video in condition, you will end up with null. A way to test this is to run echo $video after the IF and see if it's still null.
Oct
22
comment How do I change a button's autoResizingMask when using storyboard?
I don't seem to have an instantiation of my view, or an object called TestProjectView I can instantiate. Where can I get it from? I tried MainStoryboard.storyboard but it doesn't find it as a class.
1 2 3 4 5