Google Maps API - location finder - google-api

We are a site that would like to show the different areas on a map where recycling bins that are associated with our company are located based on your zip code. since we cant host it on our html4 site i wanted to use maybe an external link?
let me know if anyone can help explain this to me :) or if there is a better way to do this!
Thanks!

It sounds like you would like to create a shareable map as a reference for the locations of recycling bins. I would recommend using Google Maps.
At https://www.google.com/maps/d/, you can create your own maps. There are multiple ways to add your data to the map. They let you draw, drop pins, or upload spreadsheet data. You can read more about adding your data at their help page.
Once you've created a map, you can embed it on your website or simply add the link to your page.

Related

how facebook is storing and maintain the image in application?

I'm going to create application where i need to save tons of image and maintain it, so please can any one tell me what is the best practice to save and maintain image, how Facebook does this.
Facebook using Big Data to store images.

View Controller with Multiple sub views

I have a website page which I need to replicate in my app (as a reference for anyone that wants to help the url is http://www.sccgformulary.co.uk/gis.html) There is a title, some sub-headings, plenty of text in different sections and a few different tables. The colouring in the background isn't needed.
My question is how would this be implemented in Interface Builder (if it is even possible?) I don't know how to design the layout of a page which extends further than 1 screen. I've done it before programatically - is this the only way to design views which need a scrollview with multiple subviews? any help would be greatly appreciated!
What you are looking for is probably a simple UITableView with a custom UITableViewCell.
You might need some way of feeding data to your application via a web service. JSON is popular. but before you go ahead I suggest you read up on UITableView and look at some similar Apps to find out exactly what you want.

Docpad design considerations

I'm coming from a php/mysql background. I'm most familiar with the Kohana PHP framework and I'm trying to learn Docpad. I have a loose understand at this point and I've built out my first website and blog. Static content makes a lot of sense to me on Docpad.
I'm working on my photography site where I want to be able to upload new images to a portfolio. The backend needs to handle an uploaded high-resolution image and create several different copies at different resolutions of the image. My biggest question is how do I keep track of the image meta data that I want to display? Do I generate a physical file for each image that has all the particulars I want to track and use those files as my searchable database, much like how blog posts are setup?
Or should I go the route of using something like MongoDB to store image data there where it can be queried and plugged into a layout?
Regarding handling POST or GET data, should I be reading up on the express.js docs? I'm not really sure where to turn for that.
Wordpress uses TimThumb to re-size it's images: How does WordPress.com resize images dynamically?
Then there is this re-sizing library for node: node package for file attachments and image resizing
If you wanted to created like 3 different image sizes and use the backbone collection in DocPad, then you'd add your different re-sized images to those three different collections/folders. For access the images you might just be able to do it via it's file name. So when you copy, re-size and rename the image, in the rename step, concat the image size at the end, like: coolPhoto-med.jpg and then you could just do hard links to get to the image like /spring-collection/med/coolPhoto-med.jpg or you could use query engine to access them.
The file model has a meta attribute: https://github.com/bevry/docpad/blob/master/src/lib/models/file.coffee#L17
I've yet to learn how to use it yet though.
I know we chatted yesterday on #docpad IRC but I just wanted to answer you here too. If you do code something that re-sizes images for DocPad, please do consider putting it up on Github to share with the community.

How to find someone changed their Twitter profile image?

Say, with in my application, I have a list of friends (Twitter IDs) the user follow. I show their name and their image (from Twitter). Every time the user logs into the application, I want to get the recent profile display image from Twitter.
How do I know, someone changed their Twitter profile image?
Currently, I think, I need to get their image (I use Twitter API: GET users/profile_image/:screen_name) and find the modify time and if it is not newer, I assume it is not changed. Is there a better way of doing it? How would you do if you have to built something like this? I hate getting all the image files and checking them one after one. I hope there is a better way to get the images of those who have made a change to their profile recently.
You can try looking at http://api.twitter.com/1/account/verify_credentials.json and see if anything in there tracks profile changes although I doubt it. (Try using: https://dev.twitter.com/console for an easier interface).
If you can't find anything in the API, then there is not way to know that the profile image has changed without checking. In which case, you can store a hash of the old image, and compare the hash of any new images, and see if they match. If they do not, then you know it has changed.
Hope that helps.

Drupal: storing images and other module data

Suppose we have a module that displays tables of employees. Each employee has a photo. What is the best way to store this photos and display them?
I mean, is there some kind of content repository in drupal? I don't want to do this manually, maybe there is an API that can store images and then generate links to them and so on.
Thanks.
The Content Construction Kit(CCK) / Fields in core is what you want to explore.
Using CCK you can attach an image, a number field, a file, some text, a reference to content, etc to another piece of content.
In Drupal 7 you can add fields to any entity (Content, User...your custom one(Employee)), in Drupal 6 you might want to explore Content Profile
Further Reading:
http://drupal.org/node/717120
There is a kind of content repository in Drupal: both in the database and as storage (disk).
The API for that is documented in a special File upload section.
If you want inspiration, the core module called upload.module can serve as example. But be aware that Drupal core, for several reasons, is far from the best and cleanest examples to learn from.
What you are looking for is CCK module with file-field and image-field modules for handling the image upload action.
And for the display of those uploaded images you should use Image-cache

Resources