Jump to content
xisto Community

BCD

Members
  • Content Count

    321
  • Joined

  • Last visited

4 Followers

About BCD

  • Rank
    Super Member

Profile Information

  • Gender
    Male
  1. For temporarily sharing sites you could use no-ip or dyndns. You basically get a sub domain and an application which constantly updates the sub domain settings to point to the latest IP address.
  2. The website can be used through private IP of the server appended with port number (if other than 80). While access to the server through public IP is blocked by firewall. That is the easiest way I can think of letting people inside a LAN access the internal website. Just see the network settings of the server, you will find the private IP listed there, just share it with the department.
  3. Yes, you did the edit correctly. Since accodring to documentation E_STRICT is not included with E_ALL. May be you could try setting "display_errors" in php ini file to "Off". Or may be actually you did not edit the correct php.ini file. Long time ago when I used to user XAMPP I used to see 3 php.ini files in various directories within XAMPP directory. Since I never figured out which one was the one which did the trick, I used to edit all the three.
  4. Hey there!Welcome back to Xisto, now Xisto after a long time. Its not often that we see people coming back here after long time. And yes, I sure hope it keeps you busy, but rather the keyboard than the mouse, in the hope that you find lots of posts to reply to rather than just moving on to next ones.
  5. Thanks for an interesting post after a long time. First thing I would like to ask you, whether you would like to work with the data at the database level or create a front end for it using php etc? Although MySQL data can be comfortably browsed using "MySQL Query Browser" or other similar tools. But since you mention about email reminders and things like that, I guess you are looking at a more friendlier way to consume the data. Coming to the part of creating the layout of the database (I only talk about MySQL in this post). I know its the most interesting and challenging part to create tables and set up the fields and their relations so that their is no redundancy. There are tools like MySQL Workbench which would free up the brain of having to handle a lot of fields and their relations while creating the database. It would be easier for me to grasp the layout, if you would have mentioned all the fields you came up with till now. Except the primary key (which would act as a unique id for a particular student), let us keep the first table (containing student info) aside for a while (although other details like 'joining date' might affect data on other tables, for example you would want to remove a student who has taken more than specified time to complete the course, etc). Ah, well before I can think further I need to know some details like: 1) Is the fee for a particular session (say 30 min) the same for *any student? If the fee for a particular session is same, then we could come up with a separate table containing charges for some particular session. Thus the primary key of this table can be related to next table. The third table may be used for logging purpose. This table might contain these fields: 1) The student primary key (related from first table) 2) Date field (the day this particular student takes session) 3) Time field (if its possible to take multiple sessions per day then this field is important). 4) Session type (related from 2nd table, which says which type of session (30 min/ 1 hour etc) has the student taken for this particular session) 5) Payment field (Store whatever the student pays for this particular session, enter 0 if no amount paid. This data is worked upon in conjunction with all the dates logged in for this particular student and the session type costs). 6) Attendance field (stores true or false registering the attendance of the student). This is very rough idea if what could be built upon for the database. Here is a sample Database model to get you started with brainstorming (need to download MySQL Workbench to open and edit this): http://www.mediafire.com/error.php?errno=320&origin=download http://imgur.com/NUNa9 May be you can post back the file with your updates so we can have a look at. Just show us the roughest idea and fields which you can think of no matter how unorganized it may be to show us the base idea of your system. Later, I am sure there are some db geeks here who are pros in normalizing db's. If you would like I would be glad in helping you with this and some PHP things which can be coded up for this system.
  6. Even though I do not use windows now, but I do know that we can set system wide folder view. Its probably in Tools > Folder options. Check it out. Once you choose a particular view its applied to every view, not just when you view CD's.I would rather recommend some kind of Media organizer for music browsing than the built in File browser. Interestingly a commercial File Manager is out there for free on brothergiveaway.com . As of now just 2 hours remaining.
  7. So I am doing the tests, but again not satisfied with my ISP's internet service. Ping's are unusually high and there are lots of dropped packets. I Would try with some other ISP's over a couple of days.
  8. From what I know, LED TV's have more contrasting color, I mean the darks are perfect darks. Also LED TV's consume a bit less power than LCD's.
  9. Talking about diet. No, I do not follow any particular diet. On Sundays, during heavy practice sessions, I make sure to have plenty of juices. Other than that there are no regulations on my eating methods. I just eat a lot, whenever I wish. I also have a fasting for a day every month, during which only fluids are taken, to give a bit of relaxation to the stomach after a month long food churning. :)I learn Taekwondo for the effect it makes on me and my weekday routines, its kind of regular exercise but more than just exercise. Actually I started learning taekwondo a few years back, probably around 3-4 years ago. I gained till the green belt. I had to leave because I had to relocate to another place. So thus I had this break of 3 years. One thing which I noticed is that the body becomes stiffer after leaving regular practice for two-three days. I used to practice in backyard to keep touch with my exercises and kata's. But I was all alone, and soon I lost the interest. It didn't feel any exciting to practice alone. I used to think of those sprint races we had in the weekend circuits, trying to bash through with full speed. Now after coming back again, I had the urge to join the academy. And so well, here I am back again, resuming regular practice. The first day I rejoined the academy I had the urge to perform usual heavy session, but my master warned to only carryout warm-ups for a week or so, otherwise we would feel pain in the joints, etc (this is common). And now, I am able to regularly practice usual sessions and it feels great.
  10. Taekwondo (Tae-Kwon-Do) is a martial art performed using the body's natural weapons, fist and foot. The roots of Taekwondo can be found in South Korea where the traces have been found that the art has been taught in the kingdoms since 50 BC. Taekwondo is a martial art which gives more emphasis on kicking techniques.So that was a brief introduction about Taekwondo. My intent of posting this thread was a bit more than explaining about the art. I have been learning taekwondo with other fellow mates as a juniour, and I wanted to share a typical day/process by which we are learning the art. I would also share about a couple of incidents.For most part of the time we are told that the martial arts is more of a weapon for self defense rather than a weapon for attack. We are told about the deadly kicks and how to counter them. Suppose, when confronted by a kick and there is no way behind, to counter the kick the best thing is to take the stance of side kick, that is a foot touching the knees of the other leg on ground. As told earlier, I am in the juniors batch currently with a green-blue belt. There is this seniors batch who practice after we leave the practice sheds. They are the people who hold black belts and above. Some days, competitions are arranged for these seniors (we too have it occasionally) who are put up against for matches in a ring. Watching those competitions from a distance of 5 feet is really unusual, compared to watching it on television. The seniors who looked so soft and humble a few seconds ago become so agile and swift. Their front leg is generally the most active part of the body. We mostly get to see eighty percent of kicks and the rest punches, attempt to head grabs etc. During these competitions our grandmaster is also present who would sometimes enter the ring himself and call someone from the seniors batch on the ring. Of course, who would dare to go up for a match with a person who taught them all these years? Most of them dare to go up the rings but do not dare to take a stance in front of the master.The practice sessions are held every day of the week. We generally practice the various taegeuk's and kata's. Although we are not given any manuals to follow through, instead we are made to remember these steps through repeated practice daily. Each kata typically consists of around 20 steps, starting and ending at a neutral stance. Currently at our level, we do not use any physical weapons. Everything we learn is to control our body balance and use fist and legs to the best extent possible. Seniors use a thin bamboo like stick around 2 meters of length and perform the taeguk's. They seem to consist of way more steps than usual physical based taeguk's, and also each step is of longer duration, which involves observing around all directions, performing appropriate attack or defense and then regaining control of both the body and the weapon.Apart from the daily routine practice sessions, we also have heavy exercise sessions known as "circuits". These circuit sessions are held every Sunday early in the morning. Let me tell you, after going through this rigorous session, the whole body feels 'feather light', as if we are floating above the ground. The whole body becomes so flexible and free. The hands, legs do not feel like such anymore. Instead it feels like all the body parts are in perfect unity, I can not actually explain, how this feels. You have to experience it yourself. So, talking about this circuit sessions. A single circuit includes, a 100 meters sprint back and forth (200 mts), then immediately squat for duck walks (typically 30 one way), then frog jumps while returning back, then push ups (around 20). So that is a single circuit, we repeat this whole process for about an hour and a half with "strictly" "no" breaks in between. Some times someone would just faint, and then would get back up again. There is no mercy. After this hell lot of workout we just lie on open lawn for about half an hour. Our senior tutor would usually tell us some nice incidents occurring in their shaolin. By this time all the heavy thick sweat (of week long work) would have dried off. We get freshed up and have plenty of juices and a nice breakfast. It feels you are eating delicious food for the first time (even though you wouldn't have liked it much otherwise). This workout sets straight the mood of the whole week. I feel energetic and more alert in whatever activities I do.Talking about some workouts. We do pushups on our knuckles. We are told to make sure that the only the knuckles of index and middle finger are in contact with the ground. After having performed this way for several weeks now, my knuckles have hardened up. Whenever I meet someone new, the first thing they would ask is "What are those, do you break bricks or something??".This is just a brief overview of what we carryout in our routine practice sessions of Taekwondo.
  11. Thanks, I will check out if I can get GreenSQL running on one of the systems. Although we have Arch Linux which GreenSQL does not officially support. About syn floods, it definitely seems like something to be looked upon before going live. How would I go about finding my ISP's firewalls and equipments. I guess I would have to call them over the phone to know them right? Or is there an easy way to find out that out ourselves?
  12. Yes Let me make it a bit clear, there would be around 100 users using this particular application. This would not necessarily mean every one of them would be querying the server every second. We can assume approximately 10 people to be querying at a time. I would really want to know about the security concerns. What does it exactly mean, that it would be "easier to inject your database"? The scripts and queries are well protected against any sql injection by query modification or lateral injection. Further, mostly we use only stored procedures. And more importantly only certain trusted users can "insert" data into the database. So whether they are executed locally or remotely, the scripts are protected by the same protections right? Except port 80 and 3306 all the ports would be blocked. Any pointers or ideas as to how exactly "ISP firewalls and equipments" divulge security of the systems?
  13. We have a website running just fine. There is a database intensive application on the website, which does a couple of joins across various tables with around a million tuples. After this heavy processing initiated by the script, the output is only a few kilobytes.Since, getting a dedicated server for the database would be expensive, I am considering hosting it locally in-house on AMD quad core's. The basic amenities are well and good except for the bandwidth. The maximum data outbound is around 512Kbps - 1 Mbps. I would like to know from experienced people in server management, whether it would be feasible to opt such kind of in-house hosting for database? A couple of things to take note of:1) This database is not the main database of the website. So, in case of network issues the main website is not affected. Appropriate message is shown by the application script about the unavailability of the database.2) So we can afford some occasional minor disconnections between the website and MySQL server.3) Each query would produce around 50 Kilobytes of outbound data.4) Around 100 users at any given time.What I would like to know is, if there are any apparent issues observed while hosting this way.
  14. Complete guide: Install, Run and Manage Webserver on Ubuntu: Chapter 1 A Brief Introduction to the whole Tutorial Series: Target Audience: Absolute Beginners to Web Development, especially for learning the basics of web server management. Written in detailed manner to make newcomers interested in linux web development and linux in general. Target Operating System: Ubuntu/Kubuntu (Mostly, only the installation differs but configuration setup remains the same for any Linux based OS). So, if you know how to install packages in your linux distro then there should be no problem following this guide. Software Packages List to be installed in this tutorial series: Apache, PHP, MySQL, PHPMyAdmin, cURL, Nginx are currently planned in this guide. This list will updated when chapters are planned for more packages. Usage: Host a complete working live website, hosted either on a Virtual Private Server or on your own computer. Other requirements: Good internet connection to download necessary softwares for the server if installing on your own computer OR decent resources of the VPS if installing on a VPS. "Your own website on your own domain (like .com or free domain like .tk) on your own PC which pops into action as soon as you turn on your computer, and dies as soon as you switch off your computer" This guide won't give up until you 'setup and host' a website completely from your own computer or a VPS. This guide is written to be interactive (uses "Guide Search" to quickly move to different sections), so feel free to pull out any step / subsection you did not make through or did not understand. We can discuss about that in more detail. Just quote out a forklet (sub section) you need help with. Although the setup instructions are written for Ubuntu Operating System (OS), the instructions for configuring the server should work for other Linux based OS'es too, as the program configurations are 'generally' program specifc and not OS specific. So, why would you want to host on your own PC? Hosting on ones own PC gives the freedom to do rigourous tests on a live webstite. How? A typical PC today has hardware resources many times higher than the resources offered under shared hosting or even Virtual Private Servers (VPS). Thus, we can limit the resources of our own computer to test under various resource requirements and choose appropriate hosting. If the website is your personal space, then there is no better place to host on, other than your own PC, so that you can access data anywhere in your network, like Laptop, Sound Systems, Desktop PC, Handheld devices like smartphones, etc. There is no need to upload files to remote server, so development speed is greatly enhanced while testing out on a live website. If you have a PC which stays powered ON all the time, then you can easily host a small to medium site. If not your own PC, then on a Virtual Private Server:A Virtual Private Server (VPS) is a virtual operating system intstalled inside a big powerful physical server. Generally, there are many VPS's installed on a Physical server. Even though all the VPS's installed use the same physical server, the resources are allocated separately for each of the VPS. A VPS behaves like a completely independent PC, where we can install own OS and in fact the softwares installed inside a VPS knows only about its parent (VPS). A VPS has no connection to the big physical server (grandparent). I chose Ubuntu as the target OS for this guide, since this is a beginners guide and assumes little or no experience of managing web servers, its configuration etc and as Ubuntu being a newcomer friendly, it is easy as well secure enough to host your own website. I chose a standard Ubuntu 10.04 LTS CD as the base. It does not come with any server softwares to run a web server, and hence the article shows you how to install it and configure it. A note about Handy command search used in this guide (Guide Search): To make it easy to know often used commands, I use a simple method to categorize and enable you to easily and quickly move between the command at hand and its description (given on every page of guide at the start of the chapter). This avoids repitions of common commands. This also makes you remember and make you think about the command by not showing the command initially, but at the same time allowing you to quickly know about it if you did not remember it and get back to section you were reading. So, later in the guide, when I want to show you the commands listed in 'commands list', I will show there a 'guide quote', something like @restart-apache9. Then to quickly get to that command listed in commands list at the top, type @restrat-apache@ in your browser search (Hit Ctrl+F). And to get back to the section you were reading type: @restart-apache9 and you will be back where you left. The last character (like 9) is a number which makes it unique to reach the exact point you left. So lets get started. Note: The instructions are provided in as detailed manner as possible in the beginning of the guide. As the guide moves on futher, these basic general instructions are not repeated so as to prevent deviating from the topic at hand. Chapter 1: Installation, Configuration and setting up a html website in Apache Step 1: Installing a Web Server (Apache) List of commands used by 'Guide Search' in this page: List of handy apache 2 commands. Replace the angle brackets (<>) and text inside it appropriately (Each of the commands are explained later in this page). The text after '#' is a comment written to describe the command. I use 'Guide Search' in this whole tutorial series to be able to quickly find more about a command at hand. /etc/init.d/apache2 restart #@restart-apache@ #Apache: Restarts the apache server a2enmod <MOD NAME> #@enable-module@ #Apache: Enables a module a2dismod <MOD NAME> #@disable-module@ #Apache: Disables a module a2ensite <SITE NAME> #@enable-site@ #Apache: Enables a site a2dissite <SITE NAME> #@disable-site@ #Apache: Disables a site Apache is the most popular web server. Another popular, compact and efficient server is Nginx. In later chapters we will see how to run Nginx as an alternative to Apache or running both Apache and Nginx. I will Since Apache 2 is widely used we will go ahead and install it now. First open up the terminal. Go to 'Applications' menu > 'System' and click terminal. TIP 1: Since we will be using the terminal a lot, we can create a quick launch by dragging it on to the task bar. Note: I will be entering all the commands in this guide by entering into sudo mode. To enter into sudo mode, type 'sudo su' and then enter your user password. Now you can enter any commands, even which requires root permission, since we are logged in as root for that terminal session. Use apt-get to install apache by typing the following in the command prompt: apt-get install apache2Enter your user password. Press y to confirm downloading the Apache2 package. Cogratulations, you just installed the web server. Start apache by typing /etc/init.d/apache2 startOR service apache2 startWe can test if apache is working by entering the url 'LOCALHOST' in a browser. You can also use your hostname instead of localhost. To know your hostname, type hostname in terminal. So now, the server should display a default test page. We will see how to add files to the website soon. The following packages are installed: apache2apache2-mpm-workerapache2-utilsapache2.2-binapache2.2-commonlibapr1libaprutil1libaprutil1-dbd-sqlite3libaprutil1-ldapapache2-mpm-worker http://httpd.apache.org/docs/2.0/mod/worker.html implements Multi Processing Module. Thus, each process can have multiple threads running. libaprl packages are support libraries. Here are some notable directories and files which apache creates during installation: $ /etc/apache2All the configuration settings of apache stored here. We will mainly edit the configration settings by editing files in this directory. /usr/share/apache2/Some default data stored here. No need to edit anything here. /var/cache/apache2/Stores cached documents /var/www/Default directory to store files of the website. We will see how to change this root directory of our website later. Step 2: Configuring Apache2 Where are website files saved? Ok, so now we have our webserver running at LOCALHOST. But where are the website files saved, so that we can add to, delete or modify the pages? By default, the directory is: '/var/www/'. How to add/modify/delete the website's files? The directory '/var/www' is under root users control, so you need to edit/add/delete files as super user (sudo <COMMAND>). If you need to quickly learn the common linux commands for file and directory management on command line, check out this brief cheatsheet: http://freeengineer.org/learnUNIXin10minutes.html Another more easier and graphical way is to run a file browser like Nautilus in Ubuntu or Dolphin in Kubuntu as a root user. To open Nautilus (for Ubuntu) as root, type the following in terminal and then enter the: gksu nautilusTo open dolphin (for kubuntu) as root, type: kdesudo dolphin TIP2: There are lot of useful directories which you need to browse often like apache configurations folder (/etc/apache2/) and server root directory (/var/www). You can add these directories to 'Places'(favorites/bookmarks), so you can quickly change to that directory by clicking it in the Places panel. How to change the root directory for storing website files? Since '/var/www' is under root user's control, you may want to move this to somewhere else something like to our home folder, say like '/john/servroot/'. Open /etc/apache2/sites-available/default as root in an editor. Change the root directory specified in DocumentRoot directive: DocumentRoot /var/wwwto wherever you would like to (say /home/john/servroot/htdocs/localhost). NOTE: Do not add trailing slash.And also change the 9th line: <Directory /var/www/> appropriately, with a trailing slash. Restart apache to update changes. @restart-apache1 Apache 2 Security settings (/etc/apache2/conf.d/security): Here we will see how to modify some minor security related settings. Open the file /etc/apache2/conf.d/security in either the console or file browser with root access. How to hide server details from showing in error pages? (Server Tokens) By default apache is set to show the OS details in the error pages like this: Unless you are working in a development environment, its recommended to hide these type of details. You can set the the directive of server tokens from: ServerTokens OSto ServerTokens Prod Restart apache to update changes. @restart-apache2 But you can still see the server, hostname and the port it is running on. To remove this too, turn off ServerSignature Directive. This setting applies to the entire server. ServerSignature Onto ServerSignature Off Restart Apache. @restart-apache3 Now, for you can see error pages without any server info like this: Adding another site to Apache: As of now, we can access our default website by going to LOCALHOST. What if we wanted to add more sites which would be accessible by visiting say, http://mysite.com/? We will now see how to add more sites by adding a name-based virtualhost. Apache has two directories sites-available and sites-enabled present in /etc/apache2/. To add a site you create a configuration file with the name of your website and save it into sites-available directory. When you wish to enable the site, so that you can actually use it, you use the command: a2ensite <SITE-NAME>Restart Apache @restart-apache4SITE-NAME is the name of the file in sites-available directory, that is, your websites name. NOTE: To disable the site use: a2dissite <SITE-NAME> The command a2ensite actually creates a symlink (similar to shortcuts in windows) to the file present in sites-available and saves that symlink in sites-enabled directory. Conversely a2dissite deletes the symlink. When apache starts it looks for the symlinks present in sites-enabled directory, it loads its configuration and enables that site. So talking about the configuration file itself, here is a sample configuration to be saved in sites-available directory: <VirtualHost *:80> ServerName example.com ServerAlias http://www.example.com/ DocumentRoot /home/john/servroot/htdocs/example.com ErrorLog /var/log/apache2/example.com-error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. #LogLevel crit # recommended LogLevel debug # only for development CustomLog /var/log/apache2/example.com-access.log combined</VirtualHost> Change the directory paths appropriately and save it with a name like example.com. 'ServerName' is the name of your website. This directive tells apache that whenever the apache server receives a url of example.com, it should catch that url and connect it to the appropriate web file in DocumentRoot. ServerAlias is an alias to the default name. In this case, we have created a www version of alias. So, going to example.com/file.html or http://forums.xisto.com/no_longer_exists/ will show the same file. Note that, an alias does not redirect to the original domain name. We need to use other method like rewrite method saved in a htaccess file. We will cover this in the later chapter where we will see how to connect our domain name with the PC. There are two log (ErrorLog and LogLevel) directives mentioned in the configuration file above. The name of the log file can be anything, apache will create it automatically in '/var/log/apache2' directory. These log files are very useful for debugging purposes and also to keep an eye on website activity. Do not forget to enable your site after saving the configration file. @enable-site1 Hey! Wait. But how do I open the site I just created, since I have not yet bought example.com? So if we enter example.com in browser we do not see our own website. Yes you are right, in a later chapter we will see how to link your own domain name to the website on your PC. But for now, to test the website without an actual domain, we will fool our PC and make our test domain example.com redirect to our newly added virtualhost site above. Open /etc/hosts and add: 127.0.0.1 example.comNow, only on your PC, when you visit example.com, it is redirected to your website on your PC. It is thus very easy to work with real URL's while the website is actually still in development. Especially useful where you rely on real website url's in your/others scripts. Conclusion: In this chapter we installed apache, learnt about various confiugrations. In the next chapter we will install PHP (Hypertext Preprocessor), so that we can run dynamic useful scripts instead of hosting just plain vanila html files. We will also see more apache related configurations as we move on.
  15. This is my personal review of a multi-touch text editor software called StNotepad Touch. StNotepad Touch is the first application (correct me if I am wrong), which supports multi-touch gesture based actions for common tasks like copy, paste, cut, delete, enter, tab, space, backspace, undo, redo, save etc. I am using this on HP touchsmart tm2 running Windows 7. The gestures feel very natural to use. I think these days we are really seeing the true potential of multi-touch applications. As more and more multi-touch notebooks/slates/tablets pop out from the factories to the consumers, so is the demand for multi-touch applications. You can see the video for yourself: [media]http://forums.xisto.com/no_longer_exists/] Currently the following gestures are supported as shown in the image. It seems more and more gesture support are being added every now and then. You can check out the individual gestures on the official website here: http://forums.xisto.com/no_longer_exists/. OR you can refer the gesture chart image here: StNotepad Touch already has a unique feature not seen in 'windows applications'. That is translucency of the Graphical User Interface (GUI) while the text and controls remain completely opaque and legible. I have been using this unique feature a lot already. Also I really like the multitouch translucent theme. This theme is so much user friendly, by enlarging the title bar and menu bar. Very useful for people with fat fingers like me . Another feature specially implemented for multi-touch devices is the Circular Menu. This type of menu is actually called Pie Menu. Check out this Wikipedia link to know more about it. In my opinion this Pie menu is the best alternative to right click menu for a multi touch tablet/slate/notebook. May be useful even on the smartphones. If you are wondering how a circular menu looks, see the screenshot: If you want to check out this application, the official website of StNotepad Touch is http://forums.xisto.com/no_longer_exists/.
×
×
  • 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.