Forum: Database Design Sep 15th, 2008 |
| Replies: 7 Views: 1,859 |
Forum: Ruby Apr 24th, 2008 |
| Replies: 5 Views: 2,401 Re: Hi No problem, its not the most obvious solution |
Forum: Ruby Apr 15th, 2008 |
| Replies: 5 Views: 2,401 Re: Hi Did your source file definitely have a .rb extension? Did anything at all appear in the output window? |
Forum: Ruby Apr 15th, 2008 |
| Replies: 1 Views: 1,780 Re: having trouble executing ruby coding Installed rails? I know its not the be-all and end-all of ruby web development but it is decently documented and probably the easiest way of getting an up and running ruby-based webapp. |
Forum: IT Professionals' Lounge Apr 7th, 2008 |
| Replies: 1 Views: 519 Re: Urgent piece of advice is needed! Sounds like watir (http://wtr.rubyforge.org) will do what you want.
Here (http://wiki.openqa.org/display/WTR/Example+Test+Case) is an example of how to set up a google search |
Forum: *nix Software Apr 7th, 2008 |
| Replies: 15 Views: 2,788 Re: MORE iPod troubles Easiest way is to dist-upgrade to hardy; the latest ipods (i.e. classic) should then work (i use rhythmbox on debian sid and it works fine) |
Forum: IT Professionals' Lounge Apr 7th, 2008 |
| Replies: 8 Views: 1,077 |
Forum: MS SQL Mar 25th, 2008 |
| Replies: 3 Views: 1,478 |
Forum: Database Design Mar 18th, 2008 |
| Replies: 5 Views: 886 |
Forum: MySQL Feb 5th, 2008 |
| Replies: 3 Views: 464 |
Forum: MS SQL Jan 21st, 2008 |
| Replies: 2 Views: 484 Re: New to MS SQL 2000 Books Online (http://msdn2.microsoft.com/en-us/library/aa257103.aspx) is probably a decent way to start.
Also I suggest trying some queries with the Northwind database; work out how to add criteria... |
Forum: Ruby Jan 21st, 2008 |
| Replies: 4 Views: 4,868 |
Forum: Site Layout and Usability Jan 9th, 2008 |
| Replies: 22 Views: 4,040 |
Forum: IT Professionals' Lounge Jan 6th, 2008 |
| Replies: 2 Views: 1,381 Re: Django vs. Rails ... Neither language is 'more powerful' - you can achieve the same thing in either.
And while Google use Python heavily afaik they don't use Django (I may be wrong but I don't think they do).
Both... |
Forum: Ruby Jan 2nd, 2008 |
| Replies: 5 Views: 2,719 |
Forum: Ruby Jan 1st, 2008 |
| Replies: 3 Views: 2,459 Re: Simple Rails Application trouble Looking at your code I can't see whats wrong.
What happens if in your view you do
<% for st in @stocks -%>
<%= h(st.inspect) %><br />
<% end %> |
Forum: IT Professionals' Lounge Dec 31st, 2007 |
| Replies: 5 Views: 1,566 Re: help with dual boot xp and ubuntu 'starting up' ?
Do you mean the Windows loading screen?
If it gets to the 'Loading Windows XP' screen you may need to do a system repair with an XP disk.
If it doesn't get as far as the windows... |
Forum: MS SQL Dec 29th, 2007 |
| Replies: 5 Views: 699 Re: Adding a database to my rogram. sqlite (http://www.sqlite.org/) is exactly what you're after.
"...SQLite is an embedded SQL database engine. Unlike most other SQL databases, SQLite does not have a separate server process. SQLite... |
Forum: MS SQL Dec 29th, 2007 |
| Replies: 2 Views: 608 |
Forum: Ruby Dec 29th, 2007 |
| Replies: 5 Views: 2,719 Re: My first Ruby programming question :-) Although your solution is fine it can be a little more readable (and re-usable) in rails.
In the controller:
def banner(text)
span = String.new
text.split(//).each_with_index do |c, i|
span... |
Forum: Geeks' Lounge Dec 10th, 2007 |
| Replies: 27 Views: 1,879 |
Forum: Ruby Dec 5th, 2007 |
| Replies: 1 Views: 2,382 Re: single table inheritance From my experience using STI isn't too bad so long as too many models are involved; it can get messy using the rails method with the 'type' column.
Of course you could try with CTI but its... |
Forum: Geeks' Lounge Nov 28th, 2007 |
| Replies: 65 Views: 3,160 |
Forum: MySQL Nov 28th, 2007 |
| Replies: 5 Views: 1,899 Re: 3 condition query $condition1 = @$_GET['cond1'] ;
$condition2 = @$_GET['cond2'] ;
$condition3 = @$_GET['cond3'] ;
mysql_connect("dbhost","dbuser","dbpass") or die("Unable to connect to... |
Forum: MySQL Nov 27th, 2007 |
| Replies: 1 Views: 1,101 Re: Help in Join table I find it easier to specify the join as follows and seperate the where clause; if your data is correct the following query should work:
select
ap.name
,ap.add
,p.status
... |
Forum: Ruby Nov 9th, 2007 |
| Replies: 4 Views: 4,529 Re: Multiple db tables in Rails... You can add as many :has_many and :belongs_to statements to each model as you like.
Then you can access the associated like this:
#in controller
def view
@actor = Actor.find(1)
end |
Forum: Ruby Oct 18th, 2007 |
| Replies: 4 Views: 3,010 Re: Getting Started Glad you're so enthusiastic about it - another invaluable resource when you're starting out is IRC; lots of knowledgable people in both #ruby-lang and #rubyonrails on freenode if you get stuck and if... |
Forum: Geeks' Lounge Oct 2nd, 2007 |
| Replies: 16 Views: 1,289 Re: software v web How do you get experience in development?
What languages do you currently know/use? Find one you like (I suggest reading up, downloading and trying some out).
Once you've picked a starting point... |
Forum: Site Layout and Usability Oct 1st, 2007 |
| Replies: 10 Views: 2,045 Re: Best Viewed Sreen Resolution If your site is technical I wouldn't imagine that many would be using 1024x768.
Saying that, it should still look ok in that resolution. If you're using CSS properly your site should look decent at... |
Forum: Geeks' Lounge Sep 11th, 2007 |
| Replies: 201 Views: 12,012 |
Forum: MS SQL Sep 11th, 2007 |
| Replies: 1 Views: 865 Re: Sql Query Create a job, insert what you get from your query into another table. |
Forum: Ruby Sep 2nd, 2007 |
| Replies: 3 Views: 3,000 |
Forum: MySQL Sep 2nd, 2007 |
| Replies: 2 Views: 803 Re: Calculating a fine select id,
( cast(current_timestamp as date) - cast(return_date as date) ) * 3 as fine
from books
where
return_date > current_timestamp
This is how to do the select in postgresql however the... |
Forum: Geeks' Lounge Aug 28th, 2007 |
| Replies: 25 Views: 3,116 Re: Hello from Ubuntu Feisty (Ubuntu 7.04) has a 1 click installer for 'restricted' drivers; it will work with pretty much any Radeon/GeForce card, and all onboard Intel graphics work out of the box.
From recent installs... |
Forum: IT Professionals' Lounge Aug 2nd, 2007 |
| Replies: 114 Views: 96,147 |
Forum: IT Professionals' Lounge Jul 20th, 2007 |
| Replies: 5 Views: 1,119 Re: What language do you use? I would recommend python; a cross-platform, dynamic object-orientated language that you can use for all types of programming. Python is free, there is lots of documentation, a very good developing... |
Forum: MySQL Jul 15th, 2007 |
| Replies: 1 Views: 3,040 Re: Nested insert queries in a single query I suggest using transactions (you need the InnoDB storage engine for this).
start transaction
insert into blah...
insert into blah...
commit
If one of your statements causes an error none... |
Forum: Geeks' Lounge Jul 11th, 2007 |
| Replies: 55 Views: 3,356 Re: call centers!!! When I transferred from Orange to O2 last year I couldn't get hold of someone to give me my PAC code (to transfer my number to O2); the queue was massive - probably trying to make people give up and... |
Forum: Ruby Jul 11th, 2007 |
| Replies: 2 Views: 2,624 Re: plugins Depends on the plugin but generally it should be a case of adding the repository url:
script/plugin source url
Then installing it..
script/plugin install ferret (or whatever you wanna install) |
Forum: MySQL Jul 9th, 2007 |
| Replies: 2 Views: 947 |