Bu Blogda Ara

12 Haziran 2017 Pazartesi

Thinkpad G40 için linux modem sürücüsü hakkında

Thinkpad G40 için linux modem sürücüsü hakkında bulduğum bir yazı. Denemedim gerçi... Deneyince durumu yine buraya yazarım. Hatta deneyip çalıştıran olursa da yorumlara ekleyebilir. Buyurun...

Modem Daughter Card (MDC)

Modem Daughter Card (MDC)

This is a AC97 Modem Adapter that is installed in a CDC slot.

Features

  • Chipset: Ambit (formerly Lucent Microelectronics)

IBM Partnumbers

IBM FRU PN: 91P7657, 26P8477, 26P8256

Also known (in IBM literature) as....

  • CDC Modem Card
  • V.90 Modem Daughter Card (MDC)
  • Modem Card, Ambit
  • Ambit Modem Daughter Card

Linux driver

The Linux driver from SmartLink supports this device.
Latest version of this driver is 2.9.11.
The ALSA AC'97 modem driver (snd_intel8x0m) should be used instead of the proprietary kernel module from SmartLink (see README ALSA mode), as it avoids tainting your kernel, and does not require a recompile each time you update your kernel version.
For Debian there is a sl-modem-daemon deb.

Fedora

There is a slmodem rpm in the RPM-Fusion nonfree repository. Once you have installed the package, you need to edit /etc/sysconfig/slmodem and set INTERFACE=alsa and ALSA_DEVICE=modem:1
NOTE!
If ALSA_DEVICE=modem:1 does not work, run cat /proc/asound/cards and use the number before the Modem line
In addition you can set the country for the correct recognition of dialling and busy tones, and to adhere to any local (possibly legal) requirements. If you do not set the country, it will default to USA.
You can then start the service, and set it to autostart on boot
service slmodem start
chkconfig slmodem on
After this you should have a /dev/ttySL0 device

Kaynak:  http://www.thinkwiki.org/wiki/Modem_Daughter_Card_(MDC)

8 Haziran 2017 Perşembe

Excel'de her satırsan sonra bir boş satır ekleme



Sub Makro1()
'
' Makro1 Makro
'

'
Dim i As Integer
Dim crange As String


For i = 2 To 4000 Step 2
  
    Rows(CStr(i) & ":" & CStr(i)).Select
    Selection.Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
   
Next i

End Sub

15 Mart 2017 Çarşamba

İnsanları İnandıkları Şeyin Yanlış Olduğuna Neden İkna Edemeyiz?


İnsanları inandıkları şeyin yanlış olduğuna, önlerine kanıtlanmış gerçekleri koyarak, ikna etmeye hiç kalkıştınız mı? Peki bu ikna çalışmasının sonucunda fikrini değiştiren çıktı mı? Cevabınız çoğunlukla hayır olacaktır muhtemel.
Aslında ikna etmeye çalıştığınız insanlar, önlerine ne kadar kanıt koyarsanız koyun, inandıkları şey her ne ise ona daha sıkı sarılmaya başlarlar genelde, bunun en temel nedeni de oluşturdukları dünya görüşünün tehdit altında olduğunu düşünmeleridir.
Aslında bu davranış biçimi iki faktörün sonucudur: bilişsel uyumsuzluk ve geri tepme etkisi.
Bilişsel Uyumsuzluk Teorisi Leon Festinger tarafından 1957 yılında ortaya atılmıştır. Bu teori, insanın bilişsel yapılanmasında sıkça meydana gelen çelişkili durumların anlaşılması ile ilgilidir.
İnsanın, zihninde çatışan fikirleri, hisleri olduğu zaman duyduğu bir tedirginlik ve rahatsızlık durumu vardır. Bu çatışma bir belirsizlik, bir dengesizlik yaratır. Rahatlamak ve zihinsel balansı sağlamak için, bu çatışmayı sonlandırmak amacıyla bizi içten içe dürten bir şeyler hissederiz. Çatışmayı yaratan zihinsel etkenlerden birini veya birkaçını, tutarlı ve dengeli bir zihin ortamına kavuşmak için manipüle ederiz. Yani, kendi kendimizi kandırırız ve bu bizi rahatlatır.
İlk defa Brendan Nyhan ve Jason Reifler tarafından terim olarak kullanılan Geri Tepme Etkisi (Backfire Effect) ise inançlarına aykırı bir kanıt ile karşılaşan bireylerin bu kanıtı reddederek inançlarına daha da sıkı bir şekilde bağlanmalarını ifade eden bilişsel bir yanlılıktır.
Geri tepme etkisine göre, bireylerin doğru olarak kabullendikleri herhangi bir olgu bilimsel olarak çürütüldüğünde bile bireyler üzerinde tam tersi bir etki yaratabiliyor. İnanç ne kadar ideolojik ve duygu-temelliyse, aykırı kanıtın etkisiz olma olasılığı da o derece artıyor. Kanıtın doğru olma olasılığına daha açık olmak yerine birçok kişi ilk etapta kabullendikleri olgunun doğru olduğunu ikna oluyorlar. İnançlarını sorgulamak yerine onlara sadık kalmayı tercih ediyorlar.
Anlaşılan gerçekler durumu daha da kötüleştirebiliyor o zaman insanları inançlarının hatalı olduğuna ikna etmek için neler yapabiliriz?
  1. Duyguları konudan uzak tutun.
  2. Tartışın ama saldırmayın.
  3. Dikkatli dinleyin ve karşı görüşü de tam olarak anlamaya çalışın.
  4. Saygı gösterin.
  5. Neden bu fikre inandığını anladığınızı ifade edin.
  6. Değişen gerçeklerin mutlaka değişen dünya görüşleri anlamına gelmediğini açıklayın.
