Posts

Showing posts with the label name

SOLVED apache2 Could not reliably determine the servers fully qualified domain name using 127 0 1 1 for ServerName on Xubuntu

SOLVED apache2 Could not reliably determine the servers fully qualified domain name using 127 0 1 1 for ServerName on Xubuntu Symptom You get this error message when starting apache: * Starting web server apache2 apache2: Could not reliably determine the servers fully qualified domain name, using 127.0.1.1 for ServerName Fix Open a terminal window and run: sudo sh -c echo "ServerName localhost" >> /etc/apache2/conf.d/name && sudo service apache2 restart References How to fix Apache � "Could not reliably determine the server�s fully qualified domain name, using 127.0.1.1 for ServerName" Error on Ubuntu download file now

SOLVED org apache hadoop hdfs server namenode SafeModeException Name node is in safe mode How to leave

SOLVED org apache hadoop hdfs server namenode SafeModeException Name node is in safe mode How to leave Namenode daemon in Hadoop Framework enters into safe mode in unusual situations. For example when disk is full, also in the start-up phase. You can see something like this. org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/root/t. Name node is in safe mode So Hadoop needs to leave safemode. Running below command leaves safemode. bin/hadoop dfsadmin -safemode leave After doing the above command, Run  hadoop fsck  so that any inconsistencies crept in the hdfs might be sorted out. Use   hdfs   command instead of   hadoop  command for newer distributions: hdfs dfsadmin -safemode leave hadoop dfsadmin  has been deprecated, all hdfs related tasks are being moved to a separate command  hdfs. download file now

SQL FINDING ALL THE TABLE NAME COLUMN NAME WHICH HAVING IDENTITY FIELD AUTO INCREMENT

SQL FINDING ALL THE TABLE NAME COLUMN NAME WHICH HAVING IDENTITY FIELD AUTO INCREMENT --FINDING ALL THE TABLE NAME & COLUMN NAME WHICH IDENTITY IS ON(1) SELECT C.NAME AS COLNAME,T.NAME AS TABLENAME,C.IS_IDENTITY FROM SYS.COLUMNS C INNER JOIN SYS.TABLES T ON C.OBJECT_ID=T.OBJECT_ID WHERE C.IS_IDENTITY=1 This post h download  file  now

Solved Finding computer name using IP

Image
Solved Finding computer name using IP Windows: nbtstat -a ipaddress Linux: nmblookup -A� ipaddress download file now

Splunk Creating eventtypes from csv to name VLANS

Image
Splunk Creating eventtypes from csv to name VLANS Everyone got the VLAN name lookup working from the last post? You did.. ? Really someone is listening? Next lets use the information in the internal_networks.csv file to create event types and really change the way we search in splunk. While researching this topic, I learned that you CAN NOT do subsearches in eventtypes.conf I was hoping to do something like (dont try it it doesnt work) eventtypes.conf [vlan:Guest]   search src_ip=172.30.21.0/24 |lookup vlan network AS src_ip OUTPUT name AS Src_VLAN So I had to find an easy way to parse our csv. I love trying to do all my heavy lifting on one line in linux. So I challenged myself.. can it be done? As a reminder here is our internal_networks.csv  I have cleaned it up to conform with the common information model the best I could.  No spaces in the names and no capital letters. network,name "192.168.1.0/24","corporate" "192.168.2.0/24","voice" "...

Split Name in PHP and Javascript

Split Name in PHP and Javascript If you have a user with a long name and want to short it because it wont fit into the element that contains the name, you can either do it on the server or the client. In this post I am going to tell you how to accomplish this with PHP  and JavaScript . Suppose We have a user named  Paul Steve Panakkal  (my cousin). To separate the first name, middle name and last name you can do the following in PHP  : <? $name="Paul Steve Panakkal"; $parts=explode( ,$name); $first_name=$parts[0]; $middle_name=$parts[1]; $last_name=$parts[2]; echo $first_name."<br/>"; echo $middle_name."<br/>"; echo $last_name; ?> The above code would print out : Paul Steve Panakkal There you go! Now Lets do this with JavaScript  : <script> var name="Paul Steve Panakkal"; var parts=name.split(" "); first_name=parts[0]; middle_name=parts[1]; last_name=parts[2]; document.write(first_name+"<br>"+midd...