 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 3652 Location: Belgrade
|
Posted: Tue Dec 11, 2007 1:11 pm Post subject: |
|
|
| Titan wrote: | | Actually I do; previet... kak dela... |
I don't know that language ? Is that how you talk Serbian ?
As you can see there is nothing worse then moking people because they don't speak your language perfectly. Its typical thing for UK & USA people to behave that way, judging only from my experience. Actually, I always thought that persons who react on language differences that way must be pretty stupid, no matter how smart they are generaly.
| Sean wrote: | | Looks like I have to do it every time I newly start Firefox. |
In Opera you can set per site javascripts. Perhaps something similar exists in FF.
Anyway, this is far from fix as it affects only your own computer, other ppl will still see wrongly formated code. _________________
 |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Tue Dec 11, 2007 2:09 pm Post subject: |
|
|
| Sean wrote: | | May I ask why Chris didn't like it? | I guess he thought people wouldn't like having different texts on screen and on the clipboard, even if it is just a whitespace adjustment.
| Anonymous wrote: | | this cookie was never really "officially" introduced | I never bothered to formalize the cookie syntax as I assumed users following that particular thread would review the source code and apply their own mods. I will post instructions there soon (unless you want to do it).
| Anonymous wrote: | | Also what codeblock really needs is a helper php script...like getposttext.php...that would get the raw (including tabs or 3 spaces) text from the db, then codeblock wouldn't need to fish thru the html & manually replace "3 spaces with a tab"... | Seems like an overkill to write an AJAX mashup just for that. It could also increase the delay from the time 'Copy' is clicked to the confirmation dialog which most users on dial-up would find annoying. Ideally phpbb would wrap code in <pre> tags and leave the formatting as the poster intended. Perhaps phpbb3 does this?
| majkinetor wrote: | | As you can see there is nothing worse then moking people because they don't speak your language perfectly. Its typical thing for UK & USA people to behave that way, judging only from my experience. Actually, I always thought that persons who react on language differences that way must be pretty stupid, no matter how smart they are generaly. | Ironic how you arrive at a synthesis based on perceptive stereotypes and bad experience, then call me stupid. I was made to learn Russian in school, and I thought you would've been taught your neighboring languages... so pardon me for attempting to reciprocate at your level. _________________
 |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Tue Dec 11, 2007 2:31 pm Post subject: |
|
|
| majkinetor wrote: | | In Opera you can set per site javascripts. Perhaps something similar exists in FF. |
I think I can use Greasemonkey for that, which has been disabled in my system.
| Quote: | | Anyway, this is far from fix as it affects only your own computer, other ppl will still see wrongly formated code. |
Actually the appearance remains the same as Titan mentioned in the above post. However, when copying into the editor all format retains/restores back which is more important to me.
| Anonymous wrote: | | ...no, just set expires on the cookie... |
I was checking/noticing that. Actually that wasn't my real question. Anyway I decided to not use cookie and restored back my Firefox Cookie setting to "until Firefox is closed". |
|
| Back to top |
|
 |
