Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.




563 posts

Ultimate Geek
+1 received by user: 89


Topic # 150702 31-Jul-2014 12:01
Send private message

When attempting to upload some images using copy-paste into the WYSIWYG (as I've done below) sometimes the GZ language filter will pickup words out of the Base64 encoded image string as "bad words" (which is likely to happen when you're parsing 2KB+ strings of pseudo-random text).



Solution would be to not check words between <img src=" and " but probably the same issue with posting certain random URL's.

(Or we could all promise to be adults and drop the filter all together)...

Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic
 1 | 2
1749 posts

Uber Geek
+1 received by user: 916


  Reply # 1099222 31-Jul-2014 12:13
2 people support this post
Send private message

I've seen a couple of threads about this sort of thing in the past.

I particularly like how you've now managed to post those two bad words using an image.




Location: Dunedin



563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 1099226 31-Jul-2014 12:18
Send private message

andrewNZ: I've seen a couple of threads about this sort of thing in the past.

I particularly like how you've now managed to post those two bad words using an image.


Well it was also rather coincidental that the words appeared in the two screenshots (one in each) I was trying to post showing VF login errors... which may have resembled what I was thinking when I hit the first error, then the second one.

Offending images here with offending string replaced with FUCX & Cunx respectively (so obviously not going to display properly):









 
 
 
 


gzt

9275 posts

Uber Geek
+1 received by user: 1323


Reply # 1099235 31-Jul-2014 12:34
Send private message

That screenshot looks a lot larger than it needs to be and would probably have annoyed the mods on that basis anyway. But more helpfully.. maybe a lot less compression in the image (and going to b&w) and your base64 edit would not matter so much : ). Ok, I know it's not that helpful.



563 posts

Ultimate Geek
+1 received by user: 89


Reply # 1111796 20-Aug-2014 09:03
Send private message

Still getting this error, still annoying...

Is the filter rrrreaallly necessary?



563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 1111805 20-Aug-2014 09:17
Send private message

Or at least turn language filter off for subscribers, I would probably subscribe for that...

11554 posts

Uber Geek
+1 received by user: 5264

Trusted

  Reply # 1111812 20-Aug-2014 09:36
4 people support this post
Send private message

Language filters are essential.




Mike
Retired IT Manager. 
The views stated in my posts are my personal views and not that of any other organisation.

 

 It's our only home, lets clean it up then...

 

Take My Advice, Pull Down Your Pants And Slide On The Ice!

 

 




563 posts

Ultimate Geek
+1 received by user: 89


Reply # 1111814 20-Aug-2014 09:43
One person supports this post
Send private message

KiwiNZ: Language filters are essential.


Oh ok, my mistake, problem solved.



563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 1112700 21-Aug-2014 11:10
Send private message

Also get 500 errors quite often when trying to submit posts with pasted images and more often when sending PM with pasted images, probably related..

BDFL - Memuneh
59434 posts

Uber Geek
+1 received by user: 10647

Administrator
Trusted
Geekzone
Lifetime subscriber

  Reply # 1112811 21-Aug-2014 13:29
Send private message

Not all browser support paste images and these may have problems sometimes. Suggest uploading to Geekzone and using the BBCODE.







563 posts

Ultimate Geek
+1 received by user: 89


Reply # 1112840 21-Aug-2014 14:19
Send private message

freitasm: Not all browser support paste images and these may have problems sometimes. Suggest uploading to Geekzone and using the BBCODE.



Check your logs, I'd say likely some SQL error when trying to save the mass of text, or hitting some sort of char/byte limit.

I don't blame you though; I wouldn't want a bunch of essentially BLOBs being stuffed into my carefully optimised database however it's just oh so convenient for the end user..

Any plans on the horizon for a better image upload function then? (have seen requested a few times & would prob subscribe for that to).

As opposed to the;

 

  • Take screenshot
  • Save image
  • Go to upload > oh bugger over 500kb (What is it 1995..)
  • Find a program to resize
  • Re-upload
  • Copy-paste code...
An integrated uploader would be nice; or yeah could just get the base64 copy-paste working and make it the standard (sorting out the storage/optimisation backend - I'm sure the scripts already exist or probably an option in some WYSIWYG's to save base64 blobs to file on upload).

EDIT: Personally haven't come across any modern browsers that don't support images this way, loads of large sites do it however as mentioned you can sort that backend if you like and just convert to a file for display.

