Return to site

A &bittersweet& Lesson On Copyright

broken image


  • The new Polo Road facility is part of a $78 million project that also includes a parking garage and dining areas.

    The post Texas A&M Opens Second Rec Center To Serve Campus Needs appeared first on Texas A&M Today.

    Texas A&M Opens Second Rec Center To Serve Campus Needs
  • The aerospace engineering professor and director of the Hagler Institute for Advanced Study aims to preserve what's great about the university, and where possible, find ways to make it better.

    The post John L. Junkins Answers Call To Serve As Interim Texas A&M President appeared first on Texas A&M Today.

    John L. Junkins Answers Call To Serve As Interim Texas A&M President
  • A Texas A&M geography professor is part of a research team that found efficient ways to track the virus and pinpoint spreading clusters.

    The post New Geographic Monitoring Technique Detects Early COVID-19 Cases appeared first on Texas A&M Today.

    New Geographic Monitoring Technique Detects Early COVID-19 Cases
  • The internationally renowned anti-racism activist gave a virtual keynote address for the university's 14th Annual Martin Luther King Jr. Breakfast.

    The post Diversity Educator Jane Elliott Tells Texas A&M Audience There's ‘No Such Thing As Race' In Fiery Address appeared first on Texas A&M Today.

    Diversity Educator Jane Elliott Tells Texas A&M Audience There's ‘No Such Thing As Race' In Fiery Address
  • The three-step process is mandatory for students who live on campus or work for the university. All Aggies are strongly encouraged to get tested.

    The post Deadline For Student COVID-19 Testing Is Friday appeared first on Texas A&M Today.

    Deadline For Student COVID-19 Testing Is Friday
  • A Texas A&M team is using predictive models to reduce flammability in lithium-ion batteries found in smartphones and electric vehicles.

    The post Engineering A Safer, Less Flammable Battery appeared first on Texas A&M Today.

    Engineering A Safer, Less Flammable Battery
  • Drawing from personal experiences, Krystal Flores is supporting first-generation students at the Texas A&M Higher Education Center in McAllen and developing local public health interventions.

    The post Making An Impact On The Rio Grande Valley appeared first on Texas A&M Today.

    Making An Impact On The Rio Grande Valley
  • Texas A&M AgriLife researchers are using drones, big data and other high-tech methods for agricultural enhancement.

    The post Digital Agriculture Connects Dots For Crop Improvement appeared first on Texas A&M Today.

    Digital Agriculture Connects Dots For Crop Improvement
  • A Texas A&M College of Architecture-led project aims to help a small Texas town become a 'smart' city.

    The post Nolanville's ‘Smart' Future appeared first on Texas A&M Today.

    Nolanville's ‘Smart' Future
  • The student-run food pantry celebrated the additional resource with a ribbon-cutting ceremony.

    The post Texas A&M 12th Can Receives Freezer Trailer To Expand Fight Against Hunger appeared first on Texas A&M Today.

    Texas A&M 12th Can Receives Freezer Trailer To Expand Fight Against Hunger
  1. A Bola
  2. A &bittersweet& Lesson On Copyright Law
  3. A &bittersweet& Lesson On Copyright Free

Recently I upgraded some older Rails applications to Rails 3.1 and Ruby 1.9.2 (from 2.3 and 1.8.7 respectively). One post-upgrade issue was that text content had a lot of garbage showing up like â€', ’, “, etc. For example, here's an actual example from a comment in one of the applications:

Lesson

A in his younger years alongside his brother. A is the son of the Third Raikage, who groomed him for the position of the Fourth Raikage. At some point in the past, due to A not having a blood sibling who could be his tag-partner, try-outs consisting of young children were gathered in order to determine one, in keeping with a long-standing Kumogakure tradition of the Raikage having a tag-team. I think what happened is that the restoration database that we ended up using had been opened in a file/text editor. It's just a guess, and sort of irrelevant, but the text editor converted our UTF-8 characters into some other character set, like ISO-8859-1.

End of first weekteach to be happy wishes. One of my “things to do before I’m 50� is

A Bola

This should read:

One of my 'things to do before I'm 50' is

It turns out these are just special characters that were improperly encoded for utf-8. The fix is simple enough: loop through your content and replace where needed.

A &bittersweet& Lesson On Copyright Law

If your database is big, this could take a long time unless you disable callbacks. The script below highlights both how to replace the characters using Ruby and how to disable your Rails callbacks to make this script run in seconds instead of hours (depending on the complexity of your callbacks).

A &bittersweet& Lesson On Copyright Free

If you noticed, I used a regular expression for the curly close quote. This is because there is an invisible control character that is not easily copy/pasted into your code. Using [[:cntrl:]] is just an easier way to catch it.





broken image