You are here

PortaLog

62 posts / 0 new
Last post
Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
PortaLog

***1.1***
This is a HUGE new release. I have added a date format changed and azjerry has added a long list of new features, they are

- Changed log file to PortaLog.log
- Changed format of log file to single line per entry with header
- Once log file is up to limit remove the oldest entry(s) instead of re-writing the file
- Newest entry now written at top instead of bottom

So I would like to say a MASSIVE thanks to azjerry and I hope you all enjoy it.
***1.1***

***Autorun 0.3***

This has been out for some time and fixes a could of bugs.

***Autorun 0.3***

I have developed a small access logger. You can get it here: https://sourceforge.net/projects/portalog/

nm35
Offline
Last seen: 18 years 2 months ago
Developer
Joined: 2005-12-12 17:13
Very nice job! It looks like

Very nice job! It looks like it should do the job perfectly well.

~nm35 {blog} {standalone apps}

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
TimeStamp

Very Nice, Haven't tested autorun yet however.
Few things...

First thing that may be helpfull is listing the times in decending order from the most recent.

Also possibly adding the ability to limit the log size far down the line it could get pretty big.

And last but not least perhaps putting the source in the next download (I downloaded the 7z, Ill check the zip).

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Sure I'll add the first two

Sure I'll add the first two features shortly. The code should be in the PortaLog code directory called 'something'.nsi *Edit* Opps its not there ill upload it tonight *Edit*

I'm glad that these programs are geting so much attention Smile

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
Tidy the Log File

Along with the Dates in decending order may be ad a space blank line between entries.

To do this I figured just add $\r$\n to the end of line 203 (the last line of the code pretty much).
As Such
WriteINIStr $ExeDir\log.ini $TimeDate "IP" $IP$\r$\n

This Produces Something like this
[01/02/2006 15:47:53]
Computer Name=DAVISON-FRONTDE
User Name=rdehaven
IP=x.x.x.x;

01/02/2006 15:47:57]
Computer Name=DAVISON-FRONTDE
User Name=rdehaven
IP=x.x.x.x;

Any Takers?

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I'll put it into tonights

I'll put it into tonights revision that will also limit the log file size. Thanks

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I am having some slight

I am having some slight troubles with tonights release and as such it should/will be released tomorrow.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Troubles over its now

Troubles over its now released.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

izizizi (not verified)
Thanks :D

Awesome work Steve, I love it Biggrin

I don't know how to get it to autorun, what do I do for the icon thing?

Also, I don't know if it's just me, but when I check the log, it says it was accessed an hour after what it was actually accessed eg. I use it at 5:07PM, it logs it as 6:07

Great work Biggrin

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Hmmm. I'll have a look at

Hmmm. I'll have a look at the time. Could it be a time-zone thing? Also you need to put in an icn, any will do, other wise the autorun won't work (it might not anyway, if any one has made it work please tell me)all you need to do is put the path to the icon.
I'm really glad you like it.

Steve

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Have you still got this

Have you still got this problem? And if so could you put it on the sourceforge bugtracker please.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
It should now be

It should now be fixed.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Rob Loach
Rob Loach's picture
Offline
Last seen: 16 years 2 months ago
Developer
Joined: 2005-12-09 17:29
Source?

Considering it's on SourceForge, do you plan on releasing the source or putting it in the CVS?

Neat idea, Steve.

Rob Loach [Website] [Projects]

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Certainly it was supposed to

Certainly it was supposed to be in the code directory but I missed it by mistake. Smile I'll upload it with a new version later.

Rob Loach
Rob Loach's picture
Offline
Last seen: 16 years 2 months ago
Developer
Joined: 2005-12-09 17:29
PStart and PortaLog

Just a quick note that PStart has the option to run other applications when it starts. So you can easily have PStart run PortaLog when it is executed.

Rob Loach [Website] [Projects]

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Sounds good to me P.S. I

Sounds good to me Smile P.S. I dont use PStart does it autorun? I should have a new file size limiting verion tomorrow!

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

rellimdr (not verified)
Other people have managed to

