tag:blogger.com,1999:blog-3843446549683342072024-03-13T10:06:24.663+08:00AingelogueAingeloguehttp://www.blogger.com/profile/11417986672865395302noreply@blogger.comBlogger46125tag:blogger.com,1999:blog-384344654968334207.post-24118353146937392252023-10-22T02:31:00.003+08:002023-10-22T02:31:45.629+08:00Decision Making: Make One<p> Decision making "is simply the process of making a CHOICE".</p><p>Sounds easy right? But as you may have already experienced, the WHAT, WHICH, WHY, HOW, [or even WHERE, WHEN] of the CHOICE may as well be decision-making processes in themselves.</p><p>So, you will tend to agree with me when I say that decision making is a SERIES of making choices.</p><p>Wait, wouldn't that be a cyclical loop? Probably and depending on the situation, that is the state where we sometimes are unable to make a decision.</p><p>Top results from a quick search will tell you that there are <a href="https://www.lucidchart.com/blog/decision-making-process-steps" target="_blank">7 Steps of Decision Making</a> and there are <a href="https://www.indeed.com/career-advice/career-development/decision-making-strategies" target="_blank">12 Strategies</a> you can use. Many more in the search results will lead you into details of how to employ the tested ways and means of how to go about the decision-making process.</p><p>In the <a href="https://www.lucidchart.com/blog/decision-making-process-steps" target="_blank">7 Steps of Decision Making</a>, evaluation of the decision can entirely be a decision-making process: decide whether the action taken is the best alternative for the decision. Each of the steps can easily become complex.</p><p>I offer a SIMPLE METHOD:</p><p><b>Step 1: State the decision in a question</b></p><p>The question should be:<br /></p><ol style="text-align: left;"><li>answerable by YES or NO</li><li>stated in the positive form by which the answer YES will favor the decision</li></ol><div><b>Step 2: Decide between YES and NO</b>.</div><div><br /></div><div>IF the answer is NO, then you're DONE with the process. No need to do anything. </div><div>IF the answer is YES, you can continue to the next step.</div><div><br /></div><div>If you are unable to answer or if you do not believe that you can answer the question, revise the question and refer back to Step 1.</div><div><br /></div><div><b>Step 3: Ask: "Will you able to do anything favoring this decision?" and back to Step 2.</b></div><div><b><br /></b></div><div>Proceed to next step if you already answered yes to this question.</div><div><br /></div><div><b>Step 4: Just DO</b></div><div><br /></div><div>If you reached this part of the process, congratulations! You made a decision and you should be ready to do something about it.</div><span><a name='more'></a></span><div><br /></div><div>Framing the decision process in the basic 2 options will allow us, to do both basic and extreme choices. In some cases the decision that we make cannot be stated in a question answerable by yes or no. However, as it becomes complex, there are more chances that we cannot make the decision. </div><div><br /></div><div>Some of us when deciding between 2 choices, we choose the third one: NOT DECIDING. Ironically, in many instances this is the best option.</div><div><br /></div><div>At least, make a decision: DECIDE or NOT DECIDE!</div><p></p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-51220967992313310532022-04-21T11:06:00.001+08:002022-04-21T11:08:15.540+08:00Watching videos faster? YES you can!<p> </p><p>It's been a while that I have been trying to learn how to watch videos faster. I was told about reading faster and I think I can read faster that I used to.</p><p>When I started adjusting the speed of videos that I watch, I was cautioned that I may not be able to enjoy watching normal-speed ones. My reasoning? I'd like to keep my brain busy and keep it awake while keeping the momentum of being interested. Further, I can control the depth and versions of imaginations, at which at times, takes away from the video itself. In short, I'd like to absorb the content faster. The only way is to be faster.</p><p>Curious? Take a look at readings and opinions about watching faster by starting here: https://www.google.com/search?q=watching+faster</p><p>Don't you think you should?</p><p>Even faster though is to try the following:</p><p>1. Open a video (or on Youtube) you want and play it at normal speed as you used to.</p><p>2. After 2 minutes, adjust it to 1.25x and try to keep up with understanding the content. </p><p>3. After 3 or 5 minutes or when you are comfortable, adjust to faster speeds</p><p>The rule is: only adjust to faster speed when you are able to comprehend/understand the content. Start with your normal speed and adjust incrementally while still comprehending the content. This, like all skills, takes practice.</p><p>Good luck!</p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-81219137507673665122022-04-21T10:48:00.001+08:002022-04-21T10:48:02.081+08:00Infrastructure as Code (IaC) Session 1: Basics<p> What is Infrastructure as Code?</p><p><br /></p><p>Prepare Workspace</p><p style="text-align: left;"></p><p style="text-align: left;"></p><p style="text-align: left;"></p><ol style="text-align: left;"><li>Install</li><ol><li>Terraform: (https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/azure-get-started)</li><li>Azure CLI: open PowerShell as administrator<br /><span style="font-family: courier;">$ Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi</span></li><li>Visual Studio Code</li><ol><li>Terraform by HashiCorp</li><li>Azure Terraform by Microsoft</li><li>Azure Cloudshell (Powershell)</li><li>Azure CLI tools</li></ol></ol><li>Activate Azure Account</li></ol>Create or open a project folder. Open the folder in VSCode. Create a file named main.tf.<div><div>Open a powershell terminal and issue:<br /></div></div><blockquote style="border: none; margin: 0px 0px 0px 40px; padding: 0px;"><div><div style="text-align: left;"><span style="font-family: courier;">$ az login</span></div></div></blockquote><div><div>Paste the following to the main.tf file:</div><div><div style="background-color: #1e1e1e; color: #d4d4d4; font-family: Consolas, "Courier New", monospace; font-size: 14px; line-height: 19px; white-space: pre;"><div><span style="color: #4ec9b0;">provider</span> <span style="color: #ce9178;">"azurerm"</span> {</div><div> <span style="color: #c8c8c8;">features</span> {}</div><div>}</div><br /><div><span style="color: #4ec9b0;">resource</span> <span style="color: #ce9178;">"azurerm_resource_group"</span> <span style="color: #ce9178;">"aingelrg1"</span> {</div><div> <span style="color: #9cdcfe;">name </span>=<span style="color: #9cdcfe;"> </span><span style="color: #ce9178;">"Session1"</span></div><div> <span style="color: #9cdcfe;">location </span>=<span style="color: #9cdcfe;"> </span><span style="color: #ce9178;">"southeastasia"</span></div><div>}</div></div><div><br /></div><div>On the terminal, follow through each of the commands</div><div><span style="font-family: courier;"><b>$ terraform init</b></span></div><div>Initialize terraform and check dependencies</div><div><br /></div><div><span style="font-family: courier;"><b>$ terraform plan</b></span></div><div>Simulate what needs to happen in Azure</div><div><br /></div><div><span style="font-family: courier;"><b>$ terraform apply</b></span></div><div>Execute the instruction in Azure. You need to type "yes" to confirm the execution.</div><div><br /></div><div>$ terraform show</div><div><br /></div><div><span style="font-family: courier;"><b>$ terraform destroy</b></span></div><div>Delete from Azure</div><div><br /></div><div>You can checkout some samples at the following Git Repos:</div><div>https://github.com/hashicorp/terraform-provider-azurerm/tree/main/examples</div><div>https://github.com/aingelc12ell/jaira-terraform-azure/</div><div><br /></div><div><br /><p></p><p><br /></p></div></div></div>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-80697710181372946582021-03-31T08:22:00.004+08:002021-03-31T08:35:07.675+08:00The Programmer<p><span style="background-color: #fff2cc;">CCTO: https://www.youtube.com/watch?v=FuaQ1QhJOkc</span></p><p><span style="background-color: #fff2cc;"> It’s time to get serious about improving your programming skills. Let’s do it!</span></p><p><b style="background-color: #fff2cc;">1. Remind yourself how much you have to learn</b></p><p><span style="background-color: #fff2cc;">The first step in learning something is recognizing that you don’t know it. That sounds obvious, but experienced programmers remember how long it took to overcome this personal assumption.</span></p><p><b style="background-color: #fff2cc;">2. Stop trying to prove yourself right</b></p><p><span style="background-color: #fff2cc;">Novice software developers (and too many experienced ones) look at their code to admire its wonderfulness. They write tests to prove that their code works instead of trying to make it fail. Truly great programmers actively look for where they’re wrong—because they know that eventually, users will find the defects they missed.</span></p><p><b style="background-color: #fff2cc;">3. “The code works” isn’t where you stop; it’s where you start</b></p><p><span style="background-color: #fff2cc;">Great programmers know that the first iteration is just the first iteration. It works— congratulations!—but you aren’t done. Now, make it better.</span></p><p><span style="background-color: #fff2cc;">Part of that process is defining what “better” means. Is it valuable to make it faster? Easier to document? More reusable? More reliable? The answer varies with each application, but the process doesn’t.</span></p><p><b style="background-color: #fff2cc;">4. Write it three times</b></p><p><span style="background-color: #fff2cc;">First, you write the software to prove to yourself (or a client) that the solution is possible.</span></p><p><span style="background-color: #fff2cc;">The second time, you make it work.</span></p><p><span style="background-color: #fff2cc;">The third time, you make it work right.</span></p><p><b style="background-color: #fff2cc;">5. Read code. Read lots of code</b></p><p><span style="background-color: #fff2cc;">When you read others’ code, you see how someone else solved a programming problem. But don’t treat it as literature; think of it as a lesson and a challenge. To get better, ask yourself:</span></p><p><b style="background-color: #fff2cc;">6. Write code, and not just as assignments</b></p><p><span style="background-color: #fff2cc;">Working on personal programming projects has many advantages. For one, it gives you a way to learn tools and technologies that aren’t available at your current job, but which make you more marketable for the next one. Whether you contribute to an open source project or take on pro-bono work for a local community organization, you’ll gain tech skills and self-confidence. (Plus, your personal projects demonstrate to would-be employers that you’re a self-starter who never stops learning.)</span></p><p><b style="background-color: #fff2cc;">7. Work one-on-one with other developers any way you can</b></p><p><span style="background-color: #fff2cc;">When you contribute to an open source project, pay attention to the feedback you get from users and from other developers. What commonalities do you see in their criticism?</span></p><p><span style="background-color: #fff2cc;">You might be lucky enough to find a personal mentor whom you can trust to guide you in everything from coding techniques to career decisions. Don’t waste these opportunities.</span></p><p><br /></p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com1tag:blogger.com,1999:blog-384344654968334207.post-55022457537155985672017-12-15T10:28:00.000+08:002017-12-15T10:28:00.408+08:00Value..."To be self-reflective is to explore the various external influences affecting consciousness.." <div>
<br /></div>
<div>
What do people value?</div>
<div>
How is the value of one person measured?</div>
<div>
How is your value perceived by others: those whom you value specially?</div>
<div>
<br /></div>
<div>
In perspective, "value" is subjective. It is defined by whoever sees it. The phrase: "The beauty is in the eyes of the beholder" illustrates the value -- which in this case is beauty.</div>
<div>
<br /></div>
<div>
To a person, our value can only be seen by the benefits we can show, offer, and promise. Personally, I had been subconsciously testing people how I am valued. Many of which really, can only be seen when the "benefits" are packaged to their "standard" -- their way of appreciation.</div>
<div>
<br /></div>
<div>
Each individual seeks some form of value to others -- hence the conscious self-reflection and aim for self-improvement. We try to please them by saying the kind words; showing grace and compassion; etc.; whenever we are prompted. We put ourselves out of our own comfort to understand, console, and, make our way for them -- sympathy and empathy.</div>
<div>
<br /></div>
<div>
However, such value can be short lived. Whatever shown can be forgotten, ignored, and can be seen negatively to the extreme. Any mistakes done along the way may outweigh whatever kindness, sympathy, understanding, and anything provided -- volunteered or grant to a request.</div>
<div>
<br /></div>
<div>
In love, the default is that you value the person -- that what love is. In loving the person, you see what is good and try to help out to overcome anything bad. Clearly, you both want to be valued -- both to see the value in each other: the promise of togetherness, understanding, and support. Initially, when in love, the value can be overrated. As time goes by, the value of each other, for each other, should increase in order to sustain love. If love is just the relationship, the value is put together in just one side of the value of the relationship. Love goes beyond the relationship and should endure so to make the relationship, the feeling, the view of value in each other.</div>
<div>
<br /></div>
<div>
To love is to give and aim to improve the value of each other. This can be achieved by knowing each other and consciously aim and work to improve each other -- compensate the failure of one, and uplift the success of the other. </div>
<div>
<br /></div>
<div>
Clearly, to value a person is to have a reason and purpose with the person. Time is the least valuable resource to a person with purpose. He can spare time to achieve a better perspective -- the achievement and the realization of the value of the goal. Take for instance a patient hunter for his price catch.</div>
<div>
<br /></div>
<div>
How should I value you? Understand my reason, and focus on the value of its purpose. Forget the means and ways, put the goal ahead of any trials.</div>
<div>
<br /></div>
<div>
See the value.</div>
Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-38250124008987127162017-03-18T12:01:00.005+08:002017-03-18T12:01:38.141+08:00Mistakes do not stop me<br />
I am very sure I'll be committing mistakes, it will not stop me.<br />
<br />
Mistakes are consequences of doing, they should not prevent anyone to move further. If you acknowledge a mistake before it happens, you will have the presence of mind to avoid it. If not, it's an accident.<br />
<br />
No matter, a mistake, as a result of an action, should also not be taken lightly. Be responsible by acknowledging it, internalize by knowing why and how it happened, and learn from it. Any repairs or actions related to it should be proactive moves such that you are committing to strive at least to avoid another in the future.<br />
<br />
Further, mistakes makes us human. Do not aim for it, try to avoid it, and just keep moving forward. There is no justice for mistakes than the lessons it offers after if it happens or not.<br />
<br />
Endure through mistakes and no mistakes will be greater than the success you will soon harvest.<br />
<br />
Persist and never cease to strive and be better.Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-49148038148174053122017-02-02T08:38:00.003+08:002017-02-02T08:38:25.645+08:00Measuring the performance of a software developerSometime last year, I was asked to evaluate and identify the best programmer from a number of graduating IT students. The projects have been preselected by the faculty members. The criteria for the selection is not specifically defined. They trusted me, being in software development for sometime, that I will be able to gauge who will be awarded of the contested award given to graduates of the Information Technology bachelor's degree.<br />
<br />
To provide me with some insights on how to go about the evaluation, I had to ask some of the faculty members who identified me to be the "judge". One of them presented that the best programmer should be the one who used a well-known development framework in their projects. Another argues that someone who developed their own framework is the better programmer -- having "invented" his own framework.<br />
<br />
Another faculty favors the programmer who had developed the most number and more complex system features will determine the best programmer. Another expounds to include the scope of the system -- the system solves a wide variety of problems.<br />
<br />
All the projects started at about the same time. Each project are developed by about two to five individuals. From each team, one stands out to be the project leader -- most often, the developer-lead of the team. The cohesiveness of the development efforts vary from each team with the complexity of the individualism among the members. Some instances, from among the team, only one is doing the programming, while the rest will do something else - financial support, documentation, etc.<br />
<br />
The determination of the best programmer ignores the collective effort of the team. Be it that the system is developed by one person or by the whole team, the selection dictates the completeness of the presented system. Technical expertise as a baseline criteria was also not considered.<br />
<br />
I pity those good developers, idealistic, all-knowing, but are unable to produce a near-complete product by the due date.<br />
<br />
In my selection, I had to consider, the development journey of the system by the developers concerned. The best programmer should be someone who delivered the finished product by applying the lessons learned in their earlier years. Having the best project, having used or developed their own framework, are factors in the selection. The measure of performance is the extent of effectively applying what was learned.Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-81835465172658505682017-01-17T11:31:00.000+08:002017-01-17T11:31:18.253+08:00A new web-interestWeb system development is one that I consider to be the major industry I belong.<br />
<br />
This means that I need to be able to setup, configure, and mostly develop systems that work on a browser from a web server. Open source is a major consideration in pursuing this "passion" and implementation. Everything should be achievable and done by my own hands and mind to be able to mention that I can support it.<br />
<br />
<a href="https://webrtc.org/">WebRTC</a> had been around for a while and only now that I grasp some interest in pursuing its features and benefits that it promises to provide.<br />
<br />
WebRTC allows peer-to-peer connection for audio, video, files, and/or simple data.<br />
<br />
It's high time to get a taste of how dirty and messy to achieve an implementation.Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-85830736818274316822017-01-16T19:53:00.002+08:002017-01-16T19:53:17.063+08:00Device Fingerprinting ChallengeA client requested to provide information about the visitors on a website I am working.<br />
<br />
The client's request includes the following:<br />
<br />
<ul>
<li>Add MAC address</li>
<li>Computer/device name</li>
<li>Local IP address</li>
</ul>
<div>
MAC address (machine access control address) is a unique identifier assigned to a network interface. Network interface could be physical or wireless. MAC address is also known as the physical address to a network device. (<a href="https://en.wikipedia.org/wiki/MAC_address">more info</a>)</div>
<div>
<br /></div>
<div>
The computer/device name is the name of the device identified usually during installation.</div>
<div>
<br /></div>
<div>
Local IP address is the IP address defined for the network interface either statically or through a DHCP (dynamic host configuration protocol) server within a local area network (LAN).</div>
<div>
<br /></div>
<div>
Taking the "possibility" challenge, it lead me to many other information. The challenge involves the use of the browser and its relative technologies. The website is developed in PHP and Javascript. Imperatively, getting the above information can be done with PHP and Javascript.</div>
<div>
<br /></div>
<div>
Initial searches on Google lead me to answers leading to "not possible" outcome. However, it also lead me to a number of tools for future projects like: <a href="https://clientjs.org/">ClientJS</a>, <a href="http://browserspy.dk/">BrowserSpy</a>, <a href="http://detectdevice.com/">DetecDevice</a>, and a number of almost similar leading information.</div>
<div>
<br /></div>
<div>
Further in search for a solution, 3rd-party software are also considered including extension, plugins, and client-installed scripts.</div>
<div>
<br /></div>
<div>
With any breakthrough, it'll be posted here.</div>
Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-31460149027280094122016-03-18T08:11:00.001+08:002016-03-18T08:17:23.342+08:00Failures, Mistakes, Errors.... Moving OnAll my life, I have crossed so many mistakes, errors, and failures -- in one word: failures.<br />
<br />
Most of these failures, I have observed, are unlikely to happen early on. Best intentions get the best of me, that these failures will not likely to happen. It is like going for a walk, a simple walk from one point to another, and out of nowhere, you are robbed or even worse.<br />
<br />
Failure is evident when we don't have a plan, not all of us are like Indiana Jones whose adventure is mostly of luck. Failure is also while we're doing it -- say cooking, you wanted to put some salt so to blend the taste, but the lid of the shaker is loose letting all the contents out as you turn it over. Failure is also at the consequence -- the wrong spice/ingredients mixed up.<br />
<br />
Coincidence, fate, destiny, or other words that they are called, I am blaming them. However, as I grew up and hurdled more and more of these failures, I had come face to face, in many instances, their nature. It is like facing a transparent glass that is so transparent, you cannot see the glare. You will not know that it exists until you bumped onto it. It is not like you are traveling in darkness, in fact, the light encourages you to walk or head on faster than you intend, you do it step by step.<br />
<br />
The shimmering light, or simply a lamp or fire on a stick, is much needed in our travels through the dark -- to the most unlikely nature of life. We need confidence, encouragement, motivation, satisfaction, and all the nice words in the world of words, to keep moving. These words I refer to as light. Like the brightest natural light on earth -- the sun -- brings forth a lot of these words into concrete application. I'd like to jog when there is sunlight, but I hate the heat that it accords me -- the early sunrise or the late sunset is the better time to do it.<br />
<br />
Going back to failures as transparent glasses ahead of our path, I had observed, that with the right angle of light -- seeing through or bouncing from the back -- provides a clearer view and begs caution as we approach it.<br />
<br />
We need a change in perspective.<br />
<br />
Perspective is how we see one thing from one location while trying to be on another. Normally, if you are looking at the same aspect and from another point of view -- perspective -- you will see differently. So, to change or influence someone, you have to change yourself -- change your own perspective.<br />
<br />
With so many failures, I neglected to count them, I had tried many changes in perspective -- many of which made sense initially -- like out of a book or an author. But just like trading in the ForEx market, not all strategies will work over time, you have to adjust. Continually changing and proving one from the other, could already be a failure in itself -- none accomplished.<br />
<br />
Perspective, or a change of it, should be done way before we head on, and not only at the moment of failure. Planning -- anticipating that failures will or may happen -- is now a requirement.<br />
<br />
Planning is the best weapon in playing chess, after knowing the game of course. Before you do your next move, your mind will go through drills, situations, consequences, alternatives, and counter-attacks. The more moves you can muster in mind, that will likely happen in the future, will provide you with the better advantage.<br />
<br />
Quick reaction -- efficient decision in an instant -- can be an output of effective planning. With the anticipated move, and the right conditions, you adjust your plan with the scenarios ahead of you.<br />
<br />
If we stop, I have convinced myself, through the failures -- failure of planning, failure at scenario, failure on effect -- we will remain as a FAILURE. BUT, if we keep moving forward, planning ahead, deciding fast enough -- we may not avoid failure, but at least, by then, we should have accomplished something.<br />
<br />
The failures are there to remind us that we are human. That we should learn by them, avoid them, plan for and against them. They will surely come, by fate or by other means. But by then, you are stronger, and you will know how to deal with them to better yourself.<br />
<br />
Let's keep moving forward.Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-40220638569125048202016-01-05T17:09:00.001+08:002016-01-05T17:09:06.039+08:00X and Y of Software DevelopmentSoftware Development is one of the many things that never stay put. It gets to evolve and continue. Once it stops, it is the end of its life.<br />
<br />
As software develops over time, there are distinct two directions that is tracing its progress:<br />
<br />
<ul>
<li>X - this is the horizontal aspect of development. This is characterized by the number of features, functions, scope and reach of the output. As you add more to the growing number of functions and features, the X axis is drawn further from the origin. The further it goes denotes a number of modules or usage it contains.</li>
<li>Y - this is the vertical aspect of development. This is characterized by the quality, performance, speed, usability, friendliness, and security of the system. This aspect is also gearing to the non-visible part of the system. These developments may sometimes delay the deployment or may break the system all together.</li>
</ul>
<div>
A good balance of the X and Y axis is desired in any development. Any system that has many features but would require a great deal of power to operate is the same with a very secure system that is very hard to use.</div>
<div>
<br /></div>
<div>
At some point, prioritizing one axis over the other is inevitable specially for system developed by less than 3 people. Some features are held off in favor of performance or security. Some usability issues are sacrificed at some point for speed considerations. </div>
<div>
<br /></div>
<div>
Many of the chances that I have gone through as a developer, is to take the Y axis more priority than the X's. That is, make sure that the system performs better than having to add more features. More features, at many instances, would mean more work for Ys. Say you need to upgrade to a new version of the programming language -- this is a Y -- this would mean that development for the Xs had to be postponed until all areas of the system, in Y, are checked.</div>
<div>
<br /></div>
<div>
Stress and penetration tests are very rarely done during development, not until there is some prototype or feature to specifically test. Imagine a huge system, after so many years of development, it may have covered all business operations and had them automated/integrated into the system, that may have not been tested for security? Chances are, this huge system may just be like trash after proving that it can easily break.</div>
<div>
<br /></div>
<div>
As you improve both axis, you may need to trace back to many of the basic functions for upgrade. At some point, many have to be re-written from a blank file. This is a hold off to the X axis, but making sure that the Y is stretched up to a quality you can be assured of.</div>
<div>
<br /></div>
<div>
To speed up development, one thing to keep in mind is, how much effort you put into the Ys, will lead you to a further stretch on the Xs. That is, with enough thought and consideration on the performance, quality, and security of the system, the easier you can expand the functionality and usage of the system.</div>
Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-51027089228212881912015-09-22T10:15:00.001+08:002015-09-22T10:15:24.039+08:00Backup your copyrighted DVDsI usually get this request from upstairs about backing up encrypted or copyrighted DVDs. I know I have done it many times but it fails to remind just how to do it every time.<br />
<br />
Tools<br />
<br />
<ol>
<li>So I always have this <a href="https://www.daemon-tools.cc/products/dtLite">Daemon Tools Lite</a> that allows me to mount .iso file as virtual CD/DVD drives.</li>
<li>I always have the codecs from <a href="http://www.cccp-project.net/">CCP-Project</a> to use the classic media player instead of the new one</li>
<li>I also have <a href="http://infrarecorder.org/">Infrarecorder </a> to do copying and writing tasks</li>
<li>For those copyrighted and encrypted DVDs, i have <a href="http://www.dvddecrypter.org.uk/">DVD Decrypter</a></li>
<li>For some instances I also have <a href="http://www.imgburn.com/">imgBurn</a>. This however may conflict with DVD Decrypter or Infrarecorder if not installed properly</li>
</ol>
<div>
Steps:</div>
<div>
<ol>
<li>Firstly, make sure that the DVD is worthy -- meaning readable and functional, void of physical damage that may ruin the show. You cannot copy if you can't play it.</li>
<li>Copy the DVD to an .iso using InfraRecorder. The read speed may have to be tweaked to use below the maximum.</li>
<li>Try mounting the .iso file using DaemonTools and make sure that it plays just like the original. If problems exist, it's time to call on the other tools.</li>
<li>From the mounted .iso or virtual drive, right click and see "Decrypt using DVDDecrypter". Just follow the next steps, find a nice target location and proceed to extract the content. If it is a DVD video disc, it will copy just the .vob files.</li>
<li>Write the .vob files to a DVD using imgBurn. You might want to save DVDs by writing them to another .iso file</li>
<li>If all is well with the decryption, iso and playing the mounted iso, you're ready to burn to a physical DVD or to another media.</li>
</ol>
<div>
Feel free to post on the comments if you need assistance.</div>
</div>
<br />
<br />Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-63481350514405547272015-07-22T08:18:00.002+08:002015-07-22T08:18:15.519+08:00To my audience from way backHi!<br />
I am not sure if you can still remember me. I was one of the speakers in
one of the Lorma-hosted seminar sometime ago and had promised to send
you "something" for asking a question during the Q&A portion. You may
remember me with the bitcoin idea. I had been thinking about what I
could really send to you as a token of my appreciation.<br />
<br />
I apologize for the great delay.
<br />
<br />
As you may have known recently, a bitcoin database had been hacked. This
is now the challenge of the security of bitcoin and how it is digitally
saved within networks. But, like some of the techos say, if a bank is
robbed, you can discount saving to a bank a bad idea. But then again,
let that be challenged even further.<br />
<br />
It's like wildfire now about privacy and intrusion -- with the Hacking
Team hacked, leaking information about how dubious and challenging
making worthy of the systems we are building -- we have to become
experts in our own field and be guided by the principles of security.<br />
<br />
Here, I am sharing you a goldmine of security ebooks. I suggest you
download what you can and keep it somewhere you can refer to sometime
later. Some are already outdated but the knowledge and awareness they
bring are priceless.
<br />
<br />
<a href="https://drive.google.com/folderview?id=0B7jWflk4TmF3WEhqQVFmMHN3Q2s&usp=sharing">https://drive.google.com/folderview?id=0B7jWflk4TmF3WEhqQVFmMHN3Q2s&usp=sharing</a><br />
<br />
I hope these resources will be of help to you or the future generations
under your ward.<br />
<br />
Best wishes,Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-5402169571433991612014-07-11T11:25:00.002+08:002021-03-31T12:54:33.689+08:00My StressOh, Stress! <div>You come every time </div><div>So fresh! </div><div>You swiftly become mine </div><div> </div><div>Each day you remind me </div><div>The sweetness that glory can be </div><div>By the end of the day </div><div>You hinder the rest, </div><div>I wanna be </div><div><br /></div><div>Let me love you </div><div>Please work for me </div><div>Though I hate you </div><div>Please don't ruin me. </div><div><br /></div><div>You give these many gifts </div><div>Silver hair, Wrinkles
Worries and enemies </div><div>In as much, as is my faith </div><div>You come preparing me </div><div><br /></div><div>Be the best among my friends </div><div> Go on, I won't let your way </div><div>By how much you love me </div><div>You come and stay everyday </div><div><br /></div><div>Challenging me each and every way </div><div> You are the scorching sunlight </div><div>Without you, I feel no might </div><div>But if you lay not much
I can do </div><div>and thank you very much</div>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-14719440481101538492013-05-09T09:28:00.000+08:002013-05-09T09:28:15.796+08:00... and the election's almost overUgh! the trouble! the hazzle!...
If you put the hype in a graph, statistics' normal curve almost does not apply. Pre-election time, it's way too long a time that the hype(equals preparation and campaign) is so intense. So intense that bans for guns and others are so commonly ignored and violated, with so little a number of apprehended and served justice. So intense that media -- paper, tv, radio, and the Internet -- is so undated with issues and concerns over and beyond election.
Both incumbent and aspiring politicians have promises and so-called platforms they wish to bring forth to the governed public. So many that when elected, almost the same number wave through death and silence. And then, it gets used again on their next run for the same and so-much-acclaimed incomplete implementation of the plans.
This next couple of days will be the height of the hype -- more noise and acts of baboons.
And just before the days ends on May 13, the hype curve will dive... The next two days, it just plainly die... A few weeks come and we all forgot about the platforms and promises they uttered during the campaign --- and seemingly the candidate who were "asking" to be elected succumbed to amnesia and on to their personal goals.
There are those that try to push for the suspension and even the stoppage of the election.
There are those who just kill their opponents so there will be no sense of having the election.
There are those who don't trust in the process of the election.
There are those who don't trust the means and ways(ballot, paper, pen, ink, machines and people) of the election.
There are those who don't even trust the results of the election.
Well, here we are, afloat to the tide of how our election proceeds and done. At least, for the life of me, I see some changes:
1) Politicians no longer promise the very impossible. At least, they're now going practical and still seemingly odd promises.
2) Less use of pamphlets that clutter the streets and stickers on walls on every inch. They now hang tarpaulins.
3) People are more aware of whom they vote and the strategy to keeping the money the politician is giving and still vote for those they like
... actually, there are a lot more. BUT, let me end here while others can say more.
I really hope the election's over so the elected politicians can really do more. (And so I hope)
Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-51341145882767821882013-02-13T13:32:00.000+08:002013-02-13T13:33:32.233+08:00...and we're moving on<div xmlns='http://www.w3.org/1999/xhtml'>I just have known that Pope Benedict XVI (PBX) just resigned from office. I was briefly shocked, and as I read today's headline: "Tagle Next Pope?", it gave me mixed emotions.<br/><br/>As reported, PBX is one of the very few that actually resigns. The rest, they are resigned until burial. Tsk!<br/><br/>As I briefly scan the pages of the paper, reading through the titles and leads of each article, the commentary of Cito Beltran captivated me. A few lines says:<br/><br/>"You don't have to die in office because the office could die along with you. The most important lesson that Pope Benedict teaches us by resigning as Pope is to know when to quit and to do it gracefully. Just because there has been a tradition of Popes dying or deteriorating is office, does not necessarily mean it's the wisest thing to do."<br/><br/>Cito explains and writes better of the idea, I am a fan.<br/><br/>That paragraph struck me with how we -- the younger generation -- the generation "in-waiting" -- who are trying to make changes in our own ways to improve lives and actually live a life.<br/><br/>Resistance to change is a hot topic for "seasoned" (the term they use when you're too old in a position) individuals -- any changes you want or wish should pass their set of criteria. There's nothing bad about it. In fact, it is a good practice to always seek the wisdom of experienced or experts. What is not good is, even if they understand the benefits, and actually know how it will turn out, they opt to ban or repress it.<br/><br/>It is in my personal nature to seek for improvements in ways possible and within the resources available, no matter how small it may look. But this outlook gives me the opportunity to do improvements of the changes that will happen -- not for personal gain but for the institution I am working with. It should be valued, at least hearing and proving what can happen. If my contributions are not seen as valuable, then, it only goes that I should not value myself as a contributor to my institution -- I must move on... resign...<br/><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=4f0f39ee-8372-8faa-a738-d5e469855a02' alt='' class='zemanta-pixie-img'/></div></div>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-17607139399716286882012-10-01T19:43:00.001+08:002012-10-01T19:47:05.483+08:00Bloody Mechanic on BloodyMonday<div xmlns='http://www.w3.org/1999/xhtml'>An uprising is raging elsewhere. Loud shouting on a megaphone or on a supercharged speaker system keep ringing in my ears. Nuisance -- as in "noisy assailants" are just around the corner, deafening every passer-by or chanced riders that go by. I never had appreciated such moves. I am no fan. Protests are protests and will remain as they are unless suggestions or recommendations are voiced out rather than the worse-riddled situation that we are already in. To complain is an eye-opener to a seemingly naive and insensitive one. But, not until a solution is on the table, it will remain a complaint.<br/><br/>I highly regard those that are against the Cybercrime Prevention Act of 2012 and brought their case before the court -- rather than ranting about it elsewhere. Lawyers, law-makers (and sometimes law-breakers) shall test by counter-testing the negative impression the law [that they wrote and agreed on] as seen by others. Arousing interest from all areas is good BUT, they have to be informed PROPERLY -- emphasis intended. Properly, we mean, within the bounds of the information that really exists in the provisions. Anything above and beyond that is misjudging the "freedom of speech".<br/><br/>Once again, the definition and implication of the word "freedom" is being challenged.<br/><br/>Hackers have unleashed their nuisances on some of the websites I'm keeping in store at a hosting server. Implicating the bill as part of their reasoning is plainly irresponsible. Making the point that the websites, and the server can be hacked is another thing all together. Anyhow, both sides of the coin has to be played in such a scenario -- to understand and take it a medicine that what they did is to send proof and taunt admins of their capabilities. How about shooting them in the head to make the point that a bullet travels so fast that it can break a skull? -- Anyone dare? (Oh, well... no pun intended. Just making a point).<br/><br/>Oh, mechanic operating on a heart bypass..<br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=faf57e90-ef95-8016-8700-1995eadc0c19' alt='' class='zemanta-pixie-img'/></div></div>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-546382176500596292012-03-13T21:35:00.000+08:002012-03-13T21:36:22.047+08:00A peep at Windows 8<div xmlns='http://www.w3.org/1999/xhtml'>Just got a copy of the Windows 8 Consumer Preview ISO from <a href='http://windows.microsoft.com/en-US/windows-8/iso'>here.</a><br/><br/>Installed on my VMWare Workstation:<br/>- 120 GB HDD - might use a few more gig later<br/>- 1GB RAM (recommended based on my physical machine capacity)<br/>- bridged network so I can update later<br/><br/>From boot, the teal-green color floods the screen and then the fish... that's something new from MS.. though, I've seen a lot of MS wallpaper and screensaver that feature fishes.<br/><br/>As it loads, white dots appear and goes in circle to mimic a loading sequence.<br/><br/>A few more seconds comes up the seemingly familiar Windows 7 setup screen. Keys are in and just waited until the Personalize teal-blue colored screen comes up.<br/><br/>Type in the computer name, press Next, towards the Settings menu. I'll go for an expressed settings.<br/><br/>Type in the username and towards the Finalizing your settings window.<br/><br/>The five white dots runs through a circle and it prepares to welcome me, about 3 minutes after powering it up. After a couple of minutes waiting, the tiles come up and I'm ready for a spin.<br/><br/>Solid colors are nice, Dragged and dropped to re-arrange the tiles. Went to the store and while I'm not yet connected, there goes the error/advice. <br/><br/>But hey, where and what would I to go back to the menu screen? Oh, there.. I moved the cursor by the top of the page, and as it turned to a hand, I push the button, dragged the page that, by then, it re-sized to a thumbnail. As I move around, move the tile to the bottom, and whew! I came back to the tile menu.<br/><br/>Now, I have to configure my network so I can connect to the Internet. But how? I started clicking some buttons/tiles that may lead me there.. First, my name on the top-right, nope.. none.. Next, the Fish... led me to a more familiar screen: The old Windows 7 desktop without the Start button at the bottom-left. Went through the net-icon on the status bar.<br/><br/>The network device seems not to be recognized, so I decided to restart after a while. The restart took awhile before the tile-menu.<br/><br/>Checking on the VMWare Tools from the VM Menu, it says it's not available. I have to wait for the VMWare Workstation 8 update for any luck..<br/><br/><a href='http://windows.microsoft.com/en-US/windows-8/iso'/><br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=e5351778-49d0-8e36-890b-343fd7c49d28' alt='' class='zemanta-pixie-img'/></div></div>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-17173484808355017122011-11-16T20:18:00.001+08:002011-11-16T20:18:27.617+08:00The curve is going through dugged up path<div xmlns='http://www.w3.org/1999/xhtml'>More updates, or desperation, may just be ahead on the horizon for Adobe's Flash Development... and probably the others that goes along with it -- Flex for one. The article published on <a href='http://www.theregister.co.uk/2011/11/15/adobe_donates_flex_sdk_to_open_source/'>The Register </a>provides more gleam on this one.<br/><br/>A new developer on Flex, Flash, and Air.. may have to look shop somewhere else or this may turn out to be a good one. About a few weeks ago, I just got the latest Flex SDK (4.5.6), now, rumor says it's no longer marketable... But who knows? This can just be inviting more attention..<br/><br/>Hope's something worthwhile ride comes by.<br/><br/><div class='zemanta-pixie'><img src='http://img.zemanta.com/pixy.gif?x-id=03142da4-2468-8c41-b083-8132ba0834cb' alt='' class='zemanta-pixie-img'/></div></div>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-74182161211496461892011-11-10T16:40:00.001+08:002011-11-10T16:40:18.966+08:00Mobile development taking some curves<p>Adobe announced today that they're <a title="Adobe abandons mobile Flash development" href="http://www.cnn.com/2011/11/09/tech/mobile/adobe-mobile-flash-wired/index.html">killing mobile Flash development</a>.</p><p>This is received differently by different group of people - developers, reviewers, hackers, and even Jobs enthusiasts. Some believe and titled their articles as if Steve Jobs really killed Flash with his persistent denial of Flash's existence and importance in the horizon -- to put Flash out any near his turf. A few more comments that Flash may not just go away easily and it may take some time to actually "die". In between, some developers feel aweful about their expertise with Actionscript and Flash development -- real investment seemingly going to trashbins. The other side of the fence goes saying AS is basically ECMAScript and that switching to Javascript wouldn't hurt a lot.</p><p>Along all the sides of the differing point of views, there's this me. Just started out liking development with Flash Builder 4.5 with the ability to retain and enhance my PHP skills and adjust to AS and Flex. Actually, most of what I've done is just following video tutorials using the provided example projects. Whenever I tried changing the samples with the data I could use for my own application, something just goes awefully wrong.</p><p>Great time last week was spent working on a solution on why suddenly I can't start a project other than for Android OS - no iOS, no Blackberry -- I was stucked. Got it miraculously working after OS re-installation, which it really is not a factor in the solution equation. Got it working after forceful update to version 4.5.1.</p><p>A few days back, most hours after the whole day's work were spent trying to make the ZendFramework work for the PHP class I've developed from scratch just to come up with the basic structure for a DataService configuration I have tried during the first few days of the toturials. To this day, I really doesn't know to make it work.. Stuck.</p><p>Despite the seatback and the not-so-good timely news of <a title="Exclusive: Adobe ceases development on mobile browser Flash, refocuses efforts on HTML5 (UPDATED)" href="http://www.zdnet.com/blog/perlow/exclusive-adobe-ceases-development-on-mobile-browser-flash-refocuses-efforts-on-html5-updated/19226">Adobe's killing Flash</a>, There's some light in the horizon: "package native apps with Adobe AIR for all major app stores". Build one, deploy to all.. That's pretty good!!!</p><p>The other side of the fence of developers, developing not from the native code, would mean performance penalties and sacrifices. These performance penalties may be quite OK with hardware devices overcoming the penalties (e.g.: a 1.2Ghz with a 800Mhz output). Might be OK or awefully bad.</p><p>A good time to expand the horizon and pool more options.</p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-27632854953637949722011-10-27T09:10:00.001+08:002011-10-27T09:10:26.647+08:00To iOS or NOT<p>Last week, I attended a 4-hour seminar/showcase of iOS Application Development at Mint College in Fort Bonifacio. iOS basically is the operating system for iPhone and iPad devices. It integrates closely with Mac and of course Apple.</p><p>A few weeks before that, Steve Jobs passed away raising the question: "How will Apple and innovations from it without Steve Jobs?". You can come up with your own view of the matter, but we'll reserve that for some other time.</p><p>The market of mobile applications is increasing exponentially. It's just like the days when all companies and establishments wanted to have their own website and website application has been on the same rise. Now, establishments are clamouring for their own mobile application.</p><p>Mobile applications are not new to the horizon, even at the consumer level. Back in the early ages of cellphones, applications already exists and most are on the courrier's end. Eventually, they were made to adopt the Internet and made the system port to websites -- e-commerce came to play a great role, online-banking, and the fraud part, also joined the wagon.</p><p>When Apple launched its first version of iPad for the tablet framework, suddenly, the landscape of computing started to change. Despite the existence of tablets way before Apple released its own, (hence the legal battle that it is facing on all sort of countries from other players), tablets are not seen as usefull of to be considered consumer-based or business platform.</p><p>Apple changed the outlook on tablets down to the consumer level. Application development needs to pursue and grab the opportunities that it presents in almost all industries: Education for the technology-end; business operations; medical practice.... and the list goes on to coin the tag "I have an app for that".</p><p>A couple of years back, the challenge to develop for the mobile platform, as suggested by the increasing adoption of devices, came to play a role in the process. I am a web application developer, though I started my programming practice from DOS-based applications, I should be able to bridge any deficiencies or any adjustment for the web. In about a few weeks of searching for faster solution, I cam accross <a title="jQuery Mobile" href="http://jquerymobile.com" target="_blank">jQueryMobile </a>- a javascript implementation that uses the industry-proven jQuery framework. It was in its Alpha-1 stage back then. Now, it's in RC2 release -- just about to go mainstream.</p><p>I was pulled by it. Going through the readings and searching, jQuerymobile pulled them too. The path is, I will not have must adjustment from how I develop my applications using PHP-MySQL-Javascript-CSS-XHTML and others. jQueryMobile provides really beautiful integration for the mobile platform. As part of the challenge, I had developed a mobile version of the <a title="ACCESS School System" href="http://access.ph" target="_blank">school system</a> I am improving. A restaurant/bar menu and ordering system came next. It was easy, you can build an application with database-integration and custom-views in a matter of hours or days, way faster that most available practices at that time.</p><p>There's a catch however, as it is web-based, it can only run with a mobile's browser. Well, by right now, most mobile devices comes with an Internet browser. From my tests and with the available devices I can lay hands on, there are browsers that do not interpret javascript and CSS -- you'll be doomed with text-only -- not good.</p><p>Development in the native form -- like iOS -- will eliminate such -- but you can only develop for iOS device -- the ones that ONLY come from Apple. I am not liking the way how it can go. Like when I dropped MS VB development -- thinking I'll be stucked developing for windows only. To this day, that had not changed much. I went to open source -- for the web.</p><p>The same dilemna approaches me. If I'm going to develop with iOS:</p><ul><li>I'll get familiar with using Objective-C. (anyone knows who and what else uses Objective-C? I have not gone to knowing this yet)</li><li>I can build iOS apps definitely</li><li>Consequently, I may go away from my web-application development and into iOS. Because, they don't mix and match and the tendency is you'll accommodate one for the place of the other.</li></ul><p>After drilling further, I came accross Adobe's Flex Builder with PHP(AFBP) -- SWEET!!!!! I can do Flash faster and I can exploit my PHP know-how.</p><p>It is SWEET!</p><p>Going through a little reading and tutorials, I found out that developing for iOS and Android can just be an option away from distribution. Build on one platform and implement on others. If I go iOS, the app can only work on iOS device. with AFBP, I can leverage to work on Android too..</p><p>Further, using PHP on the server-side gives me comfort. I can expand this to use databases -- mySQL is just a script away.</p><p>How about other adjustments? Well, I need to learn how to do Flex and Active Scripting -- but that's just part of the tutorials I can go through..</p><p>On to the next exercise...</p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-22100364235113091922011-10-06T16:08:00.001+08:002011-10-06T16:08:04.139+08:00The Concerned Plumber<p>Being new at a city, a plumber, who's workplace is around the corner, rented a room at the first floor on a four-storey building. Starting on the next day, he would go out early to catch up his ride to his workplace and from work, he'll dip himself to the lone bed in his room.</p><p>One day, he woke up hearing some water dripping just next to his bathroom. We wondered if he left the faucet on the night before. He got up, guided by the familiar sound of the water dripping, led him to see that the water was coming from the ceiling. The problem is just not his own right to fix and do it right. So, he decided to talk to the building owner and suggested that he can take care of it at the expense of the owner or the occupant of the room above his.</p><p>The owner agreed and so he finished his work early at his workplace to give himself some time to take a look at the seemingly plumbing problem. He walked-up the stair and find his way to the room in question. He knocked cautiously not wanting to alarm anyone. The door opened to a few months old baby crying to its heart out carried by his mother while asking the stranger what he wants. The plumber obediently went in and calmly expressed his concern about the water leaking through the floor. As busy as the mother trying to ease up the baby crying, she just motioned to the guest to just go ahead and take a look at it himself.</p><p>The guest went through a sea-full of different toys and stuff cluttered on the floor and through a separate room leading to the kitchen. To his surprise, there really isn't any plumbing that needs to be done -- the kitchen sink is full of dishes and a few more stuffs and the faucet is left open.</p><p>As the concerned and affected plumber, what would be the best way to solve the problem?</p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-6586167926637321352011-09-20T09:03:00.001+08:002011-09-20T09:03:18.160+08:00Chaining scripts with LABjs<p>This article-guide on the use of <a href="http://blog.getify.com/2009/11/labjs-how-to-deal-with-inline-code/">LABjs </a>may be simple or complex depending on how you approach.</p><p>Simple, if you're starting up or your scripts are located in external files and your chain of scripts are accessible from inside the <head> and are called the same from all over your scripts.</p><p>Complex, if you have otherwise and/or script blocks are inserted within or after the page. Changes can be all over.</p><p>The comment post of "Kevin Hakanson" provided the more simpler way to approach it, at least on how my projects are made : (script blocks can be anywhere you need them against putting all in one location and manipulating them there --- atomic approach may not always work). The method allows a single $LAB chain accross your pages, even if they are called separately or individually == define the instance of $LAB and use this variable in all independently called script blocks (taking his example):</p><pre class="code"> var instance = $LAB<br /> .script("framework.js")<br /> .script("myscript.js")<br /> .wait(function(){ myscript.init(); });<br /><br /> instance.wait(function(){<br /> framework.init();<br /> framework.doSomething();<br /> });</pre><p>As you defined the variable as "instance", you can then call it on the other script blocks as "instance.script().wait()" chain to all script blocks.</p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-51853764915326595732011-07-25T22:20:00.001+08:002011-07-25T22:20:47.902+08:00MySQL "Push" backup strategy<p>A "pull" backup strategy can be achieved by a MySQL replication.</p><p>Alternatively, a "push" backup strategy can also be achieved through cron or task scheduler with the following 2-step strategy:</p><p>1. take a backup of the database</p><p>> mysqldump [options] database > backup.sql</p><p>2. send or dump the backup to the remote database</p><p>> mysql -u<user> -p<password> -h<remotehost> [options] < backup.sql</p><p>Note: the second step should have an explicit password, it should not be blank; to avoid prompt.</p><p>You can then add this to your cronjob or Task Scheduler (on Windows) to execute at a certain interval and frequency.</p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com0tag:blogger.com,1999:blog-384344654968334207.post-63270690715106111122011-07-22T13:39:00.001+08:002011-07-22T13:39:07.374+08:00Duplicating MySQL table to another table<p><strong>Method #1</strong>: [the better option]</p><ol><li>get the creation table information of the table to be duplicated</li><li>change the table name</li><li>execute the script</li></ol><p><strong>Method #2</strong>: this will remove the index definitions of the table though. Use:</p><pre>CREATE TABLE <newtable> SELECT * FROM <oldtable> WHERE 1 = 0;<br /></pre><p>the where clause just says you are ONLY copying the structure and not the data.</p><p><strong>Method #3</strong>: Copy to and from another database</p><ol><li>Copy the table to another database[#2]</li><li>Rename the table on the other database[#2]</li><li>Copy back to the source database[#1]</li></ol><p> </p>Aingeloguehttp://www.blogger.com/profile/11871300421430592236noreply@blogger.com1