Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
Copernicus
Jun 16, 2003

To know that we know what we know, and to know that we do not know what we do not know, that is true knowledge.

Lexical Unit posted:

Isn't 0x1A07003E7C + 1,000 = 111,786,606,204 + 1,000 = 111,786,607,204 = 0x1A07004264; then why 00-1A-07-00-46-4B?

Anyway, because I was bored (sorry theodop) I did this for *nix.
http://www.tinyappz.com/wiki/MACGen

So to use it like in your example you'd do:
$ g++ MACGen.cpp -o MACGen && echo "00-1A-07-00-3E-7C" | ./MACGen 1000 > macs.txt
To get a list of MAC address from 00-1A-07-00-3E-7C to 00-1A-07-00-42-64 in the file macs.txt.

I guess if you didn't want a *nix tool, then maybe theodop can still help you :)

I'm not good at counting HEX nor counting. Would my orginal number + 999 = My end number? The numbers that wrote in my OP.

I'm going to try your program out now.

I forgot to specify I was workign in a Windows enviorment, Vista to be exact, and i'm actually working abroad thus don't have access to any Macs other then a strangers at a terminal or a cafe. I don't think they'll apprecaite me loaind this, and generating MACs.

But thank you so much for the effort, hopefully it will help someone else.

Copernicus fucked around with this message at 23:56 on May 11, 2007

Adbot
ADBOT LOVES YOU

DLCinferno
Feb 22, 2003

Happy

EC posted:

This is a last-ditch effort for me. I've been trying to find something lightweight and simple that will take all of the items in a Exchange 2003 Public Calendar and put them into the local calendar in Outlook. It seems MS doesn't have a way to do this natively (which I simply cannot believe and wouldn't believe if I hadn't looked for the last couple of months), and the programs that DO have this feature also sync everything under the sun and want large amounts of $$$ for the privilege. Would something like this be possible?
I've been wanting to get into Office lately so I'll take a look. However, I've never done anything in Outlook so no promises. If anyone else has and wants to take this, I'd love to see the code when you're done.

Neurozys
Apr 15, 2004

Copernicus posted:

I'm not good at counting HEX nor counting. Would my orginal number + 999 = My end number? The numbers that wrote in my OP.

I'm going to try your program out now.

I forgot to specify I was workign in a Windows enviorment, Vista to be exact, and i'm actually working abroad thus don't have access to any Macs other then a strangers at a terminal or a cafe. I don't think they'll apprecaite me loaind this, and generating MACs.

But thank you so much for the effort, hopefully it will help someone else.

Lexical Unit's app used a regex library that doesn't ship with Visual Studio, so I just rewrote it using C# and a much, much simpler method.


http://www.tinyappz.com/wiki/MAC_Generator

Edit: poo poo. Sorry theodop, didn't notice your claim on it. Oh well, maybe we'll have 3 different MAC generators, and you can just pick your favorite.

Neurozys fucked around with this message at 02:54 on May 12, 2007

JediGandalf
Sep 3, 2004

I have just the top prospect YOU are looking for. Whaddya say, boss? What will it take for ME to get YOU to give up your outfielders?

Sharkface posted:

the win32 part makes this tough. the only way to do this is through WMI and typically, the folks who write drivers dont' include disable/enable commands in their drivers. would a .net app work?
I would imagine they have to otherwise the OS can't disable the device when I tell it to in the device manager. Unless device disabling is done some other method.

Anything in Win32 API can be imported from the dll file like user32.dll or kernel.dll into .NET. I had to use stuff from user32.dll to get low-level keyboard hooks like the following.
code:
//DLL Imports
[DllImport("user32.dll",SetLastError=true)]
private static extern IntPtr SetWindowsHookEx(int hook, LowLevelKeyboardProc callback,
   IntPtr hMod, uint dwThreadId);

[DllImport("user32.dll", SetLastError = true)]
private static extern bool UnhookWindowsHookEx(IntPtr hhk);

