₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,324,993 members, 8,419,844 topics. Date: Thursday, 04 June 2026 at 02:04 AM

Toggle theme

Delomos's Posts

Nairaland ForumDelomos's ProfileDelomos's Posts

1 2 3 4 5 6 7 8 9 10 (of 12 pages)

ProgrammingRe: Need Help/collaborators On Occupy9ja.com by delomos(op): 11:02pm On Jun 03, 2012
Ema4rl: Count me In.... First I want sum1 to list all the useful apps I need to see if I have to download any1 I don't have
Are you proficient in HTML/CSS or PHP Or Javascript?

Or what will you like to contribute to?
ProgrammingRe: Convert Existing Website To Phone App? by delomos(m): 11:12pm On May 30, 2012
spikes C: but jquery mobile requires a seperate domain/sub domain or if i just insert the header scripts and css, would it just convert the website to mobile optimised
Not necessarily, read the docs: http://jquerymobile.com/demos/1.1.0/#/demos/1.1.0/docs/about/intro.html
ProgrammingRe: Need Help/collaborators On Occupy9ja.com by delomos(op): 6:12pm On May 30, 2012
Fayimora: Hmm your choice!
Not sure what that means, yes, no?
ProgrammingRe: Need Help With Server-side Script by delomos(m): 3:29pm On May 30, 2012
So this is it, firstly, Javascript it not a server-side language:

2. I'd advice on how to use jsFiddle - there is box that says "HTML", another says "CSS" and another "Javascript. Paste the proper code in the right places.

3. It doesn't seem you have any rudimentary understanding of JavaScript, read through this tutorial: http://www.w3schools.com/js/js_intro.asp. You can't be talking of writing a function if you don't even know what a function is.

Generally, I will be willing to help if you've invested some time in truly learning on your own.

Those said: the syntax for writing a JavaScript function is:

function functionName() {
//do stuff here
}

In your case, it'll be:
function textBox1_onBlur(){
//do stuff here
}

That syntax you have is for VBScript, they are two completely different language. So again, learn JavaScript fundamentals, then I can help from there.
ProgrammingRe: Convert Existing Website To Phone App? by delomos(m): 3:21pm On May 30, 2012
ekt_bear: I don't have the time (or interest, really) to learn it...I'll hire it out.
Yes, you can, but just to let you know, JS is a must-have toolkit in any modern dev'er box -- so even if not now, you might be forced to later. And quite frankly, dev'ing for mobile is getting more exciting by the day.

So while you can source it out, it might be nice to understand your deliverable expectations.
ProgrammingRe: Convert Existing Website To Phone App? by delomos(m): 5:11am On May 30, 2012
#2 is easier, #1 feels more native and much more flexible

Both might require some JS-fu skills, but I think the investment in #1 is worth the learning (at least browse through their respective docs).
Tech JobsNeeding Beta Testers... (iphone/andriod/blackberry) by delomos(op): 5:02am On May 30, 2012
Not super fancy, if you have an iPhone or Andriod, I'm looking for private beta-ers to answer a few questionnaire and give feedback on an app (see attached)

1. Own a BB/Andriod/iPhone
2. Have reasonable access to mobile internet
3. Be fun -- and be ready to use an unfinished product.

