Re: [rails-oceania] Crazy cases for Mac directories

2011-01-17 Thread Clifford Heath

On 17/01/2011, at 6:50 PM, Chris Berkhout wrote:
I think you're right about different implementations giving  
different results.


There was always one true name, and false references that aliased it.


But since that renaming brought everything into line, there must have
been and uppercase version and a lowercase version stored somewhere,
rather than a single true name being differently interpreted by
various implementations.


The single true name was the actual filesystem name (lower case), which
you repaired. The upper-case version was stored in the password file as
your home directory, which gets propagated into ENV['HOME'] when you
log in.

Clifford Heath.



Cheers,
Chris


On Mon, Jan 17, 2011 at 8:22 AM, Clifford Heath
clifford.he...@gmail.com wrote:

Chris,

I don't think this is a Ruby thing, but comes from the different ways
Ruby gets the information. getpwuid gets your password entry from
the password database. Dir[/] reads the content of the root  
directory.

The env, well, you know.

I'm not sure what the Mac implementation of Dir.pwd does, but it  
could

not be any of the above. One BSD implementation I knew had a very
clunky method: it would progressively read the entries in .., ../..,
../../..,
etc, and match the inode numbers with ., .., ../.., etc. I suspect  
that

Apple
has replaced that, as most unices have, with a kernel implementation,
but I can't see it documented in /usr/share/man/man2.

https://github.com/ruby/ruby/blob/trunk/dir.c says it's implemented  
using

my_getcwd, which is probably just a wrapper for getcwd (man 3 getcwd)
from the Apple standard library. Try a little C program and tell us  
what it

says:

#include unistd.h
void main()
{
   char buf[1024];
   getcwd(buf, sizeof(buf));
   puts(buf);
   exit(0);
}

Clifford Heath.

On 16/01/2011, at 10:59 PM, Chris Berkhout wrote:


Hi All,

Today I was surprised to find that the U in Users is uppercase
(which I consider correct) in:

Etc.getpwuid.dir = /Users/chrisberkhout
Dir.entries(/) = [..., Users, ...]
ENV['PWD']   = /Users/chrisberkhout

But lowercase in:

Dir.pwd   = /users/chrisberkhout
File.expand_path('.') = /users/chrisberkhout

Also,
- Manually changing into the uppercase directory doesn't help.
- Deeper directories with uppercase letters seem fine.
- Other root-level directories with uppercase letters seem fine.

Anyone else run into this issue?

Cheers,
Chris

--
You received this message because you are subscribed to the Google  
Groups

Ruby or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rails-oceania?hl=en.



--
You received this message because you are subscribed to the Google  
Groups

Ruby or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rails-oceania?hl=en.




--
You received this message because you are subscribed to the Google  
Groups Ruby or Rails Oceania group.

To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to rails-oceania+unsubscr...@googlegroups.com 
.
For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en 
.




--
You received this message because you are subscribed to the Google Groups Ruby or 
Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Crazy cases for Mac directories

2011-01-17 Thread Chris Berkhout
On Mon, Jan 17, 2011 at 8:22 PM, Clifford Heath
clifford.he...@gmail.com wrote:
 The single true name was the actual filesystem name (lower case), which
 you repaired. The upper-case version was stored in the password file as
 your home directory, which gets propagated into ENV['HOME'] when you
 log in.

I was also getting this:
Dir.entries(/) = [..., Users, ...]
And finder and bash only showed uppercase.

Cheers,
Chris

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] Re: Senior Technical Project Leader

2011-01-17 Thread Ben
I don't normally respond to these - but wow! Ms project  SQL - wow.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] Crazy cases for Mac directories

2011-01-17 Thread Clifford Heath

On 17/01/2011, at 9:03 PM, Chris Berkhout wrote:

I was also getting this:
Dir.entries(/) = [..., Users, ...]
And finder and bash only showed uppercase.


Oooh, right! Funky. So the HFS filesystem must have at least two
names... There's an open HFS implementation, you could probably
find out from that.

--
You received this message because you are subscribed to the Google Groups Ruby or 
Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] iPhone browser simulators

2011-01-17 Thread Adam
I was wondering what browser simulators people are using for targeting
web applications at the iphone (3  4) as well as Android. I have been
trying out iphoney to cover at least iphones but it seems kind of
buggy and only simulates an iphone 3. Are there better options out
there?

