TheMadAdmin

April 29, 2008

Web 2.0 Built In The Cloud

Filed under: Something to Talk About — The Mad Admin @ 8:44 am

Animoto.com If you have not looked at it yet you should.  What they produce using your images and music is incredible.  What also blows my mind is they are doing it without a physical server.  They are using Amazon Web Services(AWS).  This site lives in the cloud and can expand quickly.

A Blurb from Animoto (Animation Motion)

Animoto’s front end is built on the open source web framework Ruby on Rails, facilitating rapid “Web 2.0″ (Ajax, etc) application development. Animoto has partnered with Amazon to leverage multiple offerings in their Web Services (AWS) platform which, in conjunction with Animoto’s own render farm, constitutes the Animoto web infrastructure.

This is not your Dad’s slide show.  Very cool and I can hardly call it a slide show.

Check them out.

April 28, 2008

TheMadAdmin Is Changing Jobs

Filed under: I.T., Office Life — The Mad Admin @ 11:03 am

While I have worked at my current company for many years (on and off) I have just accepted an offer from another firm and will be embarking on a new adventure in my career.

I have taken a position as a Director of Information Technology for a company, a very cool spot.  But what makes this even better is, I get to spend time coding. (Not full time but I hope to get it up to 1/3 of the day).  As anyone that reads this blog knows I do enjoy coding.

So if the post rate drops off, it is probably due to the fact I am learning a new system and coding into the wee hours of the morning.

I am looking forward to this change.

TheMadAdmin

April 23, 2008

Great Article About Amazon’s Web Services or Cloud Computing

Filed under: I.T. — The Mad Admin @ 8:21 am

From Wired

Photo: Joe Pugliese

Jeff Bezos’ store in the sky is hard to beat for books, CDs, and a zillion other products. It’s also great for quick technology fixes. Say you need a fat HP server for hosting the too-moronic-to-fail Facebook app you plan to launch next week. Only $1,300 and change! Hit 1-Click. Select expedited shipping. What’s for lunch?

But there’s a cheaper, faster, better way to satisfy your hardware jones. Tucked over on the left side of the page, the nerd gnomes in Beacon Hill, Seattle, have embedded an option that blows computer shopping into, well, the clouds. Click on “Amazon Web Services.” Key in your Amazon ID and password and behold: a data center’s worth of computing power carved into megabyte-sized chunks and wired straight to your desktop. Clones of that HP tower cost 10 cents per hour — 10 cents! — and they’re set to start spitting out widgets as soon as you upload the code. Virtual quad cores are a princely 80 cents an hour. Need storage? All you can eat for 15 cents per gigabyte per month. And there’s even a tool for monitoring your virtual stack with an iPhone. No precious cash tied up in soon-to-be-obsolete silicon, no 3 am runs to the colo cage. Outsource your infrastructure to Amazon!

You do get a lot of bang for your buck on Amazon, the best part is being able to scale quickly.  You can go from 1 machine to a thousand machines in minutes.  No I.T. department can match that.

April 18, 2008

NY Flex

Filed under: Something to Talk About — The Mad Admin @ 6:48 am

Elrom gave a talk on mashups and some of the Flex related issues in making them.  The world is not Flash Friendly, can you say crossdomain.xml?

Elrom made a mashup describe as:

The Mashup allows you to search for Adobe Flex Developers Jobs based on your Zip code. In addition, you can SMS a job posting to your cell phone. I used two Application Programming Interfaces (APIs), a web service and skin styling

Pretty cool and done in 5 hours.  He said he would release the source code.

It was a good meeting and as always Avenue A/Razor Fish was a great host.

 

I’ll post more links later, I am on the bus heading to Flexcamp,”Flex on Wall Street”.

TheMadAdmin

April 17, 2008

NYFLEX Meeting

Filed under: Something to Talk About — The Mad Admin @ 5:07 pm

I am sitting in the at the NY Flex user group meeting waiting for the meeting to ramp up (I got here early).  Topic tonight is mashups.  They are going to go over some popular APIs.  Looking forward  to it and will report back how it goes.

 

