Search Results

Showing results 1 to 40 of 521
Search took 0.04 seconds.
Search: Posts Made By: pty
Forum: MySQL Jun 5th, 2009
Replies: 4
Views: 906
Posted By pty
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,423
Posted By pty
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: 439
Posted By pty
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: 906
Posted By pty
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: 582
Posted By pty
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: 414
Posted By pty
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: 517
Posted By pty
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: 582
Posted By pty
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,703
Posted By pty
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,402
Posted By pty
Why revive a 2 year old thread?
Forum: Ruby Apr 24th, 2008
Replies: 5
Solved: Hi
Views: 3,085
Posted By pty
No problem, its not the most obvious solution
Forum: Ruby Apr 15th, 2008
Replies: 5
Solved: Hi
Views: 3,085
Posted By pty
1
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: 2,264
Posted By pty
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: 767
Posted By pty
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,897
Posted By pty
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,434
Posted By pty
http://en.wikipedia.org/wiki/The_internet
Forum: Geeks' Lounge Apr 7th, 2008
Replies: 1
Views: 2,371
Posted By pty
When will people realise that Jabber/XMPP is the future?
Forum: MS SQL Mar 25th, 2008
Replies: 3
Views: 2,417
Posted By pty
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,212
Posted By pty
create database medical_records;


Hope this helps.
Forum: MySQL Feb 5th, 2008
Replies: 3
Views: 723
Posted By pty
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: 717
Posted By pty
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,234
Posted By pty
Try starting it and navigating to http://localhost:3000
Forum: Site Layout and Usability Jan 9th, 2008
Replies: 22
Views: 4,976
Posted By pty
Vim (http://www.vim.org/) is all you need
Forum: IT Professionals' Lounge Jan 6th, 2008
Replies: 2
Views: 2,046
Posted By pty
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,457
Posted By pty
Forum: Ruby Jan 1st, 2008
Replies: 3
Views: 3,098
Posted By pty
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,173
Posted By pty
'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,646
Posted By pty
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,013
Posted By pty
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: 866
Posted By pty
I hope you didn't quit your day job.
Forum: Ruby Dec 29th, 2007
Replies: 5
Views: 3,457
Posted By pty
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,142
Posted By pty
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,908
Posted By pty
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,630
Posted By pty
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,169
Posted By pty
$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,608
Posted By pty
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: 5,985
Posted By pty
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,419
Posted By pty
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,664
Posted By pty
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,944
Posted By pty
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...
Showing results 1 to 40 of 521

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC