26282 total geeks with 3498 solutions
Recent challengers:
 Welcome, you are an anonymous user! [register] [login] Get a yourname@osix.net email address 

Articles

GEEK

User's box
Username:
Password:

Forgot password?
New account

Shoutbox
MaxMouse
It's Friday... That's good enough for me!
CodeX
non stop lolz here but thats soon to end thanks to uni, surely the rest of the world is going good?
stabat
how things are going guys? Here... boring...
CodeX
I must be going wrong on the password lengths then, as long as it was done on ECB
MaxMouse
lol... the key is in hex (MD5: of the string "doit" without the "'s) and is in lower case. Maybe i should have submitted this as a challenge!

Donate
Donate and help us fund new challenges
Donate!
Due Date: May 31
May Goal: $40.00
Gross: $0.00
Net Balance: $0.00
Left to go: $40.00
Contributors


News Feeds
The Register
Indian "attacks"
Norwegian telco to
get at Pakistan,
China
Robots roll to make
GPS
millimetre-perfect
Dell"s
PC-on-a-stick
landing in July:
report
Global perils of
dirt, glaciers and
lizardocalypse
overblown, say
boffins
Infosys vows to
fight Indian tax
claim
Blogger better be a
billionaire, says
"open access"
publisher lawsuit
Computer use
irrelevant to
education outcomes,
says US study
Chocolate Factory
chucks out Checkout
AT&T to relax
restrictions on
FaceTime, video
chat
China breaks
ceasefire, restarts
hacking US
government
Slashdot
Latvian Police Raid
Teacher"s Home for
Uploading $4.00
Textbook
EFF Resumes
Accepting Bitcoin
Donations After Two
Year Hiatus
Google Drops XMPP
Support
Motion To Delay
Sanctions Against
Prenda Lawyers
Denied
NSA Data Center the
Focus of Tax
Controversy
Viruses In Mucus
Protect From
Infection
Reporters
Threatened, Labeled
Hackers For Finding
Security Hole
Judges Debate
Patents and If New
Software Makes a
Computer a "New
Machine"
Steve Jackson Shows
Off the Texas Brick
Railroad (Video)
Book Review: Locked
Down: Information
Security For
Lawyers
View Blog
Miscellaneous
by Gisterogue on Sat 20th Dec 4am



so you want snow, but you want it to stay hot... don't get me wrong, but some people just want everything. That's like wanting a girlfriend who has a p3n0r..?
Miscellaneous blogs Gisterogue's blog
Comments:
<none>
Anonymously add a comment: (or register here)
(registration is really fast and we send you no spam)

Related Blogs


First one by Action on Tue 12th Jan 10pm

Yaw, this is the first blog post, just to begin with something. Nice site
here, cool features like OSIDrive, and so on. However, strange that an
"OpenSource Institute" uses non-OpenSource softare to host its
site (Windows and IIS). It's not correct... I thought, they use Linux.
Action's blog

A Daily Profanity at dailyprofanity.com by bb on Mon 21st Dec 11am

For anyone who likes viz, and roger mellies profanisaurus.

There's a website called href="'http://dailyprofanity.com'">amusing daily profanity which dishes
up a humorous profanity every day via rss, twitter email and a few other
ways.

Rather rude words, but very funny in my opinion, although it might just be
a .uk thing!
bb's blog

Blog entry for Wed 25th Nov 7pm by hambone on Wed 25th Nov 7pm

wtf i can't do geek 12. I don't know what to do. i want to kill myself
becuz of this
hambone's blog

Blog entry for Mon 9th Nov 4am by haziman on Mon 9th Nov 4am

for all geekos out there...
haziman's blog

fuck you all!!!!!!!! by echmil on Sat 7th Nov 11pm

jag har tjock med tyngate tråkigt-.-
echmil's blog

Blog entry for Tue 5th May 6am by goldie on Tue 5th May 6am

import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
import java.io.*;
import java.util.Properties;
public class SENDMAIL
{


public void sendMail(String mailServer, String from, String to,
String subject, String messageBody,
String[] attachments) throws
MessagingException, AddressException
{
// Setup mail server
Properties props = System.getProperties();
props.put("mail.smtp.host", mailServer);

// Get a mail session
Session session = Session.getDefaultInstance(props, null);

// Define a new mail message
Message message = new MimeMessage(session);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO, new
InternetAddress(to));
message.setSubject(subject);

// Create a message part to represent the body text
BodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setText(messageBody);

//use a MimeMultipart as we need to handle the file attachments
Multipart multipart = new MimeMultipart();

//add the message body to the mime message
multipart.addBodyPart(messageBodyPart);

// add any file attachments to the message
addAtachments(attachments, multipart);

// Put all message parts in the message
message.setContent(multipart);

// Send the message
Transport.send(message);


}

protected void addAtachments(String[] attachments, Multipart
multipart)
throws MessagingException, AddressException
{
for(int i = 0; i<= attachments.length -1; i++)
{
String filename = attachments[i];
MimeBodyPart attachmentBodyPart = new MimeBodyPart();

//use a JAF FileDataSource as it does MIME type detection
DataSource source = new FileDataSource(filename);
attachmentBodyPart.setDataHandler(new DataHandler(source));

//assume that the filename you want to send is the same as the

//actual file name - could alter this to remove the file path

attachmentBodyPart.setFileName(filename);

//add the attachment
multipart.addBodyPart(attachmentBodyPart);
}
}

public static void main(String[] args)
{
try
{
SENDMAIL MAIL = new SENDMAIL();
String server="pop3.gmail.com";
String from="username@gmail.com";
String to = "other user href="mailto:name@gmail.com">name@gmail.com";
String subject="Test";
String message="Testing";
String[] filenames =
{"c:/somefile.txt"};

MAIL.sendMail(server,from,to,subject,message,filenames);
}
catch(Exception e)
{
e.printStackTrace(System.out);
}

}
}
i want to send mail using this code but i getting exception like this.
avax.mail.MessagingException: Unknown SMTP host: pop3.gmail.com;
nested exception is:
java.net.UnknownHostException: pop3.gmail.com
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1543)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:453)

