Docking station for USB video recorders

Docking station for USB video recorders – Super User

japan – What does “Shin” in a Japanese train station name mean?

What usually happens is that originally, there is a station named X (which may or may not be named after the city where it is located). At some point it is decided that the area needs a new station, and that the new station shall just be named “Shin-X”, which should be understood as meaning “the new X”.

Sometimes the reason why a new station is necessary is that a new Shinkansen line to the area is planned and it is determined that the existing station is not suitable to accomodate it. This is what happened in Shin-Osaka for example: the area around Osaka station did not have enough room for the necessary developments.

There can be many other reasons why a new station is needed, however. In the case of Shin-Sapporo, it was to serve a new urban development (which incidentally was also named Shin-Sapporo). An interesting one is Shin-Rifu (in Rifu town, near Sendai) which was established when the Tohoku Shinkansen started operating, not because the Shinkansen actually goes to this station, but to accomodate employees and visitors of the neighbouring Shinkansen rail yard. The Japanese wikipedia page of a station usually has a “History” section where some background information about its establishment is given.

And sometimes Shin is just part of the “actual” name of the station, as with Shintoku station (in Shintoku city, Hokkaido).

amazon web services – “This operation requires an interactive window station” error when launching GUI via jenkins on aws windows instance

I have a windows ec2 instance which runs a build server for a unity game, controlled by jenkins.

When running unity with the -batchMode command, I can make the game build successfully.

I’d like to run some automated tests inside unity, which require the physics system to be running, which can’t happen in batch mode. If I remove that command line parameter, I get this error:

<I> Failed to get cursor position:
This operation requires an interactive window station.

I know the GPU is powerful enough to run the game – if I remote desktop in, then I can run it at 30fps.

How do I get my ec2 instance to run a “window station” to make this launch successfully?

airport transfer – Best way to get from Laguardia to Penn Station at 10:30pm (and back)?

I live right near Penn Station. This is how I do it.

I take the the Long Island Railroad (LIRR) from Penn to Woodside. That’s a 15-minute journey, max, and the trains leave about every 20 minutes, max. If you buy a ticket before you get on the train, it’s about $8.

Then, I take the LaGuardia link from across the road at Woodside ($2.75, but you have to buy it in advance using the machine thingie at the bus stop). That’s about another 20 minutes. It runs 24 hours a day, 7 days a week.

If things are dire, I take an Uber or whatever car-service from Woodside. There are usually some waiting. The important thing is that the train gets you to the other side of the river and saves oodles of time. Timing it well, I’ve done this trip in 45 minutes, but I wouldn’t rely on that.

For Newark, I take New Jersey Transit to Newark Airport from Penn, and then Air Train.

For JFK, the LIRR to Jamaica and AirTrain.

I’ve stopped taking taxis to the airport at all, because mass transit is always, always, faster.

Create Your Own Internet Radio Station With Icecast

Create Your Own Internet Radio Station With IcecastIn this tutorial we’ll show you how to setup your very own Internet radio station using Icecast.

Icecast is a flexible, FOSS server that allows you to stream sound and music both to and from the server. Streaming to the server can be done via a music playlist, live broadcast, or relay from another server. For example, there is an iPhone app (Icefall) which simply streams your phone’s microphone input to your Icecast server.

In this scenario, we’re going to use a playlist of music as our source.

Streaming from the Icecast server is the client connection where users listen. Here we’ll use VLC on an iPhone to listen to the stream.

I’m using a brand new Debian 10 VPS which I’m calling “caster.lowend.party”. We’ll install two products:

  • Icecast, which is the server
  • Ices, which is the streaming provider that will server our playlist to the serve

Install icecast via apt:

apt-get update
apt-get -y install icecast2 ices2

Starting out, icecast does not need much configuration – just the server name and passwords. So when asked if you want to configure icecast, say “yes”. Use the hostname for the server name and pick good passwords.

Icecast should start automatically. It’s a normal systemd service so you can make sure it’s up with:

systemctl start icecast

If you ever need to reconfigure icecast, you can use

dpkg-reconfigure icecast

