Skip to main content

Posts

Showing posts with the label linux

How to start using and developing on Ubuntu Linux?

I am a newbie Linux user who came from 10 years using windows OS, and developing in Microsoft languages. I want to have a good experience in Linux world and developing on it. First, I want to learn how to use this new OS, then how to start developing on it, I am interested in web applications, specially using Java/PHP because I have some experience in both and it will be a good start. Second, I want to learn how to develop on it. Are there any video tutorials to give me a good starting push? any recommended books or references? Source: Tips4all

How to obtain MAC address of WiFi network interface?

It seems the java.net.NetworkInterface implementation of android does not have a byte[] getHardwareAddress() method http://developer.android.com/reference/java/net/NetworkInterface.html I've found several forums of people trying to do this with no definitive answer, I need to get a somewhat cross-device UUID, so I can't rely on phone numbers or in ANDROID_ID (which can be overwritten and which I think depends on the user having a google account) http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID In linux you can use ifconfig or read from /proc/net/arp and you can easily get the Hardware address. Is there a file in android that I can read? There has to be a way to get this address since it's shown in the "Settings > About Phone > Status" of the phone.

How to put different host entries on same linux server, for different virtual hosts? [closed]

The setup is : Two applications are hosted on same linux server using vhost entries in apache configuration. say : http://greatapp.example.com and http://superapp.example.com Both of them have a functionality where they do server side http request to a third url (using php cURL / file_get_contents) : http://apis.example.com Now there is a host entry of an in the hosts file '/etc/hosts' xx.xx.xx.xx apis.example.com This is only intended for greatapp.example.com code, and not for superapp.example.com. How to configure the server such that greatapps.example.com uses the host entry, but superapp.example.com uses the public ip of apis.example.com

Does storing large sessions slow down response time and server

I am in the process of creating a Facebook App for my website which includes functionality that requires the users friends list. Retrieving the friends is no problem, what I am struggling to decide, is how to store them. Option 1 - Store the users in my MySQL database, I have opted not to go for this as my database will become very heavy, very quickly. In addition, I will need to create a table for each individual Facebook user! Option 2 - Store the Facebook friends array in a session which is updated every half an hour to ensure new friends are included. Ignore the fact that the session updates every half an hour, is it a bad idea to store, what can be a very large array, within a session? The website is likely to be receiving high volumes of traffic, and will therefore be storing a lot of these sessions. Although I am an experienced developer, I am not overly experienced with sessions in these circumstances. I would simply like to know whether or not this i