₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,273 members, 8,421,090 topics. Date: Friday, 05 June 2026 at 06:42 PM

Toggle theme

Javanian's Posts

Nairaland ForumJavanian's ProfileJavanian's Posts

1 2 3 4 5 6 7 8 ... 43 44 45 46 47 48 49 50 51 (of 57 pages)

ProgrammingRe: Connecting To A Remote Database by Javanian(op): 12:28pm On Aug 30, 2012
webdezzi: on point!

i have always been a big fan of tunneling through a web page which is what 2buff refers to as server middle man.
please can you explain in detail how i can do this?
ProgrammingRe: Connecting To A Remote Database by Javanian(op): 12:17pm On Aug 30, 2012
^ Thanks, but if i save to a file or registry cant the data be accessed by someone else ?...
ProgrammingRe: Connecting To A Remote Database by Javanian(op): 11:15am On Aug 30, 2012
dell_net: Why don't you setup a config file or registry entry to ask for the information on the fly? this way no sensitive information is stored in your code. It is bad practice to store password, username etc in your code.
how?
ProgrammingRe: Connecting To A Remote Database by Javanian(op):
.
WebmastersRe: . by Javanian: 10:33am On Aug 30, 2012
Seun, i think you should do something about this before damage is done because anyday a malicious user like me accidentaly logs into any of your super moderators account, the first thing i will do is to change the email, then the password, which is very easy to do with the way Nairaland is built...and the aftermath will be very very bad...just kidding grin... I think you should advice your moderators to always log out after each visit...or if possible permanently disable cookies for your moderators...until you find a solution to this...Just a suggestion...
ProgrammingRe: Connecting To A Remote Database by Javanian(op): 10:04am On Aug 30, 2012
^ by man in the middle server...do you mean a web server that holds the database and the application connects to?? Can you please explain better??
ProgrammingRe: Connecting To A Remote Database by Javanian(op): 8:47am On Aug 30, 2012
2buff: The only time it is alright to connect to a database remotely over the internet is if whatever you are connecting from has a STATIC IP address (i.e. a server) and then the database user can then be configured to only accept incoming connections from that specific IP address (i.e. dbuser@123.23.23.12).
1, By server you mean web server right?
2, by database user do you mean the client application or the database user on the server?
3, if question 1 is web server and question 2 is the database user on the server...How do i do the bolded??
ProgrammingRe: Program With C# Is There Any Expert In The House! by Javanian: 8:30am On Aug 30, 2012
in my heart of heart i thought within a month i should have written not just any program but a sophisticated one,
like seriously??...in one month??
i proceed in downloading ebook from my mobile device, sending them to my system and devour them but alas, the more i read the more i sincerly don't understand... i tried downloading only C# 2008 but these book uses terminologies that i don't understand in 2months now i have only been able to successful design, link pages by clicking a button and simple arithmetic, i must conffess am pretty eager to write a real program, can anyone say anything or something that would be of immerse blessing to me for i
am genuinely confuse and nearly frustrated...
its too early o!...lol..

You better start from the basics by writing ''Hello world'' in c#...and let me truthfull to you...You cannot write a ''sophiscated program''...until the next 6 months to one year depending on your learning ability and determination. Programming aint childs play...follow the link @mj gave you..it should get you started...
ProgrammingConnecting To A Remote Database by Javanian(op): 1:19am On Aug 30, 2012
Hello guys, if I'm in a scenario where i am connecting to a remote database from my desktop or mobile application, i know i will need the database URL, user name and password. My Question is how can i hide this information in my application so that someone cannot decompile my application and extract such data...any ideas??
ProgrammingRe: An Insomniac's Puzzle For Programmers. by Javanian: 3:41pm On Aug 29, 2012
lordZOUGA: this approach still makes sense to me....
If The container "hall" increments itself anytime a student is added, You can even add 3 students in a loop
code:
while(hall.count != MAX_STUDENTS){
if(JS1students.isEmpty()){
hall.append(JS2student.getStudent());
hall.append(JS3student.getStudent());
}else{
hall.append(JS2student.getStudent());
hall.append(JS1student.getStudent());
hall.append(JS3student.getStudent());
hall.append(JS1student.getStudent());
//with the above code you can add all students in less number of loops..
}
}
This should work..The puzzle is quite easy...just has some irrevelant constraints...
ProgrammingRe: Help! I Am Writing About: Travelling Salesman Problem by Javanian: 9:57pm On Aug 28, 2012
i have done something like this before...what you may likely need do is get the co-ordinates of each city in (x,y) format e.g. Enugu(34,54), Lagos(53,34), Abuja(23,78) and so on from your map or graph(as the case may be)...to get the shortest distance between any of the two points you use square-root of [(x2-x1)2+(y2-y1)2]