I’m going to stream one of my favorite old time radio shows, Speed Gibson of the International Secret Police. It’s available for free (not copyrighted) on archive.org in Ogg Vorbis format.  Note that ices 2.x only supports Ogg Vorbis.  The older 0.x format supports mp3, but it’s legacy now so I won’t be covering it.  If you want to install that, you’ll need to manually build ices from source.

There’s no need to run ices as root, so I created a user (raindog308) and then setup the playlist in my home directory.  The playlist file (a text file) is just a list of tracks in the order in which to play them.

$ cd /home/raindog308
$ mkdir SGISP 
$ cd SGISP
$ wget 'https://archive.org/compress/SGISP19391202_201708/formats=OGG%20VORBIS&file=/SGISP19391202_201708.zip'
$ unzip *.zip
$ ls *.ogg | sort -n | sed 's#^#/home/raindog308/SGISP/#' > playlist.txt

That sed fanciness puts the full path to each track into the playlist, which is necessary:

raindog308@caster:~/SGISP$ head playlist.txt 
/home/raindog308/SGISP/SGISP_1937-01-02.ogg
/home/raindog308/SGISP/SGISP_1937-01-09.ogg
/home/raindog308/SGISP/SGISP_1937-01-16.ogg
/home/raindog308/SGISP/SGISP_1937-01-23.ogg
<snip>

Start by copying the example file:

cp /usr/share/doc/ices2/examples/ices-playlist.xml /home/raindog308

Here are the changes I made, bolded. I removed comments to make things easier to read.

<ices>
  <background>1</background>
  <logpath>/home/raindog308</logpath>
  <logfile>ices.log</logfile>
  <loglevel>4</loglevel>
  <consolelog>0</consolelog>

I set ices to run in the background, and I pointed the ices logfile to my home directory.

<metadata>
  <name>Speed Gibson of the International Secret Police</name>
  <genre>OTR</genre>
  <description>Speed Gibson of the International Secret Police</description>
</metadata>

The comments in the file say the metadata section isn’t used, but you’ll see it in the web interface.

<input>
  <module>playlist</module>
  <param name="type">basic</param>
  <param name="file">/home/raindog308/SGISP/playlist.txt</param>
  <param name="random">0</param>
  <param name="restart-after-reread">0</param>
  <param name="once">0</param>
</input>

Note that “file” parameter pointing at our playlist.txt

<instance>
<hostname>caster.lowend.party</hostname>
<port>8000</port>
<password>complex-password</password>
<mount>/SGISP</mount>
<reconnectdelay>2</reconnectdelay>
<reconnectattempts>5</reconnectattempts>
<maxqueuelength>80</maxqueuelength>
<encode>
<nominal-bitrate>64000</nominal-bitrate> <!-- bps. e.g. 64000 for 64 kbps -->
<samplerate>44100</samplerate>
<channels>2</channels>
</encode>
</instance>

Note the hostname, port, and password, which is what ices uses to connect. Also, the “mount” will form part of the URL and is the “name” of the stream.

Now start the stream with

raindog308@caster:~$ ices /root/ices-playlist.xml
raindog308@caster:~$ ps -ef | grep ices
raindog+ 2196 1 6 18:57 ? 00:00:00 ices2 ices-playlist.xml
raindog+ 2202 1979 0 18:57 pts/1 00:00:00 grep ices

As you may recall, we configured it to run in the background and we can see that it is doing so.

At this point, we’re up and streaming. Let’s go to the Icecast page on our server and see what’s going on.  We surf to http://caster.lowend.party:8000 and find this page:

If you click Administration and enter ‘admin’ and the password you selected, you can see statistics and do some limited administrative tasks like listing clients, etc. but the main configuration is done in the .xml files.

I’m going to use VLC on my iPhone to connect and listen. It’s very easy to configure.  After starting the VLC app, tap Network at the bottom.  You’ll see a screen like this:

Tap Open Network Stream.  You’ll be presented with a page where you can enter the URL of your stream.  Note that you must include the http://, the port number (8000), and the mount.

Once you’ve entered the URL, hit Open Network Stream and you will begin streaming.

 

raindog308

I’m Andrew, techno polymath and long-time LowEndTalk community Moderator. My technical interests include all things Unix, perl, python, shell scripting, and relational database systems. I enjoy writing technical articles here on LowEndBox to help people get more out of their VPSes.