Other people have managed to get pstart to autorun. I can't seem to Get it to work on my XP pro sp2 machine though.

Speaking of which..
Would there be any way to start portalog any time a .exe on the drive is accessed? That way you wouldnt need the autorun enabled and it would also work on older machines.

Good job on these apps so far. I've got them both on my USB.:)

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Thanks. New version (0.42)

Thanks. New version (0.42) now out. Has anyone made the autorun work?

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

rellimdr (not verified)
Nope. I havent been able to

Nope. I havent been able to get any programs to autorun. I don't know if it's my older than the hills computer or if i'm just doing somthing wrong.

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
AutoRun

You need third party to do autorun, or an extremely complicated hack. Talk to windows or this forum https://portableapps.com/node/216

A third party would be somm like PStart, the option to run on start up is in the Advanced Tab of the item.

I have gotten autorun to work, using PStart in combination with a U3 Hack mentioned here
http://www.everythingusb.com/forums/showthread.php?s=&threadid=8197

that allows you to make a shortcut of sorts in the u3 menu to a program that is not u3

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Testers

Has anyone tried the new version (0.42) and if so does it all work properly?

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
Yes

Yes I have and it works nicely, the auto run is still iffy. The way i have it it works (see Above).

But as for a normal setup without much tweaking? Autorun looks like it may be a no go. (See Above)

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Thanks

Do you think tht the autorun is worth keeping? I should have a new version of Profile Sync out tonight Wink

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
About Auto Run

If you edit the Autorun to run Portalog.exe on double click then it is worth keeping.

