Installing greenfoot on raspberry pi 2

I have done some research on installing the new version of greenfoot which is 3.0 on raspberry pi 2, but it those not seem to load and it freezes the raspberry pi so I did some trouble shooting this is not about the j2me(java) not installed, I tried it without the j2me(java) and it worked, well what I discovered is that greenfoot 3.0 those not work on raspberry pi even though it is upgraded to debian jessie, so I tried installing the older versions  Here  and it works, and I think it’s same with the new update so just try it out, if you want to install it you download the one with the extention .deb, after you download that you go to menu and search for the lxterminal, you type in this command,

cd Downloads <if it is not in downloads you search the folder where it is downloaded>

sudo dpkg -i <the file name.deb>

A FRIEND

friends-holding-hands-images-HOLDING-HANDS

what is the meaning of a friend? oxford dictionary define friend as “A person with whom one has a bond of mutual affection, typically one exclusive of sexual or family relations”. I have so many people i talk to but i know those i call my friend, i don’t just call you a friend because i talk to you but there should be a good quality you posses, i call it value. Albert Einstein said “Try not to be a man of success but rather a man of value”, if you add value to your friends life you will see the outcome your self am talking about good values, I hang out with friends that add good things. i will make reference to some of the  my friend i will start with a very good friend DRKeem he has help me a lot i terms of maths when i was in high school he solved problems for me. Joerex has helped me in terms of programming,web design and so many other things in my life. they are more than two though. So they  have added something to my life which i call value.
Also a true friends cares about your well being and will never leave you in any situation, a true friend will solve it with you i will make reference to psychology today. So if you know your friend don’t have some quality you don’t like just walk up to him or her that’s what a true friend those, so be a true friend with a good friend And enjoy your time with a good friend.

9 TOP DREADED DENTAL ISSUES AND THEIR CORRECTIONS

My friend is a doctor so i will be reblogging some of his blog 😀

drkeem medicals

tik-dental-problemsGet-Rid-of-Oral-Problems-Immediately-For-Emergency-Dental-CareDental problems are never any fun, but the good news is that most of them can be easily prevented. Brushing twice a day, flossing daily, eating properly and regular dental check ups are essential in preventing dental problems. Educating yourself about common dental problems and their causes can also go a long way in prevention.

1.  Bad Breath

If you suffer from bad breath, you are not alone. Bad breath, also called halitosis, can be downright embarrassing. According to dental studies, about 85% of people with persistentbad breath have a dental condition that is to blame. Gum disease, cavities, oral cancer,dry mouth and bacteria on the tongue are some of the dental problems that can cause bad breath. Using mouthwash to cover up bad breath when a dental problem is present will only mask the odor and not cure it. If you suffer from chronic bad breath, visit

View original post 767 more words

They Will Lead Tomorrow

children
The leaders of tomorrow  i am always happy when i am with them they are very sweet and loving, i was opportuned to attend a competition as the assistant facilitator, it was a competition for students in the high school, they where from the age range of 10-12 years old. The competition was a three days workshop programme, two days for lectures on scratch programming and the third day was for the competition and i also acted as one of the judges, i studied all the children in the competition and i saw how curious and eager they where to learn new things, they are really smart.I wish i learnt how to code when i was a lot much younger. i was happy to see talk to them and make friends with them.

download

Where i am heading to is that children are the tomorrow people they will lead the world in terms of politics, science, art, innovation, technology, and so many other things. So encourage your child from the youngest age and help him or her in every ways you can don’t look down on them be strong and live happy, and see your child doing wonderful and awesome thing in life.
Quote:“I continue to believe that if children are given the necessary tools to succeed, they will succeed beyond their wildest dreams!” by David Vitter.
thanks for reading

the journey

