Search the Community
Showing results for tags 'ubuntu'.
Found 2 results
Hi everyone, I'm currently on Chapter 4 of the PHP course and I'm having problems following up everything since I'm using ubuntu linux instead of a mac or windows pc. As a result, I can't install MAMP and I've had to try a couple of alternatives (LAMP and XAMPP) but neither seem to be similar enough to the MAMP that Stef uses in his videos (LAMP doesn't seem to have a user interface at all and XAMPP doesn't have a simple user friendly UI like MAMP does, which allows you to search files , like Stef does in lesson 2 chapt. 4 in order to find php.ini). Is there a better MAMP alternative for ubuntu? Also, when I search my computer, I have 3 different php.ini files in the following directories: /opt/lampp/etc /etc/php/7.0/apache2 /etc/php/7.0/cli Which one of the three am I meant to modify so that I can enable error messages? All of them have restricted writing permissions ("You are not the owner so you cannot change these permissions"). Any advice will be appreciated. Thanks in advance.
Here is something fun I did messing with my computer with the low level of experience and knowledge that I have. I have had some experience with python before, but I never built anything cool with it. I had several years of not doing anything with it so I decided to start from the beginning again. This little bit of code is basically my own personal "Hello World" program: x = [some number] while x > -1: print(x) x -= 1 The first time I encountered a "Hello World" program it took me a while to understand why it was special. It seemed like I had done more work than the computer had and I didn't value what was going on. But when I first encountered a loop and could command my machine to do actual work; that seemed cool and interesting to me. My first encounter with a loop really fired up my imagination about the power of what I was learning. Below is a little adaptation of the code above which accepts a number defined by the user then counts down. An easy improvement would be some error handling but I was just building it to see what it would do to my machine. I recently was able to research and build my own machine. It isn't top of the line by any stretch, but it is far better than the old 2007 dell machine I had been using before. I still need to do some work to get the ram working up to specifications, and maybe try a mild over-clock but I have that on the back-burner for now. You may notice by the layout I am running a Linux distro. I am running a duel boot Ubuntu and Windows on my machine. I boot into Ubuntu for learning and work. I only have Windows to play games with really. This first screen is the "at rest" version which really isn't at full rest because I have Spotify and a few mild programs running still, but it is close enough for my purposes. I think the network spikes are due to Spotify reaching out to the web for adds and music. You can see the code in the file I am using on the bottom left. The top left is the terminal I am using to run the program. You can see I already ran a few mild tests.