privacy – Can I determine whether my phone probes base transmission station (BTS) without a SIM card?

This question is related to another inquiry on this site: Can Android phone running without SIM card be tracked (localized) by police?

Accepted answer claims that:

Without a SIM, your cell phone will not normally transmit data to
local base stations, but if you make an emergency call, it will
identify itself with the cell tower by sending its IMEI

But no solid evidence is provided. Also, what does “normally” mean? Do iphones behave differently in that regard than android / harmonyOS / whatever? Or does the software not matter at all, and it’s only due to manufacturer ?

Ideally, I’d like to know how specific model X of a brand Y behaves in a situation like that, or at least if there are general approaches taken by manufactures.

I know about existence of phones that prioritize security and privacy (at least in marketing) like Librum 5 or Pinephone, with physical kill switches. Also, I’d assume that mainstream manufactures may disable probing for BTS without SIM card while low on power in software or simply after clicking “disable mobile data” (but I honestly doubt that).
My problem is that I’m struggling to find any credible source that researched this topic.

Do I have to use IMSI catcher to determine for sure? Or can I simply ask my cellular network provider to share this info ?

Is Seiryu Miharashi Station the only train station where passengers cannot enter or exit the platform?

I’m reading about the Seiryu Miharashi Station in Japan, which is a recently (2019-03-19) opened train station where passengers cannot enter or exit the platform, except via the train, as the platform’s sole purpose is the view to the nearby river:

enter image description here

Is Seiryu Miharashi Station the only train station where passengers cannot enter or exit the platform?

python – Weather station API – Learning Project

My program takes data from a weather station API and creates a dictionary.


Here are a few things I want to know:

  1. Is it normal to create functions just to store variables, lists, dictionaries, tuples?
  2. Is it normal to unpack a function to a tuple? I did it, but it felt overkill. It seemed much more straight forwarded to assign the lists to outside function.
  3. Can any of this be done in a more efficient way?
  4. If I would want this done in OOP with Classes, whats would be the best way?
def parameters():
    #city list to get weather for. expand if required.
    city_list = ('vilnius','kaunas','klaipeda', 'siauliai', 'panevezys', 'alytus')
    
    #weather parameters to take from JSON. expand if required.
    weather_parameters = ('airTemperature','conditionCode')
    
    #push a list of defined cities
    return city_list, weather_parameters

#Tuple unpack the parameters
city, parameters = parameters()

def weather_dict():
    #create empty dictionary for weather
    myDict = dict()
    
    #each city from city() is k1. each weather parameter from parameters() is k2 for each k1 and assigned a value of 0.
    #example - {'vilnius': {'airTemperature': 0, 'conditionCode': 0}
    myDict = {k1: {k2: 0 for k2 in parameters} for k1 in city}
    
    return myDict

#
def date_tomorrow():
    import datetime
    
    #get the date for tomorrow, make it a string and add 06:00:00
    tomorrow = str(datetime.date.today() + datetime.timedelta(days = 1)) + ' 06:00:00'
    
    #returns the weather for tomorrow
    return tomorrow

#
def find_forecast(city):
    import requests
       
    #call API. Response link is based on city()
    response = requests.get('https://api.meteo.lt/v1/places/'+city+'/forecasts/long-term')
    item = response.json()
    
    #get the length of JSON list
    count_items = len(item('forecastTimestamps')) - 1
            
    #search each list element for tomorrow's date
    for x in range(0,count_items):
        
        if item('forecastTimestamps')(x)('forecastTimeUtc') == date_tomorrow():
            
            #break For loop if list element is matching tomorrow date
            break
        
    #return matched JSON array as a dict
    return item('forecastTimestamps')(x)

    #!IMPORTANT! function calls each city at a time. 
    #when calling function its required to input city as string, or city() function and specify list item list ().
    #example - find_forecast(city()(0))


# 
def weather():
    #assign variable the empty dictionary from weather_dict() function
    weather = weather_dict()
    
    #for each city() add values to dictionary and assign one of parameters()
    for x in range (0,len(city)):
        for t in range (0,len(parameters)):
            weather(city(x))(parameters(t)) = find_forecast(city(x))(parameters(t))
            
    #push dictionary with new values
    return weather

weather()

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123