topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 18, 2019, 04:44 PM
  • Proudly celebrating 13 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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 - Gothi[c] [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 32next
126
Perl / Re: Is Perl still being used?
« on: October 27, 2009, 07:28 AM »
I use perl all the time.
Whenever I find I have a bash script that's getting too long or too complicated I grab for perl.
When I need any sort of parsing-heavy application I grab for perl.
Just recently I made an apache stats analyzer in perl (awstats was missing some stuff I wanted) and only a few hours of perl code gets you a really nice result.
Sysadmins use perl a lot to automate all sorts of stuff, like I said, the next step up from a bash script seems to be a good use imo.

127
Living Room / Re: You have a computer backup plan.. but does it work?
« on: October 22, 2009, 09:46 AM »
When making entire disk images I'd also recommend putting an md5sum of the image in a text file along with it. If the drive on which you wrote the image has some kind of malfunction, before restoring you could check the md5sum and see if it matches the one previously saved when the image was created.

As a side note, if you're running anything other than windows you could use zfs as filesystem on your computer (which is not available not just on Solaris but on GNU/Linux and Freebsd too) which has snapshot and clone functionality built into it.


128
I, fortunately, have a very good memory so I don't use any program to remember my passwords. Just my noggin, but a lot of people aren't blessed with good memories so my solution isn't optimal for some.
As a sysadmin it's easy to have hundreds of very long very hard to remember passwords.... if your noggin can handle that, then wow... :)

129
I have a custom command-line password management script I wrote, kind of like a password search engine.
It lets me define any number of fields of information (kind of like an LDAP directory), eg: server name, ip address, user name, password, email address, url, notes,.... Not every entry needs to have all fields (Which is the advantage of directory-style versus column style) -
Then on commandline i just type:
pass somename someserver
- and it will give me the entry where all keywords hit, in a nice layout for easy copy/paste.

pass -e

will let me edit the directory in vim.
Every time i run pass, it asks for the master password, everything is encrypted using bcrypt or mcrypt

I may actually switch to a real encrypted ldap directory some day or use a real password management program, but so far this works quite nicely.

Lots of people swear by KeePass and stuff.

130
That seems like a very very dirty way to implement JS in a C++ app (Yes, C++ Builder applications are still C++ apps) :D
Especially since there are so many easier ways to embed js in C++ code. There are many wrappers around spidermonkey and others that make things VERY easy,...

Using JSDB ( http://www.jsdb.org/embedding.html ):

Code: C [Select]
  1. struct JSDBEnvironment;
  2.  
  3. #include "jsdb.h"
  4.  
  5. int main(int argc, char **argv)
  6. {
  7.   CoInitialize(0);
  8.   TBLEnv TableCache;
  9.   {
  10.     // cleanup in the right order
  11.     JSDBEnvironment JSDB(&TableCache);
  12.     JSDB.Startup(512*1024, 8192, 0);
  13.     JSDB.in = new FileStream("stdin",FileStream::OMText);
  14.     JSDB.out = new FileStream("stdout",FileStream::OMText);
  15.  
  16.     JSDB.ExecScript("print('Hello, World!')",0,0);
  17.  
  18.     delete JSDB.in;
  19.     delete JSDB.out;
  20.   }
  21.   CoFreeUnusedLibraries();
  22.   CoUninitialize();
  23.   return 0;
  24. }

flusspferd (http://flusspferd.org):

Code: C [Select]
  1. #include <flusspferd.hpp>
  2. #include <iostream>
  3. #include <ostream>
  4.  
  5. int main() {
  6.     // Create and use a context, needed to be able to use Flusspferd.
  7.     flusspferd::current_context_scope context_scope(
  8.         flusspferd::context::create());
  9.  
  10.     // Create a new string and protect it from the garbage collector by making
  11.     // it a root string.
  12.     flusspferd::root_string str("Hello, World!\n");
  13.  
  14.     // Demonstrate that str will not be garbage collected, by calling the
  15.     // garbage collector.
  16.     // Note that there is no other reason to call the garbage collector here.
  17.     flusspferd::gc();
  18.  
  19.     // Set a property on the global object. Effectively, this creates a global
  20.     // variable "str" with the contents of str.
  21.     flusspferd::global().set_property("str", str);
  22.  
  23.     // Print str on std::cout - but first, replace "World" by "Flusspferd".
  24.     std::cout << flusspferd::evaluate("str.replace('World', 'Flusspferd')");
  25. }

Create full classes in c++ usable from js:
http://flusspferd.or...s-without-macro.html

You can also use the v8 js engine (used in chrome ) in your c++ applications ( http://code.google.com/p/v8/ )


What I'm trying to say is that with so many libraries out there, tiny and big, made specifically for letting you embed js into your c++ application, there is absolutely no reason to include a full browser object and 'hide it' just in order to have js functionality. Not only is it very inefficient (memory wise), but it is also much much less flexible.

Just because c++ builder has a RAD GUI, that doesn't mean you have to start using it like visual basic ;)

One of the BIG advantages of c++ builder is that you get the best of both worlds (Your common RAD languages and C++) - You can use the vast resources of C++ libraries out there, while still having the ability to rapidly create a gui.
With cpp builder you do not NEED specific components for everything you try to do, and jump through such hoops to accomplish something. You have the power of C++, use it! :D There are TONS of libs out there to do anything you want, use them! :)




131
I use a bot that needs me to have a 'keyex plugin' to auto exchange keys (not my bot). Is this possible with blowssi?

Not at the moment.

PS: Gothi[c] any update on blowssi for weechat? :D

Nope. The api's are too different, would take too much time for me right now... Especially considering that they are re-doing their entire script api. Lets wait until they sort everything out.

132
Post New Requests Here / Re: REQ - image search file maker
« on: September 08, 2009, 04:57 PM »
yeah, he just needed a reboot :)

134
Living Room / Re: PayPal
« on: September 06, 2009, 12:49 PM »
Are you using paypal.com or some localized version? I noticed that in some countries the paypal features/site are different.
(eg: paypal.be vs paypal.com)

135
Post New Requests Here / Re: REQ - image search file maker
« on: August 31, 2009, 10:57 PM »
Should be doable with a small perl script - but someone could probably write you a more windows-friendly autohotkey script a lot quicker...

136
Living Room / Re: DC-IRLDD Champaign, IL - Aug 29, 2009
« on: August 31, 2009, 12:58 PM »
Something tells me that the battles ensued in HeroScape during this get together will be of epic proportions and result in total domination by one party. Am I wrong?

We did play heroscape, but actually most games were very close, except for one particular flawed unbalanced scenario/board.

137
Living Room / Re: DC-IRLDD Champaign, IL - Aug 29, 2009
« on: August 30, 2009, 07:34 PM »
Where can I get this stuff?

http://www.tastethepain.com

Order from their top-10 hottest ;)
http://tastethepain....Top_Ten_Hottest.html

138
Living Room / Re: DIY Vacuum tubes
« on: August 05, 2009, 03:02 PM »
Awesome. If you find more stuff like that, please post! :)

