Monday 27 July 2020

Android Legacy Package Compatability

Migrating Android application from Eclipse to Android Studio OR add new API compatibility may complain missing reference to following packages.



import org.apache.http.Header;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.client.ClientProtocolException;import org.apache.http.client.HttpClient;import org.apache.http.client.methods.HttpPost;import org.apache.http.entity.StringEntity;import org.apache.http.impl.client.DefaultHttpClient;

There are two solutions for this

1. Migrate to new replacement packages (new alternatives to above packages)
2. Add useLibrary 'org.apache.http.legacy' to build.gradle



Saturday 14 January 2017

Outlook search and index issues

Here is a useful url I got for outlook search and index issues

https://lookeen.com/blog/how-to-fix-outlook-2007-search-problems

Content is pasted below in case url is not accessible (Courtesy Lookeen.com/Siobhan O'Rorke)

1. Check that your Outlook items can be indexed

Outlook indexes .pst and .ost files, which include any email accounts that you’ve connected with your Outlook client. If you are using a Microsoft Exchange account, make sure you are connected to the Exchange Server! Instant Search won’t work unless you’re connected to the server in Cached Exchange Mode. If you’re not sure, check with your administrator.

2. Check that the files you want are included in the index

Your search might not work because the files you want aren’t included in the list of files to be indexed.
  • Go to Tools > Instant Search > Search Options
  • Under ‘Index messages in these data files:’ you can see which files and folders are indexed
If you don’t see your file in the list, add a new one using the following steps:
  • Click E-Mail in the navigation section on the bottom left
  • Click on the drop down arrow next to All Email Items
  • Select the items you’d like to index from the list
  • Restart Outlook

3. Check that indexing is complete

Your search might not show any results because Outlook hasn’t finished indexing new content yet. Here’s how to check the status of the index:
Outlook 2007 Indexing Status
  • Go to Tools > Instant Search > Indexing Status
  • The pop up box should say there are ‘0 items remaining’. If not, indexing isn’t complete and you need to wait before you can search

4. Outlook says there are ‘0 items remaining’ but your search results are still wrong

Here’s where ‘try turning it off and on again’ comes in handy:
  • Close Outlook and restart your computer
  • Start Outlook again and check that it is indexing properly using the steps above
If you restarted your computer but Instant Search still doesn’t work, your .pst file could be corrupted. Follow the steps below to fix corrupt .pst files.

5. Scan your .pst file for errors

Depending on the size of your .pst file and the amount of corruption, this process can take a while.
how to use scanpst exe
  • Close Outlook completely
  • Find a file called scanpst.exe:
    • In 32-bit Windows: C:\Program Files\Microsoft Office\Office12
    • In 64-bit Windows: C:\Program Files (x86)\Microsoft Office\Office12
  • Double click to run the program
  • When the Inbox Repair Tool (scanpst.exe) starts, enter the location of your .pst or .ost file. It should find it by default, but in case it doesn’t, here’s where you can find your file:
    • Windows XP: C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook\
    • Windows Vista +: C:\Users\%username%\AppData\Local\Microsoft\Outlook\
  • Press Start
  • After a while, the Inbox Repair Tool will give you a report and some options for the next step. Ensure that ‘Make backup of scanned file before repairing’ is selected.
    • Click Details… for more information about the corruption
    • Click Repair to begin repairing the file
  • After some time a ‘Repair complete’ dialogue box will open.
Now you can try searching for your file in Outlook 2007 again.

6. Disable and re-enable your file for indexing

  • Go back to Search Options, following the instructions in point 2
  • Un-check the data file you’re having problems with
  • Close Outlook and wait at least 5 minutes. Check that outlook.exe quits properly by opening the Task Manager (ctrl+shift+esc) and looking for outlook.exe under the Process
  • Open Outlook, go to Search Options and re-select the data file.
  • Click OK
  • Leave the computer time to add the file back to the search index.

7. Rebuild the search index

If your file is listed in the files to index list, and you’ve checked your .pst file for errors, removed and re-added the file you want to the index, and the search still doesn’t work, you may need to rebuild the search index.  All of your Outlook and Windows items are indexed and stored in a file called the search catalog.
Here’s how to rebuild the search catalogue:
  • Close Outlook completely.
  • Click the Start button then click or search for Control Panel
  • Depending on your system, do one of the following:
    • Windows XP: Click Other Control Panel Options under See Also. Click Indexing Options.
    • Windows Vista +: Click System Maintenance then click Indexing Options.
  • Click Advanced
  • Click Rebuild
This will completely rebuild your entire search index from scratch – Windows and Outlook files included. This is another process that may take some time and cause your computer to run slowly. Depending on the number and size of the files that need to be re-indexed, it can take from a couple of minutes to a few hours. Try running the index rebuilding process overnight.

Clear Signed Messages and Outlook 2007 Search Problems

If by any chance there is a clear-signed message being stored in your .pst or .ost files and it is the message you are looking for then that’s likely where your Outlook Search problems stem from, as Outlook Instant Search cannot find it. When a message is using clear-signed encryption, that message will not be searchable. You can figure out if the actual location of this file is the problem:
  • Figure out if you are searching a .pst or .ost file. When you are in your inbox, click on the arrow next to the box that says Search All Mail Items.
  • Select Search Options, and within the indexing section, take a look and see if these check boxes are selected:
    • Personal Folders
    • Mailbox –
  • If you believe that the Clear Signed messages are being stored elsewhere then uncheck both of these and try to search for the file again.
This may help solve one of the less common Outlook 2007 search problems you may have encountered, but the initial tips in this post will get the Outlook 2007 search tool up and running like it should. Happy Searching!
Indexing status image retrieved from addictivetips.com


Saturday 16 January 2016

Enabling Wifi Tether on Rooted Android! AT&T, T-Mobile, Sprint, Verizon

Hi All,

Two linkes which helped me to tether on Note3(ATT), after a long RnD

For naive users
http://highonandroid.com/android-apps/how-to-get-free-wifi-tether-on-rooted-android-att-t-mobile-sprint-verizon/

For advanced users and want to play around

http://forum.xda-developers.com/showthread.php?t=2057344

Praveen

Saturday 7 March 2015

Debugging Apache, My SQL configuration on XAMP

Following are a usual problem reported from Apache/MySQL users

And following general error message will give only clue on a probable port issue where the configured port is already in use. Anybody point this cause will usually predict skype may be the culprit because of a default settings on skype to use ports 80/443 in case the one selected is not available.
-----------------------------------------------------------------------------
This may be due to a blocked port, missing dependencies, 
improper privileges, a crash, or a shutdown by another method.
Press the Logs button to view error logs and check
the Windows Event Viewer for more clues
If you need more help, copy and post this
entire log window on the forums
-----------------------------------------------------------------------------

Following are the usually available advises

1. If you are using the latest Skype, go to Tools -> Options -> Advanced -> connection. Disable the       "Use port 80 and 443 for alternatives for incoming connections"
    Sign Out and Close all Skype windows. Try restart your Apache again.
    To find the program running port 80 conflicting with XAMPP, click theNetstat button at       the far-right. You will see a list of programs together with their respective running port           and PID.
2.  Another reason people usually say is DocumentRoot ServerRoot 
Best way to solve
Best way to solve these kind of issues on Apache/MySQL is to run the batch file associated in the command prompt. This should be the first step executed to debug configuration/dependency issues on Apache/MySQL. The advantage of this step if that it will save lot of time. When we run the batch file, it will display the exact reason for the issue with file and line no affected.
Apache_Start.bat
MySQL_Start.bat

Wednesday 10 September 2014

Invalid Application Delete? J2ME

This can happen because of two reasons
1. General attributes not added to project. Do the following to achieve this
          Select project from project explorer > Properties > Application Descriptor>Attributes Tab > Use Add button

2. Important! May be beginners will miss this
          Select project from project explorer > Properties > Application Descriptor>MIDlets Tab> Use Add button to add MIDLet name and MIDLet class

MIDlet class is a unique class in your project which extend MIDlet as

MyMainClass extends MIDlet

Thursday 21 November 2013

Disabling SSL on apache

http://yourbusiness.azcentral.com/disable-ssl-apache-server-19849.html

Apart from this need to take care application is not using "https" in any of its urls/menus etc.

You can do a full text search of "https" in the entire solution to confirm this.

Tuesday 19 November 2013

Enabling LDAP for PHP on Apache/Windows environment (WAMP)

Here is a very useful and easy url for enabling LDAP for PHP on Apache/Windows environment from ID SAFAIRIS AMAT NOOR
http://wptidbits.com/webs/enable-php-ldap-module-in-xampp/

One change I suggest is have Environment variables configured instead of copying the dlls directly to system folder. Following is the help for this

http://www.php.net/manual/en/faq.installation.php#faq.installation.addtopath