Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ :

Paging long articles in ASP.NET using C#

Paging long articles in ASP.NET using C#
Long articles are better broken into bite-sized chunks over several pages. With static HTML, this is easily achieved by dividing the article into logical separations and creating separate .htm files for each. Here's how to do it using C# for an article that gets posted to a database.
The Regular Expression Split() method returns a one-dimensional zero-based array containing a number of substrings, so it is perfect for this job. What I want to do is take an article (which is a string) and divide it into substrings. In order to do this, I need a delimiter, and I use <!--pagebreak-->. As I enter the article into the database, I place <!--pagebreak--> at the points I want to break the article.
Then, having extracted the article from the database, I pass it to the following static method which I have in a utility class:
public static string PageArticle(string Article)
{
string Output;
string ThisPage = HttpContext.Current.Requ ......

Paging long articles in ASP.NET using C#

Paging long articles in ASP.NET using C#
Long articles are better broken into bite-sized chunks over several pages. With static HTML, this is easily achieved by dividing the article into logical separations and creating separate .htm files for each. Here's how to do it using C# for an article that gets posted to a database.
The Regular Expression Split() method returns a one-dimensional zero-based array containing a number of substrings, so it is perfect for this job. What I want to do is take an article (which is a string) and divide it into substrings. In order to do this, I need a delimiter, and I use <!--pagebreak-->. As I enter the article into the database, I place <!--pagebreak--> at the points I want to break the article.
Then, having extracted the article from the database, I pass it to the following static method which I have in a utility class:
public static string PageArticle(string Article)
{
string Output;
string ThisPage = HttpContext.Current.Requ ......

Linux shell½Å±¾È«ÃæÑ§Ï°

Linux shell½Å±¾È«ÃæÑ§Ï°
 
 
1. Linux ½Å±¾±àд»ù´¡
1.1 Óï·¨»ù±¾½éÉÜ
1.1.1 ¿ªÍ·
³ÌÐò±ØÐëÒÔÏÂÃæµÄÐпªÊ¼£¨±ØÐë·½ÔÚÎļþµÄµÚÒ»ÐУ©£º
#!/bin/sh
¡¡¡¡·ûºÅ#!ÓÃÀ´¸æËßϵͳËüºóÃæµÄ²ÎÊýÊÇÓÃÀ´Ö´ÐиÃÎļþµÄ³ÌÐò¡£ÔÚÕâ¸öÀý×ÓÖÐÎÒÃÇʹÓÃ/bin/shÀ´Ö´ÐгÌÐò¡£
¡¡¡¡µ±±à¼­ºÃ½Å±¾Ê±£¬Èç¹ûÒªÖ´Ðиýű¾£¬»¹±ØÐëʹÆä¿ÉÖ´ÐС£
¡¡¡¡ÒªÊ¹½Å±¾¿ÉÖ´ÐУº
±àÒë chmod +x filename ÕâÑù²ÅÄÜÓÃ./filename À´ÔËÐÐ
1.1.2 ×¢ÊÍ
¡¡¡¡ÔÚ½øÐÐshell±à³Ìʱ£¬ÒÔ#¿ªÍ·µÄ¾ä×Ó±íʾעÊÍ£¬Ö±µ½ÕâÒ»ÐеĽáÊø¡£ÎÒÃÇÕæ³ÏµØ½¨ÒéÄúÔÚ³ÌÐòÖÐʹÓÃ×¢ÊÍ¡£
Èç¹ûÄúʹÓÃÁË×¢ÊÍ£¬ÄÇô¼´Ê¹Ï൱³¤µÄʱ¼äÄÚûÓÐʹÓøýű¾£¬ÄúÒ²ÄÜÔں̵ܶÄʱ¼äÄÚÃ÷°×¸Ã½Å±¾µÄ×÷ÓÃ
¼°¹¤×÷Ô­Àí¡£
1.1.3 ±äÁ¿
¡¡¡¡ÔÚÆäËû±à³ÌÓïÑÔÖÐÄú±ØÐëʹÓñäÁ¿¡£ÔÚshell±à³ÌÖУ¬ËùÓеıäÁ¿¶¼ÓÉ×Ö·û´®×é³É£¬²¢ÇÒÄú²»ÐèÒª¶Ô±äÁ¿
½øÐÐÉùÃ÷¡£Òª¸³Öµ¸øÒ»¸ö±äÁ¿£¬Äú¿ÉÒÔÕâÑùд£º
#!/bin/sh
#¶Ô±äÁ¿¸³Öµ£º
a="hello world"
# ÏÖÔÚ´òÓ¡±äÁ¿aµÄÄÚÈÝ£º
echo "A is:"
echo $a
ÓÐʱºò±äÁ¿ÃûºÜÈÝÒ×ÓëÆäËûÎÄ×Ö»ìÏý£¬±ÈÈ磺
num=2
echo "this is the $numnd"
Õâ²¢²»»á´òÓ¡³ö"this is the 2nd"£¬¶ø½ö½ö´òÓ¡"this is the "£ ......

Unix/Linux ϵͳ×Ô¶¯»¯¹ÜÀí:

±¾ÎÄÊÇ Unix/Linux ϵͳ¹ÜÀí×Ô¶¯»¯ÏµÁÐÖеÄһƪ£¬Ö÷Òª½²ÊöÈçºÎʵÏÖ´ÅÅÌ I/O ×Ô¶¯»¯¼à¿Ø¡£
´ÅÅÌ I/O ¼à¿ØÊÇ Unix/Linux ϵͳ¹ÜÀíÖÐÒ»¸ö·Ç³£ÖØÒªµÄ×é³É²¿·Ö¡£Ëü¿ÉÒÔ¼à¿ØÍÌÍÂÁ¿¡¢Ã¿Ãë I/O Êý¡¢´ÅÅÌÀûÓÃÂÊ¡¢·þÎñʱ¼äµÈÐÅÏ¢£¬²¢ÇÒÔÚ·¢ÏÖÒ쳣ʱ£¬·¢Ë͸澯ÐÅÏ¢¸øÏµÍ³¹ÜÀíÔ±£¬±ãÓÚϵͳ¹ÜÀíÔ±½øÐе÷ÕûÊý¾Ý²¼¾ÖµÈ¹ÜÀí»î¶¯ÒÔ´ïµ½ÓÅ»¯ÏµÍ³×ÜÌåÐÔÄܵÄÄ¿µÄ¡£
²»Í¬µÄ²Ù×÷ϵͳ¼à¿Ø´ÅÅÌ I/O µÄÃüÁî¿ÉÄÜÂÔÓв»Í¬¡£±¾ÎĽ«½éÉÜ Unix/Linux ²Ù×÷ϵͳ´ÅÅÌ I/O ¹ÜÀíÃüÁî¼°Ïà¹ØÐÅÏ¢£¬²¢½²Êö Unix/Linux ²Ù×÷ϵͳÉÏ´ÅÅÌ I/O ¹ÜÀí¼à¿ØµÄ×Ô¶¯»¯½Å±¾ÊµÏÖ¡£
Unix/Linux ´ÅÅÌ I/O ÐÔÄÜ¼à¿ØÃüÁî
´ÅÅÌ I/O ÐÔÄÜ¼à¿ØÖ¸±êºÍµ÷ÓÅ·½·¨
ÔÚ½éÉÜ´ÅÅÌ I/O ¼à¿ØÃüÁîǰ£¬ÎÒÃÇÐèÒªÁ˽â´ÅÅÌ I/O ÐÔÄÜ¼à¿ØµÄÖ¸±ê£¬ÒÔ¼°Ã¿¸öÖ¸±êµÄËù½ÒʾµÄ´ÅÅÌij·½ÃæµÄÐÔÄÜ¡£´ÅÅÌ I/O ÐÔÄÜ¼à¿ØµÄÖ¸±êÖ÷Òª°üÀ¨£º
Ö¸±ê 1£ºÃ¿Ãë I/O Êý£¨IOPS »ò tps£©
¶ÔÓÚ´ÅÅÌÀ´Ëµ£¬Ò»´Î´ÅÅ̵ÄÁ¬Ðø¶Á»òÕßÁ¬ÐøÐ´³ÆÎªÒ»´Î´ÅÅÌ I/O, ´ÅÅÌµÄ IOPS ¾ÍÊÇÿÃë´ÅÅÌÁ¬Ðø¶Á´ÎÊýºÍÁ¬ÐøÐ´´ÎÊýÖ®ºÍ¡£µ±´«ÊäС¿é²»Á¬ÐøÊý¾Ýʱ£¬¸ÃÖ¸±êÓÐÖØÒª²Î¿¼ÒâÒå¡£
Ö¸±ê 2£ºÍÌÍÂÁ¿£¨Throughput£©
Ö¸Ó²ÅÌ´«ÊäÊý¾ÝÁ÷µÄËÙ¶È£¬´«ÊäÊý¾ÝΪ¶Á³öÊý¾ÝºÍдÈëÊý¾ÝµÄºÍ¡£Æäµ¥Î»Ò»°ãΪ Kbps, M ......

´ÅÅÌIOÐÔÄÜ¼à¿Ø£¨Linux ºÍ Windows£©

´ÅÅ̵ÄIOÐÔÄÜÊǺâÁ¿¼ÆËã»ú×ÜÌåÐÔÄܵÄÒ»¸öÖØÒªÖ¸±ê¡£LinuxÌṩÁËiostatÃüÁîÀ´»ñÈ´´ÅÅÌÊäÈ룯Êä³ö£¨¼´IO£©Í³¼ÆÐÅÏ¢£¬WindowsÔòÌṩÁËWMI½Ó¿Ú£¬¿ÉÒÔͨ¹ý±àдһ¸ö¼òµ¥µÄ½Å±¾À´»ñÈ¡ÓëiostatÏ൱µÄ¹¦ÄÜ¡£
1¡¢LinuxϵÄiostatÃüÁî
iostat -d -k -t 2
ÿ¸ô2Ãëͳ¼ÆÒ»´Î´ÅÅÌIOÐÅÏ¢£¬Ö±µ½°´Ctrl+CÖÕÖ¹³ÌÐò£¬-d Ñ¡Ïî±íʾͳ¼Æ´ÅÅÌÐÅÏ¢£¬ -k ±íʾÒÔÿÃëKBµÄÐÎʽÏÔʾ£¬-t ÒªÇó´òÓ¡³öʱ¼äÐÅÏ¢£¬2 ±íʾÿ¸ô 2 ÃëÊä³öÒ»´Î¡£µÚÒ»´ÎÊä³öµÄ´ÅÅÌIO¸ºÔØ×´¿öÌṩÁ˹ØÓÚ×Ô´ÓϵͳÆô¶¯ÒÔÀ´µÄͳ¼ÆÐÅÏ¢¡£ËæºóµÄÿһ´ÎÊä³öÔòÊÇÿ¸ö¼ä¸ôÖ®¼äµÄƽ¾ùIO¸ºÔØ×´¿ö¡£
ÔËÐиÃÃüÁîºó£¬Êä³ö:
Linux 2.6.9-67.0.7.ELsmp (localhost.localdomain)        11/19/2008
Time: 03:15:25 PM
Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               3.53        26.66       ......

·¢Õ¹Linux£¬ÖÐÈÕÁ½¹úÖ®±È½Ï

      ÈçºÎ·¢Õ¹Linux£¿ÖÐÈÕÁ½¹úÖ®¼ä´æÔÚºÎÖÖ²îÒ죿ÓÐʲôºÃ˵µÄ£¿
     ´óÔ¼ÊÇÔÚ1997ÄêµÄÏÄÌ죬¹úÄÚÕÙ¿ªµÚÒ»´ÎLinux¸ß²ãÑûÇëÑÐÌֻᣬÎÒÏ룬ÏÖ½ñÄÇ´ÎÑûÇë»áµÄÈ«ÌåÓë»áÕß¶¼»¹½¡ÔÚ£¬ÐÕÃûÎҾͲ»ËµÁË¡£¼ÇµÃ£¬ÎÒÈ¥»ú³¡Ó­½ÓCliff Miller·ò¸¾£¬ÄÇʱ£¬CliffÊÇÈÕ±¾TurboLinuxµÄCEO£¬×¨³ÌÀ´¾©²Î¼ÓÕâ´ÎLinuxÑûÇëÌÖÂۻᡣ»áºó£¬ÎÒÔÚ¡¶Öйú¼ÆËã»úÓû§¡·ÉÏ·¢±íÎÄÕ£¬ÌâÄ¿ÊÇ“ÏòÓÒ£¬»¹ÊÇÏò×󣿔£¨Copyright ,or Copyleft?£©£¬²ûÃ÷ÁËGNU/LinuxµÄ·¢Õ¹Â·Ïß¡£
       1998Ä꣬ÈÕ±¾Æô¶¯Ò»Ïî“Project Japanese Extension”¼Æ»®£¨ÓÖ³ÆJPE¼Æ»®£©£¬½¨Á¢×ÔÓÉÈí¼þµÄ“ Vine Seed”£¨“ÆÏÌÑÖÖ×ӿ┣©£¬ÀàËÆÏÖÔڵē×ÔÓÉÈí¼þÔ´”£¨Repository£©£¬¼Æ»®·¢Õ¹Ò»ÖÖ³ÆÎª“Vine”µÄGNU/LinuxÈÕÎÄ·¢Ðа棬ÆäÖв»º¬ÈκÎ˽ÓÐÈí¼þ¡£¸ÃÏîÄ¿¼á³ÖÖÁ½ñ£¬²¢ÓÚÈ¥Äê8ÔÂ25ÈÕ·¢²¼ÁËVine 5.0°æ±¾£¬½øÈëÁËÈ«ÇòÏȽøÐÐÁУ¬ÈÕ±¾×ßÉÏÁË·¢Õ¹LinuxµÄCopyleftµÀ·¡£
      ·´¹ÛÎÒÃǹúÄÚ£¬·¢Õ¹Linux×ßµÄÈ´ÊÇCopyrightµÀ·£¬±ÈÈ磬À¶µã¡¢³åÀË£¬......ÆäÖ÷ÒªÌØÕ÷¾ ......

zz ɾ³ýUbuntu Linux²Ù×÷ϵͳ¾ÉÄں˵ķ½·¨


Oracle°ïÄú׼ȷ¶´²ì¸÷¸öÎïÁ÷»·½Ú
ʹÓÃUbuntuÒ»¶Îʱ¼äºó£¬¾Í»á·¢¾õÓÉÓÚ×Ô¶¯Éý¼¶£¬ÏµÍ³Àï°²×°Á˺ܶàÄںˡ£ÏñÎÒ£¬¾¹È»°²×°ÁËÏÂÃæÄÇô¶à£¬Õâ¸öÔì³ÉÁËÂþ³¤µÄÆô¶¯ÁÐ±í¡£±ØÐëɾµôһЩ²»Óõġ£
Ê×ÏȾÍÊÇʹÓÃÈçÏÂÃüÁÁгöËùÓа²×°µÄÄںˣ¬Ï±íÖУ¬´øÓÐimageµÄ¾ÍÊÇÄÚºËÎļþ¡£´ÓÖÐÑ¡ÔñÒªÐ¶ÔØµÄ°ü£¬ÓÃapt-getÀ´Ð¶ÔØ¡£
[tc@ibm:~]$ dpkg --get-selections|grep linux
libselinux1 install
linux-386 install
linux-image-2.6.15-23-386 install
linux-image-2.6.15-27-386 install
linux-image-2.6.15-27-686 install
linux-image-2.6.15-28-386 install
linux-image-2.6.15-28-686 deinstall
linux-image-386 install
linux-kernel-headers install
linux-restricted-modules-2.6.15-23-386 install
linux-restricted-modules-2.6.15-27-386 install
linux-restricted-modules-2.6.15-27-686 install
linux-restricted-modules-2.6.15-28-386 install
linux-restricted-modules-2.6.15-28-686 deinstall
linux-restricted-modules-386 install
linux-restricted-modules-common install
linux-sound-base install
util-linux install
¾ßÌåµ ......
×ܼǼÊý:40319; ×ÜÒ³Êý:6720; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [2431] [2432] [2433] [2434] 2435 [2436] [2437] [2438] [2439] [2440]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