Atli's Profile User Rating: *****

Reputation: 3978 Guru
Active Posts:
7,239 (3.35 per day)
08-June 10
Profile Views:
Last Active:
User is offline Today, 05:17 PM

Previous Fields

OS Preference:
Favorite Browser:
Favorite Processor:
Favorite Gaming Platform:
Your Car:
Dream Kudos:
Expert In:
PHP, Databases, Web Development
Icon   Atli has not set their status

Posts I've Made

  1. In Topic: Problem : There is no wireless interface on the system

    Posted 5 May 2016

    If it's not working at all, it's not going to get a lot worse.

    The primary method for solving issues like these is screwing around with the drivers and settings until something happens, unless you already have an idea what the actual problem is. Mostly stuff like this is just driver issues, or some oddity in the configuration. Windows is built to be more or less idiot proof, so there isn't a great deal of damage you can do within the Windows GUI, or even the CMD emulator.

    The alternative to that is hardware problems, which you wouldn't fix yourself at any rate.

    I'd reiterate my suggestion to boot a Live DVD/USB from a Linux distro (like Ubuntu, for example) and see if the networking works there. If it does, at least you know the problem is with the software, not the hardware.
  2. In Topic: Problem : There is no wireless interface on the system

    Posted 5 May 2016

    First, the obvious question: "Have you tried turning it off and on again?" :)/>

    If the laptop were sitting in front of me, I'd probably start by fiddling with the drivers, and generally just messing around with the settings inside Windows to see if I can shake something loose.

    If that didn't do anything, I might plug in a Live CD/USB for a random Linux distro, and see if the networking works there. That would, at least, eliminate hardware failure as the cause.
  3. In Topic: [Help] User Access Level - Using PHP7 & MySQLi

    Posted 5 May 2016

    Regardless of the group name, my point still stands. It's clearer to use an actual name, rather than a numeric ID or some unclear reference to a name.

    You quite often see this implemented in larger systems with the use of constants, to make the code more readable.
    class User {
        const ROLE_ADMIN = 1;
        const ROLE_STANDARD = 2;
        // ... Insert code to fetch and manage user data.
        public function hasAdminPrivileges() {
            return $this->getUserLevel() == self::ROLE_ADMIN;

    I personally don't see a problem with using "admin" as a group name. But then, it's been a long time since I've worked on a system where the group/permission system is so simple you would hard-code group names into PHP conditions. My approach is normally to enable/disable things based on permissions, and then dynamically assign those to groups via a control panel.
  4. In Topic: [Help] User Access Level - Using PHP7 & MySQLi

    Posted 5 May 2016

    View PostRhaom, on 23 April 2016 - 01:56 AM, said:

    Within my phpmyadmin database...

    Just to clarify, because it has to be said: phpMyAdmin is not actually a database system, just a simple web-based GUI for MySQL databases.

    May seem like an insignificant detail, but it's an important distinction :)/>

    View PostRhaom, on 23 April 2016 - 01:56 AM, said:

    How can I use my UserLevel to decide what an admin can see that a user cannot.

    Like ArtificialSoldier says, store the access level in the session. Then use simple logic to show (or hide) content based on that.

    For example:
    // Page: show_blog.php
    // This would simply be where you initialize your DB and Session and such.
    require "bootstrap.php";
    // Show a blog, based on an ID from the query string. 
    // (Remember to validate the ID first! Skipping that here for simplicity.)
    $blogData = getBlogData($_GET['id']);
    if (!$blogData) {
        header("HTTP/1.0 404 Not Found");
        die('The blog entry you requested does not exist.');
    include "templates/blog_display.php";
    // And then show admin controls, if the user level is that of an admin.
    if ($_SESSON['userLevel'] == 'admin') {
        include "templates/blog_admin_controls.php";

    Note that I use the word 'admin', instead of a numeric level. It's clearer that way. Clarity/simplicity is important when writing code. The more obvious it is, the better.
  5. In Topic: objective c connection with sql database

    Posted 4 May 2016


    Presumably the SQL database in question isn't on the device with the app, but rather online, on a server somewhere?

    If so, I'd generally advice people to set up some sort of web-service in between the app and the database. A REST/SOAP service, for example, is a popular and (usually) fairly straight forward thing to do.

    Gives you more control over the whole thing, and doesn't make you reliant solely on whatever security and performance measures are built into the database server.

My Information

Member Title:
Enhance Your Calm
29 years old
September 5, 1986
Full Name:
Atli Ţór Jónsson
Years Programming:
Programming Languages:
Expert: PHP, SQL (MySQL, MSSQL), Web Development (HTML, CSS, Javascript, jQuery).

Studying: AngularJS, Node.js, Python, Ruby.

Dabble in: C#, VB.NET, Java, ActionScript 3, LUA, C/C++


  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    khaichua Icon

    24 Nov 2015 - 16:42
    You can give yourself a look at Huffman file Code.h and HuffmanCode.cpp.
    Thank you very much
  2. Photo

    Anuraj23 Icon

    24 Nov 2012 - 00:43
  3. Photo

    Atli Icon

    21 Sep 2012 - 03:19
    Hey lyster. Please post questions like that in the forums. That's what they're there for.
  4. Photo

    lyster Icon

    21 Sep 2012 - 00:40
    i just can't figure out what are the possible tables,,i want to know normalization well..u_u
  5. Photo

    lyster Icon

    21 Sep 2012 - 00:34
    hi there mr. atli..i hope you could give me some advices and idea on how to make an erd on my mini mortuary_system,thanks god bless you..
    by the way im a student of a state college here in the philippines.
  6. Photo

    kimimimi Icon

    26 Aug 2012 - 00:37
    please help me
  7. Photo

    xenoslash Icon

    19 Jul 2012 - 23:35
    You are quite possibly the most helpful member of the community. I wish I could +1 you more than once for every long (and useful!) post you make.
  8. Photo

    Maryam.m Icon

    23 Jun 2012 - 10:52
    hey i understood what should i do!!!
    i'm so happy :D :D
  9. Photo

    polyosis Icon

    11 Jun 2012 - 16:49
    I would like to thank you on your advice with my site path and installation problems, you are most kind my friend.
  10. Photo

    Atli Icon

    14 Apr 2012 - 05:22
    Yea it seems to like you, Dimitri ;)
  11. Photo

    DimitriV Icon

    08 Apr 2012 - 19:20
    Your avatar… it blinked at me.
  12. Photo

    Atli Icon

    06 Nov 2011 - 19:49
    Hehe. Thanks guys :)
  13. Photo

    Dogstopper Icon

    06 Nov 2011 - 19:19
    Lookin' a little blue there. Cheer up man! You're a mod! Congratz!
  14. Photo

    codeprada Icon

    06 Nov 2011 - 18:34
    It's about time. Congrats on reaching blue status.
  15. Photo

    n00l3 Icon

    05 Sep 2011 - 12:59
    Happy birthday! :D
  • (2 Pages)
  • +
  • 1
  • 2