Search found 8011 matches

Actual Results

Post Posted: September 22nd, 2016, 2:56 pm

I've personally never had any experience with this as I've never had the need to perform such actions, but the following link might set you on the right track.

http://stackoverflow.com/questions/1884 ... ile-in-php

Post Posted: September 16th, 2016, 11:21 am

Oh, I see lol

Post Posted: September 14th, 2016, 9:19 am

I have upgraded a few laptops to 10 for customers and notice that it was quicker for older hardware. Although it does still love to "blue screen" still easily. Hopefully with the update process more "stream line" should fix those issues. Time will tell. That's interesting, I hav...

Post Posted: September 12th, 2016, 6:45 am

I hope you aren't planning to autoplay the files. And if it's up to download, then mp3/mp4 would be a better option (in my opinion).

But a quick Google Search revealed programs as well as online converters. I've never converted between these formats so I can't suggest any from personal experience.

Post Posted: September 12th, 2016, 6:41 am

They probably include the original message to you so you would know to what you are getting a reply. It is a good thing that they are doing something to keep the users safe. In case the email gets intercepted and wrong people get their hands on the sensitive information. And so the user won't inadve...

Post Posted: September 12th, 2016, 6:29 am

Maybe the experience, in part, is effected by the computer specs. In my case Windows 10 loads faster and is faster then any other operating system I've had before. And my laptop isn't very strong itself... just a regular $400 laptop with i5 processor

Post Posted: September 1st, 2016, 12:25 pm

As I see it, MS gets debug information and details about the computer. What kind of processor, how much it works and things like that. It doesn't gain anything personal. As far as programs and old legacy games, I don't know. If you want, tell me the old legacy games that you're playing, and I'll try...

Post Posted: September 1st, 2016, 12:22 pm

I don't have Linux, I'm on Windows 10.

I already got rid of the thumb drive, so I'm no longer on this. Thanks for the help though.

Post Posted: August 7th, 2016, 1:35 pm

I have a 32 gig RiData flash drive which used to have data on it (used to be used) which all of a sudden, due to an unknown error, it has become RAW and the computer keeps asking to format it in order to get it started. The problem with this is that if I try to format it, I get an error saying that ...

Post Posted: August 7th, 2016, 1:09 pm

This is what he good old google gave me after a quick search (based on the little information you have provided)

http://ivanrf.com/en/nvidia-compatibili ... indows-10/ (Check First)



http://www.ibtimes.co.uk/windows-10-how ... de-1513643

Post Posted: June 27th, 2016, 12:36 am

I think it won't hurt to try

Post Posted: June 27th, 2016, 12:27 am

Sounds like a blown capacitor or some other part inside the laptop itself. You're going to have to bring the laptop in for service so they could replace the part.

Post Posted: May 29th, 2016, 11:50 am

Jess4mari wrote:
Now using windows 8 operating system, should I upgrade it to windows 10 for any extra advantage?

Yes, I would say yes. Upgrade

Post Posted: May 29th, 2016, 10:46 am

So far, everything I've used on Windows 7 works on Windows 10

Post Posted: May 16th, 2016, 8:41 am

Finally got some time to get started on this and in Visual Basic there's options (in starting a new project) which I'm not sure which to choose. The options are the type of project I'm starting: 'Windows Form Application', 'WPF Application', 'Console Application', 'SharedProject' and 'Class Library'...

Post Posted: May 16th, 2016, 5:01 am

Well, I don't know much about IPv6 but some Google searching yielded some similar problems that you have and insight to them. I'm sure you have already searched and tried many things, but I've decided to try and help the best I could :D I've meant to try and mess around with IPv6 but haven't gotten ...

Post Posted: May 10th, 2016, 7:37 am

Might help actually reading the thread :shock: Currently we are using gravatar for your profile Picture. So you would goto: https://en.gravatar.com/ and make sure you use the same e-mail address that you used to signup here. The benefit of using them is that many other websites utilize this service ...

Post Posted: May 8th, 2016, 11:31 am

So you mean something like the following?

PHP Code: [ Select ]
<?php
$combined = array($result);
?>
  1. <?php
  2. $combined = array($result);
  3. ?>

Post Posted: May 7th, 2016, 9:36 am

Yup, already got in installed. Just haven't had the time to get started on this. Friend's wedding and a bunch of national holidays bunched together in Donetsk, Ukraine.

Post Posted: May 6th, 2016, 11:37 am

And what are we looking for in google search result?

Post Posted: May 3rd, 2016, 12:12 pm

Thanks! That is very helpful! I'll do just that! I'm feeling confident with this, especially now that I've introduced myself a bit with C# and figured out that it's not as scary as I thought it would be.

Post Posted: April 30th, 2016, 8:28 am

I've updated to Windows 10 from Windows 8.1 and I've decided that I won't be going back. In my C drive main directory (C:/) there is a folder named Windows.old which takes up about 16gb. My question is, is it safe to delete this folder?

Post Posted: April 30th, 2016, 6:53 am

How about strpos? No need for regex here.

PHP Code: [ Select ]
<?php
 
if(strpos($strdomaine, ':') == false)
{
     // The colon was not found in the string
}
else
{
    // The colon WAS found in the string
}
?>
  1. <?php
  2.  
  3. if(strpos($strdomaine, ':') == false)
  4. {
  5.      // The colon was not found in the string
  6. }
  7. else
  8. {
  9.     // The colon WAS found in the string
  10. }
  11. ?>

Post Posted: April 29th, 2016, 9:28 am

What application would you recommend me create in C#?

Post Posted: April 27th, 2016, 1:11 pm

Well, I've decided to learn C# and in the progress, I'll be having a lot of questions on it. So I'll start one thread for all of them so I don't litter the forum with tons of threads. My first question is concerning bitwise operators ( Tutorialspoint ). I Don't understand them. Additionally, the shi...

Post Posted: April 27th, 2016, 11:10 am

Well, this is in German, he says (according to Google translate) that his computer froze and he restarted the PC and when the system loaded, he found out that he lost all incoming messages... the 'Incoming Messages' folder was empty

Post Posted: April 27th, 2016, 11:01 am

