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
Hoborg
Oct 19, 2006

by T. Mascis
BTW, what's the current status of any "Request a Tiny Custom App Website" thing to organise all of the posted apps?

I know the original went down a couple of years ago, but has anything popped up since?

Adbot
ADBOT LOVES YOU

thegasman2000
Feb 12, 2005
Update my TFLC log? BOLLOCKS!
/
:backtowork:
I am sure I could knock something up if there is a want for it again?

I have registered tinycustomapp.in (it was cheap) and will throw something together today.

thegasman2000 fucked around with this message at 11:40 on Jul 4, 2011

Modern Pragmatist
Aug 20, 2008
I seem to remember that the original website was archived before being taken offline in case someone wanted to host it at a later date.

thegasman2000
Feb 12, 2005
Update my TFLC log? BOLLOCKS!
/
:backtowork:

Modern Pragmatist posted:

I seem to remember that the original website was archived before being taken offline in case someone wanted to host it at a later date.

Can you remember who it was? I can host this.

Corla Plankun
May 8, 2007

improve the lives of everyone
Here's what the OP posted:

Neurozys posted:

Here's an archive of every app that was hosted on tinyappz.com. The wiki text is not included, since parsing it out of the database dump would be a huge pain, and I'm not going to put the dump online since it contains the email addresses of people who registered on the site. It's 28 MB.

https://docs.google.com/leaf?id=0BykLs0u-FbuDOTg1NjViNjctZDhhZi00MTNiLWI2MzktOWRmNzI5YjZmODE3&hl=en

mobby_6kl
Aug 9, 2009

by Fluffdaddy

Hoborg posted:

BTW, what's the current status of any "Request a Tiny Custom App Website" thing to organise all of the posted apps?

I know the original went down a couple of years ago, but has anything popped up since?

I just put all my apps in a folder on my host and will create some kind of directory for them when I can get off my rear end long enough to finish that. Otherwise I think we just have the archive that CP posted above.

Sharrow
Aug 20, 2007

So... mediocre.
I could do with an tiny app that... launches another app.

Basically, I have Program A which will occasionally launch Program B. I'd like to replace Program B with a better version, but the problem is that Program A has B's executable hard-coded in and also doesn't suppose arguments.

What I'm thinking is that instead of

A executes 'B.exe'

it's more like

A executes 'B.exe'
B reads 'B.ini'
B.ini contains 'xyz.exe -param 1 -buttes "jerk 2000"'
B executes 'xyz.exe -param 1 -buttes "jerk 2000"'

B would also need to stay resident and only terminate when the spawned child terminates so A stays waiting. If B could read a different config file depending on its own filename (so C.exe reads C.ini) that would be awesome.

xyz.exe would probably be in the same directory as B.exe, and the name and format of the config file I don't care about.

Sharkface
Apr 20, 2002

Sharrow posted:

I could do with an tiny app that... launches another app.

Basically, I have Program A which will occasionally launch Program B. I'd like to replace Program B with a better version, but the problem is that Program A has B's executable hard-coded in and also doesn't suppose arguments.

What I'm thinking is that instead of

A executes 'B.exe'

it's more like

A executes 'B.exe'
B reads 'B.ini'
B.ini contains 'xyz.exe -param 1 -buttes "jerk 2000"'
B executes 'xyz.exe -param 1 -buttes "jerk 2000"'

B would also need to stay resident and only terminate when the spawned child terminates so A stays waiting. If B could read a different config file depending on its own filename (so C.exe reads C.ini) that would be awesome.

xyz.exe would probably be in the same directory as B.exe, and the name and format of the config file I don't care about.

i could write a vb script that would read B.ini and fire the exe you want. i'm not sure why you want B to be a TSR, is there something that B would be doing after it executes the command?

m2pt5
May 18, 2005

THAT GOD DAMN MOSQUITO JUST KEEPS COMING BACK

Sharkface posted:

i'm not sure why you want B to be a TSR, is there something that B would be doing after it executes the command?

It sounds to me like A does something when B.exe closes, so B would have to be a TSR for A to continue to function properly.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

I need a Windows developer to write me a command line application that returns a parseable list of the sound devices in the system that includes all the info in the Sound applet:



That would include the device name, the "extended name" (like 5- Logitech G35 Headset), the state (Not plugged in), and whther it is the default device or default communications device (see the drop down arrow on the Set Default) button.

I'm not really familiar with windows programming, and can't for the life of me figure out how to get this info out of .NET or WMI. This is for free app Soundswitch which is wrote in AutoIT. Currently I automate opening the Sound applet and scrape all this info out of the window controls, but that's clunky and it's hard to maintain state without always opening up that dialog.

So...a command line program that outputted this info via stdout would rock my world!

ephphatha
Dec 18, 2009




Thermopyle posted:

So...a command line program that outputted this info via stdout would rock my world!

Can do this with OpenAL, but the documentation is... lacking. I feel like a break from Java though so I'm going to have a go.

Edit: gently caress this poo poo. OpenAL is not the way to go. I can list all active devices (ie, devices which show up in windows sound as "Connected") but can't get a true list of all devices. Hope someone can find some other way to do it.

vvvv That's pretty cool. It lists all input and output devices together though, so it's hard to differentiate between them.

ephphatha fucked around with this message at 13:48 on Jul 15, 2011

Dicky B
Mar 23, 2004

edit: ^^^ updated!

http://pleasesendhelp.com/Apps/Audiopyle.exe (source)
Tested on Vista.

Dicky B fucked around with this message at 14:05 on Jul 15, 2011

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Dicky B posted:

edit: ^^^ updated!

http://pleasesendhelp.com/Apps/Audiopyle.exe (source)
Tested on Vista.

You're the awesomest person ever.

Is it easy to order the list in the same order they're listed in the Sound control panel? Maybe without any grouping...just list one device per line with it's associated info seperated by a comma or tab? Don't care how it looks since I'm just parsing it with another tool.

If it's too much trouble don't worry about it, I can work around it.

Thermopyle fucked around with this message at 22:47 on Jul 15, 2011

Dicky B
Mar 23, 2004

Yep I can do that. I basically just formatted it that way because that is how the information is provided by win32 (grouped by state.) I'll find time over the weekend to do it unless somebody else wants to make the change.

KillHour
Oct 28, 2007


Ok, so I have an HDTV hooked up as a mirrored monitor so I can play games or watch Netflix from my couch. The only problem is that I have to constantly switch my default audio device manually every time I switch between SPDIF and headphones. I have a fancy keyboard that will let me call programs with the media keys, so I need a program that will pop up in the background when I press a key and switch the audio output. Pressing the key again should switch it back. Basically, a program that flips the output every time it's run, then closes.

Corla Plankun
May 8, 2007

improve the lives of everyone

KillHour posted:

Ok, so I have an HDTV hooked up as a mirrored monitor so I can play games or watch Netflix from my couch. The only problem is that I have to constantly switch my default audio device manually every time I switch between SPDIF and headphones. I have a fancy keyboard that will let me call programs with the media keys, so I need a program that will pop up in the background when I press a key and switch the audio output. Pressing the key again should switch it back. Basically, a program that flips the output every time it's run, then closes.

I need this too! My fiancé uses our gaming rig for work with a USB headset and we have to manually toggle between headset and speakers every time either one of us sits down.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

See the application Soundswitch I mentioned 7 posts previous.

I'm the developer, and with the help I just received from this thread will be releasing some updates to it over the coming weeks.

Dicky B
Mar 23, 2004

Ok I'm not actually sure how the devices are ordered in the control panel. I'm guessing it's something weird like most frequently used in which case I have no idea how to get that information.

Here's a new version anyway. The devices are ordered first by data flow (render/capture) and then by GUID. The output should be a bit easier to parse now too.

http://pleasesendhelp.com/Apps/audiopyle_1.2.exe

I don't know if you'll find it useful but you can also filter the results using an -f argument. Examples:
-f active unplugged render : Display active or unplugged rendering devices.
-f disabled notpresent capture : Display disabled or not present capture devices.
-f active : Display all active devices.
-f render : Display all rendering devices.

If you want to display the GUIDs then you can also use -id

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Dicky B posted:

Ok I'm not actually sure how the devices are ordered in the control panel. I'm guessing it's something weird like most frequently used in which case I have no idea how to get that information.

Here's a new version anyway. The devices are ordered first by data flow (render/capture) and then by GUID. The output should be a bit easier to parse now too.

