Jump to content

Mahngiel

Newly Registered
  • Posts

    1,068
  • Joined

  • Last visited

Everything posted by Mahngiel

  1. HTML has this already. <input placeholder="this is what you should enter here" />
  2. Now we're to the point were "big brother" decides what's best for society. Many sheeple are perfectly happy being told how, what, and when they should do things - as they either lack the wherewithal or desire to make choices for themselves. This is why advertising is such a powerful tool, and why OP's son is interested in a Mac. There is inherently nothing about the device that makes him want it, it's the fact that other people have it. Companies count on this factor. It's what perpetuates the mainstream bullshit we constantly see - it's inescapable, we know it sucks, but we can't get enough. I made a decision several years ago to never purchase an Apple product PURELY because of their advertisement schemes. It makes me sick how they play their hand. Credit to them for innovation, but shame on them for their methodologies.
  3. you'll need to implement a tracking table. it can be very simple: user_id | thread_id | timestamp for every thread a user visits, they get logged with a timestamp. compare a thread_id with a last_post_timestamp to see if there is a greater time. if not, it's not new.
  4. Remember when people realized iPhones embedded geolocation into their photos?
  5. People expect search queries to be aggregated... not their Siri requests.
  6. Not to mention all their data mining. http://www.imore.com/apple-siri-customer-insight-play That's what I like about my android. I run a custom ROM, kernel, and boot loader. I was running iCS4 when sprint was still barely on 3.1
  7. these are very common tasks, and you will likely use a join to do so.
  8. God, where's the like button when you need it!
  9. yea, makes sense. What I've always done with 2.2 was create one global config (httpd.conf) and then create virtualhosts for each site and overriding directives as needed. ex: denying .htaccess files globally, but requiring them to be read per vhost when required. Anyway, ultimately whether the vhosts are in the server root or in some distant folder, I'd like to contain all the files into one folder without needing to independently include them. Yes, of course. /home is on it's own partition, and I compiled 2.4, php5.4, and pma3.5 there to isolate them as older versions are in the repo and I wanted to ensure no conflicts. Also, if everything worked out as planned, I could use them on my 'real' development partition. Furthermore, Include enabled/name works just fine
  10. On my debian-based machines running 2.2, the provided packages created four folders: sites-available/enabled & mods-available/enabled You created your vhosts and downloaded modules to the available and when enabled, a symlink was created in the 'enabled' directory. apache2.conf directed the webserver to these folders with: Include sites-enabled/ Include mods-enabled/*.conf Include mods-enabled/*.load I recently created a new partition and compiled 2.4, which introduced many changes. Having never compiled 2.2, I don't know if the debian packages modified the structure and base config, but it's quite different. Namely, there seems to be no staging. I'm trying to stage all my virtualhost files, but the server seems to dislike the method. In the new httpd.conf, I gave the pseudo-same directive to include a folder for the vhosts, but it's bricking. 465 Include enabled/ /home/apache2.4/bin/apachectl restart [Thu Aug 30 10:35:44.620828 2012] [core:error] [pid 7373:tid 140003760342784] AH00554: Access to file /home/apache2.4/enabled/ denied by server: not a regular file httpd: Syntax error on line 465 of /home/apache2.4/conf/httpd.conf: Could not open configuration file /home/apache2.4/enabled/: Bad file descriptor Looking through the changelog, I see nothing that describes changes to staging, and a serverfault thread suggests there should be an internal script to include a folder's contents. Am I missing something?
  11. Foremost, you can't expect / depend on users to update their browsers. This really only affects IE, as they've not had silent / auto updates until recently, so you have to make the conscious decision whether or not to support the older versions. There are a shit-ton of other browsers out there, but if they're relevant at all, they use either the GECKO or webkit engines, which means they're (typically) up-to-date. People who use these off-shoot browsers typically understand the potential drawbacks anyway. Where to draw the line really depends on your target audience. If you're running a site like AARP you might want to include IE6 compat, whereas if you're running a site targeted to Internet aficionados, you can skip that shit all-together.
  12. min-height or faux columns are the only ways to to manipulate / illusion height in a browser.
  13. it's going to be the transition you need to play with. have a read on this: http://css3.bradshawenterprises.com/transitions/
  14. philip kicked it at 1am after she broke and out of fear of abuse, she's ticking along.
  15. @"Apparently I'm doing it wrong...". You don't implicitly start a session, the bootstrap does all that for you - even guests get sessions. What you want to do is add parameters to it as to distinguish guest from validated user. Your code bothers me at this point: $this->session->set_userdata('logged_in', TRUE); $this->session->set_userdata(array( 'email' => $this->input->post('email') )); $this->session->userdata('logged_in'); $this->session->userdata() is an array, so you want to send it key, value pairs, not another array. If you dumped your array, it'd look like: [userdata] (Array) [logged_in] => 1 [0] => => blah blah So I'm still not sure why you send an array, i swear i've said that before. Anyway, i don't know what you're doing with $this->session->userdata('logged_in');, the session's userdata() function returns a value, and you're not doing anything with it. I suspect your loop is in your home/dashboard where it's checking for a session value that doesn't exist and you're running in circles.
  16. Meh. Depends. Do you want to learn PHP or build an application? Frameworks do all the boring important shit for you (sanitation, routing, et al), while doing procedural code teaches you to read the manual and figure out why you're doing what you're doing. At the other end of the spectrum, if you start your php learnings with a framework, you'll only understand a framework and not PHP. So... meh. depends.
  17. how is sliding by 'cash' any different than sliding by 'real' numbers? http://jqueryui.com/demos/slider/#range
  18. Yes, "bad idea". Your controller should only contain the logic required to give the view that information is needs to present itself. Where I think you're getting confused is using PHP as a programming language and using PHP as a HTML meta-language. CodeIgniter is one of the very few frameworks that doesn't ship with a template system because it uses libraries to ease the templating process. This is likely where you're getting mixed up. So, if you're controller is for a user's profile, your controller should ONLY build the user object. That's it. No more. $user = $this->users_model->get_user($username); $user->friends = $this->users_model->get_friends($user->user_id); //reference global CI object $this->data->user =& $user; //load view $this->load->view( 'user_profile', $this->data ); You then use the existing $data object (or array if that's how u roll) to supplement your templates // let's figure out who's profile this is if( $user->user_id === $this->session->userdata(user_id) ) echo heading('My Profile', 4); else echo heading($user->username . "'s Profile",4); // here's a reusable variable being used to create a change email form that we will prepopulate $data = array( 'name' => 'email', 'size' => 30, 'class'=>'input', 'value' => (isset($user->email) ? $user->email : '' ) ); echo form_input($data, set_value('email') ); The user object only interacts with the CI's php-based templating system, you don't need to create it in your controller.
  19. You're mixing logic and presentation. Why? and how does $data['name'] become $fname ?
  20. i use $data for generic one-use statements. An example of this would be multiple form inputs on a single page. $data = array( 'name' => 'email', 'size' => 30, 'class'=>'input'); echo form_input($data, set_value('name') ); $data = array( 'name' => 'password', 'size' => 30, 'class'=>'input'); echo form_password( $data ); $data is never defined in the scope of your controller and nor should it be. it's purely a single-use variable. You shouldn't need to pass anything from the controller to it either. If you need to add values to your form inputs, simply add a key into the $data object and put the value as your reference object. $data = array('name' => 'email_update', 'value' => $user->email);
  21. you'll need either getElementbyId or jquery's $('#element')
  22. ... You could crack windows ... you could "land a man" on the moon ... you could run for president :ahem: There's a way to break everything with enough effort. Captcha / verification codes / and the like are only a menial way to slow down the enemy. There is no de facto fool-proof way to stop the baddies - all you can do is through enough shit in their way.
×
×
  • Create New...

Important Information

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.