Archive | Aralık, 2017

Yeni bir mobil işletim sistemi geliyor: eelo

Açık kaynak kodlu bir Android dağıtımı olan LineageOS‘un çatallanmasıyla ortaya çıkan yeni bir mobil işletim sistemi geliyor: eelo. Yılan balıklarına (eel) atfen eelo adı verilen projenin, küçüklüğü nedeniyle kolaylıkla saklanabilen yılan balığı gibi gizliliğin simgesi olduğu belirtiliyor. Projeyi geliştirmekte olan Gael Duval; Ubuntu telefon ve Firefox OS’un çöküşünün ardından, fazla açık kaynak kodlu mobil işletim sistemi kalmadığını düşünerek, bir zamanlar oldukça popüler olan Mandrake Linux’u (daha sonra Mandriva Linux) temel alarak bu işe giriştiğini söylüyor. Google ve Apple gibi şirketlerin gizliliğimizi ortadan kaldırarak, verilerimizi reklamverenlere satmaya çalıştıklarını belirten Duval; ikisinden de çok şikayetçi olduğunu ve bunu durdurmak istediğini ifade ediyor. Bir işletim sisteminden çok, bir ekosistem oluşturmayı amaçladığını belirten Gael Duval; e-posta, bulut depolama, çevrimiçi ofis aracı vb. gibi kendi web hizmetlerine sahip olacak; ayrıca, kişisel verilere ve kişinin gizliliğine saygı duyacak bir sistem tasarladığını söylüyor. Bunun için 25.000 Euro tutarında bir fon oluşturulmaya çalışılıyor.

Continue Reading →

eelo hakkında bir fikir edinmek için aşağıdaki videoyu inceleyebilirsiniz.

1

Install and Use Non-Composer Laravel Packages

If you want to use a package in Laravel, you simply add a single line in composer.json file and the job is done. This is because the package is available in packagist.org, what if the package that you want to use is a non-Composer Laravel package? Maybe available on a git repo or a private repo or so. In this post, we will see how to install and use non-Composer Laravel Package and custom libraries inside your Laravel projects.

Continue Reading →

Using a Git Package

For this purpose, I searched GitHub for a package that is not available on packagist.org and found one.

I’m going to use a package called UniversalForms from wesleytodd.

You can find it here https://github.com/wesleytodd/Universal-Forms-PHP

To use the package, open composer.json file and add it to the require section like this:

"wesleytodd/universal-forms" : "dev-master"

Then under the require section, add a new section called repositories like this:

"repositories": [
{
"type": "vcs",

"url": "https://github.com/wesleytodd/Universal-Forms-PHP"

}
]

Finally, run composer update

Now you can add the service provider for the package like any other composer package.

Open config/app.php and add the provider to the provider’s array.

'Wesleytodd\UniversalForms\Drivers\Laravel\UniversalFormsServiceProvider',

And you can use the package like any other package.

The best thing about this trick is that the repository will be treated like any Composer dependency and will put the package in vendor directory like magic.

Using Private Repositories

As you did with the GitHub repo, you can do the same with your private repos like this:

{

"require": {

"likegeeks/my-repo": "dev-master"

},

"repositories": [

{

"type": "vcs",

"url": "git@bitbucket.org:likegeeks/my-repo.git"

}

]

}

The only difference here is that you need to install the SSH keys for your git client.

This technique is supported by many git clients like:

  • Git
  • Subversion
  • Mercurial

Using Subversion

If you are using Subversion, it doesn’t have a native idea of branches and tags, so Composer will assume that the code is in $url/branches  and $url/tags.

If your repo has a different structure, you can change these value like this:

{

"repositories": [

{

"type": "vcs",

"url": "http://svn.website.com/projectA/",

"trunk-path": "MyTrunk",

"branches-path": "MyBranches",

"tags-path": "MyTags"

}

]

}

Autoload Custom Classes or Libraries

Now you can use your non-Composer Laravel packages inside your projects.

What if your package is not even on a repo, maybe a normal PHP library that contains classes or so how to use it inside your Laravel project?

Well, that is so simple. First, create a directory for storing your libraries let’s say app/libraries.

Then include the library file in composer.json file under classmap of autoload section like this:

{

"autoload": {

"classmap": [

"app/libraries/myLib.php"

]

}

}

This will include your file without problems, what if your library has a lot of files?

Great, you can include the directory name instead and Composer will load all of the classes automatically.

Now you can import and use any non-Composer Laravel packages.

I hope you find the post useful. Keep coming back.

Thank you.

likegeeks.com

0

Create and Use Dynamic Laravel Subdomain Routing

The subdomain is something we sometimes need. Many websites give their users a custom subdomain for their profiles or pages, so instead of accessing the user’s profile at http://website.com/users/50, the user can access his profile page at http://username.website.com which is much better. In this post, we will see how to make dynamic Laravel subdomain routing easily.

 

Continue Reading →

Configure DNS

To make this trick, you need to have access to the DNS server settings and apache web server settings.

First, you need to add an A record with an asterisk for the subdomain like this:

* IN A 192.168.1.5

You should replace the IP address with your IP address.

Configure Web server

Open apache web server configuration file httpd.conf and add a VirtualHost like this:

<VirtualHost *:80>
ServerName website.com
ServerAlias *.website.com
</VirtualHost>

Let’s assume that we have the users with the name field which will contain the user’s name.

Now we will create our route.

Route::get('/', function () {

$url = parse_url(URL::all());

$domain = explode('.', $url['host']);

$subdomain = $domain[0];

$name = DB::table('users')->where('name', $subdomain)->get();

dd($name);

// write the rest of your code.

});

