50% Off/-

50% Off/-

Php

50% Off/-

50% Off/-

Web

50% Off/-

50% Off/-

Latest Added Tutorials

$pdf = PDF::loadView('projects.pdf', ['project' => $project]); $options = new Options(); $options->set('isPhpEnabled', 'true'); $dompdf = new Dompdf($options); $dompdf->setOptions($options); $dompdf->loadHtml('<html>....'); $dompdf->setPaper('A4', ''); $dompdf->render(); // Instantiate canvas instance $canvas = $dompdf->getCanvas(); $w = $canvas->get_width(); $h = $canvas->get_height(); $pageNumberWidth = $w / 2; $pageNumberHeight = $h - 50; $GLOBALS["logo1"]=public_path('images/logo/icon.png'); $GLOBALS["logo2"]=public_path('images/logo/kultur_lo...Continue Reading
Showing admob interstitial ads when splash screen is loaded with a timer can be implemented as follows: package com.codesenior.admob; import android.content.Intent; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import com.google.android.gms.ads.AdListener; import com.google.android.gms.ads.AdRequest; import com.google.android.gms.ads.InterstitialAd; import java.util.Timer; import java.util.TimerTask; public class SplashActivity extends AppCompatActivity { private InterstitialAd mInterstitialAd; private Timer...Continue Reading
We can access Vue component from Jquery as follows: app.__vue__.$refs.summary.loadProjectSummary($('#code').val()); Vue Component is included as follows: <project-summary-component ref="summary" project-summary-url="{{route('api.project.summary')}}"> </project-summary-component> As you notice, we have used ref attribute to access the component loadProjectSummary() method. LoadProjectSummary method: loadProjectSummary(code) { const data = { name: 'Client Token', scop...Continue Reading
Programmatically adding bootstrap-datatimepicker can be easily made as follows: $("body").on('focus', '.vue-date', function() { $(this).datetimepicker({ format: 'DD/MM/YYYY', useCurrent: false, locale: 'tr', }) });...Continue Reading
You can use following configuration for on-demand PHP storm debugging:...Continue Reading
macOS Mojave Setup: Homebrew + Apache + PHP + MariaDB
Android simple GET Request: import android.os.AsyncTask; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; public class HttpGetRequestTask extends AsyncTask<String, Integer, String> { private RequestResponseHandler requestResponseHandler; public HttpGetRequestTask(RequestResponseHandler requestResponseHandler) { this.requestResponseHandler=requestResponseHandler; } protected String doInBackground(String... urls) {...Continue Reading
using System; using System.Collections.Generic; using System.Linq; using System.Web; using Google.Apis.Auth.OAuth2; using Google.Apis.Sheets.v4; using Google.Apis.Sheets.v4.Data; using Google.Apis.Services; using Google.Apis.Util.Store; using System.IO; using System.Threading; namespace DgEeUI.Utils { public class GoogleSheetUtil { private string _webRootPath; private string _spreadSheetId; public GoogleSheetUtil(string webRootPath, string spreadSheetId) { _webRootPath = webRootPath; _...Continue Reading
Dropzone HTML Implementation <link href="<?php echo base_url() ?>assets/css/dropzone.css" rel="stylesheet"> <div class="card"> <div class="row"> <div class="col-sm-12"> <div class="col-md-12 col-sm-12"> <form action="<?= base_url('admin/do_send_gallery'); ?>" class="dropzone" id="my-awesome-dropzone"> </form> </div> </div> </div> </div> </div> <script src="<?php echo base_url() ?>a...Continue Reading
Ajax file upload usage with https://github.com/blueimp/jQuery-File-Upload plugin as follows: <div class="row"> <div class="col-sm-6"> <input class="file-upload" type="file" name="files" data-url="/file-upload.php" /> </div> <div class="col-sm-6"> <div class="progress"> <div id="progress-bar" class="progress-bar progress-bar-success"></div> </div> </div> </div> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> &...Continue Reading
Create a notification on Android: String name=""; String message=""; int MID=12345; NotificationManager notificationManager = (NotificationManager) getActivity() .getSystemService(Context.NOTIFICATION_SERVICE); if(notificationManager==null)return; String NOTIFICATION_CHANNEL_ID = "step_counter_channel"; NotificationChannel mChannel; if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { int importance = NotificationManager.IMPORTANCE_LOW; mChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, "step_counter_channe...Continue Reading
I created a sample batch script. You can download all private/public repositories from github.com. After a repository is downloaded, it is automatically converted to a zip file. @echo off setlocal EnableDelayedExpansion SET "username=your_username" SET "password=your_password" SET "url=https://%username%:%password%@github.com/%username%/" FOR /F "tokens=* delims=" %%i in (files.txt) do ( SET repo=%%i rmdir /s /q !repo! mkdir !repo! cd !repo! git init git pull "!url!!repo!.git" git archive --format=zip -o "D:\github\!repo!....Continue Reading
using System; using System.Data.Entity; using System.Data.Entity.Core.Objects; using System.Data.Entity.Infrastructure; using System.Data.Entity.ModelConfiguration.Conventions; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Web; using log4net; using TelifBandrolTutanak.Models; namespace TelifBandrolTutanak.DAL { public class BandrolContext : DbContext { private readonly ILog _logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); public BandrolContext() : base("Ban...Continue Reading
We can easly integrate file upload process in Laravel as follows: 1. Add following codes to create.blade.php file: <div class="box box-primary"> <div class="box-body"> <div class="row"> {!! Form::open(['route' => 'applications.store','files'=>true]) !!} <div class="form-group col-sm-6"> {!! Form::label('image', 'Image:') !!} @if(isset($application->image)) <img src="{{asset("$application-/>image")}}" width="125" height="125"/> <input...Continue Reading
<div class="form-group col-sm-6"> {{Form::hidden('is_active',0)}} {!! Form::label('is_active', 'Aktif:') !!} {!! Form::checkbox('is_active') !!} </div>...Continue Reading

© 2019 All rights reserved. Codesenior.COM