Phat Site Blog

Archive for August, 2010

Associate Software Engineer – (PHP/Python), Lahore, Mezino …

by on Aug.23, 2010, under LAMP

Applicant should have passion for programming and love for software development. Experience in following tools/technologies is a plus.

– Knowledge of Javascript, CSS, XML, XHTML is a must

– Strong Concepts of Databases, Object Oriented Programming and Software Engineering

– Experience in PHP OR Python is a huge plus

– Experience in client side javascript libraries like jQuery or prototype is a plus

– Knowledge and experience in MVC architecture is a plus

– Passion and ability to learn new tools and technologies is the key for selection

Associate Software Engineer – (PHP/Python), Lahore, Mezino …

Leave a Comment :, , more...

Nitriq Blog – Ruby and .Net Developers Solve Two Different Kinds …

by on Aug.22, 2010, under Ruby and Rails

A few days ago I ran across a tweet by a Ruby developer who I’ve been following for a while, in which he asks for someone to “… actually explain the value of Visual Studio and intellisense in terms I can understand?” At first, I responded with the top two things in my head:

1. it drastically reduces how much typing I have to do
2. it helps me learn a new API

He seemed to be under a misconception about the speed of intellisense, I understand why he might have thought that but it really hasn’t been an issue for several years now. but what really got me thinking is when he responded “It just seems to me that if intellisense really drastically reduces typing, perhaps the language is too verbose”.

I think the larger misconception he has is that Ruby developers solve the same kinds of problems as .Net developers. they don’t. not even kinda. and it is these differences in the kinds of apps we build that make things like an IDE and intellisense indispensable. in general, Ruby developers create small to medium size websites – content management systems, small social networks and online storefronts. on the other hand, .Net developers create a lot of large scale enterprise applications. There are countless .net projects that have 50+ developers, the average .Net team probably has 15+ developers. When you need 3+ people just to describe what the business needs, the resulting code is going to be verbose. how big is the average Ruby team? two or three dudes?

I am not saying that Ruby sucks. it is an incredibly cool language that can help .Net developers to look at their code through a different light. Remove Ceremony? Great idea! TDD? Sweet! MVC? Booya! Convention over Configuration? HELLS YES. but even after borrowing as much as we can from Ruby, it isn’t going to make the gigantic complicated sales management system for a Fortune 500 company be not gigantic and complicated. hopefully it will be a slightly smaller and more simple, but that application is never going to be so simple that you don’t need an IDE or intellisense.

If you happen to work on a beast of project with a large team and you need help finding the troublesome spots you should really check out Nitriq and Atomiq. There is a free version of Nitriq – it lets you query your .Net assemblies with LINQ. you can think of it as a super configurable, easy to use FXCop. Atomiq finds and visualizes all the places that someone has copy and pasted code in your project. When I tell people what Atomiq does, about 90% of them get a smirk on their face because they know how much this happens in their project. if you’re smirking right now, just go look at it!

UPDATE: There is a pretty good discussion going on at Hacker News.

Nitriq Blog – Ruby and .Net Developers Solve Two Different Kinds …

Leave a Comment :, more...

How to prepare a software using PHP or WAMP server?

by on Aug.21, 2010, under LAMP

I want to make a software for my final year and i have installed WAMP server on my PC. How can i make a project using WAMP/PHP all suggest me some topics..

How to prepare a software using PHP or WAMP server?

Leave a Comment :, , , more...

Over 6500 tutorials on 500 categories

by on Aug.19, 2010, under LAMP

IBM Oracle Insights
Get the most from your oracle deployments and gain insights to optimize your Oracle Database and Application Experiences. Read Blog

Ziff Davis Enterprise e-mail Newsletters
Reliable, timely information that helps you buy smarter, make better decisions, and get more out of the Web. there is no cost and no risk to subscribe to these high-quality updates.Subscribe Today! .

Over 6500 tutorials on 500 categories

Leave a Comment :, , , more...

IBM focuses on Drupal for new developerWorks series

by on Aug.16, 2010, under Ruby and Rails

hi
good news! here is what we were told.
thanks,
louie

Because you are the authors, you can allow drupal.org to republish the tutorials after we (developerworks) have had them for 30 days. We require that they be published unchanged, and that the following attribution, with a hotlink back to developerWorks, be included:

