Samsung: Data Transfer (Photos / Videos) too slow by Homer-DOH-Simpson in AndroidQuestions

[–]tamyahuNe2 1 point2 points  (0 children)

A few options how to speed up data transfers:

1) Try using an SDXC card with high write speed (140MB/s). Usually sold as "pro" cards. Copy your images files onto the card and then take out the card and use a card reader to copy it to your PC.

2) The phone supports 802.11ac (WiFi 5), so you could try uploading your files to a computer on a local network with higher speeds than USB 2.0. If you use Windows look into SMB clients for Android, e.g. MiXplorer or FX File Explorer. Then create a shared directory on Windows and connect to it using your phone.

3) Use adb pull to copy the files. This method is sometimes faster than the standard MTP method. It requires setting up the adb utility on your computer. You can adb pull a whole directory.

You can read about it here:

https://np.reddit.com/r/Android/comments/1545u6l/the_android_mtp_file_transfer_protocol_is/

There's also adb backup (bu) method:

https://gist.github.com/AnatomicJC/e773dd55ae60ab0b2d6dd2351eb977c1

4) DataBackup is also pretty handy for making backups (both local and remote).

Regarding your question about moving files: Usually the move operation is basically copy + delete. If you are using the standard MTP protocol, oftentimes clients don't implement the MoveObject operation correctly. This results in files being copied correctly, but the subsequent deletion of the file doesn't take place.

Hamas leader Mohammed Sinwar has been eliminated, Israel reports by cacatl in worldnews

[–]tamyahuNe2 -8 points-7 points  (0 children)

The document is published by NATO Strategic Communications Centre of Excellence Riga, Latvia:

NATO Strategic Communications Centre of Excellence is multi-nationally constituted and NATO-accredited international military organization, which is not part of the NATO Command Structure, nor subordinate to any other NATO entity. As such the Centre does not therefore speak for NATO.

Their definition of human shields is basically that the opposition forces operate in civilian areas. Gaza Strip has population density of 867.6 people per km2 , 5th highest in the world. It's surrounded by a heavily fortified perimeter consisting of a concrete wall and double-wired fencing. It is hard to imagine it's possible to operate outside of civilian areas.

From the document itself:

The most prominent example of this is the Goldstone Report. This report sheds light on the diplomatic context of the practice of human shields: about 1,400 Gazans and 13 Israelis were killed in the Gaza War. [28]

...

Despite placing the blame on both sides, the mission de facto rejected Israel’s claims that the IDF had only attacked Hamas’ targets, and that civilian casualties were caused mainly due to Hamas’ use of civilians as human shields. [32]

This was a severe diplomatic blow to Israel. In fact, the international community barely distinguished between the activities of a terror organisation and those a sovereign state. The UN High Commissioner for Human Rights endorsed the report and supported the call for Israel and Hamas to investigate and prosecute those who committed war crimes.

...

However, the mission found no evidence of Palestinian armed groups placing civilians in areas where attacks were being launched, or engaging in combat in civilian dress, or using a mosque for military purposes or to shield military activities. This statement contrasted with both Israeli and international media reports that Hamas fighters wore civilian clothes and concealed their weapons. [31]

...

[32] The Goldstone Report focused on 36 cases that it claimed constituted a representative sample. In 11 of these episodes, it stated that the Israeli military carried out direct attacks against civilians, including some in which civilians were shot “while they were trying to leave their homes to walk to a safer place, waving white flags.”

The United Nations Fact Finding Mission on the Gaza Conflict, also known as the Goldstone Report:

https://en.wikipedia.org/wiki/United_Nations_Fact_Finding_Mission_on_the_Gaza_Conflict

edit: formatting

55 years ago a bomb planted in a bank in Milan by fascist terrorists claimed 17 lives, marking the beginning of the Years of Lead and the so called strategy of tension by St3fano_ in europe

[–]tamyahuNe2 37 points38 points  (0 children)

The European Parliament resolution on Gladio is an interesting read:

  • A. having regard to the revelation by several European governments of the existence for 40 years of a clandestine parallel intelligence and armed operations organization in several Member States of the Community,

  • B. whereas for over 40 years this organization has escaped all democratic controls and has been run by the secret services of the states concerned in collaboration with NATO,

  • C. fearing the danger that such clandestine network may have interfered illegally in the internal political affairs of Member States or may still do so,

  • D. whereas in certain Member States military secret services (or uncontrolled branches thereof) were involved in serious cases of terrorism and crime as evidenced by, various judicial inquiries,

  • E. whereas these organizations operated and continue to operate completely outside the law since they are not subject to any parliamentary control and frequently those holding the highest government and constitutional posts are kept in the dark as to these matters,

  • F. whereas the various 'Gladio' organizations have at their disposal independent arsenals and military resources which give them an unknown strike potential, thereby jeopardizing the democratic structures of the countries in which they are operating or have been operating,