TMA

Linux Kernel 2.6.25 Released

Filed under: Something to Talk About — The Mad Admin @ 8:59 am

http://www.kernel.org/

 

There are a lot of changes and improvements in this Kernel.

From kernelnewbies

1.1. Memory Resource Controller

Recommended LWN article (somewhat outdated, but still interesting): “Controlling memory use in containers”

The memory resource controller is a cgroups-based feature. Cgroups, aka “Control Groups”, is a feature that was merged in 2.6.24, and its purpose is to be a generic framework where several “resource controllers” can plug in and manage different resources of the system such as process scheduling or memory allocation. It also offers a unified user interface, based on a virtual filesystem where administrators can assign arbitrary resource constraints to a group of chosen tasks. For example, in 2.6.24 they merged two resource controllers: Cpusets and Group Scheduling. The first allows to bind CPU and Memory nodes to the arbitrarily chosen group of tasks, aka cgroup, and the second allows to bind a CPU bandwidth policy to the cgroup.

The memory resource controller isolates the memory behavior of a group of tasks -cgroup- from the rest of the system. It can be used to:

  • Isolate an application or a group of applications. Memory hungry applications can be isolated and limited to a smaller amount of memory.
  • Create a cgroup with limited amount of memory, this can be used as a good alternative to booting with mem=XXXX.
  • Virtualization solutions can control the amount of memory they want to assign to a virtual machine instance.
  • A CD/DVD burner could control the amount of memory used by the rest of the system to ensure that burning does not fail due to lack of available memory.

The configuration interface, like all the cgroups, is done by mounting the cgroup filesystem with the “-o memory” option, creating a randomly-named directory (the cgroup), adding tasks to the cgroup by catting its PID to the ‘task’ file inside the cgroup directory, and writing values to the following files: ‘memory.limit_in_bytes’, ‘memory.usage_in_bytes’ (memory statistic for the cgroup), ‘memory.stats’ (more statistics: RSS, caches, inactive/active pages), ‘memory.failcnt’ (number of times that the cgroup exceeded the limit), and ‘mem_control_type’. OOM conditions are also handled in a per-cgroup manner: when the tasks in the cgroup surpass the limits, OOM will be called to kill a task between all the tasks involved in that specific cgroup.

Code: (commit 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)

1.2. Real Time Group scheduling

Group scheduling is a feature introduced in 2.6.24. It allows to assign different process scheduling priorities other than nice levels. For example, given two users on a system, you may want to to assign 50% of CPU time to each one, regardless of how many processes is running each one (traditionally, if one user is running f.e. 10 cpu-bound processes and the other user only 1, this last user would get starved its CPU time), this is the “group tasks by user id” configuration option of Group Scheduling does. You may also want to create arbitrary groups of tasks and give them CPU time privileges, this is what the “group tasks by Control Groups” option does, basing its configuration interface in cgroups (feature introduced in 2.6.24 and described in the “Memory resource controller” section).

Those are the two working modes of Control Groups. Aditionally there’re several types of tasks. What 2.6.25 adds to Group Scheduling is the ability to also handle real time (aka SCHED_RT) processes. This makes much easier to handle RT tasks and give them scheduling guarantees.

Documentation: sched-rt-group.txt

Code: (commit 1, 2, 3, 4)

There’s serious interest in running RT tasks on enterprise-class hardware, so a large number of enhancements to the RT scheduling class and load-balancer have been merged to provide optimum behaviour for RT tasks.

Code: (commit 1, 2, 3, 4, 5, 6, 7, 8, 9)

1.3. RCU Preemption support

Recommended LWN article: “The design of preemptible read-copy-update”

RCU is a very powerful locking scheme used in Linux to scale to very large number of CPUs on a single system. However, it wasn’t well suited for low latency,RT-ish workloads, and some parts could cause high latency. In 2.6.25, RCU can be preempted, eliminating that source of latencies and making Linux a bit more RT-ish.

Code: (commit 1, 2)

1.4. FIFO ticket spinlocks in x86

Recommended LWN article: “Ticket spinlocks”

