Google+ ZACARÉS: 2015

Translate

2015/12/11

Knox allow you to have two Whatsapp in same device

Recently found an interesting app, Knox by Samsung. It help you to securely separate your personal and professional data.

For the meantime I am not quite interest in its security feature, however it does provide me an opportunity to install two Whatsapp on the same device.

The app creates a new 'layer' on your phone so that you as a device user can have a 'second' phone within your phone.

As it is being treated as another phone, like vm, you need to install a separate set of apps inside. And this is the feature that allow you to install a 'second' version of Whatsapp in the same device, like a vm inside your phone.

2015/12/06

Hong Kong Mobile Carriers are getting worse. Which carrier would be better?

Which carrier would be better?
I used to be Smartone subscruber. But the stability degraded over the past few years a lot. In the past, though not stable, but I still can use mobile data to connect to the internet. But later, I cannot connect with mobile data in my work place and at home. The worse area is along mtr. I have tried to connect to google.com at Kwun Tong station but even when I got off at Tsuen Wan, I still cannot show the page.
So, I changed to subscribe China Mobile as I can use mobile data even in China. But this even worse than Smartone. Connection when travelling on MTR can never be achieved.  Most areas in Hong Kong cannot use mobile data, Tsuen Wan, Kwai Chung, Tsing Yi, Mongkok, Tsim Sha Tsui, Wanchai, Causeway Bay, Ap Lei Chau, Admiraty, Cental, Yuen Long, Tin Shui Wai (where I am now writing this blog, there is no data signal).
I. have heard that CSL would be the best, BUT their fee is also supreme.
So, is there any economic plan/carrier that I can subscribe? There is no need to be fast. I only want coverage.

2015/09/21

How to show and hide android developer option for kitkat 4.4 or above

to show the developer option, click on build number for seven times
to hide the developer option, goto app seetings, all apps. find settings and clear its data.

2015/08/12

VS2015 Community cannot build Cordova [Solved]

Recently, I'm trying Microsoft Visual Studio 2015 Community Edition to build cross-platform apps with Cordova. The thing which frustrated me much is, I can never run the debugger. Whenever I hit F5, I'll got the following error:
The debugger cannot continue running the process. Unable to start debugging.
This has been an issue for quite a long time until recently, Microsoft seems partially solve the issue. You need to update VS2015.

If you still got this issue after update, you should try the following steps:
  1. Close all VS instances
  2. cd %appdata%\"..\Local\Microsoft\Phone Tools"
  3. rename CoreCon folder to something else
  4. Launch VS again.
With these steps, I can finally build with Cordova.


2015/07/07

How to reset Whatsapp incorrect badge unread on Samsung Android Device with TouchWiz lanucher

Whatsapp does not keep the badge number, it is the device's os functionality.
For Samsung Android device with TouchWiz launcher
Go to settings --> application manager --> all
select BadgeProvider
Click Clear Data
Click Force Stop
Restart your device

2015/05/24

WhatsApp spam messages are very annoying

WhatsApp is a convenient tool, but it becomes very annoying as more and more companies use it as an advertising tools. Many unwanted messages and advertisements come from unknown numbers sending to me, WITHOUT MY CONSENT. 

There are three things that I HATE most with WhatsApp
- Anyone can send me message WITHOUT MY CONSENT. They can just send message without knowing who you are.
- Anyone can  add me to a group WITHOUT MY CONSENT. They only need to input my number in to the group and can force me to join the group and send me message.
- I can ONLY BLOCK a sender AFTER RECEIVING THE UNWANTED MESSAGE

These makes WhatsApp a GOOD channel for advertisement and spams. Just purchase a charge card, add a bunch of numbers sequentially, send the messages out then dispose the card. You have no way to escape from these spams and it is useless to block these sender as they are using charge card and will only use once.

Why WhatsApp cannot introduce some measures on the spam controls? Why doesn't WhatsApp give us a way to accept sender before they can send a message to us?

There is a simple way that WhatsApp can help us, just give us two options:
- ONLY ACCEPT MESSAGES FROM MY CONTACT LIST
- ONLY JOIN A GROUP WITH MY EXPLICIT ACCEPTANCE

If users like me who don't like unsolicited messages, just enabled these options. For others, they may disable these options and behaved as before.


What's your opinion?




2015/05/20

How to set XE8 FD Explorer ini file Setting location



In XE8, you can find that the ini file setting location has been set as following (you can find this in the FireDAC Explorer):

Connection definition file = C:\Windows\FDConnectionDefs.ini and 
Driver configuration file = C:\Windows\FDDrivers.ini

The problem is C:\Windows usually not allow for file write and that cause a problem, I CANNOT create any connection definitions.