gzt

9275 posts

Uber Geek
+1 received by user: 1323


  Reply # 1112883 21-Aug-2014 15:07
One person supports this post
Send private message

Iirc (it's been a while) I usually use a free external image host for this service and inline it with the bbcode img tag. Less steps in the process because many of those services provide simple small/medium/big choices and that's that. Yeah the host might disappear after a couple of years but it's not an issue for ephemeral discussions.



563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 1112894 21-Aug-2014 15:20
Send private message

gzt: Iirc (it's been a while) I usually use a free external image host for this service and inline it with the bbcode img tag. Less steps in the process because many of those services provide simple small/medium/big choices and that's that. Yeah the host might disappear after a couple of years but it's not an issue for ephemeral discussions.


You know of a good one to use?

gzt

9275 posts

Uber Geek
+1 received by user: 1323


  Reply # 1112938 21-Aug-2014 16:21
Send private message

I don't really think about it. There are tons of them. I just use the first one that comes up in google search. Today that is http://postimage.org/ no login required and many resizing options. You could also look at http://tinypic.com/ - of the names I looked at today that one has the biggest financial backer - owned by Photobucket.

'That VDSL Cat'
6987 posts

Uber Geek
+1 received by user: 1359

Trusted
Spark
Subscriber

  Reply # 1112944 21-Aug-2014 16:28
Send private message

kenkeniff: 
As opposed to the;

 

  • Take screenshot
  • Save image
  • Go to upload > oh bugger over 500kb (What is it 1995..)
  • Find a program to resize
  • Re-upload
  • Copy-paste code...

i tend to use imgur due to the fact that it takes easily 4 times as long to do the whole geekzone image upload system.


screenshot tool, instantly uploaded and in my clipboard, paste on geekzone. 

Simple and effective.


used to use photobucket, but their servers can be so slow, and they do dodgy things to photos unless you include ~original which breaks in many browsers last i checked...




#include <std_disclaimer>

 

Any comments made are personal opinion and do not reflect directly on the position my current or past employers may have.




563 posts

Ultimate Geek
+1 received by user: 89


  Reply # 1112952 21-Aug-2014 16:36
Send private message

hio77:
kenkeniff: 
As opposed to the;

 

  • Take screenshot
  • Save image
  • Go to upload > oh bugger over 500kb (What is it 1995..)
  • Find a program to resize
  • Re-upload
  • Copy-paste code...

i tend to use imgur due to the fact that it takes easily 4 times as long to do the whole geekzone image upload system.


screenshot tool, instantly uploaded and in my clipboard, paste on geekzone. 

Simple and effective.


used to use photobucket, but their servers can be so slow, and they do dodgy things to photos unless you include ~original which breaks in many browsers last i checked...



I went to imgur, got distracted looking the funny pictures then after about 10min forgot what I was doing there..

 1 | 2
Filter this topic showing only the reply marked as answer View this topic in a long page with up to 500 replies per page Create new topic



Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:



Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:



Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:





News »

New Zealand's IT industry in 2018 and beyond
Posted 22-Jan-2018 12:50


Introducing your new workplace headache: Gen Z
Posted 22-Jan-2018 12:45


Jucy set to introduce electric campervan fleet
Posted 22-Jan-2018 12:41


Hawaiki cable system will be ready for service in June 2018
Posted 22-Jan-2018 12:32


New Zealand hits peak broadband data
Posted 18-Jan-2018 12:21


Amazon Echo devices coming to New Zealand early February 2018
Posted 18-Jan-2018 10:53


$3.74 million for new electric vehicles in New Zealand
Posted 17-Jan-2018 11:27


Nova 2i: Value, not excitement from Huawei
Posted 17-Jan-2018 09:02


Less news in Facebook News Feed revamp
Posted 15-Jan-2018 13:15


Australian Government contract awarded to Datacom Connect
Posted 11-Jan-2018 08:37


Why New Zealand needs a chief technology officer
Posted 6-Jan-2018 13:59


Amazon release Silk Browser and Firefox for Fire TV
Posted 21-Dec-2017 13:42


New Chief Technology Officer role created
Posted 19-Dec-2017 22:18


All I want for Christmas is a new EV
Posted 19-Dec-2017 19:54


How clever is this: AI will create 2.3 million jobs by 2020
Posted 19-Dec-2017 19:52



Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.