http://pleasesendhelp.com/Apps/audiopyle_1.2.exe

I don't know if you'll find it useful but you can also filter the results using an -f argument. Examples:
-f active unplugged render : Display active or unplugged rendering devices.
-f disabled notpresent capture : Display disabled or not present capture devices.
-f active : Display all active devices.
-f render : Display all rendering devices.

If you want to display the GUIDs then you can also use -id

Hot drat. You're the best goon on the internet. Thanks!

I'm going to use this in an open source application...mind throwing up the source for 1.2? Not sure what license I'm going to use, but at the least I'll leave attribution in the source. Is that ok?

edit: I spoke before trying it out...



Looks like you compiled against the debug runtime?

Thermopyle fucked around with this message at 23:34 on Jul 17, 2011

Dicky B
Mar 23, 2004

Look ma i'm a real programmer :pseudo:

Release version: http://pleasesendhelp.com/Apps/audiopyle_1.2.exe
Here's the souce. You're free to do what you want with it: http://pleasesendhelp.com/Apps/source/audiopyle_1.2_source.zip

bebaloorpabopalo
Nov 23, 2005

I'm not interested in constructive criticism, believe me.
This is a bit of a strange one but here we go.

I'd like a program that I can give a set of number/letter pairings and it can return solutions fitting a certain criteria. Specifically, I'd enter different pairings of the letters A-D and numbers 1-4 and get every combination of pairings where 3-4 pairings have the same letter and number, same letter and all different numbers, all different letters and same number, and all different letters and numbers.

For an example, say I enter A1, A2, A3, B2, C3, D3, D4 the different solutions I would get would be:

A1, A2, A3
A1, B2, C3, D4
A1, B2, C3
A1, B2, D3
A1, B2, D4
A1, C3, D4
A2, C3, D4
A3, B2, D4
A3, C3, D3
B2, C3, D4

The sets of data will be significantly larger and also variable in the number of pairings so you can see why doing this manually would take a lot of time. This should be doable in PHP or even Javascript and I'd actually prefer a web app if possible.

Volguus
Mar 3, 2009

Thermopyle posted:

See the application Soundswitch I mentioned 7 posts previous.

I'm the developer, and with the help I just received from this thread will be releasing some updates to it over the coming weeks.