These settings are readonly, though there is a checkbox for you to set default.

The only way that I can find to modify these location is by REGEDIT.

You can find the settings in HKEY_CURRENT_USER\Software\Embarcadero\FireDAC. Just modify the value for ConnectionDefFile and DriverFile accordingly and you will be able to save the settings.


2015/04/29

Embarcadero seems targeting linux platform

It seems Embarcadero beginning to build toolschain to target linux platform. 





 [ComponentPlatformsAttribute(
    pidWin32
    or pidWin64
    or pidOSX32
    or pidiOSSimulator
    or pidAndroid
    or pidLinux32    or pidiOSDevice
    or pidiOSDevice32
    or pidLinux64    or pidWinNX32
    or pidWinIoT32
    or pidiOSDevice64
    )]
That's great but if RAD studio can be cross-platform itself, it would definitely a good news.

#embarcadero #RAD #linux #crossplatform

2015/04/25

Embarcadero RAD XE8 support SQLite encryption on iOS but not OSX

After a quick test, I found that XE8 support SQLite with encryption on iOS, too. However, OSX seems not supported as I got runtime error when running on OSX.

#embarcadero #delphi #xe8 #sqlite #encryption #ios

Embarcadero RAD XE8 support sqlite encryption on android

Woo, cool. Embarcadero RAD XE8 finally support sqlite encryption on Android platform (originally only support Windows Platform. Not sure with MAC, iOS or Linux as I only test Windows and Android Platform). That's great news as people are now more concern on their data.

#Delphi  #XE8 #SQLite #Encryption

2015/04/17

Embarcadero RAD XE8 Testing

Just have a chance testing with XE8. It has many improvements that make me to try it again for cross-platform development.

The most notable changes that inspire me much are:
  • All supported platforms have TWebBrowser component. In the past, I always need to build to the device to check for Web Browser related stuff, which is very time consuming. With TWebBrowser supports on Windows platform let me have a quick test on the app before deployment.
  • FMX version of TImageList control. Though it is quite heavy weight but it is a very convenience components to add all images to the application
  • 64bit iOS support (Apple requirement :( ). I love Qt, but the progress on this is a bit ...
  • Box2D Physic Engine, seems interesting though I'm not developing games
  • Native HTTP/HTTPS client support, no more openssl dependent. This is great as I have no need to compile openssl for different platforms
  • Static SQLite library for supported platform. It seems to be able to use the OTFE database but I need to further test with
One thing to note. If you want to try compiling the RESTDebugger, you will probably failed. It seems the team has tried to refactor the code but the resultant file is missing.

If you want to compile RESTDebugger by yourself, just save below code as "uRESTDebuggerResStrs.pas" in the same folder of RESTDebugger source folder will be sufficient. (NB. I just copy the relevant section from XE7 code plus some new stuff with my own wording introduced in XE8).

unit uRESTDebuggerResStrs;

interface

resourcestring
  RSAddCustomParameter = 'Add Custom Parameter';
  RSAddParameter = 'Add Parameter';
  RSBytesOfDataReturnedAndTiming = '%d : %s - %d bytes of data returned. Timing: Pre: %dms - Exec: %dms - Post: %dms - Total: %dms';
  RSCannotProceedWithoutRequest = 'Cannot proceed without request.';
  RSComponentsCopied = 'The following components have been copied to the clipboard: %s';
  RSConfirmClearRecentRequests = 'Are you sure that you want to clear list of the most recent requests?';
  RSConfirmDeleteCustomParameter = 'Are you sure you want to delete the custom parameter?';
  RSContentIsNotJSON = 'Content is not JSON';
  RSContentIsValidJSON = 'Content is valid JSON';
  RSEditCustomParameter = 'Edit Custom Parameter';
  RSEditParameter = 'Edit Parameter';
  RSInvalidRootElement = 'Invalid root element';
  RSNoCustomParameterSelected = 'No custom parameter selected.';
  RSProvideAuthCode = 'Authenication Code';
  RSProvideAuthEndPoint = 'Authenication End Point';
  RSProvideClientID = 'Client Id';
  RSProvideClientIDAndClientSecret = 'Client Id and Client Secret';
  RSProvideTokenEndPoint = 'Token End Point';
  RSProxyServerDisabled = 'Proxy-server disabled';
  RSProxyServerEnabled  = 'Proxy-server enabled: ';
  RSRootElementAppliesToJSON = 'Root Element, "%s" not applied.  Root Element is only applied to JSON content.  Content is not JSON.';
  RSUnableToValidateCertifcate = 'Unable to validate certificate.';

implementation

end.

 
#delphi #XE8 #Embarcadero