Cheers,

Adam

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] iPhone browser simulators

2011-01-17 Thread Bodaniel Jeanes
Yes absolutely. Download the iPhone SDK and install it. It comes with
the iOS Simulator an has a safari on it. You can emulate all the iOS
devices

Sent from my iPhone

On 18/01/2011, at 8:08 AM, Adam adam.b...@gmail.com wrote:

 I was wondering what browser simulators people are using for targeting
 web applications at the iphone (3  4) as well as Android. I have been
 trying out iphoney to cover at least iphones but it seems kind of
 buggy and only simulates an iphone 3. Are there better options out
 there?

 Cheers,

 Adam

 --
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] iPhone browser simulators

2011-01-17 Thread Nahum Wild
I have XCode installed and just use Apple's simulator, been a while since I
used it though as I now have all their devices to directly test with.

--nahum

On Tue, Jan 18, 2011 at 11:04, Adam adam.b...@gmail.com wrote:

 I was wondering what browser simulators people are using for targeting
 web applications at the iphone (3  4) as well as Android. I have been
 trying out iphoney to cover at least iphones but it seems kind of
 buggy and only simulates an iphone 3. Are there better options out
 there?

 Cheers,

 Adam

 --
 You received this message because you are subscribed to the Google Groups
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to
 rails-oceania+unsubscr...@googlegroups.comrails-oceania%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/rails-oceania?hl=en.



-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] iPhone browser simulators

2011-01-17 Thread Julio Cesar Ody
The emulator that comes with XCode is good, though it performs a lot
faster than a real device would, so mind that. Just fire up XCode,
create a new iPhone OS project, Build - Build and Run, hit the home
button, open Safari, and voila. There's gotta be an easier way to just
open the emulator, but I'll leave that to whoever knows.

Second, Safari latest can emulate the iPhone's user agent. It's handy
if you need a decent inspector/debugger.



On Tue, Jan 18, 2011 at 9:04 AM, Adam adam.b...@gmail.com wrote:
 I was wondering what browser simulators people are using for targeting
 web applications at the iphone (3  4) as well as Android. I have been
 trying out iphoney to cover at least iphones but it seems kind of
 buggy and only simulates an iphone 3. Are there better options out
 there?

 Cheers,

 Adam

 --
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.





-- 
http://awesomebydesign.com

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] iPhone browser simulators

2011-01-17 Thread Bodaniel Jeanes
Just use spotlight to open the simulator

Sent from my iPhone

On 18/01/2011, at 8:15 AM, Julio Cesar Ody julio...@gmail.com wrote:

 The emulator that comes with XCode is good, though it performs a lot
 faster than a real device would, so mind that. Just fire up XCode,
 create a new iPhone OS project, Build - Build and Run, hit the home
 button, open Safari, and voila. There's gotta be an easier way to just
 open the emulator, but I'll leave that to whoever knows.

 Second, Safari latest can emulate the iPhone's user agent. It's handy
 if you need a decent inspector/debugger.



 On Tue, Jan 18, 2011 at 9:04 AM, Adam adam.b...@gmail.com wrote:
 I was wondering what browser simulators people are using for targeting
 web applications at the iphone (3  4) as well as Android. I have been
 trying out iphoney to cover at least iphones but it seems kind of
 buggy and only simulates an iphone 3. Are there better options out
 there?

 Cheers,

 Adam

 --
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.





 --
 http://awesomebydesign.com

 --
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.


-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] iPhone browser simulators

2011-01-17 Thread Julio Cesar Ody
ORLY. My fault for using Quicksilver and basically never looking into
configuring it properly other than themes.

By the way Alfred's ugly. That's all.



