Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Snake X

Pages: [1] 2 3 ... 56
1
Other / Re: Favorite distro or windows version?
« on: October 14, 2014, 09:14:51 pm »
What I like about 10 is that the start menu seems back. The lack of a classic start menu is why I did not switch to Windows 8.

That and it seems to crash a bit more and is less free on the settings it. I had to do some research on how to make a system backup on 8.1. What's worst is the UEFI on laptops. It's bad you're not able to restore windows without enabling that and switching the settings on it time to time when doing some repairs.

However it's fun on a touch enabled laptop.

2
Other / Re: Favorite distro or windows version?
« on: October 14, 2014, 09:05:38 pm »
If windows 10 can polish itself well enough I'll probably be making a switch from windows 7. I just dont like how it sync's even the keyboard layout, I have DIP switches on mine to make it dvorak on a hardware level so my laptop would be on the software level. If it were both on my PC, it would be like swapping all the keys twice  D:

3
Other / Favorite distro or windows version?
« on: October 14, 2014, 08:37:20 pm »
This is a rather tough one for me. It varies throughout the year but I tend to switch distro's time to time as well as the desktop environments on them. Recently I've been using the cinnamon DE on manjaro linux (a fork of arch linux with a GUI). I used linux mint on my laptop for a while, But I'm also interested in what you all use too.


What's your preferred flavoring of linux?
Or, if you use windows, favorite windows version?
I've tried windows 10 and it seems to be fairly decent but wont boot off an external and takes 10 minutes normally  ???


I also dual boot manjaro and windows 7 through grub, and have each on a raid 1 and windows 10 on a single drive.

4
Music Showcase / Re: Firestorm 2015 (yep, a new remix!)
« on: October 14, 2014, 08:21:01 pm »
Nice work as always DJ, takes me back quite a few years!

5
Humour and Jokes / Re: Why are tr1p1ea's still so expensive?
« on: October 14, 2014, 05:07:43 pm »
I blame the game.  :thumbsup:

6
Computer Programming / Dedicated thread sleeping?
« on: April 11, 2013, 09:30:41 pm »
Lol, sorry if I seem to be "overly-asking" with my mini-wall of threads ive been making, but ive beein doing quite a bit of programming recently :p

Anywho, I'm writing a library that will connect to sockets and manage them, process its data, and do stuff based on that.

My problem lays on sending b"\r\n\x00" to the socket every 20 seconds. I thought that if I started a new thread for the ping function, that would work.

..however, time.sleep() seems to pause the whole entire program instead of what I thought would be just that thread D:

here's my code thus far:

Code: [Select]
  def main(self):

    recvbuf = b""
    self.connect(self.group, self.user, self.password)
    while self.connected:
      rSocket, wSocket, error = select.select([x[self.group] for x in self.conArray], [x[self.group] for x in self.conArray], [x[self.group] for x in self.conArray], 0.2) #getting already made socket connections
      for rChSocket in rSocket:
        while not recvbuf.endswith(b"\x00"): #[-1] doesnt work on empty things... and recvbuf is empty.
          recvbuf += rChSocket.recv(1024) #need the WHOLE message ;D
        if len(recvbuf) > 0:
          dataManager.manage(self, self.group, recvbuf)
          recvbuf = b""
      for wChSocket in wSocket:
        t = threading.Thread(self.pingTimer(wChSocket)) #here's what I need to be ran every 20 seconds.
        t.start()
    chSocket.close()

and here's the pingTimer function:

Code: [Select]
  def pingTimer(self, wChSocket):
    time.sleep(20)
    print(time.strftime("%I:%M:%S %p]")+"Ping test!") #I don't want to mini-DDoS
    #wChSocket.send(b"\r\n\x00")

Thanks :D

7
Computer Programming / Re: Good openGL tutorials?
« on: March 12, 2013, 08:20:27 pm »
Can't seem to find a clear winner for this on google... GLFW or SDL?

edit: seems as though GLFW is more oriented towards games from what the OpenGL wiki says...

8
Computer Programming / Good openGL tutorials?
« on: March 11, 2013, 09:39:56 pm »
Tutorials are just one of those things that never set you up for the *REAL* work environment... Unless the writer knows this, of course.

Your not going to be using "OpenGL-tutorial-library-1.4.3.zip" in a professional work field. (I made the file name up but you get the idea.)

With that in mind... Looking for a good OpenGL tutorial that does NOT use any proprietary tools/library's for coding and goes into decent detail about the code's.

Note: I will be working in g++ with gedit on arch linux. Seems like everyone is using visual studio c++ these days..

Thanks.

9
Computer Projects and Ideas / Re: Original and unique idea's needed
« on: January 31, 2013, 01:05:09 pm »
Would it be possible to have x-y output, so you can write to any row?

nope, it can send text-based messages and it can get text-based messages. Wish that were true tho :/


and what is pesterchum? I'll see if i can look it up

10
Computer Projects and Ideas / Re: Original and unique idea's needed
« on: January 30, 2013, 08:00:54 pm »
Hmm, whats the game about?

11
Computer Projects and Ideas / Re: Original and unique idea's needed
« on: January 30, 2013, 05:28:19 pm »
yeah haha, i already made mine work with the bash shell and mysql commands. nice try tho.

12
Computer Projects and Ideas / Original and unique idea's needed
« on: January 30, 2013, 02:33:20 pm »
Alright, im building an irc-like bot however its not using irc, and the chat system works the same way as irc does.

With this in mind, I am looking for original, unique idea's for commands a user can use and interact with for entertainment or whatnot.

it's text-based, so keeping that in mind, im a bit restricted (i.e. no GUI).

The reason im asking this is because theres a 85% chance that what you thought of is already taken by other user-made bots, and im looking for something fresh.

So something that can be used for entertainment, games, getting something, or whatnot just as long as its text-based. I can't do anything like a full-on text rpg tho.

If you have an idea go ahead and post it, i'll get back and tell you if thats already taken.

A few idea's that are already used:
- definitions
- nicknames
- youtube/google/google image search
- roleplaying
- guess my number
- hang man
- messaging other rooms (rooms are the irc equivalent of channels)
- PMing people
- uno

It's rather hard thinking of things since i'm not the creative type of person, lol.

EDIT: make sure its something achievable with the python programming language :P

13
Computer Programming / Re: getting load status for individual commands?
« on: January 16, 2013, 07:04:35 pm »
Do you have sleeps and stuff like that so that the bot isn't constantly trying to execute code? Thats one of the main reasons it may use too much CPU. Otherwise you could put timing code into it to see what is using up the most CPU time

haha, well i had some code that was being frequently executed.. Took that out and bam! :D

14
Computer Programming / getting load status for individual commands?
« on: January 16, 2013, 06:49:19 pm »
Alright, so I run a python bot connected to some server.

I'll just start with that first.

So, when I go into SSH and I'm seeing that my bot which shouldn't be taking up much CPU happens to be the first on the list sorted by most intensive cpu processes.

I would love to know if there's some way to be able to track or trace exactly which part of my code in my python bot is causing it to create such a high amount of load on the CPU.

Right now, my only way of knowing what's taking up most of the cpu loads is this:

http://i50.tinypic.com/23sepdu.png

Not even sure what that text means under the command part... :L

15
Computer Programming / Re: removing b from bytes object
« on: December 07, 2012, 11:57:34 pm »
Ah, yeah. Indeed the b before the string is not part of the characters in bytes. Btw it wasn't MY code, it was an error in a small lib someone wrote

Pages: [1] 2 3 ... 56