Rahasia Berinvestasi Sukses dengan Emas

Bagaimana Uang Hasil Kerja Keras Anda Mempunyai NILAI dan DAYA BELI Yang Sama 10 Bahkan 20 Tahun Yang Akan Datang? Bagaimana Menghindari Perampok Yang Tidak Pernah Di Tangkap Polisi, Yakni Inflasi? Bagaimana Dengan MUDAH dan PASTI, EMAS Membantu Perencanaan Keuangan Keluarga Terutama Biaya Pendidikan dan Masa Depan Anak Anda?

Minimal Design

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown ...

Download high quality wordpress themes at top-wordpress.net

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown ...

Easy to use theme admin panel

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown ...

Catatan yg tercecer Kelas Muamalah 17 Okt Ustaz Ammi Nur Baits

A. Fiqh Jual Beli
 Day1

- Ibadah l
Hukum Asal: Dilarang, Kecuali ada dalil yang mensyariatkan. baru boleh dikerjakan

- Muamalah/ Adat.
 Hukum Asal; Dibolehkan, Kecuali ada dalil yang melarang.

Dalil yang membedakan ibadah dan muamalah ada pada surat : Al-A'raf ayat 3

Siapa beramal tanpa syariah dari kami, maka amalnya tertolak(HR. Muslim).

- Dalam ayat alquran juga menghalalkan muamalah ini adlah pada ayat yang membebaskan membawa misi lain pada kegiatan ibadah haji.

- Bahwa Harta yang terbaik adalah harta yang bersumber dari jeri payahnya sendiri/jual beli yang baik.

- pada transaksi jual beli ketika uang tunda dan barang tertunda hukumnya haram.disebut juga
 misalnya : jual beli online Pre order, dengan DP

- Istilah arab pada kegiatan muamalah tidaklah penting karena tidak sesuai sunah. yg ada adalah melanggar / tidak melanggar.

- Jenis - Jenis Fiqih:
  •   Fiqih Ibadah
  • Fiqih Muamalah
  • Fiqih Usroh(Tentang Keluarga)
  • Jinayat (Kriminal dan Hukumnya)
- Perbedaan Rukun dan syarat: Jika Rukun berada pada dalam kegiatannya, sedangkan syarat berada pada luar kegiatan tepatnya sebelum dilakukan sebuah ibadah.

- Akad Jual Beli sesuai mahzab syafii : akad jual beli harus diucapkan secara lisan.

- Pendapat Jumhur, Sighat Jual Beli tidak harus ada kalimat khusus.

- Studi kasus misal seorang anak kecil diberi uang 100 rb untuk membeli barang. Namun kenyataannya harga barang tersebut di mahalkan oleh penjual. yang normalnya 60 rb di hargai menjadi 100 rb. Jika Wali anak tersebut Ridho dengan uangnya, maka jual beli nya sah. naun jika tidak, maka jual belinya tidak sah.

- Berikut adalah syarat jual beli:
  1. Saling Ridha
  2. Penjual pembeli termasuk orang yng boleh transaksi
  3. orang yg akad harus pemilik.
  4. yang dijual manfaatnya mubah
  5. barang mungkin untuk diserahterimakan
  6. barang harus diketahui saat akad.
    1. Bisa dengan melihat langsung
    2. dengan memahami kriteria dan ciri barang.
  7. harga barang telah ditentukan ketika akad.

- yang diajarkan Rasulullah adalah batasan muamalah bukan tuntunan muamalah secara lengkap, karena kembali pada hukum asal dari muamalah adalah halal kecuali ada larangan.

- Studi Kasus: Jual beli misal mobil dibeli oleh C dari B tp msh berada di tempat A, maka nanti C ambil sendiri ke A. ini dilarang karena barang tidak berada di tempat.

- Unsur Ghoror(Tidak jelas akan untung atau rugi), jual beli ini dilarang.
 misal: memborong ikan saat msh dikolam karena tidak bisa di prediksi besar ikan.

- Hutang dengan akad jual beli dilarang, Rasul melarang menggabungkan hutang dan jual beli.

- jual beli tanpa barang by catalog boleh, namanya jual beli salam

- Kasus barang dalam sengketa : boleh memanfaatkan sejauh hak kita di sengketa tanah tersebut

- hakikat ada penjual(Berniat Menjual)

- Sighot : pernyataan beli dan jual.



B. Modal Dalam Islam
C. Kaidah Seputar Riba


Introduction to Marker Clustering With Google Maps

Static Maps API has URL length limit of around 2048 characters. You can hit this limit quickly when adding lot of markers. You can keep URL short by clustering markers together.

Square Based Clustering

Clustering is usually done by dividing map to squares. Square size depends on map zoom level. Markers inside a square are then grouped into cluster. This technique has some limitations. Look at the following image.
Two markers are close to each other. In fact they are so close they are overlapping. Both markers are also the only marker inside their square. Because markers are in separate square they wont be clustered.

Distance Based Clustering

We can also group markers together based on their distance from each other. We could cluster all markers inside 10 kilometer radius together. There is one problem with this approach. Kilometers (and miles) have different meaning in different zoom levels. In zoomed in map it might mean 100 pixels. In zoomed out maps one kilometer might be only one pixel.
There is only one distance unit which does not have this problem: pixels in current zoom level. One pixel on screen is always one pixel on screen. For example we want to cluster all markers which are 20 pixels from each other. I chose 20 pixels because it happens to be the distance after which markers start to overlap each other.
Now the two markers would be clustered since they are inside 20 pixel radius.

