How can I auto-modify an image? - autogen

The question I am asking is a little bit abstract, so I will try to make it more clear. There are websites where you sign up and get a signature in the format of an image. It has a general format, say a few boxes that are empty, and a logo in the middle. Now, say you gain the "Overachiever" badge, which looks like a pen. You signature is then updated, automatically, to include that pen badge in one of the blank boxes. I am completely clueless as to how to do this, and in what language to do this is, so can anyone help? I have been thinking about PHP as an option, but I do not know if that would work. Any suggestions?

You can do this with PHP (imagecreate) and for the updates in your images you can use cronjobs.

Is this for a forum? Depending on the platform, I know some hosts already have "addon's" that provide similar functionality to what you're after. (Karma addons etc.)
Maybe one of these will help? phpBB has some stuff like that.
https://www.phpbb.com/community/viewtopic.php?t=2147118
http://www.concrete5.org/

If you can execute an external process, you can do this using Image Magick.

Related

How to determine correct files and blocks to be edited in Magento2?

this might seem like a strange question but I am learning Magento 2 at the moment and could use some guidance when it comes to figuring out an easier way than guessing to determine what are the correct files and blocks to edit. Let me demonstrate what I mean.
Say I want to edit template and layout of the customer review section of the customer account page.
I figured out after a while of searching around that vendor/magento/module-review/view/frontend/templates/customer/list.html was the correct template file I need to override, and I turned out to be correct, but it was kind of a lucky guess. There were a lot of other files around there that it seemed it could also possibly be.
Alright, we are getting somewhere. Now I need to change the layout, so which layout file do I need to edit? I tried vendor/magento/module-review/view/frontend/layout/review_customer_list.xml but this doesn't seem to be the correct one. Actually, there seems to be about 4/5 files in this same folder it could potentially be, and I don't seem to have any context to go off other than vague file names. Is trial and error, and guessing what we rely on to figure this out or is there a much easier way to determine this. I know this might be a really stupid, newbie question but I'm a little confused.
Additionally, when testing if this is the correct file I am trying to remove the pager at the bottom right and move the toolbar under the page title. How do I know what the correct names of these blocks are? I tried:
<move element="products.reviews.toolbar" destination="column.main" after="page.title"/>
<referenceBlock name="pager" remove="true" />
which didn't work, but I am also kind of just guessing the names of these blocks if I am honest. I have no idea if this is what these blocks are called.
Are there any easy ways to determine all these things instead of guessing? ID's in the DOM or something like this that reveal the names of the blocks/layouts I need to edit? Something like this?
Thanks for the help

Form Analyzation and Suggestions

I was filling out a form on uSell.com to ship out an old phone and when I entered my address, a dialog box popped up telling me what I entered along with their suggestion of what to change it to. I thought this was cool and was wondering how I can replicate that in my forms.
Looks like you talking about some kind of auto-completer. This can be done in various ways, depending on the languages you are using. You can make a simple auto-completer using just html, javascript and css. More complicated auto-completers can make server side calls to search through a database etc.
Have a look at the link below, they explain a very simple auto-completer.
Related topic
Hope this helps, good luck :)

Captch Integration

Is there any particular way to integrate Captch code validation in iPhone application?
is this possible to create captcha? (with or without web-service / any API)
If any kind of external library or any source is required to be imported, then also please let me know.
Any kind of link or source code is available then please suggest me.
Also suggest from where to start to do this, if possible.
Thanks in advance.
I know you probably don't want to hear this, but why do you need captcha on iPhone? It's completely useless since there are no bots or something.
But if you really need it then make some image with white background and then use this code
http://iphonesdksnippets.com/post/2009/05/05/Add-text-to-image-%28UIImage%29.aspx
to add text to the image... once you'll have this, then just check if the entered string is equal to the randomly generated one on the image and you are good to go.
I didn't find any libraries which could be used as a captcha, so I think this is probably the best solution right now.
Cya,
Nick

How to read the text from an image in iphone

i want to read text in an image how to do that...
Thanks
What you’re asking about is called OCR, and it isn’t as simple as you might think. Luckily, there is at least one open-source effort to do it.
You need an OCR library, see this question for further information. For a more specific answer, you might want to post a more specific question.

How to integrate TinyMce with Zend Framework with Gzipping and Image managers?

I have done some research on this subject, and found out, that Gzipping and adding a new image manager through a plugin would not be as difficult. The only question is the Image manager.
I have seen some quite good ones, like the Image Manager for JCE, which is a Joomla wysiwyg editor, but none for TinyMce for itself.
Could someone show me a good image plugin?
P.S. SwampyFoot is out of question, as it's download links are broken, and PhP Letters Ajax image manager is quite hard to install.
Thanks!
EDIT: I just found Mad File Manager, which seems to work excelently except for a little glitch: An image can be uploaded, but cant be selected... Thats sad...
EDIT2: I've found KCFinder, which seems to be very promising, but I just can't get it to work properly. Somehow, the configuration is quite difficult.
Ok, So I have been able to answer my question myself. So here it goes:
Set up TinyMce with Sozfo solution. The important ting to remember here is, instead of extending your Forms from Zend_Form, you have to extend them from Sozfo_Form. As to the defining your own extendable controller, it didnt work for me, So I put the path defining helpers in my Bootstrap. And if the whole ordeal works, there is a textarea that should have TinyMCE controls, but there aren't any, try checking the comments at Sozfo, or checking if the page is cached or not. It took me a good hour, to find out, that the only reason why no JavaScript was pushed to the header was because of a very persistent cache.
Set up KCFinder. The main problems I faced here were due to wrong paths to corresponding files. When the paths were correct, the only thing to remember is to enable it. There is a boolean to change in configuration file.
The last issue was adding the KCFinder to my Tinymce, and what I ended up doing was, I added the function needed to call KCFinder in TinyMCE.php View helper. ( Due to some glitch I seem to be unable to post the code here). Once you have set up your paths correctly, everything should work splendidly.
All in all, it took me about 3 days to figure this whole thing out. Talk about steep learning curve...
Have you looked at MCImageManager - its not free but its an option if you're happy to pay for it
Not really a suggest as you've got it but swampy foot download does work
As you're already using zend framework, why not use dojo, set up the dojo form and call the editor element and integrate this http://docs.dojocampus.org/dijit/_editor/plugins/LinkDialog into it?