tag:blogger.com,1999:blog-26143588281600082262024-03-13T19:43:24.536-07:00Dave's DenUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2614358828160008226.post-65537434271834007972016-10-17T11:43:00.000-07:002016-10-17T23:11:22.509-07:00Me and "My" GameDoora<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-family: "verdana" , sans-serif;">So finally I got sometime to write about "my" journey with my Gamedoora. It's been a long time I have written something and yeah I wanted to write something about Gamedoora since long time but "lots of excuses" came as a blocker. </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Let's start about GameDoora or like we call it GD in short form. Well if you want to read some marketing related thing or platform functionality related thing then please stop and go back to whatever you are doing because I am not going to talk about that at all, for that we have master and also Guru Gulab Khatri (don't know when he will have time for GD).</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b><span style="font-family: "verdana" , sans-serif;">How GD was born?</span></b><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">GD "actually" (not mera boyfriend hai wala actually) came out of few crazy people's mind who thought that GameDoora the company or platform would be opening doors to the industry which is closed. ( definitely creative industry, and yeah it is closed. I don't see any kind of collaboration in that otherwise I would have thought about making an awesome game from my favourite movie Mohenjo-Daro). Also we all believed that each and every individual has some kind of creative idea in his/her mind but somehow it is not coming out, sometimes because of lack of resources or fear of acceptance of that idea and lots of other reasons and we wanted to provide them a platform where they can come and find the resources, find the collaboration from like minded people and boom give life to their ideas.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b><span style="font-family: "verdana" , sans-serif;">Why I am inclined more towards Gamedoora?</span></b><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">What should I say, since childhood all I wanted to do is business ( in Gujarati Dhandho). When I was working as a Medical Representative I wanted to start my own company, same idea came to me when I was system admin. But everytime I was denied due to lack of resources and sessions on the topic "job is safe". ( Safezone is the more dangerous than friendzone, because it makes you handicap from your mind.) .Then one fine day I met a master yoda kind figure who is also my master Mr. Devang Parikh and he just threw the idea of GD to me and I remember I was like I will work after hours ( as I was insomniac at that time) and I would do anything to be a part of this venture and I was in. Because he and I have same motto, there is always a place for the family. As my previous manager, mentor and master I listens to him very carefully because he has mastered an art of "how to tackle people with different mindsets". (In my case I would just say GTFO to the people I don't like.) </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Along with above typical Gujarati business desire one more thing which is keeping me attached to GD is lots of stories I read/heard till date. Well I believe when it comes to story or theme of a game/animation project we have lots and lots of characters and well written novels/books. As an example as a kid I was always thinking about making animation based on "Cheeku" from champak comics and definitely first love was panchtantra stories. </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">And the most important reason I am loving GameDoora is that I am getting unlimited supply of free beers. ;)</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b><span style="font-family: "verdana" , sans-serif;">What I have done in GameDoora and what I do at GameDoora?</span></b><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Honestly nothing yet. I am just a guy checks that server is running fine and site is up and running that's it. In designing and marketing aspects I am Jon Snow ( I know nothing.), so I just keep myself out of that areas. I just like to sit in front of my beast (name of my home pc) checking some code ( again I am Jon Snow in coding too) and try to understand wtf it is going to do and how the hell it consuming this much amount of resources. </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b><span style="font-family: "verdana" , sans-serif;">What is the future of GameDoora? or what are your hopes about GameDoora?</span></b><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">I don't hope, I work and As per alchemist “And, when you want something, all the universe conspires in helping you to achieve it.” So I just want lots and lots of success for GameDoora. GameDoora definitely has a potential and it just requires more marketing or in today's words "outreach".</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b><span style="font-family: "verdana" , sans-serif;">How GameDoora changed your life or in other words how it affected your life?</span></b><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">GameDoora affected my life a lot, my both girlfriends left me alone to suffer in this cruel world and now I am single and blah blah blah. Jokes apart, because of GameDoora I am feeling bit responsible in every aspect of my life. Like take an example I am working on a customer case in my current job and I can really feel his pain when he says my production is down and my users are affected. Also when it comes to wasting money I think twice and think about utilizing same amount somewhere. GD helped me to change my self from always abusing (cursing loudly specifically when angry) to a polite guy who just doesn't give shit about other's shit. </span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">The main thing GameDoora gave me is feeling responsible for my behaviour in public as well for the people who are attached to me or atleast get affected by actions.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<b><span style="font-family: "verdana" , sans-serif;">What about family support for GameDoora?</span></b><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">My sister's opinion matters a lot to me and when I told her about GD she was like go for it, at one moment I was hesitant and had doubts in inital stage but she told "If you love GD then you need to stop overthinking and give your best." Dad is still skeptical about GD because as an accountant he only see profit /loss. But to my surprise mom came as rock solid support and said "Do whatever you want to do, so that you don't regret it not doing it.".</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;">Ahh, it's too hectic to write all these things. So now Ravi questioning Dave session is over, it's time for Manchester United v/s Liverpool and GGMU. Will be back someday with other stories related to GameDoora or Sidrav (I am definitely serious about it) or if I have any food business.</span><br />
<span style="font-family: "verdana" , sans-serif;"><br /></span>
<span style="font-family: "verdana" , sans-serif;"><a href="http://www.gamedoora.com/" target="_blank">http://www.gamedoora.com/</a></span><br />
<br />
<a href="http://gamedoora.org/" target="_blank">http://gamedoora.org/</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/gqDVnnNuNMA/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/gqDVnnNuNMA?feature=player_embedded" width="320"></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen="" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/HCR70J8SJbg/0.jpg" frameborder="0" height="266" src="https://www.youtube.com/embed/HCR70J8SJbg?feature=player_embedded" width="320"></iframe></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfZlC5B0XXuSK8hM4E62alB4iF4IsR-OriqeEklNl_qBm-_9CkDGGu_jcap-zAQLqxOV_S-aUFC2o3OwK7Lz3c4XNBBscoNIG0UNKsQuvaR4xSw4wu42zBkWMKz0Jl2v0scw_LQD_RpG5C/s1600/gamedoora.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="118" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfZlC5B0XXuSK8hM4E62alB4iF4IsR-OriqeEklNl_qBm-_9CkDGGu_jcap-zAQLqxOV_S-aUFC2o3OwK7Lz3c4XNBBscoNIG0UNKsQuvaR4xSw4wu42zBkWMKz0Jl2v0scw_LQD_RpG5C/s320/gamedoora.png" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyAXFPaGfhmczXmcrQ7z47sm1mtKruB07ccHefItZR-Ww-GAev-9O6rzj__E_RKROWCEzu4fGpNVYb7e2b7-B-faaUnxALOljo_N9E6i1lToURkkfg-pNXkiMfGaHeeOTne8NqtptiGp7G/s1600/gd-cover.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="118" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyAXFPaGfhmczXmcrQ7z47sm1mtKruB07ccHefItZR-Ww-GAev-9O6rzj__E_RKROWCEzu4fGpNVYb7e2b7-B-faaUnxALOljo_N9E6i1lToURkkfg-pNXkiMfGaHeeOTne8NqtptiGp7G/s320/gd-cover.png" width="320" /></a></div>
<br /></div>
Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-2614358828160008226.post-83143312830046076692012-09-11T04:28:00.000-07:002012-09-11T04:28:24.456-07:00Fdisk and parted<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
>> Why Fdisk is unable to create more than 2 TB partition and how GNU parted works for it?<br />
<br />
* Fdisk will not allow you to craete a partition more than 2 TB and give you following errors. This is mostly because of old PCDOS disk label used on disks. The problem is not with fdisk but it it the limitations of PCDOS disk label. As fdisk does not work with drives that use GPT; thus, we need to use a different partitioning tool. The usual recommendation to Linux users is GNU parted.<br />
<br />
[root@rockie ~]# fdisk /dev/sdb<br />
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)<br />
<br />
WARNING: The size of this disk is 5.9 TB (5908688535552 bytes).<br />
DOS partition table format can not be used on drives for volumes<br />
larger than (2199023255040 bytes) for 512-byte sectors. Use parted(1) and GUID<br />
partition table format (GPT). Creating 2TB partition using Fdisk<br />
<br />
The size of the disk in this example is roughly 6 TB. You can still create a partition in this disk for 2TB using fdisk as shown below.<br />
<br />
[root@rockie ~]# fdisk /dev/sdb1<br />
Command (m for help): n<br />
Command action<br />
e extended<br />
p primary partition (1-4)<br />
p<br />
Partition number (1-4): 1<br />
First cylinder (1-718357, default 1):<br />
Using default value 1<br />
Last cylinder, +cylinders or +size{K,M,G} (1-267349, default 267349):<br />
Using default value 267349<br />
<br />
As you can see above, even though there are 718357 cylinders available on this disk (this is for total of roughly 6TB), the last cylinder value it shows is only 267349 (which is roughly close to 2TB in this example).<br />
<br />
So, fdisk has created a partition of 2 TB as shown below (even though the disk size is around 6 TB).<br />
<br />
Command (m for help): p<br />
<br />
Disk /dev/sdb: 5908.7 GB, 5908688535552 bytes<br />
255 heads, 63 sectors/track, 718357 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x3dffd626<br />
<br />
Device Boot Start End Blocks Id System<br />
/dev/sdb1 1 267349 2147480811 83 Linux<br />
Set Partition Table to GPT using Parted mklabel<br />
<br />
In our case, we need to create a partition >2TB. So, we should use parted command.<br />
<br />
Before creating the partition command, we should set the disk label to GPT.<br />
<br />
GPT stands for GUID partition table format (GPT).<br />
<br />
* Use parted’s mklabel command to set disk label to GPT as shown below.<br />
<br />
[root@rockie ~]# parted /dev/sdb<br />
GNU Parted 2.1<br />
Using /dev/sdb<br />
Welcome to GNU Parted! Type 'help' to view a list of commands.<br />
<br />
(parted) print<br />
Error: /dev/sdb: unrecognised disk label<br />
<br />
(parted) mklabel gpt<br />
<br />
(parted) print<br />
Model: Unknown (unknown)<br />
Disk /dev/sdb: 5909GB<br />
Sector size (logical/physical): 512B/512B<br />
Partition Table: gpt<br />
<br />
Use parted’s mkpart command as shown below to create partition that is greater than 2TB. In this example, we are creating a partition that is roughly of 6TB in size.<br />
<br />
[root@rockie ~]# parted /dev/sdb<br />
<br />
(parted) mkpart primary 0GB 5909GB<br />
<br />
(parted) print<br />
Model: Unknown (unknown)<br />
Disk /dev/sdb: 5909GB<br />
Sector size (logical/physical): 512B/512B<br />
Partition Table: gpt<br />
<br />
Number Start End Size File system Name Flags<br />
1 1049kB 5909GB 5909GB primary<br />
To understand how to use parted command effectively, refer to: man parted<br />
<br />
Just for curiosity, let us see how this >2TB partition is displayed in fdisk. As you see below, it still shows the size as roughly 2TB (under the Blocks columns). However there is a + at the end indicating that this is greater than 2TB. The System column displays “GPT”.<br />
<br />
[root@rockie ~]# fdisk /dev/sdb<br />
<br />
Command (m for help): print<br />
<br />
Disk /dev/sdb: 5908.7 GB, 5908688535552 bytes<br />
255 heads, 63 sectors/track, 718357 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Sector size (logical/physical): 512 bytes / 512 bytes<br />
I/O size (minimum/optimal): 512 bytes / 512 bytes<br />
Disk identifier: 0x00000000<br />
<br />
Device Boot Start End Blocks Id System<br />
/dev/sdb1 1 267350 2147483647+ ee GPT<br />
<br />
Use mkfs to format the partition. This will take some time depending the size of the partition. You’ll see that it is “Writing inode tables” and the counter will keep increasing. In this example, it roughly took around 15 minutes to complete the mkfs.<br />
<br />
[root@rockie ~]# mkfs /dev/sdb1<br />
mke2fs 1.41.12 (17-May-2010)<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
Stride=0 blocks, Stripe width=0 blocks<br />
360644608 inodes, 1442550528 blocks<br />
72127526 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=4294967296<br />
44024 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
8192 inodes per group<br />
Superblock backups stored on blocks:<br />
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br />
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,<br />
102400000, 214990848, 512000000, 550731776, 644972544<br />
<br />
Writing inode tables: 3955/44024<br />
Writing inode tables: 5022/44024<br />
Writing inode tables: 7218/44024<br />
Writing inode tables: done<br />
Writing superblocks and filesystem accounting information: done<br />
<a name='more'></a><br />
<br />
This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. Finally, mount this >2TB partition.<br />
<br />
[root@rockie ~]# mkdir /data<br />
<br />
[root@rockie ~]# mount /dev/sdb1 /data<br />
<br />
[root@rockie ~]# df -h<br />
Filesystem Size Used Avail Use% Mounted on<br />
/dev/sda1 127G 1.6G 119G 2% /<br />
/dev/sdb1 5.3T 59M 5.1T 1% /data<br />
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-2614358828160008226.post-53508574296832447832012-09-10T05:23:00.000-07:002012-09-10T05:29:20.867-07:00What is Parity in RAID?<div dir="ltr" style="text-align: left;" trbidi="on">
>> <b>A parity bit is a bit that is added to ensure that the number of bits with the value one in a set of bits is even or odd. Parity bits are used as the simplest form of error detecting code.</b><br />
<br />
>> Parity data is used by some RAID levels to achieve redundancy. If a drive in the array fails, remaining data on the other drives can be combined with the parity data (using the Boolean XOR function) to reconstruct the missing data.<br />
<span style="background-color: white;"><br /></span>
For example, suppose two drives in a three-drive RAID 5 array contained the following data:<br />
<br />
Drive 1: 01101101<br />
Drive 2: 11010100<br />
To calculate parity data for the two drives, an XOR is performed on their data:<br />
01101101<br />
XOR 11010100<br />
_____________<br />
10111001<br />
<br />
The resulting parity data, 10111001, is then stored on Drive 3.<br />
<br />
Should any of the three drives fail, the contents of the failed drive can be reconstructed on a replacement drive by subjecting the data from the remaining drives to the same XOR operation. If Drive 2 were to fail, its data could be rebuilt using the XOR results of the contents of the two remaining drives, Drive 1 and Drive 3:<br />
<br />
Drive 1: 01101101<br />
Drive 3: 10111001<br />
as follows:<br />
10111001<br />
XOR 01101101<br />
_____________<br />
11010100<br />
<br />
The result of that XOR calculation yields Drive 2's contents. 11010100 is then stored on Drive 2, fully repairing the array. This same XOR concept applies similarly to larger arrays, using any number of disks. In the case of a RAID 3 array of 12 drives, 11 drives participate in the XOR calculation shown above and yield a value that is then stored on the dedicated parity drive.<br />
<br /></div>
Unknownnoreply@blogger.com0