Hope this helps..

ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 9:40pm On Aug 28, 2012
i noticed those idiots returned a mobile version to my server which cost me 3hrs to figure out
LMAO!! grin
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 9:21pm On Aug 28, 2012
^ Nice one!...i have been having a hard time doing this..i cant wait to see your code..
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 1:54pm On Aug 28, 2012
^ i need to extract the TOP 10 rankings from those sites and store them as Strings...and i haven't been able to do it...
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 1:36pm On Aug 28, 2012
i have one that am using...what i actually mean is the structure of the source sites are quite complex and using an HTML Parser to extract data has not been easy...
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 1:20pm On Aug 28, 2012
I still haven't been able to create an HTML Parser for the sites...but i am still trying...can anyone give it a try??
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 1:17pm On Aug 28, 2012
In JSP this is what the code looks like but this code wont work for you if you have not imported the WSDL link with your IDE.
I have tested it in JSP and ASP.NET and it works perfectly well.
<%--
Document : index
Created on : Aug 24, 2012, 3:13:15 PM
Author : Javanian
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>


<h1>Testing Web Service!</h1>

<%-- start web service invocation --%><hr/>
<%
try {
gadgets.Phones_Service service = new gadgets.Phones_Service();
gadgets.Phones port = service.getPhonesPort();
// TODO process result here
java.lang.String result = port.displayPhones();
out.println("Result = "+result);
} catch (Exception ex) {
// TODO handle custom exceptions here
}
%>
<%-- end web service invocation --%><hr/>


</body>
</html>
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 12:05am On Aug 28, 2012
netesy: Not working on Php with code in Your site
==>Catchable fatal error: Object of class stdClass could not be converted to string in C:\wamp\www\ximplicity\index.php on line 17
Thanks for testing and giving your observation...i didnt test that PHP Code...so i cant assure you its working...i am not a PHP Programmer...i just googled that stuff out...You can take an extra step by doing some research on how to consume a web service in PHP...if you get it right alert me and i'll update the site with your code
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 8:46am On Aug 27, 2012
You dont need any extra code just follow the steps you listed above...its very easy with an IDE...
WebmastersRe: HTML5 Geolocation by Javanian(op): 7:18pm On Aug 26, 2012
^ Thanks alot...
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 2:09pm On Aug 25, 2012
^ Thanks for this, have you tested it??
WebmastersReview: Open Source Web Service/web Service Portal by Javanian(op): 2:04pm On Aug 25, 2012
Hello guys, we are creating an open source, platform independent web service/API for different gadgets ranging from Laptops to Smart Phones to Mobile Phones. It will contain TOP 10 rankings of different brands in each category. Web developers could implement it in their web applications irrespective of the language they use. I'm calling on anyone who is interested in joining us. You can visit http://www.gadgetslim.com to see what we have achieved so far. First of all i will like you to visit the site to see what we have done and how we can improve on it. Please i need your honest reviews. But to start with the site is lacking in some areas such as:
1, A mobile version of it (it doesn't look good on mobile)
2, We are yet to test the web service on PHP and ASP.NET

Please if you would like to contribute to it you can join us in this thread https://www.nairaland.com/1003066/creating-open-source-java-web-service

PS: The site is still under construction

Thanks.
WebmastersRe: HTML5 Geolocation by Javanian(op): 1:52pm On Aug 25, 2012
^ Thanks for the explanation...like i asked earlier is there an alternative to HTML5??
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 12:46am On Aug 25, 2012
c'mon guys do i have to do everything?? embarassed
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 12:44am On Aug 25, 2012
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op):
For the Java Developers. Follow this steps to consume the web service in a web or desktop Application
Open NetBeans IDE > Choose File > New Project (Ctrl-Shift-N on Linux and Windows, ⌘-Shift-N on MacOS).

