Binary Numbers ← Computer Science Unplugged

Installed Ubuntu 16.04.1 on Thinkpad P50, Some Notes

Over the last few days, I installed Ubuntu 16.04.1 on a Thinkpad P50. The P50 came preconfigured from Lenovo with a single NVMe PCIe 1TB SSD, 64G RAM, an i7 6820HQ, a FHD IPS touchscreen (FHD MT 2D MC CS WLWW), NVIDIA Quadro M2000M graphics, a Sierra EM7455 wireless broadband card, and a smartcard reader.
Getting it installed to satisfaction was a little bumpy, particularly the video and the touchscreen. Here's what happened.
Booted to Windows and updated BIOS image via Lenovo Companion.
Shrunk the Windows C partion to about 100G, leaving 800G+ free for Ubuntu use, ala https://www.youtube.com/watch?v=Gyz_7Dg2yu4.
Disabled Fast Boot in Windows.
Turned off Secure Boot, and set UEFI only, and Discrete graphics in BIOS. Also turned on virtualization.
Repartitioned and installed Ubuntu onto encrypted LVM ala https://www.youtube.com/watch?v=F0b4I89LY5E (replaced references to sda2 with nvme0n1), using a 16.04.1 USB stick. Although I don't think it mattered, I selected the nvme01p1 partition (the EFI system partition) as the "Install boot loader to" target (I think it's a bug that this option even shows up when you're booted via UEFI-only; I don't actually think it matters what you choose here).
Video mostly worked out of the box upon reboot with OSS nouvea drivers, but external monitor via DP was artifacting and glitching out from time to time, and the video brightness buttons wouldn't work. So, many reboots and variations and blank screens and cursings and BIOS switchings (including "Enable CSM", which I left on, but which was probably voodo, and including trying out Hybrid graphics mode) later, I wound up using the binary NVIDIA drivers, which only seemed to work properly when Discrete graphics mode was set in the BIOS; it does not work in Hybrid mode for me. In order to be able to type in the HDD boot decryption password after installing the NVIDIA drivers, I had to follow the instructions related to GRUB this reddit post: https://www.reddit.com/thinkpad/comments/4ghfap/ubuntu_1604_on_p50/d2hzjhl/ but none of the other instructions in that post were necessary for me. Before I did that, it just kinda sat there with a blinking cursor upon first booting (I had to use recovery mode to be able to reconfigure grub). Currently, if I switch to Hybrid mode in the BIOS, and attempt to boot, I can type my HDD decryption password without issue, but once it boots to nonconsole, the resolution is weird, and I can type my login password but it just returns me to the login screen once it's done thinking. I think it's related to this:
Jan 8 01:39:10 thinkq gnome-session[5564]: gnome-session-is-accelerated: No hardware 3D support. Jan 8 01:39:10 thinkq gnome-session[5564]: gnome-session-check-accelerated: Helper exited with code 256 
So Discrete graphics mode it is for the foreseeable future, although it will impact battery life negatively. (Fixed: see the comment below about changing grub's settings so you can type the HDD decryption passphrase differently than explained in https://www.reddit.com/thinkpad/comments/4ghfap/ubuntu_1604_on_p50/d2hzjhl/ such that Hybrid mode works).
Still have an irritating issue resuming from sleep where black borders are drawn around all previously opened windows: https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/1292830 . Doing Ctrl-Alt-F7 then back via Ctrl-Alt-F6 gets rid of the borders. Seems to have to do with NVIDIA binary drivers.
I also had to cause the network-manager service to restart on wake from sleep because when waking from sleep, it would connect to the last network it had been connected to, but the options in the network dropdown would be hosed (I couldn't reconnect to anything else after disconnecting). in /lib/systemd/system-sleep/network-manager-restart (chmod'ed 755) I put the following:
#!/bin/sh set -e if [ "$2" = "suspend" ] || [ "$2" = "hybrid-sleep" ]; then case "$1" in post) sleep 2 ; systemctl restart network-manager ;; esac fi 
Under Ubuntu, the touchscreen worked fine out of the box (both finger and pen) when an external monitor was not plugged in. But it did not map motions to correct location when used when an external monitor was plugged in. To fix, I did something like:
[[email protected] ~]$ xrandr  DP-4 connected 1920x1080+2560+360 (normal left inverted right x axis y axis) 344mm x 194mm [[email protected] ~]$ xsetwacom --list Wacom Co.,Ltd. Pen and multitouch sensor Finger touch id: 9 type: TOUCH Wacom Co.,Ltd. Pen and multitouch sensor Pen stylus id: 10 type: STYLUS Wacom Co.,Ltd. Pen and multitouch sensor Pen eraser id: 20 type: ERASER 
Could not use xsetwacom set DP-4 due to "Unable to find an output 'DP-4'." result from xsetwacom, so had to punt to using a geometry string.
xsetwacom set 9 MapToOutput "1920x1080+2560+360" xsetwacom set 10 MapToOutput "1920x1080+2560+360" xsetwacom set 20 MapToOutput "1920x1080+2560+360" 
I just created a shell script to do this when I need to, I didn't automate it at boot or monitor-connection time or anything. Running it then detaching the external monitor is likely to be problematic. * (worked around, see comment below)
see also: http://askubuntu.com/questions/71768/touchscreen-and-additional-external-monitor and https://wiki.archlinux.org/index.php/Wacom_Tablet
To test graphics frame rates, I ran glmark2 via
LD_PRELOAD=/lib/x86_64-linux-gnu/libpthread.so.0 /usbin/glmark2 
(it crashes without the LD_PRELOAD line)
======================================================= glmark2 2014.03+git20150611.fa71af2d ======================================================= OpenGL Information GL_VENDOR: NVIDIA Corporation GL_RENDERER: Quadro M2000M/PCIe/SSE2 GL_VERSION: 4.5.0 NVIDIA 367.57 ======================================================= [build] use-vbo=false: FPS: 8932 FrameTime: 0.112 ms [build] use-vbo=true: FPS: 11827 FrameTime: 0.085 ms [texture] texture-filter=nearest: FPS: 10750 FrameTime: 0.093 ms [texture] texture-filter=linear: FPS: 10592 FrameTime: 0.094 ms [texture] texture-filter=mipmap: FPS: 10793 FrameTime: 0.093 ms [shading] shading=gouraud: FPS: 10379 FrameTime: 0.096 ms [shading] shading=blinn-phong-inf: FPS: 10319 FrameTime: 0.097 ms [shading] shading=phong: FPS: 9708 FrameTime: 0.103 ms [shading] shading=cel: FPS: 9691 FrameTime: 0.103 ms [bump] bump-render=high-poly: FPS: 5790 FrameTime: 0.173 ms [bump] bump-render=normals: FPS: 11770 FrameTime: 0.085 ms [bump] bump-render=height: FPS: 11592 FrameTime: 0.086 ms [effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 7573 FrameTime: 0.132 ms [effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 3814 FrameTime: 0.262 ms [pulsar] light=false:quads=5:texture=false: FPS: 9948 FrameTime: 0.101 ms [desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 3125 FrameTime: 0.320 ms [desktop] effect=shadow:windows=4: FPS: 5754 FrameTime: 0.174 ms [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 1211 FrameTime: 0.826 ms [buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 1467 FrameTime: 0.682 ms [buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 1358 FrameTime: 0.736 ms [ideas] speed=duration: FPS: 8283 FrameTime: 0.121 ms [jellyfish] : FPS: 5897 FrameTime: 0.170 ms [terrain] : FPS: 627 FrameTime: 1.595 ms [shadow] : FPS: 6541 FrameTime: 0.153 ms [refract] : FPS: 1669 FrameTime: 0.599 ms [conditionals] fragment-steps=0:vertex-steps=0: FPS: 9553 FrameTime: 0.105 ms [conditionals] fragment-steps=5:vertex-steps=0: FPS: 9443 FrameTime: 0.106 ms [conditionals] fragment-steps=0:vertex-steps=5: FPS: 9468 FrameTime: 0.106 ms [function] fragment-complexity=low:fragment-steps=5: FPS: 9498 FrameTime: 0.105 ms [function] fragment-complexity=medium:fragment-steps=5: FPS: 8947 FrameTime: 0.112 ms [loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 9505 FrameTime: 0.105 ms [loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 9492 FrameTime: 0.105 ms [loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 8864 FrameTime: 0.113 ms ======================================================= glmark2 Score: 7702 ======================================================= 
Steam games work for me.
Camera works fine, sound works fine, volume and brightness buttons work fine. USB works fine (I have a USB 3 hub attached, to which is plugged in a USB sound device, an IBM Model M via a keyboard adapter, a few HDDs, and some other stuff, all seem to work fine), DisplayPort seems to work fine driving my Dell UH2713 monitor at its highest resolution. Bluetooth works.
I disabled the touchpad, because it doesn't have palm detection configured out of the box, and as a result it's almost useless. I don't use a touchpad usually anyway, so I just disabled it instead of fighting with palm detection. * (worked around, see comment below)
Haven't tried to drain battery, but Ubuntu estimates that it will run for something like 6.5 hours on battery when first unplugged.
I have not tried to get the smartcard reader working yet, nor the wireless broadband (* see below for comment about both). I didn't try the HDMI port either. Did not try the Thunderbolt port. (* see comment about Thunderbolt below)
Kernel is still stock 4.4.0-57
submitted by mcdonc to thinkpad [link] [comments]

Help restoring my N920T (T-Mobile) to stock.

Almost immediately after purchasing my Note 5 I decided to root it and install TWRP. That went pretty smoothly, but since then I've noticed some odd performance behavior: poor battery life (less than 10 hours normal use), spontaneous reboots, SIM card not detected messages, and keyboard lag. My friend advised me to do a full system reset (unroot, stock recover, etc). I've followed a few tutorials, and so I've tried to use ODIN v3.10.7 to flash an OTA. I've made sure that ODIN detects my device in download mode, loaded the appropriate file in "AP", and have all the correct options checked. Still, I cannot get it to pass.
Thanks in advance for your help! :)
Here's a transcript of my log, if that helps:
Added!!
Enter CS for MD5..
Binary Check MD5.. Do not unplug the cable..
Please wait..
Checking MD5 finished Sucessfully..
Leave CS..
Odin engine v(ID:3.1100)..
File analysis..
SetupConnection..
Initialzation..
Get PIT for mapping..
Firmware update start..
SingleDownload.
sboot.bin
NAND Write Start!!
cm.bin
FAIL!

Complete(Write) operation failed.
All threads completed. (succeed 0 / failed 1)
Removed!!
submitted by Ewe_Surname to galaxynote5 [link] [comments]

[Help] S4 failure to load custom kernel (Fail Auth)

[Edit]: Problem resolved by using Heimdall instead.

I'm trying to root my phone (SCH-I545 Verizon) via the MD2 423399 kernel method via ODIN 3.09. I've put my phone into download mode (with USB Debugging enabled in developer options), but the write operation fails every time.
I'm using a fairly high quality USB cable (tried with my own fancy one and the cable included in the box), and have the Samsung USB drivers installed (and Device Manager shows them as active). The SCH-I545_MD2_423399_Kernel.tar.md5 file is in the "AP" (PDF) file slot with all others blank, the phone is successfully identified at the correct COM port in Odin. Only "Auto Reboot" and "F. Reset Time" are checked in the options as instructed.
Thanks for any info you can offer!
Output log ("Message" Box):
Added!!
Enter CS for MD5..
Check MD5.. Do not unplug the cable..
Please wait..
SCH-I545_MD2_423399_Kernel.tar.md5 is valid.
Checking MD5 finished Sucessfully..
Leave CS..
Odin v.3 engine (ID:8)..
File analysis..
SetupConnection..
Initialzation..
Get PIT for mapping..
Firmware update start..
SingleDownload.
boot.img
NAND Write Start!!
FAIL! (Auth)

Complete(Write) operation failed.
All threads completed. (succeed 0 / failed 1)
Removed!!
Phone output:
ODIN MODE {red text}
PRODUCT NAME: SCH-I545
CURRENT BINARY: Samsung Official
SYSTEM STATUS: Official
REACTIVATION LOCK: OFF
CSB-CONFIG-LSB: 0x30
SECURE DOWNLOAD: ENABLE {blue text}
WRITE PROTECTION: Enable {gray text}
eMMC BURST MODE enabled {gray text}
START [224, 1440] {red text}
SYS REV CHECK FAIL[K] : No Version {red text}
SECURE MAGICODE CHECK FAIL : boot {red text}
submitted by ToastyMozart to samsung [link] [comments]

Reverting back to stock OS on Samsung Galaxy S5 Plus

EDIT: I solved it already, see bottom for solution
I think I screwed up big time. Thank you so much if you think you can help me.
I recently got a Samsung S5+, and decided to try and root it. I've tried using kingroot, kingoroot but neither worked. Ultimately, i tried flashing it with odin. unfortunately, that caused my phone to stay stuck at the samsung logo. I redownloaded the stock OS for the SM-g901F (which is the model it is) and tried flashing it, but odin went all 'FAIL' on me, presumably due to the fact that the file was pretty big. So, silly me, I found on google it had something to do with the partitioning. So I flashed a new .pit I found to my phone. Joke's on me, it didn't work. It just gave me 100s more errors.
I tried to go all the way, installing a completely new ROMm which meant separately installing a bootloader and a modem. That worked, but installing the OS itself didn't work anymore now either.
after that I tried installing Samsung Kies to try and redownload the original stock firmware, but it didn't recognize my device (because of all the crap it's gone through?).
When I try to install the stock ROM i downloaded somewhere now, odin outputs this:
Enter CS for MD5..
Check MD5.. Do not unplug the cable..
Please wait..
G901FXXU1CPE1_G901FDBT1CPE1_G901FXXU1CPE1_HOME.tar.md5 is valid.
Checking MD5 finished Sucessfully..
Leave CS..
Odin v.3 engine (ID:3)..
File analysis..
SetupConnection..
Initialzation..
Get PIT for mapping..
Firmware update start..
aboot.mbn
NAND Write Start!!
sbl1.mbn
rpm.mbn
tz.mbn
sdi.mbn
NON-HLOS.bin
boot.img
recovery.img
system.img.ext4
modem.bin
cache.img.ext4
hidden.img.ext4
RQT_CLOSE !!

Complete(Write) operation failed.
All threads completed. (succeed 0 / failed 1)
The phone itself says this:
Volume Size too big 20480 < 102400
ODIN: Invalid ext4 image
Right now, I just want it to go back to how it originally was. It used to run the latest update with Marshmallow, and I'm kind of panicking because I don't know what on earth to do.
What are my options here?
to recap:
Thank you so much in advance.
EDIT: Solved it!
Thank goodness, I was able to solve it. For people with the same issue; check below!
SOLUTION
I downloaded the stock ROM again via samfirm again, but this time with the 'binary nature' checkbox checked. I extracted the files from the zip. I copied the file that starts with CSC_ (CSC_DBT_G901FDBT1CPE1_CL7986878_QB9463399_REV00_user_low_ship_MULTI_CERT.tar.md5), and changed its extension to .rar (CSC_DBT_G901FDBT1CPE1_CL7986878_QB9463399_REV00_user_low_ship_MULTI_CERT.rar). After that I opened it up with 7zip and extracted the .pit file that was in there (KCCAT6_EUR_OPEN_HIDDEN50M.pit). I loaded up Odin, inserted the separate files (Bootloader,PDA,PHONE and CSC) and inserted the .pit I just extracted as the PIT, and it did the trick!
submitted by Dozyjones to AndroidQuestions [link] [comments]

OK! Dolls  Code your name in BINARY SlavNews#1 Crash Course Computer Science Preview - YouTube Class 11 Computer Science with Python Chapter#1  Getting Started  Study Tech Digital Marketing - Search Engine Marketing Session -1 FAMILY CODING DAY ครั้งที่ 7 ตอน เดอะสลัด Smart Farming Pre Launch Revolutional Jocial Influence Marketing

Binary. Binary Images. Course D : Lesson 16 Course 4 : Lesson 17 (age 10+) Though many people think of binary as strictly zeros and ones, students will be introduced to the idea that information can be represented in a variety of binary options. This lesson takes that concept one step further as it illustrates how a computer can store even more ... The more bits (binary digits) we use to store the colour of a pixel, the larger the variety of colours we can make. If we use one bit to store the colour of a pixel then we only have two options for what that colour can be (remember, with one bit we can represent two different values only, because we can only use 0 or 1). If we use 8 bits (1 byte) per pixel we can display 256 different colours ... The binary number system plays a central role in how information of all kinds is stored on computers. Understanding binary can lift a lot of the mystery from computers, because at a fundamental level they’re really just machines for flipping binary digits on and off. There are several activities on binary numbers in this document, all simple enough that they can be used to teach the binary ... UNPLUGGED Binary Bracelets Lesson time: ... A way of representing information using only two options 3) Off and On If you've written a short message on the board in binary, call the students' attention to it and ask if anyone knows what it is or what it means. LESSON TIP Finishing the review by asking about the students' favorite things helps to leave a positive impression of the previous ... The CS Unplugged material is open source on GitHub, and this website's content is shared under a Creative Commons Attribution-ShareAlike 4.0 International license. The CS Unplugged is a project by the Computer Science Education Research Group at the University of Canterbury, New Zealand. Icons provided generously by icons8 The free units and lesson plans are available through CS Unplugged. A sneak preview is now on the website. (Note that the content and website are currently being updated.) See the following links on CS Unplugged to find out more and access the resources: CS Unplugged 2.0 sneak peek: Computer science without a computer Monday, 10 July 2017. Cs Unplugged Binary Options

[index] [26842] [24210] [17718] [16812] [16776] [17296] [27555] [2321] [23612] [9134]

OK! Dolls Code your name in BINARY

Starting February 22nd, Carrie Anne Philbin will be hosting Crash Course Computer Science! In this series, we're going to trace the origins of our modern com... Options Trading Basics EXPLAINED ... CS Unplugged - Binary digits (sample classroom lesson) - Duration: 9:16. UC Computer Science Education Recommended for you. 9:16. The Spectacular Rise and Fall ... Industry Unplugged Episode-4: ... Jenny's lectures CS/IT NET&JRF Recommended for you. 31:23. June 28, 2020: 11am Sunday Worship Service at Washington National Cathedral - Duration: 1:39:13 ... Binary can be represented in just about any kind of material with two options for example peas & carrots, black & white beads, arrows up & arrows down. In our activity we will be using dyed pasta ... Best Binary Options Strategy 2020 - 2 Minute Strategy LIVE TRAINING! - Duration: 43:42. BLW Online Trading Recommended for you. 43:42. Intermittent Fasting & Hunger - What the Science says ... Best Binary Options Strategy 2020 - 2 Minute Strategy LIVE TRAINING! - Duration: 43:42. BLW Online Trading Recommended for you. 43:42. Industry Unplugged Episode-4: A Certified Webinar on Digital ... Best Binary Options Strategy 2020 - 2 Minute Strategy LIVE TRAINING! - Duration: 43:42. BLW Online Trading Recommended for you. 43:42. Nirvana - Dumb (Live On MTV Unplugged, 1993 / Unedited ...

http://arab-binary-option.fecranyzo.tk