This app is kinda niche (it's for logging ourdoor adventure)

ProgrammingRe: Convert Existing Website To Phone App? by delomos(m): 4:22am On May 30, 2012
If you're app has a solid seperation of front & back-end, you can (which is what most folks do):

1. Write a JS/CSS (HTML5) version using one of the many frameworks (JQ Mobile, Sancha Touch 2, etc) and, well, that might do it. If you want to go the extra mile, you can PhoneGap it and make it native.
OR
2. If all you care about is having your app accessible in mobile, add media queries to your stylesheet (look at SASS/Compass, or, if you're using a CSS frameworks like 960.gs, you can try the Impact.js) that adapts your site to any screen, PC or Mobile.
ProgrammingRe: Error With XHTML Markup by delomos(m): 8:28pm On May 29, 2012
jt2010: Bros,


Please i have come again with my problem. I need help or direction on what to do concerning this answer.

You have a server-side script that cannot handle any ampersands (&wink in the form data. Write a function that converts all ampersands in a form field to “ and “ when the field loses focus (onblur).


This is what i have done so far.

<html>

<head>
script type="text/javascript">
Function TextBox1_OnBlur()
document.all("TextBox1"wink.value = Replace(document.all("TextBox1"wink.value,"&","and"wink
End Function
</script>
</head>
<body>
<input type="Text" name="TextBox1">
</body>
</html>
This isn't an HTML question per se and I'm guessing you want to do this in JavaScript.

1. Paste your code (the above) on http://jsfiddle.net/ (and run it and see if you can see what the problem is).
2. You still have issues, open a new thread and post your question there with the respective jsfiddle link.

Cheers.
ProgrammingRe: Having Consistent Headaches Because Of Programming by delomos(m): 12:23pm On May 27, 2012
Ajax1211: Ive being designing websites about three years now, Early this year i decided to learn php, java & oracle so ive being spending alot of time with my laptop, sometimes 8 hours in a day. Recently i started having head aches and my doctor friend told me that the reason was because of the rays from my laptop & that if i dont reduce the time i spend with my laptop, i wuld have problems with my sight. Then i said to myself, i know some nairaland guys that has being writing codes for more than ten years now how come they dont have problems with their sight. Guess i could use some advise from you guys, How do you become a programmer without having eye problems?
Umm, interesting, there is something called "occupational hazard".

A runner who gets a sprain from running wouldn't really say: "Ok, that's it, I can't do this anymore" -- well, he can't really become a runner. Or, a fellow, trying to learn to play the guitar and after a few strumming, he say: "damn, my fingers are swollen and sore, I guess guitar is not for me." And truly, it's not, some things are rights-of-passage.

Anything, requires some "cross" to carry, maybe a little eye-strain here and there, maybe a little (or lots of) boredom, maybe a little insanity, maybe a little (or lots of) Soliloquy (http://en.wikipedia.org/wiki/Soliloquy). If one is passionate about something, this are in fact motivators.

That said, if the monitor bothers you, and you think programming is for you, some advice:
1. Get a sunglasses
2. Take short breaks in between, give your eyes a break, stare at something else for like 5 mins (sometimes I use pomodoro > http://www.pomodorotechnique.com/, 5 minutes break after 25/30 minutes)
3. Enjoy what you do.
ProgrammingRe: Need Help/collaborators On Occupy9ja.com by delomos(op): 12:10pm On May 27, 2012
Fayimora: Am done with exams.. Wassup here?
I've decided I'm sticking with PHP & Friends, RoR is not a worthwhile shift, if you don't want to do the back-end, want to add some sugar to the front-end?
ProgrammingRe: Insert Image Into Mysql by delomos(m): 12:08pm On May 27, 2012
leastpay: D question now is how do reference an image uploaded to a file in mysql db using php
There are a few ways to do it, PHP has a bunch of built-in function for dealing with system files (where your image would sit), read through this PHP Man section and Google around to see how the problem is approached (and quite frankly, you will be re-inventing a wheel trying to write this vanilla) :: http://www.php.net/manual/en/function.file.php

(this assume the upload is from a verified user on your app)
The general idea is, upload the file and check it's something you expect, prepend or added unique filename to the path (store that to the DB), and it's be referenced in the app per user, somethings like /home/wwwroot/images/[username]/local/[somerandomSHA].jpg < (this sits in the DB)

So your DB srtucture would look something like:

[User] -- has many --> [Images]

[Images Table] : user_id (FK) | image_name | image_ref

user_id: this is a foreign that attaches to the repective User
image_name: the name the user gives their stuff
image_ref: the real path it sit on the DB

AS you can see, that approach is a lot more flexible, takes some wrapping head around, but it's the common pattern.
ProgrammingRe: Insert Image Into Mysql by delomos(m): 12:13am On May 26, 2012
ekt_bear: Eh. mySQL if I remember correctly has the BLOB data type. So presumably sql DBs are capable of handling binary data of some sort.
I do agree to your point, it can handle images. The issue is, it doesn't scale upwards well.

Imagine have to store people's uploads in your DB, and then retrieve several of them. When your app gets popular, you'r DB will lockup soon or later (not to mention having a huge DB), it's very doable, but expensive. An efficient manner is (which is the accepted standard), store the image in a file sys, and have a reference to it in the DB.
ProgrammingRe: Insert Image Into Mysql by delomos(m): 9:54pm On May 25, 2012
ekt_bear: why? what difference does it make? slight speed difference?
It makes a lot of different, if it's a small site, mehh, but the large it gets, it takes a toll on READing and Writing, not to mention you can't index, or trigger, etc and it's just bad, bad, DB design.
ProgrammingRe: . by delomos(m): 10:09pm On May 24, 2012
ProgrammingRe: How Do I Convert Photo To Html Code ? by delomos(m): 4:03pm On May 24, 2012
csharpjava: I'm not kidding. See this link that does it for you online http://www.patternmedia.com/projects/image_to_html_converter
I stand correct, my apologies @OP ^^ pretty much answers the question.

Aside academia, I'm really not sure the practicum for this, @OP, what are you using it for?
Tech JobsRe: Help Help Help!!! by delomos(m): 2:28pm On May 22, 2012
etchel: I need the raw file of "Aweber" and also ebooks on OS development. Urgenly pls. Thanks
"OS" as-in Operating System or you mean "iOS[X]" (as in Apple's Operating Systems)?
ProgrammingRe: Commenting System by delomos(m): 11:56pm On May 19, 2012
What is your database schema like?
ProgrammingRe: Html Before Php??advice by delomos(m): 9:44pm On May 18, 2012
Yes.
ProgrammingRe: Please Don't Learn To Code by delomos(op): 1:36pm On May 18, 2012
ayox2003: Lovely article you got there.
As a young engineer in the field of telecoms, I've got some problems that requires programming skills, what programming language would you recommended that I learn? Plus, I would love to do some programming during my "free-time".
Thanks.

ProgrammingRe: Code For Contact Form...help by delomos(m): 1:21pm On May 17, 2012
It's probably going to pay off for you to do as:
ogzille: www.whathaveyoutried.com
Calling a single random person to help solve the problem might be myopic.
ProgrammingRe: Need A Beginner's Zend Framework Tutorial by delomos(m): 1:19pm On May 17, 2012
pc guru: no way, the only way i know is re-writing it to Yii, besides the most changes will be your Classes since they almost have similar convention anyway.
^^ In addition to this, you might also want to reverse engineer your Zend DB; if you're DB is well-designed, use that as the basis to generate Models through "Gii", write a fat model based on your Zend app's logic, then proceed as @pc_guru described.
ProgrammingRe: Javascript Problems by delomos(m): 6:19pm On May 16, 2012
jt2010: the Website you provide for uploading is not loading, please check

But i have upload the file to this site:

https://gist.github.com/2711460

I just want your expert advise base on the question and what i have come up with.
I've outlined how to approach the problem here: http://jsbin.com/utibuq/2/edit (read the comments)
ProgrammingRe: Error With XHTML Markup by delomos(m): 6:01pm On May 16, 2012
jt2010: Bros,

Sorry to bother you again with this request.

Did you have a template of xhtml that can be use to develop a website. I just need some to look and gain concepts. I need to work on a class website project.
A Google search gave this, which looks good: http://designmodo.com/xhtml-css-templates/ . And I'm sure googling on your part can yield more.
ProgrammingPlease Don't Learn To Code by delomos(op): 3:16pm On May 16, 2012
One of my favs, Jeff Atwood (co-founder of StackOverflow) wrote a super interesting article yesterday about the "learn-to-code hype" which hit a lot of chords, consdiering there are many "places" popping up here and there promising to turn you into a programming guru in a month or two or a few months, urrggg.

It turns out that research has it to be proficient at anything, you need to have invest 10,000 hours doing it. Being good at programming, or music or anything in life meets the same principle it turns out programming is quite boring and lonely, having a passion to invest 10,000 hrs in it demands passion, real passion, not just a fad thing --

And here is an excerpt from JA (read the full here: http://www.codinghorror.com/blog/2012/05/please-dont-learn-to-code.html)

*****
The "everyone should learn to code" movement isn't just wrong because it falsely equates coding with essential life skills like reading, writing, and math. I wish. It is wrong in so many other ways.

It assumes that more code in the world is an inherently desirable thing. In my thirty year career as a programmer, I have found this … not to be the case. Should you learn to write code? No, I can't get behind that. You should be learning to write as little code as possible. Ideally none.

It assumes that coding is the goal. Software developers tend to be software addicts who think their job is to write code. But it's not. Their job is to solve problems. Don't celebrate the creation of code, celebrate the creation of solutions. We have way too many coders addicted to doing just one more line of code already.

It puts the method before the problem. Before you go rushing out to learn to code, figure out what your problem actually is. Do you even have a problem? Can you explain it to others in a way they can understand? Have you researched the problem, and its possible solutions, deeply? Does coding solve that problem? Are you sure?

It assumes that adding naive, novice, not-even-sure-they-like-this-whole-programming-thing coders to the workforce is a net positive for the world. I guess that's true if you consider that one bad programmer can easily create two new jobs a year. And for that matter, most people who already call themselves programmers can't even code, so please pardon my skepticism of the sentiment that "everyone can learn to code".

It implies that there's a thin, easily permeable membrane between learning to program and getting paid to program professionally. Just look at these new programmers who got offered jobs at an average salary of $79k/year(N11.1M) after attending a mere two and a half month bootcamp! Maybe you too can teach yourself Perl in 24 hours! While I love that programming is an egalitarian field where degrees and certifications are irrelevant in the face of experience, you still gotta put in your ten thousand hours like the rest of us.

**********
ProgrammingRe: Javascript Problems by delomos(m): 3:03pm On May 16, 2012
jt2010: Hi guys,

We were given the following assignment in school and am a new biz to programming or coding.


Develop a JavaScript program that will determine the gross pay for each of the three employees. The company pays “straight time” for the first 40 hours worked by each employee and pays “time and a half” for all hours worked in excess of 40 hours. You are given a list of the employees of the company, the number of hours each employee worked last week and the hourly rate of each employee. Your program should input this information for each employee, determine the employee’s gross pay and output XHTML text that displays the employee’s gross pay. Use prompt dialogs to input the data.

This is what i have been able to come up with and i believe i need need help and guidance from the pros in the house on this.

<html>
<head>
<title>Hours worked for employees</title>
</head>
<body>
<h1>hours worked</h1>
<script type="text/javascript">




var name = prompt( 'Enter Name:', '');
var straightimeworked = 40;
var overtimehours = 10;

var hourlywage = '8.25';
var answer = straightimeworked + overtimehours + hourlywage;



for(var i=0; i<straightimeworked.length; i++) {
num = parseInt( prompt( 'how many of item '+(i+1),'0'));
if(!isNaN(num)) accumulator += items[i]*num;
}
{
num = parseInt( prompt( 'how many regular hours worked this week '+(i+1),'0'));
num = parseInt( prompt( 'how many overtime hours worked this week '+(i+1),'0'));
document.write('The gross pay of employee "answer" is: ' + answer + '<br />');
}
</script>
</body>
</html>
^^^ Paste this code on www.jsfiddle.com (put it in the "javascript" box) and see if you can figure out what the issue is, and then we can go from there (then you can ask a specific question).
ProgrammingRe: Error With XHTML Markup by delomos(m): 2:57pm On May 16, 2012
jt2010: Bros,

Many thanks, I guess i understand the question now and i have give it a try and here is my markup on it.

<?xml version="1.0" encoding="windows-1252"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- Created on: 5/16/2012 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>CSS1</title>
<style type="text/css">
.css1
{
font-size: 1.5em;
color: red;
background: white;
}
</style>
</head>
<body>
<p class="css1">
write a css rule that makes all text 1.5 times larger than the base font of the systemand colors the text red...
</p>
</body>
</html>
^^ There you go smiley
ProgrammingRe: Error With XHTML Markup by delomos(m): 5:11pm On May 15, 2012
use

<tfoot>
<tr>
<td></td>
</tr>
</tfoot>
for the footer of the table it's optional, but the syntax is often the same.

jt2010: Write a CSS rule that makes all gtext 1.5 times larger than the base font of the system and colors the text red.
Paste the HTML you're referring to on http://jsbin.com/#html,live
ProgrammingRe: Error With XHTML Markup by delomos(m): 2:01pm On May 15, 2012
jt2010: Hi,
I also have a complex table to do, i have done it but got error during validation of the markup. I have upload the markup here for you to help correct.

I seriously do not have an idea of what to do, please help explain better.
For a valid table, you need the following elements (with thier respective opening and closing tags HTML fashion):

<table> <-- this indicates the start of the table (then later closed with </table>wink
<thead> <-- this indicates that the section will be in the table's head
<tbody> <-- the body of the table
<tr> <-- A row in the table
<td> (or <th> if it's in a <thead>wink <-- this indicates a table data within a table row (tr), so to put it together you have something like:


<table>

<thead>
<tr>
<th> this is the first cell in the head </th>
<th> this is the second cell in the head </th>
</tr>
</thead>

<tbody>
<tr>
<td>first row, first cell</td>
</tr>

<tr>
<td>second row, first cell</td
</tr>
</tbody>

</table>


see another variation on the table thing here, play with it, see the results and the idea will sink in, then you'd see the issues with your own table : http://jsbin.com/ovuqix/2/edit
ProgrammingRe: Wordpress Giving Me Hard Time by delomos(m): 11:10am On May 15, 2012
9japipper: I am having a real hard time integrating a good member management system on my WordPress blog and also the mail function seem not to be working too.
am not too proficient with WP so any help i can get would be highly appreciated.

thanks
What exactly is the problem, are you getting an error message? From the plugin or WP itself? Post the message you're getting and/or screenshots. The more specific you are, the better help you get. And of course, there is always google.com
ProgrammingRe: Error With XHTML Markup by delomos(m): 1:47pm On May 14, 2012
jt2010: Bros,

I have uploaded it here.

https://gist.github.com/2692648

Seriously, i have no idea of what to do, please help
Paste the full mark-up (the whole thing) on jsbin.com.
ProgrammingRe: Need A Beginner's Zend Framework Tutorial by delomos(m): 1:44pm On May 14, 2012
If you're open to other options on frameworks, you should take a look at FuelPHP, Yii or Kohana, they each have a lower learning curve and significantly snippier than Zend (Kohana being my #1 choice for reasons I stated here: https://www.nairaland.com/935775/best-php-framework-application-development). That said, there is a great start on Zend here: http://www.1stwebdesigner.com/tutorials/zend-framework-first-steps/

1 2 3 4 5 6 7 8 9 10 (of 12 pages)