AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mem 1.0 for Stdlib - Memory functions
Goto page 1, 2, 3, 4, 5, 6  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Tue Jun 26, 2007 12:08 pm    Post subject: Mem 1.0 for Stdlib - Memory functions Reply with quote

    Memory functions for StdLib

    Installation: Save the script in Lib folder.

    Code:
    Bin2Hex
    Dump
    FormatHexNum
    Hex2Bin
    StrAtAdr




    Download             Documentation
    (.mht, save on disc)

_________________
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Tue Jun 26, 2007 9:06 pm    Post subject: Reply with quote

Good that you collected these functions, but some of them are old, outdated versions.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Tue Jun 26, 2007 9:35 pm    Post subject: Reply with quote

That's right, and why mht? A base64 text javascript is ridiculous.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Tue Jun 26, 2007 9:42 pm    Post subject: Reply with quote

I like mht: you can have pictures, text, scripts all in one file, to be shown by MSIE.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Tue Jun 26, 2007 10:31 pm    Post subject: Reply with quote

You can embed any media for standards compliant browsers with data URIs.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Tue Jun 26, 2007 11:29 pm    Post subject: Reply with quote

Those data files have to be stored somewhere. If you want to see a saved webpage offline, the many small linked pictures, scripts, etc. will have to be saved in a directory, as separate files. Sometimes you end up with hundreds of small files saved next to a html file. mht packs them all into one larger file.
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Tue Jun 26, 2007 11:35 pm    Post subject: Reply with quote

You missed my point: standards compliant browsers like Firefox, Opera, Safari, Konqueror et al. support the data URI scheme which means you can embed pictures, videos and any other media in a standalone HTML file with any mainstream binary to text encoding. It's far more efficient than the proprietary multipart mht format and can be viewed in nearly every browser/device - even in MSIE with the right plugins or javascript transformations. majkinetors choice is very restrictive and now virtually deprecated, and as a non-standard format you can never be sure it will render as expected on all computers.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Wed Jun 27, 2007 1:59 am    Post subject: Reply with quote

MSIE needs a plugin for URI, which has to be rewritten, reinstalled for each major release. Out of the box it does not support URI. On the other hand, in MSIE a web page, an opened html file (with references), a picture, etc. can be simply saved in mht format, which is a single file, not multi-part. Windows comes with MSIE, so you don't have to download and install and constantly re-install anything.

In this forum we discuss Windows automation, enhancements. Nothing is standard, everything is proprietary. Why do you complain about an MS file format, when we use MS dll's, calling conventions, API's, data exchange format, etc.?

I tried a number of alternative browsers, and came back to MSIE. There are websites, which only show properly, when using MSIE. I don't have the time and enrgy to change the rendering engine, set options for each funny website, so I don't struggle any more with the other browsers. MSIE is there, it is free, and it does the job. And one of its native file format is mht.
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Jun 27, 2007 7:15 am    Post subject: Reply with quote

Laszlo wrote:
Good that you collected these functions, but some of them are old, outdated versions.

Feel free to post me new versions so I can update the module. My "mission" was not to update those functions but to use them in HexView. In the time I was doing this, this was last thing that was around.
Anyway, plan was to collect most important Memory functions into Mem module. You can also post me other functions you find important.

Titan wrote:
and why mht? A base64 text javascript is ridiculous.

Because I don't have nerves to manualy join all the files needed for single page to work. The easiest solution was to MHT them. Like Laszlo's this is nice as you have 1 file.

However I never intented this to be "official doc". When stdlib gets formed docs will be send in original form.

I also gave you custom natural docs instaler so you can create docs on your own. Just enter LIB forlder and type mkdoc.

Quote:
majkinetors choice is very restrictive and now virtually deprecated, and as a non-standard format you can never be sure it will render as expected on all computers.

I don't see anything restrictive here especialy as this is "documentation rip off" It renders as expected on all computers.

Quote:
MSIE is there, it is free, and it does the job. And one of its native file format is mht.

This is because IE is/makes standard, no matter what other ppl think. I don't care that Opera is the best if I can't even access gmail correctly with it. PPl write sites for IE, not for other browsers. I don't like IE at all, but I am rational man. I use Opera with IE button for "funny" pages.


So, to make it clear, MHT is temporary solution so I can distribute man for single module without to much hassle. Everybody else can, mkdoc their Lib folder.
_________________
Back to top
View user's profile Send private message
daonlyfreez



Joined: 16 Mar 2005
Posts: 949
Location: Berlin

PostPosted: Wed Jun 27, 2007 7:46 am    Post subject: Reply with quote

Quote:
I tried a number of alternative browsers, and came back to MSIE. There are websites, which only show properly, when using MSIE


You should try Opera Wink ... The reason those "websites" only work in Internet Explorer is because of bad design, not because the other browsers can't handle it.
_________________
mirror 1mirror 2mirror 3ahk4.me • PM or
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Jun 27, 2007 8:06 am    Post subject: Reply with quote

Quote:
The reason those "websites" only work in Internet Explorer is because of bad design, not because the other browsers can't handle it.

