How ofter do I need to update my geoip lookup tables? - ip

I am considering using geoip for a web application.
However, I am not sure how often "IP to city" information changes and therefore how often I need to update my geoip lookup tables.
Can anyone please advise?

Depends on where you are getting your information from. Maxmind GeoLite updates their database once a month: http://dev.maxmind.com/geoip/legacy/geolite/

Related

Alter sessionState SQLServer schema

In a large scale application we are using SQL Server as session state; so we have built ASPState database with the following tables:
ASPStateTempSessions
ASPStateTempApplications
I have requirements to add some additional informations (eg. installation code, user code, and so on) to ASPStateTempSessions table and update them accordingly so an external service can check it.
I have altered the table schema and is working well but, my question is:
Is a good practice? Do I have any alternative?
update them accordingly so an external service can check it.
You run the risk of the external service blocking access to the sessions table and thus impairing the site. Make sure the external service uses optimal access to the tables (ie. all queries issued by the service always use an index and do not do table scans) and consider enabling read committed snapshot.

Zenoss Graph results of postgresql database query

So I just added my servers to Zenoss and installed some postgresql zenpacks. Unfortunatly I do not care for most of the postgresql monitoring tools. Instead of what they gave me, I am wondering if it is possible to send a custom query that I wrote, then graph the result using Zenoss? How do I go about doing this? Are there any good resources that you know of?
Thanks.
You will need to write your own ZenPack (or at least Template). Check Development Guide http://wiki.zenoss.org/ZenPack_Development_Guide or http://zenosslabs.readthedocs.org/en/latest/zenpack_development/
IMHO you will need zencommand datasource, which will execute your custom SQL query and this query output (number only) will be metric value, which will be processed by Zenoss.
Or you can expose metric(s) via SNMP and then it'll be only standard SNMP metric in Zenoss.
It's up to you how do you implement it. I recommend you to use community forum http://www.zenoss.org/forum for Zenoss related questions.

Detecting a change in BizTalk Server configuration

Is there a way (without actually keeping a state in a external application and scanning the configuration database) to detect a configuration change in BizTalk Server?
I know there are timestamps for changes for the different artifact in the configuration database but are there any sort of general flag that indicate a change?
I'd like to for example kick of a process as a change occurs and for example log current configuration - without adding triggers or similar things.
No, there is no 'change notification' built into the product nor is there an 'official' way to track or identify changes.
Of course, there are various techniques you can use to identify changes such as monitoring timestamps, examine the SQL Logs, etc, but that would be a custom implementation.
BizTalk 360 has a robust auditing feature that might cover what you're really asking for.
From experiance, this question of 'tracking changes' is driven by governance scenarios where controls and access are more open then they should be. That's a management problem.

ASP.NET Registration problems when inserting to 2 tables in SQL Server database

I am pretty new with ASP.NET and SQL Server so please provide support as much detail as possible, I really appreciate it. Here is my situation:
I am doing the registration system for the website using ASP.NET and SQL Server 2012 Express.
So when user registering, first of all, they need to fill out account information (name, address, phone, email, password...) and secondly, they need to fill the company information - where they are working at (company name, company industry, website, description...). So in database I have 2 table: User and Company
Problem is when they filled out all those require fields in the registration form and click SUBMIT button, how do I check if data has been inserted to 2 tables successfully, because if for any reason after data inserted to User table successfully but failed to Company table so this gonna be a problem, I don't know if there is any way to check it or reverse the process in SQL Server if any inserting query is failed.
I don't know this make sense for all of you, please ask me if you don't understand my question.
Thank you!
Without any code this is hard to answer.
In .net you can use Try{} catch{} blocks to handle errors and act upon them.
A better approach is to Commit the User and Company in one transaction. This is dependent on your data access approach. In Linq2Sql you need to have the two insertions in one SubmitChanges() for example. Or do it yourself with TransactionScope http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx
Update: read the Remarks in the link:
The System.Transactions infrastructure provides both an explicit
programming model based on the Transaction class, as well as an
implicit programming model using the TransactionScope class, in which
transactions are automatically managed by the infrastructure.

Countries and their province web service

I need a webservice to get information of whole of the countries and their provinces location and area or population is anyone who knows this web service ?
why you need web service? I don't think so its exist.
what you need to do is, you can create table in your DB and add data, Its easy to find SQL insert queries to dump the data. please check these URLs
http://amrelgarhytech.blogspot.com/2008/08/list-of-countries-cities-languages.html
Country, state list for SQL Server
You can also use the great service from the chaps at http://www.geonames.org/
I did a small tool to generate an XML file based on the output of their webservices: https://github.com/yosoyadri/GeoNames-XML-Builder
All credit should really go to the C# library at http://geonamesdotorgdotnet.codeplex.com/ that I'm using to parse the response XML from the services.
You have an already made list of countries and provinces at https://raw.github.com/yosoyadri/GeoNames-XML-Builder/master/continents-countries-statesprovinces.xml
As Muhammad I think it is always good practice to keep your local copy of the data rather than querying the service everytime.

Resources