By (Author’s names goes here). first published by IBM at developerWorks (www.ibm.com/developerworks) IBM developerWorks. all rights retained by IBM and the author.

At some point in the future, our (developerworks) registration process will change so that, once someone registers, a second registration will not be required (late 2006 or early 2007, I beleive). After that time, I think reprinting will no longer be necessary.

IBM focuses on Drupal for new developerWorks series

Leave a Comment :, , more...

VNC in SuSE Error

by on Aug.15, 2010, under Server Maintenance

myredhat wrote:
> Plz do reply if anyone knows……

with the amount of info you gave it would take a pretty good crystal
ball to know how…like:

i assume the “Remote VNC server” is running on SuSE…but, what kind
of SuSE (by the way, there are NONE of those named ‘SuSE’ anymore, for
years) is it openSUSE? what version? or is it SUSE Linux Enterprise
Server (aka: SLES)? *if* the latter then you need to be over at
forums.novell.com because this is the non-commercial side full of
volunteers..

but, never mind…seeing “Connection refused” i can wonder out loud
all the various reasons you might get that and ask about each one,
like: have you granted yourself entry to the target? are you certain
have a password/key? etc etc etc

openSUSE configuration info: http://tinyurl.com/35w3lsk
(SLES, i don’t know..but, i *guess* google does)

volunteers here tend to hang out in areas they understand…like, had
this question been placed in the NETWORKING forum it might have been
answered very quickly… in fact it might have been answered dozens of
times already…something you can learn by using the forums advanced
search function..


DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
posted via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio

VNC in SuSE Error

Leave a Comment :, , , more...

SQL Sams Teach Yourself MySQL in 21 Days | Business Technical Ebooks

by on Aug.14, 2010, under LAMP

Product Description
Sams Teach Yourself MySQL in 21 Days teaches you to organisation and compel your possess unstoppered maker database. Topics include: Designing and Creating your first Database, Normalizing your Data, Adding Tables, Columns, and Indexes, MySQL Data Types, Importing and Exporting Data, Locks and Keys, Building a MyODBC Interface, Building a Perl Interface, Letting MySQL do the Work – Intrinsic Functions, MySQL Database Security, how MySQL Compares, Administering MySQL, Optimizing MySQL, and Troubleshooting MySQL.
From the Back Cover
Sams Teach Yourself MySQL in 21 Days teaches you to organisation and compel your possess unstoppered maker database. Topics include: Designing and Creating your first Database, Normalizing your Data, Adding Tables, Columns, and Indexes, MySQL Data Types, Importing and Exporting Data, Locks and Keys, Building a MyODBC Interface, Building a Perl Interface, Letting MySQL do the Work – Intrinsic Functions, MySQL Database Security, how MySQL Compares, Administering MySQL, Optimizing MySQL, and Troubleshooting MySQL.

http://www.freebookspot.in/Books-SQL%20Sams%20Teach%20Yourself%20MySQL%20in%2021%20Days.htm

Tags:

14 August 2010 5:12am – eBooks

SQL Sams Teach Yourself MySQL in 21 Days | Business Technical Ebooks

Leave a Comment :, , , , more...

Nvidia kicks out CUDA 3.1 for GPUs

by on Aug.13, 2010, under LAMP

404: Page Not Found

If we got something wrong please email webmaster@theregister.co.uk noting exactly where you found the problem. A screenshot often helps too.

You could try:

Or, if you know the subject, try our site search:

<a href="http://www.channelregister.co.uk/2010/07/22/nvidia_cuda_parallel_nsight/tag:news.google.com,2005:cluster=http://www.channelregister.co.uk/2010/07/22/nvidia_cuda_parallel_nsight/Thu, 22 Jul 2010 09:47:06 GMT 00:00″>Nvidia kicks out CUDA 3.1 for GPUs

Leave a Comment :, , , , more...

10 Awesome Ruby on Rails Techniques to Get You Started

by on Aug.13, 2010, under Ruby and Rails

Rails has seemingly set the web development world on fire these past few years. Popular web applications like Basecamp and Twitter have pushed Rails into the limelight as an excellent framework that any programmer (or even non-programmer) can quickly use to create applications.

One of the most popular aspects of Rails is how easy and intuitive it is to start using right out of the box. here are 10 tips that beginners can use to help with getting started with the powerful framework.

