Xamarin thrift pcl Implementation - xamarin

I have been trying to find a way to use apache thrift in my Xamarin Forms app but I could not manage since thrift.dll needs System.Web.dll and there is no mono implementation for System.Web.dll. Do you know any workaround to achieve this?
Thanks..

In general, Thrift works fine with Mono, so that's not the issue. As you already found out, the problem starts where the limited capabilities of mobile devices' .NET framework implementations end. Regarding your specific problem: There is a Windows Phone 7.x project file around which has these dependencies:
Microsoft.Phone
Microsoft.Phone.Interop
System.Runtime.Serialization
System.Servicemodel.Web
System.Windows
system
System.Core
System.Xml
System.Net
The WinPhone7 *.csproj has of course limited capabilities, e.g. there is no server code available for some technical reasons. The compatibility mostly relies on SILVERLIGHT being defined, and yes, it may not be perfect, but works Good Enoughâ„¢. You may try this one, see how far it supports your needs, and what changes need to be made (if any).
As of now, there are no Xamarin-specific things in the code, but you know, this is open source and we always appreciate pull requests or patches, especially valuable ones like this. If you think you could make a contribution, join the mailing list and/or the freenode #thrift IRC channel and ask for whatever support you need with this. We will be happy to help you.

Related

Sketchapp using for mockup designing