at javax.mail.Service.connect(Service.java:291)
at javax.mail.Service.connect(Service.java:172)
at javax.mail.Service.connect(Service.java:121)
at javax.mail.Transport.send0(Transport.java:190)
at javax.mail.Transport.send(Transport.java:120)
at SENDMAIL.sendMail(SENDMAIL.java:46)
at SENDMAIL.main(SENDMAIL.java:85)
Caused by: java.net.UnknownHostException: pop3.gmail.com
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:507)
at java.net.Socket.connect(Socket.java:457)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:267)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:227)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1511)
... 8 more
i have taken code from this siite only plz suggest me how to remove this
exception.
thanks in advance.
goldie's blog

Bubble Graph by bb on Wed 11th Mar 12pm

I love this graph

href="http://www.osix.net:80/modules/folder/index.php?tid=28125&action=
vf">bubble graph


src="http://www.osix.net:80/modules/folder/index.php?tid=28125&action=v
f" border="0" />
bb's blog

My online resume! by ketan404 on Mon 9th Mar 8am

It is here
href="http://www.listoffreelancers.com/profiles/ketankulkarni">http://www.l
istoffreelancers.com/profiles/ketankulkarni


Simple and clean design. I like this website.

Ketan
ketan404's blog

Blog entry for Sun 8th Mar 3pm by macrocat on Sun 8th Mar 3pm

Another site with some challenges. Basically, I'm linking this to get a
measly five points ;O.

Hellbound
Hackers
macrocat's blog

Parapsychology - Fri 19th Dec 5am by Nightscript on Fri 19th Dec 5am

Yes i'm crazy but heres what ive been thinking about and it seems more
reasonable that a lot of reality. Note that this ties into
parapsychology/psychokinesis research.

Mind is not over matter. Thats the wrong state of thinking for sure.

Look, this is how i think i see it now, im enlightened or ignorant but such
is the world. Every time.

The thing ive come across is that when we think it is Mind over matter we
are convinced that we can directly influence an object or anything else.
Thats because we figure that our Mind is stronger than anything we might
put it up against. On a previous article i've written, I said that we would
need to find out where the Mind interacts with our brain in order to
initiate action.

ok gang here comes.