In certain workloads, spinlocks can be unfair, ie: a process spinning on a spinlock can be starved up to 1,000,000 times. Usually starvation in spinlocks is not a problem, and it was thougt that it was not too important because such spinlock would become a performance problem before any starvation is noticed, but testing has showed the contrary. And it’s always possible to find an obscure corner case that will generate a lot of contention on some lock, and the processor that will grab the lock does it randomly.

With the new spinlocks, the processes grab the spinlock in FIFO order, ensuring fairness (and more importantly, guaranteeing to some point the

Spinlocks configured to run on machines with more than 255 CPUs will use a 32-bit value, and 16 bits when the number of CPUs is smaller. As a bonus, the maximum theorical number of limit of CPUs that Linux can support is raised up to 65536 processors.

Code: (commit 1, 2)

1.5. Better process memory usage measurement

Recommended LWN article: “How much memory are applications really using?”

Measuring how much memory processes are using is more difficult than it looks, specially when processes are sharing the memory used. Features like /proc/$PID/smaps (added in 2.6.14) help, but it has not been enough. 2.6.25 adds new statistics to make this task easier. A new /proc/$PID/pagemaps file is added for each process. In this file the kernel exports (in binary format) the physical page localization for each page used by the process. Comparing this file with the files of other processes allows to know what pages they are sharing. Another file, /proc/kpagemaps, exposes another kind of statistics about the pages of the system. The author of the patch, Matt Mackall, proposes two new statistic metrics: “proportional set size” (PSS) - divide each shared page by the number of processes sharing it; and “unique set size” (USS) (counting of pages not shared). The first statistic, PSS, has also been added to each file in /proc/$PID/smaps. In this HG repository you can find some sample command line and graphic tools that exploits all those statistics.

Code: (commit 1, 2, 3, 4)

1.6. timerfd() syscall

timerfd() is a feature that got merged in 2.6.22 but was disabled due to late complaints about the syscall interface. Its purpose is to extend the timer event notifications to something else than signals, because doing such things with signals is hard. poll()/epoll() only covers file descriptors, so the options were a BSDish kevent-like subsystem or delivering time notifications via a file descriptor, so that poll/epoll could handle them.

There were implementations for both approachs, but the cleaner and more “unixy” design of the file descriptor approach won. In 2.6.25, a revised API has been finally introduced. The API can be found in this LWN article

Code: (commit)

1.7. SMACK, Simplified Mandatory Access Control

Recommended LWN article: “Smack for simplified access control”

The most used MAC solution in Linux is SELinux, a very powerful security framework. SMACK is an alternative MAC framework, not so powerful as SELinux but simpler to use and configure. Linux is all about flexibility, and in the same way it has several filesystems, this alternative security framework doesn’t pretends to reemplaze SELinux, it’s just an alternative for those who find it more suited to its needs.

From the LWN article: Like SELinux, Smack implements Mandatory Access Control (MAC), but it purposely leaves out the role based access control and type enforcement that are major parts of SELinux. Smack is geared towards solving smaller security problems than SELinux, requiring much less configuration and very little application support.

Code: (commit)

1.8. Latencytop

Recommended LWN article: “Finding system latency with LatencyTOP”

Slow servers, Skipping audio, Jerky video - everyone knows the symptoms of latency. But to know what’s really going on in the system, what’s causing the latency, and how to fix it… those are difficult questions without good answers right now. LatencyTOP is a Linux tool for software developers (both kernel and userspace), aimed at identifying where system latency occurs, and what kind of operation/action is causing the latency to happen. By identifying this, developers can then change the code to avoid the worst latency hiccups.

There are many types and causes of latency, and LatencyTOP focus on type that causes audio skipping and desktop stutters. Specifically, LatencyTOP focuses on the cases where the applications want to run and execute useful code, but there’s some resource that’s not currently available (and the kernel then blocks the process). This is done both on a system level and on a per process level, so that you can see what’s happening to the system, and which process is suffering and/or causing the delays.

You can find the latencytop userspace tool, including screenshots, at latencytop.org.

Code: (commit)

1.9. BRK and PIE executable randomization

Exec-shield is a Red Hat that was started in 2003 by Red Hat to implement several security protections and is mainly used in Red Hat and Fedora. Many features have already been merged lot of time ago, but not all of them. In 2.6.25 two of them are being merged: brk() randomization and PIE executable randomization. Those two features should make the address space randomization on i386 and x86_64 complete.

Code (commit 1, 2, 3)

1.10. Controller area network (CAN) protocol support

Recommended LWN article: “PF_CAN”

From the “Controller Area Network” Wikipedia article: Controller Area Network (CAN or CAN-bus) is a computer network protocol and bus standard designed to allow microcontrollers and devices to communicate with each other and without a host computer.. This implementation has been contributed by Volkswagen.

Code: (commit 1, 2, 3, 4, 5, 6)

1.11. ACPI thermal regulation/WMI

In 2.6.25 ACPI adds thermal regulation support (commit 1, 2, 3, 4) and a WMI (Windows Management Interface, a proprietary extension to ACPI) mapper (commit 1, 2, 3)

1.12. EXT4 update

Recommended article: “A better ext4″

EXT4 mainline snapshot gets an update with a bunch of features: Multi-block allocation, large blocksize up to PAGE_SIZE, journal checksumming, large file support, large filesystem support, inode versioning, and allow in-inode extended attributes on the root inode. These features should be the last ones that require on-disk format changes. Other features that don’t affect the disk format, like delayed allocation, have still to be merged.

Code: (commit 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11)

1.13. MN10300/AM33 architecture support

The MN10300/AM33 architecture is now supported under the “mn10300″ subdirectory. 2.6.25 adds support MN10300/AM33 CPUs produced by MEI. It also adds board support for the ASB2303 with the ASB2308 daughter board, and the ASB2305. The only processor supported is the MN103E010, which is an AM33v2 core plus on-chip devices.

Code: (commit)

April 11, 2008

TheMadAdmin Has Been Busy

Filed under: Office Life — The Mad Admin @ 9:18 am

This week I have been working on work.  Go figure. 

Technorati Tags: ,,,

I have had to put together business plans, executive memos and have meetings.  All to tell the people who control the purse strings that I do good work and need some recognition and funding for the Service Desk I have put together.

My last memo is sent.  I am done.

So the ball is in their court now.

Wish me luck, or send me job offers.

 

TMA

April 8, 2008

New Host

Filed under: Internet — The Mad Admin @ 10:41 am

I just got a new host for one of my sites HOSTGATOR.

 

Pretty good plan.  No set up fee and a 45 day money back guarantee.  I needed a host that had PHP 5 installed so I could work with web orb.  These guys fit the bill and gave copious amounts of storage and bandwidth.  Plus the latest version on CPANEL and Fantastico. 

Use the code wordpress to start the first month for 1 cent.  Yes 1/100th of a dollar. 

 

I highly recommend this host.

 

TheMadAdmin

Technorati Tags: ,,,

April 4, 2008

Battle Star Galactica Is Back

Filed under: Something to Talk About — The Mad Admin @ 11:46 am

Wired

 

 

This is one of the best shows on TV today.  In my opinion.

April 3, 2008

Going To Flex On Wall Street (FLEXCAMP)

Filed under: Coding, Flex — The Mad Admin @ 10:32 am
Technorati Tags: ,,

I am looking forward to this, lots of information to learn and great people top talk with.

 

Meet with the Flex experts and get ready to build your next cutting edge financial application.
Be there to catch-up with the famous Adobe Flex & AIR evangelists — Christophe Coenraets & James Ward. You have read their blogs, now talk to them live. A full-day event for Flex developers and architects and the Flex-curious.

 

Speakers

Speaker Profiles

Christophe Coenraets is a Principal Product Manager and Evangelist (at Adobe) working on Flex with an Enterprise twist in the BlazeDS and LiveCycle Data Services Engineering Team. Christophe joined Macromedia in 2000 as a J2EE Evangelist, and started working on Flex from its early days. Before joining Macromedia, Christophe was at Powersoft / Sybase from 1994 to 2000 where he managed Technical Evangelism. Christophe has been a regular speaker at conferences worldwide for the last 10 years. His blog is popularly read by all in the RIA community.
In this keynote, Christophe Coenraets will review the state of Rich Internet Applications in the context of some of the new and exciting features of Flex 3, AIR, BlazeDS, and the upcoming version of LiveCycle Data Services. Christophe will demonstrate how these features along with new projects and initiatives at Adobe can profoundly transform financial services applications.

Yakov Fain is a managing principal of Farata Systems, consulting, training and product company. He has authored several Java books, dozens of technical articles. Recently, Yakov has co-authored an advanced book, Rich Internet Applications with Adobe Flex and Java: Secrets of the Masters. Sun Microsystems has nominated and awarded Yakov with the title Java Champion. He leads the Princeton Java Users Group. He is an Adobe Certified Flex Instructor. Yakov holds Masters Degree in Applied Math. You can reach him at yfain@faratasystems.com

Michael Labriola has been developing Internet applications since 1995 and has been working with Flex since its 1.0 beta program. He specializes in developing applications with high business impact using emerging technologies. Michael worked as an author and technical editor on Adobe Flex 2: Training from the Source and has published a series of articles on Adobe’s Developer Center teaching others to integrate Flex client and server technologies. As a frequent speaker on Flex topics and contributor to Flex mailing lists, he is known throughout the developer community. Michael also speaks Spanish and Italian, and pretends to speak more Japanese than he actually knows. Michael is currently a senior consultant at Digital Primates IT Consulting Group. (Michael’s Blog)

Mike Nimer is a former member of the Adobe ColdFusion engineering team. There he was responsible for the integration of Flex 2 with ColdFusion Server as well as many other current features of ColdFusion. Before joining the Adobe engineering team he worked for three years as a senior consultant with the Macromedia consulting group, assisting clients on-site with their architectural planning, code reviews, and performance tuning. He has spoken at every Allaire & Macromedia DevCon/Adobe MAX since they began 1998. Mike is currently a senior consultant at Digital Primates IT Consulting Group. (Mike’s Blog)

James Ward is a Technical Evangelist for Flex at Adobe and Adobe’s JCP representative to JSR 286, 299, and 301. Much like his love for climbing mountains he enjoys programming because it provides endless new discoveries, elegant workarounds, summits and valleys. His adventures in climbing have taken him many places. Likewise, technology has brought him many adventures, including: Pascal and Assembly back in the early 90’s; Perl, HTML, and JavaScript in the mid 90’s; then Java and many of it’s frameworks beginning in the late 90’s. Today he primarily uses Flex to build beautiful front-ends for Java based back-ends. Prior to Adobe, James built a rich marketing and customer service portal for Pillar Data Systems.

Shashank Tiwari is the Chief Technologist at Saven Technologies, a technology driven business solutions company headquartered in Chicago, IL. As an experienced software developer and architect, he is adept in a multitude of technologies. He is an expert group member on a number of JCP (Java Community Process) specifications, JSRs 274, 283, 299, 301 & 312, and is an Adobe Flex Champion. Currently, he passionately builds rich high performance applications and advises many on RIA and SOA adoption. Many of his clients are banking, money management, and financial service companies that he has helped build robust, quantitative, data-intensive, highly interactive, and scalable applications. He writes regularly in many technical magazines, presents in seminars and mentors developers and architects. He has a popular blog on the O’Reilly Network. He is an ardent supporter of and contributor to open source software. He lives with his wife and two sons in New York. More information about him can be accessed at his website.

Victor Rasputnis is a Managing Principal of Farata Systems. He’s spends most of his time providing architectural design, implementation management and mentoring to companies migrating to Flex and JEE technologies. Victor authored several books and technical articles. Recently, he has co-authored an advanced book, Rich Internet Applications with Adobe Flex and Java: Secrets of the Masters. Victor holds a PhD in computer science from the Moscow Institute of Robotics.You can reach him at vrasputnis@faratasystems.com

Older Posts »

Powered by WordPress