This type of application would be wonderful.
Unfortunately, in Vista (and later) this can only be done by something like AutoIt. In windows XP a simple registry change would change the default device, but they removed that in Vista, only allowing the user to make the change via that control panel applet. They have nice APIs to query the sound devices and do a lot of things with them, just not change the default one :( .

In my opinion, while i do understand their reasons , i disagree with MS on this one. Seems like a management decision that has nothing to do with developers' needs or users for that matter. Completely disconnected from reality.

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Dicky B posted:

Look ma i'm a real programmer :pseudo:

Release version: http://pleasesendhelp.com/Apps/audiopyle_1.2.exe
Here's the souce. You're free to do what you want with it: http://pleasesendhelp.com/Apps/source/audiopyle_1.2_source.zip

You're the best, thanks!

rhag posted:

This type of application would be wonderful.

This makes it sound like Soundswitch isn't working for you? AFAIK, it's working fine unless you're using a non-English version of Windows. Let me know if there's a problem, and I'll fix it.

You're right though...it uses AutoIT.

Moey
Oct 22, 2010

I LIKE TO MOVE IT

Bebopaloobop posted:

This is a bit of a strange one but here we go.

I'd like a program that I can give a set of number/letter pairings and it can return solutions fitting a certain criteria. Specifically, I'd enter different pairings of the letters A-D and numbers 1-4 and get every combination of pairings where 3-4 pairings have the same letter and number, same letter and all different numbers, all different letters and same number, and all different letters and numbers.

For an example, say I enter A1, A2, A3, B2, C3, D3, D4 the different solutions I would get would be:

A1, A2, A3
A1, B2, C3, D4
A1, B2, C3
A1, B2, D3
A1, B2, D4
A1, C3, D4
A2, C3, D4
A3, B2, D4
A3, C3, D3
B2, C3, D4

The sets of data will be significantly larger and also variable in the number of pairings so you can see why doing this manually would take a lot of time. This should be doable in PHP or even Javascript and I'd actually prefer a web app if possible.

I'm going to take a shot at this tonight when I get home from work (in javascript). If anyone bangs it out before hand, I won't be upset. My code will probably look like it was written by monkeys anyway.

Quick question, 1 letter and number combo, or different amount of letters and numbers (ie, A4 F5 W9 vs AFD243 DF2143 SFEWC51)?

Moey fucked around with this message at 21:30 on Jul 18, 2011

Dicky B
Mar 23, 2004

Oh. I already did it. Sorry Moey :3:
http://pleasesendhelp.com/Apps/bebopairs/

This brute force checks every possible combination so I dunno how well it will perform on your data.

bebaloorpabopalo
Nov 23, 2005

I'm not interested in constructive criticism, believe me.

Dicky B posted:

Oh. I already did it. Sorry Moey :3:
http://pleasesendhelp.com/Apps/bebopairs/

This brute force checks every possible combination so I dunno how well it will perform on your data.

This is close but when entering the data set a4,b2,b2,b3,b4,c4,c4,d1,d2,d3,d4,d4 as an example I get back some sets that don't fit what I want:

a4, b4, c4, c4
a4, b4, d4, d4
a4, c4, c4
a4, c4, c4, d4

Stuff like this doesn't work because even though all the numbers are the same and multiples of the same letter are present in the data set, ALL of the letters in a solution must be different, or the same. The same goes for numbers:

d1, d3, d4, d4
d1, d4, d4
d2, d3, d4, d4
d2, d4, d4
d3, d4, d4

Even though all of the letters are the same, these don't work because all of the numbers are not different or the same.

Thank you for your attempt, though. I'm not quite sure how difficult implementing my criteria will be over what you've got. Also I'd like the source if possible to be able to run locally or host on my own server.

Moey posted:

Quick question, 1 letter and number combo, or different amount of letters and numbers

Just one each, though it would be nice to be able to use any amount of letters to count as one "letter" if that makes sense, just to be able to label them rather than using A, B, C, etc.

bebaloorpabopalo fucked around with this message at 00:20 on Jul 19, 2011

Dicky B
Mar 23, 2004

edit: actually i thought i had it but now i'm not so sure. I'll work on this tomorrow!

edit 2: I am so tired. Is this right? http://pleasesendhelp.com/Apps/bebopairs_2/
I'm going to bed now :gonk:

It's in javascript so you can grab the source from the browser.

Dicky B fucked around with this message at 01:32 on Jul 19, 2011

mobby_6kl
Aug 9, 2009

by Fluffdaddy
I'm working on a solution in C, but so far I didn't get past safely and reliably parsing the input :D Somebody will surely finish before I do, but it's a fun app to code and maybe the extra performance will be useful.

bebaloorpabopalo
Nov 23, 2005

I'm not interested in constructive criticism, believe me.

Dicky B posted:

edit: actually i thought i had it but now i'm not so sure. I'll work on this tomorrow!

edit 2: I am so tired. Is this right? http://pleasesendhelp.com/Apps/bebopairs_2/
I'm going to bed now :gonk:

It's in javascript so you can grab the source from the browser.

This seems perfect so far, I'll do more testing but it works great with the test I used on the last version. Thanks!

KillHour
Oct 28, 2007


Thermopyle posted:

You're the best, thanks!


This makes it sound like Soundswitch isn't working for you? AFAIK, it's working fine unless you're using a non-English version of Windows. Let me know if there's a problem, and I'll fix it.

You're right though...it uses AutoIT.

I'm running on very little RAM ATM, and I really don't want to leave another program running in the background for something so small.

citywok
Sep 8, 2003
Born To Surf
Hi,

I need to read a webpage (html style) and detect repetitive patterns, an example could be HTML that looks like this with the same structure, repeated 10-20 times but the contents would vary per instance. I'm doing this in PHP at the moment although perl would work fine as well. Does anybody have the knowledge or the skill to pursue doing this? I've thought about it but can't come up with a good dynamic solution.

It's important that the code not be looking for this HTML specifically, but for repeated patterns, this is just an example of what the HTML i'm looking for could look like.


<div class='property column-1' id='property-summary-[IMPORTANT_ID_NUMBER_I_NEED]'>
<h2 class='property-title'>Complexes</h2>
<div class='image-container'>
<div class='image thumbnail'>
<a href="/properties/details/pullman_wa_99163"><img alt="Complexes" src="/property/123.jpg" /></a>
</div>

<div class='property-helpers'>
<li class='favorite-link'>
<a href="/mysite/login?add_favorite=123" class="add-to-favorites-link">Add to Favorites</a>
</li>
</div>
<div class='property-details'>
<ul class='details-summary'>
<li class='price'>
<span class='price'>$XXX,XXX</span>
</li>
<li class='city-state'>
<span class='city-state'>
<span class='first city'>Pullman</span>
<span class='comma'>,</span>
<span class='state'>WA</span>
</span>
</li>
<li class='view-details'>
<div>
<label>Courtesy of</label>
<span class='courtesy-of'>citywok</span>
</div>
<a href="/properties/details/pullman_wa_99163">View Details</a>
</li>
</ul>
</div>
</div>
</div>

CuddleChunks
Sep 18, 2004

citywok posted:

<a href="/properties/details/pullman_wa_99163">View Details</a>

Greetings from Moscow, ID. What are you doing over there in Pullman?

citywok
Sep 8, 2003
Born To Surf

CuddleChunks posted:

Greetings from Moscow, ID. What are you doing over there in Pullman?

I'm actually in Redmond that was just my example heh. Pullman is too cold for me -- last time i was there was to watch the Apple Cup 4 or 5 years ago, lol. (at least we won!)

Hoborg
Oct 19, 2006

by T. Mascis

citywok posted:

I'm actually in Redmond that was just my example heh. Pullman is too cold for me -- last time i was there was to watch the Apple Cup 4 or 5 years ago, lol. (at least we won!)

Apple, Redmond, Software. Is something going on that I'm not aware of?

citywok
Sep 8, 2003
Born To Surf

Hoborg posted:

Apple, Redmond, Software. Is something going on that I'm not aware of?

Haha, no, the apple cup is our instate rivalry football game: http://en.wikipedia.org/wiki/Apple_Cup

Redmond + Software is mostly coincidence, although it's not hard to imagine why there are a lot of software dev's in Redmond, WA :)

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Dicky B posted:

