Java: String Equality (Common Mistake) - enrii.blog
JAVA strings compare reference for myself:
However, to be safe, most of the time, programmers should use “.equals” rather than “==” to avoid unexpected outcome. It simply because “.equals” will compare 2 strings character by character to determine equality while “==” checks whether 2 string objects are identical. Try to do this experiment and you will understand:
Writing Query Results to a File in MySQL | Matt Woodward’s Blog
Just a post for future reference:
Writing Query Results to a File in MySQL
Blogging this mostly for my own reference, but I had to write query results to a file in MySQL today and hadn’t ever had to do that before. Luckily it’s darn simple. The following will write out a CSV with field data enclosed with quotation marks (which is important if the data itself may contain a comma).
SELECT whatever FROM whereever
INTO OUTFILE ‘/path/to/file.csv’
FIELDS TERMINATED BY ‘,’
ENCLOSED BY ‘”‘
LINES TERMINATED BY ‘\n’You can then open that up in your favorite spreadsheet program quite easily
[From Writing Query Results to a File in MySQL | Matt Woodward’s Blog]
EFuel100, Earth’s First Home Ethanol System, a Product of E-Fuel Corporation
Great new product highlighted on CNBC this morning. Make your own ethanol! At 7000 dollars with a gov’t rebate this isactually pretty good if you drive big flex fuel suvs and trucks. The estimate it’s about a dollar a gallon of ethanol-better than4 dollars a gallon.
[From EFuel100, Earth’s First Home Ethanol System, a Product of E-Fuel Corporation]
Lumeta Makes Peel-and-Stick Solar Panel Installations a Breeze : TreeHugger
This is just too cool. Peel and stick solar panels. You lose the optimal angle to the sun but still from a finance point it reduces the cost of installation labor. So if it can get people to deploy them the 95 % of solar power is better than 0 percent.
[From Lumeta Makes Peel-and-Stick Solar Panel Installations a Breeze : TreeHugger]
Add to that companies like Citizenre building a leasing business model for residential home owners and we are starting to see real solutions to the old barriers.
[From The Citizenrē Corporation | Bringing Solar Power to Your Home]