Bu stratejiler, insanların zihnini değiştirmek için her zaman etkili olmayabilir ama denemekte ve anlamakta fayda var elbette…


 Kaynak: http://www.matematiksel.org/insanlari-inandiklari-seyin-yanlis-olduguna-ikna-edemeyiz/, erişim:15.03.2017
Kaynağın kaynağı: https://www.scientificamerican.com/article/how-to-convince-someone-when-facts-fail/

26 Ağustos 2016 Cuma

iBook G4 linux üzerinde wifi kart sorununun çözümü. (Denenmedi henüz.)

Aşağıdaki notta wheezy versiyonundan bahsediyor ama benim kurduğum sistem jessie. Ona göre değerlendirmek lazım yazıyı.

Önce "dpkg -i b43-fwcutter_019-2_powerpc.deb" komutuyla birinci paketi kuruyoruz.
sonrasında da aşağıdaki yazıda belirttiği üzere "dpkg -i firmware-b43-installer" komutuyla ikinci paketi kuruyoruz.

İkinci paket sırasında kablolu internet bağlantımız kurulmuş olsun, çünkü internetten kendini güncelliyor paket.




I finally got my Wireless card working in Powerbook G4 Aluminum 1.25Ghz laptop running Debian 7.5.0 Wheezy.
1) go to /etc/apt/sources.list, add 'contrib' and 'non-free' behind every line ( it's an overkill but I don't know what I am doing )
Here is part of my file:
deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official powerpc DVD Binary-1 20140426-14:34]/ wheezy contrib main non-free

deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian/ wheezy main contrib non-free
a) then type this at your terminal:
apt-get update
2) type in a terminal to find your wireless card model number:
lspci | grep -i wireless
Mine showed
$ lspci | grep -i wireless
0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)
3) go the bcm43xx on the Debian wiki. From last step, because my version is BCM4306 (rev 02), I have to choose
apt-get install firmware-b43legacy-installer
For devices with a BCM4306 revision 3, BCM4311, BCM4318, BCM4321 or BCM4322 chip, install firmware-b43-installer:
apt-get install firmware-b43-installer
For devices with a BCM4312 LP-PHY chip (PCI ID 14E4:4315), install firmware-b43-lpphy-installer:
apt-get install firmware-b43-lpphy-installer
4) rebooted and wireless card now has non-free firmware working. Unfortunately it's non-free. I don't know other method.



Kaynak: http://unix.stackexchange.com/questions/27831/debian-powerbook-g4-wifi-driver









20 Ağustos 2016 Cumartesi

Einstein'dan...

  • Aslında herkes dahidir. Ama siz kalkıp bir balığı, ağaca tırmanma yeteneğine göre yargılarsanız, tüm hayatını aptal olduğuna inanarak geçirir. - Albert EINSTEIN

3 Ağustos 2016 Çarşamba

Boot the Raspberry Pi from USB

Boot the Raspberry Pi from USB

