Web Dev Matters and Me

Web Development Matters - HTML, XML, C#, .NET, AJAX/Javascript(jQuery), CSS, XML-XSLT

ME - LIFE,Philippines, Tokyo, ECE, PhilNITS/JITSE,情報処理, 日本語

things about Philippines, gaming, C# development and web development, how to make money in stock trading

Web Dev Matters and Me

a sudden change of heart?

Whew, after a super-busy week I'm am now able to write some post here. All the dev task at hand with almost impossible requirements gets done, thanks to the power of coffee, I'm able to hack myself and complete it.

Still related to the previous task I've done, the client side solution I provided was completely dumped, so I have to find another solution, which leaves me either to manually alter all the html pages and add some identifier there, like the rch group of attributes (ROFL), or to parse it dynamically thru code, so it will be the time when it runs on the nightly process..

I won't like to manually alter the pages, not only that it will take some time, but it is also not practical to do... Everytime a new file comes in, you have to alter it manually. I'm not a zombie that caters to all their request too, and just say "...yes, I will do it...".. we're living in a world of interactions.

So, what are my options? read each line, and put up a good regex there? might be.. but I would prefer if I can just select those things, just like I did in the jQuery plugin I developed.. Fortunately, there are some talks about some HTMLAgility pack... Took some reading into it, selectors worked wonders, but when I alter the code, duh.... it doesn't work... (-_-;)... that's why it is an unfinished project... 

I almost gave up.. I've drank coffee as if, it is my daily water intake.. and then, figured out to just use the pack's selectors and perform the old school replace (though in code), and have it overwrite the file.. Fortunately, it works.. but just a few minutes of deployment, I was asked if I can do something about the boxes? 

Boxes!????  I checked the deployed app to see small boxes that doesn't appear like boxes in IE Dev tool or in firebug... Aha, so it is the encoding!  somewhere in the html, there's a meta that declares windows-1250, have altered it, still no good.. so maybe it is on the file format itself... added few lines, and things got better.  Until the BA saw a page and asked me, can we trim the first column a little bit, puhleassee? 

Uh oh, sounds like trouble.... I injected another set of stylesheets , but to no avail.. i even traced almost each element by border... didn't helped me.. Then, I checked it (the file), only to see a malformed part that closes the parent tag prematurely... this week was really stressful, especially when someone talks to you, claims to be listening but actually hearing my words in on left-ear, out on right-ear... 

so much for my web-dev life, and almost none for my trading life.... oh, actually I've added more OV stocks..  PNX was a shocker... after closing the day at 14.62, it opened at 9.74, that's almost 30% decline. This is the aftermath of 50% stocks dividend. I still have my PNX stocks at hand, and probably leave it like that. 

I also got myself some Ionic's Inc (ION) stocks. They declared a 100% stock dividend. I think it might goes like what happened to PNX, but still I won't be needing that money at the moment, so I'll just leave it there and forget it. ION is on semi-conductor industry btw.

I also got myself some ATS( Aboitiz Transport System Corp.) 2GO ( 2GO GROUP, INC) stocks. I have a feeling that some broker house is manipulating it though *cough* COL *cough* (whoops! *caveat*). 

I might add some OV again, given on it's current price and the GALOC achievements, this would most likely go up in coming months.

I might have my trench-coat, suits dry-cleaned soon, buy some casual clothing, and prepare a list of to bring back. I hope my teikiken is still active after 2 years.

Hot summer for Philippines in coming days

Lately, it was getting a bit hot from the cozy weather here in Philippines, and in almost everywhere people are enjoying their Magnum ice-cream, to the point that it is almost sold out in any groceries.

