Historical Business Documents (1905-1930) Colorado

My family owned a book store in Aspen from around 1905 to around 1930, and I’m trying to find whatever documentation I can on it. The Aspen Historical Society has a few city directories and a lot of phone books, which I have analyzed, but I’m wondering if any of the legal documents for the business might still be available – state tax filings, federal tax filings, letters of incorporation, that sort of thing. I have no idea how to even start looking for something like that.

Does a business, when it is shutting down, have to file some kind of paperwork with any of the various governmental agencies? Something to say “don’t get confused when I don’t send you any taxes next year”?

All topic

How to auto-left justify text in personal kindle documents

I use the ‘Send to Kindle’ for Google Chrome extension to send longform articles to my Kindle. It works great, except that it seems to force justify text flush both left and right. I have a vision problem and read at the largest text size, which creates unsightly gaps in the text.

This post: How can I left justify text on my Kindle? covers how to handle it for existing books, but I am wondering if there is a solution for documents scraped from the web, ideally as part of an integrated browser extension.

If not browser extension based, what is the suggested workflow for web article → ebook creation software → kindle personal docs?

All topic

How to sell a project to your competitor? Documents, Warnings, Considerations

I’ve created a simple SaaS (Software as a Service) project that helps small towns improve their tourism websites and apps easily, fast and paying a small fee each month.

Why I want to sell it?

I’m moving to the Netherlands and I will not have enough time to develop it. It is for small towns, so there will be many problems with meetings, and so on.

Why to my “competitor”?

  • They are bigger and can offer this service.
  • They trust me, tried to hire me a couple of weeks ago.
  • This project can generate synergies with their business model.
  • Got access to the CEO.

What are my concerns?

I want to propose it, but I don’t know how to start. I have the design, the development and examples. The system is straightforward and I’m creating documentation to simplify/explain it even more.

I don’t want to get copied, although that would require a good investment on their side, so I think that it isn’t very smart.

  • What should I give them?
  • How can I see if there’s real interest?

All topic

Unable to Open previous versions of Documents in SharePoint 2013

This issue started happening yesterday.

Users are reporting that if they try to open an Office document this works fine. However, if they try to open a previous version they get either a blank application open with no document, an error saying it cannot open the file(which looks like it’s generated from the Application, not SharePoint) or they are continually prompted for a login and password.

This is happening on all sites using all browsers. So previous resolutions on Technet which suggest this is an IE issue do not apply here.

As far as I can tell, no changes have been made to the Farm and no security updates have been rolled out.

The ULS Log didn’t provide anything useful and I’m of a mind that this is an issue with Office rather than SharePoint but I cannot prove it.

If I download a local copy of an older version of the document it still does not open, which further strengthen my belief this is external to SharePoint.

I installed Libra Office to a test machine and if I try to open an older version of a Document using Libra it works.

I don’t know if this is significant but I will mention it anyway. The latest version of the file opens in the Browser, but the previous versions attempt to open in the Client Application.

Any help/suggestions gratefully received….

Dan.

All topic

Can we use doc2vec to detect outlier documents?

I have a set of documents and I want to identify and remove the outlier documents. I am just wondering if doc2vec can be used for this task.

Or are there any recently evolved, promising algorithms that I can use for this task?

EDIT

I am currently using a bag of words model to identify outliers.

All topic

Delve- How to turn off “show documents” option at tenant level

We recently enabled Delve globally, but we want to disable some of the features in Delve and our main concern is “Documents”.

We want to disable it at tenant level so that individual users cannot view files/documents of other users in “Delve”.

We can achieve this individually at their respective profile but is there a way that we can achieve this globally?

All topic

Program to count common words in documents

I finished my first program in Ruby and I would like to share it with you so I can get some suggestions or recommendations. I’d really like to hear them because I am learning and I want to have a solid base. The program has a basic function: it counts the 15 more common words in a document. It is useful in literary studies because it allows the user to know which words is repeating more times, maybe without noticing it. This is how the program works:

The user is able to drag the document into the terminal and to explicitly write the path. Then, the script uses the gem ‘yomu’ to read it. It reads pdf and docx as well as other files that aren’t important for me now. After that, the script makes an array of the words of the document. At this point, the script removes words like prepositions or connectors which aren’t important to the user. Finally, it outputs the results in a table through a gem called ‘hirb’.

The scripts also offers the possibility to modify the list of words that are going to be removed from the original words. For example, if a document has “Written by Rick Deckard” in every page as a footnote, the user is able to include the words “Written”, “by”, “Rick” and “Deckard” in the list and they aren’t going to be counted. The user can modify the list and save the changes for that session or for ever.

So, there are three scripts: “wordsworth.rb”, “core.rb”, “forbidden_list_modify_eng.rb”. The former script is in the main directory, while the other two are in the path ‘languages/english’. That’s because I adapted the program to spanish and catalan as well. Anyway, the main script is “wordsworth.rb”, which asks the user their language and redirect him or her to the chosen language folder (english, in this case). Once in the english section, the script calls “core.rb”, which is the main script of the english section. It means that this scripts is going to do the chief task of the program: count the words and output the results. However, “core.rb” offers the user to modify the list, and this option redirects the user to the third script “forbidden_list_modify_eng.rb” (sorry for the name).

