Programming, computers, etc. [Serious]

All things asdf (and anything else)
User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Thu Oct 11, 2012 7:32 pm

Yesterday a client sent us a couple hundred XML files to translate. About 10% of them were invalid XML (CDATA within CDATA). So I spent a chunk of the morning figuring out how to fix them so that we could feed them into our system. They may be looking to automate things, so either they'll need to send us valid XML, or we'll need to develop tools to fix it automatically and charge them the development costs.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Thu Oct 11, 2012 7:57 pm

Yay for charging them development costs! 8)
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Phantom
ASDF-ville inhabitant
ASDF-ville inhabitant
Posts: 9
Joined: Wed Jun 06, 2012 1:53 pm

Re: Programming, computers, etc. [Serious]

Post by Phantom » Sat Oct 27, 2012 8:54 pm

So out of curiosity is there anyone who could teach me to code in python? I am trying to learn it so write a program that utilizes a random character generator and a taskkill loop.

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Sun Oct 28, 2012 3:09 am

Here is the documentation for the random number generator built in to Python.

Do you have any specific questions? An online tutorial might be better than me just saying whatever comes to mind about Python, but I'm happy to answer any questions.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
Phantom
ASDF-ville inhabitant
ASDF-ville inhabitant
Posts: 9
Joined: Wed Jun 06, 2012 1:53 pm

Re: Programming, computers, etc. [Serious]

Post by Phantom » Sun Oct 28, 2012 3:28 am

Well, I only have one specific question. How could I take the random string of characters from the generator, add .exe at the end then put them into a looped taskkill. The reason I need to ask is that I don't know python but I have heard it can be used for this purpose and the tutorials I have found are not much help. Also, Thank you for the link. But I need it to generate and 8 character long string of lowercase letters. I need this in an attempt to block out a form of spyware that I cannot uninstall.

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Sun Oct 28, 2012 1:43 pm

Here's something that should work for you, then:

Code: Select all

import os
import random
toKill = "".join([chr(ord("a") + random.randint(0,25)) for i in range(8)]) + ".exe"
while os.system("taskkill /im " + toKill + " /f"):
    toKill = "".join([chr(ord("a") + random.randint(0,25)) for i in range(8)]) + ".exe"
This will run until it's succeeded in killing a process with a random, 8-character-long name. If you want it to run forever, let me know and I'll modify it. A ton of command windows will pop up and disappear, though, if you run it from IDLE instead of the command line.

Long-term solution, though? Find your Windows installation disk and use it to reinstall Windows.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
Phantom
ASDF-ville inhabitant
ASDF-ville inhabitant
Posts: 9
Joined: Wed Jun 06, 2012 1:53 pm

Re: Programming, computers, etc. [Serious]

Post by Phantom » Sun Oct 28, 2012 3:18 pm

Thank you, this should help a lot.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sun Oct 28, 2012 8:30 pm

i don't understand the reason for this. If the malware keeps creating randomly named processes, this seems like a horribly inefficient way of dealing with it. Also it could potentially kill other processes, no?
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Tue Oct 30, 2012 7:02 am

Yep. So probably not a good idea.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sun Nov 04, 2012 9:55 pm

These weeks I've been insanely preoccupied with the field of view algorithm for my top-down shooter game. (yeah, weeks :o holy mother of geometry, i am not worthy) It's finally done, and I think I'll show off some as soon as I have some decent collision detection working.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Mon Nov 05, 2012 2:32 pm

Yay!

I got my Pi working yesterday. Tiny Core Linux, because, for now, that's the only distribution of Linux that I've found that:
  1. Has been compiled for ARM v6.
  2. Fits on an SD card of less than 2 GB. (Currently I only have 256 MB and 512 MB)
I've read some how-tos on modifying the configuration file to run Linux off of a USB drive, though, so I might try that.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Mon Nov 05, 2012 5:13 pm

i am assuming by Pi you mean that fruity thing, something like raspberry pie? i don't know much about these. What are you using it for? I hope it involves secret surveillance of foreign intelligence agents or something fruity like that. What else are these things good for?

edit:

oh, yeah, this.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
assdef
JKL;'s Nightmare
JKL;'s Nightmare
Posts: 7273
Joined: Sat Jan 02, 2010 9:30 pm

Re: Programming, computers, etc. [Serious]

Post by assdef » Tue Nov 06, 2012 1:29 am

So it's a...blender...of some kind?
Image

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Wed Nov 07, 2012 8:36 pm

yeah.

I just found the best 404 error of all time. It said the following, typing it out character by character:

Code: Select all

The requested document is no more.
No file found.
Even tried multi.
Nothing helped.
I'm really depressed about this.
You see, I'm just a web server...
-- here I am, brain the size of the universe,
trying to serve you a simple web page,
and then it doesn't even exist!
Where does that leave me?!
I mean, I don't even know you.
How should I know what you wanted from me?
You honestly think I can *guess*
what someone I don't even *know*
wants to find here?
*sigh*
Man, I'm so depressed I could just cry.
And then where would we be, I ask you?
It's not pretty when a web server cries.
And where do you get off telling me what to show anyway?
Just because I'm a web server,
and possibly a manic depressive one at that?
Why does that give you the right to tell me what to do?
Huh?
I'm so depressed...
I think I'll crawl off into the trash can and decompose.
I mean, I'm gonna be obsolete in what, two weeks anyway?
What kind of a life is that?
Two flipping weeks,
and then I'll be replaced by a .01 release,
that thinks it's God's gift to web servers,
just because it doesn't have some tiddly little
security hole with its HTTP POST implementation,
or something.
I'm really sorry to burden you with all this,
I mean, it's not your job to listen to my problems,
and I guess it is my job to go and fetch web pages for you.
But I couldn't get this one.
I'm so sorry.
Believe me!
Maybe I could interest you in another page?
There are a lot out there that are pretty neat, they say,
although none of them was put on *my* server, of course.
Figures, huh?
Everything here is just mind-numbingly stupid.
That makes me depressed too, since I have to serve them,
all day and all night long.
Two weeks of information overload,
and then *pffftt*, consigned to the trash.
What kind of a life is that?
Now, please let me sulk alone.
I'm so depressed._
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Thu Nov 08, 2012 8:14 pm