the journey
life is a journey ,either for the good and the bad, and for the young and old , the journey never seems to stop , but it stop when you die but have you ever sit down and ask yourself where am i know? or where am going heading to ? or have you thought of how you will get there , so many of us have dreams and visions to be something great in life, for example , a great actor, a great physicsis,a great programmer, a great accountant and so on whit what you want to be in life.
we are all human beings made in the image and likeness of God, but we are still afraid for the future or what the future holds. the scriptures says in matthew 6:34 “So do not worry about tomorrow; for tomorrow will care for itself. Each day has enough trouble of its own. we maybe afraid because of how we have seen life or how life have treated us either good or bad . some of have given up saying to them selves, what kind of world is this ? or why is this happening to me ? the most common question i have seen people asking themselves is that is God sleeping? but in tell you God never sleeps he is seeing his creations and he knows how life is going.
we are humans we are bound to see things in that way and manner even though God approves it, Some of us get to a stage in life and they say “i give up” or “i quit” and may commit suicide

Do not let life push you hard just be yourself, and have this three key elements in mind , Faith, Hope and Love they will help you in the journey of life and don’t think God is not hearing your cry, he knows all your needs just sit thight and hope because he will answer you at the perfect time

Alice programming

alice

alice is an innovative 3D programming environment that makes it easy to create an animation for telling a story, playing an interactive game, or a video to share on the web. Alice is a freely available teaching tool designed to be a student’s first exposure to object-oriented programming. It allows students to learn fundamental programming concepts in the context of creating animated movies and simple video games. In Alice, 3-D objects (e.g., people, animals, and vehicles) populate a virtual world and students create a program to animate the objects.

In Alice’s interactive interface, students drag and drop graphic tiles to create a program, where the instructions correspond to standard statements in a production oriented programming language, such as Java, C++, and C#. Alice allows students to immediately see how their animation programs run, enabling them to easily understand the relationship between the programming statements and the behavior of objects in their animation. By manipulating the objects in their virtual world, students gain experience with all the programming constructs typically taught in an introductory programming course.

 

BRING YOUR FORMS UP TO DATE WITH CSS3 AND HTML5 VALIDATION

Let’s look at how to create a functional form which validates users’ data, client-side. With that done, we’ll cover prettying it up using CSS, including some CSS3!

First we want to conceptualize what our form is going to look like and how it is going to function. For this example, let’s create a simple contact form that asks for the following information from the user:

  • Name
  • Email
  • Website
  • Message

We want to make sure the user is entering the information correctly. To accomplish this, we will use HTML5’s new client-side validation techniques. What about users who don’t have HTML5 capabilities? You can simply use server-side validation, but that will be beyond the scope of this article.

Let’s get an idea of what we want our form to look like by creating a rough mockup.

As you can see, the following elements make up our form:

  • Form Title Required fields notification
  • Form labels
  • Form inputs Placeholder text
  • Form field hints
  • Submit Button

Now that we’ve specified which elements make up our form, we can create the HTML markup.

Let’s create our basic HTML markup from the form concept we created.

01
02
03
04
05
06
07
08
09
10
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>HTML5 Contact Form</title>
    <link rel="stylesheet" media="screen"href="styles.css" >
</head>
<body>
</body>
</html>

Up to this point, our HTML file will still appear blank in the browser. This is simply starter code for an HTML5 page.

Let’s create the HTML form (we’ll leave the action method blank for now, since server-side validation will not be covered in this tutorial):

1
2
<form class="contact_form" action=""method="post" name="contact_form">
</form>

To keep our form content organized and structured, we’ll wrap our form elements (labelinput, etc) in a list. So let’s start by creating the form header and our first input element:

01
02
03
04
05
06
07
08
09
10
<ul>
    <li>
         <h2>Contact Us</h2>
         <span class="required_notification">* Denotes Required Field</span>
    </li>
    <li>
        <label for="name">Name:</label>
        <input type="text" name="name" />
    </li>
</ul>

As seen in our mockup, we’re going to have formatting hints for the “email” and “website” fields. So we’ll add our hints under the input fields where necessary, and give them a class so we can style them later.

1
2
3
4
5
<li>
    <label for="email">Email:</label>
    <input type="text" name="email" />
    <span class="form_hint">Proper format "name@something.com"</span>
</li>

Let’s go ahead and create our remaining form elements, remembering to wrap each section in a list item.

01
02
03
04
05
06
07
08
09
10
11
12
<li>
    <label for="website">Website:</label>
    <input type="text" name="website" />
    <span class="form_hint">Proper format "http://someaddress.com"</span>
