[QUOTE=Superbird;39744935]Anyone remember the guy who posted a few months ago where he had implemented Awesomium in to HL2?[/QUOTE]
[url=http://steamcommunity.com/id/i_]jj abrams?[/url]
cef in hl2 is cooler
[QUOTE=SupahVee;39751352]Adding fake-3D effects to Open Hexagon
[img]http://sphotos-a.ak.fbcdn.net/hphotos-ak-prn1/884959_160990017388379_213144867_o.png[/img][/QUOTE]
Woo, more dizzyness!
[QUOTE=DrLuckyLuke;39749468]Pigs actually are very clean animals[/QUOTE]
[IMG]http://www.njuskalo.hr/image-bigger/domace-zivotinje/krmaca-slika-19137879.jpg[/IMG]
Define "clean"
I live in a village and my grandparents have pigs and they are not clean at all.
[editline]28th February 2013[/editline]
Btw. sorry for talking about pigs in a WAYWO thread :v:
[QUOTE=cartman300;39752372][IMG]http://www.njuskalo.hr/image-bigger/domace-zivotinje/krmaca-slika-19137879.jpg[/IMG]
Define "clean"
I live in a village and my grandparents have pigs and they are not clean at all.
[editline]28th February 2013[/editline]
Btw. sorry for talking about pigs in a WAYWO thread :v:[/QUOTE]
How would you look if you were forced to live in a small cage full of your own shit and piss?
Also let's end this discussion here, unless you want to attract GrandPC's wrath.
[QUOTE=DrLuckyLuke;39752875]How would you look if you were forced to live in a small cage full of your own shit and piss?[/QUOTE]
I already work in a cubicle
So I'm making this story generator and this is what I have so far
[IMG]http://i.minus.com/jtYBuoIbEBljm.png[/IMG]
How do I add text on the top of the window bar (like where the tk is, I want to change the text and maybe add an icon of some sort) and how do I move the box below the Make Story! button?
I'm also running into a problem where the story I generate doesn't show in the box. If I remove the box (or just not pack it), it would go right beside the Make Story! button. What I want it to do is to show up inside that text widget box every time, not as a live update but when the Make Story! button is pressed. In the code below I intentionally .pack() -ed the two outputs assuming that I needed them. Ignore any unused frames/pack.
[code]
import Tkinter
class StoryMaker():
def __init__(self):
'''
This initializes all of the required variables and frames and such
'''
# making the main window happen
self.main_window = Tkinter.Tk()
# making them frames
self.logo_frame = Tkinter.Frame(self.main_window)
self.instructions_frame = Tkinter.Frame(self.main_window)
self.character_frame = Tkinter.Frame(self.main_window)
self.location_frame = Tkinter.Frame(self.main_window)
self.occupation_frame = Tkinter.Frame(self.main_window)
self.gender_frame = Tkinter.Frame(self.main_window)
self.computer_frame = Tkinter.Frame(self.main_window)
self.action_frame = Tkinter.Frame(self.main_window)
self.story_frame = Tkinter.Frame(self.main_window)
# packing them frames
self.instructions_frame.pack(anchor = 'w')
self.character_frame.pack(anchor = 'w')
self.location_frame.pack(anchor = 'w')
self.occupation_frame.pack(anchor = 'w')
self.gender_frame.pack(anchor = 'w')
self.computer_frame.pack(anchor = 'w')
self.action_frame.pack(anchor = 'w')
self.story_frame.pack(anchor = 'w')
# making the Label text show up
self.instructions = Tkinter.Label(self.instructions_frame, \
text = 'Enter some info to make your story!')
self.character = Tkinter.Label(self.character_frame, \
text = 'Character Name')
self.location = Tkinter.Label(self.location_frame, \
text = 'Current Location')
self.occupation = Tkinter.Label(self.occupation_frame, \
text = 'Occupation')
self.gender = Tkinter.Label(self.gender_frame, \
text = 'Gender')
self.computer = Tkinter.Label(self.computer_frame, \
text = 'Computer')
# packing them Label Text
self.instructions.pack(side = 'left')
self.character.pack(side = 'left')
self.location.pack(side = 'left')
self.occupation.pack(side = 'left')
self.gender.pack(side = 'left')
self.computer.pack(side = 'left')
self.action_frame.pack(side = 'left')
self.story_frame.pack(side = 'left')
# making the text entry
self.character_entry = Tkinter.Entry(self.character_frame, width = 20)
self.location_entry = Tkinter.Entry(self.location_frame, width = 20)
self.occupation_entry = Tkinter.Entry(self.occupation_frame, width = 20)
# packing the text entry
self.character_entry.pack(side = 'right')
self.location_entry.pack(side = 'right')
self.occupation_entry.pack(side = 'right')
# making the radio buttons
# Create an IntVar object to use with the Radiobuttons.
self.radio_var = Tkinter.IntVar()
# Set the intVar object to 1.
self.radio_var.set(1)
# Create the Radiobutton widgets in the top_frame.
self.male_rb = Tkinter.Radiobutton(self.gender_frame, \
text='Male', variable=self.radio_var, \
value=1)
self.female_rb = Tkinter.Radiobutton(self.gender_frame, \
text='Female', variable=self.radio_var, \
value=2)
self.other_rb = Tkinter.Radiobutton(self.gender_frame, \
text='Other(s)', variable=self.radio_var, \
value=3)
# Pack the Radiobuttons.
self.male_rb.pack(side = 'left')
self.female_rb.pack(side = 'left')
self.other_rb.pack(side = 'left')
# making the check boxes
# Create three IntVar objects to use with the Checkbuttons.
self.cb_var1 = Tkinter.IntVar()
self.cb_var2 = Tkinter.IntVar()
self.cb_var3 = Tkinter.IntVar()
# Set the intVar objects to 0.
self.cb_var1.set(0)
self.cb_var2.set(0)
self.cb_var3.set(0)
# Create the Checkbutton widgets in the top_frame.
self.cb1 = Tkinter.Checkbutton(self.computer_frame, \
text='PC', variable=self.cb_var1)
self.cb2 = Tkinter.Checkbutton(self.computer_frame, \
text='Mac', variable=self.cb_var2)
self.cb3 = Tkinter.Checkbutton(self.computer_frame, \
text='Other', variable=self.cb_var3)
# Pack the Checkbuttons.
self.cb1.pack(side = 'left')
self.cb2.pack(side = 'left')
self.cb3.pack(side = 'left')
# Creating the Create Story button widget
self.story_button = Tkinter.Button(self.story_frame, \
text='Make Story!', \
command = self.make_story)
#packing the create story button
self.story_button.pack(side = 'left')
# We need a StringVar object to associate with
# an output label. Use the object's set method
# to store a string of blank characters.
self.value = Tkinter.StringVar()
# Create a label and associate it with the
# StringVar object. Any value stored in the
# StringVar object will automatically be displayed
# in the label.
self.story_output = Tkinter.Label(self.story_frame, \
textvariable=self.value)
# trying to make Tkinter.Text
self.text_widget = Tkinter.Text(self.story_output, width=25, height=10)
self.text_widget.pack(side = 'bottom')
self.story_output.pack(side = 'right')
# the Tkinter main loop
Tkinter.mainloop()
def make_story(self):
test = self.character_entry.get().strip() + " is a hard working person."
self.value.set(test)
story_maker = StoryMaker()
[/code]
[QUOTE=dije;39740885][t]https://dl.dropbox.com/u/41041550/Coding/C%23/OGLFV/yebetter.PNG[/t]
Going to have a go at geometry shaders soon to displace the event horizon.[/QUOTE]
As this is relatively smooth and has many small round features, wouldn't it be better to change the fragment depth instead?
That's a honest question, I don't know how it compares to tessellated geometry in regards to performance.
Profiled my interpreter to find out that the bad performance was caused by a particular part of my code consisting of everything. There's no bottleneck. It's just spread out everywhere, equally slow.
I guess it's determined to be a completely unviable language.
Trying to figure out github. So far this has been worse than pulling teeth. Could some one more simply explain it or link me to a better tutorial? So far I've been drudging through git bash commandline stuff that makes zero sense.
EDIT: The tutorial I've found insisted that "The Windows GitHub program wouldn't make sense to you until you go so low level your face is in shit"
[QUOTE=DoctorSalt;39753829]Trying to figure out github. So far this has been worse than pulling teeth. Could some one more simply explain it or link me to a better tutorial? So far I've been drudging through git bash commandline stuff that makes zero sense.[/QUOTE]
I'm having difficulties with some things as well, but I just use GitHub for windows and EGit(eclipse plugin, the plugin is what's causing difficulties as it doesn't do some things).
Commit send a change to your local repository
Push send all local commits to the external repository (GitHub etc)
Pull pulls changes from the external repository to your local repository
Clone creates a new local repository (I think) from an existing external repository
I just use the Windows GitHub program, it's actually really good. It also has command line if you really need it. They have some decent documentation.
[QUOTE=mobrockers2;39753997]I'm having difficulties with some things as well, but I just use GitHub for windows and EGit(eclipse plugin, the plugin is what's causing difficulties as it doesn't do some things).
Commit send a change to your local repository
Push send all local commits to the external repository (GitHub etc)
Pull pulls changes from the external repository to your local repository
Clone creates a new local repository (I think) from an existing external repository[/QUOTE]
I haven't had any problems using EGit for work. What doesn't it do?
The UI clients for git always tend to do some questionable things, I'd recommend at least [url=http://git-scm.com/]learning[/url] about how git works even if you do use something like GitHub for Windows.
I have a horrible confession, I don't know my svn or git commands by heart. I'm lazy and just use tortoise* solutions because I don't care to learn the commands that much unless I'm on Linux.
[editline]28th February 2013[/editline]
Maybe it would be smart for me to do a no-tortoise March or something.
[QUOTE=Neo Kabuto;39754646]I haven't had any problems using EGit for work. What doesn't it do?[/QUOTE]
[img]http://i.imgur.com/3dWUtDG.png[/img]
I'm supposed to add something in git's settings but I have to do it for each and every project, GitHub for windows has no problem pulling but EGit needs that.
[QUOTE=Darwin226;39753564]Profiled my interpreter to find out that the bad performance was caused by a particular part of my code consisting of everything. There's no bottleneck. It's just spread out everywhere, equally slow.
I guess it's determined to be a completely unviable language.[/QUOTE]Hey, nothing's wrong with the language just because the interpreter's slow. And from what I saw, your organization and coding was kickass - it's really cool how easy it was to add new functions. If you coded it in C++ or C it would be faster but it wouldn't most likely be cleaner. it's just a tradeoff.
[URL="https://bitbucket.org/Tamschi/components/"]I open-sourced my components framework from a while back.[/URL] It's very small, but maybe it's useful to someone.
Clone [URL="https://bitbucket.org/Tamschi/components-bundle/overview"]this repository[/URL] for a solution with both the framework and a bit of example code.
[editline]1st March 2013[/editline]
[QUOTE=Darwin226;39753564]Profiled my interpreter to find out that the bad performance was caused by a particular part of my code consisting of everything. There's no bottleneck. It's just spread out everywhere, equally slow.
I guess it's determined to be a completely unviable language.[/QUOTE]
Have you thought about making a CIL compiler? It's considerably easier than writing an interpreter.
[QUOTE=mobrockers2;39754784][img]http://i.imgur.com/3dWUtDG.png[/img]
I'm supposed to add something in git's settings but I have to do it for each and every project, GitHub for windows has no problem pulling but EGit needs that.[/QUOTE]
Each project would normally be in another repo though?
[QUOTE=mobrockers2;39754784][IMG]http://i.imgur.com/3dWUtDG.png[/IMG]
I'm supposed to add something in git's settings but I have to do it for each and every project, GitHub for windows has no problem pulling but EGit needs that.[/QUOTE]
There should be a command for this, it looks like it's either git remote add origin (url) or git remote set-url origin (url), where (url) is your remote url.
I don't know exactly about Git (too inconvenient), but TortoiseHg can manage paths (the remote equivalent) so it's likely that your GUI has that ability too, somewhere.
Apparently there isn't any support of Git for VS Express
Edit: I don't understand git terribly well, but apparently most IDE's allow for an integrated workflow, meaning you click a button while coding to commit over doing some sort of command line wizardry.
Someone who knows what they're talking about can elaborate perhaps, but VS express doesn't support third party extensions.
Editer: You guys are so awesome (helping with git). It made my day quite better
What do you mean? Just download git and use it.
[QUOTE=DoctorSalt;39753829]Trying to figure out github. So far this has been worse than pulling teeth. Could some one more simply explain it or link me to a better tutorial? So far I've been drudging through git bash commandline stuff that makes zero sense.
EDIT: The tutorial I've found insisted that "The Windows GitHub program wouldn't make sense to you until you go so low level your face is in shit"[/QUOTE]
Found [URL="http://www.youtube.com/watch?v=ZDR433b0HJY"]this[/URL] video, which explains how Git works, and how it's different from other subversion systems. And [URL="http://git-scm.com/documentation"]here[/URL] you can learn a little about doing different things with Git.
[QUOTE=DoctorSalt;39753829]Trying to figure out github. So far this has been worse than pulling teeth. Could some one more simply explain it or link me to a better tutorial? So far I've been drudging through git bash commandline stuff that makes zero sense.
EDIT: The tutorial I've found insisted that "The Windows GitHub program wouldn't make sense to you until you go so low level your face is in shit"[/QUOTE]
Try [url]http://pcottle.github.com/learnGitBranching/[/url] - it might be of some help.
[QUOTE=DoctorSalt;39753829]Trying to figure out github. So far this has been worse than pulling teeth. Could some one more simply explain it or link me to a better tutorial? So far I've been drudging through git bash commandline stuff that makes zero sense.
EDIT: The tutorial I've found insisted that "The Windows GitHub program wouldn't make sense to you until you go so low level your face is in shit"[/QUOTE]
[url]http://rogerdudler.github.com/git-guide/index.html[/url]
This is pretty good
OH look SDK updates
[img]http://puu.sh/2ac9f[/img]
Let me just install those
[img]http://puu.sh/2acat[/img]
Wat
Run the SDK manager or whatever it's called (or Eclipse, if you're doing from it) as an administrator.
[QUOTE=Tamschi;39755827]
Have you thought about making a CIL compiler? It's considerably easier than writing an interpreter.[/QUOTE]
Knowing nothing about it, I have a feeling that that means my language has to greatly resemble C#. As in, for has to be a loop, not a function. What about CodeBlock objects? How do I explain those in CIL? I don't know what I'm talking about though.
[editline]1st March 2013[/editline]
[QUOTE=account;39755488]Hey, nothing's wrong with the language just because the interpreter's slow. And from what I saw, your organization and coding was kickass - it's really cool how easy it was to add new functions. If you coded it in C++ or C it would be faster but it wouldn't most likely be cleaner. it's just a tradeoff.[/QUOTE]
Thanks man.
RakNet is so fucking awesome. Easily the best library I have ever used. I've been using it for 5 years now and I absolutely love it.
Just wanted to get that off my chest.
[QUOTE=Electroholic;39758995]RakNet is so fucking awesome. Easily the best library I have ever used. I've been using it for 5 years now and I absolutely love it.
Just wanted to get that off my chest.[/QUOTE]
I looked it up and I can see why. It has some pretty great integration with a lot of things. It's a shame it's C++, but disregarding that, I really like what it offers.
Sorry, you need to Log In to post a reply to this thread.