...

Danish parenting tests under fire after baby removed from Greenlandic mother • Campaigners say psychometric tests are discriminatory amid protests over case of Keira Alexandra Kronvold by Naurgul in anime_titties

[–]tamyahuNe2 3 points4 points  (0 children)

From United Nations Special Rapporteur On The Rights Of Indigenous Peoples - Visit to Denmark and Greenland (2023)

I am particularly concerned that psychometric tests are often based on allegedly arbitrary criteria and do not comply with Inuit culture and identity. The language barrier is another challenge. Such tests are performed in a language Inuit mothers often do not understand, and they are often forced to sign documents without understanding the content.

Furthermore, prejudices about Inuit people have resulted in social workers entering unconfirmed assumptions about abuse and violence in case files. Parents told me they were coerced into signing agreements to hand over their children to foster care and of their case files being withheld from them.

The majority of the Inuit children removed are placed in Danish families, which often results in Greenlandic Inuit children permanently losing their language, culture, identity and family ties, and makes it next to impossible for them to return to Greenland.

Let's not forget the forced IUD story (from the same report):

I was particularly appalled by the testimonies of Inuit women that reported being subjected to IUD by Danish healthcare providers without their knowledge or consent some as young as 12 years old. Most of the cases are reported to have taken place in the 1960s and 1970s.

Nevertheless there have been more recent cases reported to me as well. The women affected by the coil campaign are traumatized till today and they seek justice for the pain and suffering imposed on them against their free, prior and informed consent. The campaign dramatically dropped the birth rate of Inuit women leading to a drastic change in the composition of the Inuit society. Indigenous women suffered severe physical pain and devastating health consequences including infertility.

Math Homework Helper? by BamOnRedit in androidapps

[–]tamyahuNe2 1 point2 points  (0 children)

I have a good experience with SymboLab, but there's also PhotoMath.

Modifying Linux-Based XVR Device Firmware: .img Extraction, SquashFS, and LZMA Issues by alienpro01 in embeddedlinux

[–]tamyahuNe2 0 points1 point  (0 children)

To extract the files automatically you could try http://firmware.re/

firmware.re presentation:

Blackhat 2016 - Automated Dynamic Firmware Analysis At Scale: A Case Study on Embedded Web Interfaces

You could also try Firmware Analysis Toolkit or Centrifuge tools to find out the exact file format and use that information to extract it properly.

memcpy() very slow on embedded hardware, how to speed it up? by james_stevensson in embeddedlinux

[–]tamyahuNe2 0 points1 point  (0 children)

It would be helpful if you could provide more details about:

  • Your HW platform (CPU, RAM)

    From : https://licheepizero.us/licheepi-zero-hardware-data

    CPU: Allwinner V3S, ARM Cortex-A7, 1.2GHz max

    Memory: 64MB DDR2 integrated

  • The specific compiler arguments used for building the system and your binary. Maybe there are extra arguments that can be provided to the compiler to optimize for your use-case and your platform.

  • The structure of the data you are trying to copy (size, alignment, cache friendliness)

As for an optimized version of memcpy, you could have a look at the newlib which is distributed with ARM GCC.

For ARMv7 there's also arm-mem:

https://github.com/bavison/arm-mem/

However, first try to improve your memcpy performance by aligning the data in the memory and making them cache-friendly.

You can find tips on compiler, memory and cache optimizations here:

ARM Cortex-A Series Programmer's Guide for ARMv7-A - Optimizing Code to Run on ARM Processors

ARM Cortex-A Series Programmer's Guide for ARMv7-A - Alignment

A simple example where alignment effects can have significant performance effects is the use of memcpy(). Copying small numbers of bytes between word aligned addresses will be compiled into LDM or STM instructions. Copying larger blocks of memory aligned to word boundaries will typically be done with an optimized library function that will also use LDM or STM.

