My Travel Diary | Your Android Travel Diary
Document your trips....manage expenses and track your routes in a simple and easy way ....
sheepfilms
let's talk about Bridgerton tea, my ask is open

JBB: An Artblog!
Cosmic Funnies
Aqua Utopia|海の底で記憶を紡ぐ
dirt enthusiast

oozey mess
$LAYYYTER

No title available
Peter Solarz
NASA
TVSTRANGERTHINGS

Janaina Medeiros

izzy's playlists!
occasionally subtle

pixel skylines

Kiana Khansmith

blake kathryn
PUT YOUR BEARD IN MY MOUTH
Show & Tell

seen from Netherlands

seen from Malaysia
seen from Russia
seen from United States

seen from Malaysia

seen from United States
seen from United States

seen from Türkiye
seen from United States

seen from Japan
seen from Netherlands
seen from United States
seen from United States

seen from T1

seen from Türkiye

seen from United States

seen from Malaysia
seen from United States
seen from United States
seen from United States
@random-stuff-mine
My Travel Diary | Your Android Travel Diary
Document your trips....manage expenses and track your routes in a simple and easy way ....
Travel Around let users discover public content about a country from social net
Android app to let you discover recent social media content for different cities and countries
Travel Around let users discover public content about a country from social net
Discover what people are posting about your favorite cities
Travel Around let users discover public content about a country from social net
Discover #turkey #istanbul #ankara
Travel Around let users discover public content about a country from social net
Discover your favorite city or country with this app #travel #discoverworld #worldtravel #nomads #travelbug #wanderlust
y Travel Blog offers tips on how to backpack & travel round the world. Get our backpacking tips from over 10 years of backpacker and world travel.
Learn how to re-size an image in Blackberry 10 Cascades
How to change JVM for Eclipse
I have following JDKs installed 1) JDK7 64 bit 2) JDK6 64 bit 3) JDK6 32 bit Also I have multiple Eclipse installed. They run on different JVM. For example Eclipse for Blackberry runs on 32 bit JDK and Eclipse for Android runs on 64 bit JDK. You can put only one JDK to PATH in Environment variable or JAVA_HOME environment variable. To configure Eclipse to use specific JVM you have to modify configuration file for your eclipse (usually eclipse.ini). Add following lines just before the line which says “-vmargs”. -vm D:\TOOLS\Java\JDK6-32bit\bin\javaw.exe {this should be the path to your desired JDK bin\javaw.exe }
Live your dream and travel :)
Traveling solo can offer rich rewards that traveling with other people can't. To get the most from your solo trip, avoid making these 15 mistakes.
mysql extension for php deprecated in PHP5.5 . Use mysqli instead
Implement OAuth2 consumer in c# easily in a desktop app
JEE File Upload - Handling Multipart requests in Servlets 3.0
Prior to Servlets 3.0 developers have to use 3rd party libraries to process complex multipart request that is sent when file is uploaded by user. Starting from Servlets 3.0 JEE provides a better way to handle file uploads (multipart requests) without using any 3rd party library. Making your Servlet ready to handle Multipart requests All you have to do is to add @MultipartConfig annotation on your servlet class and it is ready to handle Multipart requests.
@MultipartConfig
public class FileUploadServlet extends HttpServlet {
Our example HTML form
<form method="POST" enctype="multipart/form-data"> <input type="file" name="ufile" /> <input type="submit" value="Submit" /> </form>
Handling the POST in processRequest method of Servlet
protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
Getting the uploaded file Part To extract the uploaded file we will use getPart method of HttpServletRequest. getPart method returns a part from multipart request specified by name passed as parameter to it.
Part filePart = request.getPart("ufile");
Getting file name of uploaded file Even though we have now support in servlets to handle Multipart request we have to do some extra processing to get the file name and other things from the Part. We will make a helper function that will return the filename passed from client's browser to our server in the <input type=file> object.
//Content-Disposition for uploaded file has following format //form-data; name="ufile"; filename="name.txt" private String getFileName(final Part part) { final String partHeader = part.getHeader("content-disposition"); for (String content : part.getHeader("content-disposition").split(";")) { if (content.trim().startsWith("filename")) { return content.substring( content.indexOf('=') + 1).trim().replace("\"", ""); } } return null; }
We will call the helper function like this
final String fileName = getFileName(filePart);
//we will construct the path to save the file. //Right now I am making dummy path for simplicity String filePath="D:\\"+fileName;
Reading from uploaded file Stream and writing to local file As standard in Java we will need OutputStream of file where we will store our uploaded file and InputStream for uploaded file. Part class has a method getInputStream() that returns the InputStream to read the bytes/data of that Part.
InputStream filecontent = filePart.getInputStream(); OutputStream fileOut = new FileOutputStream(new File(filePath));
Start reading from InputStream and write to OutputStream
int read = 0; final byte[] bytes = new byte[1024]; while ((read = filecontent.read(bytes,0,1024)) != -1) { out.write(bytes, 0, read); }
Closing the streams
if (out != null) { out.close(); } if (filecontent != null) { filecontent.close(); }
Truncate/Ignore time part from DateTime column in Entity Framework
There are times when you want to perform query on only date part of the column that has type DateTime in database. Entity framework does not support DateTime.Date property but provides a helper class EntityFunctions . EntityFunctions has a method TruncateTime that can be called in Linq2Entities query and truncates the time part from datetime. Here is how to use it
using (AccountEntities dal = new AccountEntities ()) { transactions = (from t in dal.Transactions where EntityFunctions.TruncateTime(t.TransactionDate.Value) >= dtStart && EntityFunctions.TruncateTime(t.TransactionDate.Value) <= dtEnd orderby t.TransactionDate descending select t).ToList<Transaction>(); }
Smallest and Fastest Nanomotor yet
A team of researchers led by Emma Fan from the University of Texas have developed the smallest, fastest, and longest lasting nanomotor to date.
During experimentation, biochemicals were coated onto the nanomotor to simulate drug delivery. As the team increased the rotational speed of the nanomotor, the more quickly the chemicals were shed off. In terms of drug delivery, this is very important. Timing of dispersal can be critically important to the drug’s efficacy.
Source
Arrey O Sambha, kitney MBA thhe?