First, we explode the URL and extract the host from it, then we get the subdomain part.

Then we search for a username in the users table that matches the extracted subdomain.

You can check if no user found, redirect to another page or give him an error message or whatever.

Now if you try to visit any user subdomain like http://likegeeks.website.com, you should see the user’s name without problems.

Keep in mind that the user that you are visiting his subdomain MUST be present in the database.

Any user added to the database will have his subdomain automatically without a headache.

If you don’t have access to your web server configuration like using shared hosting or so, you can’t achieve the same functionality using htaccess redirection.

Multiple Routes in Subdomain

In the above example, we use a single route to deal with the subdomain, but you can use many routes with a subdomain.

You can use routes groups to achieve this:

Route::group(array('domain' => '{subdomain}.website.com'), function () {

Route::get('/', function ($subdomain) {

$name = DB::table('users')->where('name', $subdomain)->get();

dd($name);

});
});

As you see, Laravel subdomain routing is very easy to implement.

I hope you find the post useful. Keep coming back.

Thank you.

likegeeks.com

0

Samba 4.7.4 duyuruldu

İnternet protokolü üzerinden dosya ve yazıcı paylaşımı için Microsoft tarafından geliştirilmiş olan SMB/CIFS protokollerini kullanan GPLv3 lisanslı sunucu yazılımı Samba’nın 4.7.4 sürümü duyuruldu. Samba 4.7 serisinin beşinci kararlı sürümü olan sürümün çeşitli hata düzeltmeleri içerdiği bildiriliyor. Unix ve GNU/Linux sistemler ile Windows arasında dosya ve yazıcı paylaşımını olanaklı kılan Samba; 1992 yılından bu yana DOS, Windows, OS/2, GNU/Linux gibi çeşitli platformları destekliyor. Samba 4.7.4 hakkında daha ayrıntılı bilgi edinmek için sürüm notlarını inceleyebilirsiniz.

Continue Reading →

Samba 4.7.4 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0

Mozilla Thunderbird 52.5.2 duyuruldu

Açık kaynak kodlu ve son derece gelişmiş özelliklere sahip güvenli bir e-posta istemcisi olan Mozilla Thunderbird’ün 52.5.2 sürümü duyuruldu. Bir hesabı kaldırırken isteğe bağlı olarak ilgili veri dosyalarının da kaldırılması yeteneği kazandırılan yazılım, mesaj filtresini kopyalama imkanı kazanmış bulunuyor. Türkçe dahil 49 dili destekleyen Mozilla Thunderbird, Mozilla ailesinin diğer popüler üyesi Firefox gibi pek çok eklenti kullanma ve e-postaları farklı sekmelerde açma özelliklerine sahip. Bir e-postaya çift tıklandığında, iletinin yeni bir sekmede açılmasına imkan sağlayan yazılım, arşivleme ve arama altyapısı da içeriyor. Thunderbird, bu altyapıya entegre edilmiş “Akıllı Klasörler” özelliğiyle farklı e-posta hesaplarında saklanan mesajlarda ve arşivlerde daha hızlı ve kapsamlı arama yapılmasına olanak sağlıyor. Gelişmiş özelliklerden birini de Gmail entegrasyonu oluşturuyor. Thunderbird çevrim içi güvenlik alanında başat olmaya devam ederken, sizi çevrim içi tertiplerden korumak için etkin olarak çalışıyor. Thunderbird, en karmaşık idari ihtiyaçlarınızı karşılarken aradığınızı bulmanızı da kolaylaştırıyor. Mozilla Thunderbird 52.5.2 hakkında detaylı bilgi edinmek isteyenler sürüm notlarını inceleyebilirler.

Continue Reading →

Mozilla Thunderbird 52.5.2 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0

Mesa 17.3.1 duyuruldu

Sürüm adayı 18 Aralık 2017’de duyurulan Mesa 17.3.1’in final sürümü, Emil Velikov tarafından duyuruldu. Velikov; GLSL gölgelendirici önbellek iyileştirmeleri gibi çeşitli düzeltmeler içeren sürümün; I965, radeonsi, nvc0 ve freedreno sürücüleri için de çeşitli düzeltmeler içerdiğini söyledi. Ayrıca bir takım büyük endian düzeltmeleri birleştirilen sürümün bir final sürüm olduğu ve yazılımın bu sürüme terfi etttirilmesinin önemli olduğu ifade ediliyor. Mesa 17.3.1 hakkında ayrıntılı bilgi edinmek için sürüm duyurusunu inceleyebilirsiniz.

Continue Reading →

Mesa 17.3.1 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0

Wine 3.0-rc3 duyuruldu

İkinci sürüm adayı 16 Aralık 2017‘de duyurulan Wine’in yeni geliştirme sürümü 3.0 için üçüncü sürüm adayı, Alexandre Julliard tarafından duyuruldu. 3.0 serisinin üçüncü sürüm adayını duyurmaktan mutlu olduğunu söyleyen Julliard; bunun bir test sürümü olduğunun unutulmaması ve yalnızca test etmek amacıyla kullanılması gerektiğini hatırlatırken, test eden kullanıcıların tespit ettikleri hataları rapor etmelerini rica etti. Julliard; kod dondurma periyodunun başlangıcından beri yayınlanan üçüncü test sürümün Fallout 4, uTorrent, Rocket League, Factorio ve diğer Windows yazılımlarını etkilediğini söyledi. Wine 3.0-rc3 hakkında daha ayrıntılı bilgi edinmek için sürüm duyurusunu inceleyebilirsiniz.

Continue Reading →

Wine 3.0-rc3 edinmek için aşağıdaki linklerden yararlanabilirsiniz.

0