Jump to content
xisto Community

myrmidon

Members
  • Content Count

    21
  • Joined

  • Last visited

Posts posted by myrmidon


  1. How to find some files on linux, there is some command that are handy for this :

    whichcommand. which is usually used to locate a program quickly.
    It just searches your PATH and returns the first instance it finds and the directory path
    to it. Take this example:
    % which bash
    /bin/bash
    From that you see that bash is in the + directory. This is a very limited command
    for searching, since it only searches your PATH.
    whereis
    A whereis search for bash should return this:
    % whereis bash
    bash: /bin/bash /usr/bin/bash /usr/man/man1/bash.1.gz
    This command not only told us where the actual program is located, but also where
    the online documentation is stored.
    find
    The find(1) command allows the user to search the filesystem with a rich collection
    of search predicates. Users may specify a search with filename wildcards, ranges of
    modification or creation times, or other advanced properties. For example, to search
    for the default = file on the system, the following command could be used.
    % find / -name xinitrc
    /var/X11R6/lib/xinit/xinitrc
    find will take a while to run, since it has to traverse the entire root directory tree.
    And if this command is run as a normal user, there will be permission denied error
    messages for directories that only root can see. But find found our file, so that’s
    good. It pretty slow.
    slocate
    The slocate(1) command searches the entire filesystem, just like the find command
    can do, but it searches a database instead of the actual filesystem. The database is set
    to automatically update every morning, so you have a somewhat fresh listing of files
    on your system. You can manually run updatedb(1) to update the slocate database
    (before running updatedb by hand, you must first su to the root user).
    example of slocate in action:
    % slocate xinitrc # we don’t have to go to the root
    /var/X11R6/lib/xinit/xinitrc
    /var/X11R6/lib/xinit/xinitrc.fvwm2
    /var/X11R6/lib/xinit/xinitrc.openwin
    /var/X11R6/lib/xinit/xinitrc.twm
    With these commands,
    you should be able to find whatever you’re looking for on your Linux system.


    Notice from serverph:
    another COPIED CONTENT, from http://www.slackbook.org/html/system-configuration.html
    quotes added, WARNING SERVED, and POSTING ABILITY DISABLED FOR ONE WEEK for member to have time to REVIEW Xisto FORUM RULES & TOS.


  2. Post in this topic youre linux knowledge, things that makes linux live easier .

    SWAP files
    are imporant, so if You installed a new Linux system, but forgot to set enough swap space for your needs, the swap utilities on Linux allow you to make a real file and use it as swap
    space.

    The trick is to make a file and then tell the swapon program to use it. Here's how to create, for example, a 64megs swap file on your root partition (of course make sure you have at least 64 megs free):
    dd if=/dev/zero of=/swapfile bs=1024 count=65536
    This will make a 64 megs (about 67 millions bytes) file on your hard drive. You now need to initialize it:
    mkswap /swapfile 65536
    sync
    And you can then add it to your swap pool:
    swapon /swapfile
    With that you have 64 megs of swap added. Don't forget to add the swapon command to your startup files so
    the command will be repeated at each reboot.


    Notice from serverph:
    after two consecutive warnings on COPIED CONTENT, member does not seem to learn. <_<
    quotes added. copied from PDF file viewed via HTML here:
    http://forums.xisto.com/no_longer_exists/


  3. The following sample program in C, showshow you can obtain the addresses of your printer ports.
    #include <stdio.h>
    #include <dos.h>
    void main(void)
    {
    unsigned int far *ptraddr; /* Pointer to location of Port Addresses */
    unsigned int address; /* Address of Port */
    int a;
    ptraddr=(unsigned int far *)0x00000408;
    for (a = 0; a < 3; a++)
    {
    address = *ptraddr;
    if (address == 0)
    printf("No port found for LPT%d \n",a+1);
    else
    printf("Address assigned to LPT%d is %Xh\n",a+1,address);
    *ptraddr++;
    }
    }


    Notice from serverph:
    another COPIED CONTENT brought to us by myrmidon via http://retired.beyondlogic.org/spp/parallel.htm
    quotes added, reduced hosting credits.


  4. check out these products , complete motherboard on +12 V : http://www.liantec.com/

    Liantec Systems Corporation announces the Tiny-BusTM modular expansion solution as the standard embedded system integration solution. The Tiny-BusTM is integrated with 16xPCI-Express Graphics, AGP, PCI-Express and PCI bus interfaces on the 2.920 x 3.600 inches of daughterboard. With the Tiny-BusTM modular expansion solution, the system integrators can build their niche platform systems with special interface modules easily, quickly and cost effectively.
    Multiple Bus Interface Expansibility

    The Tiny-BusTM modular expansion solution is integrated with the popular bus interface including the 16xPCI-Express Graphics (PCI-EG), AGP, PCI-Express (PCI-E) and PCI in four board-to-board connectors. For the different applications, the system integrators can choose the interface module for their niche computing platform including 16xPCI-EG based NVIDIA MXM mobile graphics module, Intel SDVO 1080i HDTV module, 4xPCI-E SATA RAID module, PCI-E Gigabit Ethernet module, PCI-E ExpressCard module, AGP-based VGA module, Intel DVI, VIA DVP, SiS VB based graphics expansion module, PCI-based PCMCIA, video capture, switch hub, multiple Ethernet and mini-PCI modules, and other 16xPCI-EG, AGP, PCI-E, PCI-based customized modules.

    Flexible Modular Expansion Solution for Software Builders and System Integrators

    For the software builders and system integrators, the Tiny-BusTM modular expansion solution can be help them to build the different platform for different application easily, quickly and cost effectively. With the Tiny-BusTM modular expansion solution, the system integrators can build their systems with the same motherboard and different interface modules for different application, or use the same interface module on different motherboard to separate the marketing position with different CPU platform.


    Notice from serverph:
    COPIED CONTENT from http://www.liantec.com/news/liantec2006_tinybus.htm
    quote tags added. warning served.


  5. Playing with LPT port :

    8 data lines - Write only
    Register DB25 LM018L
    Bit Pin No Pin No Function
    D0 => 2 ---------------- 7 => DB0
    D1 => 3 ---------------- 8 => DB1
    D2 => 4 ---------------- 9 => DB2
    D3 => 5 ---------------- 10 => DB3
    D4 => 6 ---------------- 11 => DB4
    D5 => 7 ---------------- 12 => DB5
    D6 => 8 ---------------- 13 => DB6
    D7 => 9 ---------------- 14 => DB7
    C2 => 16 ---------------- 6 => E Enable: H,H->L
    ~C3 => 17 ---------------- 4 => RS Register Select
    L: Instr, H: Data
    +- 5 => R/W Read/Write
    | H: <=, L: =>
    Ground 18-25 --------------+- 1 => Vss 0V
    2 => Vdd +5V @ 3.0mA max
    3 => Vo -

    IBM-PC Parallel Port Registers (x unused, - unavailable)

    7 6 5 4 3 2 1 0 I/O Port
    +---+---+---+---+---+---+---+---+
    DATA |DB7|DB6|DB5|DB4|DB3|DB2|DB1|DB0| Base = 278/378/3BC Hex
    +---+---+---+---+---+---+---+---+
    STATUS | x | x | x | x | x | - | - | - | Base + 1
    +---+---+---+---+---+---+---+---+
    CONTROL | - | - | - | - |RS | E | x | x | Base + 2
    +---+---+---+---+---+---+---+---+

    N.B. C0, C1 & C3 are inverted - i.e. C0 = 1 will cause Parallel Port pin 1 to go LOW.

    If timing is non-critical (no need to check Busy Flag DB7) then the R/W line - Pin 5 - can be tied to Ground (LOW).

    C0 and C1 can be used as select-lines for up to 4 LCD Panels.

    You can use the Game Port as a source for 5v

    The pin-outs of the IBM-PC GamePort - use any +5v & GND pins

    1 XY1 (+5v) 9 XY2 (+5v)
    2 Switch 1 10 Switch 4
    3 X1 11 X2
    4 Switch 1 (GND) 12 Switch 3&4 (GND)
    5 Switch 2 (GND) 13 Y2
    6 Y1 14 Switch 3
    7 Switch 2 15 N.C.
    8 N.C.


    Notice from serverph:
    COPIED CONTENT from http://www.imperial.ac.uk/computing
    quotes added. hosting credits reduced.


  6. ntro
    SATA (Serial ATA) is the new standard in which to connect Hard Drives and soon, Optical drives (DVDRWs, DVDROMS, CDRWS etc) to motherboards. SATA improves on the old IDE interface by offering faster transfer rates, neater cabling, and future-proofing (IDE will begin to be phased out in a few years). Although most SATA drives at the moment aren't any faster than standard IDE drives, new drives are emerging that offer faster transfer rates than IDE limits us to.

    As SATA is a new standard there is some confusion over compatibility. Some PSUs (Power Supply Units) need adaptors to connect to SATA drives and older Motherboards don't have SATA support at all. To add to the confusion, when Windows XP was developed SATA wasn't yet a recognised standard so XP doesn't detect SATA drives when you are installing for the first time.

    Here is a guide on how to get started with SATA and how to install XP on your new SATA drive:


    Before you buy

    If you are planning on getting a SATA drive first make sure your Motherboard supports SATA. If your Motherboard doesn't support SATA you can always get an SATA controller card but my advice is to avoid these.


    What you need

    SATA data cables

    SATA drives use the new SATA interface and so don't connect to the Motherboard using normal IDE cables used by IDE HDs and optical drives. However, most Motherboard's come with 1 or 2 SATA data cables in the box and if they are not included you can purchase them separately.

    SATA power cables

    SATA drives also use a new type of power connecter rather than the standard 4-pin Molex connectors used by IDE HDs and optical drives. Most newly developed PSUs include the SATA power cables but if your PSU does not you will need an SATA power adaptor which can be found cheaply and easily.


    Installing Windows

    Once you have the drive(s) connected you are ready to start installing XP.

    Master and Slave

    Remeber since it's serial you can only have one device per SATA port/cable so SATA drives don't have jumpers. On the Motherboard SATA1 Port is for the primary device, SATA2 port is for the secondary device etc.

    SATA controller driver

    Your Motherboard or SATA controller card requires a driver to work properly. If you did not get a Floppy Disk with the SATA driver included with your Motherboard you will have to make one. The SATA drivers can be located on the installation CD that came with your Motherboard or preferably, download the latest SATA controller drivers from the manufacturers site. Once you have located the drivers copy them to a formatted floppy disk. Make sure they are in the root directory i.e. not contained within any folders.

    BIOS settings

    When you turn on the PC hit the Delete key when prompted and you will enter the BIOS (Basic Input Output System). Here you set the first boot device to be the CDROM drive, the option is usually found under the Advanced Options section but this depends on your BIOS and you may have to look around for it. Once you have done this save and exit.

    Installing the SATA controller driver

    Once you have set the PC to boot from the CD make sure the XP CD is in the CD drive and start the installation as per usual. Within the first minute or so of the installation Windows will prompt you to press F6 to install RAID or SCSI drivers, do this. Windows will continue to install then ask you to locate the driver. now with the floppy disk created earlier in drive A: select the driver and hit Enter.

    With the SATA drivers installed you can now continue the Windows installation as usual.

    BIOS settings revisited

    Once Windows has finished installing you will need to make sure the PC is set to boot from the SATA drive. To do this make the first boot device SATA if the option is available. If not you have two options: HD0 - If there are no IDE HDs present, or SCSI if you do plan on running an IDE HD as a secondary device.


    Notice from serverph:



  7. Follow these simple rules for search engine optimization and your blog will rank much higher in Search Engines. 1. Use your primary keyword in your blog domain The first thing to do is to ensure that your blogs URL contains the primary keyword you want to optimize for. Using the targeted keyword in subdomains also helps. For example, if you want to start a HTML tutorial site then the primary keyword you want your URL to contain is html. So choose a URL like http://www.htmlhelp.com/. You can also use the keyword in subdomains like http://www.cybernauticdesign.com/htmlhelp/ 2. Use your primary keyphrase in the title of your posts If your primary key phrase is html help make sure that the word html and help appear in your blog headers such as H1 and H2 tags as well as the title of each of your posts. 3. Use your secondary keywords in the body of your post If you want to get listed for secondary keywords use them infrequently in the body of your post. The theory is that the more times a keyword appears within a Webpage, the more relevant the page is likely to be for someone searching those keywords. But do not overdo this by repeating the same keywords over and over again. Google bots can find out if a keyword is too frequent on a page and might just remove your site from their index. 4. Use your keywords in the anchor text of links Use your primary and secondary keywords in the anchor text of links when linking to other blog posts or to other pages of your blog. Keyword in links have more importance than simple text. 5. Make sure search engines can spider your blog easily Make sure your navigation bar is present on all pages of your blog. Your previous posts or atleast the popular ones should be linked to all pages so they get spidered easily. 6. Get backlinks from other blogs You need as many links as possible to link back to your posts or blog because it will help you build pagerank and get your blog to rank higher in search engines. The more links you have the higher your blog is ranked in Technorati helping your blog to be found easily. So how do you get backlinks? * The first thing to do to get high-quality links is to submit your blog and RSS feed to blog search engines and directories. Start by submitting your blog to all the directories listed on this page: http://web-marketing.masternewmedia.org/rsstop55-best-blog-directory-and-rss-submission-sites/ * Link exchanging with other similarly-themed blogs will help you to form richly interlinked networks or communities. * If you find an interesting article on another blog, link to it generously. The trackback will become a link back to your blog. * Lastly posting legitimate comments in response to posts on other blogs will help you get backlinks. Regularly post legitimate comments in similarly-themed blogs with high traffic to get many backlinks. 7. Update your blog frequently Update your blog frequently using all the rules mentioned above and your blog will surely get top rankings in a short time. 8. Stick with your blog Once you start posting on your blog, stick with the same domain or you could end up losing a lot of your traffic and regular readers. Also stick with the topic you selected for your blog. If itâs about pets donât suddenly switch to another topic such as Gadgetâs because you will loose traffic.


    Notice from serverph:
    COPIED CONTENT from http://forums.xisto.com/no_longer_exists/ Quote tags added. warning served.


  8. I am currently learning C++ and QT, I'm just wondering how many of your guys develop for windows specifically for do you target mac and linux too, or are you developing games?Most important is the uptake of the .Net framework, just how many people are developing for it, is it really as big / important as everyone on the net suggests?Would love to hear everyones views!Im programing in C, making a sdl games for linux, its c because it can handle hardware devices i made and created drivers for it also accesing mysql databases from c...


  9. oh you great friend!!! in french search google there is nothing! thx for tracklist im going to looking for with american keywords american google!I've forgoten something! i have the real cd game of max payne, do you know how can i catch the music of the game ?thanks!!!Yes i agree its a great game.The music is packed with other data files so i think it cannot be played separately.


  10. "Hey when you get board try this in google.com search typeinurl:"ViewerFrame?Mode=refresh"some people are to stupid and not knowing leaver there cameras on public domain "so it is legal to view them"you see actual live webcam!. there's a whole lot of them in Japan to see the cities!Enjoy!"Any one found some "interesting" cam ?we can start a topic : interesting cams


  11. I totally agree with you. Partypoker.com is not a rigged site. And yes there are indeed very good players at partypoker but if you play the lower limit tables for example the $1 or $2 no limit you will find out that their are many fishes which are just playing for fun and lose a lot of money.So if you know your pot odds and you can play with discipline than you can earn a lot of money at partypoker.com. The main keys are patience and discipline. If you know that you cannot win the pot than get out of it.
    The last hing i will mention is that you must never bluff at the lower limits because there will be players who will call you and win the pot with low pair.



    Sounds good, if this is true we can make lot of money. But the question is: how will make profit the company iof everyone wins ?

  12. Yes its a way for promoting :i like the idea about promoting a site through forums, but not just listing a site to go to. it should be on topic and you should add some information that is usefull for the forum and on topic. you can then tell them that if they are interested, they can find out more information by going to your site. don't ever create an automatic link exchange program. you need to create a link exchange with RELATIVE sites. if your site is about music, you don't want to exchange links with a site about pets. you're not linking to quality content related to your site and you will not do well in the search engine ranking in the long run. one way links that link to your site is good, google site maps is good as long as you did it right. the exchanges aren't going to help you much in attracting visitors unless you can catch the visitors eye really fast to stay on your site or even bookmark it.start offering something free. an ebook related to your site. write one yourself. a newsletter that nobody else offers. make them join your mailing list to obtain it. mailing lsits are gold to bring back visitors to your site if you can offer something of value to them. build a list, bud and be creative in how you go about doing it. alot of people don't want to be spammed now and are afraid if they give their name and email address it would be the worse mistake in the world. build credibility and trust with your visitors.


  13. must say the whole having to post to keep your free hosting is a little bit irratating but for what you get when you maintain that properly is so much betetr than any of the other free hosting websites. Most of the other free hosting places will only give you like one database and some of the php commands and that is really pointless at the end of the day as the ones they don't give are normally the better ones and the ones you would be using more regulary and one database what the hell are you supposed to do with one database that has a size limit as well ?? Yes i must agree i hope they last ...

    must say the whole having to post to keep your free hosting is a little bit irratating but for what you get when you maintain that properly is so much betetr than any of the other free hosting websites. Most of the other free hosting places will only give you like one database and some of the php commands and that is really pointless at the end of the day as the ones they don't give are normally the better ones and the ones you would be using more regulary and one database what the hell are you supposed to do with one database that has a size limit as well ??


  14. Now you have specified the ../uploads directory for upload, does that directory exists ? Also check in php.ini that you have granted the upload and in which dir (on linux sys , does php group has access to that dir) if ( move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "../uploads/{$_FILES['uploadFile'] ['name']}") ) { print '<p> The file has been successfully uploaded </p>'; }

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.