Now I am going to post the three scripts and explain them in detail:

#needs to install 'yomu' and 'hirb' gems

require 'hirb'
require 'yomu'
require 'fileutils'

require_relative "languages/english/forbidden_list_modify_eng.rb"
require_relative "languages/english/core.rb"

def language
  puts "Choose your language:"
  puts "1. Català"
  puts "2. English"
  puts "3. Castellano"
  idiom = gets.chomp.to_s
  case idiom
  when "1", "català", "Català", "CATALÀ"
    system "clear" or system "cls"
    menu_principal_cat
  when "2", "english", "English", "ENGLISH"
    system "clear" or system "cls"
    main_menu
  when "3", "castellano", "Castellano", "CASTELLANO"
    system "clear" or system "cls"
    menu_principal_cast
  else
    system "clear" or system "cls"
    puts "You have to choose a language in the list."
    puts "-----------------------------------------------------"
    language
  end
end

language()

This script is pretty straight-forward, except for the last part, which I’ll explain later. It first requires the needed gems and calls the needed scripts. After that, a menu asks the language to the user so it can redirect him or her to the correct language. We suppose the user choose 2 and gets redirected to the function “main_menu”, which lands the user to the “core.rb” script:

def tutorial
  puts "The program works like that... (blah blah blah)"
end

def main_menu
  retrieve_forbidden_words = File.read('languages/english/english_list.txt')
  english_list = retrieve_forbidden_words.split("n")
  puts "Choose what you want to do by writing its number:"
  puts "1: Analyze a document."
  puts "2: Modify the list of forbidden words."
  puts "3: Help me to use this program."
  puts "4: Exit the program."
  main_choice = gets.chomp.to_s
  case main_choice
  when "1"
    system "clear" or system "cls"
    english(english_list)
  when "2"
    system "clear" or system "cls"
    modification_menu
  when "3"
    system "clear" or system "cls"
    tutorial
  when "4"
    exit
  else
    main_menu
  end
end

def english(received_list)
  puts "Drag in here the document you want to analyze:"
  provided_path = gets.chomp.to_s.tr("'", "").rstrip
  execution(provided_path, received_list)
end

def execution (provided_path, forbidden_list)
  data = File.read provided_path
  doc = Yomu.read :text, data

  text_listed = doc.to_s.downcase.gsub(/p{^Alnum}/, " ").split(" ")
  pruned_text = text_listed - forbidden_list

  frequency = Hash.new 0
  pruned_text.each { |word| frequency[word] += 1 }
  sorted_frequency = Hash[frequency.sort_by{ | word, times | -times }[0..20]]
  toptimes = sorted_frequency.values
  topwords = sorted_frequency.keys

  puts Hirb::Helpers::AutoTable.render(sorted_frequency, headers: {0 => 'Word', 1 => 'Times'}, description: false)
  puts "-----------------------------------------------------"
  main_menu

end

In the “main_menu” the user can choose to analyze the document. If so, the script asks the path of the document in the function “user_doc_path”, which takes also the list of forbidden words in English from a .txt file which comes in the program by default. It is a simple file named “english_list.txt” which contains all the words to be removed from the document separated by a line break. So, the user provides the path of the document and the script opens it using ‘yum’ gem and sort it to get the words in an array. After that, the script creates a hash that stores the number of times each word is repeated throughout the text. Then, the program orders the hash, reverses it and get the 15 top results which finally output in a table provided by ‘hirb’ gem.

If the user choose to modify the list of words that are removed from the document, he or she is redirected to the “forbidden_list_eng_modify.rb”:

def remove_words(list_to_remove)
  puts "Write the words you want to remove from the list. If there are more than one, divide them by commas."
  remove_propose = gets.chomp.tr(" ", "").to_s.split(",")
  new_list = list_to_remove - remove_propose

  File.new("languages/english/english_backup.txt", "w")
  File.open("languages/english/english_backup.txt", "w+") do |f|
  f.puts(list_to_remove)
  end

  File.open("languages/english/english_list.txt", "w+") do |f|
  f.puts(new_list)
  end

  puts "The words have been removed. Do you want to see the new list? [Yes/No]"
  showit = gets.chomp.tr(" ", "").to_s
  case showit
  when "Yes", "yes", "Y", "y"
    system "clear" or system "cls"
    print new_list
    puts "-----------------------------------------------------"
    modification_menu
  when "No", "no", "N", "n"
    system "clear" or system "cls"
    modification_menu
  end
end

