Tuesday, November 1, 2016

Resolve HG633 port forwarding issue

Recently I upgrade my TalkTalk fibre plan to large which received 20MB upload speed, & I decide to host a couple of website on the virtual machines, yet I found the problem is the virtual machine will be disconnected from the router even it is connected through the ethernet & set a static IP address. This would make the port forwarding failed which I found a lot of users report the same issue at the TalkTalk community website http://community.talktalk.co.uk/t5/Superpowered-Fibre-Broadband/Port-Forwarding-on-HG633-fibre-router/td-p/1690548

To resolve this issue, I found a simple solution, which creates a cronjob or task schedule that just ping the route every minute, assuming your router’s IP is 192.168.1.1

for Linux/Unix


*/1 * * * * ping -c 1 192.168.1.1

Then I found the website will become available from outside constantly.

Wednesday, December 24, 2014

Blizzard released Heathstone for Android tablet

In the Christmas Eve 2014. Blizzard released its card game Hearthstone to Google Play

Click the link below to download from Google Play
https://play.google.com/store/apps/details?id=com.blizzard.wtcg.hearthstone

Wednesday, May 28, 2014

Add ID value for non-auto-increament field under Entity Framework

If you use an “ID” field in your entity, & this “ID” field is not auto-increament, Entity Framework will fail when generate insert sql.

Solve:

Add a DatabaseGeneratedAttribute to this “ID” field, with DatabaseGeneratedOption.None option, like this:

public abstract class BaseAccount{    [Key]    [DatabaseGenerated(DatabaseGeneratedOption.None)]    public int ID { get; set; }    ......}

Successfully solved under Entity Framework 4-6.

Entity Framework 6.0 MigrationHistory table on SQLite

The following SQL is used to create __MigrationHistory table in SQLite database for Entity Framework 6.0 in Code-First mode.

CREATE TABLE [__MigrationHistory] ([MigrationId] CHAR NOT NULL, [Model] BLOB NOT NULL, [ContextKey] CHAR NOT NULL, [ProductVersion] CHAR NOT NULL, CONSTRAINT [sqlite_autoindex___MigrationHistory_1] PRIMARY KEY ([MigrationId]));

 

Tuesday, March 18, 2014

Ruby on Rails: Making Web Applications Development Fast and Fun

Ruby approximately Rails is a breakthrough inside the net development arena. “Powerful internet applications which formerly could have taken weeks or months to develop is yielded inside a matter of days,” claims Tim O’Reilly, Founder of O’Reilly Media. It has capability to handle huge traffic volumes for huge companies. RoR evangelists vouch for Ruby approximately Rails inside terms of the internet development time, compactness, swift deployment capability, database portability, scalability plus readable code generation compared to different languages. Despite limited glitches (that is certain for a fresh entrant), RoR has been advocated inside the net development community plus is expected to become a dominant internet development platform amidst internet programmers inside coming years. This post completely scans the RoR framework; finds loopholes inside it; balances them plus attempts to withhold its abilities to internet programmers plus huge companies. Before you ride approximately Rails, you could learn what RoR really is.

What is Ruby approximately Rails?
Ruby is an elegant object oriented meta-programming code tailored to create programming simple plus fun. It is a dynamic code plus is much more similar to Perl, Python, plus Javascript than a conventional hardcore code like C++ or Java. RoR is an open source internet application development framework created inside Ruby code. It has a riches of pre-written code which assists programmers build brand-new internet goods swiftly eliminating much of the preliminary function needed for developing complex plus mainly database-driven internet applications.

RoR could run approximately any internet host which implements CGI or FastCGI. RoR involves WEBrick, a effortless Ruby internet host which is distributed with Ruby.

It supports database like MySQL, PostgreSQL, Oracle, DB2, SQL Server, SQLite, etc.

Key Features:

MVC Architecture: Ruby approximately Rails is based approximately Model–View–Controller architecture pattern that isolates the database from additional components of the application, permitting independent development, testing plus repair of every component. Scaffolding: One of the attractions of Rails is its scaffolding. Rails may automatically build a few of the models plus views required for a standard site. The programmer can equally run an exterior control to create Ruby code for the scaffold ahead of time.

