If given subnet address e.g. 192.168.10.0/24
How to determine mask length ? (/24)
How to determine mask address ? (255.255.255.0)
How to determine network address ? (192.168.10.0)
Hi All!
I'm using jQuery Address to load in my content, but it's doing it twice on the init. I set it up so that if you go to the main category it loads the first image, but it's doing it twice and I'm not sure how to stop it. A fresh pair of eyes would be appreciated!
$.address.init(function(event) {
$('#carousel-clip a').address();
if(!event.pathNames[0]) {
var url = $('#carousel-clip ul li:first a').attr('href').replace('#!/','');
$.address.path(url);
}
}).change(function(event) {
if(event.pathNames[0]) {
$.getJSON(location.pathname + 'image/' + event.pathNames[0] + '/', function(data, textStatus, XMLHttpRequest) { handler(data); });
}
});
You can see it working here: http://bit.ly/cKftwA
Thanks!
Darren.
I am running an ASP.NET application. The web server is located on the same system. In the code behind I just want to get the IP address of the requesting client. I am using this code:
Request.UserHostAddress
But I am getting a wrong address: 127.0.0.1. My system IP address is 198.162.0.27.
If I modify the source ip address of all outgoing ip packets from my network to an ip address belonging to someone else (while ensuring that the checksum is correct) then what will happen.
Assume that I have a public IP address connected by a point-to-point link to an ISP.
Will the ISP check that the IP address in my IP packets is correct or will it just forward the packets.
I believe that ISP should just forward the packets.
what mechanisms are present in the Internet that prevent this from happening?
I am trying to test the jQuery Address Plugin and it seems to not allow ajax to work in the change function.
I am using:
$.address.change(function(event) {
$('#content').load(event.value+' #content');
$.address.title(event.value);
});
$('a').click(function() {
$.address.value($(this).attr('href'));
});
While I can use event.value for other things, it just does not seem to let the .load() function work. Even trying a static URL in .load() does nothing. Is something in the plugin preventing this? I thought this was the point of the plugin!
When I get a NSNetService object, I try to do:
NSNetService *ss=[netArray objectAtIndex:indexPath.row];
ss.delegate=self;
[ss resolveWithTimeout:3.0];
Then on the delegate method:
- (void)netServiceDidResolveAddress:(NSNetService *)sender
{
NSArray *address=sender.addresses;
NSData *addressData=[NSData dataWithBytes:address length:sizeof(address)];
NSError *error;
/*
How?
*/
}
Thanks.
hi;
i need grab to internet explorer address bar. how to get address bar url for python ? (i need second part other browsers grabbing address bar but internet explorer is urgently).
Thanks.
I am trying to understand function returning reference. For that i have written a simple program :-
include
using namespace std;
class test
{
int i;
friend test& func();
public:
test(int j){i=j;}
void show(){cout<
};
test& func()
{
test temp(10);
return temp; //// Address of temp=0xbfcb2874
}
int main()
{
test obj1(50); // Address of obj1=0xbfcb28a0
func()=obj1; <= Problem:The address of obj1 is not changing
obj1.show(); // // Address of obj1=0xbfcb28a0
return 0;
}
I run the program using gdb and observed that the address of obj1 still remains same but i expect it to get changed to 0xbfcb2874. I am not clear with the concept. Please help.
Thanks in advance
I am trying to understand functions returning a reference. For that I have written a simple program:
#include<iostream>
using namespace std;
class test
{
int i;
friend test& func();
public:
test(int j){i=j;}
void show(){cout<<i<<endl;}
};
test& func()
{
test temp(10);
return temp; //// Address of temp=0xbfcb2874
}
int main()
{
test obj1(50); // Address of obj1=0xbfcb28a0
func()=obj1; <= Problem:The address of obj1 is not changing
obj1.show(); // // Address of obj1=0xbfcb28a0
return 0;
}
I ran the program using gdb and observed that the address of obj1 still remains same, but I expect it to get changed to 0xbfcb2874. I am not clear with the concept. Please help.
Hi,
Is it possible to hold an open TCP connection with a client, while the IP address of the client is externally changed?
For example, the connection is establishes against address X, but somewhen while the connection is open, the client-side user asks for IP renew and gets another IP address. Can the connection remains alive in this case?
Thanks in advance.
I'm working with a binary file that I disas'd in gdb. Right now I'm just examining the return value of a function.
0x08048604 <playGame+78>: ret
Is the address shown the address where ret is stored in the function? Or is it just the address of the instruction to return the ret value?
How can I ensure the contacts I add to an Outlook distribution list are displayed with both name and email address? These contacts may not exist in any other address book, just the distribution list. Currently they show up just as an email address (in both columns).
Here's roughly the VBA we're using:
Do Until RS.EOF
//here's where we want to inject RS!FirstName, RS!Surname etc
objRecipients.Add RS!Email
objRecipients.Resolve
RS.MoveNext
Loop
Set objDistList = contactsFolder.Items.Add("IPM.DistList")
objDistList.DLName = "Whatever"
objDistList.AddMembers objRecipients
objDistList.Save
etc
So private IP addresses are
192.168.00 ~ 192.168.255.255 or 10.0.0.0 or 172.16.0.0 ~ 172.31.255.255
If I accepted a client to my serversocket, I can get the client's remoteIp address by using socket.getremotesocketaddress(); But I suspect the IP address that I'm getting from this method is only the public IP address and it must have more than one client using same public IP as this one (one like you see when you go on to the website www.whatismyip.com). So if I want to make sure that my packet is delivered to the right person using some IP address or otherthing that uniquely identifies a person, what should I have to do?
Here i have installed
widows server 2008 64
orale 11g r2 64
now i want to access this from the ip address that i have set to my server not
working i can't access trough the ip address....
when i use on my application .....local host it can get connected but
when i add the ip for example 10.0.0.2 it's not connecting
now simply also on local when i write the ip address it's not connecting
but with localhost works fine.....
so even i have used listener.
regards
hey Folks,
Is there any way in ruby to get the memory address of objects..
say..
(i = 5) is that possible to get the mem address of that object 5..
'object_id_' is not that satisfying..
I just wanted to know how referencing to objects work on ruby, so i thought address will be useful, to get things done
plugin memprof doesnt work on x_32bit, so is there any better way pls help me...,
Any answer would be really appreciated...
thanks,
Regards levirg
hi, i've created a php pagination system, but i want to hide the _GET variable in the address bar.
atm mine looks like this http://address.com/images.php?page=1
but i've seen a few site that have http://address.com/images/1/.
just wondering how they go about this? can anyone point me in the right direction, cheers
I need help with SQL query.
I have two tables. One is users and other one is userfriends
users table:
aid email firstname
1 [email protected] example
2 [email protected] example2
3 [email protected] example3
4 [email protected] example4
userfriends tables:
reqid email friendemail status
1 [email protected][email protected] 1 (example1 is frnds with example2)
2 [email protected][email protected] 2 (example2 request pending)
3 [email protected][email protected] 1 (example1 is frnds with example3)
4 [email protected][email protected] 1 (example1 is frnds with example4)
So when status is 2 the add request is pending and at status 1 they are friends. What i want is that i want to retrieve the complete friendlist for user example1. I want to pull out names from users table for corresponding output from previous query to display as friendlist.
Hi,
I need to organize cache in mySql database for address - coordinates. What is the best practice to store address? Do i need to compress address string or use it as is?
edit:
Ok, let's I reassert my question.
How to store long (up to 512) string in database if I need to search by exactly this string in future.
I'm looking for an email address that can be sent to where the mail will just be deleted without a bounce back. RFC 2606 defines example.com as a fictitious domain for documentation. Is there something similar for email? This will be used in printed documentation, needs to be stable (the domain can't go stale or replaced by an NSFW site), and as generic as possible.
i tried executing the mail() and got the following error
"Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() "
but SMTP and smtp_port are both set in php.ini more ever other codes are working fine with localhost.
disabled or/and added exception to firewell no result....
tried telnet localhost 25
error:could not connect to localhost port 25:connection failed.....
Thunderbird my mail client says:could not connect to server localhost the connection was refused....
I need to expose Active Directory, or at least the address book functions on the internet for some mail clients and other devices. The standard response is to simply not or vpn in, however VPN isn't an option for us with some of the hardware devices.
A number collages expose their setups out to the internet so I'm assuming their has to be a safe way of doing it. Best option I've come up with to install a linux ldap host, then hourly sync over the relevant contact information however that seems like major overkill.
I have migrated about 45 mailboxes at this point from our single instance of Exchange 2003 to a High Availability Exchange 2010 environment successfully. However one mailbox moved successfully and the user is able to send and receive e-mail internally and externally with no problems but they do not show up in the Global Address List. The OAB is owned by an Exchange 2010 mailbox server. What am I missing?
I am running Exchange 2013 on Windows Server 2012 R2.
When I add my exchange account to Outlook, it seems to work perfectly (sending/receiving email, syncing everything), but when I open the account settings it has the following set as the Server:
[email protected]
I would have expects this to be: mail.domain.com since this is the DNS A record pointing to the IP of my server. Where is it getting this server name?