Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
91% Quality Score
Upvotes Received
14
Posts with Upvotes
9
Upvoting Members
6
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
8 Endorsements
Ranked #233
Ranked #1K
~48.1K People Reached
Favorite Tags

61 Posted Topics

Member Avatar for ravoras

A simpler solution would be to export from Excel as a CSV and then use PHP's buitlin functions to parse a CSV file : http://php.net/manual/en/function.fgetcsv.php

Member Avatar for skradoslav
0
4K
Member Avatar for cse.avinash

Are you allowed to stick some sneaky bits in? e.g. if the input is 1000 you start from 7919 and skip everything below 7919 ...

Member Avatar for vantrendin
1
6K
Member Avatar for debasisdas
Member Avatar for Smeagel13

Take the following C structure: typedef struct dataPoint { tick * tickData; struct dataPoint * previousDataPoint; struct dataPoint * nextDataPoint; } dataPoint; Compiling on a 64-bit system with 8-byte words, this structure takes up 24 bytes (3 words) of memory. 24 % 8 = 0 ... so it is word …

Member Avatar for Smeagel13
0
295
Member Avatar for Smeagel13

I handle my email myself with open-source IMAP implementations, at work we have IBM Domino, I'm trying to get a feel for what yourself/businesses (you know of) use? Not so much why, but just to see rough market usage... Thanks.

Member Avatar for JorgeM
0
182
Member Avatar for dhruv_arora

It's possible, I think whoever has the best service at the right time will come out on top, think about Instagram, people seem to love taking pictures these days and that grew like mad. So in a few years there will be a new craze, Google might capture it first …

Member Avatar for asifalizaman
0
1K
Member Avatar for nabeelkhanjadoon10

> 1500+ lines in a few (2) days... Either that includes a hell of lot of blank lines, copying and pasting, or there was no testing because that's just daft!

Member Avatar for DoRight
0
7K
Member Avatar for backlinkco
Member Avatar for Smeagel13

So much of SEO advice around the internet, well what I've found anyway, is based on bloggers or people with content heavy sites. This is making it a little hard to find what I'm after. I can't see websites like Amazon, eBay, DaniWeb even, following this kind of SEO. So …

Member Avatar for seo2india
1
231
Member Avatar for Rajshri Patil

Read the schema (nutrition for example): http://schema.org/NutritionInformation Actual example of nutrtion data, look at source: http://www.xanderfit.co.uk/food-database/view-food.php?id=5386 Look for itemprop, itemscope and itemtype, that's my site so if you have a specific question, then ask... As for SEO and SERP, it allows the search engines (and other things) to understand your …

Member Avatar for dandcouk
0
134
Member Avatar for rithish

An argument is also called a parameter, if you've heard that before? An argument is a piece of data passed to a function to be used within that function. In the case of printf, the format string, the first argument, specifies three '%d' markers, which indicate to printf that there …

Member Avatar for Lucaci Andrew
0
136
Member Avatar for showman13

I'm going to go on the basis I have the right idea for what you want, the calculation is as follows: You want the fee (referred to as $outcome, what you get) to equal a certain amount, lets take your example for $2, so... (($gross x 0.065) + 1.5) must …

Member Avatar for veedeoo
0
128
Member Avatar for vizz
Member Avatar for vizz
0
120
Member Avatar for Smeagel13

