Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Falling in love with Ubuntu 11.10 Gnome 3
New Posts  All Forums:Forum Nav:

Falling in love with Ubuntu 11.10 Gnome 3 - Page 3

post #21 of 42
Thread Starter 
Quote:
Originally Posted by transhour View Post
nothing is wrong with it, it is just not backward compatible with python 2, you'd have to script completely in python 3 to use it, and you wouldn't be able to mix in old scripts if you wanted

as for your error, you've got something laid out incorrectly, not sure if gedit is capable of highlighting syntax errors in python, if it is, they would be highlighted yellow where it can potentially be a problem for the parser.
I've check it and there's nothing wrong with code I've written. I'm working from the "Learning Python the Hard Way" guide so I doubt there's anything wrong with my code. Just incase though I'll copy and paste it here


# A comment, this is so you can read your program later.
# Anything after the # is ignored by python.

print "I could have code like this." # and the comment after is ignored

# You can also use a comment to "disable" or comment out a piece of code:
# print "This won't run."

print "This will run."



Notice anything??
 
The Hoover
(14 items)
 
 
CPUMotherboardGraphicsRAM
2500k P8P67 EVO XFX 6870 2GB Corsair Vengeance LP White 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Green 1TB BluRay Hyper 212 EVO Windows 7 Ultimate 64bit 
MonitorPowerCaseMouse
Asus G245HQ Corsair 700 Corsair 800D R.A.T 5 
Audio
Corsair HS-1 
CPUMotherboardGraphicsRAM
Phenom II 550 M4A785TDV-EVO XFX 6870  4GB Corsair XMS3 
Hard DriveOptical DriveCoolingOS
1TB WD Caviar Black LG DVD+RW hyper 212+ Windows 7 Ultimate 64bit 
PowerCase
550w OCZ Fatality AeroCool: AeroEngine Plus 
  hide details  
Reply
 
The Hoover
(14 items)
 
 
CPUMotherboardGraphicsRAM
2500k P8P67 EVO XFX 6870 2GB Corsair Vengeance LP White 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Green 1TB BluRay Hyper 212 EVO Windows 7 Ultimate 64bit 
MonitorPowerCaseMouse
Asus G245HQ Corsair 700 Corsair 800D R.A.T 5 
Audio
Corsair HS-1 
CPUMotherboardGraphicsRAM
Phenom II 550 M4A785TDV-EVO XFX 6870  4GB Corsair XMS3 
Hard DriveOptical DriveCoolingOS
1TB WD Caviar Black LG DVD+RW hyper 212+ Windows 7 Ultimate 64bit 
PowerCase
550w OCZ Fatality AeroCool: AeroEngine Plus 
  hide details  
Reply
post #22 of 42
Quote:
Originally Posted by BlueTac View Post
What advantages do you get using Mint to Ubuntu?
I use the Debian distro.
Shnayvetchen
(16 items)
 
   
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230 ASRock Extreme3 Gen3 Z68 Gigabyte Geforce GTX 670 Kingston HyperX Blu (2x2 GB) 
Hard DriveOptical DriveCoolingOS
10 TB in RAID 0 of Derp Sony Optiarc 20x DVD+-RW Cooler Master Hyper N520 Linux Mint 15 
OSMonitorKeyboardPower
Windows 7 Ulitmate 22" View Sonic LED Logitec illuminated keyboard Xigmatek NRP-PC601 
CaseMouseMouse PadAudio
Coolermaster Storm Enforcer Logitech G500 Handmade Oak desk Harman/Kardon Soundsticks III 
CPUGraphicsHard DriveOS
Motorola PowerPC 7455 ATi Radeon 9800 Mac Edition IBM Deskstar Mac OS 10.4.11 
OS
Debian Linux 
  hide details  
Reply
Shnayvetchen
(16 items)
 
   
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230 ASRock Extreme3 Gen3 Z68 Gigabyte Geforce GTX 670 Kingston HyperX Blu (2x2 GB) 
Hard DriveOptical DriveCoolingOS
10 TB in RAID 0 of Derp Sony Optiarc 20x DVD+-RW Cooler Master Hyper N520 Linux Mint 15 
OSMonitorKeyboardPower
Windows 7 Ulitmate 22" View Sonic LED Logitec illuminated keyboard Xigmatek NRP-PC601 
CaseMouseMouse PadAudio
Coolermaster Storm Enforcer Logitech G500 Handmade Oak desk Harman/Kardon Soundsticks III 
CPUGraphicsHard DriveOS
Motorola PowerPC 7455 ATi Radeon 9800 Mac Edition IBM Deskstar Mac OS 10.4.11 
OS
Debian Linux 
  hide details  
