Interview Practice 25 - Longest Consecutive Digits

Question Given a function prototype: int continumax(char *output_string,char *input_string). Implement it to find the longest consecutive digits. This function must return the length of the longest digits. The found longest digits should be written to the memory location that output_string is pointing. For example, if…

InstaMusic Version 1.0.1

Version 1.0.1 Changelog Fixed music pausing bug Fixed bug to open now playing with no song Fixed bug such that music should stop after playing the last song Fixed minor bug that now playing screen will be opened when notification is clicked Fixed bug that the app crashed…

Convert character encoding in PHP

Usually while we extract information from other websites, character encoding might not correct. For example, j-jis.com is encoded with Shift-JIS. Therefore if your MySQL charset is UTF-8, it causes incorrect information. To handle the changing of character encoding, we can use iconv in PHP. [sourcecode language=”php”] $url = "…

Handle unwanted character changes in Json for unicodes encoding in PHP

Json has been an efficient way to handle information and message exchanges in web programming. For example, I usually use PHP to connect MySQL and retrieve information, then display as Json. So a webpage can “AJAX” the displayed Json to create a dynamic view on itself. However, while the information…

Mail Checker: Nicholas Workshop

[![](https://i0.wp.com/nicholasworkshop.com/wp-content/uploads/2016/10/0752a-icon128.png?w=1170)](https://chrome.google.com/extensions/detail/bbpkoieffbjgocamogehnbghcpbpkcco)**[Mail Checker: Nicholas Workshop](https://chrome.google.com/extensions/detail/bbpkoieffbjgocamogehnbghcpbpkcco)**Thank you if you are using my extension. I am happy that so many people like my program.…

Run external programs in Ruby

It is easy, the syntax is: [sourcecode language=”ruby”]system(FilePath)[/sourcecode] You should use slash ( ) to notify special characters. Like this: [sourcecode language=”ruby”]system("C:Program Filesfile.exe")[/sourcecode]…