Distance Between Two Coordinates on Earth

Distance between two points on earth can be calculated in several ways. Haversine formulais reasonably accurate and widely used. It assumes earth is spherical (in reality earth is slightly ellipsoid). This causes accuracy to be +-2 km when calculating distances of around 20.000 km. 6371.0 km is used as average radius of earth.
Below is PHP implementation of Haversine formula:
function haversineDistance($lat1, $lon1, $lat2, $lon2) {
    $latd = deg2rad($lat2 - $lat1);
    $lond = deg2rad($lon2 - $lon1);
    $a = sin($latd / 2) * sin($latd / 2) +
         cos(deg2rad($lat1)) * cos(deg2rad($lat2)) *
         sin($lond / 2) * sin($lond / 2);
         $c = 2 * atan2(sqrt($a), sqrt(1 - $a));
    return 6371.0 * $c;
}
But didn’t wee need distance in pixels instead? For that we can use Pythagoras’ theorem. Pythagoras’ theorem uses cartesian (pixel) coordinates. Some Mercator magic can be used to convert latitude and longitude to pixel x and y values.
You might wonder where did number 268435456 come from? It is half of the earth circumference in pixels at zoom level 21. You can visualize it by thinking of full map. Full map size is 536870912 × 536870912 pixels. Center of the map in pixel coordinates is 268435456,268435456 which in latitude and longitude would be 0,0.
define('OFFSET', 268435456);
define('RADIUS', 85445659.4471); /* $offset / pi() */
    
function lonToX($lon) {
    return round(OFFSET + RADIUS * $lon * pi() / 180);        
}

function latToY($lat) {
    return round(OFFSET - RADIUS * 
                log((1 + sin($lat * pi() / 180)) / 
                (1 - sin($lat * pi() / 180))) / 2);
}

function pixelDistance($lat1, $lon1, $lat2, $lon2, $zoom) {
    $x1 = lonToX($lon1);
    $y1 = latToY($lat1);

    $x2 = lonToX($lon2);
    $y2 = latToY($lat2);
        
    return sqrt(pow(($x1-$x2),2) + pow(($y1-$y2),2)) >> (21 - $zoom);
}
Now we have all needed mathematics in place. What to do with them?

Cluster Markers Together

Let’s write example clusterer function. It takes three parameters:
  • Array of lat and lon locations.
  • Distance in pixel inside which markers will be clustered.
  • Current map zoom level.
Function will return another array where coordinates closer than $distance are clustered together.
function cluster($markers, $distance, $zoom) {
    $clustered = array();
    /* Loop until all markers have been compared. */
    while (count($markers)) {
        $marker  = array_pop($markers);
        $cluster = array();
        /* Compare against all markers which are left. */
        foreach ($markers as $key => $target) {
            $pixels = pixelDistance($marker['lat'], $marker['lon'],
                                    $target['lat'], $target['lon'],
                                    $zoom);
            /* If two markers are closer than given distance remove */
            /* target marker from array and add it to cluster.      */
            if ($distance > $pixels) {
                printf("Distance between %s,%s and %s,%s is %d pixels.\n", 
                    $marker['lat'], $marker['lon'],
                    $target['lat'], $target['lon'],
                    $pixels);
                unset($markers[$key]);
                $cluster[] = $target;
            }
        }

        /* If a marker has been added to cluster, add also the one  */
        /* we were comparing to and remove the original from array. */
        if (count($cluster) > 0) {
            $cluster[] = $marker;
            $clustered[] = $cluster;
        } else {
            $clustered[] = $marker;
        }
    }
    return $clustered;
}
We can now test clusterer function with array of coordinates.
$markers   = array();
$markers[] = array('id' => 'marker_1', 
                   'lat' => 59.441193, 'lon' => 24.729494);
$markers[] = array('id' => 'marker_2', 
                   'lat' => 59.432365, 'lon' => 24.742992);
$markers[] = array('id' => 'marker_3', 
                   'lat' => 59.431602, 'lon' => 24.757563);
$markers[] = array('id' => 'marker_4', 
                   'lat' => 59.437843, 'lon' => 24.765759);
$markers[] = array('id' => 'marker_5', 
                   'lat' => 59.439644, 'lon' => 24.779041);
$markers[] = array('id' => 'marker_6', 
                   'lat' => 59.434776, 'lon' => 24.756681);

$clustered = cluster($markers, 20, 11);

print_r($clustered);
If you run the code you can see how marker_3, marker_4 and marker_6 are clustered together. This can better be visualized as map screenshot before and after clustering. Blue marker is a cluster.

Real Life Usage?

Obviously making an array of coordinates into a new array of coordinates is not really usefull. However the first clusterer for Static Maps I committed to GitHub uses previously described technique. Clustering a static map takes only two extra lines of code. First create a cluster. Then add it to the map object. Rest is taken care automatically.
$clusterer = Google_Maps_Clusterer::create('distance');
$map->setClusterer($clusterer);
You can see it in action in capital cities of the world map. City locations are parsed fromKML file. Note that in closer zooms locations are slightly off. Coordinates have only two decimals of latitude and longitude.
Currently I have demo code only for Static Maps. Serverside clustering for Google Maps APIwill follow soon. Thats a promise. Cross my heart.

Source : http://www.appelsiini.net/2008/introduction-to-marker-clustering-with-google-maps