<div class="parent"> <div class="child"></div> </div> /* Final Width: 200px */ div.parent { width: 200px; } /* Final Width: 202px (with border) */ div.child { width: 100%; border: 1px solid #000000; } /* Final Width: 200px (with border) */ div.child { /* Width Inherited -- Assumed as 200px? */ border: 1px …

Member Avatar for Smeagel13
0
203
Member Avatar for Smeagel13

Field defined as DECIMAL(5,2), trying to INSERT (250.00). When query is performed remotely to DB server, it fails with 'Out of range value for column...', when query is performed locally on the DB server, the query works. The query works remotely when the value being inserted is 226.24 (yes, that …

0
91
Member Avatar for pavitrakannan

look in the user table within the mysql database ... is access defined 'user-xxx'@'localhost' or 'user-xxx'@'127.0.0.1' http://dev.mysql.com/doc/refman/5.1/en/access-denied.html "If you specify a host name when trying to connect, but get an error message where the host name is not shown or is an IP address, it means that the MySQL server …

Member Avatar for Smeagel13
0
258
Member Avatar for samuelmax

You can use server side scripting to write your own processing function, just look at each request's user agent, not all requests will have one but Google will be nice and always provide one. So, look at the request ($_SERVER variables in PHP) and check to see if the user …

Member Avatar for Smeagel13
0
109
Member Avatar for m1n1m3

Shouldn't that be part of your learning, researching and determining which database to use? ;) But, looking at your goals, it would be simple to keep the database in one place and avoid offline mode, unless you have the database stored locally within the application depending on what it is …

Member Avatar for peter_budo
0
235
Member Avatar for hwoarang69

The first thing that stands out is : if(!$insert = mysql_query("INSERT INTO VALUES(NULL, '', '$image', '$image_full_name', '', '', '', '')")) `INSERT INTO` ... what, you've forgotten the table name. Should be `INSERT INTO tbl_name VALUES...` Also, consider using some other syntax to keep it a little cleaner (in my eyes), …

Member Avatar for code739
0
239
Member Avatar for dheerajm

You need to pass the original search query on to the product page, either with the URL or POST data depending on how you search for things currently. Once on the product page, use the original search term to re-run the query excluding the currently displayed item.

Member Avatar for senthilvignesh
0
118
Member Avatar for NetJunkie

[QUOTE=carrieathomer;1664954]I started programming when i was 13 guess what is the programming language.. it is BASIC - yes the old basic.[/QUOTE] Damn! beat me by one year, I was 14, wrote my first program in BASIC, number guessing game, I was proud!

Member Avatar for Reverend Jim
0
965
Member Avatar for hwoarang69

if(isset($_POST['submit'])) { ... } ... needs to be ... if($_SERVER['REQUEST_METHOD'] == 'POST') { ... } Also answered your other thread, same reason and solution. With the looks of it, you would expect to see the $_POST['submit'] variable set in your example above, but perhaps the 'type="submit"' causes it to be …

Member Avatar for |-|x
0
1K
Member Avatar for hwoarang69

Wrong use of `if(isset($_POST['submit']))` here, what you're looking for is: <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { // Validate and Execute Password Change Code ... } else { // Display Form } ?> [http://php.net/manual/en/reserved.variables.server.php](http://php.net/manual/en/reserved.variables.server.php)

Member Avatar for hwoarang69
0
213
Member Avatar for pennywise134

`find . -depth 1 -name "[tf]*[32]"` ... would do the job here, followed by ... `rm f*`. This is all done within one directory, it didn't look like you wanted to be recursive... Look up character classes in regular expressions.

Member Avatar for chris.stout
0
124
Member Avatar for Ordella
Member Avatar for Smeagel13

Hi Guys, Is there a way to put home videos on the iPhone, without it being classed as a Film or Music Video in iTunes? I like to think of Videos, Films and Music Videos all as separate groups... Unless Apple considers films, movies and videos to be the same.

0
94
Member Avatar for MooGeek

What could the spammer actually get from this ... one more email or am I missing something?

Member Avatar for WaltP
0
203
Member Avatar for violaceous

A basic skeleton ... [CODE] <?php // Assume you have an expiry date stored as a timestamp. // You've queried the database for the expiry timestamp on the account in question. // Results have been put into $mysql_account_info using mysql_fetch_assoc(). // Check to see if the time now is equal …

Member Avatar for Smeagel13
0
111
Member Avatar for happygeek

[QUOTE=zeroliken;1702518]Is it wrong to laugh while reading this? :D Anyway the kid does have a point and maybe he'll earn some extra bucks from the right people[/QUOTE] You not the only one having a laugh ... Isn't the point of a game to work your way up anyway!

Member Avatar for jammerjoe
0
1K
Member Avatar for coolbeanbob

[QUOTE=coolbeanbob;1712106]I've worked in both large and small companies. I tend to prefer the smaller companies, but I might be happy working the small IT group of a larger company. Would you say there is not much need for DBA's in smaller companies? Or is there one person that can play …

Member Avatar for coolbeanbob
0
276
Member Avatar for rajandass65

I've just done a google on your site, and it looks like other pages have been defaced by different people ... :( not good!

Member Avatar for rayidi
0
138
Member Avatar for cliffcc

I see you're trying to use smtp.google.com as your relay ... you can't just use any old smtp server. You need a server you're allowed to use, such as your ISPs relay, find that out and use that.

Member Avatar for Smeagel13
0
135
Member Avatar for GrimJack

[QUOTE]Most animals are solid muscle, and so much badder than any human--that's why it sucks so bad to get attacked by anything, even a dog.[/QUOTE] If you think about it, if we weren't as smart as we are, we would probably be doomed based on physical strength and the lack …

Member Avatar for almostbob
0
206
Member Avatar for Ich bin würdig

or ... are you asking how most of unix utilities work? What appears to be several programs is actually just one program with multiple functionality bundled up, when the program is launched it looks at argv[0] to see what 'program' or functionality to run!

Member Avatar for Smeagel13
0
97
Member Avatar for geneh23

blocblue's showing off :P it would be simpler to use ... [CODE]return mysql_result($query, 0);[/CODE] ... providing the caller can handle FALSE if it's returned. I'm hoping you've used [ICODE]if(category_exists('blahblah'))[/ICODE] ...

Member Avatar for geneh23
0
233
Member Avatar for Smeagel13

So here's the design: Workout_TBL(Workout_ID, Type, Notes, Date); Exercise_TBL(Exercise_ID, Exercise_Name, Type) Cardio_Entry_TBL(Cardio_Entry_ID, Workout_ID, Exercise_ID, Duration, Pace, Distance, Calories, Notes) - FK Exercise_ID and Workout_ID Strength_Entry_TBL(Strength_Entry_ID, Workout_ID, Exercise_ID, Weight, Repetitions, Sets, Notes) - FK Exercise_ID and Workout_ID A workout has many exercises associated with it of a certain type, which works, …

Member Avatar for smantscheff
0
135
Member Avatar for Smeagel13

I have Snow Leopard and needed to install an update, the SMC v1.5 update. I downloaded it and installed it, appeared to install without error. I went to see if the update had been installed and it said it had been installed yet it also said I had 1 update, …

Member Avatar for Smeagel13
0
158
Member Avatar for shaneos

This wouldn't come about during compilation, but when it runs there will be a problem. [CODE]for(i=0; i<CLASS_SIZE; i++) { // array size is 5 (CLASS_SIZE), variable i will equal 4 at some point ... // when i is 4, string[4+1] is outside desired memory bounds, so compare result will be …

Member Avatar for Smeagel13
0
113
Member Avatar for Panathinaikos22

I'd say C is low, maybe low-medium at a push, it's only one step away from assembler... It can be written in whatever you like, languages are tools, algorithms are what you should concentrate on, theres more to ATMs though. Organisations don't like changing stuff that works so sometimes things …

Member Avatar for timetraveller92
0
157
Member Avatar for dgreene1210

Your custom function parameters need looking at ... int ** a, a is a pointer to a pointer. int ** a[], a is an array of pointers to pointers later in the functions you call printf() with a[i][j] which is not an int ** if a = 0x00AA , a[i][j] …

Member Avatar for Smeagel13
0
177
Member Avatar for calebcook

The scope of $dbc is local to connect() so displayFunction() cannot "see" it. The best way would be to have connect() return either the connection ID or FALSE. Then swap ... [CODE]if(!connect()) {[/CODE] for ... [CODE]$dbc = connect(); if($dbc == FALSE) {[/CODE] although, personally I would put the TRUE statement …

Member Avatar for calebcook
0
137
Member Avatar for PapaGeek
Member Avatar for mameemonster

Make a truth table for the logical tests ... [CODE]} while (yn != 'Y' || yn != 'y' || yn != 'N' || yn != 'n');[/CODE] if yn is equal to 'y' you wan't the loop to finish, except 'y' is not 'Y', 'N' or 'n' so that statement equates …

Member Avatar for D33wakar
0
142
Member Avatar for geneh23

[QUOTE]...it shows these errors now: "Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files (x86)\EasyPHP-5.3.8.1\www\register.php on line 53[/QUOTE] In my experience of this error, the cause is usually always a dodgy query returning FALSE or no connection to the DB.

Member Avatar for momo219
0
720
Member Avatar for Ozwalt

How about doing something on the side that you nurture into a business and slowly switch over from being employed by a company into your own company full time? That's what I'm doing, granted what I do at work is harder than my bit on the side but it's a …

Member Avatar for Smeagel13
1
389
Member Avatar for riahc3
Member Avatar for yaseenmohd

If you mean idle as in sat on a webpage for too long and you want to force a logout then PHP can't help as it's server side. JavaScript would work on timers. Otherwise PHP using timers can only log out a user when they send another request after this …

Member Avatar for Stefano Mtangoo
0
556
Member Avatar for asif49

Your algorithm needs changing, 2 things I can think of that would break it: Searching for "brown" in "The quick brown fox." Searching for anything in a string without a period.

Member Avatar for asif49
0
123
Member Avatar for theofilos93

[QUOTE=gerard4143;1675220]Its simple really. First, create the memory for your c-strings and then read into them. One method [code] #define ARR_SIZE 100 char cstring1[ARR_SIZE];/*100 character array*/ char cstring2[ARR_SIZE];/*100 character array*/ fgets(cstring1, ARR_SIZE, stdin);/*read into cstring1 from the stdin*/ fgets(cstring2, ARR_SIZE, stdin);/*read into cstring2 from the stdin*/ [/code][/QUOTE] And clean them straight …

Member Avatar for hkdani
0
285
Member Avatar for ryan92

Being good at programming is not about how many languages you know, it's about being able to design efficient algorithms, languages are only tools.

Member Avatar for Smeagel13
0
154

The End.