For getting a more accurate location result in Android which one to use FusedLocationApi vs FusedLocationProviderClient? - android-location

I was going to develop an android application that deals with users' current location. Then there I noticed two type of examples on the web. One using FusedLocationApi and another one using FusedLocationProviderClient. The first one is very much easier to use than the second one.
I don't understand the difference between them and which one is better to use.
Someone, please help.
Thank you in advance buddy.

FusedLocationProviderApi is deprecated, Now u can go with FusedLocationProviderClient to get more accurate location.
Google provides the sample in github
https://github.com/googlesamples/android-play-location

Related

Can I see how long I've been working on an Xcode Project?

Title says it all...
On microsoft word theres a "total editing time" counter that tells you how long you've been working on your word document. Is there a similar feature in Xcode 7.3 in which I can see how long I've been working on my project? I'd like the time in hours.
EDIT: Based on answers I'm seeing there's 3rd party software to track my activity, can any of these work retroactively? I.E. Can I retrieve my hours from the past
-Maybe perhaps I can calculate time based on some logged builds? Or error log messages or something that's deep in my workspace? Any Ideas on this?
NO. There is no way to check such counter in Xcode. However you can use RescueTime to detect accurate time on Xcode or any other software.
RescueTime helps you understand your daily habits so you can focus and be more productive.
You can also use xcode-wakatime or any other third party.
I personally use RescueTime. It is best, manages lots of more than Xcode.
Try xcode-wakatime. Honestly I have never used it so I cannot write personal feedbacks.
Yes, you actually can. But you need to integrate WakaTime plugin for Xcode.
Here is a setup documentation.

M Project vs Sproutcore

I cant decide between this two options.
M Project vs Sproutcore
I'm building an application that will be primary served on mobile but has to be viable on desktop.
Mproject is on the edge with number and variability of his prebuilded widgets and may happen that I will need some more or at least alter some behavior.
So this is kind of down side of Mproject. But it looked for first review that Mproject need less code for basic stuff.
And the second problem comes with the skins. I will basicaly need reskin everything a lot. The design of app has to be very unique.
So I want to know which of them is easily to reskin not just by theme-roller and similar stuff.
I would appreciate any other JavaScript-only frameworks recommendations.
Thanks for all replies.
I'm not sure what kind of application are you building so you should take care with my answer.
M-Project solved our problems fine, and help us to make it clear code ... when you understand how it works. It requires a bit of hard work, the documentation is a bit poor and is a new project where some things are not yet implemented. You can change application look modifying HTML and CSS so I think you should have no problems with this.
Also you can download their code and modify it without problems, it is easy to read and modify if you need any specific behavior.
On other side, I never used Sproutcore, it have a really nice look. But documentation say it is focused on desktop applications. Probably you will not have too much problems to adapt the output HTML for mobile devices, I guess.
Lastly, I think you can take a look on Lungo.js Framework.
Best regards.

Sitecore caching and varying

This is my first time with Sitecore caching and I haven't been able to find a good guide about how to use the various varying options in Sitecore. I want to know how each is different, how they differ in regards to what they cache and also in what to use in a typical scenario?
Any inputs are appreciated. Thanks
I wrote this guide a while back, it should give you a pretty good overview: http://learnsitecore.cmsuniverse.net/en/Developers/Articles/2009/07/CachingOverview.aspx
Also Sitecore Australia has this video you might want to watch: http://sitecoreaustralia.wordpress.com/2010/06/28/cache-webinar-recording/
Edit: The above blog seem to have closed. Instead you can download the webinar here
Cheers
Jens

Do you use online or local help in Visual Studio / Are there downsides of one over the other?

