References:
Sunday, October 8, 2017
scala.MatchError: java.lang.StackOverflowError
If you hit scala.MatchError: java.lang.StackOverflowError:
Add SBT_OPTS=-Xss4m into Environment Variables would solve the issue.
Wednesday, October 4, 2017
Three (3) Mindsets For Exponential Growth
65% of startups failed due to founder and team issues.
- Fear / Stress
- Burnout / Depression
- Time Starvation / Overwhelm
- Co-Founder Conflict
- Team Communication / Trust
There wrong mindsets and cultures.
- Unhealthy relationship with anxiety (Control Junk)
- Identification with the company (I am My Company, I am Game-Changer)
- Self beat up (Take over Responsible of Failure)

Moving wrong mindsets to right mindsets help startup grows.
3 healthy mindsets and cultures for exponential growth:
- Selfless Service (How am I being asked to serve today?)
- Bigger than Me (I am simply a vessel to be of service. Don't mix your personality with your company. You can hire any CEO to run a company. Company Success x Your Success and Company Failures x Your Failures. It is just a separate component to learn.)
- Growth Mindset (Don't think failure is the end of the world. It's all about learning, growing, embracing challenger)
Book - Workplace by design
Space is an organization's second most valuable asset. Yet little attention is paid to how it supports the new ways in which today's organizations operate---teamwork, flattened hierarchies, telecommuting, collaborating across functions. Workplace by Design shows CEOs and managers alike how to put aside and rethink conventional, awkward notions of space utilization based on hierarchy and status--notions that pit people against each other in turf wars, tear apart teams, and tie up company cash. Using illustrative examples from Digital Equipment Corporation, Steelcase, and others, the authors show how team environments, non-territorial offices and other strategies can support business objectives, energize employees, and produce a more competitive organization.
A book in my bucket.
Wednesday, September 27, 2017
Create Java Project running on JBoss using Eclipse
Pre-requisition:
How to start JBoss Server using Eclipse
Create Java Project running on JBoss using Eclipse:
How to start JBoss Server using Eclipse
Create Java Project running on JBoss using Eclipse:
- Start Eclipse, and click “File > New > Other…”.
- Click “File > New > Other…”.
- Select “Web > Dynamic Web Project”, and click “Next”.
-
Enter “HelloWorld” as Project Name, and click “Finish”.
- Create “index.html” in WebContent folder.
-
Edit index.html and fill up.<p>HelloWorld!!!</p>.
- Right click index.html, select “Run As > 1 Run on Server” to preview.
- You can preview using this URL, http://localhost:8080/HelloWorld/index.html.
How to start JBoss Server using Eclipse
Software:
How to start JBoss Server using command line.
http://hiplab.mc.vanderbilt.edu/projects/soempi/jboss_startstop.html
- JBoss application server 5.1
https://sourceforge.net/projects/jboss/files/JBoss/JBoss-5.1.0.GA/ - Eclipse Indigo
http://www.eclipse.org/downloads/packages/release/Indigo/SR2 - JDK 6
http://www.oracle.com/technetwork/java/javase/downloads/jdk6-downloads-1637591.html
- Extract to D:\Program Files\jboss-5.1.0.GA
- Start Eclipse.
3. Click on “File > New > Other …”.
-
Select “Server > Server”, and click “Next”.
-
Select “JBoss > JBoss v5.0”, and click “Next”.
-
Fill up below information and click “Finish”.
-
Open “Server” view. Right click and select “Start”.
-
Console will show server starting.
-
Browse http://localhost:8080/, and you see JBoss Server started.
How to start JBoss Server using command line.
http://hiplab.mc.vanderbilt.edu/projects/soempi/jboss_startstop.html
Tuesday, July 4, 2017
24 Principles Running a Small Startup
- Properly advertise yourself. i.e.: Telling people what you do on your front page.
- Do not make your website looks corporate. People like to work with people, playful people, definitely not corporate. Probably put your happy photo at your website.
- Get money up front especially running consultancy firm. i.e.: Someone asks for a project and you quote them $15 per hour with an estimated 300 hours = $34,500. If they pay upfront, the rate is cheaper which is $100 x 300 hours = $30,000. Saving $4,500! This kinds of discount attract people to pay upfront. Another tip on running consultancy is always transparent by sharing timesheet with you customer.
- Always try to make a friend. i.e.: Small talk like where you from? Do you have any kids?
- Create core value for your team. i.e.: Practice Transparency, Pursue Excellence, Foster Education, Create Fun.
- Be trustworthy, honest and humble.
- All business is based on systems.
- Hire a part-time project manager by delegate scheduling, reporting, meeting notes, clients arrangement to him.
- Hang out outside of work with your employee. i.e.: dinner together, having fun activities like team building.
- Hire people who fit your core values in point 5.
- Empower people. Don't try to manage your friend, as long as customer expectation meet is okay.
- Surround yourself with people you can hide or contractor.
- Join a support group. i.e.: business networking group or CEO group.
- Create a tradition. i.e.: whisky Wednesday, every Friday go lunch together.
- Don't be afraid to apologize to your customers.
- It is okay to lose money on a transaction, just let your customer know about it. i.e.: Sending a client email. I just want to let you know that this task we estimate 10 hours, but it took us 20 hours. We told you only 10 hours, so we are going to bill you 10 hours. Sometimes, the customer just asks to the bill. Probably you can offer to split the cost.
- Seriously follow up. i.e.: Sending a short email to ask how thing going and anything can you help.
- Communicate with your customer more than your competitor. i.e.: 5 minutes on the new feature from your developer built.
- You can, but doesn't mean you should do it. Constantly look for things you can delegate.
- Don't be afraid to take on more than you can handle.
- When a customer comes to you with a different job, you don't say - This is not what we do, we can't help you! Probably you can refer to other company and get reference fee.
- Give more compliments. No body work well with criticize. This is a way you motivate people.
- Take a calculated risk. If your business is not moving, you might do something creative.
- Giving equity to co-founder or employee. A good book to read is "Slicing Pie" where it teach you calculating a theoretical value of your company, what do to when a founder leaves a company, how to handle equity when you have fire someone.
Create Scala Project using SBT and Jar using sbt-assembly
- Download and install SBT - http://www.scala-sbt.org/download.html
- Create SBT Scala Project by running this command - sbt new sbt/scala-seed.g8
- When prompted for the project name, type
HelloWorld. This will create a new project under a directory named HelloWorld.
- Run
the sample application by access HelloWorld folder, type sbt, compile and run.
- Add sbt-assembly as a dependency in project/assembly.sbt
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5") - Type assembly.
- Now you'll have an awesome new assembly task which will compile your project, run your tests, and then pack your class files and all your dependencies into a single JAR file: target/scala_X.X.X/projectname-assembly-X.X.X.jar.
- Type java -jar target/scala_X.X.X/projectname-assembly-X.X.X.jar to run the program.
Subscribe to:
Posts (Atom)