Posts

Showing posts with the label Programming

Completed All Python Tutorials

https://www.w3schools.com/python/default.asp I covered all the modules, have a good idea of what Python can do, the machine learning part too confusing for me so I just quickly go through. The Python MySQL is straightforward, just like plain old JDBC connection in Java. The Python MongoDB is quite straightforward, only difference is that MongoDB is a NoSQL database, rather than tables and rows in tabular form they call it collections and documents that comes in a form similar to JSON. Today I be taking a good rest for the 3 interviews tomorrow, after that maybe starting reading up on React, it's another popular thing that keeps popping up.

Finished Django Tutorial

https://www.w3schools.com/django/index.php "Django is a back-end server side web framework. Django is free, open source and written in Python. Django makes it easier to build web pages using Python." Django reminds me of JSP, JSTL and JPA, but more simpler to use and get it running, no wonder Python is so popular, I'm starting to like Python.

Finished SciPy Tutorial

Image
SciPy is Scientific Python, no idea what I am doing, got 72% for the quiz, most of it is hantam haha, not sure if I will be using this anytime soon, but good to know anyway.

Finished Pandas Tutorial

Image
Finally finished the Pandas tutorial and got a 92% for the quiz. This Pandas library is very simple and powerful for reading and analysing data files, can also clean and manipulate data files, also can use the Matplotlib library to plot data files. I think this will come in handy one day, now I can start to see why Python is so popular.

Finished NumPy Tutorial

Image
Just finished the NumPy tutorial and got an 84% for the quiz. Not bad. By the way NumPy means Numerical Python, it is one of the many Python libraries.

My Java Still Not Bad

Image
https://marrythaigirlsingapore.blogspot.com/2022/06/hmm-binance-still-hiring.html Yesterday was talking about the Java position at Binance, so today I went to refresh my Java knowledge, went through the whole Java tutorial at W3Schools . The tutorial is very solid, simple and straight to the point, should be very easy to follow even for beginners, I wish I had this tutorial when I started learning Java. I did pretty well in the quiz lol, actually the quiz is very easy, go try and you will know. Reminds me of when I started learning Java back in 2004, that time I borrowed books from library, also learn from the Sun Microsystems Java Trails website, very confusing when I started, it was over the years working on many Java projects that I slowly understand the concepts, mainly by reading other people's code and practising. I started with Java 1.4, today the Java roadmap is up to 21, Java is always evolving, never-ending learning haha.

Finished Learning Lambda Expressions

https://www.javatpoint.com/java-lambda-expressions Found this short and simple tutorial on Lambda Expressions, have hands-on practice too, once I run through every example, as in type through all the code, now I have a much better idea of how it works in Java. I think it really helps to keep code short and sweet especially when sorting stuff, this one "Java Lambda Expression Example: Comparator". Next, Python.

Finished CryptoZombies Tutorial

https://marrythaigirlsingapore.blogspot.com/2022/06/learning-solidity-cryptozombies.html After completing the tutorials, I now have a much better understanding on how Ethereum works. I find the first 7 modules very good, the rest of the modules are a bit buggy so I ran through the rest quickly just for the concepts. Next I want to learn Lambda Expressions and Python. I came across Lambda Expressions but rarely use it because I don't understand the syntax. As for Python, I know it is an old interpreted language that saw a sudden revival thanks to big data, I think it was kind of dead for a long time until recent years, really interested to know why it is so popular now. I'm more of a Java guy, been involved in Java projects for a long time, it's definitely time for something different, I don't want to fall into the "you can't teach an old dog new tricks" category, always keep learning, don't stop learning.

Learning Solidity - CryptoZombies

Image
These few days I have been learning Solidity through this interesting CryptoZombies website. It is a very good place to get started on Solidity because it starts from the basics and there is hands-on to build a mini smart contract project from scratch. I think by the time I finish the whole, I might just become a little expert in smart contract haha. https://cryptozombies.io

Automatically Reload Properties File in Spring Framework

Image
Can't believe I spent so many days trying to get this to work, in the end it is actually so simple lol, now there is no need to restart my server whenever the properties file change, spring will detect and reload it on the fly. I created a demo project in hope that it will help someone, there really is no need to spend days looking for such a simple answer ;) My Project Structure demo.jsp <h1>${hostname}</h1> <h1>${driver}</h1> <h1>${reading}</h1> <h1>${writing}</h1> database.properties hostname=localhost driver=oracle.jdbc.OracleDriver language.properties reading=english,chinese,malay writing=english,malay web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns="http://java.sun.com/xml/ns/javaee"  xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"  xsi:schemaLocation="htt

Setting Up J2EE Development Environment Using Eclipse 3.5.2 and Weblogic 10.3.3

Image
Just to share with everyone how I setup my development environment at work, I'm using Windows 7 and you will need to download 3 softwares: Java SE Development Kit 6u24  - i586 Eclipse Galileo SR2 Packages (v 3.5.2)  - Windows 32-bit WebLogic Server 10.3.3 Step 1 you download and install the JDK, it's very straightforward, just double click to run and install with default settings. JDK Installed to My C Drive Step 2 you download Eclipse and extract to whichever folder you like, I put it in my C Drive. Eclipse in My C Drive Too Step 3 you extract WebLogic to whichever place you like, for me is also C drive. WebLogic also in My C Drive Now go to your WebLogic directory, edit configure.cmd, add MW_HOME and JAVA_HOME, MW_HOME is the place where you extracted the WebLogic, JAVA_HOME is the place where you installed the JDK. Add MW_HOME and JAVA_HOME Open up a command prompt and cd to the location of the weblogic directory, for me is C

Today I Played with Spring Framework

Currently I have a tool written in JSP, all the java code is running inside the JSP, it's very messy and not easy to maintain, well, I had to do it this way because it's piggyback onto an existing application, I don't want to touch anything existing, and doing it this way is very easy to deploy. So anyway, I was thinking of doing it in a more standard way using a framework, so today I tried struts and spring, I find spring easier to implement, just need to download the spring libraries , and apache commons logging , dump it into WEB-INF\lib, configure web.xml for the servlet, create a controller class, create a JSP, create a servlet xml, that's it, so easy haha. If you are interested you can check out this tutorial , it will get you started real quick. I think I might be able to convert my tool into spring by this week. Oh by the way I'm using weblogic server 10.3.3, I run it from my Eclipse, so after I make the change, I just deploy and run locally, very easy t

Popular posts from this blog

Long-Term Visit Pass - Plus (LTVP-PLUS)

Commission Calculator for DBS Vickers SG Stocks

How to Marry a Thai in Singapore