50% Off/-

50% Off/-

Php

50% Off/-

50% Off/-

Web

50% Off/-

50% Off/-

Latest Added Tutorials

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
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
Saving base64 encoding string as file, we can use following codes: Function SaveToBase64 (base64String) Set Doc = Server.CreateObject("MSXML2.DomDocument") Set nodeB64 = Doc.CreateElement("b64") nodeB64.DataType = "bin.base64" nodeB64.Text = Mid(base64String, InStr(base64String, ",") + 1) dim bStream set bStream = server.CreateObject("ADODB.stream") bStream.type = 1 call bStream.Open() call bStream.Write( nodeB64.NodeTypedValue ) call bStream.SaveToFile("e:\test.jpg", 2 ) call bStream.close() set bStre...Continue Reading
Saving base64 encoding string as file, we can use following codes: Function SaveToBase64 (base64String) Set Doc = Server.CreateObject("MSXML2.DomDocument") Set nodeB64 = Doc.CreateElement("b64") nodeB64.DataType = "bin.base64" nodeB64.Text = Mid(base64String, InStr(base64String, ",") + 1) dim bStream set bStream = server.CreateObject("ADODB.stream") bStream.type = 1 call bStream.Open() call bStream.Write( nodeB64.NodeTypedValue ) call bStream.SaveToFile("e:\test.jpg", 2 ) call bStream.close() set bStre...Continue Reading
1. Create settings xml file in the ${user.home}/.m2 directory if not exists 2. Add following server config as follows: <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <servers> <server> <id>codesenior</id> <username>admin</username> <password>admin123</password> </ser...Continue Reading
C# Codes private void ExportGridToExcel() { Response.Clear(); Response.Buffer = true; Response.ClearContent(); Response.ClearHeaders(); string fileName = "Devlet_Personel_Baskanligi_" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".xls"; StringWriter strwritter = new StringWriter(); HtmlTextWriter htmltextwrtter = new HtmlTextWriter(strwritter); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ContentType = "application/ms-excel"; Response.ContentEncoding = System.Text.Encoding.Unicode;...Continue Reading
First of all, you should place your csv file where you saved your test script file. Normally test script can be saved as with jmx extension and placed your csv file in the same directory of it. Content of the CSV file as follows: url;www.test123.com url;www.test1234.com url;www.test12345.com Note that in the Thread Group configuration, thread count must be minimum number of lines in the csv file. According to above CSV file, we should define minimum 3 thread in the Thread Group. After this configuration, JMeter will automatically call Http Reque...Continue Reading
Sample Proguard config file defined in an Android project as follows: # This is a configuration file for ProGuard. # http://proguard.sourceforge.net/index.html#manual/usage.html -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -verbose # Optimization is turned off by default. Dex does not like code run # through the ProGuard optimize and preverify steps (and performs some # of these optimizations on its own). -dontoptimize -dontpreverify # Note that if you want to enable optimization, you cannot just # include optimization flags in your...Continue Reading
File Uploading is a very common in any web application. In this tutorial, we will introduce three different file upload operations: single file upload, multipe file upload, and ajax based file upload. First of all, there are some pre-request steps needed: 1. Create a Maven project 2. Add Spring Framework dependencies 3. Add Javax Servlet and JSTL dependencies 3. Add Apache Commons dependencies After initialization web application, directory structure of the application will look below image: Necessary Dependencies As stated above, we need...Continue Reading

© 2019 All rights reserved. Codesenior.COM