Reply
post #23 of 42
Quote:
Originally Posted by kabj06 View Post
I'm waiting for Linux Mint 12. I'm really hoping it has Gnome 3 as I have used other distros with it and they are just AMAZING. It almost makes KDE look bad (in terms of functionality).
That was a joke...right?
Arcadius
(8 items)
 
Cyrillus
(7 items)
 
 
CPUMotherboardGraphicsRAM
Intel i5-3570k ASUS P8Z77-V LE MSI Geforce GTX 660 Ti Corsair Vengeance Blue 
Hard DriveOSPowerCase
WD Caviar Blue Arch Linux (XFCE) Corsair GS600 Corsair Carbide 300R 
CPUMotherboardGraphicsRAM
i5-3317U Proprietary HD Graphics 4000 Proprietary 
Hard DriveOSCase
520 Series FreeBSD (GNOME) Zenbook Prime UX31A-DH51 
  hide details  
Reply
Arcadius
(8 items)
 
Cyrillus
(7 items)
 
 
CPUMotherboardGraphicsRAM
Intel i5-3570k ASUS P8Z77-V LE MSI Geforce GTX 660 Ti Corsair Vengeance Blue 
Hard DriveOSPowerCase
WD Caviar Blue Arch Linux (XFCE) Corsair GS600 Corsair Carbide 300R 
CPUMotherboardGraphicsRAM
i5-3317U Proprietary HD Graphics 4000 Proprietary 
Hard DriveOSCase
520 Series FreeBSD (GNOME) Zenbook Prime UX31A-DH51 
  hide details  
Reply
post #24 of 42
Quote:
Originally Posted by Rocket Lawnchair View Post
That was a joke...right?
Yes. Sadly it is. NOT. KDE has always been easier for me to navigate but G3 is finally rivaling it.
Shnayvetchen
(16 items)
 
   
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230 ASRock Extreme3 Gen3 Z68 Gigabyte Geforce GTX 670 Kingston HyperX Blu (2x2 GB) 
Hard DriveOptical DriveCoolingOS
10 TB in RAID 0 of Derp Sony Optiarc 20x DVD+-RW Cooler Master Hyper N520 Linux Mint 15 
OSMonitorKeyboardPower
Windows 7 Ulitmate 22" View Sonic LED Logitec illuminated keyboard Xigmatek NRP-PC601 
CaseMouseMouse PadAudio
Coolermaster Storm Enforcer Logitech G500 Handmade Oak desk Harman/Kardon Soundsticks III 
CPUGraphicsHard DriveOS
Motorola PowerPC 7455 ATi Radeon 9800 Mac Edition IBM Deskstar Mac OS 10.4.11 
OS
Debian Linux 
  hide details  
Reply
Shnayvetchen
(16 items)
 
   
CPUMotherboardGraphicsRAM
Intel Xeon E3-1230 ASRock Extreme3 Gen3 Z68 Gigabyte Geforce GTX 670 Kingston HyperX Blu (2x2 GB) 
Hard DriveOptical DriveCoolingOS
10 TB in RAID 0 of Derp Sony Optiarc 20x DVD+-RW Cooler Master Hyper N520 Linux Mint 15 
OSMonitorKeyboardPower
Windows 7 Ulitmate 22" View Sonic LED Logitec illuminated keyboard Xigmatek NRP-PC601 
CaseMouseMouse PadAudio
Coolermaster Storm Enforcer Logitech G500 Handmade Oak desk Harman/Kardon Soundsticks III 
CPUGraphicsHard DriveOS
Motorola PowerPC 7455 ATi Radeon 9800 Mac Edition IBM Deskstar Mac OS 10.4.11 
OS
Debian Linux 
  hide details  
Reply
post #25 of 42
Quote:
Originally Posted by BlueTac View Post
I've check it and there's nothing wrong with code I've written. I'm working from the "Learning Python the Hard Way" guide so I doubt there's anything wrong with my code. Just incase though I'll copy and paste it here


# A comment, this is so you can read your program later.
# Anything after the # is ignored by python.

print "I could have code like this." # and the comment after is ignored

# You can also use a comment to "disable" or comment out a piece of code:
# print "This won't run."

