15,912,977 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13809409 (Top 35 by date)
Member 13809409
18-Jun-18 8:01am
View
File dir = new File("/home/msr/hike/02-05-2018");
File [] fileArray = dir.listFiles();
for(File f :fileArray) {
System.out.println(f);
Member 13809409
18-Jun-18 8:00am
View
can anybody help me ??
Member 13809409
18-Jun-18 4:39am
View
not getting please help me
Member 13809409
18-Jun-18 3:30am
View
single file i know ..but inside a folder how to do?
Member 13809409
15-Jun-18 6:33am
View
Thanks worked..i turned on in security access in gmail application
Member 13809409
15-Jun-18 6:02am
View
noo
Member 13809409
15-Jun-18 1:14am
View
i want to do with scp please help me
Member 13809409
14-Jun-18 8:55am
View
Deleted
am trying to do with jsch ..filenotfound exception is arised
Member 13809409
14-Jun-18 7:14am
View
am not able to do please help me ..how to do that?
Member 13809409
14-Jun-18 6:45am
View
can i do with ssh username and password??
Member 13809409
14-Jun-18 6:36am
View
Deleted
if i install SMB after that what i need to do ?
Member 13809409
13-Jun-18 6:31am
View
192.168.15.74 ip present in server but its not showing not present please solve
Member 13809409
13-Jun-18 6:31am
View
package com.techstar.com;
import java.net.InetAddress;
import java.net.UnknownHostException;
class IpAdress{
public static void main (String args[]) throws UnknownHostException {
// strIp containing an IP address or a machine name
// strServer containing a machine name
// Get the IP address to look for as InetAddress
String strIp = "192.168.15.74";
InetAddress ip = InetAddress.getByName(strIp);
String strServer="";
// Get all IP adresses associated with strServer
InetAddress[] serverIps = InetAddress.getAllByName(strServer);
for (int i = 0; i < serverIps.length; i++)
{
if (ip.equals(serverIps[i]))
{
System.out.println("Server ip is present" +ip);
}
else {
System.out.println(" ip is not present" +ip);
}
}
}}
Member 13809409
5-Jun-18 7:23am
View
package com.api.restful;
import java.util.ArrayList;
import java.util.List;
import javax.swing.text.Document;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/command")
public class InsertionAPi {
@GET
@Produces(MediaType.APPLICATION_JSON)
public String sayHello(){
MongoClient client = new MongoClient("localhost", 27017);
MongoDatabase database = client.getDatabase("admin");
MongoCollection<document> collection = database
.getCollection("command");
Object id = new ObjectId("5b16371c425750918ebf1454");
Document newCmd = new Document("d", 4);
collection.updateOne(Filters.eq("_id", id), Updates.addToSet("cmd", newCmd));
return collection;
}
}
Member 13809409
5-Jun-18 6:28am
View
please help me
Member 13809409
5-Jun-18 6:00am
View
update operation in a array:
mongodb collection like this:
{"cmd":[{"a":1},{"b":2,"c":3} after {"d":4}]} will be updated in collection
Member 13809409
5-Jun-18 5:58am
View
i want to be convert above code into service API using Jax-rs
Member 13809409
31-May-18 9:37am
View
its not working
Member 13809409
31-May-18 9:11am
View
am not able to do still getting errors
Member 13809409
31-May-18 9:05am
View
Deleted
public static void main(String[] args)
{
File folder = new File("/home/msr/hike/");
FilenameFilter fileNameFilter = new FilenameFilter() {
// Hourly files
String match = String.format("%02d-%02d-%04d_%02d",day, month, year, hour);
// Use this for daily files
//String match = String.format("%02d-%02d-%04d", day, month, year);
// When having a Date or Calendar use (without "_%1$tH" for daily)
//String match = String.format("%1$td-%1$tm-%1$tY_%1$tH", date);
public boolean accept(File dir, String name) {
return name.startsWith(match);
}
};
File[] listOfFiles = folder.listFiles(fileNameFilter);
Member 13809409
31-May-18 9:02am
View
day, month, year, hour these variables getting error
Member 13809409
31-May-18 8:55am
View
shall i need to declare variables day,month,year,hour?
Member 13809409
31-May-18 8:51am
View
Deleted
how to read files there
Member 13809409
21-May-18 5:23am
View
that is my requirement..please help me
Member 13809409
21-May-18 5:13am
View
in mongodb with java programming
Member 13809409
21-May-18 5:12am
View
i want to update "d":4 after "c":3
input:
{
"_id" : ObjectId("5b025f11c70c628aeac5f78e"),
"cmd" : [
{
"a" : 1
},
{
"b" : 2
},
{
"c" : 3
}
]
}
Member 13809409
21-May-18 5:01am
View
iam not updating object inside array ..that is my problem help me
Member 13809409
17-May-18 1:07am
View
iam not updating a value into mongodb .i get into programme output :
[{ "a" : 1.0 }, { "b" : 2.0 }, { "c" : 3.0 }, { "d" : 4.0 }]
mongodb:
{
"_id" : ObjectId("5afc4091884ee5cb97cd53eb"),
"cmd" : [
{
"a" : 1
},
{
"b" : 2
},
{
"c" : 3
}
]
}
Member 13809409
15-May-18 10:17am
View
in my mongodb i created with age only so i need to get age ..Thanks ..helpme out
Member 13809409
8-May-18 5:58am
View
hello ..iam not getting exact output of programm
Member 13809409
3-May-18 8:23am
View
thanks much
Member 13809409
3-May-18 7:54am
View
i have two text files ie 1.txt and 2.txt separated by (::) double colon
need to compare each line of 1.txt with all lines of 2.txt if its matches i need to print matches name
thanks
sid
Member 13809409
3-May-18 7:18am
View
help me with your solution ..thanks
Member 13809409
3-May-18 4:58am
View
am able to compare with each line with other line only not able to compare each line with all lines with other a file
Member 13809409
3-May-18 4:32am
View
i need to compare two text files line by line with other file all lines by two colon separate in java.
if i give package name matches it should be print what are all the package name matched with other file..this is my requirement
inside text file all lines like this:
accountsservice :: 0.6.40-2ubuntu11.3 :: None :: amd64 :: None
Show More