Search found 148 matches

by FrederickGeek8
Mon Dec 09, 2013 3:34 am
Forum: Other
Topic: Login without password
Replies: 1
Views: 3459

Login without password

I'm creating an app in NodeJS with Express (not the important part) and I'm wondering how I would go about with having a single-sign on without password? I'm not talking code wise, but structure wise, what would I want to do to keep this secure?
by FrederickGeek8
Fri Aug 16, 2013 4:12 pm
Forum: Other
Topic: Mobile Development
Replies: 4
Views: 3492

Re: Mobile Development

Can you delete this thread? I really have no use for it.
by FrederickGeek8
Tue Aug 06, 2013 12:05 am
Forum: Other
Topic: Mobile Development
Replies: 4
Views: 3492

Re: Mobile Development

Sorry I was kinda tired when I wrote the question. Its... well... idk... Can you just move it to the "Other" section?
by FrederickGeek8
Mon Aug 05, 2013 9:10 pm
Forum: Other
Topic: Mobile Development
Replies: 4
Views: 3492

Mobile Development

Right now I am developing a mobile app for a website that I am working on. Because it is written in Java, it can be decompiled and therefore API url's would be able to be extracted. For this mobile app, a user would login and then do actions that involve the specified user account. My problem is wri...
by FrederickGeek8
Thu Jul 18, 2013 11:01 am
Forum: General Chat
Topic: Cryptocurrencies
Replies: 23
Views: 16925

Re: Cryptocurrencies

Should I mine Litecoin or Bitcoin?
Right now I get 200 KH/sec mining Litecoin and 200 MH/sec mining Bitcoins
by FrederickGeek8
Sat Jul 06, 2013 4:40 am
Forum: SQL
Topic: Imaginary things
Replies: 0
Views: 17951

Imaginary things

I have a database that has three tables that I want to use. Here is my structure users ---user_id (2 entries) ---user_email (2 entries) admins ---user_id (2 entries) ---user_alias (2 entries) writers ---user_id (0 entries) ---user_alias (0 entries) Basically all I want is to select everything from t...
by FrederickGeek8
Tue Jul 02, 2013 2:31 pm
Forum: PHP
Topic: Get Before Character
Replies: 1
Views: 3616

Get Before Character

I'm trying to parse bbcode and there is this special img tag that allows width and height and comes in this format: [img=500x300][/img] How can I take 500x300 and split the string into 500 and 300? (two separate string) Right now I have this but the number 500 and 300 for some reason are not include...
by FrederickGeek8
Sun Jun 30, 2013 10:26 pm
Forum: Code
Topic: BBCode
Replies: 10
Views: 6571

Re: BBCode

