Forum: MySQL Jun 5th, 2009 |
| Replies: 4 Views: 949 Sorry didn't realise your server was Windows. I'm not an expert on Windows but I'm sure you could use a scheduled task in cron's place. |
Forum: Ruby Jun 5th, 2009 |
| Replies: 3 Views: 1,559 In ruby if you don't know what class an object is you can use it's class method and the docs to find out.
% irb --simple-prompt
>> a = :something
=> :something
>> a.class
=> Symbol |
Forum: Database Design Jun 5th, 2009 |
| Replies: 1 Views: 451 Getting the row number depends on the DB you're using; Oracle supports this (via ROWNUM) but MySQL for example does not.
Your statement is invalid; if you want to update a row you should be doing:... |
Forum: MySQL Jun 5th, 2009 |
| Replies: 4 Views: 949 I think you should look at the LOAD DATA INFILE (http://dev.mysql.com/doc/refman/5.1/en/load-data.html) docs and cron a script to import for you |
Forum: MySQL May 29th, 2009 |
| Replies: 3 Views: 596 I misunderstood your first post.
If the column is varchar and you have a comma separated list of IDs there isn't a clean way of joining.
You should review your table design and possibly... |
Forum: MySQL May 29th, 2009 |
| Replies: 3 Views: 424 You seem to be getting mixed up with your joins.
You need to do an inner join to get the winning bids. I'd create this as a view:
I just typed this from memory so sorry about the table/column... |
Forum: MS SQL May 29th, 2009 |
| Replies: 3 Views: 528 I think a self join is required:
select distinct
d1.id
from dtlstbl as d1
inner join dtlstbl as d2
on d1.id = d2.id
and d2.refid = 2
where |
Forum: MySQL May 29th, 2009 |
| Replies: 3 Views: 596 Not really sure what you're asking. What column type is sales_categories?
Also your SQL is confusing; try aliasing the table names and aligning it:
SELECT pd.products_name,
... |
Forum: Ruby Jan 8th, 2009 |
| Replies: 2 Views: 1,728 In your controller do you have
@user = User.find(:first)
or something similar? Could you post your controller code? |
Forum: Database Design Sep 15th, 2008 |
| Replies: 7 Views: 2,422 Why revive a 2 year old thread? |
Forum: Ruby Apr 24th, 2008 |
| Replies: 5 Solved: Hi Views: 3,104 No problem, its not the most obvious solution |
Forum: Ruby Apr 15th, 2008 |
| Replies: 5 Solved: Hi Views: 3,104 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: 2,272 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: 775 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: 3,931 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,445 http://en.wikipedia.org/wiki/The_internet |
Forum: Geeks' Lounge Apr 7th, 2008 |
| Replies: 1 Views: 2,435 When will people realise that Jabber/XMPP is the future? |
Forum: MS SQL Mar 25th, 2008 |
| Replies: 3 Views: 2,471 A quick and dirty method would be to select into a temp table that has a identity column and then use that as the basis for your query. I wouldn't use this method if performance is high on your... |
Forum: Database Design Mar 18th, 2008 |
| Replies: 5 Views: 1,221 create database medical_records;
Hope this helps. |
Forum: MySQL Feb 5th, 2008 |
| Replies: 3 Views: 728 select ar.url
from amp a
join ampref ar on a.amp_id = ar.amp_id
where a.name like 'luna' |
Forum: MS SQL Jan 21st, 2008 |
| Replies: 2 Views: 723 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... |
Forum: Ruby Jan 21st, 2008 |
| Replies: 5 Views: 7,348 Try starting it and navigating to http://localhost:3000 |
Forum: Site Layout and Usability Jan 9th, 2008 |
| Replies: 22 Views: 5,002 Vim (http://www.vim.org/) is all you need |
Forum: IT Professionals' Lounge Jan 6th, 2008 |
| Replies: 2 Views: 2,059 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: 3,470 |
Forum: Ruby Jan 1st, 2008 |
| Replies: 3 Views: 3,118 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: 2,193 '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... |
Forum: Window and Desktop Managers Dec 30th, 2007 |
| Replies: 14 Views: 27,858 KDE is not supported because this is a LTS release; KDE 4 will be brand new when Ubuntu 8.04 is released and there is no guarantee that the KDE guys will still be writing security updates etc for... |
Forum: MS SQL Dec 29th, 2007 |
| Replies: 5 Views: 1,024 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: 872 I hope you didn't quit your day job. |
Forum: Ruby Dec 29th, 2007 |
| Replies: 5 Views: 3,470 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| ... |
Forum: Geeks' Lounge Dec 10th, 2007 |
| Replies: 27 Views: 3,178 I'd actually nominate Dune 2 as the most influential RTS; although TA brought 3D to the table.
Others that would be on my list are:
Civilisation
Super Madio Bros
Sim City
Mario 64
Elite... |
Forum: Ruby Dec 5th, 2007 |
| Replies: 1 Views: 2,918 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: 4,687 If you want an bulletproof car you can get them from http://www.edisposals.com
From the description of a bullet proof vauxhall omega 3.0 litre:
" Driver and passengers protected for 7.62. Also... |
Forum: MySQL Nov 28th, 2007 |
| Replies: 5 Views: 4,288 $condition1 = @$_GET['cond1'] ;
$condition2 = @$_GET['cond2'] ;
$condition3 = @$_GET['cond3'] ;
mysql_connect("dbhost","dbuser","dbpass") or die("Unable to connect to server");... |
Forum: MySQL Nov 27th, 2007 |
| Replies: 1 Views: 1,627 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: 6,030 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,429 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,677 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... |
Forum: Site Layout and Usability Oct 1st, 2007 |
| Replies: 10 Views: 2,977 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... |