As for it running when the drive is inserted, it wont happen unless you edit each computer you go to(hence, not portable,
--or--
You use the U3 hack mentioned earlier and modify it to run Portalog instead of Pstart, if you like.

Autorun.inf Example

[autorun]
open=\PortaLog\PortaLog.exe
icon={Insert Icon}
shell\verb\command=\Portalog\PortaLog.exe
shell\verb=PortaLog

The Two 'Shell\verb' items add it as a default action on the drive, so double clicking the drive runs PortaLog, It also adds it to the context Menu when yopu right-click the drive.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Excellent, its uploading now

Excellent, its uploading now along with a new version of Profile Sync.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

rellimdr (not verified)
That's still not working for

That's still not working for me.. I'm about to give up on any autorun.inf all together.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
No it doesnt. It does

No it doesnt. It does however show up on the right click menu for your drive.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

rellimdr (not verified)
and even if i click portalog

and even if i click portalog on the rightclick a error box pops up

"J:\ Access is Denied"

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I seem to have that problem

I seem to have that problem too. InvisoSniper, any ideas?

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
My bad

I forgot to check my work (stupid me), checked it this time, all works fine.
So sorry about that.

Corrections
Correct the line
shell\verb\command=\Portalog\PortaLog.exe

to
shell\verb\command=Portalog\PortaLog.exe

then above that line add this line
shell=verb

The word verb can be replaced by anything as long as all the entries get the change. Completed Inf

[autorun]
icon= {Insert} {omit line if you want the default drive icon}
shell=Run
shell\Run\command=Portalog\PortaLog.exe
shell\Run=PortaLog

For this trick to work all you need are the three 'shell' lines other stuff is just for looks.

rellimdr (not verified)
Sweeeet.. It works now.

Sweeeet.. It works now. Smile

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Uploading now Yours Steve

Uploading now

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I have now started

I have now started developing the e-mail component using The Uniform Server. If anyone has any ideas for it speak up now!

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
What about Sendmail

I suggest using Perl + Sendmail or try
http://www.hotscripts.com/Cgi_and_Perl/Scripts_and_Programs/Email_System...
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
Option

dont know how ur setting it up, but I think it should be an option that is on by default. But can be turned off, or only sends the log file as an attachment every 'X'. Where X is a user defined schedule.

nm35
Offline
Last seen: 18 years 2 months ago
Developer
Joined: 2005-12-12 17:13
Could it be possible to make

Could it be possible to make a standalone, single EXE file that acts as a basic webserver with simple PHP/Perl support for sendmail? Then you don't need 500 files from Uniform Server -- one's enough.

Maybe it could extract to the TEMP folder, run UniServer, then delete? Sorta like a WinZIP installation prog.

~nm35 {blog} {standalone apps}

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I guess it would be quite

I guess it would be quite tough to write my own webserver but as for the extacting to a temp folder that sounds good.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

nm35
Offline
Last seen: 18 years 2 months ago
Developer
Joined: 2005-12-12 17:13
I mean a single executable

I mean a single executable that combines the features of all the components, so there aren't any DLLs lying around; the WinZIP-type-system would be an example of this, as would a single executable combining all the DLLs and EXEs into itself.

~nm35 {blog} {standalone apps}

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I see what you

I see what you mean.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
Before Public Release

LAtest version looks good, Stil would like to see it append new items to the top of the log instead of the bottom, but i understand that that may take a while.

Otherwise, Great Job, on this and 'Profile Sync'

azjerry
Offline
Last seen: 7 years 2 months ago
Joined: 2005-12-09 12:42
change format of date string

I'd like an option to change the date string in the log file from dd/mm/yyyy to mm/dd/yyyy or yyyy/mm/dd. A setting in settings.ini file would be fine.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
I'll look into

I'll look into that.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Hmmm, seems a bit slow, any

Hmmm, seems a bit slow, any one got any news one the 1.0 build or are you just trying it all out?

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Its just been quiet this

Its just been quiet this week
----
R McCue

"If you're not part of the solution, you're part of the precipitate."

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Fair enough. Yours Steve

Fair enough.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

azjerry
Offline
Last seen: 7 years 2 months ago
Joined: 2005-12-09 12:42
PortaLog 1.0 problems and a request

I noticed 2 problems with the 1.0 release.
- The time entered into the log is 7 hours in the future. For example, the current time is 9:30 and the time in the log is 16:30:xx.
Probably because you use the "LS" parameter instead of "L" on the GetTime call? (My local time is GMT-7)

- I can't compile the source. When I compile I get:
Invalid command: ip::get_ip
Error in script "E:\Programs\PortaLog\PortaLogCode\PortaLog.nsi" on line 70 -- aborting creation process
I was able to compile the previous version.

Request:
I prefer the date in the log to be MM/DD/YYYY instead of the current DD/MM/YYYY. Could an option for this be added to settings.ini?

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 6 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Plugin / Date

Whenever you get an error like that in NSIS, it means you need a plugin. A quick google search for nsis get_ip will help you out.

As to the date, I would suggest using the universal date format YYYY-MM-DD rather than a localized mm/dd/yyyy or dd/mm/yyyy.

Sometimes, the impossible can become possible, if you're awesome!

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Yeh OK I'll do that. I'll

Yeh OK I'll do that. I'll upload new version in 10 minutes or so.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

azjerry
Offline
Last seen: 7 years 2 months ago
Joined: 2005-12-09 12:42
I can live with YYYY-MM-DD

I can live with YYYY-MM-DD

azjerry
Offline
Last seen: 7 years 2 months ago
Joined: 2005-12-09 12:42
progress

Fixed the compile problem by moving ip.dll from the previous release to the NSIS\plugins directory. The LS flag was the problem on the incorrect time.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Now released

Now released (1.01)

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

azjerry
Offline
Last seen: 7 years 2 months ago
Joined: 2005-12-09 12:42
suggest remove log.ini from zip file

The 1.0 zip file had a log.ini that overwrote my file (yah I wasn't paying attention when I unzipped). There's really no reason for it to be in the zip file.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
OK I'll do that in the next

OK I'll do that in the next release. Wooo we are now on page two!

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 6 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Dashes in dates

Steve,

I suggest yyyy-mm-dd rather than yyyy/mm/dd. The dashed version is more universal and complies with ISO recommendations.

Sometimes, the impossible can become possible, if you're awesome!

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
OK that'll go in the next

OK that'll go in the next release too. Any chance of a front page story on Profile Sync?

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

John T. Haller
John T. Haller's picture
Offline
Last seen: 9 hours 6 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Haven't tried it yet

I haven't had a chance to play with it yet, actually. And my sync program had been languishing while I was under the weather. I should have a chance this week to try it out. Ideally, I'd like to take the best ideas from both and combine them if you're so inclined. Of course, if yours is better, I'll just scrap mine. Smile

I had started building one to sync every app in the suite last month. It auto-detects which apps are installed locally and offers to sync them. I was also working on a way to figure out which was used last and default to syncing from that one to the other. Last modified date on prefs.js seems to work for the Mozilla apps. Similar for FileZilla. I hadn't had a chance to try my hand at Gaim yet.

I'll start releasing pre-alpha and alpha code this week. I'd planned on doing it sooner, but I was having trouble just keeping up with my paying work.

Sometimes, the impossible can become possible, if you're awesome!

azjerry
Offline
Last seen: 7 years 2 months ago
Joined: 2005-12-09 12:42
made some changes

I've made a couple of changes to your 1.01 version using this as a opportunity to learn more about NSIS. If you're interested in them, How do I get it to you?

- changed log file to PortaLog.log
- changed format of log file to single line per entry with header (not sure why it's not formatted correctly here...)
Time User Computer IP
------------------- ---------- --------------- ------------------------
2006/02/20 13:31:21 griech SAI582044 10.25.60.160;
2006/02/20 22:44:41 Dad JERRY-PC 172.17.18.1;192.168.1.11;
2006/02/21 8:31:49 griech SAI582044 10.25.60.160;

- once log file is up to limit: remove the oldest entry instead of re-writing the file

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Sounds good. You could

Sounds good. You could e-mail them to me using the contact me option on my profile page. Click on my username somewhere and you should find it. If you have a sourceforge account I will also add you to the project as a developer.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
1.1 now out with thanks to

1.1 now out with thanks to azjerry!

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
I am back

Version 1.1: Nice, Like the new log.

Padding the names was a nice idea, however, what happens when the names exceeds the pad limit. It flows into the next section. But because of padding the next section acts like nothing happened before it, which shoves the whole line out of whack.

Example
excerpt:

User Computer IP
---------- --------------- ------------------------
InvisoSniper Compy-XPC 192.168.87.xxx;192.168.87.xxx;192.168.87.xxx

Sadly this site does not have the formatting I need to properly show you what I mean.

Now I don’t have a problem with the multiple ip addresses, I do have a problem with everything after invisosniper being shoved due to padding . Perhaps Truncating is in order.

Great job, If I had NSIS where I wrote this I would be more than happy to submit some sort of solution, but alas, I do not.

Now, Im off to check up on ProfileSync.

InvisoSniper
Offline
Last seen: 18 years 2 months ago
Joined: 2005-12-09 08:33
I am back

!!!I'm Sorry I double posted Internet Hickuped, hit the refresh button with out thinking. If someone who can delete one of my messages, please do that. Again Sorry!!!

Version 1.1: Nice, Like the new log.

Padding the names was a nice idea, however, what happens when the names exceeds the pad limit. It flows into the next section. But because of padding the next section acts like nothing happened before it, which shoves the whole line out of whack.

Example
excerpt:

User Computer IP
---------- --------------- ------------------------
InvisoSniper Compy-XPC 192.168.87.xxx;192.168.87.xxx;192.168.87.xxx

Now I don’t have a problem with the multiple ip addresses, I do have a problem with everything after invisosniper being shoved due to padding . Perhaps Truncating is in order.

Great job, If I had NSIS where I wrote this I would be more than happy to submit some sort of solution, but alas, I do not.

Now, Im off to check up on ProfileSync.

Steve Lamerton
Steve Lamerton's picture
Offline
Last seen: 11 years 2 months ago
Developer
Joined: 2005-12-10 15:22
Yeh I got an e-mail from

Yeh I got an e-mail from azjerry with somenew code to sort that today.
Please read my response to your other thread.

Yours

Steve Lamerton

Developer Profile Sync & PortaLog

Topic locked