Convention over Configuration (CoC): Another significant characteristic of Rails framework is Convention over Configuration (CoC). If developer follows recommended naming conventions, Rails refuses to require much configuration. It is just whenever the desired behavior deviates within the implemented convention, then we configure a desired behavior. Rails framework lets we write gorgeous code by favoring convention over configuration. This causes less codification.

Don’t Repeat Yourself (DRY): Rails framework is based found on the swift development principle called Don’t Repeat Yourself (DRY). Utilizing the ActiveRecord component of Rails, the developer refuses to should specify database column names inside class definitions. Instead, Rails may retrieve this info within the database based found on the class name. This causes less repetition of info.

REST Design Pattern: Rails supports REST shape pattern for internet services. The REST architectural fashion is based approximately client-server relationship. Browsers request pages from Rails by creating a request for a URL utilizing a certain HTTP way, like GET, POST, PUT plus DELETE. Every system is a request to do an surgery found on the resource. A resource path maps a quantity of connected requests to actions inside a single controller.

Extensive AJAX Library: Ruby approximately Rails is furthermore noteworthy for the extensive collection of Ajax functions. Rails helper techniques is selected to call Ajax functions.

Integrated Test Environment: Automated testing is an underlying strategy of Rails. RoR framework embraces test-driven development. It comes with an automated test functionality which automatically creates test files for mock object testing. Hence, extensive amount of practical plus integration testing is conducted to find existing issues inside the early stages of development.

SEO-friendly URLs: Clean URLs are crucial for look machines. Rails framework creates custom or Search Engine Friendly (SEO) URLs.

Library of Database plus Components: RoR introduces the ActiveRecord framework, that is an ORM layer. ActiveRecord automatically maps tables to classes, rows to objects plus columns to object characteristics. It automatically determines the characteristics of the model inside the table at runtime. Components is chosen to shop reusable code.

Agile inside Nature: RoR supports Agile methodology for development plus assists programmers create internet treatments instantly. Internet applications which take months to develop approximately additional frameworks is completed approximately RoR framework inside a matter of weeks.

Pros plus Cons of Ruby approximately Rails

Cons:
While RoR platform is gaining approval amidst internet programmers, it has not yet enjoyed the recognition of Java or .NET based frameworks, that has been approximately for years. Critics observe the following loopholes inside RoR framework:

Scalability: Critics have questioned the scalability of RoR framework. They usually mention many Twitter outages inside 2007 plus 2008, that spurred Twitter’s partial transition to Scala for their queuing program plus alternative middleware. The interface aspects of the website continue to run Ruby approximately Rails.

Flexibility: Rails refuses to suit each internet project or product. It is not the greatest bet for effortless url development. It is the appropriate platform for a generally database-driven internet application.

Incompatibility: Rails’ structured plus organized approach is its strength plus weakness inside terms of flexibility plus compatibility. Rails framework is just efficient should you follow the Conventions. It can create a developer or programmer restrictive.

Pros:
Development Speed: RoR has a riches of pre-written code plus several favored components like ORM, JSON, Internet Services plus alternative APIs built-in. The developer frequently creates code inside the early stages of development to test the compatibility of different applications plus main components. Rails framework automatically creates much of the scaffolding plus reduces development time plus effort greatly.

Abundant Web2.0 plus Internet Support: Rails provides abundant greater internet 2.0 plus wealthy web application help. It has extensive libraries of Ajax that has transformed conventional internet development inside latest years by generating it dynamic plus sensitive. RoR supports a wise quantity of Open Source IDEs plus has extensive libraries of Javascript plus tool-kits to ease dynamic internet development.

Less Code plus Less Repetition: C-o-C plus DRY principle cause less coding, plus less repetition. Many of Java plus .NET based frameworks compel we to create pages of code. If a developer follows conventions inside RoR, he refuses to want much configuration. Usually, it saves significant amount of time plus expense.

Increased Productivity: Built-in Scaffolding, Don’t Repeat Yourself (DRY), Rails Conventions plus Agile methodology enable programmers develop internet applications instantly. Less code plus less repetition results inside fewer errors plus consequently increases efficiency.