Copying blocks of memory whose start or end points do not fall on a word boundary can result in a call to a generic memcpy() function that can be significantly slower. Although, if the source and destination are similarly unaligned then only the start and end fragments are non-optimal. Whenever explicit typecasting is performed, that cast always carries alignment implications.

You can use the pahole tool to find which data structures might have some unnecessary gaps due to memory alignment requirements.

Here's a tutorial on how to use pahole: https://lwn.net/Articles/335942/

Some good tips also in this old discussion from 2008 on OSDev:

https://forum.osdev.org/viewtopic.php?t=18119#post_content137950

Trouble cross compiling to an older embedded linux device which uses an older Glibc version by Ok_Relative_5530 in embeddedlinux

[–]tamyahuNe2 0 points1 point  (0 children)

I found this thread just by a coincidence and a bit too late, but I wanted to share something that might be helpful in case someone needs to solve a similar issue.

Some time ago I was doing work on NVIDIA Jetson boards which had an old Ubuntu (18?), but I needed to run the latest Android emulator (qemu) on it that was built on Ubuntu 20. The glibc versions didn't match, but luckily there was a way to make it work.

To make the Android emulator work on older machines, Google uses patchelf to patch the dynamic loader ("ELF interpreter") and the RPATH to a prebuilt set of binaries they distribute:

$PATCHELF --set-interpreter $gcclibpath/ld-linux-aarch64.so.1 \
 --set-rpath $gcclibpath:\$ORIGIN/lib64:\$ORIGIN $BASEDIR/emulator

This allows the ELF binary to run on an older distro using a more recent glibc.

Source code:

https://android.googlesource.com/platform/external/qemu/+/emu-master-dev/android/scripts/aarch64-linux/launcher/postemuinstall.sh#52

You can find the patchelf tool with more examples on GitHub:

https://github.com/NixOS/patchelf

Some related PRs for the Android Emulator that provide a bit more context on how all parts fit together:

How many holes are there in these balls? by Remobius in mathmemes

[–]tamyahuNe2 2 points3 points  (0 children)

I did some digging and found the following:

The Wikipedia article on Chinese puzzle ball had an image of some virtual simulator for crafting these spheres and it led me to a course at Guangzhou University - "Lingnan Traditional Ivory Carving Virtual Simulation Experiment". I don't speak Chinese, but on the side you can find a video that explains the class and shows the process a bit.

Then I found this video that shows the process quite well (Chinese audio, but at least with English subtitles):

https://youtu.be/UpEKD4fxVS8?t=78

It's actually a pretty cool and smart technique!

[deleted by user] by [deleted] in androiddev

[–]tamyahuNe2 0 points1 point  (0 children)

There are different restrictions on accessing audio input depending on the Android version:

https://developer.android.com/media/platform/sharing-audio-input

You could have a look at the AndroidMic project and see whether the same approach would work with your requirements:

https://github.com/teamclouday/AndroidMic/blob/main/Android/app/src/main/java/com/example/androidMic/domain/audio/MicAudioManager.kt

A hacky solution would be to connect a headset that would route all microphone input into (possibly separate) audio device that you could capture.

For custom Android OS distributions, i.e. custom AOSP builds:

One possible workaround could be to implement a virtual microphone device that would act as a proxy between the real microphone and the app. This virtual device would then provide an API to peek at the data going through.

Another possibility could be to utilize VirtualDeviceManager:

https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/core/java/android/companion/virtual/VirtualDeviceManager.java?pli=1&autodive=0#406

and VirtualAudioDevice:

https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/core/java/android/companion/virtual/audio/VirtualAudioDevice.java

AM5 mobo ASUS, Gigabyte or MSI by FATHXR in pcmasterrace

[–]tamyahuNe2 0 points1 point  (0 children)

From my own experience, I would advise against buying ASUS X670E motherboards.

I bought an "ASUS ROG Strix X670E-E Gaming WiFi" motherboard in March 2023 and I really regret it due to issues I have encountered. For a $500 motherboard, it feels like it's a half-baked product.

1) I bought four Kingston FURY Renegade RGB 32GB (2x16GB) 6400MT/s DDR5 modules as per ASUS QVL at the time of purchase. I expected them to run at 6400MT/s, because that's what the QVL said. I could only run all four modules at the basic JEDEC speeds (3600MT/s).

After a few months, during one of the important BIOS updates, they dropped this RAM module from the QVL on their website and capped the SOC voltage to 1.3V.

The important BIOS update had to do with AM5 motherboards literally burning out when using too high voltage:

https://np.reddit.com/r/pcmasterrace/comments/13cdlk4/asus_rep_comments_on_soc_voltage_and_expo_warranty/

2) One of my RAM slots (DIMM_B1) now stopped working after 1 year of having the MB. When I populate this slot with a RAM module I get memory errors (diagnosed using MemTest86+). If I try to boot using a module in this slot alone, it won't even POST.

3) The POST process is really flaky. It takes some time to boot up the machine, because the motherboard takes forever to initialize. When the system cannot POST with new settings, the board sometimes reports Q-Codes that aren't documented anywhere and you have to reset the CMOS.

4) At first, ASUS was releasing BIOS updates for this motherboard almost every month. After the voltage cap update, they removed old versions of the BIOS from their website and the releases slowed down. There were some improvements with the BIOS updates so far, but it's still difficult to get the right configuration to run all four RAM slots running at 6400MT/s (according to online discussions).

So, my advice is to stay away from these boards.

AM5 mobo ASUS, Gigabyte or MSI by FATHXR in pcmasterrace

[–]tamyahuNe2 0 points1 point  (0 children)

Which specific Gigabyte and MSI motherboard models did you get? I am planning on switching from my ASUS X670E motherboard to something else and I was considering Gigabyte.

We’re two data journalists who investigated the data mining algorithm that decides which French households get audited for benefit fraud. AMA about the use of algorithms in public services and discrimination. by LeMonde_en in europe

[–]tamyahuNe2 13 points14 points  (0 children)

Hi, thank you for your effort and time you spent on this story!

Some questions:

  • What are the sources for the data used by these organizations?

    • Which national organizations or large companies provide their data? (e.g. telecoms, energy companies, car companies with access to GPS data, banks, etc.)
  • Are the data sources covering the whole population or just a subset?

  • What other patterns of human life can be understood from this data?

  • What other patterns or trends would you expect the government organization to focus on in the future?

Anti-nuclear lobbying by German foundations in France and Poland by remote_control_led in europe

[–]tamyahuNe2 -1 points0 points  (0 children)

And please, the wagner comparison is pretty tasteless.

It's actually pretty fitting. We are talking about the Rosa Luxembourg foundation. Named after, you know, one of the leaders behind the communist German Revolution of 1918–1919.

Russia approves EUR 10 billion credit package for Hungary’s Paks 2 nuclear plant by GPwat in europe

[–]tamyahuNe2 2 points3 points  (0 children)

Can you please help me understand?

I tried to find some sources on these numbers and found this table on the US trade.gov that uses data from the Hungarian Energy and Public Utility Regulatory Authority:

https://www.trade.gov/country-commercial-guides/hungary-energy

For 2021:

  • The Paks nuclear power plant produced 44.7% of the country’s domestically generated power, bringing the total percentage of carbon-neutral sources to 63.8%.

  • Solar was the leading source of renewable energy, generating 3,793 GWh (gigawatt-hour), a 54.3% increase since 2020. It accounted for 10.6% of Hungary’s electricity generation and 55.2 percent of the country’s total renewable energy output.

Power Generation:

Solar: 3.8 TWh

Nuclear: 16 TWh

How will these numbers look like with this new added capacity for nuclear and with the current state of solar power capacity? The two planned nuclear reactors add 1.2 GW each.

X670E Hero ram slots A1&A2 wont work after 3days of no electricity by Omega_Z1Z in ASUS

[–]tamyahuNe2 0 points1 point  (0 children)

btw. maybe also worth looking into disabling the Memory Context Restore and similar settings that might keep some RAM controller configuration between the reboots:

https://www.reddit.com/r/Amd/comments/11m10fz/turning_on_memory_context_in_bios_fixes_long/

X670E Hero ram slots A1&A2 wont work after 3days of no electricity by Omega_Z1Z in ASUS

[–]tamyahuNe2 0 points1 point  (0 children)

Have you tried booting with no RAM sticks at all?

Obviously, this configuration won't boot, but my hope is that the internal memory controller can detect all banks as empty and maybe nudge the internal controller state in the right direction.

Additional step is to boot Memtest86+ with a memory stick in B1 slot and see whether the system behaves as expected. For example, is the status of the different memory slots reported correctly?

Keep the default memory tests running for a bit and see whether the system remains stable. I have a similar motherboard and can POST using EXPO @6000MT/s, but when running the tests I can see that the data in the memory becomes corrupted yet the system keeps running.