</li>
<li>
    <label for="message">Message:</label>
    <textarea name="message" cols="40" rows="6" >
</li>
<li>
    <button class="submit" type="submit">Submit Form</button>
</li>

One of the first improvements HTML5 brings to web forms (one you’re probably already familiar with) is the ability to set the placeholder text. Placeholder text is displayed when the input field is either empty or not in focus.

Let’s add the placeholder attribute to our input elements. This will help the user understand what they should enter in each field.

1
2
3
<input type="text" name="name" placeholder="John Doe" />
<input type="text" name="email"placeholder="john_doe@example.com" />
<input type="text" name="website"placeholder="http://johndoe.com/" required/>

Here’s a quick tip, if you want to style your placeholder text, there are some browser prefixes to help you:

1
2
3
4
5
6
7
:-moz-placeholder {
    color: blue;
}
::-webkit-input-placeholder {
    color: blue;
}

Support for the placeholder attribute is pretty well established in modern browsers (except IE9, sorry). If you really need to have it supported across all browsers, there are some javascript solutions you could look into.

Let’s add some basic CSS to give our form some structure. I’ll walk you through the rules:

Webkit automatically adds some styling to input elements when they are in focus. Since we’ll be adding our own styles, we want to override these defaults:

1
*:focus {outline: none;}

Let’s add some typographic styles to our form elements:

1
2
3
body {font: 14px/21px "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif;}
.contact_form h2, .contact_form label {font-family:Georgia, Times, "Times New Roman",serif;}
.form_hint, .required_notification {font-size:11px;}

Let’s style our list elements to give our form some structure:

01
02
03
04
05
06
07
08
09
10
11
12
.contact_form ul {
    width:750px;
    list-style-type:none;
    list-style-position:outside;
    margin:0px;
    padding:0px;
}
.contact_form li{
    padding:12px;
    border-bottom:1px solid #eee;
    position:relative;
}

Also, let’s add a slight border to the top and bottom sections of the form. We can accomplish this by using the :first-child and :last-child selectors. These select, as the names imply, the first and last elements in the <ul> list.

This adds some useful visual sectioning to our form. Keep in mind that these CSS selectors are not supported in older browsers. Since this is not vital to key functionality, we’re rewarding our those who use current browsers.

1
2
3
.contact_form li:first-child, .contact_form li:last-child {
    border-bottom:1px solid #777;
}

Let’s style the header section of our form. This includes the heading tag and the notification that informs users that the asterisk (*) indicates required fields.

01
02
03
04
05
06
07
08
09
10
.contact_form h2 {
    margin:0;
    display: inline;
}
.required_notification {
    color:#d45252;
    margin:5px 0 0 0;
    display:inline;
    float:right;
}

Let’s style all of our core form elements, the ones used to collect user information.

01
02
03
04
05
06
07
08
09
10
11
12
13
14
.contact_form label {
    width:150px;
    margin-top: 3px;
    display:inline-block;
    float:left;
    padding:3px;
}
.contact_form input {
    height:20px;
    width:220px;
    padding:5px 8px;
}
.contact_form textarea {padding:8px;width:300px;}
.contact_form button {margin-left:156px;}

Now, let’s add some extra visual CSS styles. Some of these are CSS3 styles that reward users who use modern browsers.

01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.contact_form input, .contact_form textarea {
    border:1px solid #aaa;
    box-shadow: 0px 0px 3px #ccc, 0 10px 15px #eeeinset;
    border-radius:2px;
}
.contact_form input:focus, .contact_form textarea:focus {
    background: #fff;
    border:1px solid #555;
    box-shadow: 0 0 3px #aaa;
}
/* Button Style */
button.submit {
    background-color: #68b12f;
    background: -webkit-gradient(linear, lefttop, left bottom, from(#68b12f), to(#50911e));
    background: -webkit-linear-gradient(top,#68b12f, #50911e);
    background: -moz-linear-gradient(top,#68b12f, #50911e);
    background: -ms-linear-gradient(top,#68b12f, #50911e);
    background: -o-linear-gradient(top,#68b12f, #50911e);
    background: linear-gradient(top, #68b12f,#50911e);
    border: 1px solid #509111;
    border-bottom: 1px solid #5b992b;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    box-shadow: inset 0 1px 0 0 #9fd574;
    -webkit-box-shadow: 0 1px 0 0 #9fd574 inset ;
    -moz-box-shadow: 0 1px 0 0 #9fd574 inset;
    -ms-box-shadow: 0 1px 0 0 #9fd574 inset;
    -o-box-shadow: 0 1px 0 0 #9fd574 inset;
    color: white;
    font-weight: bold;
    padding: 6px 20px;
    text-align: center;
    text-shadow: 0 -1px 0 #396715;
}
button.submit:hover {
    opacity:.85;
    cursor: pointer;
}
button.submit:active {
    border: 1px solid #20911e;
    box-shadow: 0 0 10px 5px #356b0b inset;
    -webkit-box-shadow:0 0 10px 5px #356b0b inset ;
    -moz-box-shadow: 0 0 10px 5px #356b0b inset;
    -ms-box-shadow: 0 0 10px 5px #356b0b inset;
    -o-box-shadow: 0 0 10px 5px #356b0b inset;
    
}

Let’s add a little bit of interactivity. We’ll make the field that is currently selected expand by adding some padding.

1
2
3
.contact_form input:focus, .contact_form textarea:focus { /* add this to the already existing style */
    padding-right:70px;
}

Now for browsers that support it, let’s make the expansion of the field a smooth transition using CSS3.

1
2
3
4
5
6
.contact_form input, .contact_form textarea {/* add this to the already existing style */
    -moz-transition: padding .25s;
    -webkit-transition: padding .25s;
    -o-transition: padding .25s;
    transition: padding .25s;
}

Now it’s time for what we’ve all been waiting for: HTML5’s form handling tools.

Adding the required attribute to any input/textarea element will tell the browser that a value is required before the form can be submitted. Thus, a form cannot be submitted if a required field has not been filled out.

So, let’s go ahead and add the required attribute to all of our form elements (because we want them all to be filled out).

1
2
3
4
<input type="text" name="name" required />
<input type="text" name="email" required />
<input type="text" name="website" required />
<textarea name="message" cols="40" rows="6"required ></textarea>

You’ll probably notice that, visually speaking, nothing happened by adding therequired attribute. We are going to style required fields using CSS. For this example, we are going to add a red asterisk as a background image in each required field. To accomplish this, we will want to first add some padding on the right side of our input where the background image will be (this will prevent text overlap if the field entry is a long string):

1
2
3
.contact_form input, .contact_form textarea {
    padding-right:30px;
}

Now we will use the CSS pseudo selector :required to target all the form elements with a required attribute. I made a simple 16×16 pixel red asterisk icon in photoshop that will serve as the visual indicator of a required field.

1
2
3
input:required, textarea:required {
    background: #fffurl(images/red_asterisk.png) no-repeat 98%center;
}

Right now, different browsers will do different things when a form using HTML5 elements is submitted. When the form is submitted, most browsers will prevent the form from being submitted and will display a “hint” to the user, marking the first field that is required and has no value. Visual styling and support for these ‘bubble fields’ is quite broad. Hopefully these behaviors will become standardized in the future.

You can see current browser support for the required attribute at quirksmode.

You can actually style the bubble message somewhat in webkit using the following:

1
2
3
::-webkit-validation-bubble-message {
    padding: 1em;
}

HTML5 validation works according to the type attribute that is set within the form fields. For years HTML only supported a handful of type attributes, such astype="text" but with HTML5 there are a over a dozen new input types includingemail and url which we are going to use in our form.

By combining our input type attributes with the new required attribute, the browser can now validate the form’s data client-side. If a user’s browser does not support the new type attributes, such as type="email", it will simply default to type="text". This is actually pretty amazing. Essentially you have backwards compatibility in all browsers on earth, hooray!

So what if the browser does actually support the new type attributes? For desktop browsers there is no visual difference (unless specified by custom CSS rules). Atype="text" field looks the same as a type="email" field. However, for mobile browsers, there is a difference when it comes to the user interface.

Apple’s iPhone detects the form types and dynamically changes the on-screen keyboard by providing context-aware characters. For example, all email addresses require the following symbols: “@” and “.” So the iPhone provides those characters when the input type is specified to email.

We already have our form fields set to the default type="text". But now we want to change the type attribute on our email and website fields to their corresponding HTML5 type.

1
2
<input type="email" name="email"placeholder="john_doe@example.com" required />
<input type="url" name="website"placeholder="http://johndoe.com" required/>

As mentioned before, HTML5 validation is based on your type attributes and it is on by default. There is no specific markup required in order to activate form validation. If you wish to turn it off, you can use the novalidate attribute like this:

1
2
3
4
<form novalidate>
    <-- do not validate this form -->
    <input type="text" />
</form>

Let’s look at our first field that asks the user for his/her name. As described eariler, we’ve added the type="text" attribute and the required attribute. This informs the web browser that this field is mandatory and it should validate the field as simply text. So as long as the user enters at least one character in that field, it will validate.

Now we will create our own CSS to style field inputs that are considered valid and invalid by the browser. If you remember, we used :required in our CSS to style all input elements with a required attribute. Now, we can style our required fields that are either valid or invalid by adding :valid or :invalid to our CSS rules.

First, let’s style fields that are invalid. For this example, we only want to style the form as invalid when it is in focus. We’ll add a red border, red shadow, and red icon created in photoshop to indicate the invalid field.

1
2
3
4
5
.contact_form input:focus:invalid, .contact_form textarea:focus:invalid { /* when a field is considered invalid by the browser */
    background: #fff url(images/invalid.png) no-repeat 98% center;
    box-shadow: 0 0 5px #d45252;
    border-color: #b03535
}

Now, let’s create the rules that indicate the field is valid. We’ll add a green border, green shadow, and greed checkmark icon made in photoshop. This will be applied to all valid fields whether they are in focus or not.

1
2
3
4
5
.contact_form input:required:valid, .contact_form textarea:required:valid { /* when a field is considered valid by the browser */
    background: #fff url(images/valid.png) no-repeat 98% center;
    box-shadow: 0 0 5px #5cd053;
    border-color: #28921f;
}

Now when you focus on a form field, the red invalid styling is shown. As soon as a single character has been entered in the field, it is validated and green CSS styles are shown to indicate that fact.

Our CSS styles and validation rules are already applied to the email field because we set the type and required attributes earlier.

Using the type="email" attribute as an example, it appears that most browsers validate that field as *@* (any character + the “@” symbol + any character). This is obviously not very limiting but it does prevent users from entering spaces or values that are entirely wrong.

In the example of the type="url" attribute, it appears as though the minimum requirement for most browsers is any character followed by a colon. So, if you entered “h:” then the field would validate. This is not extremely helpful but it does prevent users from entering irrelevant information, such as their email or home address. Now, you could handle being more specific on with your input values in your server-side validation; however, we’re going to talk about how to do that in HTML5.

The pattern attribute accepts a javascript regular expression. This expression is used, rather than the browser default, to validate the field’s value. So our HTML now looks like this:

1
<input type="url" name="website"placeholder="http://johndoe.com" requiredpattern="(http|https)://.+" />

Now our field will only accept values that start with “http://&#8221; or “https://&#8221; and one additional character. These regular expression patterns can be confusing at first, but once you take the time to learn them, your forms will be open to a whole new world.

Now let’s style our form hints that tell the user the format they should use when entering their information.

01
02
03
04
05
06
07
08
09
10
.form_hint {
    background: #d45252;
    border-radius: 3px 3px 3px 3px;
    color: white;
    margin-left:8px;
    padding: 1px 6px;
    z-index: 999; /* hints stay above all other elements */
    position: absolute; /* allows proper formatting if hint is two lines */
    display: none;
}

We set display:none because we are only going to show the hints when the user focuses on the input field. We also set our tooltips to default to our red invalid color, because they are always considered invalid until the proper information is entered in.

Now we want to add a little triangle to our hint boxes that help direct and guide the eye. This can be done using images, but in our case we are going to do it using pure CSS.

Because it is purely a presentational element that is not vital to the page’s functionality, we are going to add a small triangle that points left using the ::before pseudo selector. We can do this by using one of the unicode geometric shapes.

Normally we would use the HTML Unicode format to display these in our HTML (as shown in the image above). However, because we will be using the ::before CSS selector, we have to use the triangle’s corresponding escaped unicode when using thecontent:"" rule. Then we just use positioning to get it where we want it.

1
2
3
4
5
6
7
.form_hint::before {
    content: "\25C0"; /* left point triangle in escaped unicode */
    color:#d45252;
    position: absolute;
    top:1px;
    left:-6px;
}

Finally, we are going to use the CSS adjacent selector to show and hide our form field hints. The adjacent selector (x + y) selects the element that is immediately preceded by the former element. Since our field hints come right after our input fields in our HTML, we can use this selector to show/hide the tooltips.

1
2
3
.contact_form input:focus + .form_hint {display: inline;}
.contact_form input:required:valid + .form_hint {background: #28921f;} /* change form hint color when valid */
.contact_form input:required:valid + .form_hint::before {color:#28921f;} /* change form hint arrow color when valid */

As you can see from the CSS, we also set the form hints to change colors along with the input’s border when a field is valid or invalid.

Go ahead and take a look at your final product!

As you can see, the new HTML5 form features are pretty neat! Everything is backwards compatible so incorporating these new features into your website won’t break anything.

HTML5 validation is coming closer to replacing client-side validation in helping users properly fill out their online forms. However, HTML5 validation still does not replace server-side validation. For the time being, it’s best to use both methods when handling user-submitted information. Thanks for reading!

Battle For The Net

If you woke up tomorrow, and your internet looked like this, what would you do? Imagine all your favorite websites taking forever to load, while you get annoying notifications from your ISP suggesting you switch to one of their approved “Fast Lane” sites.Think about what we would lose: all the weird, alternative, interesting, and enlightening stuff that makes the Internet so much cooler than mainstream Cable TV. What if the only news sites you could reliably connect to were the ones that had deals with companies like Comcast and Verizon?On September 10th, just a few days before the FCC’s comment deadline, public interest organizations are issuing an open, international call for websites and internet users to unite for an “Internet Slowdown” to show the world what the web would be like if Team Cable gets their way and trashes net neutrality. Net neutrality is hard to explain, so our hope is that this action will help SHOW the world what’s really at stake if we lose the open Internet.If you’ve got a website, blog or tumblr, get the code to join the #InternetSlowdown here: https://battleforthenet.com/sept10thEveryone else, here’s a quick list of things you can do to help spread the word about the slowdown: http://tumblr.fightforthefuture.org/post/96020972118/be-a-part-of-the-great-internet-slowdown Get creative! Don’t let us tell you what to do. See you on the net September 10th!

via Battle For The Net.

Sixth sense device

I have been making research on new inventions for the future and came i across the sixth sense device, I know the name looks weird but it really works like the six sense (a brain).’Sixth Sense’ is a wearable gestural interface that augments the physical world around us with digital information and lets us use natural hand gestures to interact with that information.the research have been on since 2009, it was invented by   pranav mistry  who is a computer scientist at Samsung, and he has done some invention that’s may perform similar function like the sixth sense device, sixth sense is a device that acts like your mobile phone, it has only three main component your pocket projector that’s the mini projector, a  webcam, a mirror and a surface to place it on example: flat plank, for different color of paint on your hand or bands, And your mobile phone with a Bluetooth connection to connect to the device. So that’s the future coming crazy people with crazy ideas to change the so sit tight people cause we are on a bumpy ride to the future. i you can get more from info on sixth sense technology from here

Capture3Capture2Captureall

introduction

My name is Okeke Desmond a.k.a Trini7y, am a web developer and designer, i have a crush on web development so i love doing some crazy stuffs with web design and development. Well i just developed the spirit of blogging, from a mentor, Joseph Tommy Rex :-D, and i like sharing knowledge with people, creating stuffs, writing codes and watching movies with TV series.
3neety