what is difference javascript object notation and function
Difference between knockout View Models declared as object literals vs functions
Materials for learning TikZ I feel intimidated in learning TikZ. I was wondering if there are some nice materials (or just your replies) at different level:   for providing big picture, which is important to beginners to not lose direction during learning. for comprehensive reference.   Examples are important, but only examples are not always clear for understanding the big picture and organization. No sound and flash videos play super fast after daily update I just updated my 11.10 Ubuntu from the regular auto updater. After I restarted my laptop I have no sound and the videos in YouTube (and other websites) play super fast.  Not sure if it has something to do with the case, but since last night I get hd0 out of disk error before the grub screen and on the login screen I have some delay before I can type my password. In the console I see errors like these: status: {DRDY err}.  I could say the errors have something to do with the sound problem and the flash player, but if this happened when I got the hd0 error, not now after the regular daily update.  Here is the update history log from /var/log/apt/history.log   Start-Date: 2012-04-03  10:04:39  Commandline: aptdaemon role='role-commit-packages' sender=':1.71' Upgrade: python-aptdaemon.gtkwidgets:amd64 (0.43+bzr697-0ubuntu1, 0.43+bzr697-0ubuntu1.2),  libvlc5:amd64 (2.0.1+git20120329+r134-0~r35~oneiric1, 2.0.1+git20120402+r146-0~r36~oneiric1),  python-aptdaemon:amd64 (0.43+bzr697-0ubuntu1, 0.43+bzr697-0ubuntu1.2),  vlc-nox:amd64 (2.0.1+git20120329+r134-0~r35~oneiric1, 2.0.1+git20120402+r146-0~r36~oneiric1),  vlc-plugin-notify:amd64 (2.0.1+git20120329+r134-0~r35~oneiric1, 2.0.1+git20120402+r146-0~r36~oneiric1),  aptdaemon:amd64 (0.43+bzr697-0ubuntu1, 0.43+bzr697-0ubuntu1.2),  python-aptdaemon-gtk:amd64 (0.43+bzr697-0ubuntu1, 0.43+bzr697-0ubuntu1.2),  vlc:amd64 (2.0.1+git20120329+r134-0~r35~oneiric1, 2.0.1+git20120402+r146-0~r36~oneiric1),  aptdaemon-data:amd64 (0.43+bzr697-0ubuntu1, 0.43+bzr697-0ubuntu1.2),  vlc-data:amd64 (2.0.1+git20120329+r134-0~r35~oneiric1, 2.0.1+git20120402+r146-0~r36~oneiric1),   python-aptdaemon.gtk3widgets:amd64, 0.43+bzr697-0ubuntu1,0.43+bzr697-0ubuntu1.2),  libvlccore5:amd64 (2.0.1+git20120329+r134-0~r35~oneiric1, 2.0.1+git20120402+r146-0~r36~oneiric1),  vlc-plugin-pulse:amd64 (2.0.1+git20120329+r134-0~r35~oneiric1, 2.0.1+git20120402+r146-0~r36~oneiric1) End-Date: 2012-04-03  10:05:15 MicroSD card is set to Read-only state. How can I write data on it? I have a MicroSD card reader in my notebook. When I insert a MicroSD memory card into it, I can't write any data on it - it's read-only. The same thing happens when I try to do it under root. And I can't change the permission policy for it. This problem happens for all microSD cards (I've tested 2 cards). I've encountered it on Ubuntu 12.04 LTS, now I'm on Ubuntu 12.10, the problem is still on it's place. When I try to insert such a "read-only" card in my mobile phone, everything's OK and I can write data on it. So, can anybody tell me, how can I write a data onto the card?  UPD: here's fdisk -l output:  Disk /dev/sdc1: 2013 MB, 2013135360 bytes 62 heads, 62 sectors/track, 1022 cylinders, total 3931905 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000   Device Boot      Start         End      Blocks   Id  System   The file system of the card is msdos. As to me it's weird.   UPD2: I've found a small "lock" switch on my card adapter, and it turns out, that when I insert it in my notebook, it switches on. Perhaps, I have to find some glue or something to get that switch stuck...  UPD3: There was no glue near me, so I've decided to buy another card-reader. The cast to value type 'Int32' failed because the materialized value is null Mouse rotated 90 degrees How can I count all the lines of code in a directory recursively? Understanding Dirac's notation Why is the console window closing immediately once displayed my output? You should choose your Display Name when signing up When a user signs up , their username is something along the lines of "user########"  Granted, in the welcome email it does say something along the lines of "Head over to your user account page to chose a display name!", however only a few people actually read that email.  I'm not saying we should restrict people from changing their display name again in the future - Everyone would still be able to do so. It's just that when you sign up you choose an initial display name that will be what your first display name is instead of "user########". Construct a network of citations How to prove that $4^m + 5^m$ is divisible by 9 when m is an odd number I am trying to use congruence theorems, specifically Euler's Theorem for a proof. Why are the longer edges being beveled more? Possible Duplicate:          I've added myself back into the admin's group I think, by following   But I still can't do commands like:  sudo aptitude update   I get the message  oshirowanen is not in the sudoers file.  This incident will be reported.   How do I add myself into the sudoers group now that I am in the admin group? How to compare two float values in ksh? To compare float values below command is working fine in bash, But not working in ksh on AIX.  if (( $(bc &lt;&lt;&lt; " 5.3 &gt;= 5.3") ));then echo "hi";else echo "bye";fi`,   I had tried in so many ways, can someone suggest me to achieve this. What is a subnet mask, and the difference between a subnet mask of 255.255.255.0 and 255.0.0.0? My DSL/WiFi router provided by my ISP has an internal IP address of 10.0.0.138, the addresses provided by DHCP are in the format of 10.0.0.xxx.  Now, I want to start using static IP addresses on my local network, and I don't know what to provide for the subnet mask.  What is a subnet mask?  Should I be using 255.255.255.0 or 255.0.0.0 as my subnet mask? What is the difference? Link Google Form responses To Already Existing Google Spreadsheet Tab I have a Google Form. I had all of my Google Form responses linked to a specific tab in my Google Spreadsheet. Somehow my form responses were unlinked from my tab. When I go to re-link my form responses to my already existing tab it only gives me the option to create a new tab in my spreadsheet.   How do I simply re-link my Google Form responses to my already existing tab in my Google Spreadsheet? I've been asked the following question:  What five odd integers from the set  $\{1, 3, 5, 7, 9, 11, 13, 15\}$ that when summed together equals to $30$? Note that any integer can be used more than once.   If my limited knowledge of maths is correct, there should be no answer, as no odd number of odd integers summed together can give an even number. Is it possible to reintegrate a Horcrux? As anyone who is familiar with Harry Potter knows, a horcrux is made when someone commits murder and stores a piece of their soul in something. Would it be possible for this someone to later recover and reintegrate their soul piece(s), should they want to? Best way to migrate a huge SQL Server database with low downtime over network Problem definition  Our database server needs to be transferred to an other datacenter. It runs on Microsoft SQL Server 2012 Enterprise (64-bit) and contains two databases of about 2TB and 1TB.  Having little to no downtime for this would be ideal.  Workload  Those databases are used for a .NET website and are constantly getting updated.   Having it not available over the weekend would be acceptable though. The currently in use DB would remain the only one in use until the switch over to the new one.  That switch would ideally be made just by changing DNS entries to point to the new DB server while making sure the DB is not being updated.  Also, time taken by this operation does not really matter as long as the switch from one server to the other (downtime) is kept low.  Approaches considered   Backup and restore  This has been done in the past but involved a high downtime even though it was done through an internal network, so more efficiently than through Internet Log shipping  As far as I understand, this approach would minimize downtime by configuring a master/slave and transferring  an exact copy of the master DB to its slave being read only. As mentioned above, no access to the slave would be necessary and we just need a way to have a replica of the master DB without data corruption.   It also seems to be quite efficient in terms of resources utilization and wouldn't impact to much the master performance.   I might be wrong about this approach so feel free to correct me. Database mirroring  I'm not too aware of that approach but it seems like a valid option. No need to have real time sync and performance of the master is quite important so asynchronous would be the way to go if this approach were to be chosen. Other options?  That server runs directly on bare metal hardware so lower level solutions are unfortunately not an option. Maybe there is a better way to get this done?   Constraints  As described, those databases are quite big to the point they are hard to maintain but that's an other problem.  The versions of SQL Server will be the same (Microsoft SQL Server 2012 Enterprise 64-bit).  It will have to be transferred over network between two datacenters so most probably over Internet. Having disks sent from one site to the other for an initial sync is unfortunately not an option. Having some sort of security for the transfer would be ideal but we will do the best of this situation.  That should give a quite good overview of our needs for this task and hopefully some of you had to face that situation before. Escape string for use in Javascript regex