[DllImport("user32.dll")]
private static extern int CallNextHookEx(IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam);

[DllImport("kernel32.dll", CharSet = CharSet.Auto, SetLastError = true)]
private static extern IntPtr GetModuleHandle(string lpModuleName);        
//Variables
private static IntPtr m_pHookID;
LowLevelKeyboardProc KeyboardProc;
So I guess in theory, you can find the Win32 API that actually disables devices and import that as a .NET DLL inport. If that doesn't work, then WMI would be the next method to try.

Mad Brahmin
Dec 29, 2004

JediGandalf posted:

I would imagine they have to otherwise the OS can't disable the device when I tell it to in the device manager. Unless device disabling is done some other method.

I don't think I've seen any device management functions in the Windows API. You could probably grab the source to devcon included in the Windows Driver Development Kit and hack it into a nice interface. Devcon is similar to the Windows device manager, but in console form.

http://www.microsoft.com/whdc/devtools/ddk/default.mspx

Javid
Oct 21, 2004

:jpmf:
My request:

A PHP script that, when called via an <img> tag, will return image1.jpg if the IP requesting it matches any of a given set, or image2.jpg if the requesting IP does not match.

Basically:

user1 posts <img src=dongs.php>
user2 loads image from matching ip, gets picture of kitten
user3 loads image from non-matching ip, gets picture of south african marmoset

http://www.tinyappz.com/wiki/Request:1178972656

This is the kind of thing I hate because it would take me days to google up the info on how to staple it together but someone with a clue could probably do it in like 5 minutes.

EC
Jul 10, 2001

The Legend

DLCinferno posted:

I've been wanting to get into Office lately so I'll take a look. However, I've never done anything in Outlook so no promises. If anyone else has and wants to take this, I'd love to see the code when you're done.

Hey cool, thanks. No worries if its to big of a deal, though. I'm still amazed this isn't something built in, it seems so simple.

Xyon
Apr 13, 2007
A bookmark tool for long webpages/documents

for when you are reading an FAQ or walkthrough, you could mark a point in the page and skip to that point when you reload the page or whatever

I hope that makes sense. Would be ideal if it worked for firefox.

Lexical Unit
Sep 16, 2003


More like 5 seconds :-p http://www.tinyappz.com/wiki/PHPIPSwitch

JediGandalf
Sep 3, 2004

I have just the top prospect YOU are looking for. Whaddya say, boss? What will it take for ME to get YOU to give up your outfielders?

Mad Brahmin posted:

I don't think I've seen any device management functions in the Windows API. You could probably grab the source to devcon included in the Windows Driver Development Kit and hack it into a nice interface. Devcon is similar to the Windows device manager, but in console form.

http://www.microsoft.com/whdc/devtools/ddk/default.mspx
Well I found lots of stuff about manipulating devices. But I'm still striking out on finding out how to disable a device :smith:

Edit: It's probably easier just to do what you suggested and hack up devcon.

JediGandalf fucked around with this message at 18:16 on May 12, 2007

END CHEMTRAILS NOW
Apr 16, 2005

Pillbug
I'd like a web app (javascript?) that provides fake tabs for browsers that don't have tab capability.

Basically, the app would float a couple of buttons over the current page, with each button corresponding to an open website. It could automatically open two tabs to predetermined websites, so the ability to open and close tabs isn't necessary.

I want this because there is a pretty good web browser for the Wii, but it doesn't support tabs, and only one window can be opened at a time. I think a lot of Wii owners would appreciate this app, since there's currently no way to listen to internet radio while browsing, or to read a page while waiting for something to load. It would make web browsing on the Wii (and probably on some other platforms as well) much more enjoyable.

As far as I can tell, the Wii browser is an almost fully-functional implementation of Opera (tabs notwithstanding), so anything that would work in Opera should be fine. However, frames don't work well because of the the way the browser's built-in scrolling features work.

EC
Jul 10, 2001

The Legend

NotInventedHere posted:

As far as I can tell, the Wii browser is an almost fully-functional implementation of Opera (tabs notwithstanding), so anything that would work in Opera should be fine. However, frames don't work well because of the the way the browser's built-in scrolling features work.

Have you tried this? I've never gotten around to it, but it supposedly works, although it ain't perfect.

END CHEMTRAILS NOW
Apr 16, 2005

Pillbug

EC posted:

Have you tried this? I've never gotten around to it, but it supposedly works, although it ain't perfect.
Thanks. The site you're talking about appears to be down, but while I was looking for a mirror I found this, which works great. Thanks for pointing that out.

regulargonzalez
Aug 18, 2006
UNGH LET ME LICK THOSE BOOTS DADDY HULU ;-* ;-* ;-* YES YES GIVE ME ALL THE CORPORATE CUMMIES :shepspends: :shepspends: :shepspends: ADBLOCK USERS DESERVE THE DEATH PENALTY, DON'T THEY DADDY?
WHEN THE RICH GET RICHER I GET HORNIER :a2m::a2m::a2m::a2m:

This might be a bit out of your scope ... I took all of two semesters of programming in college so I don't have a good idea about how viable or complicated this would be.

Most game review sites measure min/max/average FPS. It seems to me that a better way to benchmark performance would be to measure the median -- I can think of several circumstances in which the average (mean) FPS would be greater then the median FPS in a game, but be overall less playable. Benchmarking tools like FRAPS only measure the mean FPS, though.

In any event, if something like this could be coded up in Visual Basic or C, so I'd have an outside chance of being able to make minor changes in it, I'd gladly donate a reasonable fee ... say, $20-40, depending on robustness or whatnot.

http://www.tinyappz.com/wiki/Request:1179114991

regulargonzalez fucked around with this message at 04:58 on May 14, 2007

J. Elliot Razorledgeball
Jan 28, 2005

Dicky B posted:

I'd like a PHP script that allows me to upload files to my web server without having to log in. I've looked around for something like this but I can't find anything that isn't feature packed with things I don't need.

Preferably the page would just look like this:

Password:
[_________]

File:
[_______________________][ Browse... ]

[ Upload ]

And this would upload the file to a directory that requires a password to access the index. I don't need to manage the files at all; I can do that via FTP when I get home.

I probably know enough about PHP to cobble this together myself but I don't know anything about web security so I'm worried I'll leave a huge security hole or something :3:

http://www.tinyappz.com/wiki/Request:1178039708

Here

For the password protection on the upload directory, I'd recommend using an .htaccess file. Let me know if you have any problems.

Dicky B
Mar 23, 2004

J. Elliot Razorledgeball posted:

Here

For the password protection on the upload directory, I'd recommend using an .htaccess file. Let me know if you have any problems.
I got everything set up and it works perfectly. Thanks so much :love:

Isaac Asimov
Oct 22, 2004

Phrost bought me this custom title even though he doesn't know me, to get rid of the old one (lol gay) out of respect for my namesake. Thanks, Phr

Dicky B posted:

I got everything set up and it works perfectly. Thanks so much :love:
I've been attempting to use this very script and it isn't uploading correctly. I think it's a problem with the directories. Do I use forward slashes, do I add [url]http://[/url] etc etc?

Dicky B
Mar 23, 2004

Isaac Asimov posted:

I've been attempting to use this very script and it isn't uploading correctly. I think it's a problem with the directories. Do I use forward slashes, do I add [url]http://[/url] etc etc?
You need to use the server path, not the URL. So it will be something like /home/yourname/yoursite.com/uploaded//

Mindbullets
Jan 18, 2007
Yea! Getsome!
Maybe this was posted already. Heh.
Can someone cook up a program that when run, separates every file in a directory into a folder based on its filetype, then names teh folder whatever the extention is.
It would ignore folders already placed and only separate files in the directory.
Also, it would ignore case (jpg vs JPG).

Call it Directclean or something.

1000 internets to this person.
I love you [person who does this].
:D