def add_words(list_to_add)
  puts "Write the words you want to add to the list. If there are more than one, divide them by commas."
  add_propose = gets.chomp.tr(" ", "").to_s.split(",")
  new_list = list_to_add + add_propose

  File.new("languages/english/english_backup.txt", "w")
  File.open("languages/english/english_backup.txt", "w+") do |f|
  f.puts(list_to_add)
  end
  File.open("languages/english/english_list.txt", "w+") do |f|
  f.puts(new_list)
  end

  puts "The words have been added. Do you want to see the new list? [Yes/No]"
  showit = gets.chomp.tr(" ", "").to_s
  case showit
  when "Yes", "yes", "Y", "y"
    system "clear" or system "cls"
    print new_list
    puts "-----------------------------------------------------"
    modification_menu
  when "No", "no", "N", "n"
    puts "-----------------------------------------------------"
    modification_menu
  end
end

def modification_menu
retrieve_forbidden_words = File.read('languages/english/english_list.txt')
original_list = retrieve_forbidden_words.split("n")

puts "This list contains all the words that are automatically removed from the document you want to analyze. The words in it are widely-used words with no special meaning like connectors or prepositions. However, you can modify the list as you want."
puts "1: Show all the words of the list."
puts "2: Remove words."
puts "3: Add words."
puts "4: Save the new list for other sessions."
puts "5: Return to the main menu."
list_choice = gets.chomp.to_s
case list_choice
when "1"
  system "clear" or system "cls"
  print original_list
  puts ""
  puts "-----------------------------------------------------"
  modification_menu
when "2"
  system "clear" or system "cls"
  remove_words(original_list)
when "3"
  system "clear" or system "cls"
  add_words(original_list)
when "4"
  backup_existence = File.file?('languages/english/english_backup.txt')
  if backup_existence == TRUE
    File.delete('languages/english/english_backup.txt')
    system "clear" or system "cls"
    puts "Changes has been succesfully saved."
    puts "-----------------------------------------------------"
    modification_menu
  end
  if backup_existence == FALSE
    system "clear" or system "cls"
    puts "The list hasn't been modified, so it's nothing to save."
    puts "-----------------------------------------------------"
    modification_menu
  end
when "5"
  system "clear" or system "cls"
  main_menu
else
  system "clear" or system "cls"
  modification_menu
end
end

This script shows the user a menu which offers the possibility of showing the list, adding or removing some words and saving the changes for ever. The first option, show the complete list, just prints the output of the “english_list.txt”, which is the file where the words are stored. The “add_words”, as the “remove_words” function, asks the user to write the words that want to get removed separating them by commas. The script just removes the provided array from the default list. At this point, the script creates a “english_backup.txt” which is the back up in case the user closes the program without saving. The modified list is named “english_list.txt”, and it works as the new default list, so the user can analyze more texts in the same session with that list. If the user chooses to save the changes, the “english_backup.txt” is destroyed and the new “english_list.txt” is the main list. If the user exits, the “english_backup.txt” will get its former name (“english_list.txt”) and the unsaved list file will be removed. This is achieved in the former script, “wordsworth.rb”, when END is detected it proceeds to remove the unsaved file and restore the backup as main list.

All topic

How to hide the Retention Warning in Office Documents

I’d like to know how I can hide (or disable) the retention warning that appears when somebody downloads a Microsoft Office document via Sharepoint, which is about to expire in the near future.
People in my company get confused by it.
In other words: When File X gets copied to a local hard drive, the expiration date of the new (copied file) needs to be reset.
Is that even possible?

All topic

How can I produce a list of all external users, and documents shared with them?

I’d like to audit our Google Drive, to review a list of all our documents shared to users external to our account. Ideally I’d like to see a list of external users, perhaps with a count of shared documents, then be able to drill down into a list of documents shared with that user.

There’s an old post about this, however the Marketplace product appears to no longer exist.

Does anyone have any suggestions about how I might go about this?

Could the Google Drive API be an option?

All topic

Deleting some documents in MongoDB from VB.net

I have documents in MongoDB with this fields:

{"_id":{"$oid":"5b9fd501e5e8d3b0183d90e9"},"Code":"17/AR","Value":"468"}
{"_id":{"$oid":"5b9fd4ffe5e8d3b0183d90e1"},"Code":"18/AR","Value":"125"}
{"_id":{"$oid":"5b9fd4ffe5e8d3b0183d90e1"},"Code":"16/JE","Value":"873"}
{"_id":{"$oid":"5b9fd4ffe5e8d3b0183d90e1"},"Code":"18/JE","Value":"15"}

I need delete all the documents with the “Code” */JE

My code is the following:

Dim client As MongoClient
Dim db As IMongoDatabase

client = New MongoClient("mongodb+srv://XXXX:XXXX!@XXXX.mongodb.net/test?retryWrites=true")
db = client.GetDatabase("db")

''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'COLECCION
''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim collection As IMongoCollection(Of BsonDocument) = db.GetCollection(Of BsonDocument)("TEST")

''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'DELETE
''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Dim objDeleteResult As DeleteResult
Dim fltr = Builders(Of BsonDocument).Filter.Eq(Of String)("Code", "/JE")
objDeleteResult = collection.DeleteMany(fltr)

How I can configure the filter to delete only the documents with de “Code” “*/JE”?

All topic