Look ma i'm a real programmer :pseudo:

Release version: http://pleasesendhelp.com/Apps/audiopyle_1.2.exe
Here's the souce. You're free to do what you want with it: http://pleasesendhelp.com/Apps/source/audiopyle_1.2_source.zip

I feel terrible asking you this...but I don't think this is writing it's output to stdout? I doubled checked from the commandline by using "audiopyle_1.2.exe > test.txt". That just gives me a blank file. If I don't redirect and just type the command it prints to the console fine.

Dicky B
Mar 23, 2004

Redirecting to a file works for me on Vista. I don't have a windows 7 machine to test it on though.

The output is written to stdout (it just uses printf). I dunno what the heck!

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Dicky B posted:

Redirecting to a file works for me on Vista. I don't have a windows 7 machine to test it on though.

The output is written to stdout (it just uses printf). I dunno what the heck!

Yeah, I don't get it either. Could it have anything to do with 64/32 bit? I'm going to try on some other win7 and vista pc's I have in a little bit...

edit: Yeah, it works fine on a Vista 32 bit computer I have. I'll do some googlin' and see if I can't find an issue related to 64/32 and printf.

Thermopyle fucked around with this message at 03:11 on Jul 28, 2011

Mario
Oct 29, 2006
It's-a-me!

Thermopyle posted:

Yeah, I don't get it either. Could it have anything to do with 64/32 bit? I'm going to try on some other win7 and vista pc's I have in a little bit...

edit: Yeah, it works fine on a Vista 32 bit computer I have. I'll do some googlin' and see if I can't find an issue related to 64/32 and printf.
Tried it and it's the same on Win7 64, but adding fflush(stdout); before returning from main made it work (compiled with MS VC++ 10).

Adbot
ADBOT LOVES YOU

Thermopyle
Jul 1, 2003

...the stupid are cocksure while the intelligent are full of doubt. —Bertrand Russell

Mario posted:

Tried it and it's the same on Win7 64, but adding fflush(stdout); before returning from main made it work (compiled with MS VC++ 10).

What a glorious mofo you are. Made the change, compiled with VC++ 2010 Express, WIN!

Thanks!

  • Locked thread