יום חמישי, 28 בפברואר 2013

28.02.2013

Linux

Struct file_operations

Struct file – represents open file

filp – file pointer f_mode (read , write )  , f_op  , f_pos , private data , inode

inode – represent file

i_rdev actual device number

i_cdev char device info  

process descriptor

struct tast_struct

process state –> task_running , task_interruptible , task_stopped (after signal )  task_traced (debug mode )

exit_state –> exit_zombie , exit_dead

multiplexed IO

select method waits for files to become ready (can be used to sleep )

gnome

gdk+

g_signal_connect

gdk_window_new

gdk_main

Tomcat

Tomcat class loaders

loads classes in the following hierarchy:

Bootstrap –> $java_home/jre/lib/ext + jvm

System –> $catalina_home base jars

common

Webappx –> class loaders for each web app

JAVA

getClassLoader –> every class after compilation has a property class that can retrieve the class loader

the class loader can load classes from the net or from byte array

Embedded Linux

 

LXR : Linux cross reference utility

Block drivers request struct blk_fs_request

physical memory

pg_data_t

config_page_data

The physical memory is divides to 3 parts :

Zone_DMA  , Zone_normal < 1G , Zone_Hight

http://www.makelinux.net/books/lkd2/ch11lev1sec2

mmu – memory managements unit

Kernel logic address –> 840Mb ממופה למקום קבוע

Kernel virtual address , user space , zero pages –> random opportunities

Spring

autowire = “constractor”

annotations of bean members :

@Required
@autowired –> the required can be cancel on the annotation

@qualifier

BeanInitializeException

Bash

$./myscript 3>&1 1&sdtout.log 2> &3 | tee –a stderr.log

ps –ax | tee processes.txt | more

OSGI

BundleActivator interface

context.RegisterService

Context.getServiceReferances

DDD

Refactoring

WIF

wif claims programming model

ClaimIdentity implements IIdentity

ClaimsPrincipal implements IIPrincipal

claim class

asp .net

OAuthWebSecurity

Spring integration

Gatway – sync , async

Allow to create a gateway to the channels in order to send messages

Service_Interafce = “<the interface >”

Service_Activator

maven

maven eclipse pluging

QT

require “qt”

class QTapp < qt::widget

def initialize

super

hotlable = qt::Label.new .self

 

MDX

The with statement allow to add calculation to the facts table

יום רביעי, 27 בפברואר 2013

27.02.2013

Sql server

@@Identity , Scope_identity

Ident_current

Sequence –

האפשרות לקבוע את הסדר של ההכנסה באמצעות שימוש ב over כאשר עושים insert into and select

php

parent::_construct

 

python

super (myClass ,self )._init_()

camel

Camel message model

message – unique identifier , headers attachments

body –> java.lang.object

Exchange   : envelop of the message that send over the channels

Routing engine , routes , dsl,  processor

neo4j

Cypher , gremlin neo4 traversal api

mysql

Load Data

on duplicate –> belong to create item

create table space

Redis

$redis = Redis.new (:timeout = 0 )

$redis.subscribe ( channels names ) do | on |

on.messsage do |chanell ,msg |

.

.

.

end

end

implements pub sub

Hadoop

class reducer

SetSortComperatorClass

SetGroupingComperatorClass

MongoDB

locks on the DB

read , write locks writes lock has a priory over read lock

Sharding – every instance has its on lock

CXF

cxf frontends – jax ws

contract or code first development

service endpoint interface sei

@Webservice jaxax.jws.webservice –> ServiceName , port name

@SoapBinding

@WebMethod

c++

move assignable

is_move_assignable

struct b

{

B(B&&) = delete ;

}

Regex

.

.{1,3}

http://Regexpal.com

? zero or one

Hibernate

@ManyToMany

@JoinTable

מוגדר ביחד עם ה Set

RabitMQ

ack messgae , reject a message

UPNP

When device become enable it send a multicast SSDP notify message

Control point – search for devices by sending SSDP M_SEARCH multicast message

Device description –> device data , services list

upnp control –> post http soap formating message

upnp eventing

upnp presentation –> http get page