1. Utilize Source Annotations

If you’re a beginning programmer, you’ll soon realize that a major part of writing code is correctly writing source annotations and comments. while this tip isn’t necessarily Rails specific, it sure does pertain to solid rails coding. if you’re going to annotate your code, use these aptly named keywords:

  • TODO – Used to show code that is incomplete or needs some work
  • FIXME – Used to show code that is broken or buggy
  • OPTIMIZE – Used where further optimizations need to be done

Using these function while programming Rails is especially helpful as Rails allows for adding rake tasks that help you search the code for all the occurrences and prints them out with the file name, line number, and the description.

rake notesapp/controllers/contacts_controller.rb: * [ 3] [TODO] factor out model verification to a filter * [ 4] [OPTIMIZE] optimize this * [ 5] [FIXME] it’s broken

Perfect for finding those little things that need some TLC within your code.

2. Monitor your Apps!

As your Rails applications start to become more complex, you’ll start to notice that some processes might need a tad more TLC in terms of optimization. In order to find those little bugs and errors in your code, try using the excellent Relic RPM to monitor your applications. Relic RPM gives you a chance to monitor all of the processes of your application, and gives you visual graphs and other helpful information to really get a handle on the processes that are causing slowness in your app.

The RailsTips blog has an excellent review of Relic RPM. Analytics are indispensable for developing successful and efficient Rails applications.

3. Group Operations in a Transaction

ActiveRecord is the handy persistence engine that allows you to do many cool things with data and logic. One of the really handy things that ActiveRecord allows you to do is to group multiple inserts in a single transaction. Zen and the Art of Computing gives an excellent example of this technique.

my_collection.each do |q| Quote.create({:phrase => q}) endQuote.transaction do my_collection.each do |q| Quote.create({:phrase => q}) endend

or for rolling back the whole transaction if any insert fails, use:

Quote.transaction do my_collection.each do |q| quote = Quote.new({:phrase => q}) quote.save! endend4. Sift through Page Elements with RJS

One of the incredibly useful aspects of Rails is the built-in support for Javascript and AJAX integrations. They even include a templating language for Javascript called RJS templates. RJS allows the programmer to easily update multiple elements of the page with AJAX.

To take the example a step further, you can use RJS to iterate through page elements and dynamically change them using AJAX. you can even change the elements on the page through CSS queries. For example, you could do something like:

page.select(‘#cssid li’).each { |item| item.hide }

Nifty, eh? Sifting through the elements can be incredibly powerful to use inside your application’s interface.

5. Cache Unchanging Data at Application Startup

Performance may not be a huge issue in the development stages of learning Rails, but eventually you’ll want to reach a point where your app is running quickly and smoothly. Caching is an excellent way to speed up an application. RubyInside has an excellent tip on how to cache data that isn’t changed often.

“If you have data that doesn’t change between application restarts, cache it in a constant somewhere. For example, you might have a YAML or XML file in /config that stores application configuration data, and you could load it into a constant in environment.rb, making lookups quick and easy application-wide.”

6. Practice to become a Rails Ninja

While it’s easy to get started with Rails, it takes work to become a pro. Many times beginning programmers believe that frameworks like Rails take out that learning curve, allowing them to quickly become experts. It never works that way. the Framework is only a tool to help you overcome many of the repetitive tasks associated with Ruby.

Jay Fields knows that mastering Rails isn’t easy. In fact he goes on to say the following:

“The screencasts and pictures don’t lie. It is easy to learn Rails and quickly become productive. however, the dirty little secret is that it’s very hard to be come an expert at utilizing Rails.

“Rails provides many helpers that make your life easy. but, you can’t entirely hide the fact that you’ll need to be proficient with Ruby, JavaScript, YAML, and SQL. Just like Rails, getting started with any of the above languages is easy, it’s mastering them that takes time and effort.

“You should always remember that the biggest aspect of becoming an expert is time and practice. Rails is a great framework, but it can only help you so far without doing any extra learning.”

7. move JavaScript to the Bottom

This is actually a great rule of thumb for just about any language, and it’s good to remember if you’re just getting started with Rails as well. Moving the Javascript includes to the bottom of the template (right before the

10 Awesome Ruby on Rails Techniques to Get You Started

Leave a Comment :, , more...


Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!