How to upload and size a profile picture for a site? - vb.net

I have a site that has a profile page and I would like to allow the users to upload an image for the profile picture. I forsee a problem if the user select an image that is larger than what I am allowing for the site. Is their a good refrence or example how to accomplish this?
The site is developed in Visual Studio 2008 with VB.NET 3.5.

The following site contains a good example of how to do this - Hybrid ASP.NET File Upload and Resize Sample (VB.NET).

If the image is the right shape but just too large you can use the method that Bermo talks about.
However if you'd like to choose the most interesting part of the image you can use the technique that Reddit uses for it's thumbnails.
See here for some info and the source code (Python) is here. Basically it splits the image up into sections and works out which ones are the most interesting by using the entropy value.

Related

Wagtail ImageChooserPanel: upload only, do not show other images in collections

I'm building a site with different users who should not see each others' uploaded images. The wagtailimages.Image model and ImageChooserPanel always show all the images in the various "collections".
How can I customize ImageChooserPanel so that it only offers image upload?
I can use a Django models.ImageField and its simple upload widget but then do not get the nice preview in an Orderable list, nor the different rendition sizes. A previous query on this goal was ill-informed: Limit ImageChooserPanel to children of current Page? and now I realize it's basically a widget UX change I want.
Thanks.
Perhaps this https://github.com/spapas/wagtail-faq/blob/master/README.md#ok-fine-but-i-dont-want-my-editors-to-be-able-to-select-small-images and this could help https://github.com/neon-jungle/wagtailmodelchooser

How to get Labels to appear on markers in ArcGis Maps webpart for SharePoint?

I'm using the Arcgis Maps web part for SharePoint. I can get my markers / pins to appear, now I'm trying to get labels to appear identifying each. How do I go about this?
Please see screenshot below:
I've managed to find work around by simply building the map using Arcgis's Online tool (Arcgis Online) I'm not sure if the webpart is buggy, but the Online version is simple and intuitive. I pulled the map into a Web Page Viewer web part. It works very well.

URL link for the project reports for the PNG

Is there a way using a REST API or some other means to get the end point the URL which holds PNG for the iteration break down, velocity chart, iteration cumulative flow diagram for each project so that we can share it across.
Something like below
https://rally1.rallydev.com/slm/analytics/report/view/3161993978732214d/chart.png
How are you trying to share it? If you'd like to embed it in a wiki or sharepoint it's fairly easy to embed a custom app with that chart in it. The generated report images themselves are not actually linkable- they are generated as a client side image map...

Creating a image browser Boxee App

I am writing a Boxee App and I want to list all albums for a picasa account.
The problem I'm facing is that I have no idea of how to list albums and photos in the Boxee app.
The application itself should be fairly simple:
First a main screen where all your albums are listed, then when you click an album you see all your photos in a grid of say 4x5 photos
When you click a photo you go in to a view where one photo is displayed on the whole screen where back and forward lets users go back and forth in that gallery.
I have wrote a simple wrapper arround the gdata photos Python API which I was aiming to use so hopefully all the heavy lifting will be done by the gdata API.
Does anybody have some good links to example applications or tutorials to one or more of the features I want in the application?
Boxee uses an XML based approach for describing an application's interface. You'll need one XML for each screen of your application and you'll connect them together using the API.
You would build this XML screens using various controls defined by the XML API. Basically a control (a button, a list, a label, etc) is described as an XML node with attributes and child nodes. You can check a list of all the available controls here: http://developer.boxee.tv/UI_Controls
You can use the Python API to control various properties of the UI elements you coded in your XML files. For example you could fill a list with photos taken from a server, you could change the label on a button, load another screen and much more. Here are the Python API specs: http://developer.boxee.tv/Python_API
Make sure you read trough the Boxee dev pages and also remember that Boxee originated from the XBMC project so most of the documentation regarding XBMC skinning (http://wiki.xbmc.org/?title=Skinning_XBMC) also applies to Boxee.
Another thing that might help you is looking at other apps. Find an app that is somehow similar to what you want to do, find it in Boxee's app folder and peek at the code there.

Search and Highlight text in PDF for IPad

I am working on the PDF App for iPad and facing an issue: how to search a text in PDF and also how to highlight that text?
Yours is the same big problem I'm having. My understanding is that, currently on iOS 4.0, the main public API is CGPDF . It allows us to parse PDF, and with it we can search strings in it. See also this Quartz 2D document. It also allows us to render it on the screen using CGContextDrawPage. However, it's not yet possible to get the position of a text in the rendered image. (On OS X it's possible using PDFKit.)
So, I'm afraid that you need to implement the PDF spec yourself to get that info. I think GoodReader etc. is working very very hard to implement these.
I had the same trouble recently and then I found FastPDFKit. Have tested the package and it's working great.
http://mobfarm.eu/fastpdfkit