Has anybody got experience building line graphs?
I would like to avoid using a pre-made one unless its VERY simplistic (not all the shitty 3d crap) and fairly easy to use. I basically want to graph an archived record of prices.
Some prices can be as low as $1 and some as high as $20,000 so it would need to be fairly dynamic. I also need to track at least 6 different lines at once.
If anyone knows a good tutorial for making one that'd be great.
You have a base Notification class in models/notification.rb, then you have specialized classes like Notification::NewReply in models/notification/new_reply.rb, etc.
Then for each notification type, you can put a partial in views/notification/_new_reply.html.erb.
Then you can do something like this:
although you'd probably want to move that shit into a helperCode:<% @notifications.each do |notification| %> <%= render partial: notification.class.name.underscore %> <% end %>
Does anyone have any ideas on how to effectively organise an analytics database table? I'm thinking of just having different columns for the year, month, day, hour and the event that gets incremented every time the event occurs.
figure out what you want to measure and design your database around that
Hi, 2 questions
Is it possible to use a domain on your own local web server?
How do you get cpanel-like features on your own web server? Mostly just the subdomain and email account features?
Honestly I would recommend just paying for some hosting, its much easier and doesn't put strain on your bandwidth, not to mention the cost of running your PC constantly for an e-mail server.
Been using lithium hosting, but I prefer to be in full control of things.
My work in progress HTML5 game is lagging like hell with GPU acceleration enabled on Windows (with any browser). However, it's working fine for me with Chromium 21 on Linux and anyone that had absolutely halted performance with GPU acceleration had it running fine at 60fps with acceleration disabled. Does anyone have any idea what could be causing this?
Notes: I clip the canvas to stop any drawing outside of the viewport, objects use gradients and circles which are laggy to path each time so each object has its own canvas that is compiled once and I use requestAnimationFrame. This is as far as I can think to optimize it without making the game only render the portion of the canvas that has changed each frame.
WARNING: It may potentially slow down your system.
EDIT: Forgot to mention that it runs Box2D in the rendering process, but that's not important - one person who was lagging horribly managed to profile it and found Box2D was using hardly any of the total CPU usage (the Chrome profiler stated that Chrome itself was using ~98% of the CPU, which is very strange and unreproducible on my side).
EDIT: Seems to be fixed now. Looks like the ctx.clip calls were doing it.
EDIT: If you can, try disabling GPU acceleration (simple as going to about:flags in Chrome, probably just as easy in Firefox).
Doing a group assignment for school, I have to make a login page for a market day bank system with a teacher part and a student part.
How it works is that I have a username and password text box, a radio option thing to go to the teacher section or the student section, I don't have any php yet but I'm working on the html. What I want to know is if I can have 2 buttons, 1 labelled teacher and the other student, and it takes them to that respective page if the username and password they typed in has the right privileges. I'd also like to encrypt the passwords so I googled it and everyone says "use bcrypt", when I google how i get nothing remotely helpful. Does anyone have a link/willing to type up how i implement it?
Are there any PHP frameworks you guys can recommend? It's for a personal website so I don't need a whole lot of features, but it'd be nice to have some kind of structure I can code my website around.
Seems Codeigniter is recommended a lot as a simple lightweight framework.
You don't really need a framework for a simple personal website, but whatever.
Beside CodeIgniter there is CakePHP which is also very popular.
Anyone has any information on search engine friendly URLs that are also user friendly? If each page in my site has a name that is not guaranteed to be unique, how do I encode it so that it becomes unique without sacrificing readability?
<?php //By McGii
$pass = $_POST["Password"];
$i = 0;
while ($i <= (strlen($pass)-1)
$result mysql_query("SELECT Encrypted FROM encryption WHERE Normal = '" . $pass[$i] . "'");
Why won't the above parse? Apparently there's an unexpected variable in the last line
$result = mysql...?
I had it pasted into the post box when i said that but i fixed it then forgot to change the code here but posted anyway cause it still wasnt working
Turns out I was missing a ) as well
Call me an idiot if you will, but I can't get even a damn mail(to) function working in PHP tonight. I don't know if it's my terrible code or the exchange server is rejecting it.
I was planning to add validation if it worked but I'm missing something obvious here, I'm prepared to take it like a man and accept being laughed at. Also, ignore the silly ID tags because they're going to be renamed, alongside the text on the website - I was lazy when copying the template.
I got the 'mail was sent successfully' when I tested it on the page, is that right?
I have this code snippet from a project I am working on, you could try this if you wanted to see if it worked, although I can't say any glaringly obvious differences with yours beyond the verification that the email was sent.
$subject = "MarketFortress.com Account Activation Email"; $message = "Howdy " . $username . "! \r\n\n To activate your account click the link below. \r\n\n http://localhost/tf2m/verify_email.php?email=" . $email . "&activation_pin=" . $activation_pin . "\r\n\n Cheers Mate! \r\n Market Fortress Administration Team."; $headers = "From:youremail" . "\r\n" . "Reply-To:youremail" . "\r\n" . "X-Mailer: PHP/" . phpversion(); mail($email, $subject, $message, $headers);
Yeah the validation is fake right now, I wanted to get the functionality right before fixing that.
I'll have a look at your code at some point tomorrow, but it could be to do with my e-mail host deeming it as spam, or something similar. I don't exactly know. I appreciate you taking the time to help.
Having said that, there is nothing in my spam mail inbox. Is it even possible to send an e-mail without having a from address? As in, can you receive an e-mail if no address sends it?
Setting up mail to work on a VPS/dedi is a fucking pain in the arse, so if you're doing that - good luck.
I have simple hosting from LithiumHosting, I could get in touch with them and see what they say.
Scratch that, my e-mails are from 123-reg.co.uk. I'll annoy those guys instead :D
You will probably end up using jQuery for other stuff on your website anyways so might as well implement it now...
So I am looking for some kind of tutorial that will teach me how to make an installer for a database and tables. Like how WHMCS has it where you just place the files in and than it allows you to do everything automatically pretty much just enter the database name username and password and it can auto create all the tables and add in a pre-done user to make it so there is an already made account that the user can enter to control stuff.
think you're talking about a SQL query my friend :P
This maybe doesn't fit here but i rather post here then make a new thread for this. Maybe I'm late but can't be arsed to lurk around everywhere and try to find this.
The real question is: how many of you are familiar with this?
I should of made this post it's own thread but whatever. I have no knowledge and experience developing a website and my dad wants me to build one for a business. It's a lacrosse warehouse store/manufacturer in case you're wondering. I already have a domain name and the web hosting, but I need help to get all the resources I need. I want to know what program to use for coding CSS/HTML, the rest I look up and find someone to help (It will be nice if someone here can). I can't think of anything else, I know I have to design and layout the site, but first I need to learn to code.
Can you help me get started?
http://notepad-plus-plus.org/ or http://www.sublimetext.com/ (sorry these are the only two that really pops up in my head )
but before you really start on something. What kind of E-Commerce applications you want to use on your website.
I guess you can google it, or wait for a fp'er to recommend one for you.
Start from there and if you want it easy, just a template online that goes along with the theme of your website. if you can't find one you're either going to hire someone or learn html and css yourself. if you do have to do that, then goto http://htmldog.com/ and learn it there. You are going to need around 1 month ~ 3 months to really create a template (but it probably won't be good). If you want, you can first create a mock up on photoshop or anything and show it to fp WAYWO and we will give some feedback on what you should work on. or maybe Tera can make mock ups for you
Choose "Create one now" under "Sell single items". The following page should have options for a dropdown menu and a text field which you can include with your payment button (and I guess you can use e.g. a text field and make it hidden on the real page, then insert the information with JS there).