Recently someone came to me with a question on how to prevent users of a web application from misusing the session. Specifically, she wanted to know how to prevent users from copying a cookie from another user and then using that to stay logged in for a long time.
Digging into the subject a bit, it became clear that session attacks are one of the tricky ones to test and protect against, as every countermeasure that you take has some negative effects also on the user (either as a flexibility or user experience trade-off)
As described in this link, http://www.lucato.it/session-security ; the session atttacks fall into three categories : Session pollution, Session hijacking and Session Fixation.
This link http://www.acros.si/papers/session_fixation.pdf gave a background on the need of session and details about the session fixation and session Hijacking, and the possible measures that the developer can take to ward off these attacks.
However the list of countermeasures is always a trade-off, as said before.
A list of measures that are not much restrictive from a user experience point of view, and are effective from a security point of view is needed.
Some useful measures :
- The sessions expire in 30 minutes
- The cookies are configured as httpOnly and secure (not all browsers support this, notably Opera and Safari)
- Randomly change the session ID
- Invalidate any previous sessions on login each time, with the consequence that you can have only one login instance active at a time.
Friday, 1 June 2012
Tuesday, 27 March 2012
Automated acceptance testing of Android Mobile Apps using Robotium
Robotium : your mobile application's trusted friend
Acceptance testing (testing the product as a black box, from the end costumer’s perspective) is required for all products before delivering to the client. In the case of Mobile Applications, this is complicated by the diverse platforms available and the time that is needed to test these manually. This is further complicated by the fact that in these days, the same application might be ported to various formats (Symbian, J2ME, iPhone, Android, Palm, Web-app, etc..). Manual testing of these applications are time consuming and error prone, and hence a better solution needs to be found.
Automation of such tests is a time tested solution, borrowed from the PC environment, where tools such as Selenium has been used for years to do automated acceptance testing.
Robotium is an open source project, aimed at bringling selenium-like functionality of test automation to the Android platform.
Assuming you have a basic knowledge of Android application development. Read the references indicated if not.
Getting to run from Eclipse
Step 1. Installing android sdk and building and running your application on the emulator.
Step2: download Robotium and include it in the project references of your application
Step3: build with the new robotium,
Step 4: Run as Android JUnit test case
Getting to run from outside Eclipse:
Go to the project directory, do android –p . …
Now that you can manually do this, let us see how we can integrate this to a Continuous Integration tool such as Hudson.
Step 1: install Hudson
Step2: install the android sdk and Robotium as the user Hudson
Step3: install ant android plugin of Hudson
Step4: include svn
Step5: in the ant build options, give your build.xml of the project
Now when you start a build, from Hudson, you can see that there is an INJECT_EVENTS_PERMISSION needed error for the application. This is due to the fact that the screen Is locked. So you need to programmatically unlock the screen. I have a program that does this, (thanks to this blog post), and it needs to be installed and launched prior to the test application.
Making sense of the results..
The results are written to a log file, this could be parsed to see success or failure.
Sunday, 1 January 2012
Firefox fails ecmascript test
ECMAScript, the self proclaimed "language of the web" has become the cornerstone of contemporarty web front end engineering.
There is an official test suite maintained by ECMAScript, which will allow anyone to test his/her browser against the specs. This would run a test suite of more than 1000 tests and give a report.
I evaluated FireFox4, Safari on my Mac OSX 10.6.7
Turned to Safari5
There is an official test suite maintained by ECMAScript, which will allow anyone to test his/her browser against the specs. This would run a test suite of more than 1000 tests and give a report.
I evaluated FireFox4, Safari on my Mac OSX 10.6.7
![]() |
| Firefox 4 results of ECMAScript at test262.com |
Monday, 10 October 2011
Multi-core software and Thread Building Blocks from Intel
As processor clock speeds are nearing their physical maximums, CPU vendors have turned to increasing the number of cores.
For eg, Intel 4 core is now commonplace, and the company promises an 80 core one in 4 years time.
What does this mean to us, software engineers?
Until now, we enjoyed a "free lunch" of more speed whenever a new CPU with a higher clock speed was released, without changing a single line of code.
But this is no longer true for multi-core. Because, upgrading to an N core cpu doesn't automatically mean that the same application will now run N times faster.
The application has to be split explicitly into several threads, which could be launched simultaneously on different cores to take advantage of the parallel computation power.
I was looking into how this will affect the way we design of our applications in TID.
The most common way to design applications to take advantage of parallel computing power is to use threads.
So we use a threading library, such as pthreads for eg. Then we design the application from serial to parallel work-flows, using these threads. Sounds good.
But, the problems with this are concurrency issues, synchronization issues, and scalability issues.
While concurrency and synchronization can be solved by clever design, scalability is not. If we have a new cpu with more cores, we need to increase the number of threads
to take advantage of these new cores. This means re-writing the code MANUALLY and ASSUMING the underlying hardware.
While playing with this, I came across the Open source Thread Building blocks from Intel. ( http://www.threadingbuildingblocks.org/ )
This is a library (also known as TBB) based on C++ templates developed by Intel for writing software programs that take advantage of multi-core processors.
This library consists of data structures and algorithms that allow a programmer to avoid some complications arising from the use of native threading packages such as POSIX threads, Windows threads, etc as above.
TBB abstracts access to the multiple processors by allowing the operations to be treated as "tasks," which are allocated to individual cores dynamically by the library's run-time engine, and by automating efficient use of the cache. This approach decouples the programming from the particulars of the underlying machine.
The library provides some "template methods" that you call, and it will take care of creating optimum number of threads, based on cpu cores and balances these.
To test this claim by Intel, I made a simple application of Image Addition and ran it on my Pentium Dual Core.
The idea was to add two large images(1200X1200), pixel by pixel, and produce a third Image.
First I did it in one thread, using a nested for loop, and then I did it by using TBB, which I downloaded from the site above.
(Refer to the code in main.C, enclosed)
The Serial way :
for( int j=0;j
for( int i=0;i
//sum pixels from ImageA and ImageB, store to ImageC
}
Now the Parallel way, using TBB:
parallel_for(blocked_range(0, height, 100),
ImageSummer( imA, imB, imD ) );
...
Here,
- parallel_for is a template function, that basically launches parallel tasks within a range, (0 up to height), dividing the range into sub-ranges, with a granularity of 100.
- ImageSummer is a C++ class that you need to implement with overloaded () operator, where you do the meat of the thread's code.
void ImageSummer::operator() ( const blocked_range& r ) const {
for ( int j = r.begin(); j != r.end(); j++ ) { // iterates over the entire chunk
for( int i=0;iwidth;i++ ) {
//sum pixels from ImageA and ImageB, store to ImageC
}
The timing results were :
serial : 1502665626 nanoseconds
TBB : 829685710 nanoseconds. i.e, faster by 670 ms, or .6 seconds.
I verified that these tasks are indeed launched on two cores, by the gnome-system-monitor and I saw two peaks in the parallel case(for the two cores), and one peak(only in 1 cpu) in the first case.
parallel_for is just one of the many such abstractions available in this library. Other operations include:
parallel_for
parallel_while
parallel_reduce
pipeline
parallel_sort
parallel_scan
More details of these can be found in the website mentioned above.
Under the hood, TBB implements "task stealing" to balance a parallel workload across available processing cores in order to increase core utilization and therefore scaling. The TBB task stealing model is similar to the work stealing model applied in Cilk. Initially, the workload is evenly divided among the available processor cores. If one core completes its work while other cores still have a significant amount of work in their queue, TBB reassigns some of the work from one of the busy cores to the idle core. This dynamic capability DECOUPLES the programmer from the machine, allowing applications written using the library to scale to utilize the available processing cores with no changes to the source code or the executable program file.
I am still trying to get into grips with the other features provided. But so far it sounds interesting.
In summary, my take on this is as follows:
Pros:
- Excellent for abstracting multi-threading for multi-core CPUs and avoiding pitfalls at the same time
- Comes from Intel, and hence, fine-tuned for Intel processors.
- code automatically scales to number of cores, without recompiling.
- is Open source with similar licensing as C++ STL, with a commercial version with no functionality difference is also available.
Cons:
- Template based, and C++ based. But you don't have to be a C++ expert to use it
- So the executables might be bulky. Debugging might not be as straightforward as with simple C.
But without some pain, there is no gain, no ?
For eg, Intel 4 core is now commonplace, and the company promises an 80 core one in 4 years time.
What does this mean to us, software engineers?
Until now, we enjoyed a "free lunch" of more speed whenever a new CPU with a higher clock speed was released, without changing a single line of code.
But this is no longer true for multi-core. Because, upgrading to an N core cpu doesn't automatically mean that the same application will now run N times faster.
The application has to be split explicitly into several threads, which could be launched simultaneously on different cores to take advantage of the parallel computation power.
I was looking into how this will affect the way we design of our applications in TID.
The most common way to design applications to take advantage of parallel computing power is to use threads.
So we use a threading library, such as pthreads for eg. Then we design the application from serial to parallel work-flows, using these threads. Sounds good.
But, the problems with this are concurrency issues, synchronization issues, and scalability issues.
While concurrency and synchronization can be solved by clever design, scalability is not. If we have a new cpu with more cores, we need to increase the number of threads
to take advantage of these new cores. This means re-writing the code MANUALLY and ASSUMING the underlying hardware.
While playing with this, I came across the Open source Thread Building blocks from Intel. ( http://www.threadingbuildingblocks.org/ )
This is a library (also known as TBB) based on C++ templates developed by Intel for writing software programs that take advantage of multi-core processors.
This library consists of data structures and algorithms that allow a programmer to avoid some complications arising from the use of native threading packages such as POSIX threads, Windows threads, etc as above.
TBB abstracts access to the multiple processors by allowing the operations to be treated as "tasks," which are allocated to individual cores dynamically by the library's run-time engine, and by automating efficient use of the cache. This approach decouples the programming from the particulars of the underlying machine.
The library provides some "template methods" that you call, and it will take care of creating optimum number of threads, based on cpu cores and balances these.
To test this claim by Intel, I made a simple application of Image Addition and ran it on my Pentium Dual Core.
The idea was to add two large images(1200X1200), pixel by pixel, and produce a third Image.
First I did it in one thread, using a nested for loop, and then I did it by using TBB, which I downloaded from the site above.
(Refer to the code in main.C, enclosed)
The Serial way :
for( int j=0;j
for( int i=0;i
//sum pixels from ImageA and ImageB, store to ImageC
}
Now the Parallel way, using TBB:
parallel_for(blocked_range
ImageSummer( imA, imB, imD ) );
...
Here,
- parallel_for is a template function, that basically launches parallel tasks within a range, (0 up to height), dividing the range into sub-ranges, with a granularity of 100.
- ImageSummer is a C++ class that you need to implement with overloaded () operator, where you do the meat of the thread's code.
void ImageSummer::operator() ( const blocked_range
for ( int j = r.begin(); j != r.end(); j++ ) { // iterates over the entire chunk
for( int i=0;i
//sum pixels from ImageA and ImageB, store to ImageC
}
The timing results were :
serial : 1502665626 nanoseconds
TBB : 829685710 nanoseconds. i.e, faster by 670 ms, or .6 seconds.
I verified that these tasks are indeed launched on two cores, by the gnome-system-monitor and I saw two peaks in the parallel case(for the two cores), and one peak(only in 1 cpu) in the first case.
parallel_for is just one of the many such abstractions available in this library. Other operations include:
parallel_for
parallel_while
parallel_reduce
pipeline
parallel_sort
parallel_scan
More details of these can be found in the website mentioned above.
Under the hood, TBB implements "task stealing" to balance a parallel workload across available processing cores in order to increase core utilization and therefore scaling. The TBB task stealing model is similar to the work stealing model applied in Cilk. Initially, the workload is evenly divided among the available processor cores. If one core completes its work while other cores still have a significant amount of work in their queue, TBB reassigns some of the work from one of the busy cores to the idle core. This dynamic capability DECOUPLES the programmer from the machine, allowing applications written using the library to scale to utilize the available processing cores with no changes to the source code or the executable program file.
I am still trying to get into grips with the other features provided. But so far it sounds interesting.
In summary, my take on this is as follows:
Pros:
- Excellent for abstracting multi-threading for multi-core CPUs and avoiding pitfalls at the same time
- Comes from Intel, and hence, fine-tuned for Intel processors.
- code automatically scales to number of cores, without recompiling.
- is Open source with similar licensing as C++ STL, with a commercial version with no functionality difference is also available.
Cons:
- Template based, and C++ based. But you don't have to be a C++ expert to use it
- So the executables might be bulky. Debugging might not be as straightforward as with simple C.
But without some pain, there is no gain, no ?
Monday, 6 June 2011
Latencytop : a tool for measuring latency at kernel level
The 2.6.25 kernel of linux has a new feature called "support for latency measuring". (http://kernelnewbies.org/Linux_2_6_25)
Basically what this means is that, with a tool called Latencytop, we can measure process latencies (the time that a process waits,
for different resource access), and get a report for latencies for each process and for the whole system. (http://latencytop.org/announce.php)
A sample output is pasted below:
Cause Maximum Percentage
fsync() on a file 1351.0 msec 14.5 %
Deleting an inode 79.9 msec 0.9 %
Creating directory 30.5 msec 0.5 %
Scheduler: waiting for cpu 28.5 msec 55.8 %
Waiting for event (select) 5.0 msec 19.3 %
Waiting for event (poll) 5.0 msec 7.8 %
Userspace lock contention 4.4 msec 0.3 %
SCSI ioctl command 1.8 msec 0.1 %
Receiving TCP/IP data 1.1 msec 0.8 %
This can be used to identify bottlenecks in a system, and tune it appropriately.
I evaluated this tool and found it interesting.
Here is the step that I followed to get it working..
1. download vanilla kernel sources (2.6.25)
2. Enable the option CONFIG_LATENCYTOP in the menuconfig (so that the kernel can be told to collect these statistics)
3. build and boot with the new kernel.
4. download the latencytop source from (http://latencytop.org/announce.php)
5. make and make install latencytop
6. run sudo ./latencytop, and you get the report above.
There is very little documentation on this tool, as it is very recent. So reading the code of the program is the only way to understand some options.
I figured out that basically it keeps a list of all processes running, and in a round robin fashion, polls the latencies of these list of processes periodically.
The default period is 30 seconds, but you can change the function update_display() in the latencytop.c to get the polling period that we want.
I guess this, along with the "latency queries" of gstreamer pipelines could be useful in some way to trim down latencies in media pipelines. Any ideas ?
Basically what this means is that, with a tool called Latencytop, we can measure process latencies (the time that a process waits,
for different resource access), and get a report for latencies for each process and for the whole system. (http://latencytop.org/announce.php)
A sample output is pasted below:
Cause Maximum Percentage
fsync() on a file 1351.0 msec 14.5 %
Deleting an inode 79.9 msec 0.9 %
Creating directory 30.5 msec 0.5 %
Scheduler: waiting for cpu 28.5 msec 55.8 %
Waiting for event (select) 5.0 msec 19.3 %
Waiting for event (poll) 5.0 msec 7.8 %
Userspace lock contention 4.4 msec 0.3 %
SCSI ioctl command 1.8 msec 0.1 %
Receiving TCP/IP data 1.1 msec 0.8 %
This can be used to identify bottlenecks in a system, and tune it appropriately.
I evaluated this tool and found it interesting.
Here is the step that I followed to get it working..
1. download vanilla kernel sources (2.6.25)
2. Enable the option CONFIG_LATENCYTOP in the menuconfig (so that the kernel can be told to collect these statistics)
3. build and boot with the new kernel.
4. download the latencytop source from (http://latencytop.org/announce.php)
5. make and make install latencytop
6. run sudo ./latencytop, and you get the report above.
There is very little documentation on this tool, as it is very recent. So reading the code of the program is the only way to understand some options.
I figured out that basically it keeps a list of all processes running, and in a round robin fashion, polls the latencies of these list of processes periodically.
The default period is 30 seconds, but you can change the function update_display() in the latencytop.c to get the polling period that we want.
I guess this, along with the "latency queries" of gstreamer pipelines could be useful in some way to trim down latencies in media pipelines. Any ideas ?
Friday, 27 May 2011
Science in School
Science Day at Gerbert d'Orlhac school:
The desire to ask 'what would happen if?' is an innate quality that we all share. In many instances, satisfying this curiosity will require experiments to be designed and carried out, a process that is fundamental to almost all fields of research and innovation.Experimentation is very much a hands-on activity that at school is usually associated with lessons in science and technology. Indeed, of the few memories we have of our lessons at school, many would involve some kind of science experiment such as growing crystals, building a radio, or looking at plants through a microsope.
We are "the innovation partners" - a group of people passionate about kindling the passion for science in schools
Thursday, 5 May 2011
Gstreamer for Real Time priority tasks..
Since the support for Real-Time has been getting better and better in
linux, I propose that gstreamer should take advantage of this.
This would help pipelines with elements having time-critical or heavy
load where there is a demand for guaranteed cpu access.
This could be achieved by giving higher scheduling priority to such
plugins over others.
Hence, my proposal is to have a property called "priority" for all
elements. Then, pipelines like the following one could be launched:
gst-launch videotestsrc ! ffmpegcolorspace prio=90 ! xvimagesink
Here, the thread containing ffmpegcolorspace's buffer processing
method will get a higher priority than the rest.
Another example would be a camera capture plugin, where there is a
demand to capture frames with high accuracy.
A layered priority is also possible, as below.
gst-launch cameracapture prio=90 ! queue ! ffmpegcolorspace
prio=50 ! queue ! ffenc_h264 prio=50 ! ...
Implementation (I am sure there could be better ways, but this is what I tried):
----------------------------------------------------------------------------------------------------------------
The files modified are enclosed.
1. I installed a new property called prio in gst-object.c, after the
usual "name" property, in the method gst_object_class_init
Also, added a new field called _prio in gstobject class.
now all elements have prio property.
2. In gstpads.c, method gst_pad_push_event (GstPad * pad, GstEvent
* event) method of gstpads.c,
GstObject* objPar = (GstObject*) GST_OBJECT_PARENT (pad);
if(objPar->_prio!=0){
printf("########### Setting priority of '%s' running in
thread %x to %d ######## \n",
objPar->name,
pthread_self(),
objPar->_prio);
struct sched_param param;
memset(¶m, 0, sizeof(sched_param));
param.sched_priority = objPar->_prio;
if(sched_setscheduler(0, SCHED_FIFO, ¶m) == -1) {
printf("error in setting priority >>>>>>>>>>> \n");
}
}
This applies priorities to the threads where the element's
processing function runs.
Questions
---------------
- Is such a mechanism of different priorities useful ?
I am testing some pipelines on machines that have high loads, and see
good improvement in the overall speed of the pipeline, compared to no
priority case.
However, it needs to be seen if it introduces additional complexity.
Has anybody tested something like this?
Please give some suggestions...
-Rosh
linux, I propose that gstreamer should take advantage of this.
This would help pipelines with elements having time-critical or heavy
load where there is a demand for guaranteed cpu access.
This could be achieved by giving higher scheduling priority to such
plugins over others.
Hence, my proposal is to have a property called "priority" for all
elements. Then, pipelines like the following one could be launched:
gst-launch videotestsrc ! ffmpegcolorspace prio=90 ! xvimagesink
Here, the thread containing ffmpegcolorspace's buffer processing
method will get a higher priority than the rest.
Another example would be a camera capture plugin, where there is a
demand to capture frames with high accuracy.
A layered priority is also possible, as below.
gst-launch cameracapture prio=90 ! queue ! ffmpegcolorspace
prio=50 ! queue ! ffenc_h264 prio=50 ! ...
Implementation (I am sure there could be better ways, but this is what I tried):
----------------------------------------------------------------------------------------------------------------
The files modified are enclosed.
1. I installed a new property called prio in gst-object.c, after the
usual "name" property, in the method gst_object_class_init
Also, added a new field called _prio in gstobject class.
now all elements have prio property.
2. In gstpads.c, method gst_pad_push_event (GstPad * pad, GstEvent
* event) method of gstpads.c,
GstObject* objPar = (GstObject*) GST_OBJECT_PARENT (pad);
if(objPar->_prio!=0){
printf("########### Setting priority of '%s' running in
thread %x to %d ######## \n",
objPar->name,
pthread_self(),
objPar->_prio);
struct sched_param param;
memset(¶m, 0, sizeof(sched_param));
param.sched_priority = objPar->_prio;
if(sched_setscheduler(0, SCHED_FIFO, ¶m) == -1) {
printf("error in setting priority >>>>>>>>>>> \n");
}
}
This applies priorities to the threads where the element's
processing function runs.
Questions
---------------
- Is such a mechanism of different priorities useful ?
I am testing some pipelines on machines that have high loads, and see
good improvement in the overall speed of the pipeline, compared to no
priority case.
However, it needs to be seen if it introduces additional complexity.
Has anybody tested something like this?
Please give some suggestions...
-Rosh
Tuesday, 11 January 2011
CPU affinity Testing experiment
CPU affinity Testing experiment
Summary:
CPU affinity property has been added to the gstreamer plugins.
Objective of this test is to know whether the plugins respect the affinity that is assigned.
consider this simple pipeline
gst-launch fakesrc ! sleep ! fakesink
(sleep is a plugin that has busy wait inside its chain function.)
This shows the following cpu load distribution. (red is one cpu and blue is another)
Now, consider 2 sources, instead of 1
gst-launch fakesrc ! sleep ! fakesink fakesrc ! sleep ! fakesink
The graph looks like following:
Obviously, the kernel was intelligent in scheduling it to two cores and the two cpus where busy.
But, now with our cpu affinity setting fix, we could "force" the kernel to schedule both these plugins to the same core
as below:
gst-launch fakesrc ! sleep cpu_affinity=1 ! fakesink fakesrc ! sleep cpu_affinity=1 ! fakesink
Now, the picture looks like this:This means, that we are able to schedule the plugins to the core we want, using the cpu_affinity property that we have added.
"sleep" could be replaced with any other plugin, that we may be interested in.
- Rosh
31 Oct 2008
Thursday, 25 September 2008
Innovationn in Barcelona
Just read about Grupo intercom, a barcelona based group that ownes 30 plus companies, related to ebusiness. Among the well known ones in that group is the popular job site infojobs.net, used widely in Barcelona and spain. They say that there are around 300 people working in the group. Again, they have a very positive outlook for entrepreuners. I was fascinated by the english language used in the english version of the site, specially, the letter from one of their chairman, Antonio González-Barros about the 6 Ts for successful entrepreneirship. According to him, the six Ts are Talen, Total willingness, Tact, Tenacity, Technology, and Time.
According to el mundo, the group has a diversified development base, throughout Europe.
)
Read more about them in their website at (http://www.elmundo.es/especiales/2005/01/sociedad/500del2005/internet.html)
My personal impression about this company is that it has proven that when the right factors come up, there is nothing stopping innovation, even in Spain.
According to el mundo, the group has a diversified development base, throughout Europe.
)
Read more about them in their website at (http://www.elmundo.es/especiales/2005/01/sociedad/500del2005/internet.html)
My personal impression about this company is that it has proven that when the right factors come up, there is nothing stopping innovation, even in Spain.
Wednesday, 4 June 2008
ബാര്സിലോണ സിന്ദാബാദ് ...
കുറച്ചു നാള് ആയി വിചാരിക്കുന്നു ബാര്സിലോണ യെ കുറിച്ചു എഴുതണമെന്നു.
യൂറോപ്പ് ഇലെ ഏറ്റവും വലിയ വിനോദ സന്ചാര കേന്ദ്രം ബാര്സിലോണ ആണെന്ന് നിങ്ങല്കരിയമോ?
സ്പെയിന് ഇല ആണെന്കിലും ബാര്സിലോനക്ക് ഒരു പ്രിത്യേക സ്വഭാവം ആണ്. പല ദക്ഷിണ അമേരിക്കന് രാജ്യങ്ങളില് നിന്നും എഉരൊപില് നിന്നും ഉള്ള ജോലിക്കാരും വിനോദ സന്ച്ചരികളും ഈ നഗരത്തിനു ഒരു വൈവിധ്യം നല്കുന്നു.
ഇവിടെ കാടലന് ആണോ സ്പാനിഷ് ആണോ സംസരികീണ്ടത് എന്ന് ഇപ്പോഴും ഒരു ചോദ്യചിന്ഹമായി നിലനില്കുന്നു. പക്ഷെ രണ്ടും അറിയുന്നവരാണ് കാടലന് കാര്.
പൊതുവെ കടലന് കാര് അധികം സംസരികാറില്ല. അവര് അവരുടെ അടുത്ത ബന്ധുക്കള്, കൂടുകാര് ഇവരുടെ യൊക്കെ കൂടെ സമയം ചിലവഴിക്കും.
കാടലന് കാര് ക്ക് ഭക്ഷണം വളരെ വിലപെട്ടതാണ്. രണ്ടു മനികുര് ആണ് ഉച്ചബക്ഷണ ഇടവീല.
നമ്മള്ക്ക് അവരുമായി അടുക്കാന് കുറച്ചു സമയം എടുക്കുമെന്കിലും അടുത്ത് കഴിഞ്ഞാല് വളരെ ആഴത്തില് സൌഹൃദം ഉണ്ടാവും. മറ്റൊരു കാര്യം, അവര്ക്കു നമ്മുടെ രാജ്യത്തെ പറ്റി ഒന്നും അറിയില്ല. അതിനാല് അവര്ക്ക് ചിലപ്പോള് കാര്യങ്ങല് നമ്മള് തിരുത്തി കൊടുക്കേണ്ടി വരും.
ഇവിടെ വന്നിട്ട് ഇപ്പോള് വര്ഷം നാല്ആയി. ഇതിനകം ബാര്സ, റൊണാള്ദീന്യോ, ഒക്കെ ന്ഹങ്ങളുടെ ജീവിതത്തിന്റെ ഭാഗം ആയി മാറി...:-)
യൂറോപ്പ് ഇലെ ഏറ്റവും വലിയ വിനോദ സന്ചാര കേന്ദ്രം ബാര്സിലോണ ആണെന്ന് നിങ്ങല്കരിയമോ?
സ്പെയിന് ഇല ആണെന്കിലും ബാര്സിലോനക്ക് ഒരു പ്രിത്യേക സ്വഭാവം ആണ്. പല ദക്ഷിണ അമേരിക്കന് രാജ്യങ്ങളില് നിന്നും എഉരൊപില് നിന്നും ഉള്ള ജോലിക്കാരും വിനോദ സന്ച്ചരികളും ഈ നഗരത്തിനു ഒരു വൈവിധ്യം നല്കുന്നു.
ഇവിടെ കാടലന് ആണോ സ്പാനിഷ് ആണോ സംസരികീണ്ടത് എന്ന് ഇപ്പോഴും ഒരു ചോദ്യചിന്ഹമായി നിലനില്കുന്നു. പക്ഷെ രണ്ടും അറിയുന്നവരാണ് കാടലന് കാര്.
പൊതുവെ കടലന് കാര് അധികം സംസരികാറില്ല. അവര് അവരുടെ അടുത്ത ബന്ധുക്കള്, കൂടുകാര് ഇവരുടെ യൊക്കെ കൂടെ സമയം ചിലവഴിക്കും.
കാടലന് കാര് ക്ക് ഭക്ഷണം വളരെ വിലപെട്ടതാണ്. രണ്ടു മനികുര് ആണ് ഉച്ചബക്ഷണ ഇടവീല.
നമ്മള്ക്ക് അവരുമായി അടുക്കാന് കുറച്ചു സമയം എടുക്കുമെന്കിലും അടുത്ത് കഴിഞ്ഞാല് വളരെ ആഴത്തില് സൌഹൃദം ഉണ്ടാവും. മറ്റൊരു കാര്യം, അവര്ക്കു നമ്മുടെ രാജ്യത്തെ പറ്റി ഒന്നും അറിയില്ല. അതിനാല് അവര്ക്ക് ചിലപ്പോള് കാര്യങ്ങല് നമ്മള് തിരുത്തി കൊടുക്കേണ്ടി വരും.
ഇവിടെ വന്നിട്ട് ഇപ്പോള് വര്ഷം നാല്ആയി. ഇതിനകം ബാര്സ, റൊണാള്ദീന്യോ, ഒക്കെ ന്ഹങ്ങളുടെ ജീവിതത്തിന്റെ ഭാഗം ആയി മാറി...:-)
Tuesday, 26 June 2007
Vida diario
Primero, como siempre, de Yo.
Esta mañana, me desperté, me duché, desayuné y sali a las 9. Sindhu (mi mujer) no habia dormido bien anoche, gracias a la niña que estuvo llorando mucho. La pobresita esta constipada, y no pudo respirar facilmente por la noche. Anoche, para los dos fue una de las malas noches. Durante del noche, habian cambiado camas tres veces, para encontrar una posicion a dormir mejor para la niña.
En cambio, el Joe (mi hijo) habia dormido bien. El le gusta ver su programa favorito en la tela, se llama "Rocket Ship". Es una serie para niños, en el que cuatro niños tienen un rocket, como sus mejor amigo.
Esta mañana, me desperté, me duché, desayuné y sali a las 9. Sindhu (mi mujer) no habia dormido bien anoche, gracias a la niña que estuvo llorando mucho. La pobresita esta constipada, y no pudo respirar facilmente por la noche. Anoche, para los dos fue una de las malas noches. Durante del noche, habian cambiado camas tres veces, para encontrar una posicion a dormir mejor para la niña.
En cambio, el Joe (mi hijo) habia dormido bien. El le gusta ver su programa favorito en la tela, se llama "Rocket Ship". Es una serie para niños, en el que cuatro niños tienen un rocket, como sus mejor amigo.
Wednesday, 14 March 2007
Perfecting Castillano
Hola,
Today I would like to share my endeavours in perfecting my castillano (Spanish, as known in the Iberian peninsula). There is a saying that the last mile is often the toughest in a race. It is the case with my Spanish. Some facts : I've been living in Spain for 3 years. I have taken 1 year individual spanish course. I manage my daily life outside work with spanish. (yeah.. that means the grocery, the doctor of the kids, the school teachers, the odd rough guy conversation, the taxi driver, the maid, etc.) But, still, my spanish is not where I want it to be. I mean, I want to be really fluent, and thus be more confident in using it for business.
With this aim, I've just embarked on a Spanish2.0 mission. I surveyed several web sites that can help. The one I liked a lot is http://www.studyspanish.com There is also another one, called www.spanish.about.com which is heavily advertisement mixed. One nice feature though is a newsletter that you can subscribe which will bring to your inbox, a mail a day with a new word, or a new phrase.
It's been few days now, and I am revising the basis of verb conjugations, which for me is a hard nut to crack. I'm getting better, and hope to post in spanish in a few days time.
Today I would like to share my endeavours in perfecting my castillano (Spanish, as known in the Iberian peninsula). There is a saying that the last mile is often the toughest in a race. It is the case with my Spanish. Some facts : I've been living in Spain for 3 years. I have taken 1 year individual spanish course. I manage my daily life outside work with spanish. (yeah.. that means the grocery, the doctor of the kids, the school teachers, the odd rough guy conversation, the taxi driver, the maid, etc.) But, still, my spanish is not where I want it to be. I mean, I want to be really fluent, and thus be more confident in using it for business.
With this aim, I've just embarked on a Spanish2.0 mission. I surveyed several web sites that can help. The one I liked a lot is http://www.studyspanish.com There is also another one, called www.spanish.about.com which is heavily advertisement mixed. One nice feature though is a newsletter that you can subscribe which will bring to your inbox, a mail a day with a new word, or a new phrase.
It's been few days now, and I am revising the basis of verb conjugations, which for me is a hard nut to crack. I'm getting better, and hope to post in spanish in a few days time.
Saturday, 10 March 2007
Scottish days
Those days.. between 2001 and 2004, when I lived and worked in Scotland, were some of the most nostalgic days of my life.
I was offered a job Scotland, with Agilent, while I was working in India, in the year 2000. That was the year of the web bubble, and there were jobs available in plenty. I was planning to ride the wave like many and go to the US. But somehow that didn't materialise.
I was offered a job Scotland, with Agilent, while I was working in India, in the year 2000. That was the year of the web bubble, and there were jobs available in plenty. I was planning to ride the wave like many and go to the US. But somehow that didn't materialise.
Via Barcelona
Its been now over three years since I set foot on the Iberian peninsula. It was in Feb. 2004 that I moved from Scotland, where I was having a quasi settled life to the catalan capital Barcelona, to live and work here permanently. Gosh.. time passes so quickly..Much has happened in my personal and professional life since then. I guess it's a good occassion to stop and take a look back..
Life in Scotland was easy. well, now as I have been through life in Barcelona, I would say it was super duper easy. English language, Indian restaurants, Pubs, lot of friends from India and the UK, meant that you just floated along. Read about it in my post entitled Scotish Days.
Life in Scotland was easy. well, now as I have been through life in Barcelona, I would say it was super duper easy. English language, Indian restaurants, Pubs, lot of friends from India and the UK, meant that you just floated along. Read about it in my post entitled Scotish Days.
Friday, 9 March 2007
My journey
I found that one never ends learning until one's last breath. Each day, brings with it some wisdom that could be used in future. Today, I learned about nuclear fusion, the secret of the Sun's energy, and other stuff, from reading a project about ITER. (http://www.iter.org/a/index_nav_3.htm) This is the International Fusion Reactor project for producing energy from fusion reactions.
Reading about the mind blowing scale of the project makes me think that it is going to be one of the new milestones of mankind.. I hope to be part of it someway, just because of it's significance..
Reading about the mind blowing scale of the project makes me think that it is going to be one of the new milestones of mankind.. I hope to be part of it someway, just because of it's significance..
Subscribe to:
Posts (Atom)