Well I am sure that most people have seen the following:
This time, I did not install the local MSDN so I do not have the option of Local help, however I usually always use the first option of look online anyway.
I was wondering if there are any downsides to not installing MSDN?
The only one I have found so far is that dynamic help does not seem to work. As this is a feature I love, I think I will install MSDN.
I was just wondering, are there any other downsides and what do others use?
Edit -
It is hard to really select one answer here and I did various experiments and came up with my own conclusion. They are all good points so +1 to everyone - I was going to put this as an answer and mark it, but that feels rather cheap... so I have edited the question and will have to think about who to mark as answer.
I have been experimenting with different combinations and it is weird to say the least. On a new project, I just pressed F1 at random places and it is amazing that the differences are huge in the pages which are returned - For example, just selecting a <form> tag and pressing F1 came up with 100% different results between online and offline help.
I love the dynamic help feature but I always have an internet connection... I am confused and just not sure what I should do! Another benefit I have found is that through offline help, you can sync the sidebar and navigate around VERY quickly and find other articles - which is much harder online.
I think I will install help, but I am really not that happy... I hope the help feature is improved in VS2010 (haven't had a chance to play around or see) because it shouldn't be this hard to try and choose!
#blaketaylor.nameindex.ht - I personally find Google a bit mucky when I just want to figure out one property or item etc... I like looking in MSDN / Documentation first as there is usually a good example and then just look at Google after if I cannot figure it out - the dynamic help feature is a brilliant feature which I love and skips straight to the correct part in the library, and you do not get this without installing help.
#Shiraz Bhaiji - Agreed with your points, however, I think 2GB's is not really huge. I like your comparison.
#Yassir - It disabled the dynamic help feature, 2GB's isn't huge, I do like Google and SO but I like to try and get it done on my own first.
#Stephen Nutt - Agreed about speed, but it isn't really by much. How do you see local and online help at the same time? I love Dynamic help but when I click a link, it goes straight to local help and I see no options.
I have never found the local help to be of any use. I stopped installing it years ago and have never looked back.
Google is my help.
The main downside to not installing local help is that you do not have access to help if you do not have access to the internet.
The benefits of not having it local are:
Always up to date
Does not use space on your harddisk
I really don't think you might need it unless you don't have no internet connection all the time
also it takes about 2Gb of your hard drive !!
All you need is google and SO :)
I always use local help - it is much faster to navigate around in. When I do a search it always brings up the results count in my local help and online, if I see nothing in my local help I just click on the online tab and see the online search results.

Tracking Useful Information

What do the clever programmers here do to keep track of handy programming tricks and useful information they pick up over their many years of experience? Things like useful compiler arguments, IDE short-cuts, clever code snippets, etc.
I sometimes find myself frustrated when looking up something that I used to know a year or two ago. My IE favorites probably represent a good chunk of the Internet in the late 1990s, so clearly that isn't effective (at least for me). Or am I just getting old?
So.. what do you do?
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
Two Things I do:
I blog about it - this allows me to go back and search my own blog.
We use the code snippet feature in Visual Studio.
Cheers.
I use:
Google Notebook - I take notes for projects, books I'm reading, etc
Delicious + Firefox plug in - Every time I see a good page I mark it.
Windows Journal (in tablet pc) - When I need to draw something and then copy/cut/paste it. I have more distractions here, the web is always very close :)
Small Moleskine paper notebook - Its always with me.
Big paper notebook - When I need more space to write and less distractions.
Obviously these are for all useful information, not just for snippets or tips and tricks.
Why not set up a Wiki?
If you are on windows, i know that ScrewTurn wiki is pretty simple to deploy on a desktop/laptop. No database to fuss around with.
Blog about it.
One of the nice side-effects of blogging is that if you use a sensible categorization or tagging system, it's quite easy to search for stuff within your blog. The fact that you wrote about it also makes it easier to remember problems you have encountered before ("hey, I blogged about that!").
That's a great benefit aside from, of course, being able to share this information publicly so that others might be able to find your solution to a particular problem using Google.
A number of people I know swear by Google Notebook
I send them to my gmail account, that way I have them where ever I go, and they can be put into appropriate folders for later.
I second the blog about it technique...even Jeff said that's a major reason he blogs.
Also, regarding the wiki idea, if you set one up at work, be sure to encourage your coworkers to do the same. When someone finds something of interest they can just write a little "article" explaining what it is and how to do it... that way, not only are your own things easily available and quickly searchable, but you'll often find out things you never knew from other people in your group. That way it benefits everyone not just you.
I agree with emailing, the wiki and the blog. Emailing is the most useful. If you can't use GMail and you're on windows, install a desktop search utility (Windows search, Google Desktop, Copernic, etc)
I also like to jot it into a textfile and save it in my documents folder. Whatever desktop search utility you use will be able to find it easily. e.g.
//print spool stop.notes.txt
If the printer spooler stops, start it again by
- Services > Provision Networks > Restart Service
tags: printer provision no printer spooler cannot print remote desktop
Subscribe in Google Reader and then search later.
At my last place of work they wouldn't let me set up a wiki or anything - so I just made various word documents full of tips and instructions and gave that to my successor when I left.
Now though I'd use a private wiki, or maybe a blog.
For many years I've kept a Word doc named Knowledgebase.doc that contains all my notes with a decent table of contents. I like to keep everything in one searchable doc.
I use a sync tool to make sure the file is copied to all the machines I want it on.
I use TiddlyWiki stored in my DropBox account. Although, recently, Evernote is getting my atention; it has a really useful feature: you send a twitter direct message to evernote user (myen) and it adds a note with your message (a really quick way to add notes or URL's for post-processing). Imagine, you can use a command-line twitter client to create notes! (or any twitter client). I really like this feature.

Resources