assdef wrote:So it's a...blender...of some kind?
A tiny computer. Its only "hard drive" is an SD card.
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
Shai'tan
ASDF's Best Friend
ASDF's Best Friend
Posts: 26276
Joined: Fri Sep 14, 2007 12:14 pm
Location: Seven
Contact:

Re: Programming, computers, etc. [Serious]

Post by Shai'tan » Fri Nov 09, 2012 7:20 am

atomtengeralattjaro wrote:yeah.

I just found the best 404 error of all time. It said the following, typing it out character by character:

Code: Select all

The requested document is no more.
No file found.
Even tried multi.
Nothing helped.
I'm really depressed about this.
You see, I'm just a web server...
-- here I am, brain the size of the universe,
trying to serve you a simple web page,
and then it doesn't even exist!
Where does that leave me?!
I mean, I don't even know you.
How should I know what you wanted from me?
You honestly think I can *guess*
what someone I don't even *know*
wants to find here?
*sigh*
Man, I'm so depressed I could just cry.
And then where would we be, I ask you?
It's not pretty when a web server cries.
And where do you get off telling me what to show anyway?
Just because I'm a web server,
and possibly a manic depressive one at that?
Why does that give you the right to tell me what to do?
Huh?
I'm so depressed...
I think I'll crawl off into the trash can and decompose.
I mean, I'm gonna be obsolete in what, two weeks anyway?
What kind of a life is that?
Two flipping weeks,
and then I'll be replaced by a .01 release,
that thinks it's God's gift to web servers,
just because it doesn't have some tiddly little
security hole with its HTTP POST implementation,
or something.
I'm really sorry to burden you with all this,
I mean, it's not your job to listen to my problems,
and I guess it is my job to go and fetch web pages for you.
But I couldn't get this one.
I'm so sorry.
Believe me!
Maybe I could interest you in another page?
There are a lot out there that are pretty neat, they say,
although none of them was put on *my* server, of course.
Figures, huh?
Everything here is just mind-numbingly stupid.
That makes me depressed too, since I have to serve them,
all day and all night long.
Two weeks of information overload,
and then *pffftt*, consigned to the trash.
What kind of a life is that?
Now, please let me sulk alone.
I'm so depressed._
That's awesome! Where did you find this?
Quote of the Ages:
atomtengeralattjaro wrote:The Forums of ASDF turn, and Pages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Page that gave it birth comes again. On one Page, called the Six Hundred and Ninety Fifth Page by some, a Page yet to come, a Page long past, a post was made by atomtengeralattjaro. The post was not the beginning. There are neither beginnings nor endings to the turning of the Forums of ASDF. But it was a beginning.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Fri Nov 09, 2012 11:59 am

but if I tell you, you'll know :oops:

okay, well, here it is: http://www.amandatapping.com , most of the outgoing links are redirected badly, so it tries to open them as parts of the same domain.
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

User avatar
Anonymously Famous
JKL; Assassin
JKL; Assassin
Posts: 11413
Joined: Thu Mar 03, 2011 6:52 pm
Location: Area ???, under Bermuda Triangle

Re: Programming, computers, etc. [Serious]

Post by Anonymously Famous » Fri Nov 09, 2012 2:41 pm

At first I was looking for it, then I just decided to type in http://www.amandatapping.com/bogus

That worked.

I think I've seen something similar before. Maybe they took it from somewhere?
BOTTOM TEXT
ThingerDudes wrote:The only reasonable amount of Nutella is infinity. Everything else is too little.
Proud poster of the 300kth post in General

User avatar
Arkannine
ASDF Warlord
ASDF Warlord
Posts: 15525
Joined: Tue Oct 28, 2008 9:21 pm
Location: I'm on a boat
Pronouns: Don't even try, I'm offended already

Re: Programming, computers, etc. [Serious]

Post by Arkannine » Sat Nov 10, 2012 8:48 pm

I just bruteforced my router configuration page with a macro script I made with possible combinations because I had forgotten the password. I feel like such a h4X0r.
assdef wrote:I've seen a number of Cocks in my days.

User avatar
atomtengeralattjaro
Site Admin
Site Admin
Posts: 37513
Joined: Wed May 23, 2007 3:43 pm
Location: green
Pronouns: he / they / that submarine
Contact:

Re: Programming, computers, etc. [Serious]

Post by atomtengeralattjaro » Sat Nov 10, 2012 9:02 pm

you should also feel like getting a better router then.

(says the guy with the cheapest TP-link)
Ivokyuftaf6666 wrote:
Sun Oct 20, 2019 5:22 pm
Awesome Site, Delivering Fun
Image

Post Reply