This is not entierly true. Funny websites work in IE and not in other browsers because IE doesn't follow the standard so web developers producing code for IE consequently don't follow the standard, although it is not their fault, no bad design here. The only browser that passed test is Opera, not even FF. IE is well bellow. On the other hand, IE is used by 70% of population so IE is de facto standard. Theoreticaly, IE is not good, but practicaly it is the browser that should be followed in some way. Every other browser should have "IE" mode that will redirect internal modules to those not following the standard but IE, at least until MS come to its senses (hard to be optmistic about this, though)
_________________
Back to top
View user's profile Send private message
daonlyfreez



Joined: 16 Mar 2005
Posts: 949
Location: Berlin

PostPosted: Wed Jun 27, 2007 9:10 am    Post subject: Reply with quote

Quote:
IE doesn't follow the standard so web developers producing code for IE consequently don't follow the standard, although it is not their fault, no bad design here.


It is their fault, it is bad design, they should stop using shitty editors like FrontPage for their "design". True that Internet Explorer holds the monopoly, but that shouldn't prevent a good designer from at least testing if it works in other browsers too. Sure, I know a lot of socalled designers don't care, but then it is their bad.

But I think we agree anyway Wink
_________________
mirror 1mirror 2mirror 3ahk4.me • PM or
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Wed Jun 27, 2007 9:23 am    Post subject: Reply with quote

I told you, we don't live in utopia where all things are like they should be. Theory is one thing, practice is another. We all know IE sucks, but that is not important. What is important is that every site was made for IE in mind. As an end user I don't give a damn who holds monopoly, I give a damn if some site can't be shown in my Opera browser (frequent scenario, less frequent then before when it was usual) and Opera developers try to convince ppl it is the right way they handle the html. I know that, I just don't care, I can't see the site.

The correct comparisson would be with cars and roads. Imagine standard HTML is nice flat road and non standard HTML is bad road, with holes and bumps. So you can take Toyota witch is superb on flat roats, never gets stuked or so, made by all standards to protect nature and ppl and so on, but on bad road it behaves less powerful, its bottom often get scratched by bumps and holes. Or, you can take some Jip and don't have any problems.

Some countries have flat roads, some, like mine, have extremely bad roads. Internet is in the second category.

Its not question what is older - did ppl made Jip because of bad roads or Jip made ppl tolerate bad road creation.

We think about now. And now, the internet is 70% in bad roads and ppl use Jips to drive.

Now if we talk about utopia, I expect Toyota that can be transformed into Jip when neccessary, possible autodetecting the road type.
_________________
Back to top
View user's profile Send private message
daonlyfreez



Joined: 16 Mar 2005
Posts: 949
Location: Berlin

PostPosted: Wed Jun 27, 2007 9:42 am    Post subject: Reply with quote

Sure, we can't change the fact that Internet Explorer is a shitty browser, or that most users use it, or can't change the fact that most people drive Jeeps.

That doesn't change the fact however that those socalled designers keep designing "sites" that don't work well on other browsers, effectively shunning out 30% of users, or - in your analogy - keep building shitty roads with holes in them.

Please don't tell me that that is not the fault of the designers.
_________________
mirror 1mirror 2mirror 3ahk4.me • PM or
Back to top
View user's profile Send private message
polyethene



Joined: 11 Aug 2004
Posts: 5248
Location: UK

PostPosted: Wed Jun 27, 2007 10:30 am    Post subject: Reply with quote

Laszlo wrote:
MSIE needs a plugin for URI, which has to be rewritten ...
No it doesn't, the data URIs scheme is a fixed standard like HTTP v1 which hasn't been changed. If you install a plugin or use javascript transformations it will work forever.

Laszlo wrote:
... which is a single file, not multi-part
It's rendered as multipart, haven't you seen the source code? Inline data URIs are very versatile and perform better because they are truly combined with the parent HTML.

Laszlo wrote:
Windows comes with MSIE, so you don't have to download and install ...
So does your Windows come preinstalled with AutoHotkey?

Laszlo wrote:
Why do you complain about an MS file format, when we use MS dll's
Firefox use MS API but it's standard compliant, faster and much more secure. IE is bundled spyware and a half assed job my Microsoft in desperate attempt to gain market share over competitors like Netscape (in the early days). Throughout time we see monopolies like Microsoft reinvent open technologies and claim exclusive rights to expand into other markets without having to pay royalties or adapt their lisencing terms. They did that with mht, then tried claiming they invented RSS with several absurd patents, and are now battling with the EU to standardize XPS - their PDF killer. By relying on their formats when there are thousands of other viable and more powerful solutions you are supporing monopolies and accelerating the adverse effects of capitalism. I know you're against freedom of speech so perhaps our mindsets are just different, but with so many other compelling options I like to keep an open mind.

Laszlo wrote:
There are websites, which only show properly, when using MSIE
Every website I had visited thus far renders flawlessly on Firefox. It even displays SSL pages from microsoft.com correctly when IE can't, ironic don't you think. The pages you visit were designed poorly around the quirks in the Microsofts Trident engine which could produce akward results in future updates/patches.

Laszlo wrote:
MSIE is there, it is free, and it does the job.
IE not free, you risk your privacy and security, and since it's an exclusive component of Windows which you have to pay for, you're incorrect to label it as freeware.

majkinetor, how are you generating your docs? I'm very sure ndocs can embed CSS and JavaScript like I do, you are not using images or binary files so mht is only bloating your file with base64 encoding and forcing us to use the worst browser ever invented.
_________________
GitHubScriptsIronAHK Contact by email not private message.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 of 6

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group