Posts

BeeIMG App Lite Alpha

Image
We have taken our time to make a simple app to upload images.


Currently this app is in alpha and We are first releasing the windows app first followed by the Linux app.


If you like to try out the linux app please use the contact form



First Download the Windows App from the below URL:

https://github.com/BeeIMG/BeeIMG-Desktop/releases/download/0.1a/BeeIMG.zip (9.13 MB)


Open it and extract to anywhere you like, and run the exe file.



Refresh the desktop and click on BeeIMG icon If there is a rundll error ignore it


Use the contact form and select Request API key from the dropdown menu and ask for a API key
Set the API key you have to set it everytime you open the app
Use the button the select files to upload
The image URL will be on the text form below


Send bugs, new feature in the contact form Enjoy!

ICO images 0 view bug

Hello all,

We just fixed a bug where images with ICO extension doesn't get recorded with our image view counters. This caused images with ICO images to have 0 images views and might have caused the system to mark the image as inactive.

We are very sorry if this caused any image loss. There is nothing we can do to get deleted images back and we don't even have any stats on how many images got deleted as we delete inactive images with 0 views from our database as well.

Our image view counter are real time and near real time on high views, so please contact us if your images doesn't get tracked. We have done a full check on ICO ext images so it works correctly now.

Thanks for reading.

Recent Hiccups May 2016

We faced some blackouts recently, and it was because we got very popular in china.

The images that was generating lot of traffic were violating our TOS, but as they were generating lot of traffic and I thought it was a good time to stress test our image delivery systems.

At first we were handling the load fine. after some time our redis server start acting wired. the issue was with dumping the db to disk, but as the images were generating lot of data the redis server crashed. we started to migrate the all gif images to be served by our CDN while still collecting views data. but at some point our real time stats handling script started to fail due to redis connection issues. after that the data started to collect and the redis server crashed every time it was started.

While all that was happening we noticed that our php front end started throwing errors. this was due the connectivity issues to our redis server.

The image serving end do not use redis server and was not afflicted. its using …

Fixing wrong extensions

Image
Around Thursday, April 7, 2016 5PM UTC time, I was adding ICO support to backend and testing ICO uploads when I noticed that every url upload returns jpg as the image extension for every image. this is the minor issue for users since modern browsers doesn't care about the image extensions, but there was a little issue since the image delivery system gets the image content type by the image extension. A fix was quickly applied as I was familiar with the function that misbehaved. so the uploads after should be fine.


But what about the images uploaded before the fix?
It was already night here, so I deiced to add the fix for those images the next day. since I will be touching the main scripts and raw images that powers the site and I don't want mess any of that.


Fast forward to today, I just shipped the extension correction to the system, but it will occur in batches. It there so that I can monitor if any thing goes wrong.


The extension correction will update the database so that…

Lowering the Server Load Part 2

Don't use PHP for real time events.

That's what we learned, when we switched to real time image views. At the time memory load was high on the php script that added the views, but it didn't seemed to be a big issue, until there were tons of image views to sort through.

So as a fix we switched to Nodejs to sort real time images. we are beginning to love the asynchronous events here at BeeIMG. The JS script was pretty easy to write and the memory load was lowered by more than 75%

The next memory hog is the MySQL server and we are already using memory friendly redis-server for some parts of the site. We hope to move the whole image views part that gets updated frequently to redis by the end of the year. So we can server more images, fast.

there are some more news to come, so stay tuned.

Codes: Time Elpased

As promised here are some codes powering BeeIMG.

this php function is very useful to the users, we use it almost everywhere. It converts time to easy human readable format.

when the second string is set to false, it will return the first 10 seconds of the time as 'Just now'. this was later added to calculate time of the real time image views.

to use it
timeelapsed($time) or timeelapsed($time,true)

Updates: Imgur Oauth

As we said in the twitter oauth post, twitter was the last addition to the ouath system for a while, to keep the system simple.

Now you can login and register using your imgur account. In the future we hope to add reddit, but it will take some time to implement. The current ouath login system is a complete mess and some times you will be thrown to a error here and there.

As the twitter email limitation was recently removed, now you can register using your twittter account. for the registered members we added an ouath account settings page, which you can find in the dashboard.

We also fixed the albums system completely. also if you are BeeIMG Firefox addon user, make sure to update to the newest version.

For more updates at real time time follow our twitter feed at https://twitter.com/BeeIMG

Thank you for reading.