lmao zebong
Nov 25, 2006

NBA All-Injury First Team
Can someone write me a quick program that would shut down Azureus when I open up CounterStrike, and then start it back up again once CS is closed? If so, that would be seriously amazing.

Mantrid
May 8, 2007

by angerbot
This might be a little more intense than what this thread is for, but I would really like a program that could grab an email from a server (using POP or SMTP), and then based on who the from address is and what the content of the message is, run a command, launch a program, or run a batch file.

I've always wanted this, because then I could send commands to my computer or server with my cell phone.

DLCinferno
Feb 22, 2003

Happy

Mantrid posted:

This might be a little more intense than what this thread is for, but I would really like a program that could grab an email from a server (using POP or SMTP), and then based on who the from address is and what the content of the message is, run a command, launch a program, or run a batch file.

I've always wanted this, because then I could send commands to my computer or server with my cell phone.
This isn't a new concept, but I assume you want it for Windows and not *nix?

http://codewar.net/cuts/

It actually wouldn't be too hard to write this, but the security hole is rather large. What's your concept here? Here's what came to my mind:

- Client runs as service or tray app
- Periodically checks email for message from mantrid@nokia.com and subject is "Command" (or whatever you configure)
- Parses body of Command email for keywords
- keyword can either indicate a predefined command line string or a full string to be sent right to the command line
- optional arguments can be setup for predefined strings like: "run music busdriver" to open your mp3 player and begin playing Roadkill Overcoat
- preset password must exist somewhere in the message?

Bodhi Tea
Oct 2, 2006

seconds are secular, moments are mine, self is illusion, music's divine.

Mindbullets posted:

Maybe this was posted already. Heh.
Can someone cook up a program that when run, separates every file in a directory into a folder based on its filetype, then names teh folder whatever the extention is.
It would ignore folders already placed and only separate files in the directory.
Also, it would ignore case (jpg vs JPG).

Call it Directclean or something.

1000 internets to this person.
I love you [person who does this].
:D


Alright, I've made this one. Hopefully it's what you are looking for. It's written in pure C, so it might make your computer explode if not used properly. I've tested it on quite a few directories without any problem, but I reccomend you try it out on a test dir to see if its doing what you want.

http://www.tinyappz.com/wiki/DirSort

It's a simple command-line program:

code:
DirSort <dir-name>
I've included my hideous source-code, but you'll need the bstring lib if you want to compile. Also, it's strictly for windows as it makes heavy use of the win32 api.

Farts
Nov 4, 2005
I was wondering if it was possible to get an application that would save all a users settings for their MS office suite applications (location of toolbars, macros, ect.) into a folder.

I'm pretty sure that their settings are all saved to a file, but then again, i'm not too sure. This could possibly be a few lines of a batch file.

The Aphasian
Mar 8, 2007

Psychotropic Hops


I would like a Greasemonkey Script/Firefox Extension/stand-alone program to automatically convert video links to embedded video code (or grab it off the site, although I imagine that would be troublesome).

I imagine right-clicking on a video-link and seeing "Copy Link Location" and below that, if it is a video link, "Generate and Copy Embed Code". The only issue would be that each site has it's own embed format (Google Video, Youtube, Daily Motion, FileFront and any major ones I might be forgetting).

It would be used for this site: http://aphasian.info/letsfail .

http://tinyappz.com/wiki/Request:1179349154

Neurozys
Apr 15, 2004

The Aphasian posted:

I would like a Greasemonkey Script/Firefox Extension/stand-alone program to automatically convert video links to embedded video code (or grab it off the site, although I imagine that would be troublesome).

biznatchio made a great greasemonkey script that could be converted to this use with a little work. It's also quite awesome as-is and every single person on the forum should install it.

http://forums.somethingawful.com/showthread.php?s=&threadid=2397868

Mindbullets
Jan 18, 2007
Yea! Getsome!

Bodhi Tea posted:

Alright, I've made this one. Hopefully it's what you are looking for. It's written in pure C, so it might make your computer explode if not used properly. I've tested it on quite a few directories without any problem, but I reccomend you try it out on a test dir to see if its doing what you want.

http://www.tinyappz.com/wiki/DirSort

It's a simple command-line program:

code:
DirSort <dir-name>
I've included my hideous source-code, but you'll need the bstring lib if you want to compile. Also, it's strictly for windows as it makes heavy use of the win32 api.

Thanks Friend.
Your prize of 1000 internets is awarded.

One thing though, any chance of reversing that program too to get an app that dumps all files in all folders (or as many levels as you designate) to dump into a certain directory.

Id have a sorter and a mixer...would be useful.

Ephemerous
Jul 31, 2003

http://www.tinyappz.com/wiki/Request:1179385274

quote:

I want an app (well, screensaver) that blanks the screen and displays the time (with seconds), preferably in a user selected font/size. Nothing fancy. I've been looking for months and the closest I can find is a glowy digital clock with a terrible font without seconds.
I figured I wasn't the only one who wanted something like this, so it might already exist and be buried by millions of 'free' (20 dollar) screensavers that don't do what I want.

Mantrid
May 8, 2007

by angerbot

DLCinferno posted:

This isn't a new concept, but I assume you want it for Windows and not *nix?

http://codewar.net/cuts/

It actually wouldn't be too hard to write this, but the security hole is rather large. What's your concept here? Here's what came to my mind:

- Client runs as service or tray app
- Periodically checks email for message from mantrid@nokia.com and subject is "Command" (or whatever you configure)
- Parses body of Command email for keywords
- keyword can either indicate a predefined command line string or a full string to be sent right to the command line
- optional arguments can be setup for predefined strings like: "run music busdriver" to open your mp3 player and begin playing Roadkill Overcoat
- preset password must exist somewhere in the message?

Yup, thats pretty much spot on. And yes, I am looking for something for Windows. Although I will look into the site you linked to for my experiments with *nix.

I actually didn't think of having to have a password in the message, but thats an excellent idea.

Satisfaction Guaranteed
Jan 17, 2001

Forum Veteran

Is there a program out there that can close all the folders and windows in my toolbar with a one click button?

It gets really messy down there and sometimes I want to press like a "nuke" button.

MC Fruit Stripe
Nov 26, 2002

around and around we go
NOT WGET, just getting that out of the way right now.

A program that would download full sized pictures from Wikimedia commons. You'd provide the URL, and it would download all of the images on that page. For example, the link http://commons.wikimedia.org/wiki/Category:Language would return those 16 pictures in full resolution.

Bonus points for...

- Having a recursive option, so that the Language page would then go into the Bengali category, and then into the Bhasha Andolon category for their pictures.
- Having the directory and file name structure be pulled from the category and picture names.
- Having the option to slow the download or increase the delay so I don't hammer a website.

I tried using DownThemAll and wget, but neither actually does what is needed. In theory I should be able to enter the URL http://commons.wikimedia.org/wiki/Category:Counties_in_Virginia into a little script, and it'll slowly crawl through all of those counties and return all of their pictures into appropriate folders.

MC Fruit Stripe fucked around with this message at 19:57 on May 17, 2007

Lexical Unit
Sep 16, 2003

Mindbullets posted:

One thing though, any chance of reversing that program too to get an app that dumps all files in all folders (or as many levels as you designate) to dump into a certain directory.
I'm trying to read through Effective C++ for the first time and learn Boost at the same time, so I've tried to do this in what should be nice portable C++ code. But I've only ever tested it on Mac OS X since that's all I have at the moment.

It will sort and unsort files in directories. It can do it recursively up to a limit and will follow or not follow symbolic links. It won't touch files with no extension or *nix dot files. By default it copies files only, but it can be set to move them instead. It also offers interactive or forced overwrite/skip/always-overwrite/never-overwrite functionality.

http://www.tinyappz.com/wiki/Exdir

Wheee!