As expected, ran into problems with Windows 10... my programs seems to be disappearing. I have installed Visual Studio from Microsoft (The free one so I could learn C#) and now I can't find it anywhere on my laptop. I find the folder in Program Files and and settings and project folder in Documents,...

Post Posted: April 26th, 2016, 1:43 pm

I haven't done that and don't have much time to mess with this at the moment (almost midnight here and I'm going to sleep) but a quick search yielded SplFixedArray. Maybe that will help you out at least to get on the right track.

Post Posted: April 20th, 2016, 10:44 pm

Bleh, I'd recommend something other than Java. C# is my personal favorite at the moment. You can do image manipulation regardless of what language you choose. What libraries and APIs are available matters far more than the language itself. That's what I need! Thanks Spork! So for image manipulation...

Post Posted: April 19th, 2016, 9:59 am

It irks me that little issues like this often stumbles the progress of programming...

Post Posted: April 18th, 2016, 1:23 pm

I'll be able to create desktop software with Java, right? If so, and if it's a good language for image manipulation programs, then I'll learn it.

Post Posted: April 18th, 2016, 12:24 pm

Well, right now everything is working super fast. Maybe that was some glitchy start, but right now I'm actually happy with Windows 10 and beginning to like it. Though it would be better to start with a fresh install of Windows 10, maybe I'll do that if it starts acting up again. How do I activate th...

Post Posted: April 17th, 2016, 10:30 am

Well, this is the second day... just turned it on after a 22 hour break and it seems to be working much better. And as far as the task manager, I wasn't able to get it to open... waited for it too long before I gave up (turned off the laptop). So far it seems to be working fine... [EDIT:] Well, I've...

Post Posted: April 16th, 2016, 11:51 am

Well, I switched to Windows 10... this is my first 5 minutes on this OS and I'm already regretting it. Everything (for me at least) is soooo slow. This OS thinks 10x more then it does anything. For instance... I mistyped a word (The 'regretting' in the above paragraph) and right-clicked on it to get...

Post Posted: April 15th, 2016, 1:03 pm

Ok, I guess you guys convinced me to switch over to Windows 10... hopefully I don't regret it

Post Posted: April 14th, 2016, 2:03 pm

Well, the main thing is for the program to function properly... To successfully implement my idea.

Features i would need include rendering, generation, automatically outlining/finding borders... Re-creation... Retrieving frames from a video... Recursively working frame by frame...

Post Posted: April 13th, 2016, 11:15 am

And welcome to Windows 10! Glad you got the problem solved. Thanks for posting the solution here for future reference! Windows 10 is a new operating system and many new subtleties in there by default that are different then how they have done things in the previous releases of operating systems. I'v...

Post Posted: April 13th, 2016, 8:28 am

I have an idea for a video/image editor and would like to know which language would be best suitable for such a program? I don't know if the computer does this by itself or if it needs to be directly implemented in the program, but I would like the program to take advantage of processor threads and ...

Post Posted: April 12th, 2016, 9:13 am

So, you're going to Detroit to further your studies.

A Google search

Personally I've never being there, but those search results seem like they may be of assistance.

Post Posted: April 12th, 2016, 9:09 am

There's reCaptcha that seems to be doing well. You might try that.

Post Posted: April 11th, 2016, 1:11 pm

Apparently there are ads in windows 10 app store(official windows ads) that you can remove only by paying. Not sure if this is a killer for me

Post Posted: April 11th, 2016, 12:58 am

Well, I don't have the luxury of money here to buy 10 once it stops being free (if that ever happens) so I'm thinking of updating to it while it's free (if it's worth it).

Post Posted: April 5th, 2016, 9:54 pm

Are there many programs available for Windows 10? Or am i going to have to wait for ages until i could use my program?

Are you saying that Windows 7 is better?

Post Posted: April 5th, 2016, 12:46 pm

[php]<pre> <?php $urle ="sub.sub.sub.sub.sub.sub.sub.sub.sub.subdomain.henry.com"; function parse_tld($urle, $name_only = FALSE) { $info = parse_url('http://' . preg_replace('/http:\/\//', '', $urle)); $host = $info['host...

Post Posted: April 5th, 2016, 12:05 pm

You may and may not use JavaScript to create a drop down menu. I did create such a menu before with nothing but CSS (obviously not using the <menu> HTML thing), but if you intend to use the menu drop down list element, then you would need the JavaScript. Here's a good tutorial/example of how y...

Post Posted: April 3rd, 2016, 9:54 pm

I keep getting the update notification at boot, recommending me to upgrade to windows 10 while it is for free. Now, I'm not against getting the new and improved windows, besides, I've read/heard some decent reviews on it, but what concerns me (the most) is the privacy issue. Is it really bad? How in...

Post Posted: March 21st, 2016, 10:26 am

There are a few of ways I could think of accomplishing this... One way you can accomplish this is by using a cookie to count how many times the user has submitted a form. Don't let the form work if the cookie is unable to be set (in case the user turned his/her cookies off to go around this). Anothe...

Post Posted: March 10th, 2016, 10:32 am

Well, the design is a standard ad-style which I've grown to never trust; though it's better styled. If you designed the site and would like to improve on it, you could try slides . Check these examples out to get an idea on how you can implement this on your site. The entire site has the 'advertise...

Post Posted: March 10th, 2016, 10:28 am

Well, the design is a standard ad-style which I've grown to never trust; though it's better styled. If you designed the site and would like to improve on it, you could try slides . Check these examples out to get an idea on how you can implement this on your site. The entire site has the 'advertisem...

Post Posted: March 10th, 2016, 10:03 am

Zealous wrote:
notepad++ :)

This is what I use as well for programming needs.

Post Posted: February 16th, 2016, 11:18 am

The HTC is no longer with me :D It was for a friend and they took it back from me so I don't have to worry about it now. I'm using a Samsung Galaxy S5! Really enjoy this phone even after over a year of using it

Post Posted: January 28th, 2016, 2:12 pm

It was HTC Desire 600 and we still have that problem.

My Windows is 8.1 and I'm hearing bad things (privacy related) about Windows 10 (in addition, I want to wait until my main programs are compatible with Windows 10 before migrating to it).

Post Posted: January 15th, 2016, 12:04 pm

What happens if you try the following code?
PHP Code: [ Select ]
echo "<pre>"; // To properly display the results (to format it)
print_r($_SERVER);
echo "</pre>";
  1. echo "<pre>"; // To properly display the results (to format it)
  2. print_r($_SERVER);
  3. echo "</pre>";

Post Posted: January 15th, 2016, 11:59 am

This would (most likely) require some form of javascript. Look through those results and see if any of those plug ins (and tutorials) would help you.

Also, how are you planning on sorting the features?

Post Posted: January 15th, 2016, 11:55 am

I have Windows 8, 64-bit on my laptop and I read online that there are problems with the USB ports after some Microsoft updates. I've ran across the problem when I was trying to root an HTC phone. The laptop recognizes the phone normally when the phone is booted normally, but when I get into bootloa...

Post Posted: January 11th, 2016, 8:42 am

I think that this forum gets more threads about how this forum is slower then actual posts with questions :lol:

Post Posted: November 29th, 2015, 9:02 am

Have you tried Recuva ? I have the paid version of it (don't remember what the free version offers, or what it limits) but the paid version recovers files that aren't overwritten. When recovering files VIA anything put the recovered files onto a different drive/source of memory... don't use the driv...

Post Posted: October 13th, 2015, 8:23 am

I'd be very nervous about entering your bank credentials over a proxy connection. I'd contact the bank directly (phone, email, or snail mail) and explain your situation. If you're trying to close the account, ask them to mail you a check for the full balance (if it has one) and to send written conf...

Post Posted: October 11th, 2015, 12:13 pm

As do I :D

Post Posted: October 11th, 2015, 12:08 pm

As you guys might now, I'm in Ukraine now but I've left my traces in the good ol' USA 8) I have internet banking with my bank, and in my current situation it may seem like it's good thing I have it... but it appears that their site has geolocation check and I can't even load their site from here. I'...

Post Posted: October 2nd, 2015, 11:43 am

Why don't you use CSS? I find generating content much easier with it... don't have to worry about the placement of those trs and tds and such... just one simple DIV.

Post Posted: October 2nd, 2015, 11:39 am

https://en.wikipedia.org/wiki/X-Forwarded-For check if this helps you any. Or sets an idea :)

Post Posted: October 2nd, 2015, 11:35 am

PHP Code: [ Select ]
 $send_details[$row['date']] &#46;= "Date: ".$row['date']."; ORD Number: ".$row['ordernumber']."; New PRD: ".$row['newprd']."; \n";
In my experience, I found out initiating ...

Post Posted: October 1st, 2015, 6:45 am

I've created a mysqli class you could look at... not sure if it's all that good, and even how expandable it is... haven't tried adding PDO or anything to it, but at least you'll get the idea on MySQLi.

Post Posted: December 29th, 2014, 1:52 am

I have a Samsung GT S5250 Wave 525 cellphone in my possession... it runs on Bada... Some girl took it and while messing with it, put a master password on the phone. What I mean by "master password" is that the phone requires a password in order to start... I'm trying to bypass the pass or ...

Post Posted: November 30th, 2014, 10:42 pm

I have 2 PMs in my outbox and they're both from 2011 :shock:

I just thought that those user's just never read them...

Post Posted: November 26th, 2014, 1:59 pm

It would always increase in numbers in the history section. What essentially ends up happening is instead of refreshing the page to display the results, you go to it to display the results. That's what happens when you press on a link to go from page to page. It displays history of where you've bein...

Post Posted: November 26th, 2014, 12:14 am

Yes, sorry. I have figured this out. The new link is: http://covertdev.com/profile/1/ The solution was actually simple... I needed the following CSS for those boxes.
CSS Code: [ Select ]
vertical-align&#58; text-top;
I already have made a different design and moved on to it... I think it looks a bit better th...

Post Posted: November 13th, 2014, 7:37 pm

Besides the terrible design, I can't get the boxes to align correctly.

Here is the design

When the box is empty (has no text inside of it) it is displayed like it's supposed to (Box 4 and on to the last one), but when I add text to it, it jumps down like you see it there (the first three boxes).

Post Posted: November 13th, 2014, 4:34 pm

I was informed that there are different kinds of microsd cards for the phone expansion slot (for memory). The type of card determines the write speed of the card (or something like that... determines the speed which I assume to be the write speed). I've done some research on it and found out (or hav...

Post Posted: October 27th, 2014, 9:55 pm

Right click on the network adapter from the device manager view and click 'Check for changes' and if that doesn't yield anything, check for updates (search internet). Do you remember anything about what might have happened between the last time it did work and the first time it didn't work? Did you ...

Post Posted: October 27th, 2014, 9:51 pm

Here you go $escaped_values = array_map('mysql_real_escape_string', array_values($ja)); $values = "('".implode("'),('", $escaped_values) ."')\n"; $sql = "INSERT INTO `$wah`($columns) VALUES $values"; $sqlresult= mysqli_query($con,$sql); INSERT INTO table_name...

Post Posted: October 25th, 2014, 10:50 pm

I think the problem is the way I have my captcha generating class set-up...

I don't have time right now, I will work on it later tomorrow and see if I come across a solution. Thanks so much for your help so far :D hopefully I'll be able to get this thing going tomorrow.

Post Posted: October 25th, 2014, 10:37 pm

How do I create a trigger? I just want it to be a button.

Post Posted: October 25th, 2014, 9:00 pm

Any help on how I could reload the DIV? JavaScript, AJAX and jQuery are above my head so I don't understand the solutions available on the net. I need someone to help me how to do that in my particular case.

Post Posted: October 25th, 2014, 8:35 pm

I can, that was what I was confused about that JavaScript thing... most likely I just don't understand how to use it and it confused me.

Post Posted: October 25th, 2014, 8:27 pm

Just that... I press the play button to play the audio, the button turns 90 degrees and the music starts playing... unless the problem I had with HTML5 persisted in JavaScript and SWF player as well... as I tried both of those.

Post Posted: October 25th, 2014, 8:20 pm

I don't know JavaScript and find them to be a bit confusing. I've tried SoundManager 2, but that did nothing but confuse me. It still used HTML to actually sound it out but used JavaScript to animate the play/pause button... what is more annoying is the source file for SoundManager 2 is around 3000 ...

Post Posted: October 25th, 2014, 8:12 pm

By the way, as a side note, I would recommend steering away from MySQL and learning MySQLi as MySQL is deprecated in php5 and going to be completely removed soon.

Post Posted: October 25th, 2014, 8:05 pm

PHP Code: [ Select ]
$sql = "INSERT INTO `$wah`($columns) VALUES ('$values')";
That is the line of code that is using the imploded line. The variable is wrapped in single quotes. Lets say that code generates the following SQL query (using your implode without those single quotes): INSERT INTO `wah` ...

Post Posted: October 25th, 2014, 7:59 pm

I've created a CAPTCHA system that also generates the audio for the captcha. Everything seems to work perfectly fine with it :D Here is an example of both versions (Math captcha and a regular string)... you have to hit refresh a couple of times in order to see another version as the system chooses o...

Post Posted: October 25th, 2014, 7:16 pm

I think the following would also fix your previous code. And you won't have to use the loop
PHP Code: [ Select ]
$values = implode("', '", $escaped_values);

Notice the added single quotes.

Post Posted: October 21st, 2014, 10:02 pm

Did you try the 'Fix Connections' button Internet Explorer provides you with? You may be connected to your wireless network, but is the network connected to the internet? Sometimes, resetting/restarting your router fixes that issue. You may also try clearing your DNS cache: 1) Open up command prompt...

Post Posted: October 21st, 2014, 1:02 pm

Well, I finally was able to fix the problem. The issue was happening from the HTML page where the HTML5 audio element was defined. The source was constant and apparently Firefox caches it even with the no-cache headers... adding ' ?aud=<?php echo time(); ?> ' to the end of audio.php fixed the ...

Post Posted: October 19th, 2014, 9:59 pm

Here is the code generating the MP3 file [php]<?php // Starting the session so we could access the session variables session_start(); // Including our mp3 stitching class include_once('stitch_mp3.php'); // The captcha word we are making the audio for $captcha = $_SESSION['stuff']; // ...

Post Posted: October 19th, 2014, 9:15 pm

I think the issue I'm having would be more evident (more understandable) if you open that page in Firefox and in IE11 (or chrome), and then play the audio for the first generated captcha (in both browsers) and then reload the page (in both browsers) and then listen to the audio again (in both browse...

Post Posted: October 17th, 2014, 9:46 pm

That makes sense... what got me confused though, is the following:
PHP Code: [ Select ]
$s = $start = $this->start($contents);
 
if($s === false)
{
    return false;
}
else
{
    $contents = substr($contents, $start);
}
 
  1. $s = $start = $this->start($contents);
  2.  
  3. if($s === false)
  4. {
  5.     return false;
  6. }
  7. else
  8. {
  9.     $contents = substr($contents, $start);
  10. }
  11.  

It seems like the script is expecting both of those variables to hold different things...

Post Posted: October 16th, 2014, 7:37 pm

It's not the audio creating script. As it turns out, it has to do with the way Firefox reads HTML5 tags...

HTML5 either caches the created audio file or something, but it works if I just open audio.php on it's own

Post Posted: October 16th, 2014, 5:57 pm

I'm creating an audio extension to the captcha's I've created before. The audio thing is all created and everything like that, the only thing is, is when I refresh the page and generate a new captcha image, the audio file doesn't seem to be refreshing... Here is the example of what I'm talking about...

Post Posted: October 16th, 2014, 5:12 pm

I'm working on a project, and during searching for something for the project, I ran across the following line of code:
PHP Code: [ Select ]
$s = $start = $this->start($contents);
What I don't understand is why does it have two variables and two equal signs? What does/would '$s' hold and what does/would '$s...

Post Posted: October 16th, 2014, 4:45 pm

I've never used CKEditor before, but I don't think it comes by default with the capabilities of keeping original formatting of pasted text from Word.

You're in luck though, as there is a plugin for that for CKEditor. Hope this helps :thumbsup:

Post Posted: October 10th, 2014, 2:30 am

Attachments:
coding problems.jpg

Most can relate

Post Posted: May 13th, 2014, 10:32 pm

You're right... none are necessarily the 'right' way, but I'm hoping to find the best way. One thing about being self-taught is that you miss a lot of stuff when starting to learn programming so when you get to developing programs, even though you know the general idea of how to accomplish something...

Post Posted: May 13th, 2014, 4:34 pm

The thing with PDO is, I'm using MySQLi. I'm guessing it's a bit faster then PDO. Never heard of strategy pattern, though I have thought about doing it that way, but for some reason I wanted to use an abstract class instead, rather then a wrapper (kind of) class that chooses the type of mailer/db to...

Post Posted: May 11th, 2014, 9:17 pm

One thing that made me consider doing a factory (and why I chose to use it) is using a class with drivers (so to speak). For instance, I have a database abstract class with drivers... class that extends it... mysqli (with possible add-on drivers like postgreSQL, SQLlite, and so on)... these drivers ...

Post Posted: May 7th, 2014, 12:46 pm

http://www8.hp.com/us/en/support-topics ... ivers.html

Post Posted: May 1st, 2014, 6:54 pm

Hehe didn't know you could do that. Thanks :D

Works great now, thanks.

Post Posted: May 1st, 2014, 11:20 am

To get a serial key for Cybersieve 3.0 you're supposed to purchase a license . If you are going through a router (have wifi) then most routers have parental controls built into them... you can block pages with certain terms in them, you can block specific URLs... every parental control system is dif...

Post Posted: May 1st, 2014, 11:14 am

I just tried that and it still blinks on and then off... I went to CMD and typed the following.

Quote:
cd C:\Sources

start hello.exe

It opened the program but immediately turned it off

Post Posted: April 30th, 2014, 5:39 pm

Now the problem is, I run hello.exe and it opens a command prompt with Hello World written in there, and immediately turns off... I guess that is normal behavior, but how does the other programs that run are not closed off immediately? The same with everything... once it gets to displaying something...

Post Posted: April 30th, 2014, 5:34 pm

Ok, so I've removed cygwin and installed MinGW, but... I don't have G++ or GCC? I run g++ hello.c -o hello.exe and I get that 'g++' is not recognized as a command, operable program or a batch file... I obviously run that in the folder where hello.c resides in... maybe I did something wrong... I don'...

Post Posted: April 28th, 2014, 5:06 pm

What would she need to edit? Colors? Organization? Or just add/remove pictures and edit their properties/details?

How big would it be?

Post Posted: April 28th, 2014, 4:34 pm

Touch devices are much different then desktops, laptops or anything that uses a mouse in a way that web browsing experience changes in touch devices. One reason why that is true is because touch devices don't have hover events (onmousehover, onmouseblur) or anything like that... a touch is equal to ...

Post Posted: April 27th, 2014, 9:42 pm

I want to strengthen my web designing skills as well as I really suffer in this area. I don't know on which topics to search to be able to start... mainly, I don't know where to start. I also want to study a bit more on how to create the navigational/GUI aspect of web sites... I seem to do/try diffe...

Post Posted: April 24th, 2014, 10:48 pm

Which fonts could I use (without the need of any license or anything) in my scripts if I plan on redistributing my code? I've Googled royalty free fonts but I didn't find any decent ones for the captcha scripts I've created... At the moment I'm using: ⋅ arial ⋅ arialbd ⋅&nbs...

Post Posted: April 24th, 2014, 10:33 pm

Did you fix the problem? Did you clear your dns cache? start > run > cmd > ipconfig /cleardns I have this problem where if I loose internet connection, my router redirects me to the router diagnostics page no matter what URL I type (usually happens to google.com since that is my home page)....

Post Posted: April 22nd, 2014, 7:24 pm

Image

Nice! Lol

Post Posted: April 22nd, 2014, 6:44 pm

Oh, that makes sense now... thanks. I did think about doing it without a loop, but at first I was doing with three numbers instead of two (2+3-4 instead of 2+3), so that is why I started off with a loop, but I think it would be faster without the loop (and better on bandwidth).

Post Posted: April 22nd, 2014, 12:31 pm

Thanks, that seems to work... the thing though, I still don't understand why my way didn't work originally.

Post Posted: April 22nd, 2014, 12:18 pm

None really, more of a learning experience for me. Create a system and then work on making it faster and better. It's not a project I'm working for someone, it's something I started myself for the sake of strengthening my PHP knowledge (while I learn C). Also I'm in more power of how things work if ...

Post Posted: April 22nd, 2014, 1:31 am

I'm having problems getting my PHP to do simple math... such as add and subtract. I'm pretty sure it has to do with the logic of my code, but for the life of me, I can't seem to figure it out!! Any help? [php]<?php function generate_math() { // Initiating some variables used in the $i = 0; $int =...

Post Posted: April 21st, 2014, 11:17 pm

Here is the correct code... [php]<?php class math { // The captcha answer session name public $captcha_session = 'captcha'; // Available fonts private $fonts = array('arial', 'arialbd', 'arialbi', 'ariali', 'ariblk', 'bnjinx', 'bobcat', 'candles_', 'micross', 'narrow', 'neon2' ); // The directory...

Post Posted: April 21st, 2014, 10:42 pm

Nevermind, I figured it out!! :D In generate_content(); I used $this->color['..'] where it should be $this->color s ['...']. And also, the following function helped me solve the problem where some of the fonts in the font array were written wrong (oops... I tried my best). [php] public functio...

Post Posted: April 21st, 2014, 9:50 pm

I'm in the process of creating some different CAPTCHAs for a system I'm creating (making them available in the admin control panel) and the script doesn't seem to want to work... I can't seem to pinpoint the problem too. Here is the current CAPTCHA code that I have at the moment... can't go on with ...

Post Posted: April 16th, 2014, 7:10 pm

I think so too... I just don't know how to do it command line and Eclipse is too much trouble than it's worth.

Post Posted: April 15th, 2014, 7:52 pm

Okay, I figured it out... Apparently when I add a new source file and name it, it doesn't add the .c extension automatically, and I'm supposed to do that myself. After adding the extension, it fixed my problem. Now I got the following notice in the Console: <terminated> Hello World Debug [C/C+...

Post Posted: April 15th, 2014, 7:33 pm

If I try to build I get the following notice:
Quote:
Nothing to build for project Hello World

For run, I have Auto Build set up.

Now it says (after I did clean)
Quote:
The selection cannot be launched, and there are no recent launches.


Edit2: Now it's back to the not found binary thing...

Post Posted: April 15th, 2014, 7:24 pm

It might be my PATHs variables, but I know nothing about paths, where they're at (environments maybe?), what they should be, how many of them there should be...

Post Posted: April 15th, 2014, 7:08 pm

I'm trying to run the following code in C:
C Code: [ Select ]
//C hello world example #include <stdio&#46;h> int main() { printf("Hello world\n"); return 0; }
I found that code here . It is probably because I'm including stdio.h which is the binary that is not found (or something else entirely)....

Post Posted: April 12th, 2014, 11:05 pm

Well, I did shove it into the second alternative... found out that the first alternative is for direct links (http://www.google.com) and second alternative is for relative links (./path/to/file.php). [code]((^(http[s]?:\/\/)?([w]{3}[.])?(([a-z0-9\.]+)+(com...

Post Posted: April 12th, 2014, 10:56 pm

I got the following REGEX to work... [code]((^(http[s]?:\/\/)?([w]{3}[.])?(([a-z0-9\.]+)+(com|php))(((\/[a-z0-9]+)*(\/[a-z0-9]+\/?))*([a-z0-9]+[.](html|php|gif|png|jpg))?)(((\&|\?)\w+\=\w*)*)$)|((^([.]\/)...

Post Posted: April 12th, 2014, 8:27 pm

I currently (not) use the following REGEX: [code]^((https?:[/][/])?(\w+[.])+com([?]\w+=\w*([&]\w+=\w*)*)?|((https?:[/][/])?(\w+[.])+com([?]\w+=\w*([&]\w+=\w*)*)?[/]|[.][/&#...

Post Posted: April 12th, 2014, 8:21 pm

There is actually a JavaScript library for this (you most likely already have seeing it).

Annyang

Post Posted: April 12th, 2014, 8:12 pm

I got Cygwin compiler which took over 12 hours to download and install and took up about 35Gigs of space :shock: I don't have a Linux or another machine... Cygwin comes with GCC and other stuff... many other stuff... 35Gigs of other stuff!! Thanks for the help!! I'll try using the Eclipse with the c...

Post Posted: April 11th, 2014, 9:25 pm

I downloaded Eclipse (and installing Cygwin compiler) but it turns out that Eclipse is an IDE... maybe I didn't understand a certain tutorial right, which said: decide whether you want to run an Integrated Development Environment (IDE) or if you want to edit C files manually through an editor like N...

Post Posted: April 11th, 2014, 8:16 pm

I have another question on this subject. I don't want an IDE to develop in C (mainly because I don't know how to use an IDE and I don't know the language yet).

I want to be able to type in Notepad++ (or something like that) and then be able to compile it and run.

Post Posted: April 10th, 2014, 10:03 pm

Thanks, that stuff you posted about INNER JOIN and other kinds of joins did help me. I changed my code to INNER JOIN. Thanks for posting such a detailed post.

Post Posted: April 10th, 2014, 8:34 pm

I have the following SQL:
SQL Code: [ Select ]
"SELECT group_name FROM " &#46; GROUP_TABLE &#46; " WHERE `group_id` = (SELECT user_group_id FROM " &#46; USER_TABLE &#46; " WHERE `user_id` = '{$user_id}')"
Is it more efficient if I do left join instead of joining two queries like ...

Post Posted: April 9th, 2014, 11:55 pm

I won't be able to suggest any APIs or extensions or anything like that to either take place of what you have or to improve. I can though, suggest a few steps you (or your programmers) could take to help improve the load time and efficiency of the code. The main thing you want to check for in your c...

Post Posted: April 9th, 2014, 11:25 pm

I know you guys won't understand Russian (the song is a Russian Christian hymn), but the images might be of interest (just to spend the time I guess) to some. Some people took pictures of prosecution that went on in USSR (during it's existence... in Communism) against Christians (Baptists, Protestan...

Post Posted: April 9th, 2014, 10:39 pm

I get a server not found for that flippo.io link you provided. Not that I have a site to check, but others who do won't be able to.

Kind of makes you doubt the security... it's there but it's not working as well as it should :/

Thanks for the heads up.

Post Posted: April 8th, 2014, 10:51 pm

No, not really. I'm just finishing up on creating an abstract class (+ 1 child class for MySQLi) for a utility (or group of) to connect to a database. I want to create one abstract class which would be extended by classes named 'class mysqli extends database', 'class postgresql extends database' and...

Post Posted: April 8th, 2014, 10:47 pm

Classes and OOP (Part 6) 1.0 Previous Tutorial This is the sixth tutorial in a series of tutorials on classes and OOP. First Tutorial Second Tutorial Third Tutorial Fourth Tutorial Fifth Tutorial In the previous tutorial we learned about abstract classes, their relevance to the programming ...

Post Posted: April 6th, 2014, 8:35 pm

Does the sql queries/statements look the same in other SQL servers as in MySQL?

Like would:
SQL Code: [ Select ]
SELECT * FROM `table_users` WHERE `userID` = 1;

Be the same for all SQL servers? (MySQL, SQLite, PostgreSQL...)

Post Posted: April 5th, 2014, 10:09 pm

Is there any benefits of using factory? Is it considered as bad practice?

Post Posted: April 5th, 2014, 8:39 pm

I just went off on a different route... [php]$match = array(); preg_match_all("/\<if\>(.*)\<\/if\>/", $contents, $match[1]); preg_match_all("/\<\/if\>(.*)\<elseif\>/", $contents, $match[2]); preg_match_all("/\<elseif\>(&#...

Post Posted: April 5th, 2014, 7:58 pm

Good question. I remember tackling this way back then when I was creating the templating engine I posted in PHP tutorials and I've tried 'str_replace' from and then eval'd it... but that didn't work. For instance if I have in my template file: [code]<if>$variable != true</if> // My Code ...

Post Posted: April 5th, 2014, 7:14 pm

I have a question... I don't really understand how template engines parse if/elseif/else statements, all kinds of loops/functions... I don't understand the logic behind that. I'm trying to learn... my current project is taking me to new heights in programming and I'm trying to reinforce my PHP knowl...

Post Posted: April 5th, 2014, 2:34 pm

What about factories, are they considered as bad practice? Looks to me like it's similar to a singleton (in a way).

Post Posted: April 3rd, 2014, 9:48 pm

Are you using a framework like CakePHP or CodeIgnitor in your site? Just wondering.

Post Posted: April 2nd, 2014, 12:05 pm

Yeah, posts that have already being read/seen except OP.

Post Posted: April 1st, 2014, 4:55 pm

Classes and OOP (Part 5) 1.0 Previous Tutorial This is the fifth tutorial in a series of tutorials on classes and OOP. First Tutorial Second Tutorial Third Tutorial Fourth Tutorial In the previous tutorial we learned about interfaces, their use in the programming world and multiple differen...

Post Posted: March 31st, 2014, 11:16 pm

Well, if you're ever going to have only one there, then you won't see the scroll bar even if it's coded in there anyway. I wouldn't worry about it.

Post Posted: March 31st, 2014, 10:56 pm

How about having it where a post (except for OP) would allow for like 20 lines and everything else would be collapsed (like the code blocks).

Would make certain topics (Like this one for instance) easier to scroll by and search for the post you want/need.

Post Posted: March 31st, 2014, 10:44 pm

SQL Code: [ Select ]
SELECT BitMachine.machine, bits.* FROM BitMachine LEFT JOIN bits ON BitMachine.machine = bits.STATUS ORDER BY BitMachine.machine ASC,  bits.ultrahot DESC, bits.hot DESC, bits.bitdate ASC


// edit... didn't see your edit :lol:

Post Posted: March 31st, 2014, 10:36 pm

ok what about adding to the query ORDER BY ultrahot DESC, last_hot DESC; my mind is frying out and i'm still using my phone Oh, didn't know that's how you combine ORDER by fields. That did fix it. I've tried [sql]SELECT BitMachine.machine, bits.* FROM BitMachine LEFT JOIN bits ON BitMachine...

Post Posted: March 31st, 2014, 10:23 pm

The order should be built in with [php] // Build the ultra hot table if(isset($table_row[$type]['ultrahot'])) { $return[] = build_table($table_row[$type]['ultrahot'], $table_row[$type]['ultrahot']['type'], 'ultrahot'); } // Build the h...

Post Posted: March 31st, 2014, 10:18 pm

Okay. Well I will make the change in the DB now. Thats going to throw this out of wack i am sure. :lol: Yes, we'll have to come up with different code to read the database. If you want you can wait for ScottG, maybe he'll come up with a solution for the way you have it at the moment... just that it...

Post Posted: March 31st, 2014, 10:14 pm

I need all the machines to show as it is part of a future expansion of the project. now the ultra hot/hot/regular it needs to be like that because ultrahot bits need to go on first and what ever is up top will go on next to the machine. so ultrahot bits are hotter than hot bits hot bits are hotter ...

Post Posted: March 31st, 2014, 10:09 pm

PHP Code: [ Select ]
if(empty($row['id']))
{
    return;
}
  1. if(empty($row['id']))
  2. {
  3.     return;
  4. }
Did the trick.

I knew I needed that, but I didn't think that that was what was causing it :lol: (A bit of a tounge-twister)

// Edited my previous post to reflect the change

Post Posted: March 31st, 2014, 9:54 pm

I also want to bring your attention to a problem. There is no way to order ultrahot, then hot and then regular since it's coming out of the database in no particular order. You could add 'ORDER BY bits.ultrahot DESC' to the query and then it's guaranteed that at least ultrahot would display first. B...

Post Posted: March 31st, 2014, 9:40 pm

I actually have an error there in the suggested fix (where ultrahot and hot won't work). I fixed it in here. Thanks ScottG. I originally had it outside of the loop, but after 30+ minutes of editing, re-editing the code, I must have moved it in the loop. I don't like how dumps look. Print_rs just dis...

Post Posted: March 31st, 2014, 9:12 pm

[php]<?php // Initialize require_once('data.php'); // These are functions to help make the code nicer and easier to read and by all means not required // This function is just to make code pretty and returns tabs '\t'. This function relies on the repeat_string function function tab($numbe...

Post Posted: March 31st, 2014, 6:42 pm

I'm not sure about this, but try this query instead of what you got. (I think it's a case of misplaced ` (slanted apostrophe)). (I'm also not sure if the asterisk (*) needs the apostrophes (`*`)). [sql]SELECT `BitMachine`.`machine`, `bits`.* FROM `BitMachine` LEFT JOIN `bits` ON `BitMachine`...

Post Posted: March 31st, 2014, 6:27 pm

That most likely means that the query (line 173-176) failed and is giving back false instead of the needed resource. You should check the SQL and make sure it fits your database tables and fields properly. You could change line 176 for the following to get a better understanding on what's failing:. ...

Post Posted: March 30th, 2014, 11:39 pm

Classes and OOP (Part 4) 1.0 Previous Tutorial This is the fourth tutorial in a series of tutorials on classes and OOP. First Tutorial Second Tutorial Third Tutorial In the previous tutorial we learned how to extend a class with either one child or with multiple. We also learned how we coul...

Post Posted: March 30th, 2014, 9:25 pm

Ok, it's the '-'. That is not allowed in SQL syntax (though phpMyAdmin allows it for some reason). I'd recommend either using an underscore '_' or combining the words 'loadWk'.

Post Posted: March 30th, 2014, 8:26 pm

demonmaestro wrote:
The next table is: bits
Image

The problem resides in load-wk it's actually load wk

Post Posted: March 30th, 2014, 5:06 pm

I guess their expectations on the expert were a little too high :lol:

That's pretty funny... poor expert!

Post Posted: March 30th, 2014, 4:53 pm

That must be it. Didn't catch that note at php.net. It now works. I guess I need to generate an absolute path there to make it work. Or is there a way to make it work?

Post Posted: March 29th, 2014, 10:11 pm

My destruct looks like: [php]function __destruct() { // Checking if we are to record data if($this->record_data) { // How long our script ran (With everything in between) $run_time = substr(microtime(), 0, 10) - self::$run_time; // Generating the log file contents $content .= "Ru...

Post Posted: March 29th, 2014, 3:02 pm

Classes and OOP (Part 3) 1.0 Previous Tutorial This is the third tutorial in a series of tutorials on classes and OOP. First Tutorial Second Tutorial In the previous tutorial we learned about the difference between a static context class and an object context class and that a static class i...

Post Posted: March 26th, 2014, 3:44 pm

http://www.shopitchina.com/item/16418094988

http://www.shopitchina.com/item/8057061040

Not sure if those are what you need... only 1 way to find out. As always, brought to you by China :D

Post Posted: March 25th, 2014, 8:08 pm

What about making a list of all bbCodes available on Ozzu since there are some new ones added that aren't listed anywhere. Maybe a select at the advanced posting which has all the bbCodes listed, and once clicked it would add the clicked bbCode? (Like the link 'View more smilies' for smilies, but it...

Post Posted: March 25th, 2014, 7:30 pm

How big are those MySQL tables? May I suggest a change in structure? Instead of having a ulta-hot, hot columns, you could have temperature. 1 being ulta hot, 2 being hot and 3 being normal (as values for column 'temperature'). And when you are retrieving the stuff from the database just have it orde...

Post Posted: March 24th, 2014, 7:34 pm

Classes and OOP (Part 2) 1.0 Previous Tutorial This is the second instalment of a series of tutorials on the topic of classes and OOP (object-oriented programming). First Tutorial In the previous tutorial we learned how to set-up a basic class, fill it with functions and class variables, ho...

Post Posted: March 23rd, 2014, 5:31 pm

Hi Bogey, For your first remark, have you seen this yet?: http://www.ozzu.com/search.php?search_id=unanswered I have that as one of my favorite links for the top right area of Ozzu. That basically shows threads in the order they were created that have not been answered yet. The main issue there is ...

Post Posted: March 23rd, 2014, 5:07 pm

The tutorial has being redone to include more information and in an attempt to do a better job at teaching classes and OOP. Enjoy! :D (The second part of the tutorial is in the process of being written).

Post Posted: March 21st, 2014, 5:06 pm

I'm doing the following code to get a generation of time in milliseconds/microseconds... whatever it is.
PHP Code: [ Select ]
 $usec = gettimeofday(); $time1 = $usec['usec']; // Code $usec = gettimeofday(); $pageGeneration = $usec['usec'] - $time1;
The problem with that is that I sometimes ge...

Post Posted: March 21st, 2014, 10:37 am

Ok, I managed to solve my riddle :lol: and it was something really easy to begin with. Instead of:
PHP Code: [ Select ]
$permission[$value[0]] = $permission[$value[1]];
I should've being doing:
PHP Code: [ Select ]
$permission[$value[0]] = $value[1];
I am not sure...

Post Posted: March 20th, 2014, 7:55 pm

It would also be nice if we are able to sort the views of topics by date of original poster (topic creation date) instead of last activity. This would enable me to find some more relevant (to date) topics that haven't being answered yet. (I'm also not a fan of the +3 Months Ago system ozzu seems to ...

Post Posted: March 20th, 2014, 7:51 pm

PHP Code: [ Select ]
$user_perms = $this->db->fetch_arow($result, 'num');
The $this->db->fetch_arow(...); function does the following:
PHP Code: [ Select ]
// We do a numeric array while($row = $result->fetch_array(MYSQLI_NUM)) { $rows[] = $row; } // Returning the array return $rows;
Which gives ...

Post Posted: March 20th, 2014, 1:11 am

Solve me this riddle I seem to have somehow created :lol: I can't solve it (at least yet) and yet it's probably something elementary... The PHP Code: [php]// Getting the user's permissions $sql = "SELECT permission_name, permission_value FROM " . PERM_TABLE . " WHERE permissio...

Post Posted: March 20th, 2014, 12:49 am

Okay, nevermind, I solved my error :lol: quite a terrible mistake to do and be stumped about :lol: I seem to do quite a lot of these... I was doing the following: [php]if($type = 'assoc') { // We do both, numeric and associative array while($row = $result->fetch_array(MYSQLI_ASSOC)) { $rows[&...

Post Posted: March 20th, 2014, 12:45 am

I just tried the following method
PHP Code: [ Select ]
// We do an associative array while(list($key, $value) = $result->fetch_array(MYSQLI_ASSOC)) { $rows[$key] = $value; } // Returning the array return $rows;
Which gave me the following result [code]Array ( [Post] => 1 [Message]...

Post Posted: March 20th, 2014, 12:40 am

I am running the following code to attempt and extract all of the data from the database using MySQLi.
PHP Code: [ Select ]
// We do an associative array while($row = $result->fetch_array(MYSQLI_ASSOC)) { $rows[] = $row; } // Returning the array return $rows;
That gives me: [code]Array ( [0]...

Post Posted: March 19th, 2014, 10:39 pm

Oh, that makes sense now... looking back at that tutorial, I don't know why I couldn't understand it... I think those <h2> (headers) threw me off for some reason. Thanks spork.

Post Posted: March 19th, 2014, 11:03 am

I wiped free space and just for fun got myself a file recovery program and ran it and it found a whole lot of files names 'zzzzzzzzzzzzzzzzz' with pretty much nothing in them. Thanks :)

Post Posted: March 17th, 2014, 6:27 pm

In my SQL database access wrapper, I'm making a count of all SQL queries ran. What I have a problem with is counting correctly all the queries... Right now I count query(), execute and fetch as a query (although I'm not sure I need to). Reason I'm not sure if I need to count fetch() as a query is be...

Post Posted: March 17th, 2014, 5:21 pm

Sorry, but I just noticed something on the web... seems to me perl has something like this?
PERL Code: [ Select ]
$ip = $req->header('Client-IP') || $req->header('Remote-Addr');
Straight copy/paste from here . This is the first time I see source code of perl... never knew it looked so close to PHP (or ...

Post Posted: March 17th, 2014, 4:13 pm

I still (after reading the PHP tutorial we have here) don't understand the __toString() method... well, I kind of understand what it does, but what's the use of it? Also, it would have been awesome if there was a magic method that was invoked before and after an invoked available method was called. ...

Post Posted: March 15th, 2014, 6:11 pm

Well, now they seem to think that there was foul play involved and turned the search for the plane into a criminal investigation. Apparently, (I read this somewhere, not exactly in that article) some passengers boarded the plane with stolen passports. I don't know how tight the security is in Malays...

Post Posted: March 15th, 2014, 6:07 pm

I checked on this the other day and my IP doesn't change. For some reason after I login the first time it logs me out when I click on another page (unless I go to a member only area which sends me to a login form) and only after that form does it actually logs me in.

Post Posted: March 14th, 2014, 4:26 pm

Well, at the moment, I'm thinking about writing a program that deals with images, video and audio. Would C++ be good for such project?

Post Posted: March 13th, 2014, 9:45 pm

I use an HTC One X+ and when I get on Ozzu using a mobile network (AT&T HSPA+) I'm forced to log-in twice, and in a certain order in order for me to actually log in to Ozzu. I have to click the log-in button in the Main Menu above, and then I'm supposed to click on "View your posts" li...

Post Posted: March 13th, 2014, 6:48 pm

I don't know if this is solved or not, but if all of those links are relative links then you could use base href.

HTML Code: [ Select ]
<base href="http://www.newsite.com">

Post Posted: March 12th, 2014, 10:24 pm

I think an interesting statistic to add to user's pages would be a topic count. We already have a post count (number of posts a user have made), but it would be interesting, how many of those posts are a topic starters (or how many topics a user has started). More for curiosity (just like the post c...

Post Posted: March 12th, 2014, 10:03 pm

Is there a PHP/MySQLi debugger tool out there that I could use to see the amount of SQL queries i run per page, the total generation time it takes to generate each page and other statistics? One I could use on XAMPP locally on my machine? Thank you!

Post Posted: March 12th, 2014, 11:17 am

Not sure on how much help I'll be what I notice (besides that table that ScottG mentioned) is that in admin you are retrieving stuff from TBL_ORDER while in the adminprocess you are updating the table 'users'. Maybe that's correct, I don't know your database scheme. Also, is the field 'status' set a...

Post Posted: March 11th, 2014, 3:04 pm

I read last that the biggest bank for bitcoin collapsed (for corruption if I understood last) and that because of it, many believe this is pushing the bitcoin into a huge recess. A lot of arguments are going around about bitcoin and other sorts of internet money (or is that digital money?)... such a...

Post Posted: March 11th, 2014, 3:01 pm

Why not use the open source MuseScore for your chord printing needs? http://createdigitalmusic.com/2011/07/musescore-1-1-free-and-open-source-notation-rivals-and-plays-with-sibelius-7 Interesting, never knew that such a program existed!!! I will definitely try it out as I know piano as well! (A lit...

Post Posted: March 11th, 2014, 2:58 pm

Bootstrap which is a css framework to help with responsive designing. And the following are some thoughts to think about. Does your host/site has any sort of caching/temporary files? Would clearing it help? Do the images show up with www. with the path, or without? What about CHMODD? Are the viewab...

Post Posted: March 11th, 2014, 2:42 pm

Never trust users inputs and ALWAYS use ORM or at least PHP-PDO. The times of `mysql_real_escape_string` (or similar) are gone :D Be careful with PHP-PDO where the prepares are emulated (or have they updated that?). You would need to run the following code when initiating a connection to the server...

Post Posted: March 11th, 2014, 2:35 pm

Two links at the far right of the menu (bulkseotools and antivirus check) are they you're bundles? They lead to a different website. The logo seems to be doing some weird pixelation at the top (ILF). The top half seems fuzzy and out of focus. Is that by design? The design seems like a template, it's...

Post Posted: March 11th, 2014, 1:03 pm

Thanks Nightslyr, if I could +1 that post I would. That was really helpful!! Going from what I read in your post I want to learn C++ for desktop applications, but Java is mainly for Android development, right? Also, what books/tutorials that I could use to start learning C++ and possibly Java (for A...

Post Posted: March 6th, 2014, 7:35 pm

Any good tutorials online and books for Java and C/C++ (which one would be better though?). I got the JDK and NetBeans IDE 7.4 for Java, is that a step in the right direction? What compiler should I use for C/C++? Preferably a free one right now as I don't have any money to buy any paid ones. I'm th...

Post Posted: March 6th, 2014, 5:09 pm

I know PHP well enough and it's for the web, but what programming language should I start learning for desktop programming? C, C++, VB or what others are there that I could learn? Java and C(#|++) seem to be common contenders Does Java have better multi-platform support then C(#|++)? The most import...

Post Posted: March 1st, 2014, 1:20 am

Oh, that makes sense. I do know what that program is... it has many features that I use constantly, it just has that feature that I don't know what it is. But I do use the program for the many other features it has!! I'm not one to download random junk from the internet and use them :lol: I've used ...

Post Posted: February 28th, 2014, 5:38 pm

I use a program called CCleaner and it has a feature to wipe free space... what does that mean? It has 2 options (1: Wipe Free Space; 2: Wipe Entire Drive (All Data Will Be Erased). Obviously, on the second option I'll be loosing my data (which I don't want), but what does wiping free space do? It d...

Post Posted: February 24th, 2014, 5:28 pm

I need it to clear inputs (make them empty) even if they have a value set (which is why I used $(this).val(''); and not reset();).

Thanks though :D

Post Posted: February 22nd, 2014, 7:26 pm

I figured out the problem... in the generated SQL the question marks had quotes around them ('?') which to the SQL looked like a value rather then a parameter/variable (whichever one it is) that is needed to be bound. The correct working function is: [php]public function insert($tbl_name, $fields, $...

Post Posted: February 22nd, 2014, 12:49 pm

Here is the function where that works fine! [php]public function build_query($sql) { // Checking if $sql was an array if(!is_array($sql)) { if($this->silent === false) { trigger_error('The variable $sql is not an array ', E_USER_ERROR); } return false; } // Setting a default where clause $where =...

Post Posted: February 22nd, 2014, 1:42 am

I've got another problem here... getting an error I'm not supposed to get (as far as I know :lol: ) [php]// The values to be added to the database $values = array('null', // user id 'null', // user session id '1', // user permission id '1', // user group id '?', // [s] (username) '?', // ...

Post Posted: February 21st, 2014, 8:30 pm

:lol: I got it figured out... still trying to get used to HTML5 and forgot about the email type input which wasn't resetting because javascript wasn't looking for email haha! [javascript]<script> function clear_form_elements(ele) { $(ele).find(':input').each(function() { switch(thi...

Post Posted: February 21st, 2014, 8:13 pm

I've researched this online and tried to implement solutions that I have found* but I can't get it to work at all... Here is what I have at the moment: (I put this in between <head>...</head> tags) [javascript]<script type="text/javascript" src="templates/default/js/jqu...

Post Posted: February 20th, 2014, 7:15 pm

SQL Be aware of 1st order injection, 2nd order injection and lateral injection. 1st order injection is simple enough... when the user submits a form that is meant to be entered into the database (such as registration form) and enters a dangerous entry into the form that does terrible things to your ...

Post Posted: February 20th, 2014, 5:17 pm

So lol... I did write an oxymoron without realizing it. I meant I connected to the server but wasn't able to access the DB... so I guess I didn't connect to the DB but was able to connect to the server with a username that I didn't have setup on my server.

Post Posted: February 19th, 2014, 6:13 pm

Oh... well, I went ahead and followed your advice. Thanks for helping me out! :D Of course, global variables are a pretty bad programming pattern and you'll be passing those variables into the function as arguments. :) If you notice anything else that I'm doing which is considered as bad programming...

Post Posted: February 18th, 2014, 11:42 pm

If your use case is related to the last statement above, you may want to consider using a singleton pattern to keep things just a tiny bit more manageable. I also read that singletons are a bad method as well! Well, so far I'm not using globals or anything like that as I have went about a different...

Post Posted: February 18th, 2014, 1:02 am

Another mystery solved :D [php]public function fetch_row() { // Getting metadata $meta = $this->last_stmt->result_metadata(); // Iterating through fields and generating the result array while($field = $meta->fetch_field()) { $field_name = $field->name; $parameters[$field->name]...

Post Posted: February 18th, 2014, 12:23 am

I did, I bound 'user_id' to it and when I var_dump(); the returned $user_id, I get a value of &NULL when in reality I'm supposed to get a '1'!! Here is my current function (also needs to take in dynamic amount of arguments). [php]public function fetch_row($sql, $name) { // Exploding the string i...

Post Posted: February 17th, 2014, 12:30 pm

Not very much mainly because it's a bit confusing and they way I started to implement the database access wrapper class makes it kind of hard to code other parts of the class. For instance: For preparing and binding I need to call two functions mysqli::execute(); and mysqli::store_result(); but to r...

Post Posted: February 15th, 2014, 9:37 pm

[code]((^(http[s]?:\/\/)?([w]{3}[.])?(([a-z0-9\.]+)+(com|php))(((\/[a-z0-9]+)*(\/[a-z0-9]+\/?))*([a-z0-9]+[.](html|php|gif|png|jpg))?)$)|((^([.]\/)?((([a-z0-9]+)\/?)+|(([a-z0-9]+)\/)+([a-z...

Post Posted: February 15th, 2014, 2:21 pm

Ok... the regex there does not give me what I want... it forces me to have an http... The problem with that is that I need the following to be validated true on regex. http://www.site.com https://www.site.com http://site.com https://site.com http://domain.site.com https://domain.site.com http://www....

Post Posted: February 15th, 2014, 12:22 pm

I'm validating a URL passed to my script VIA GET method (means the user has full access to it and could change it as s/he pleases). Here is what I'm doing. [php]// Setting the URL variable $previous = $_GET['previous']; // Checking if the URL is a valid URL if(preg_match(REGEX_URL, $previous...

Post Posted: February 14th, 2014, 11:21 pm

I also got that fixed :D [php]// The arguments array $array = array(array($where[1]), $where[2]); // Merging al of the arrays into one array $array = call_user_func_array("array_merge", $array); // Recreating a reference array (to be used for bind_param) foreach($array as $...

Post Posted: February 14th, 2014, 8:22 pm

Reason I want to do this is because I have a database function that builds the query and I want it to automatically to prepare the query and bind the variables. The thing with this is that I will have x amount of params to bind... meaning it would be dynamic... would change from time to time. How co...

Post Posted: February 14th, 2014, 7:23 pm

Ok... I got that figured out :lol: Different question though. I got the following SQL.
SQL Code: [ Select ]
SELECT `user_id` FROM `cms_users` WHERE username = ? AND password = ?
Could I bind both of those params separately? For example: [php]$sql = "SELECT `user_id` FROM `cms_users` WHERE username = ? AN...

Post Posted: February 14th, 2014, 4:11 pm

:lol: I figured it out. I was getting the SQL to be generated incorrectly. Instead of:
SQL Code: [ Select ]
SELECT `user_id` FROM `cms_users` WHERE user_name = '?'
I needed
SQL Code: [ Select ]
SELECT `user_id` FROM `cms_users` WHERE user_name = ?
(The weird thing is though is I added those single-quotes because I was ...

Post Posted: February 14th, 2014, 4:06 pm

For the first time I'm using MySQLi and learning the prepare and bind_param and for some reason I can't get it to work. Looks like I'm doing everything correct, but it is telling me otherwise. [php]$sql = $db->build_query(array('user_id', USER_TABLE, "user_name = '?'")); $sql = $db->...

Post Posted: February 14th, 2014, 3:54 pm

I do like the idea of utilizing a strength meter and going to search for one to implement (or possibly try to write my own... would be a nice Javascript learning project for me). At the moment I'm not forcing users to use "strong" passwords (don't have any user's yet anyway as the project ...

Post Posted: February 14th, 2014, 12:43 am

What are your guys' ideas about utilizing a strong password validation or not? Should I have my script influence potential user's passwords or not?

Post Posted: February 12th, 2014, 11:06 pm

I'm trying to install phpDocumentor and after a long time of figuring out exactly how to use cmd to install packages and that sort of stuff, I went and installed phpDocumentor.

The problem now is that it only installs the directories, but it doesn't install the files.

Post Posted: February 10th, 2014, 6:32 pm

Besides I just found out that MySQL is deprecated. I'm going to have to move to PDO or MySQLi... Which one would you guys recommend?

Post Posted: February 10th, 2014, 5:35 pm

Admin (My secondary admin profile I made to fix my PC... still there) Bogdan (My old account name that I deleted) Bogdan 2 (The current account) TEMP (I'm guessing this and the following one has to do with the temporary profile) TEMP.Bogdan-PC (I'm guessing this one has to to with the temporary prof...

Post Posted: February 10th, 2014, 5:27 pm

This post I made gives a bit more detailed information.

Post Posted: February 10th, 2014, 5:25 pm

Looking at their privileges, they don't have any privileges at all... They can't select, update, insert, delete, file or anything to any of the databases there. Anyway, this is on my local machine in XAMPP so no one else has any access to it. Thanks for the heads up!

Post Posted: February 10th, 2014, 3:02 pm

I think I understand this correctly but I'm not sure. Just to test out my errors I put in the wrong user and it still connected but gave me the error for not being able to connect to a database that was there. I went to phpmyadmin and found out that there are two users named "Any" (and the...

Post Posted: February 10th, 2014, 1:54 pm

I got a different sort of question on this. Now that I sort of figured it out, I have a different question that I kind of know an answer to but don't know how to implement it. Here is my question: I have the try/catch system set up for connecting to the server and database and the way I have error h...

Post Posted: February 10th, 2014, 12:31 pm

Many big php projects use globals like that (including phpbb3) so I thought it would be fine. Besides setting the $user object again and again just seems like a lot of extra work, when I could set it in 1 page and just use the global to pass it to other functions in different classes that uses that....

Post Posted: February 9th, 2014, 11:23 pm

Sorry, this was a silly question indeed. Just after a while of not coding I forgot things!

I have to include the file outside the function and set-up global at the beginning of function.
PHP Code: [ Select ]
function name()
{
    global $var1, $var2, $var3;
   
    // Do the code here
}
  1. function name()
  2. {
  3.     global $var1, $var2, $var3;
  4.    
  5.     // Do the code here
  6. }

Post Posted: February 9th, 2014, 10:55 pm

I'm not exactly sure what is going on here, but I'm guessing that I'm doing something wrong here. I have config.php which holds the database values, and in my database access wrapper I'm including it in there so I have access to those values but the script doesn't recognize those values. Here is wha...

Post Posted: February 9th, 2014, 6:35 pm

Nevermind... all I had to do was get my hands dirty on the subject. I figured it out. Thanks :D

Post Posted: February 8th, 2014, 2:46 pm

CodeProject has a very good explanation of the different joins.

Post Posted: February 7th, 2014, 9:10 pm

I'm trying to catch all of the errors I generate with PHP but don't really know the best way to do and how exactly to accomplish what I want. I want to be able to throw exceptions, catch them, produce an error stack and kill the script on the last one. Don't know how to come by all this... don't rea...

Post Posted: February 6th, 2014, 10:51 pm

I'm trying to use TWIG in my system I'm building as the templating engine, and I have got it working pretty well, until I started trying to get the CSS parsed as well. Here is what I have done, and it seems to be working pretty well (most of the solutions are what I found on the net). I've created a...

Post Posted: February 6th, 2014, 10:42 pm

I have that exact one as well and I'd say it's really good. I'm a beginner and I was able to understand it pretty good. I didn't read all the way through it, but it's really good at teaching JavaScript. I would highly recommend it. I also have their "AJAX, The Definitive Guide" which is a ...

Post Posted: February 6th, 2014, 1:12 pm

JavaScript

O'Reilly JavaScript

Post Posted: February 4th, 2014, 11:22 pm

I've started a project of my own choosing and in it, I needed to do some REGEX search and destroy (well, removing a portion off of a string) As I don't know REGEX, that turned out a bit problematic. The following two sites helped me out tremendously with the problem. Maybe they would serve other peo...

Post Posted: January 22nd, 2014, 6:33 pm

I've tried that numerous times but that didn't fix my problem. I did the second method... copying all my files from my broken account to my new account. I ended up removing the old account and renaming the current account to the same name as the old account. What I have done is that I accidentally d...

Post Posted: January 18th, 2014, 10:40 am

This is the first time that I had this happen to me, so I don't really know what to make of it. I turned my laptop off yesterday and when I turn it on today, I get logged into a temporary profile... You have been logged on with a temporary profile. You cannot access your files and files created in t...

Post Posted: January 18th, 2014, 12:38 am

How about making it so that if the original post has being changed/edited then the threat is then marked as unread? This way if the original poster adds more information to the original post (to answer someone's question or something like that) then everyone who participated in it before the change ...

Post Posted: January 18th, 2014, 12:17 am

What kind of information do you see? I haven't seen anything being implemented that way (unless it's done by mod_rewrite, but then the second phrase is dynamic...)

Post Posted: January 17th, 2014, 1:31 pm

Don't really know what you are talking about... maybe give a bit more information?

There's whois that shows a lot of details about the site and the IP, but it isn't implemented the way you describe...

Post Posted: January 17th, 2014, 1:08 am

The following is my hijackthis log: Logfile of Trend Micro HijackThis v2.0.5 Scan saved at 11:03:45, on 17.01.2014 Platform: Windows 7 SP1 (WinNT 6.00.3505) MSIE: Internet Explorer v9.00 (9.00.8112.16455) FIREFOX: 26.0 (en-US) Boot mode: Normal Running processes: C:\Windows\system32\taskhost.exe C:\...

Post Posted: January 15th, 2014, 11:59 pm

Sorry it has taken so long for me to get back at you... do not know when this was happening as all I see is 3+ months ago so don't really know how old this is, but I do remember reviewing you (which means it can't be too old as I forget fast)...

what happened to your sites? Did you remove them?

Post Posted: January 15th, 2014, 7:19 pm

Thanks, I'm going to try LibreOffice as well.
  • Sort by
 
 

© 1998-2016. Ozzu® is a registered trademark of Unmelted, LLC.