How can i go about creating a tagging images function like similar to facebook? The idea I have is I want the user to be able to click on areas of the image in order to tag it. I want to store the co-ordinates the user clicks as well. I'm using wxWidgets with Python2.7.2.
Any suggestions?
You'll want to use something like wx.GetMousePosition to grab the coordinates. I would probably bind to wx.EVT_LEFT_DOWN or wx.EVT_LEFT_UP. There's a wiki page on the wxPython site with more information. Or you might find reading the docs helpful.
Related
I just need some links, where to begin. I am not really familiar with OSM, but I want to create little website with a world map, where visitors of my site can simply add places with a descriptopn. I don't know where to start. Are there any pre-coded templates for a CMS like Wordpress or just non-CMS templates?
Have a look at OpenLayers. There is a QuickStart Tutorial on how to add a map. If you want to add a Marker by a click on the map have a look at ClickHandlers (example can be seen here). What you would have to change is showing a field onClick, where the user can enter the description. What could be also from interest for you is the OpenLayers.Popup.
If the result should be stored, you have to save the description and marker position into a database, so you probably will need some server side implementation for your idea.
I am trying to get specific content on a confluence cloud wiki to display content based on a specific user. The scenario here is that there are links on a page but only 1 should display, the one that displays is based on whom ever is logged in.
I have been told how a macro is the way forward, but I have read the documentation and I am at a loss. I do not understand what I have to do or how to write a confluence macro. could someone help me out with either an example or some links? I have searched like crazy, but maybe i am not asking the right questions but hopfully you can all help me out?
There's a plugin for this:
https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility
But I'm not sure how thoroughly it hides the content. It might still be visible if users view the page source. If you're trying to hide content which needs to be really protected, you'll probably need to do something else.
Depending on how many users are going to be using the page, you could also just make separate spaces for them, add the permissions to those spaces, and then use a page-include on your "main" page to display the content. If they don't have access it shouldn't show up. You might experience some formatting issues with that solution, however.
Finally, you could grab the username with jquery and display stuff based on that. This solution will be pretty easy if you are familiar with javascript/jquery.
Edit: Here are some helpful resources on how to use javascript and jquery within confluence:
https://confluence.atlassian.com/display/CONFKB/How+to+Use+JavaScript+in+Confluence
https://developer.atlassian.com/confdev/confluence-plugin-guide/writing-confluence-plugins/including-javascript-and-css-resources
I am currently trying out the Facebook for Android Share Dialog(https://developers.facebook.com/docs/android/share-dialog/) that was introduced in Facebook for Android SDK 3.5.
The code for starting the dialog is straight forward:
FacebookDialog shareDialog = new FacebookDialog.ShareDialogBuilder(this)
.setLink("https://developers.facebook.com/android")
.build();
uiHelper.trackPendingDialogCall(shareDialog.present());
Similar to setLink() there is a setPicture(String url) method in FacebookDialog.ShareDialogBuilder. But I can't get this setPicture() method to work. I have tried to put Url to local image files, online images and also FB staged images (fbstage://...) but nothing seems to make any effect on the Share Dialog viewed or the resulting post.
Is there anyone that got the setPicture() method to work?
from documentation of facebook feed
The picture must be at least 200px by 200px.
And even more restriction on image to be, check here
This is an image associated with your media. We suggest that you use an image of at least 200x200 pixels. However, bigger is better, so if you have a 1500x1500 image that you can use, please use it. We'll downsample and crop it for for people using smaller-resolution devices but will use it on a larger device. The larger this image is, the more likely it will be used when sharing stories on Facebook. (Note: image sizes must be no more than 5MB in size.)
With ShareDialogBuilder its not permitted to shared a local file but only remote files.
Currently I think that the only way (via a share dialog) is through the open graph action dialog.
In order for you to call the setPicture() should be used with setLink().
Please refer to the article below.
https://developers.facebook.com/docs/reference/android/current/class/FacebookDialog.ShareDialogBuilder/
You need to use an external URL like:
.setPicture("http://yourdomain.com/images/xyz.png");
Also, it will only display if you've set the link.
I would like to know how I can add pictures/image functionality to the confluence survey macro. I would like the user to select a picture from a list of pictures in response to a question. First I need to find out a way the wiki owner can upload pictures for the users to select one. Secondly allowing the user to select one picture. I am a beginner trying to learn confluence/wiki technology. It would be great if someone could help in this regard.
I don't have any experience with the survey macro. On the once occasion when I needed to have a survey-esque function on confluence I just used html and js.
On the subject of attaching images I do have experience though. If you go up to the Edit drop down you'll see a link to Attachments. There you can upload images which will be attached to that page.
You might want to look into whether the survey macro has the ability to work in conjunction with the image gallery macro.
Use pictures instead of words in the survey macro option list.
{survey:title=MyTitle|choices=!apple.png!,!orange.png!,!banana.png!|changeableVotes=true|showSummary=true|showTopSummary=true|showLast=true|visibleVoters=true}This is a survey{survey}
You can also have words and pictures.
{survey:title=MyTitle|choices=!apple.png! I like apples,!orange.png! I like oranges,!banana.png! I like bananas|changeableVotes=true|showSummary=true|showTopSummary=true|showLast=true|visibleVoters=true}This is a survey{survey}
I'm fairly new at iOS development so please forgive my ignorance.
I have web view with a search form, sending request to display different pages depending on the search query. When displaying a selected page I want to have a normal html link at the top which will give the user the possibility to display all images available using the very nice MWPhotoBrowser.
So somehow I need to tell Xcode to open MWPhotoBrowser using a link and when this link is pressed send a variable to MWPhotoBrowser and in that viewController somehow loop through a my url.com/variable.
Is this the best way to do this and is it even possible? I have searched as much as possible but I'm not sure what to look for so I would really appreciate if you could point me in the right direction.
Judging from this link at github project it should be fine.