Joy2DWorld
Joined: 04 Dec 2006 Posts: 425 Location: Galil, Israel
|
Posted: Tue Dec 11, 2007 3:41 pm Post subject: |
|
|
| Titan wrote: | | Sean wrote: | | There is one thing I don't like about codebox: it doesn't retain TAB | In your browser set the cookie codeblock-tab to 1, you can do this by typing javascript:void(document.cookie='codeblock-tab=1'); into your browser address bar. I wanted to make this the default but Chris asked me not to. |
how about adding a little BUTTON for quick and easy enable that useable universally ?
(that's not a default.) _________________ Joyce Jamce |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Dec 11, 2007 4:19 pm Post subject: |
|
|
| Titan wrote: | | I guess he thought people wouldn't like having different texts on screen and on the clipboard... |
...actually I wasn't thinking about that, but I do want the on-screen version "fixed" too, not just the clipboard-copied version...
| Titan wrote: | | ...as I assumed users following that particular thread would review the source code and apply their own mods. |
...no offense, but your source code isn't actually "easy" to read...don't get me wrong it's very compact & probably efficient, but you use many single char vars & the text "codeblock-tab" isn't even in the source...so it's not easy, from looking at it, to piece together what prefs are available...for example the pref function (the most findable/identifiable piece of code {cuz of the string "pref"}) is complete gibberish, a bunch of single char vars (& I actually like JS & I am good with computers/programming, but that's just really complex to read). I did find it tho...the p array's 1st element is the prefix to all the prefs & the rest of the array is the prefs...but since I didn't write the code, I didn't, at first, know where to look. I agree on not repeating strings like "codeblock-" alot in code...but your use of arrays is very complex...& I don't know what the "ex" pref does, so I can't document it...
Why does the current version overwrite window.onload, instead of the addEventListener/etc code from before?
Why are some functions like...
| Code: | | this.expand = function (e) { |
...instead of...
| Code: | | function expand(e) { |
...you can give me the high-level explanation, I understand what that code does, but why that way & not some more readable way?
Bug Report: I know you'll be thrilled but I have a bug report for codeblock...
- Copy some code (via a forum Copy link) to the clipboard, paste in Notepad to see it's there
- Copy any other text to the clipboard, manually (not using a forum Copy link)...just type 123 in Notepad & copy it & paste it to make sure its on the clipboard
- On the forum, in the browser, press Back, check to make sure 123 is still on the clipboard, then press Forward...123 isn't on the clipboard anymore cuz the hidden swf re-copied the code when navigating Forward...
...I suppose you can delete (removeChild()) the div holding the Flash to make it not do this on pressing Forward? Ahh...I see it, you appendChild once & set innerHTML on Copy...I would appendChild & removeChild on each Copy...
Since I'm really curious, why is your Location: 0x00400000?
| Titan wrote: | | I will post instructions there soon (unless you want to do it). |
...could you have a Prefs link that opens a div so people can set them? Again, I can help write some of it, but I don't wanna spend any time on something ignored...
| Titan wrote: | | Ideally phpbb would wrap code in <pre> tags and leave the formatting as the poster intended. |
...yes, perhaps someone should look into where phpBB does this tab-to-3-spaces conversion & comment it out...& also wrap it in <pre> (or would <code> work & be more appropriate?)...& give it a class so you don't need to parentNode.parentNode to find the right element...
| Titan wrote: | | Perhaps phpbb3 does this? |
...is that finally final yet?...is Chris gonna take the dive & convert? It looks nice but I hate the poster info being on the right side...maybe it's an admin panel pref? In any case I tested some code to swap the poster info to the left side, which could be added to the forum (if phpBB3 is installed here & also if it don't already have a pref for it)...
| majkinetor wrote: | | ...must be pretty stupid... |
| Titan wrote: | | ...then call me stupid. |
...(I agree with Titan)...again the world doesn't need any personal attacks. I find it obnoxious how non-US people always say "stupid Americans" & other insults...there's just no reason for it...all non-Americans are better...NOT!...no one is better, just be nice & get along...peace...
| Sean wrote: | | Actually that wasn't my real question. |
...I don't know how that could not be your question...you were wondering if you needed to put that code in the location bar everytime you restarted Firefox, the answer is yes, the code he posted only sets a "Session Cookie"...but my answer was to set the expires on the cookie so it was no longer a session cookie...problem solved you no longer need to set it everytime you restart Firefox...
| Sean wrote: | | Anyway I decided to not use cookie and restored back my Firefox Cookie setting to "until Firefox is closed". |
...ah, never used that pref before...how do you get by without any website storing any of your prefs?...I allow cookies but I periodically go thru them & completely block any sites that set "weird" cookies or extremely long expiring ones...plus I have Adblock Plus so the real ad/tracking cookies can't even be set anyway...but I need an extension to sort by "Expires" like Netscape 7.2 had (Firefox really made many unnecessary changes)...so I can find the extremely long expiring ones again... |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Tue Dec 11, 2007 5:07 pm Post subject: |
|
|
| Quote: | | Why does the current version overwrite window.onload, instead of the addEventListener/etc code from before? | It's a lot easier and probably quicker. It also ensures there is just one onload event, as there shouldn't be anything else.
| Quote: | | this.expand = function (e) { vs. function expand(e) { | That attaches the expand function to the window object, so expand() can be called anywhere from the document scope whist keeping the javascript namespaces that little bit tidier.
| Quote: | | ...I suppose you can delete (removeChild()) the div holding the Flash to make it not do this on pressing Forward? Ahh...I see it, you appendChild once & set innerHTML on Copy...I would appendChild & removeChild on each Copy... | Dude, it's time to grow out of Netscape. We've all moved on, and its time for you to do the same. Firefox/IE doesn't have that bug so use either of them instead. If you still experience it in FF you must have a glitchy extension installed, because DOM events shouldn't raise a history step.
| Quote: | | I would appendChild & removeChild on each Copy... | Knowing how sensitive browsers are to reflow refactoring I think it's best to keep it simple and leave the swf object there for immediate reuse.
| Quote: | | ...could you have a Prefs link that opens a div so people can set them? | I have a feeling Chris wouldn't like that.
| Quote: | | It looks nice but I hate the poster info being on the right side...maybe it's an admin panel pref? | I installed RC7 on my test server and never saw that option. Chris did mention he would upgrade when v3 becomes official.
btw why don't you login to your forum account? _________________
 |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Dec 11, 2007 5:19 pm Post subject: |
|
|
| Titan wrote: | | Dude, it's time to grow out of Netscape. |
...Dude! I am using Firefox...2.0...with the FOXSCAPE theme...I did not report this as happening in Netscape 7.2...
| Titan wrote: | | Firefox/IE doesn't have that bug so use either of them instead. |
...Firefox 2.0.0.11 DOES have that "bug", but it's not a bug in the browser, it's a bug in the code...please don't "ignore" it...try those steps!...
| Titan wrote: | | If you still experience it in FF you must have a glitchy extension installed, because DOM events shouldn't raise a history step. |
...I do experience it in Firefox...but I don't know what "...shouldn't raise a history step." means...the swf is still laying around, so when the page is re-navigated to it re-copies...
| Titan wrote: | | ...I think it's best to keep it simple and leave the swf object there for immediate reuse. |
...well, I knew you'd never use my suggestion anyway, but setting innerHTML doesn't re-use it...it overwrites the html code & likely causes a reflow anyway...
| Titan wrote: | | I have a feeling Chris wouldn't like that. |
...no one ever likes my ideas...
| Titan wrote: | | btw why don't you login to your forum account? |
...I think I've covered this, the login is not secure...I would like to change my password to something else, then just login unsecure, but I'd have to send the current password unsecure to change it... |
|
| Back to top |
|
 |
BoBoĻ Guest
|
Posted: Tue Dec 11, 2007 5:31 pm Post subject: |
|
|
| Quote: | | ...no one ever likes my ideas... | Heul doch! |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Tue Dec 11, 2007 5:42 pm Post subject: |
|
|
| Anonymous wrote: | | ...Firefox 2.0.0.11 DOES have that "bug", but it's not a bug in the browser, it's a bug in the code...please don't "ignore" it...try those steps!... | I'm also using the latest version of FF2 but I can't reproduce the bug you're talking about. Maybe I didn't follow your instructions properly, could you provide a clearer and more detailed explanation of the problem.
| Anonymous wrote: | | ...no one ever likes my ideas... | It's because you don't log in...
| Anonymous wrote: | | I would like to change my password to something else, then just login unsecure | Ask Chris to change your password for you. _________________
 |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Dec 11, 2007 6:19 pm Post subject: |
|
|
| Titan wrote: | | ...could you provide a clearer and more detailed explanation of the problem. |
...well I gave the "Steps to reproduce"...but the explanation is...once you copy some text via the forum, then say you ignore that window for awhile & in doing other work on the computer, the clipboard has some other contents, then you focus the still open browser window with the page you clicked "Copy" on, you press back, then want to re-read something from that topic & instead of clicking the topic link again, you press forward, that action re-copies the text you copied before...so you lose whatever was on the clipboard...
Revised Steps...
- Copy this code...
Paste in Notepad (or open clipboard viewer {clipbrd.exe} & watch it live...)
Copy this text...select it & press Ctrl+C...
Paste in Notepad again...or notice the clipboard window update
Press the Back button on the browser toolbar
Check to make sure 123 is still on the clipboard (paste in notepad/look at clipboard window)
Press the Forward button on the browser toolbar
Notice the clipboard receives "ABC!" instead of staying "123" | Titan wrote: | | It's because you don't log in... |
...no one liked my ideas when I did login...lol...
| Titan wrote: | | Ask Chris to change your password for you. |
...I've thought about e-mailing him, but he seems to be scarce lately...also since my last post I thought about using the "I forgot my password" feature...I haven't really forgot my password, but I could still tell the forum I have...
You forgot to answer: Since I'm really curious, why is your Location: 0x00400000?
Also...how can you tell it's "me"?...I don't mind people knowing it's me, but just, how? |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Tue Dec 11, 2007 6:45 pm Post subject: |
|
|
| Anonymous wrote: | | Revised Steps... | Thanks for that. I can see now that deleting the swf object is necessary and I will update it soon (probably next weekend).
| Anonymous wrote: | | You forgot to answer: Since I'm really curious, why is your Location: 0x00400000? | Ugh.. it's the base address for standard x86 executables and DLLs. The place I live irl is London, UK.
| Anonymous wrote: | | ...no one liked my ideas when I did login...lol... | Of course not, PhiLho, yourself and others have helped me build the code js with your rigorous testing and scrutiny. Like the bug report just above - nobody else had mentioned it! You've also helped me make a few radical changes on autohotkey.net which I would've otherwise delayed for a very long time. I would've liked to give you attribution but you're hiding as a guest, I genuinely appreciate the feedback I get from everyone. (btw. plz don't get carried away now that I've said this).
| Anonymous wrote: | | Also...how can you tell it's "me"?...I don't mind people knowing it's me, but just, how? | LOL are you serious? Lets just say you have a way of working your sig into all your sentences. _________________
 |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 1397
|
Posted: Tue Dec 11, 2007 11:16 pm Post subject: |
|
|
| Anonymous wrote: | | Sean wrote: | | Actually that wasn't my real question. |
...I don't know how that could not be your question... |
My actual question was that can we have a way to do it without resorting to cookie? The written question is provided as one of reasons/evidences to have one. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|