print "This will run."



Notice anything??
In Python 3 print was made into a function, it is no longer a statement. You need to do
Code:
print("string")
Learning Python the Hard Way was written for Python 2.x. The "Learning ____ the Hard Way" books usually are written from the perspective that you have solid knowledge in another language. If you don't there are plenty of better books to teach you from the ground up. Some of them are even for Python 3, already.
Edited by Jimi - 10/19/11 at 6:48pm
post #26 of 42
It sounds like you're on Python 3, rather than Python 2.7. Python 3 is good, it's where the development is now (Python 2.7 is no longer developed). Yes, it's not backwards compatible, but if you're just starting out you should learn on Python 3 as it's the future. However, your book is about Python 2, which makes it awkward - you can either learn the current way of doing things, but not the future, or you can scrap the book at get a Python 3 book.

On the Gnome3 app point - the apps are actually GTK3 apps. GTK is the toolkit that the apps are built up from, and while linked to Gnome, there aren't the same thing. You can run any shell on Gnome (some might require more tinkering than others!), it's just the standard is Gnome Shell, just like the standard on Ubuntu is Unity. You can still use Gnome apps on Unity, hell you can use KDE apps on Unity if you feel like it (and don't mind having QT installed on your GTK-based system)
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
Little Beast
(12 items)
 
Black 'n' blue II
(15 items)
 
 
CPUGraphicsRAMHard Drive
Intel Core i7-4710MQ Nvidia Geforce GTX860M 2GB 16GB Kingston DDR3 1600MHz 240Gb Silicon Power S55/S60 SSD 
Hard DriveOSOSMonitor
1Tb Toshiba HDD 5400rpm Windows 8.1 Linux Mint 18 17.3" LED 1920x1080 
CaseMouseMouse PadAudio
PCSpecialist Optimus V ST17-860 Logitech MX518 Steelseries QcK Creative HS800 Fatal1ty 
CPUMotherboardGraphicsRAM
Core i7 860 @ 1.25V MSI P55-GD65 Xpertvision Radeon HD4850 4GB G.Skill Ripjaw 
Hard DriveOptical DriveCoolingOS
150Gb Velociraptor & 1Tb WD Caviar Black Opticon Lightscribe DVD-RW DL Noctua NH-U12P SE2 Vista Home Premium x64 
MonitorKeyboardPowerCase
Hyundai BlueH H224W 22" LCD Saitek Eclipse II Thermaltake Purepower RX 550 Galaxy III 
Mouse
Patuoxun optical gaming mouse 3200dpi 
  hide details  
Reply
post #27 of 42
Thread Starter 
I've fixed my problem now, thanks everyone for the help, I'll rep all who helped when I'm hone

Is it really worth learning python 3 instead? I get that its going to be the future programming language but surely everyone will stick with 2.7 for a while.

If you think it'll be better can you recommend me some resources? I have NO prior programming knowledge at all so I'm looking for really basic stuff

Sent from my Desire HD using Tapatalk
 
The Hoover
(14 items)
 
 
CPUMotherboardGraphicsRAM
2500k P8P67 EVO XFX 6870 2GB Corsair Vengeance LP White 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Green 1TB BluRay Hyper 212 EVO Windows 7 Ultimate 64bit 
MonitorPowerCaseMouse
Asus G245HQ Corsair 700 Corsair 800D R.A.T 5 
Audio
Corsair HS-1 
CPUMotherboardGraphicsRAM
Phenom II 550 M4A785TDV-EVO XFX 6870  4GB Corsair XMS3 
Hard DriveOptical DriveCoolingOS
1TB WD Caviar Black LG DVD+RW hyper 212+ Windows 7 Ultimate 64bit 
PowerCase
550w OCZ Fatality AeroCool: AeroEngine Plus 
  hide details  
Reply
 
The Hoover
(14 items)
 
 
CPUMotherboardGraphicsRAM
2500k P8P67 EVO XFX 6870 2GB Corsair Vengeance LP White 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Green 1TB BluRay Hyper 212 EVO Windows 7 Ultimate 64bit 
MonitorPowerCaseMouse
Asus G245HQ Corsair 700 Corsair 800D R.A.T 5 
Audio
Corsair HS-1 
CPUMotherboardGraphicsRAM
Phenom II 550 M4A785TDV-EVO XFX 6870  4GB Corsair XMS3 
Hard DriveOptical DriveCoolingOS
1TB WD Caviar Black LG DVD+RW hyper 212+ Windows 7 Ultimate 64bit 
PowerCase
550w OCZ Fatality AeroCool: AeroEngine Plus 
  hide details  
Reply
post #28 of 42
Quote:
Originally Posted by BlueTac View Post
I've fixed my problem now, thanks everyone for the help, I'll rep all who helped when I'm hone

Is it really worth learning python 3 instead? I get that its going to be the future programming language but surely everyone will stick with 2.7 for a while.

If you think it'll be better can you recommend me some resources? I have NO prior programming knowledge at all so I'm looking for really basic stuff

Sent from my Desire HD using Tapatalk
learn both
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
post #29 of 42
Thread Starter 
Quote:
Originally Posted by transhour View Post
learn both
DERP! of course.

How long do you think it would take me to learn python if I'm studying for atleast an hour every week night? I enjoy getting smashed on the weekend (geeks have lives too )

EDIT: You said before to
Quote:
stay away from python 3 unless you absolutely need it
Why the sudden change of heart??
Edited by BlueTac - 10/20/11 at 8:16am
 
The Hoover
(14 items)
 
 
CPUMotherboardGraphicsRAM
2500k P8P67 EVO XFX 6870 2GB Corsair Vengeance LP White 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Green 1TB BluRay Hyper 212 EVO Windows 7 Ultimate 64bit 
MonitorPowerCaseMouse
Asus G245HQ Corsair 700 Corsair 800D R.A.T 5 
Audio
Corsair HS-1 
CPUMotherboardGraphicsRAM
Phenom II 550 M4A785TDV-EVO XFX 6870  4GB Corsair XMS3 
Hard DriveOptical DriveCoolingOS
1TB WD Caviar Black LG DVD+RW hyper 212+ Windows 7 Ultimate 64bit 
PowerCase
550w OCZ Fatality AeroCool: AeroEngine Plus 
  hide details  
Reply
 
The Hoover
(14 items)
 
 
CPUMotherboardGraphicsRAM
2500k P8P67 EVO XFX 6870 2GB Corsair Vengeance LP White 
Hard DriveOptical DriveCoolingOS
Western Digital Caviar Green 1TB BluRay Hyper 212 EVO Windows 7 Ultimate 64bit 
MonitorPowerCaseMouse
Asus G245HQ Corsair 700 Corsair 800D R.A.T 5 
Audio
Corsair HS-1 
CPUMotherboardGraphicsRAM
Phenom II 550 M4A785TDV-EVO XFX 6870  4GB Corsair XMS3 
Hard DriveOptical DriveCoolingOS
1TB WD Caviar Black LG DVD+RW hyper 212+ Windows 7 Ultimate 64bit 
PowerCase
550w OCZ Fatality AeroCool: AeroEngine Plus 
  hide details  
Reply
post #30 of 42
Quote:
Originally Posted by BlueTac View Post
DERP! of course.

How long do you think it would take me to learn python if I'm studying for atleast an hour every week night? I enjoy getting smashed on the weekend (geeks have lives too )

EDIT: You said before to

Why the sudden change of heart??
i honestly couldn't say i don't know python very well

i would just start with something you want to accomplish and work you way up and keep setting the bar higher and higher till you confident you know it

well i thought you were trying to run already made programs in python, was just saying that since if they weren't done in python 2, they wouldn't work in python 3 not really a change of heart. since you are learning python, might as well learn both or at least what makes them different
Edited by Transhour - 10/20/11 at 8:25am
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
Bazinga Punk
(12 items)
 
ooh shiny!
(6 items)
 
 
CPUMotherboardGraphicsRAM
Intel Xeon 3440 AsRock P55 extreme Evga 8800 GT 512 MB Gskill Ripjaws 
Hard DriveCoolingOSMonitor
Western Digital Blue Antec Khuler 620 Ubuntu 11.10 Asus vw264H 
KeyboardPowerCaseMouse
GIGABYTE KM7600 CORSAIR TX 650 Cooler Master 590 GIGABYTE GM-M6800 
CPUMotherboardGraphicsRAM
Intel Core I5 6500 Gigabyte z170xp-SLI Nvidia 970gtx Corsair 16gb ddr4 2666mhz  
Hard DriveOS
250gb Samsung Evo 850 Windows 10 & Ubuntu 15.10 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Linux, Unix
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Linux, Unix › Falling in love with Ubuntu 11.10 Gnome 3