expert among non experts
We programming geeks gather together in high IT companies, and we think "why we don't have a business? why we don't feel like being treated the way we deserve? Why in spite of having so much knowledge, we don't feel famous, or well-known, or prominent?". At least I thought like that for 8 years. Now, I think there should be a general formula to this problem. Every expert must be recognized by many non-experts in that field. This makes him stand out and get the social respect and position ...
css pseudo classes first child last child
I've learned that working with CSS pseudo-classes first-child and last-child is not a good technique at all, because as soon as you add another element to the parent, they might broke. They are error-prone and not robust. This is the true concept of referential integrity. First-child and last-child get their meaning in relation to their parent and should stay integrated to be their parent's first and last child respectively, if they want to stay integrated based on their titles.
responsive web design benefits
RWD benefits: Lower maintenance costs (one codebase, multiple devices) Higher branding consistency (DRY, centralization) Higher device coverage (web as a uniquotous platform, vs. different types of OS) No need to synchronize between app and site Faster development (one knowledge for all platforms) RWD disadvantages: Not as rich as native apps (GPS, Bluetooth, etc.) Not as fast as native apps Default top-to-bottom flow in browsers vs. Right-to-left flow in native apps (for gall ...
select unique characters of a column in sql server ...
select distinct [Character], unicode([Character]) as Value from ( select substring(ColumnName, v.number + 1, 1) as [Character] from ( select * from TableName ) ibm join master..spt_values v on v.number < len(ColumnName) where v.type = 'P' ) temp order by [Character]
developer are essentially gods
Gods are creators. They create things, and to create they need power. The more power they have, the more they can turn their will into the final product and creation. That's a simple formula of being a god. If you're a mighty god, you will/wish/desire/intend something to come into the existence, and that thing comes into the existence. Developers are just like gods. Because they create things, which in their cases are software and applications. I believe that a good framework/utility ...
my company rules
You can't make employees happy, unless their lives become happy. I don't like to be judged, thus I should not judge other people.
sql server index disk usage statistics
select object_schema_name(i.[object_id]) as [Schema], object_name(i.[object_id]) as [Table], i.name as [Index], sum(used_page_count) * 8 AS [KiloBytes] from sys.indexes i join sys.dm_db_partition_stats p on p.object_id = i.object_id and i.index_id = p.index_id where [type] = 2 and object_name(i.[object_id]) not in ('sysdiagrams') and i.[object_id] in ( select [object_id] from sys.tables where [type] = 'U' ) group by i.[object_id], i.name order by [Schema], [Ta ...
select random record in sql server
select top 1 * from TableName order by NewID()
names are not the reality
What was there, before we call it "Sun"? That's a fundamental question I have in mind. Sun existed, thousands, if not millions of years, before we even create language. So, "Sun" is not real, but the object that is being referred to as "Sun" is real. "Sun" is subjective to our mind, and the star that is in the middle of the Solar System, is objective, thought we still used other names to point to it. So, let's not forget that names are just "handles" that we attach to objects the we comprehend ...
some useful shortcuts in windows
Ctrl + Alt + N => create a new folder in Windows Explorer Ctrl + N => New file Ctrl + T => New tab (specially in browsers) Ctrl + C => Copy something Ctrl + V => Paste something Ctrl + X => Cut something Ctrl + Z => Undo something Ctrl + Y => Redo something Windows + E => Opening a new Explorer window (E means explorer) Windows + L => Locking Windows (L means lock) Windows + D => Showing desktop (D means desktop) Windows + R => Run window (R ...