>That's exactly why I don't use Ubuntu . If there's no challenge to using a distro, it takes away all the fun.
That was my outlook when I was at uni but now I actually need to get some work done :P
>That's exactly why I don't use Ubuntu . If there's no challenge to using a distro, it takes away all the fun.
That was my outlook when I was at uni but now I actually need to get some work done :P
You can already get a few Google apps on Linux; Google Earth and Picasa at least. GTalk I think will be the next.
As for the other Google Apps (Sketchup aside) I don't think people are that desperate for ports as Linux already has stable (and open) alternatives eg Google Desktop Search vs Beagle
That is just Gnome with a customised menu icon and wallpaper. If google do release an OS it would make most sense to customise a *NIX as most of the groundwork has been done.
The best reason to choose Ubuntu over say Debian (or FC, SuSE, Sabayon etc) is that it offers an unbastardised gnome install with second-to-none hardware detection and comes on one CD. It is my distro of choice at the moment (even though I'm writing this post from a Gentoo box).
I bought my brother a Wii for Christmas (was in Curry's when a shipment came in 3 days before Christmas). Wii sports, while not being full on working out, definately can get you in to a sweat, espeically in a close game of tennis.
I think that if people want to game and get fit a dancemat is probaly a better option.
Also; why have any fitness companies not realised that if they sell a exercise bike (or walking or rowing machine) that is compatible with a games console they could make people more willing to exercise? Cycling around a pretty HD environment on my xbox360 or ps3 is definately more entertaining than listening to the radio when I work out. They could even combine it with games, so you are cycling along in the peleton at the Tour de France.
iPhone or gf? iPhone or gf? hmmmmmmmmmmm.. its a tough one.
In the end though I'd have to go with my gf because she is the bringer of sandwiches.
The trademarked iPhone is older than any of Apple's i* products so I don't see how Apple can countersue.
Apple knew that the iPhone would make a massive splash and it did and now everyone will associate the iPhone with one thing, Apple's iPhone.
The only reason Cisco/Linksys's device made it into the media is becasue it had the name iPhone; the device is completely unremarkable.
iPhone on the other hand looks fantastic; great looking, great looking software, effortless communication with other Apple products etc.
Even if Apple has to change its name the device will always be known as iPhone.
Your reasons are stupid. "I'll stop using ubuntu cos there are too many Digg headlines about it! oh noes!".
Use the best tool for the job at hand and stop moaning about what other people are saying/doing.
If this was Digg I'd bury you
Another nerd in space was Mark Shuttleworth
The people who are usually up in arms about stuff like this aren't usually gamers, they don't understand that if games blur reality and fantasy for some people it is the person's fault not the fault of the publisher/developer.
I commend rockstar for having a go at making an original game. Not many other companies have the balls to do that it seems.
I agree that some people may have downloaded it many times. Since phoenix I must have about 20 times from various places and on various machines/installs.
However, the downloads/users ratio can be skewed the other way too. For example I have a copy of firefox on my pen drive, every time I'm asked to clear spyware off someones machine I install it from there (probably converted 4 or 5 people this way).
I also made sure firefox found its way on to the default build image at the company I last contracted at; they had installed it on over 40 machines by the time I departed and probably a lot more since.
Still, all the figures that come from non-nerdy websites suggest that firefox has between 8-14% of the browser share. Its not enough, yet, but so long as its going in the right direction I'm happy.
On a seperate note I'm most definately NOT happy with the deal with real networks. realplayer is one of the most obtrusive and annoying programs I have ever encountered. Installing the 'message centre', insisting it runs at startup by default, shortucts on the desktop, start menu (twice), quick launch, installing AOL adverts and links to free trials. ARGH... I need to calm down.
Microsoft's hardware track record has generally been good.
The problem with trying to muscle in on the iPod's territory though is that an iPod isn't just a music player, to the unwashed masses its the only music player. Its a symbol.
They are incredibly easy to use compared to other players I've tried; my friends have creative, archos and rio ones amongst them, all do more stuff than my 2nd generation iPod, play radio, have mic and line in ports, removable batteries etc etc.
The iPod though, is easiest to use and does what people want an mp3 player to do - play mp3s. And its best looking by a MILE.
A step in the right direction I believe. All we need then is AOL to see the light and allow their products (AIM and ICQ) to 'talk' and people will be able to choose what protocol/client they use on the merits of the service and software and not just on what their mates are using.
The cynic in me, however, says MS allowed this because they cba continuing MSN Messenger for the MAC
/GAIM user
2.6 brought a LOT to the table and development has been going at a fast rate.
I think if the core development team felt that there were too many bugs, and the rate of new critical bugs was higher than the critical bug-fix rate, they would freeze new features and concentrate on ironing out the problems. Linus hinted that this might happen after 2.6.16.
To be honest I think the original article was slightly sensationalist.
Surely Blue Frog's methodology could be altered slightly so as not to rely on central servers?
A peer-to-peer approach would surely work here. With no central targets it would be a lot more difficult for spammers to bring it down.
Thanks I will have a look at that.
Can you run CRON jobs on server 2003 or do you need some extra softwear to run it?
Thanks
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.
What are names starting with the ":", are they variables, constants or something else?
drjay
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
Then look it up in the docs: http://www.ruby-doc.org/core/classes/Symbol.html
I want to get the row number of a specific row in the table.
Also is this legal?
INSERT INTO (SELECT * FROM myTable WHERE mynumber=2) VALUES ........
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:
update myTable set foo = 'bar' where mynumber = 2;
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 introduce a link table (many to many relationship). I don't know exactly how your data is meant to be so I can't suggest exactly what to do, but rather than having many items in a list inside one column you should organise your data so each list item is a row.
Thank you pty, what you have done is
certainly easier to follow. Running that query leads to the same result I experienced.The sales_categories column is a text type column.
In this instance, the result will only lead to one entry w/ the data "48,76,129"
Each of those numbers corresponds to a p.master_categories_id
The results yield the products in p.master_categories_id 48 and then stops there.
I'm guessing the problem lies in the fact that this is a text field?I apologize if my description is confusing. I do not have the SQL lingo, so I speak in laymens' terms.
Peace,
Audra
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 names :P
create view winning bids as
select b1.*
from bids b1
inner join (
select b2.item_id,
max(b2.amount) as amount
from bids b2
group by b2.item_id
) b2
on b1.item_id = b2.item_id
and b1.amount = b2.amount;
Then you can use a left join to join from items; the left join will mean that if an item doesn't have a winning bid it will show NULL.
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
d1.refid = 1;
there may be another way but off the top of my head you can use "or"
SELECT id FROM dtlstbl WHERE refid = 1 OR refid = 2
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,
pd.products_description,
pd.products_id,
p.products_image,
p.products_price_sorter
FROM products_description as pd
INNER JOIN products AS p ON pd.products_id = p.products_id
INNER JOIN salemaker_sales AS ss ON p.master_categories_id = ss.sale_categories_selected )
WHERE p.products_status = 1
AND ss.sale_status = 1
Hi,
I've managed to piece together an SQL query (not literate in the language), but it isn't giving quite the data I expected. Here is the code:SELECT products_description.products_name, products_description.products_description, products_description.products_id, products.products_image, products.products_price_sorter FROM products_description INNER JOIN ( products, salemaker_sales ) ON ( products_description.products_id = products.products_id AND products.master_categories_id = salemaker_sales.sale_categories_selected ) WHERE products.products_status =1 AND salemaker_sales.sale_status = "1"
The trouble I am seeing is this:
salemaker_sales.sale_categories_selected contains multiple variables separated by a commaThis query is only returning the first variable. What am I missing?
Any help much appreciated,
Audra
In your controller do you have
@user = User.find(:first)
or something similar? Could you post your controller code?
Why revive a 2 year old thread?
i already installed ruby and in ruby directory contain fxri and Scite.
well, i m do small ex in fxri...
what is Scite for? what different about fxri and Scite? why i can't compile code in Scite?
i find compile in tools of Scite but it was disable.
example i write code in Scite :5.times { print "Odelay!" }
when i tried to compiled i can't do this perform. there are compile, Build,Go etc in tools option that i cannot perform to click, it was disable. i m confused.
But this code running great in fxri. so why i can't do compiled in Scite?
please helpThank you.
Did your source file definitely have a .rb extension? Did anything at all appear in the output window?
Hi i have just start to try out ruby and since has met with some problems during the execution of ruby coding. I have tried simple ruby codings embedded into HTML files and it works fine but the main trouble occurs when i wish to test out pre-written codes from the internet for instance this ruby code from: http://paranoia.dubfire.net/2007/03/querying-bank-of-americas-sitekey.html I am not sure how can i convert this code for use in .rhtml or how am i able to run it in the first place. Sorry for asking such a newbie question but thanks advance for any help rendered.
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.
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)
Hello , I want to learn exactly all what's going on behind the scenes when surfing the Internet ..how it works ? web servers .? it's programming languages and how they do it ..
I liked the way howstuffworks.com explain it ... but I want it 1000x in-depth more than that .... can I find what i'm searching for in easily .. I tried google and got tired ... so , please help me with any ebooks or even topics to search for ..I want to be Internet & web servers professional ....WHERE TO START PLEASE !!
hi
i am using sql server 2003. can we get the position of record / row index in sql server while retrieving records?like in some case we fetch records as per our criteria. And if that time need to know the postion of particular record then? how to get that?
plz help.
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 agenda
how can i create a database for a medical record maintenance system for an institution?
create database medical_records;
Hope this helps.
select ar.url
from amp a
join ampref ar on a.amp_id = ar.amp_id
where a.name like 'luna'
hi every body
i'm new to MS SQL and i want to learn it
if any body knows good source or web sites about sql server 2000, i'll appreciate if he lets me knowthanx for your help,
everunloaded, bye
Books Online is probably a decent way to start.
Also I suggest trying some queries with the Northwind database; work out how to add criteria to searches, joins, insert and delete records etc.
Hi,
I recently started reading up on Ruby on Rails and decided to install it so I could give it a go. I found some inconsistencies and problems that I hope I can get some help with.
First, when creating a project I used the ruby script/generate command and it worked fine but when I wanted to start the server I had to use ruby ./script/server (note the ./).
The difference confuses me.
The server then started up on port 3000 but browsing to localhost/3000 did not give me the default Rails page as it supposedly meant to...
Am I missing something simple here?
Thank you,
Steve
Try starting it and navigating to
http://localhost:3000
Hi folks.
I made some research on Rails vs. Django, but I didn't come to conclusion which is better to learn.
Basically I don't know either Ruby or Python. RoR became very popular last year, has many resources and rich documentation and books/tutorials. On the other hand Python as a langugae is more powerful, more used and big companies like Google and Apple for example implemented it in their products.So can you give me a hint.
Thanks in advance.Mary Christmas ;)
PS: I didn't know where to post it, so please admin/mod to move it where it belongs.
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 frameworks are open source and easily available - download them and see which you prefer.
pty's improvement is a good one!
The only nit I have with it is that I wouldn't put the
banner
method in the controller, since it has nothing to do with the "traffic cop" jobs that controllers normally do. I would put it in a helper file, either this controller's helper file or theapplication_helper.rb
file (if it's a method you'd want to use in other controllers).Ed
Thanks Ed :)
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 %>
It may give a clue as to what's wrong.
i have windows xp pro on my pc and recently installed ubuntu 7.10 but when i try to boot up the xp partition the screen just goes to starting up... and never boots into windows. i can still use ubuntu and view all my files on the windows partition but i can't boot into windows any help would be extremely grateful.
'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 screen (which I suspect is the case) GRUB is not set up correctly. There are lots of threads about this on ubuntuforums.org
sqlite 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 reads and writes directly to ordinary disk files. A complete SQL database with multiple tables, indices, triggers, and views, is contained in a single disk file..."
hi :)
any comments appreciated about my site
http://extendedprocedure.com/
I hope you didn't quit your day job.
My solution ---
<%= def banner i, n, span, str = 0, 0, String.new, "listenlightpoetryjournal" until i == str.length do span << "<span id=\"n" << n.to_s << "\" style=\"top: " << (rand(36) - 18).to_s << "px;\">" << str[i] << "</span>" i, n = i + 1, n + 1 end return span end banner %>
No more PHP for this one.
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 += "<span id='#{i}' style='top:#{(rand(36)-18)}px;'>#{c}</span>\n"
end
span
end
Then in the view
<%= banner("listenlightpoetryjournal") %>
THE most influential game of all time must be the original Pong.
For RTS games, the most influential ever is Total Annihillation. It redefined the genre when it was released in 1997 (I believe it was, maybe late 1996) and set the standard to which RTS games are measured to this day.
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
Tetris
Dragon's Lair
Doom
Half Life
The Legend Of Zelda: Ocarina Of Time
I realise that many of these aren't the first of their genre but they are the ones that stand out
Hi-
I'm designing the database for my app and am trying to do it as intelligently as possible. I'm trying to avoid an explosion of tables and thought single table inheritance (STI) might be the answer..... Is it me or is the use of foreign key constraints (nearly?) impossible when making associations between entities using STI? Any thoughts on this would be extremely helpful.
Thanks
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 experimental at the moment and I wouldn't use it for anything critical
http://wiki.rubyonrails.org/rails/pages/ClassTableInheritanceInRails
For more complicated uses I'd try to steer clear of inheritance in rails and use relationships between models; not always the cleanest but probably more reliable/robust in the long run
I think he has a stretched Jaguar.
The Queen has a Rolls Royce, that is bullet proof!
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 Roof and floor protection for blast and shot to Manufacturers approval. Air Conditioned, PAS, 5 speed manual gearbox, Run Flat tyres etc "
£2,000 exc VAT
$condition1 = @$_GET['cond1'] ;
$condition2 = @$_GET['cond2'] ;
$condition3 = @$_GET['cond3'] ;
mysql_connect("dbhost","dbuser","dbpass") or die("Unable to connect to server");
mysql_select_db("dbname") or die("Unable to select database");
$query = sprintf(" select *
from paintings
where artist = '%s'
and period = '%s'
and value <= '%s' "
, mysql_real_escape_string($condition1)
, mysql_real_escape_string($condition2)
, mysql_real_escape_string($condition3)
);
$result = mysql_query($query);
Should look somehting more like that. Not used php for ages so it may not be work but I think you need a book and learn the basics of SQL and PHP before putting them together
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
,p.responseDate
,p.reason
from
table1 ap
join
table2 p on p.projID = ap.projID
and ap.userId = p.userId
where
p.projectID = 'test1'
Hello-
As a newbie Rails developer, I realize I should have a solid knowledge of SQL regardless of the wonderful abstraction Rails provides. That said, I'm trying to build my first app within the next couple of weeks, relying completely on those abstractions. A couple of questions......
Let's say I have two entities, Movie and Documentary, that I need to make tables/models for. Each of these has Actor(s) and I will make a table/model for that as well. So, in the Actors model can I include more than one ":belongs_to" statement, in this case one each for Movies and Documentaries?
Also, does the use of statements like ":has_many" and "belongs_to" completely eliminate the need to type in "join" instructions in SQL?
Thanks for your help.
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
#and in view.rhtml
<% @actor.movies.each do |m| %>
<li><%= m.title %></li>
<% end %>
Also remember that actors/movies and actors/documentaries are many to many relationships (has_and_belongs_to_many) in rails. You'll find more info about many to many on the rails website.