I don't have much trade these days as I'm busy working on a web application I've designed in a Model-View-Presenter (MVP) approach. I did a honest estimate there, but the budget was unfortunately trimmed by  23%, so I had to exert additional effort, although my body doesn't want it... (-_-;) (guess that's life for us sofware developers). 

I had to make this web app, a screen that can search and display results, a screen to view detailed information about an item and allows a user to edit an item, and an admin screen to perform maintenance task.

Using MVP pattern helped me simplify the development, and also enabled me to boost my confidence on it, since I can perform Unit Testing even the UI part. Development is pretty easy too, define the Views, Models and couple them in the Presenter. I only took some time on the asp.net related part, although not that hard. I also isolated the data access and the service layer, just in case it will be deployed as some application in the future. I also took time to make custom UI plugins. good thing there's jQuery and some creative imagination.

For my trading side of life, OV dropped from last 0.057 to 0.048 . That's 15.78% and I'm sure many people got shocked by these movements. I also feel a bit of fear so I sold and re-entered some position, only to find out that I entered with less stocks I originally owned, although I gained money, but they can't add up to positions anymore. MACQ bought a lot and made the stock price at 0.054. I think the operations at GALOC site will resume pretty soon. As of the writing, I have most of my positions here (millions of shares). I'm able to add some at 0.05-0.052, it should have been at 0.048-0.049, but since COL didn't update on time, it was 0.052 at the time my balance is updated, that's life for me. :(

 MAKE (the merged Maybank- the malaysian bank & ATR Kim Eng -the foreign broker) also rallied, at 6/sh I'am already keen on buying it. I bought a board lot just to test. it went 11-12, then shake everyone to 9, resumed to 12 and now 26. I guess ATR Kim doesn't like CitisecOnline users (COL boys as termed by forum members) in their boat. I'm still very bullish on this, probably can hit 30-40 /sh this week, now that PSEI stays at 5k.

PNX is also moving slowly up. On March 23, the 50% dividend will be granted. There might be a lot of traders for dividend play here, but I hope it doesn't drop the price too much.

As for PNB and the merger story. Just a day before March 6 (for the amended stockholders meeting), a news was spread that the merger should not be allowed to proceed, since it will hurt PH economy (duh)... This made PNB shares drop from 70+ to 65+ per share, then after few days, it went back to 70 and closed at 72.5. I hope they would penalize those people who put up these stories. I'm sure there are many people who are bullish on PNB, but lose their money on the process.

The family feud related stock (LMG), hits 2+ and made a graceful bounce.

JFC just jumped again from 101-120, then 119.. If I bought these from 89 last january, it was already around 25% gain, and this is a blue-chip. I might consider a cost-averaging plan on this one, if it would consolidate a little. If one will just look at how bullish JFC was, even on the times of recession, JFC is a low-risk, high-reward investment.

I think stocks will break new records of high in the coming days :)

Patterns??? In stocks and work???

I've got lots of sideways price action in most of my portfolio now, but most of them do equally have good things in them.And what do they have in common? Company mergers. 

PNB's merger might not be a news anymore. On March 6, there would be a stockholders meeting to finalize the merger. PGOLD on the other hand has a study of merging with sister company S&R (for those who are not aware of S&R, it is a shop much like of Macro). RLC also has a merger with Robinson's INN Inc and Robinsons Realty and Management Corporation (both are owned 100% by Robinsons).

I'm in a bullish look with OV now, and given the opportunity, I would shift most of my money back to OV again. Actually, I was on alert last Friday due to some hearsays about institutional investors hoping to OV for dividend play. I didn't see the price decline last friday, which was also the Ex-Date for OV. This is a good sign that everyone is looking for a long time investments in OV.

As for PNX, still no news about the 50% stock dividend. UBP on the other hand announced the 3PHP/sh dividend on March 8. Also, MER got into my eyes when they announced a 4.1PHP/sh dividend and 51% equity participation in rockwell land stocks, ex-date of both on March 20. My personal Risk/Reward assessment is that, MER is a low-risk investment with pretty good rewards for medium/long term investment.

On my development life, a friend ask me about the common OOP design patterns. I'm able to share a custom pattern I've used for quite some time and he was amazed about it. I told him it was really simple and my friend seems to be enthusiastic to learn more about it, so I asked him if he would be interested to join me in my personal dev tasks. Maybe he will find out that I'm pushing more effort on my dev tasks than what I'm required to do in work. I hope he can catch up with all those design principles and help himself in future dev works.

One of the patterns I suggested to him is the MVP pattern. Using this pattern allows a flexible and maintainable solution. You can design the Model, lace it with business rules or put it on different solution as desired, create custom views which are not dependent to any specific project type and create the Presenter that will couple all your Views to Model, vv. Abstraction can be applied as much as possible.

FB Connect