On Tue, Jan 18, 2011 at 9:21 AM, Bodaniel Jeanes m...@bjeanes.com wrote:
 Just use spotlight to open the simulator

 Sent from my iPhone

 On 18/01/2011, at 8:15 AM, Julio Cesar Ody julio...@gmail.com wrote:

 The emulator that comes with XCode is good, though it performs a lot
 faster than a real device would, so mind that. Just fire up XCode,
 create a new iPhone OS project, Build - Build and Run, hit the home
 button, open Safari, and voila. There's gotta be an easier way to just
 open the emulator, but I'll leave that to whoever knows.

 Second, Safari latest can emulate the iPhone's user agent. It's handy
 if you need a decent inspector/debugger.



 On Tue, Jan 18, 2011 at 9:04 AM, Adam adam.b...@gmail.com wrote:
 I was wondering what browser simulators people are using for targeting
 web applications at the iphone (3  4) as well as Android. I have been
 trying out iphoney to cover at least iphones but it seems kind of
 buggy and only simulates an iphone 3. Are there better options out
 there?

 Cheers,

 Adam

 --
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.





 --
 http://awesomebydesign.com

 --
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.


 --
 You received this message because you are subscribed to the Google Groups 
 Ruby or Rails Oceania group.
 To post to this group, send email to rails-oceania@googlegroups.com.
 To unsubscribe from this group, send email to 
 rails-oceania+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/rails-oceania?hl=en.





-- 
http://awesomebydesign.com

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] [JOB] Agile Automated Test Developer (Web) - Selenium with Java or Ruby API (12 months)

2011-01-17 Thread Andrew Walker
(please respond directly to me, not the group)

Company : News Digital Media
On-site at:  Liverpool Street, Sydney
Rate: Between 400 and 700, depending on how much (good) experience you
bring
Duration: 6 months contract, expect to extend to 12 months
Seniority: Will take Junior or Senior, prefer senior

Description:

The successful candidate will be working as an integral part of an
agile software development team.

Unlike traditional roles, the candidate will be involved from planning
through to deployment.  He/she will attend requirements sessions, user
experience design workshops and will build tests at the same time as
each feature is built (before development is complete).

The test suite will be built using Selenium at some level (either the
original or the emerging webdriver version).

It is likely but not guaranteed that a scripting and/or BDD layer will
also be employed.  Depending on early trials, we may or may not use
the Ruby API.  In-house skills are Java, this will play a part in our
ultimate decision but we are keeping an open mind.

The successful candidate will be comfortable developing value-add
planning/reporting/tracking functionality around Selenium as required
and integrating into productivity tools and/or IDE.

Must have:

⁃   Web software development background
⁃   Experience in developing functional web tests

Strongly desirable

⁃   Significant experience with developing tests using the
Selenium API (Java, Ruby..)
⁃   Experience on (failed or successful) agile projects
⁃   Exposure to behaviour-driven and/or test-driven
development exposure
⁃   Cucumber, Capybara or similar tools

The candidate will be asked to discuss:

⁃   The challenges in developing and maintaining
functional test suites for web apps
-   Strategies/techniques for building resilient tests
(that don't break when a div moves or changes sequence!)
⁃   The difference between various types of automated
tests: unit, integration, functional and acceptance
⁃   The shortcomings of Selenium (or similar tools) and
how the candidate might overcome these



-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



[rails-oceania] purge an object from squid cache?

2011-01-17 Thread Fabio Vilela
Hey Guys,

My first message to the group:

I have a few instances of the same rails app providing images and a squid
proxy set up, caching the images.

I would like to purge some object through the rails app, is that possible?

for example the url /media/photos/employee/123/main.jpg would have to be
purged when the picture gets changed/replaced

Thank you all,

Fabio.

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.



Re: [rails-oceania] purge an object from squid cache?

2011-01-17 Thread Nathan de Vries
On 18/01/2011, at 3:58 PM, Fabio Vilela wrote:
 I would like to purge some object through the rails app, is that possible?


You need to configure Squid with an ACL to accept PURGE requests:

acl purge method PURGE
acl src_local src 127.0.0.0/8
http_access allow purge src_local
http_access deny  purge

Then you can send PURGE requests via HTTP:

PURGE http://example.com/foo.jpg HTTP/1.0

Or use squidclient to generate the request:

squidclient -m PURGE http://example.com/foo.jpg

There's also the 3rd party squidpurge tool [1] which allows you to remove all 
objects matching certain conditions:

purge -c /path/to/squid.conf -p 127.0.0.1:80 -se 'http://example.com/*.jpg' 
-P1


Cheers,

Nathan de Vries

[1] http://www.wa.apana.org.au/~dean/squidpurge/README

-- 
You received this message because you are subscribed to the Google Groups Ruby 
or Rails Oceania group.
To post to this group, send email to rails-oceania@googlegroups.com.
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en.