Its true what i said earlier..our Mind is most definitely NOT [over]
matter. And since we dont really have any method scientifically to find the
Mind itself can we not say that Mind IS matter? Yes we can, because if you
will also think back to my discussion of Mind and conciousness, i said that
we each exist in Our world and that everything can seemingly be based
around us. Though most folks interact to some degree with things that will
never have anything to do with them, the world I speak of is the one you
live in, walk and talk through each day. So our Mind is everything that our
world or our personal universe is made of. Mind is Matter.

With the fact or idea (whichever you prefer) that Mind is Matter, (not the
literal sense, like..grey matter...idiot.) um with that idea...we have a
seeming location of the Mind. We can say my mind is located in everything
around me, it makes up every aspect of the world I personally live in, and
my thoughts, my reactions, anything that must be initiated by energy from
my Mind comes from my environment and surrounding things. Everything I see,
everything I interact with from day to day, everything I come into any form
of contact with contributes to my Mind because it will flow through
thought. Therefore, once again, Mind is matter. Mind is composed of my
personal world.

We have a location for Mind now people. Now where oh where would we
consider an interaction point for the energies of Mind to be converted into
reactions and movements? Our body itself MUST be the interaction point of
Mind. Not only is it our brain, but since a stimulus has to occur to our
body, (message then goes to brain to create an effect on our senses) it has
to be our whole body. Our brain only tells us where the message is coming
from and it also does things like reflex...Go ahead and think of your brain
as being solely responsible for involuntary action. Mind guides our actions
through thought. The initial energy that is put into actions with any form
of thought behind it (this means exclude reflex) lets us see rather
plainly, or not if youre blind, that Mind is connected to the world through
our body.

So we know where we can possibly find our Mind, and we know now that its
connected to the corporeal world through our body. When we commit action
with the Mind, such as the entire goal of my research happens to be, we are
basically forced to use our body to carry it out. This is a plain fact of
life. So now the only thing that remains to be discovered is the way or
method to take our Mind's interaction with the body and move it directly to
what we wish to influence. To take the energy that we can call thought or
want to...and instead of having to use any tools..such as our body...use
the raw energy directly.

With the discovery (of sorts) of where Mind is, and where the interaction
point is...we can move to the final step and are well on the way to
experimentation.

Now I'd like to revisit something from earlier and maybe (expect recovering
of some areas) elaborate on a couple things.. First. I have a suspicion
that our brain is responsible for nothing more than involuntary actions.
Hear me out guys. Nothing you do is voluntary by the body. Which means all
of your muscles that move when you decide for them to move...are being
forced to. Involuntary action, on their part..because you want it to
happen.

I know that seems a little bit hard to grasp but here goes: You as a person
are not held within your brain. Your Mind holds your personality and all
your traits/flaws. So its partially safe to say that upon removal of Mind
from the body..that the body cannot be called - You. right? Since your Mind
exists in all things that make up your personal world, we can go deeper
insomuch as to say that it is, in fact, not part of the body. Which also
explains the need for an interaction point (the body) to the world. Are we
all still on the same page here?

So every interaction that begins in the Mind...which is anything
non-reflexive or voluntary...forces the body to commit what the action
dictates. If you wish to go running, then the action is initiated in the
Mind. "I THINK I'll go for a run." As you run the corporeal body
will fatigue and want to stop...but you press on for the sake of exercise,
you force the body to continue through willpower/thought. Tell me how the
brain is involved in that in any voluntary action?

The only thing it has done in this (or most any) instance is send the
signals to tell the muscles how to do the action you want. Running is
created in a sort of chain reaction. You spark the idea with Mind. The
energy is carried to the tools (brain), which, in turn signals secondary
tools (muscles) to begin working. Do you still understand?

Comments (helpful ones) are welcome. Ill add more to this later on.
-NS
Nightscript's blog

About Me
n:Gisterogue (Leonard Challis)
l:Hull, England
o:Web Applications Developer
View my Profile

Gisterogue's Slides

Gisterogue's Files

Recent Blogs
hmm... don't
start blamin
Sun 21st Dec 8pm
Trade your bike
for a sle
Sat 20th Dec 12pm
so you want
snow, but you
Sat 20th Dec 4am
Aparently its
going to sn
Sat 20th Dec 2am

Link To Me
My Rss Feed
My Blog
My Articles
My Profile


 

     
Your Ad Here
 
Copyright Open Source Institute, 2006