I know this is not related to PHP but related to many Front-end designers and developers.
In now days experienced mockup or UI/UX element designer use an app called sketchapp specially who use mac os. but when it comes to front-end developers who don't have mac os to code front-end. Here is the problem start many of developers try to search a solution but I don't think any one had it because the app developers not create any thing for windows to support these files.
My Question: what is the solution for this problem? should we try to find a friend/colleague who have mac os with the app or should we ask the client for other file format (but sometime clients don't have other file formats) or should we reject the project.
what should we do?
The immediate solution is to have your clients export their Sketch files to pdf. That is a built-in function in Sketch and only takes a second.
Longterm you may want to evaluate whether or not you maybe should get a cheap Mac to expand your portfolio.
Not sure if this is what you are looking for, but if you need to get design specs to work with you could use:
https://zeplin.io/
OR
https://www.invisionapp.com/
They offer tools for collaboration between designers and developers.
Hope this helps!

UIAutomation event for when PDF downloaded in Internet Explorer

I am trying to handle an event for when a PDF has downloaded and been fully displayed in Internet Explorer.
Which UIAutomation event will handle this?
If you are referring to the UIAutomation object in the .NET Framework, it supports managed code. Internet Explorer is written in C++ as unmanaged code. Some folks have managed to write extensions using managed code, in spite of clear advice to the contrary, however, I've not heard of anyone successfully controlling IE using managed code.
Earlier versions of IE could be automated using COM interfaces or VBA objects, however, these features have been increasing deprecated over the years.
In addition, few of those interfaces supported extensions. (PDF is not a natively supported file type for Internet Explorer, so automation would depend on the surfaces exposed by the application registered to handle PDF mime types for the individual user.)
Since Edge is now the official browser, it's unlikely that IE will be updated to support managed code extensions. Note that Edge does not currently support extensions and little information is available describing when, or if, that will change. (There have been vague promises in the past, but little additional information.)
If you're trying to accomplish a specific effect, consider posting a more specific question, one showing:
The code that you're trying to use,
The effect you're trying to achieve, and
The behavior you're seeing instead.
Hope this helps...
-- Lance

firefox add-ons sdk vs XUL

I've just started creating my first firefox add-on and I'm currently in the learning stage, to familiarize with the api.
However I found a little ambiguous what method should I use. After I've read a few tutorials about how to build firefox add-ons using XUL, I realize there's another way:using add-ons sdk which from what I understand is only for firefox 4+ versions only.
I like better the sdk way compared with XUL, however to me the sdk looks like is still in early stage and lacks a few features(I think).
So my question is what road should I take? The new sdk way, which also looks a lot more cleaner than XUL, or to use the good old fashioned way:XUL(of which I'm not a big fan)?
After reading this post: http://blog.mozilla.com/addons/2010/12/09/announcing-add-on-sdk-1-0b1/ I think that the sdk is much better than XUL, however because it lacks a few features like sockets api , I can start my project only using XUL, or postpone it until the sdk will become more mature.
Waiting your thoughts about this problem. Thanks
PS: I'm not interested in developing add-ons for older firefox version(ff3.x)
Add-on SDK is perfect for simple add-ons. Also, it does have access to XPCOM if you need advanced features. So the main issue is UI integration - the options are very limited and nothing comparable to XUL overlays exists.

Programmatic access of SkyDrive

Does anyone know how to access SkyDrive programmatically from Windows Phone 7? What API do I use? I need to upload files from the Phone to SkyDrive and vice versa.
Some code samples would be great. :-)
You can now officially integrate parts of SkyDrive with Windows Phone 7 applications.
Details outlined here.
There is a new Live SDK available from Microsoft which I think can do this. It's also in a very early alpha or beta state:
http://msdn.microsoft.com/en-us/library/bb264574.aspx
I have developed a sample based on SkyPad (Developer Preview). Please install the Windows Live Developer preview SDK.
The sample allows to save a file to SkyDrive and dowload it again after saving.
Here the link:
http://blog.mecum.biz/2011/10/windows-phone-7-mango-skydrive-sample/
You can use the Live SDK to integrate SkyDrive into your Windows Phone applications. Please see our code samples on GitHub.
Not an answer, but there's hope that an answer is on the way:
However, when Mike Torres was asked about features such as better usability, third-party API support, Windows Live Mesh integration, and expandable storage, he acknowledged that these are "top asks" for SkyDrive and said that they are currently "hard at work on SkyDrive as we speak"
Source
Your requirements sound pretty much like mine - you just want to use skydrive as a basic cloud filesystem.
I thought Matt's suggestion was an outstanding idea. I obtained the library and set out to port it, but unfortunately the codebase is huge and elaborate and absolutely riddled with the [Serializable] attribute which is not compatible with WP7. It also makes extensive use of several pieces of framework not available in WP7x, including X509Chain and Authorization.
SkyDriveApi is not even compatible with VS2010 - an attempted conversion produced a big mess so I just tried it out in VS2008.
We could always write one. This looks like a fair bit of work so I invite you to collaborate.
Well, it's feature complete and working a treat. I'd like to thank people for all the support and assistance I received reverse engineering the protocol using Fiddler, and coding, testing and debugging the prototype into production ready code. I'd like to, but nobody contributed a damn thing. Good luck writing your own.
SkyDrive doesn't have an official API but here are some unofficial ones. I'd start by looking at http://skydriveapiclient.codeplex.com/.
It doesn't claim support for WP7 but you may be able to port it.

Are there any good drag&drop web app IDEs out there that support AJAX?

Can anyone recommend a GUI builder tool for creating DHTML web apps using AJAX to communicate with a web service backend? I'd like to avoid having to mess around with designing HTML, marshalling/unmarshalling data, checking for browser compatibility, etc. The tool should have a library of widgets that can be put into an application and hooked up to functionality, and be extensible enough to be able to define custom widgets. Of course free and/or open source is preferrable but I would consider proprietary tools too.
Also to what extent does the choice of GUI tool affect what platform or language I would use for the backend? If the GUI is just calling a web service then I should be able to use anything on the server-side to provide that interface but maybe some gui-side tools use a proprietary data exchange format that requires some specific server-side code?
Edit: I don't need a widget that can be dragged, I want an IDE that allows one to build a gui easily (i.e. a RAD tool).
WaveMaker is open source, runs on J2EE.
If you're comfortable with Java, maybe you could try Google Web Toolkit? http://code.google.com/webtoolkit/
I'm using Wavemaker and it does exactly what are u asking...
It is really easy to use and very perfomant....
I believe Dreamweaver does some of this, but in my opinion such editors are not a good idea. They produce horrible, unmaintainable server-side code and are quite inflexible.
Wavemaker beats everything else I have used hands down. Applications can be developed rapidly, has drag and drop, can connect to any web service, and has unmatched database management tools. The only problem with it is that it has kept changing hands/ownership so much and its future direction is not clear.
Delphi for PHP from Codegear has some of this capability, but I would agree with ceejayoz that such tools don't necessarily make for nice code.
On Dan's suggestion I took a look at GWT. I'd heard of it before but never looked at it that closely and it seems pretty interesting. Certainly it takes away the annoyance of pixel pushing and making things work in multiple browsers. I also tried searching for "gwt rad tools" and came up with a couple of results:
Instantiations GWT Designer (commercial, $59/year)
Wirelexsoft Vistafei (still in beta but will have a free and a commercial version)
I'll take a look at these but if anyone's used something else let me know.

Resources