Text Analysis with Topic Models for the Humanities and Social Sciences
Text Analysis with Topic Models for the Humanities and Social Sciences (TAToM) consists of a series of tutorials covering basic procedures in quantitative text analysis. The tutorials cover the preparation of a text corpus for analysis and the exploration of a collection of texts using topic models and machine learning.
These tutorials cover basic as well as somewhat advanced procedures and make extensive use of the Python programming language to organize, analyze, and visualize data.
For more detail go to their website.
A good article on email writing in English
Although emails are often seen as less formal than printed business letters, in the business world you cannot afford to let your language appear to be informal. Email may be faster and more efficient, but your client or business partner will not easily forgive correspondence that is too casual. Not to fear! Read on to discover simple secrets that will add a high level of professionalism to your English emails.
It's important to always open your email with a greeting, such as "Dear Lillian,". Depending on the formality of your relationship, you may want to use their family name as opposed to their given name, i.e. "Dear Mrs. Price,". If the relationship is more casual, you can simply say, "Hi Kelly," If you’re contacting a company, not an individual, you may write "To Whom It May Concern:"
If you are replying to a client's inquiry, you should begin with a line of thanks. For example, if someone has a question about your company, you can say, "Thank you for contacting ABC Company." If someone has replied to one of your emails, be sure to say, "Thank you for your prompt reply." or "Thanks for getting back to me." If you can find any way to thank the reader, then do. It will put him or her at ease, and it will make you appear more courteous.
If, however, you are initiating the email communication, it may be impossible to include a line of thanks. Instead, begin by stating your purpose. For example, "I am writing to enquire about …" or "I am writing in reference to …" It's important to make your purpose clear early on in the email, and then move into the main text of your email. Remember to pay careful attention to grammar, spelling and punctuation, and to avoid run-on sentences by keeping your sentences short and clear.
Before you end your email, it's polite to thank your reader one more time as well as add some courteous closing remarks. You might start with "Thank you for your patience and cooperation." or "Thank you for your consideration." and then follow up with, "If you have any questions or concerns, don't hesitate to let me know." and "I look forward to hearing from you."
The last step is to include an appropriate closing with your name. "Best regards," "Sincerely," and "Thank you," are all professional. It's a good idea to avoid closings such as "Best wishes," or "Cheers," as these are best used in casual, personal emails. Finally, before you hit the send button, review and spell check your email one more time to make sure it's truly perfect!
Originally published and Credit to: https://www.englishtown.com/community/Channels/article.aspx?articleName=184-email
Begin with a greeting
It's important to always open your email with a greeting, such as "Dear Lillian,". Depending on the formality of your relationship, you may want to use their family name as opposed to their given name, i.e. "Dear Mrs. Price,". If the relationship is more casual, you can simply say, "Hi Kelly," If you’re contacting a company, not an individual, you may write "To Whom It May Concern:"
Thank the recipient
If you are replying to a client's inquiry, you should begin with a line of thanks. For example, if someone has a question about your company, you can say, "Thank you for contacting ABC Company." If someone has replied to one of your emails, be sure to say, "Thank you for your prompt reply." or "Thanks for getting back to me." If you can find any way to thank the reader, then do. It will put him or her at ease, and it will make you appear more courteous.
State your purpose
If, however, you are initiating the email communication, it may be impossible to include a line of thanks. Instead, begin by stating your purpose. For example, "I am writing to enquire about …" or "I am writing in reference to …" It's important to make your purpose clear early on in the email, and then move into the main text of your email. Remember to pay careful attention to grammar, spelling and punctuation, and to avoid run-on sentences by keeping your sentences short and clear.
Closing remarks
Before you end your email, it's polite to thank your reader one more time as well as add some courteous closing remarks. You might start with "Thank you for your patience and cooperation." or "Thank you for your consideration." and then follow up with, "If you have any questions or concerns, don't hesitate to let me know." and "I look forward to hearing from you."
End with a closing
The last step is to include an appropriate closing with your name. "Best regards," "Sincerely," and "Thank you," are all professional. It's a good idea to avoid closings such as "Best wishes," or "Cheers," as these are best used in casual, personal emails. Finally, before you hit the send button, review and spell check your email one more time to make sure it's truly perfect!
Originally published and Credit to: https://www.englishtown.com/community/Channels/article.aspx?articleName=184-email
Network issue after Ubuntu Virtual Machine was copied from one computer to another
The problem is caused because Ubuntu ties ethernet devices to MAC addresses. When you generate a new UUID, the MAC address changes, Ubuntu doesn't know where to find the interface because the eth0 device that is loaded by the driver differs in MAC address from the device listed in the configuration.
Here are two simple commands to fix the problem:
Here are two simple commands to fix the problem:
# remove 70-persistent-cd.rules sudo rm /etc/udev/rules.d/70-persistent-cd.rules #reboot sudo reboot # do the following \---- Start Script - macaddr=`ifconfig -a | grep "HWaddr" | cut -d " " -f 11` echo "eth0 mac $macaddr arp 1" > /etc/iftab \---- End Script ifconfig eth0 up dhclient eth0Sometimes, you may only need the last two steps.
Configure Tomcat 7 Two way SSL Authentication
Software:
1. Functional EJBCA PKI (Do not have one? You could use keytool instead. Follow the 2nd section of this post for configuration).
2. Apache Tomcat 7.0.52
***Section I:
To complete the configuration,you have to have your CA root certificate (LeopardRootCA.pem as example). That will be used to sign all client certificates and server certificates. By default Tomcat uses the certificate trust store provided with JDK which can be found in
$JAVA_HOME/jre/lib/security/cacerts.
Here I am going to create a new certificate trust store in my configuration.
1. Create Key store for Tomcat
keytool -genkeypair -alias tomcat-server -keystore /opt/apache-tomcat-7.0.52/conf/keystore.jks Enter keystore password: apache123 Re-enter new password: apache123 What is your first and last name? [Unknown]: Use FQDN of your server What is the name of your organizational unit? [Unknown]: Center Research Cancer What is the name of your organization? [Unknown]: SHH What is the name of your City or Locality? [Unknown]: CityName What is the name of your State or Province? [Unknown]: StateName What is the two-letter country code for this unit? [Unknown]: US Is CN=FQDN, OU=Center Research Cancer, O=SHH, L=CityName, ST=StateName, C=US correct? [no]: yes Enter key password for (RETURN if same as keystore password): apache123 Re-enter new password: apache1232. Create certificate request for Tomcat server:
keytool -certreq -alias tomcat-server -file FQDN.csr -keystore /opt/apache-tomcat-7.0.52/conf/keystore.jks3. Sign the request in EJBCA: Copy signed certificate, FQDN.pem, file to current working path. 4. Import signed server certificate into Tomcat: Before importing signed server certificate into Tomca,t you might need to import your CA root certificate into Tomcat first or you might see the following error:
"keytool error: java.lang.Exception: Failed to establish chain from reply.".
keytool -importcert -alias leopardrootca -file LeopardRootCA.pem -keystore /opt/apache-tomcat-7.0.52/conf/keystore.jks4.1 import signed server certificate
keytool -importcert -alias tomcat-server -file FQDN.pem -keystore /opt/apache-tomcat-7.0.52/conf/keystore.jks5. Create Trust store for tomcat and put yout CA root certificate into it:
keytool -import -keystore cacerts.jks -storepass changeit -alias leopardrootca -file leopardrootCA.pem6. Configure Tomcat conf/server.xml by uncommenting the following section and edit 7. start Tomcat
bin/startup.sh8. Create client certificate using the same root CA in EJBCA and import it into Firefox. ***Section II: Using keytool as example 1. create keyp air for rootCA
openssl genrsa -out rootCA.key 10242.create root certificate
openssl req -new -x509 -days 3650 -key rootCA.key -out rootCA.crt3. create necessary folder for openssl
mkdir -p demoCA/newcerts touch demoCA/index.txt echo '01' > demoCA/serial4. create server certificate keypair
openssl genrsa -out localhost.key 20485. create server certificate singing request file
openssl req -new -key localhost.key -out localhost.csr6. sing the server CSR using CA
openssl ca -keyfile rootCA.key -cert rootCA.crt -policy policy_anything -out localhost.crt -infiles localhost.csr7. create client certificate keypair
openssl genrsa -out client.key 20488. create client certificate singing request
openssl req -new -key client.key -out client.csr9. sing client CSR use CA
openssl ca -keyfile rootCA.key -cert rootCA.crt -out client.crt -policy policy_anything -infiles client.csr10. convert created server and client certificate into pk12 type:
openssl pkcs12 -export -in localhost.crt -inkey localhost.key -out localhost.p12 -name sercer ##password: sercer openssl pkcs12 -export -in client.crt -inkey client.key -out client.p12 -name client #password: client11.create tomcat keystore
keytool -importkeystore -deststorepass changeit -destkeypass changeit -destkeystore keystore.jks -srckeystore localhost.p12 -srcstoretype PKCS12 -alias sercer #pass is sercer12. configure tomcat server.xml file 13.
keytool -import -keystore cacerts.jks -storepass changeit -alias rootca -file rootCA.crt
Upgrade PostgreSQL from 9.1 to 9.3 on Ubuntu
At the time of writing, you could not install postgreSQL 9.3 on Ubuntu using apt-get.
Here is simple instruction of updating postgreSQL on Ubuntu to v9.3
#install dependency sudo apt-get update sudo apt-get -y install python-software-properties #add repository wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - #setuop repository sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list.d/postgresql.list' #install sudo apt-get install postgresql-9.3 postgresql-server-dev-9.3 postgresql-contrib-9.3 #upgrade sudo su -l postgres psql -d template1 -p 5433 CREATE EXTENSION IF NOT EXISTS hstore; CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; \q #logout from database service postgresql stop /usr/lib/postgresql/9.3/bin/pg_upgrade -b /usr/lib/postgresql/9.1/bin -B /usr/lib/postgresql/9.3/bin -d /var/lib/postgresql/9.1/main/ -D /var/lib/postgresql/9.3/main/ -O " -c config_file=/etc/postgresql/9.3/main/postgresql.conf" -o " -c config_file=/etc/postgresql/9.1/main/postgresql.conf" exit # logout postgresql back to previous user sudo apt-get remove postgresql-9.1 sudo vim /etc/postgresql/9.3/main/postgresql.conf # find old port of 5433 and change it to 5432 sudo service postgresql restartIssues you may encounter: when you run the real update command above (
/usr/lib/postgresql/9.3/bin/pg_upgrade...), you may notice failure and show error of "Problem of connection to database failed: fe_sendauth: no password supplied " The solution would be modify pg_hba.conf of two data directories in trust mode (NO PASSWORD) authentication then re-run pg_upgrade command. Example, # Database administrative login by Unix domain socket local all postgres trust
How to Remove All Unused Linux Kernel Headers, Images and Modules
Use the following command to remove
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge #Then regenerate grub menu, sudo update-grub to regenerate grub listCredit goes to original source
Pip install z3c.rml error Ubuntu
When installing z3c.rml, I have encounter the following error message:
fatal error: libxml/xmlversion.h: No such file or directory ... 'gcc' failed:if you see something related to libxml and libxslt when you trace back then the following packages may solve the problem:
sudo apt-get install libxslt1-dev libxslt1.1 sudo apt-get install libxml2 libxml2-dev
Subscribe to:
Posts (Atom)
Datatable static image not found on the server
When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...
-
Here is the example of installation of Hadoop on a single machine, UBuntu box in this case. For a simple cluster installation, please refere...
-
Step 1. Install Oracle XE 11g 1. Download Oracle XE (oracle-xe-11.2.0-1.0.x86_64.rpm.zip) from Oracle official website. You need an accoun...
-
Prepare the environment Before configure and compile R source code, I did the following updating of CentOS in order to support R capabilitie...