camera settings – “Record location data” gets switched off sometimes, why?

I want to record GPS coordinates for all of the pictures I take with my Nikon D5300.

Unfortunately, from time to time, after coming back from a photographing expedition, I realize that none of the pictures of the last few days have location information. Looking at the camera’s settings, I see that “Record location data” is set to “Off”, even though I am 100% sure I never switched it off.

When that happens, I cry for a few minutes then switch it back on, and hope it will last a bit longer.

I could check the setting every morning, but that would take time and I would rather avoid loosing a day’s worth of location data.

Question: Why does “Record location data” gets switched off?
If it is when a particular event happens, or after a certain number of days, I can try to mitigate the problem.

Note:

  • I removed the battery for a night to charge it, and upon putting the battery back into the camera, “Record location data” was still on, so it is probably not the reason.

Canon EOS M100 won’t record videos

I was using my Canon EOS M100 in recording a video. It suddenly stopped recording without me pressing the red record button. When I tried to record again, it creates a continuous beeping sound and it won’t record anything anymore. I tried checking the memory card and deleted files. I also took out the battery and put it in again. Nothing seemed to work. Would you anyone know how to fix it?

amazon web services – Is Domain A Record pointing to Elastic IP prone to Attackers?

There is no additional risk putting your instance A record into DNS. If you have a load balancer then you should use that CNAME / Alias record instead, but if you don’t already have or need a load balancer then you don’t need to create a load balancer just for the sake of hiding your A record.

Personally I use CloudFlare’s free plan, so my DNS records point at CloudFlare, which passes traffic on. I whitelist only CloudFlare’s IP addresses in my AWS security groups, plus my static home IP.

Everything on the internet is probed by attackers regularly, and IP addresses are public. You need to secure your server appropriately.

unity – Making animations not smooth while using Record button

In my 2D sidescroller game, I want to separate the animations for the head and the body of my character.

While idling, my charcter’s body bounces slightly up and down (kind of a breathing motion). Thus, the head should keep up.
However, when I press Record and make adjustments for the head, the head moves up and down smoothly instead of following the body frame by frame.

How can I remove the smooth transitions from one position to the other?

Here is a screenshot from Unity demonstrating the hierarchy and the animation keyframes.
enter image description here

sound – ALSA library pops error when trying to record audio through python 3.6.5

I started using Ubuntu two days ago in order to dockerize my application. The application works without any issues on Windows 10. My ubuntu version is 20.04. On running my application when the record audio button is invoked the following error shows up. I would be really grateful for any help.

The error is shown below:

ALSA lib pcm_dsnoop.c:641:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dsnoop.c:641:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1089:(snd_pcm_dmix_open) unable to open slave

This is the code I am using to record audio, the logic is not wrong and all the variables are correctly assigned, this is just a snippet of the code so some variables might seem vague.

p = pyaudio.PyAudio()
stream = p.open(format=sample_format,
                    channels=channels,
                    rate=fs,
                    frames_per_buffer=chunk,
                    input=True)
    frames = ()  # Initialize array to store frames
    for i in range(0, int(fs / chunk * seconds)):
        if( fee =="T"):
            data = stream.read(chunk)
            frames.append(data)
        else:
            print("End dabaya 1")
            break
    # Stop and close the stream 
    stream.stop_stream()
    stream.close()
    # Terminate the PortAudio interface
    p.terminate()

    print('Finished recording')

    # Save the recorded data as a WAV file
    wf = wave.open(filename, 'wb')
    wf.setnchannels(channels)
    wf.setsampwidth(p.get_sample_size(sample_format))
    wf.setframerate(fs)
    wf.writeframes(b''.join(frames))
    wf.close()

database design – When should I reference the User record or User Profile record

I know it is a common paradigm to separate tables when building a User profile. For example, having a user table, and another table called user_profile with a foreign key to the user table.

My understanding is that the user table is better for sensitive user account data or authentication data, such as email, password, user type etc. The Profile table could have additional data of that user like first name, last name, date of birth and more.

But, what about other data that can be related to the user, and can also be modeled with a table. Some examples could be Payments and Transactions. My first guess is to link those to the profile table and that way I don’t have to make any joins just to have Transactions and the name of User together (which the user table does not have). Linking to the profile, I have the user info and the Transactions. But then, when is it useful to link to the user table? What are the common paradigms?

Thanks in advance!

oracle – How do I create a PL / SQL statement that uses a record according to a rule?

Hi,

I am very new to Oracle. I have to create one procedure with some kind of FOR or FOREACH (To speak better) that searches and groups data.

example::

Nesta query:

SELECT
    FIN.NUFIN
    ,FIN.RECDESP
    ,FIN.NURENEG
    ,REN.NURENEGORIG
    ,FIN.DHBAIXA
    ,FIN.CODTIPTIT
FROM
    TGFFIN FIN
    LEFT JOIN TGFREN REN ON REN.NUFIN = FIN.NUFIN
WHERE
    FIN.NURENEG IS NOT NULL
ORDER BY
    FIN.NURENEG
    ,FIN.RECDESP
    ,FIN.NUFIN

I have this return:

Insert picture description here

Where:

  • NURENEG is a series of invoices.
  • NURENEGORIG – is a late paid invoice from NURENEG.

I need a set that the NURENEG group takes and another set that takes NURENEGORIG and shows it in the set that belongs to the associated NURENEG set.

How can i do it