-
Replied To a Post in What Music Do People Like?
Any beard envy around here? -
Replied To a Post in What Music Do People Like?
ZZ Top -
Replied To a Post in Jokes
Why is it that when you transport something by car, it's called a shipment, but when you transport something by ship, it's called cargo? -
Replied To a Post in Jokes
Experience is what you get when you didn't get what you wanted. -
Replied To a Post in Jokes
Ditto, slightly offensive joke but told in jest... Q (Husband): "I don't know why you wear a bra, you've go nothing to put in it.". A (Wife): "You wear briefs, … -
Replied To a Post in QA Session
Q: "Why did the chicken cross the road?" A (John McCain): "My friends, that chicken crossed the road because it was what the majority of the American people wanted!" -
Replied To a Post in QA Session
Q: "Why did the chicken cross the road?" A (Bill Gates): "I have just released eChicken2015, which will not only cross roads, but will lay eggs, file your important documents, … -
Replied To a Post in QA Session
Q: "Why did the chicken cross the road?" A (Pat Buchanan): "To steal the job of a decent, hardworking American." -
Replied To a Post in QA Session
Q: "Why did the chicken cross the road?" A (Dick Cheney): "Where's my gun?" -
Replied To a Post in Python CPU Performance Analysis
On first glance look at the items with the highest tottime values. Then check the number of calls and the percall time. Remember that function calls are expensive because of … -
Replied To a Post in Having issues with making a input validation while loop to validate inputs
You need to study up on your while loops. -
Replied To a Post in Jokes
The famous scientists of the past were meeting in a corner of heaven to play hide and seek. Albert Einstein turned his back to the lot and started counting down … -
Replied To a Post in Python GUI Programming
A simple test for a widget ... ''' ps_test_QLabel_image_scroll.py test PySide widgets label with an image on it QScrollArea class provides a scrolling view onto another widget for more info … -
Replied To a Post in Starting Python
# SI prefixes yotta = 1e24 zetta = 1e21 exa = 1e18 peta = 1e15 tera = 1e12 giga = 1e9 mega = 1e6 kilo = 1e3 hecto = 1e2 … -
Replied To a Post in Projects for the Beginner
A hiker weighing 100 kg is going on a mountain hike. From the starting point to the top of the mountain are 1000 meters. How many calories has the hiker … -
Replied To a Post in Random Facts
A pregnant goldfish is called a twit. -
Replied To a Post in There is an elephant on the loo!
A jumbo jet uses about 4,000 gallons of fuel to take off. -
Replied To a Post in Jokes
She got a mudpack and looked great for two days. Then the mud fell off. -
Replied To a Post in QA Session
Q: What is the thinnest book in the world? A: "What Men Know About Women." -
Replied To a Post in What are you eating/drinking right now?
Baked Swai fillets, grits with stewed tomatoes, and a glass of Washington State's finest Riesling. -
Replied To a Post in Jokes
Buy corduroy pillows: They're making headlines! -
Replied To a Post in So. Does anyone have any good programming/computing jokes?
2 + 2 = 5 for extremely large values of 2. Enter any 11-digit prime number to continue ... -
Replied To a Post in Anyone using Google's Go language?
@DaveAmour, well Go is a "curly brace" language. You are right, Go incorporates concepts of C and JavaScripts, but goes much further. Modern computers have multiple cores and Go can … -
Replied To a Post in What is the most powerful programming language?
Here is the popularity of computer languages worldwide, Mar 2015 compared to a year ago ( http://pypl.github.io/PYPL.html ) ... +------+--------------+----------+-------+ | Rank | Language | Share(%) | Trend | +------+--------------+----------+-------+ … -
Created Anyone using Google's Go language?
Just wanted to know if anyone on DaniWeb is using or at least experimenting with Go. -
Marked Solved Status for This program will guess your answer
` #Author : Bikash Guragai #versione : 1.0 #email : bikashguragai@gmail.com or bikashguragai@programmer.net import random print ("Hello and welcome") Name = input("What is your name: ") print ("Nice to meet … -
Replied To a Post in need help to understand a web crawler code
Might be hidden in the Javascript section of the page. Not everything is straight HTML. -
Marked Solved Status for Scrollbar not working
import tkinter from tkinter import ttk top=tkinter.Tk() top.title("Scoreboard") top.configure(background="black") w=ttk.Scrollbar(top,orient='vertical') l1=tkinter.Label(top,height=2,width=67,bd=4,text="Welcome To Cricket World Cup 2015",font=("Purisa",15),fg="white",bg="red",relief="ridge") l1.grid(row=0,column=0,columnspan=67) l2=tkinter.Label(top,height=2,width=25,font=("Purisa",15),text="India",fg="white",bg="red",relief="ridge") l2.grid(row=1,column=0) l3=tkinter.Label(top,height=2,width=15,font=("Purisa",12),text="VS",fg="white",bg="black") l3.grid(row=1,column=1) l4=tkinter.Label(top,height=2,width=25,font=("Purisa",15),text="Australia",fg="white",bg="red",relief="ridge") l4.grid(row=1,column=2) l5=tkinter.Label(top,height=9,width=67,bd=4,font=("Purisa",15),bg="red",relief="ridge") l5.grid(row=3,column=0,columnspan=67) l6=tkinter.Label(top,height=2,width=15,font=("Purisa",12),text="India",fg="white",bg="Black",relief="ridge") l6.grid(row=3,column=0,rowspan=1,sticky="NW") l7=tkinter.Label(top,height=3,width=14,font=("Purisa",20),text="183/2",fg="white",bg="Black",relief="ridge") l7.grid(row=3,column=0) l8=tkinter.Label(top,height=3,width=14,font=("Purisa",20),text="45.1",fg="white",bg="Black",relief="ridge") … -
Replied To a Post in "Hello World" Fun
You can of course use a generator expression to create a generator ... gen = (c for c in "Hello World") while True: try: print(next(gen), end='') except StopIteration: print('') break -
Marked Solved Status for Printing to Columns with print()
My code and funcs for printing to columns in 2.7 and 3.0+ using print(). I had to relearn column formatting as I moved to using the print() function, and so … -
Replied To a Post in "Hello World" Fun
Let's revisit the generator ... # makes Python3 print() work with Python2 from __future__ import print_function # use a generator def hello_gen(): for c in "Hello World": yield c g … -
Replied To a Post in "Hello World" Fun
Module kivy ( http://kivy.org/#home ) anyone? from kivy.app import App from kivy.uix.scatter import Scatter from kivy.uix.label import Label from kivy.uix.floatlayout import FloatLayout class TestApp(App): def build(self): s1 = "drag me … -
Replied To a Post in "Hello World" Fun
We don't use rjust() too often ... s = "Hello World:" * 10 n = 10 for w in s.split(':'): print(w.rjust(n)) n += 5 -
Replied To a Post in "Hello World" Fun
Why not? import textwrap s = "Hello World " * 5 print(s) print(textwrap.fill(s, 12)) print(s) -
Replied To a Post in Replacing in a list Help!
Hmm ... import textwrap mylist = [83, 111, 109, 101, 119, 104, 101, 114, 101, 32, 105, 110, 32, 108, 97, 32, 77, 97, 110, 99, 104, 97, 44, 32, … -
Replied To a Post in What are you eating/drinking right now?
A thick slice of Irish Soda Bread with a glass of almond milk. -
Replied To a Post in Google Go OOP
Declare a function on the fly (in Python you would use lambda for this) ... package main import ( "fmt" "strings" ) func main() { // encode/decode with rot13 rot13 … -
Replied To a Post in Google Go OOP
Found LiteIDE, a very capable, open source, cross platform Go IDE at: https://github.com/visualfc/liteide A joy to work with. Make sure you install Go first so LiteIDE can find it. -
Marked Solved Status for Small problem with message encoder.
I have written a simple message encoded that encodes messages into words of 4 characters each. It generates a key that will later be used to decode the message. The … -
Replied To a Post in "Hello World" Fun
Extract from sentences ... s1 = "He eats large lunches often." s2 = "We omit repeating last dates." s3 = "".join(w[0] for w in s1.split()) s4 = "".join(w[0] for w … -
Replied To a Post in Memorable Quotations
"Irish diplomacy is the ability to tell a man to go to hell so that he looks forward to making the trip." ... Barry McDonald -
Replied To a Post in Memorable Quotations
"May the luck of the Irish be with you!" ... Polish proverb -
Replied To a Post in Memorable Quotations
"Being Irish, he had an abiding sense of tragedy, which sustained him through temporary periods of joy." ... William Butler Yeats -
Replied To a Post in I Hate Wearing Glasses, But Will Need Them Eventually. Any Tips?
I usually go for the lightest weight possible. -
Replied To a Post in What are you eating/drinking right now?
Oregon trout and asparagus, mint tea. -
Replied To a Post in "Hello World" Fun
From a decorator ... def hello(func): def inner(): print("Hello World") return func return inner @hello def my_func(): pass my_func() -
Replied To a Post in "Hello World" Fun
Concatenate ... s1 = "Hell" s2 = "o Wo" s3 = "rld" print(s1 + s2 + s3) -
Replied To a Post in "Hello World" Fun
From a generator ... def hello_g(): yield 'Hello' yield 'World' g = hello_g() print("{} {}".format(next(g), next(g))) -
Replied To a Post in "Hello World" Fun
From a dictionary ... # makes Python3 print() work with Python2 #from __future__ import print_function d = {0: 'H', 1: 'e', 2: 'l', 3: 'l', 4: 'o', 5: ' ', … -
Revoked Solved Status for "Hello World" Fun
I thought it would be fun to code all the different ways to show Hello World on the display. Let's start simple ... `print("Hello World")` Can anybody print out "Hello …
The End.