Select Web Application from the Java category.

Name the project GadegtSlim(or any name of your choice).

Select Tomcat or Glassfish server(recomended).

Select any FrameWork of your choice(you can leave it empty).

Click Finish.

Right-click the GadgetSlim node and choose New > Web Service Client. The New Web Service Client wizard opens.

Select WSDL URL as the WSDL source. Copy and paste this http://gadgetslim.com/Laptops?wsdl (or any other WSDL link) click OK.

Do not select a package name. Leave this field empty.

Leave the other settings at default and click Finish.

The Projects window displays the new web service client, with a node for the displayLaptops Method(web service).

Double-click your main class so that it opens in the Source Editor. Drag the dispalyLaptops node below the main() method.

You can now print to standard output or display on a web page.

Note: if it returns XML you will have to use an XML Parser or use our custom API
source:http://gadgetslim.com/web%20service%20portal%20Java.html
http://netbeans.org/kb/docs/websvc/jax-ws.html
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 11:29pm On Aug 24, 2012
@spike c and mj any update??
WebmastersRe: HTML5 Geolocation by Javanian(op): 9:19pm On Aug 24, 2012
<script>
var x=document.getElementById("demo"wink;
function getLocation()
{
if (navigator.geolocation)
{
navigator.geolocation.getCurrentPosition(showPosition);
}
else{x.innerHTML="Geolocation is not supported by this browser.";}
}
function showPosition(position)
{
x.innerHTML="Latitude: " + position.coords.latitude +
"<br />Longitude: " + position.coords.longitude;
}
</script>
i am no where near Lagos...in fact I'm in PH.
WebmastersRe: HTML5 Geolocation by Javanian(op): 7:28pm On Aug 24, 2012
Honestly, i don't think its from the code because i have also tried it on other websites like w3schools and it still tells me am in lagos, My Internet service is from MTN and i dont know where they are...lol...
WebmastersHTML5 Geolocation by Javanian(op): 5:46pm On Aug 24, 2012
Hello guys, i just wanted to know if its only me that has noticed this, HTML5 GeoLocation always tells me i'm in Lagos, but its a lie undecided Does anyone know the reason??
Please is there an alternative?
ProgrammingRe: Creating An Open-source Java Web Service by Javanian(op): 12:59pm On Aug 24, 2012
xterra2: aha i forgot to put a facebook logo or a link but the one you used is ugly see the site is black blue shouldnt come in any way i have this facebook icon thats in black so that would be better
and the location of the logo? the space from the top of the page is a little bit too big dont u think ?
besides where the copyright info is,its out of the transparent box
i would send you a newer site, with the new facebook logo and the border to the right
Thanks for your opinions...i'm not a web desginer so dont expect my work to be perfect...i'll be waiting for the new design...
webservice for php devs eliminated i forgot about that one
i never said so everyone has a role to play
Javanian: where are the PHP, ASP, ASP.NET and JSP guys??, i need as many as possible
ProgrammingRe: How Can I Change A Label Display by Javanian: 10:48am On Aug 24, 2012
Paste your code

1 2 3 4 5 6 7 8 ... 43 44 45 46 47 48 49 50 51 (of 57 pages)