Search found 148 matches

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

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: 1769

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: 1769

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: 1769

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: 12151

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: 1923

Imaginary things

I have a database that has three tables that I want to use. Here is my structure [syntax=text]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)[/syntax] Basically all I want is to se...
by FrederickGeek8
Tue Jul 02, 2013 2:31 pm
Forum: PHP
Topic: Get Before Character
Replies: 1
Views: 1503

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: [syntax=text][img=500x300][/img][/syntax] 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 ...
by FrederickGeek8
Sun Jun 30, 2013 10:26 pm
Forum: Code
Topic: BBCode
Replies: 10
Views: 4462

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) [syntax=php]function bbcode($text) { $text = htmlentities($text); $search = array( '/\[b\](.*?)\[\/b\]/i...
by FrederickGeek8
Sat Jun 29, 2013 9:51 pm
Forum: PHP
Topic: Minecraft Player Face Rendering problem
Replies: 17
Views: 3557

Re: Minecraft Player Face Rendering problem

Right I got it working somehow : m 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 : m You could just use a img tag to like to the mcrendering page or use file_...
by FrederickGeek8
Sat Jun 29, 2013 5:09 pm
Forum: PHP
Topic: Minecraft Player Face Rendering problem
Replies: 17
Views: 3557

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: 1953

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: 936

Re: DOMDocument Problem

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

DOMDocument Problem

If I have html like this that I want to parse, how do I get to the correct paragraph? [syntax=xhtml]<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...
by FrederickGeek8
Mon Jun 24, 2013 6:02 pm
Forum: Other
Topic: Gedit woes
Replies: 0
Views: 1895

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: 3021

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: 1498

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: 1295

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: 1498

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: 1642

Re: SQL sanitation

I got it to work by doing this: [syntax=php]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`)...
by FrederickGeek8
Fri Jun 14, 2013 4:31 pm
Forum: SQL
Topic: Deleting nothing
Replies: 2
Views: 1925

Re: Deleting nothing

OK. I would think that it would be more wasteful if I did [syntax=php]$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}'&q...
by FrederickGeek8
Thu Jun 13, 2013 6:10 pm
Forum: SQL
Topic: Deleting nothing
Replies: 2
Views: 1925

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 [syntax=sql]DELETE FROM `reset_codes` WHERE `reset_code` = 'none...