PulsarD
Aug 7, 2003
Premium
Biscuit Hider
How about an application that would allow me to type in a users name, have it automatically do a search for actual account in AD, then allow me to do tasks such as unlock account and change password.

I have a little utility right now, called lockoutstatus.exe. It queries each AD server and displays wether or not the account is locked, how many failed password attempts have been done, and the last date a bad password was used.

It is perfect, except it wants you to use the account name, and has no lookup option. So I go into ADU&C to find the account name to unlock. The nicest feature is it alows me to send an unlock to each server instead of waiting for the change to replicate.

wrok
Mar 24, 2006

by angerbotSD

MC Fruit Stripe posted:

NOT WGET, just getting that out of the way right now.

A program that would download full sized pictures from Wikimedia commons. You'd provide the URL, and it would download all of the images on that page. For example, the link http://commons.wikimedia.org/wiki/Category:Language would return those 16 pictures in full resolution.

Bonus points for...

- Having a recursive option, so that the Language page would then go into the Bengali category, and then into the Bhasha Andolon category for their pictures.
- Having the directory and file name structure be pulled from the category and picture names.
- Having the option to slow the download or increase the delay so I don't hammer a website.

I tried using DownThemAll and wget, but neither actually does what is needed. In theory I should be able to enter the URL http://commons.wikimedia.org/wiki/Category:Counties_in_Virginia into a little script, and it'll slowly crawl through all of those counties and return all of their pictures into appropriate folders.

http://urltoys.com/ does exactly what you need.

----------------
This thread brought to you by a tremendous dickhead!

MC Fruit Stripe
Nov 26, 2002

around and around we go

wrok posted:

http://urltoys.com/ does exactly what you need.
I get off work in 7 minutes so I'll check it when I get home. I swear if you're right you're getting buddylisted so hard.

wrok
Mar 24, 2006

by angerbotSD

MC Fruit Stripe posted:

I get off work in 7 minutes so I'll check it when I get home. I swear if you're right you're getting buddylisted so hard.

It's not wiki specific, so it might not do *exactly* what you want, but it crawls a list of URLs (multiple levels if you like), and compiles a list of all links/embedded images -- you can then filter *.jp* or whatever to download what you want. All saved in a customizable directory structure based on the URL, filetype, or what not.

----------------
This thread brought to you by a tremendous dickhead!

MC Fruit Stripe
Nov 26, 2002

around and around we go

wrok posted:

It's not wiki specific, so it might not do *exactly* what you want, but it crawls a list of URLs (multiple levels if you like), and compiles a list of all links/embedded images -- you can then filter *.jp* or whatever to download what you want. All saved in a customizable directory structure based on the URL, filetype, or what not.
I got it to do what it does, but it doesn't do what I need.

If I give it the URL http://en.wikipedia.org/wiki/Parliament_Acts it has to go into the passing of the parliamnent bill photo and then into the full sized version of it and return that into the Parliament Acts folder. Not just the 320x240 thumbnail.

So close, but not quite. Someone from this forum contacted me about it and claims he can do it in Perl, so I guess I'll see.

b0lt
Apr 29, 2005

MC Fruit Stripe posted:

- Having a recursive option, so that the Language page would then go into the Bengali category, and then into the Bhasha Andolon category for their pictures.

You do realize this will basically download all of Wikipedia, right?

b0lt
Apr 29, 2005
Ok, I finished a preliminary program in C# to do the wiki image thing, I'll get recursion done in a few minutes.

Edit: Zip with binary/source: http://b0lt.files-upload.com/files/236258/WikiImage.zip

b0lt fucked around with this message at 16:58 on May 19, 2007

Adbot
ADBOT LOVES YOU

Neurozys
Apr 15, 2004

By the way, the download counter also logs the last time something was downloaded (well, as of a few days ago, anyway.) I haven't bothered intergrating that info into the wikimedia extension, but in case you're curious, here's a list of the last 20.

http://www.tinyappz.com/extensions/Downloads.php

  • Locked thread