50% Off/-

50% Off/-

Php

50% Off/-

50% Off/-

Web

50% Off/-

50% Off/-

Latest Added Tutorials

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
MainActivity public class MainActivity extends AppCompatActivity implements IabBroadcastReceiver.IabBroadcastListener { private InAppBillingHelper inappbillingHelper; private static final int IN_APP_BILLING_REQUEST_CODE = 10001; private static final String SKU_TEST = "android.test.purchased"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); initInappBillingHelper(); btnClick.setOnClickListener(new View.OnClickListener() { @Override pub...Continue Reading
activity_main.xml file <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent"> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+...Continue Reading
Fragment re-created on bottom navigation view item selected Solution private void changeFragmentForBottomNavigationView(Bundle savedInstanceState, Fragment fragment) { // Check that the activity is using the layout version with // the fragment_container FrameLayout if (findViewById(R.id.fragment_container) != null) { // However, if we're being restored from a previous state, // then we don't need to do anything and should return or else // we could end up with overlapping fragments. if (savedIns...Continue Reading
import android.content.Context; import android.os.Bundle; import android.support.design.widget.TabLayout; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentStatePagerAdapter; import android.support.v4.view.ViewPager; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.forex.stockexchange4.R; import com.forex.stockexchange4.models.CalculateSummaryObject; import java.util.ArrayList; import java.util.List; public class CalculateF...Continue Reading
We can Category Table CREATE TABLE category ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(50) NULL, url VARCHAR(50) NULL, parent INT NULL, created_at TIMESTAMP NULL, updated_at TIMESTAMP NULL, deleted_at TIMESTAMP NULL, resim VARCHAR(255) NULL, kisaltma VARCHAR(255) NOT NULL, CONSTRAINT category_category_parent_fk FOREIGN KEY (parent) REFERENCES category (id) ON DELETE SET NULL ) ENGINE = InnoDB COLLATE = utf8_unicode_ci; CREATE INDEX category_category_parent_fk...Continue Reading
public function html() { return $this->builder() ->columns($this->getColumns()) ->minifiedAjax() ->addAction(['width' => '80px']) ->parameters([ 'dom' => 'Blfrtip', 'order' => [[0, 'desc']], "lengthMenu" => [10, 25, 50, 500], "pageLength"=> "10", 'buttons' => [ 'create', 'export', 'print', 'reset', 'reload',...Continue Reading
To send onesignal notification in Php, we can use following codes: function sendMessage($title, $message, $userId, array $extraParams, bool $isTest = false) { $app_id = "b21eaaf8-7da9-44e4-aa39-930e2503a109"; $rest_api_key = "NWEwMjU1YmItYzVmNy00YjBhLTlhNjEtNmZlMmUzOWU0Y2Ey"; $heading = array( "en" => $title ); $content = array( "en" => $message ); $fields = array( 'app_id' => $app_id, 'data' => $extraParams, 'contents' => $content, 'headings' => $heading ); $fields['large_icon'] = 'http...Continue Reading

© 2019 Tüm Hakları Saklıdır. Codesenior.COM