140
It appears that the weechat scripting api for 0.2.6.3 is completely different from the upcomming 0.3 branch. The 0.3 branch will be a complete rewrite, therefore I am going to write it for 0.3, to save myself from having to rewrite it again later. But it won't work with the latest stable then.

141
Sure, why not. :)
WeeChat looks fun to try out too, nice find.
I'll give it a shot. Can't tell you when though ;)
Blowssi is written in perl, and weechat seems to have perl scripting support (as well as python and ruby), so it should be fairly easy.
It's not quite as simple as replacing the hooks, as you also have to change the function parameter parsing to however their api works, but it should still be fairly easy.

143
NEVERRRrrrrrrrrrrrrr use 777 :)

Just make sure other users can read+execute it...

chmod u=rwx,o=rx,g=rx /usr/share/irssi/scripts/blowssi.pl

Then from any user you still have to /load blowssi.pl

The advantage of putting it in /usr/share/irssi/scripts is that you don't have to type the full path after /load

If you want it to auto-load you still have to put the /load line in the ~/.irssi/startup file of every user using irssi. It would be nice if there was a system-wide startup file, but there isn't afaik....

144
Re 2) If that's the case, then that should be a very simple fix :) I'll just add mcps as possible prefix ;)

Re 3)
I installed it as root then found any user can now type irsssi and it will load and also any user can type /load fish so I presumed the same for blowssi :D.. never assume haha. So no problem there either. I've created the paths and the copies to fix that.

Anything in root's .irssi folder won't affect other users, but if you put blowssi in /usr/share/irssi/scripts it should work with just /root as long as there's proper permissions on the script.

145
First of all, blowssi needs lots of polishing yet. That's why the version number starts with a zero, followed by a dot, and ... another zero! :D One of these days I'm going to have to spend a day fixing the ever growing list of bugs,.... soon(tm). ;)

1) just a minor bug in the command handler. Setting it manually in the config file is the best way for now.
2) Firstly, know that there's a known bug in irssi not ENCRYPTING /me actions etc... What you're running into is something I haven't seen before yet. What software was the other end using? Curious that they all start with mcps.. normally stuff is prefixed with +OK unless there's something else I'm not aware of.
3) The irssi man page only mentions ~/.irssi - a configuration/script folder for every user. It makes no mention of a system wide configuration...

146
Nice blog! And nice find on the padding bug discovery there.

147
First of all, below is personal view, I don't claim any as fact, which is something that should be stressed more often I think...

Piracy (at sea) is a crime.
Depending on where you are, I think downloading copyrighted stuff is not. It's a felony at most, unless something changed recently... (ianal)

Does that mean infringing copyright OK all the time? no.
Does that mean it's OK sometimes? probably.

There's no black and white in this. Only gray. With lots of propaganda from both sides. Gosh, it's just as bad as politics. Then again, most of it IS politics. Stay clear! :)

I'm just saying it's way too easy to adopt terminology that is carefully inserted by the big players with marketing money to mold opinions of the masses.

It is quite obvious that copyright law as it is, is not in sync with the real world. And the playing field is corporations with big bucks versus people without big bucks (after all, if they had the money, they'd be more likely to pay for the software). It's also quite obvious that there's something wrong with never paying for software by a small independent starving lone developer if you DO have the money to support them (which goes for BOTH payware AND Free software!).

We need people like TPB who, eventhough they might be on the other extreme of the argument, at least stand up for their rights against the giants for the sake of all of us.

And more on topic, the fact that they are donating the money exactly for that cause is probably way better than them getting sued into oblivion.

 :two:

148
From TPB blog:
Idealism is not dead: The profits from the sale will go into a foundation that is going to help with projects about freedom of speech, freedom of information and the openess of the nets. I hope everybody will help out in that and realize that this is the best option for all. Don't worry - be happy!

149
Click under categories in the left menu to get lists of software.
It's kind of a non obvious layout imo, but it has lots of info and nice lists of software on there.

150
What makes it the must-have extension is that there's practically no other reason to highlight text on a Web page except to copy it to your clipboard.

I keep forgetting that this isn't default behavior on Windows :) The fact that you need an extension for such a thing is really silly...

Pages: prev1 2 3 4 5 [6] 7 8 9 10 11 ... 32next