This is a great Rich-text to BBCode editor that you can throw on your website. It works well with this tutorial. Also I update the list for more items and security (just to save people some work) function bbcode($text) { $text = htmlentities($text); $search = array( '/\[b\](.*?)\[\/b\]/is', '/\[i\](...
by FrederickGeek8
Sat Jun 29, 2013 9:51 pm
Forum: PHP
Topic: Minecraft Player Face Rendering problem
Replies: 17
Views: 5035

Re: Minecraft Player Face Rendering problem

Right I got it working somehow : http://oliverbell.co.uk/mcrendering.php?ign=Blacksmith95 added an include statment to pull the code onto another php page and it stops working again!!! chmod is done gd is installed cache files are there. But no picture just a little icon. see : http://eternitypvp.c...
by FrederickGeek8
Sat Jun 29, 2013 5:09 pm
Forum: PHP
Topic: Minecraft Player Face Rendering problem
Replies: 17
Views: 5035

Re: Minecraft Player Face Rendering problem

Thats PNG code :lol:

Try removing the cache file. If you got a bad copy due to some error or something, it would remain in your cache and output the same each time.
by FrederickGeek8
Sat Jun 29, 2013 5:08 pm
Forum: Tutorials
Topic: Private Message System Pt. [08]. Can't insert messages...
Replies: 8
Views: 2845

Re: Private Message System Pt. [08]. Can't insert messages..

scdogas321 wrote:I think that UNIX_TIMESTAMP is a little bit out of date :D. What can I use instead?
Try using DATETIME.
by FrederickGeek8
Sat Jun 29, 2013 2:16 am
Forum: PHP
Topic: DOMDocument Problem
Replies: 2
Views: 1477

Re: DOMDocument Problem

I want to do something like this (this isnt a valid statement but you should get the right idea)
$doc = $doc->getElementsByTagName('div')->item(1)->getElementsbyTagName('p')->item(1);
by FrederickGeek8
Mon Jun 24, 2013 9:30 pm
Forum: PHP
Topic: DOMDocument Problem
Replies: 2
Views: 1477

DOMDocument Problem

If I have html like this that I want to parse, how do I get to the correct paragraph? <div class='wrong'> <p>Wrong</p> <p>Wrong</p> <p>Wrong</p> </div> <div class='correct'> <p>Wrong</p> <p>Correct</p> <p>Wrong</p> </div> <div class='wrong'> <p>Wrong</p> <p>Wrong</p> <p>Wrong</p> </div> I can use th...
by FrederickGeek8
Mon Jun 24, 2013 6:02 pm
Forum: Other
Topic: Gedit woes
Replies: 0
Views: 18027

Gedit woes

I am having a problem with my current gedit setup. Right now I am developing from Windows with the combination of Cyberduck and gedit. Every time I open a file with gedit, it opens in a new window. Is there anyway that I can have it open in a new tab by default?
by FrederickGeek8
Sat Jun 22, 2013 9:03 pm
Forum: JavaScript
Topic: Checkbox required
Replies: 10
Views: 5179

Re: Checkbox required

You would put either in the <head> wrapped in <script> tags or below all of your website contents (right before </body>)
by FrederickGeek8
Sat Jun 22, 2013 9:02 pm
Forum: PHP
Topic: Php adding remember me function
Replies: 4
Views: 2298

Re: Php adding remember me function

Tip: Stop using cookies and just extend the $_SESSION time
by FrederickGeek8
Fri Jun 21, 2013 4:21 am
Forum: Tutorials
Topic: From MySQL to MySQLi
Replies: 1
Views: 2459

From MySQL to MySQLi

I wanted to make a video tutorial on this to try and make it easier, but I hate the sound of my own voice in recordings so it looks like that isn't going to happen... Jacek's tutorials are really, really great but something that I have learned recently is that the method that he uses for accessing t...
by FrederickGeek8
Fri Jun 21, 2013 3:44 am
Forum: PHP
Topic: Php adding remember me function
Replies: 4
Views: 2298

Re: Php adding remember me function

I'm not really sure why the remember me function was ever part of Jaceks tutorial series; if anything I think it could be a potential security issue. What I think the intent was, was that the user would have the cookie, therefore staying logged in longer than using the standard issue $_SESSION. If y...
by FrederickGeek8
Fri Jun 14, 2013 9:23 pm
Forum: PHP
Topic: SQL sanitation
Replies: 9
Views: 2506

Re: SQL sanitation

I got it to work by doing this: function add_post($title, $body){ /*This is what I added*/global $mysql; $title = $mysql->real_escape_string(htmlentities($title)); $body = $mysql->real_escape_string(htmlentities($body)); $mysql->query("INSERT INTO `posts` (`post_title`, `post_body`) VALUEs ('{$...
by FrederickGeek8
Fri Jun 14, 2013 4:31 pm
Forum: SQL
Topic: Deleting nothing
Replies: 2
Views: 3423

Re: Deleting nothing

OK. I would think that it would be more wasteful if I did $total = mysql_query("SELECT COUNT(`user_id`) FROM `reset_codes` WHERE `reset_code` = '{$reset_id}'"); if($mysql_result($total, 0) == '1'){ mysql_query("DELETE FROM `reset_codes` WHERE `reset_code` = '{$reset_id}'"); }else...
by FrederickGeek8
Thu Jun 13, 2013 6:10 pm
Forum: SQL
Topic: Deleting nothing
Replies: 2
Views: 3423

Deleting nothing

If it ok if I'm running a query that is determined by a $_GET variables that deleted from a table, even if there is nothing there? Like if I run this query it runs fine (no errors) but I'm wondering if there is any downside to using it DELETE FROM `reset_codes` WHERE `reset_code` = 'nonexistantvalue'