by
Featured
Picture of Boot the Raspberry Pi from USB
Hello world, time for me to gift some raspberry pi to the people. So here's my story, I recently graduated high school and I've been working with the school's IT guy for my senior year. When I graduated, he decided to get me the latest Raspberry Pi as a graduation present (at the time of writing this, the Raspberry Pi 2 Model B). I thought it was really generous of him and I wanted to use it. Here's the problem, I've only got 2 GB SD cards and the latest Raspbian image (2015-05-05) was like 3.5 GB in size. No problem, I'm a technology guy, surely I could figure this out, and I did. So now I'm here showing a step-by-step picture guide as to how I did it.
This instructable assumes that the reader has at least some basic experience with Ubuntu, the Raspberry Pi and the GParted partition editor. If not, then this probably isn't for you. This article is also centered around doing the whole process using Ubuntu ( sorry WinDoze people :p ).
-----!!! UPDATE !!!-----
Since a few people were wondering about my RCA setup and the alligator clips on the Pi, I have taken the liberty to make an instructable all about it. Raspberry Pi 2: Quick n' Easy RCA should answer all your questions and tell you how to do it.

Step 1: Prepare the Flash Drive

Navigate to your flash drive in GParted, in my case it is drive /dev/sdb.
Unmount the flash drive so you can make changes.
Delete any partitions so you can make a new one.
Add a new partition.
Format it to fat32 and give it any name.
Apply all operations to format the flash drive.

Step 2: Burn the Image to the Flash Drive

Picture of Burn the Image to the Flash Drive
ible9.png
ible10.png
ible11.png
Type "sudo -s" to get into a root shell, so you don't have to type sudo again.
The easiest way to burn the image is to type in "dd if=path/to/image of=path/to/flashdrive". In my case I found the path to the flash drive from GParted, it was /dev/sdb but it might be different for you.
If you want to know the status of the burn, you can install pv by typing in "apt-get install pv" and then using the altered command of "dd if=path/to/image | pv | dd of=path/to/flashdrive".
When the image is finished burning, the contents of the drive should look more or less like they do in the picture of the GParted screen. It should have one fat16 partition and one ext4 partition and maybe some unallocated space if your drive is big enough.

Step 3: Prepare the SD Card

Insert your SD card and navigate to it in GParted, /dev/sdc in my case.
Unmount it and delete the partition.
Add a new partition and make sure it is 56 MB in size while being labeled "boot" and being a fat16 file system. The point is to clone the boot partition on the flash drive over to the SD card because the Raspberry Pi can't completely boot from a flash drive.
Then click "manage flags" and add the "lba" flag and you're done prepping the SD card.

Step 4: Transfer the Boot Partition

Picture of Transfer the Boot Partition
ible21.png
Get back into your root shell to prepare the boot partition transfer.
Again, use "dd" to transfer the partitions, my boot partition is /dev/sdb1 for the flash drive and /dev/sdc1 for the SD card. Notice the 1 at the end of each, that signifies the first logical partition which I can see from the GParted screen.
The command for me is "dd if=/dev/sdb1 of=/dev/sdc1" but I used the "pv" version because I like to see how everything works out. It's the same as in the last step, only change the "if" and "of" parts.

Step 5: Set to Boot from the Flash Drive

Picture of Set to Boot from the Flash Drive
ible23.png
ible24.png
Get into the SD card file system with your favorite file explorer and open up the file called "cmdline.txt".
We will edit the word in the line that starts with "root=" so we can tell the SD card where it's supposed to boot, in this case the flash drive.
Change the line from "root=/dev/mmcblk0p2" to "root=/dev/sda2". It is "/dev/sda2" because in GParted, it shows my flash drive root partition as being /dev/sdb2, but when the Raspberry Pi mounts it, it will be /dev/sda and I want the second partition to get booted from.

Step 6: Finish Up with the Flash Drive

Get back to GParted and navigate to the flash drive.
Delete the fat16 "boot" partition, "/dev/sdb1" in my case.
Then resize the ext4 partition by clicking "resize/move" and dragging each end of the partitions to the corresponding ends.
Apply all operations and wait quite a bit of time for the partition to grow. When it's finished, there should be only one partition, and ext4, that has the same partition path (/dev/sdb2) as the original ext4 partition.

Step 7: Set Up the Raspberry Pi

Picture of Set Up the Raspberry Pi
IMAG0385.jpg
Now just insert your SD card into the Raspberry Pi along with the root flash drive that we were working on.
Plug everything you need in like power, video, keyboard/mouse and wifi and turn it on.

Step 8: Moment of Truth

Picture of Moment of Truth
IMAG0387.jpg
If all worked well for you, then you should see the Raspberry Pi boot up normally and the setup screen come up for the first time. CONGRATULATIONS!!!
If not, then something probably went wrong and you should try to see if you can fix it by going backwards to see what went wrong or just redoing the whole process again.
I typed in "startx" and the desktop interface came up, all is well and now I can use the Pi normally.

Kaynak: http://www.instructables.com/id/Boot-the-Raspberry-Pi-from-USB/?ALLSTEPS