Let's say you have a directory where there are too many files/folders having similar names and you want to exclude them during an ls operation. The command to use is as follows:
ls --ignore="PATTERN*"
Below is an example where there are folders named run_* and other files. The results obtained after typing plain ls and with the exclude options are shown below:
Ibn Jubayr traveled almost 150 years before Ibn Battuta started his epic journey around the world. In his book, Ibn Battuta has used Ibn Jubayr's book as a reference for the cities he has already wrote about.
.... to be completed
References:
Roland Broadhurst, "The Travels of Ibn Jubayr", Goodword Books, 2013 (first published in 1952)
I had the chance to capture time lapse photos during two recent hikes. Here are the outcomes:
King's Mountain: Here the camera is positioned westward towards the Pacific Ocean
Table Mountain: Overlooking the Columbia Gorge in a very cloudy morning. Once we got back to the trailhead, the clouds were completely gone.
For reference, the code I was trying to compile was the following ( a simple zipping and reading from a zipped file).:
#include <fstream>
#include <iostream>#include <boost/iostreams/device/file.hpp>#include <boost/iostreams/filtering_streambuf.hpp>#include <boost/iostreams/filtering_stream.hpp>#include <boost/iostreams/copy.hpp>#include <boost/iostreams/filter/gzip.hpp>usingnamespacestd;usingnamespace boost::iostreams;intmain(){//The following code decompresses data from a file and writes it to standard output.ifstream file("hello.txt.gz",ios_base::in |ios_base::binary);
filtering_streambuf<input> in;
in.push(gzip_decompressor());
in.push(file);
boost::iostreams::copy(in,cout);
boost::iostreams::filtering_ostream geometry;
geometry.push(boost::iostreams::gzip_compressor(boost::iostreams::gzip::best_compression));// Generating a Zip filestring filename ="example1.txt.gz";
filtering_ostream out;unsignedint compressionLevel = boost::iostreams::gzip::best_compression;
out.push(gzip_compressor(compressionLevel));
out.push(file_sink(filename.c_str(),std::ios::binary));
out <<"This is a gz file\n";
out <<"This is the second line\n";}
How I solved this problem is as follows:
1) I already had the following setting in the CMakeList.txt file:
In Finite-Difference Time-Domain (FDTD) simulations, source injection needs to be smoothly done in order to suppress the undesired high frequency components excited during turn on. To visualize this problem, we provide two cases with and without turn-on source injection.
On the right simulation, total field/scattered field injection is done using the cosine excitation without any smooth turn-on which effectively mimics the step function operation. This results in the injection of high frequency components creating the ripples and fluctuations in the signal propagating in the domain.
On the contrary, the left simulation has a smooth turn of by using a half Hanning window ramp-up which effectively acts as low pass filter for the injected source. As a result, the signal propagating in the domain is free of high frequency components, hence no ripples and fluctuations.
Finally, we had an opportunity to have a family hike this summer. My son, Omer and my daughter, Meryem were with us as well. Omer was walking by himself and Meryem was comfortably carried in my back. After a pleasant hour of walking starting from the south trailhead, we reached to the top of Neahkahnie Mountain. The view of the Nehalem Bay and the Pacific Ocean was stunning. Omer was happy to be at the top and couldn't help but took his selfie.
Seems so simple in the GPS track log. But in reality, it poses both physical and mental challenges to walk up to Mt. Hood. And definitely, it requires well studied planning from what to have in your backpack to what to eat before the start etc. After the attempt, I now realize that I wasn't well prepared for the challenge. My crampons were not fitting very well and at every step my mind was preoccupied whether they would get out of my shoes or not. The glasses I brought and started using after 2500 m where not fog proof. So, with the influence of sweat and breath warmth, the glasses became foggy making me half blind. After 2500 m, the wind was strong and the weather got really cold. I didn't have anything to cover my face and it got really cold. Eventually, I started to have headache which grew only bigger. I started to feel so sleepy and they told me that I was going through altitude sickness. Hence I needed to get down as quick as possible. I had to abort the climb. I was ~100 m away from the Hog's Back. Hopefully, next time with better preparation I can do better than this one.
Here are some photos from that day:
Mt. Hood right before the sunset as seen from Timberline Lodge. Getting ready for the midnight walk-up.
The walk-up starts around 1 am and the trail is already full of fellow hikers lighting up the trail.
Sun is rising behind the Mt. Hood. Since we are in the south-west side, we are left in the shade. Mt. Jefferson is seen at the background.
At 2915 m (9563 ft), altitude sickness kicks in. I have a very bad headache and drowsiness. Cannot continue further, need to turn back. This is the last point I was able to reach close to the Hog's Back.