Good Documentation: Ruby code is extremely readable plus consequently is self-documenting. There is not a have to write separate documentation when the project is picked up by alternative programmers.

Beauty of Ruby Language: The appeal of RoR platform lies inside the elegance plus directness of the Ruby code. Ruby is regarded as the number one languages for meta-programming. It combines Smalltalk’s elegance, Python’s ease of employ plus Perl’s pragmatism.

Who is approximately Rails?
Then, RoR has been utilized for a variety of dynamic internet projects all over the world. It is not limited to the tiny scale internet projects; countless huge names inside the planet of Internet have implemented RoR into sections of their internet applications. Below is a brief review quite prolific: Basecamp, Twitter, Yellow Pages, Penny Arcade, Campfire, Hulu, Groupon, Shopify, Scribd, 43places, 43people, Urban Baby, Xing Marketplace, Pragmatic Bookshelf, Odeo, Zendesk, Iconbuffet, Get Satisfaction, iLike, Justin TV.

Ruby approximately Rails framework is optimized for developer joy plus improved efficiency. It encompasses all ideal practices followed by different technologies. It accelerates internet development task within the rather outset. RoR programmers internationally are experiencing huge advantages inside terms of development time plus repair expense. Many have reported 40-50% reduction inside development time approximately their internet development projects utilizing RoR. RoR has been advocated inside the net development community for the internet development speed plus astonishing efficiency. Undoubtedly, Rails is the number one bet for dynamic plus generally database-driven application.

Arun Roy is Communication Associate at BluEnt, a leading Architecture plus IT solutions provider. BluEnt offers Ruby approximately Rails application development plus internet application development plus content maangement program at an affordable cost. He has deep interest inside architecture plus development. His opinions plus thoughts has been publishes 4Ps Organization & Marketing, Company & Economy, The Indian PC Magazine, plus quantity of blogs. He is reached at arun.roy@bluent.com.

Get Full Battery Life From Ubuntu Laptop

The following components of the computer consumes nearly all of the power existence plus you will lengthen the power lifetime by tweaking them:
1. Ethernet Network Controller
2. WiFi/Wireless
3. Graphic plus Display
4. Processor
5. Disks plus File System
6. Software
We may explain to you certain simple power power saving strategies plus several advanced hardware tweaks inside Ubuntu.
Basic Battery Energy Saving Tips
Ubuntu comes with a energy administration component which provides you standard control to protect the power existence, to open it only go to System > Preferences > Power Management.
We could extend the power lifetime by choosing these choices within the force administration screen:
1. Putting the computer to rest whenever it happens to be inactive.
2. Setting the computer to hibernate mode whenever power force is low.
3. Slowing down the difficult drive angle.
4. Putting show to rest whenever it is very inactive.
5. Reducing the back light brightness.
6. Dimming show whenever the computer is idle.
Our Wifi/Wireless Radio consumes energy whenever it receives plus sends information over the network plus you could turn it off whenever were not utilizing it. We will switch off the wifi when the network card supports the assist plus disable force control device by utilizing the iwconfig control which you will execute inside Ubuntu console:
Linux offers a effortless tuning device to conserve vitality expenditure inside the processor by distributing the processing load amidst the accessible processors. If youre computer comes with multi-processor, you may use take benefit of Linuxs processor balancing feature to conserve stamina usage by executing this control from the console:
Setting Relatime
We could disable the atime to lower drive write at the expense of breaking software which relies approximately atime. An alternative is to allow the relatime choice where Linux may update files access instances just when they are earlier than the modification time. This alter enables utilities to find when the present adaptation of the file has been read, however nonetheless cuts down greatly approximately atime updates. Linux Kernel 2.6.20 plus above could assist the relatime optionExecute the following control inside a system to allow the relatime way.Ibm thinkpad r40 power,Sony vgp-bps10 power,Sony vgp-bps2a power

http://www.wholesaleeshop.com.au/laptop-battery/sony-vgp-bps2a.htm

http://www.wholesaleeshop.com.au/laptop-battery/sony-vgp-bps8.htm

http://www.wholesaleeshop.com.au/laptop-battery/toshiba-pa3356u-3bas.htm

Related Ubuntu Articles