This article demonstrates how to use the Iterator interface in PHP. Objects implementing this interface works like an array when used in foreach constructs.
How to programmatically change passwords in SAP NetWeaver Portal
This article demonstrates how to programmatically change user passwords in SAP NetWeaver Portal using available API.
How to programmatically create users in SAP NetWeaver Portal
This article demonstrates how to programmatically change user passwords in SAP NetWeaver Portal using available API. For applications with very high number of users, they may be better off keeping some references to portal users in their databases. For instance, an application can cache user ids in its database when new users are created. In that that way, it has readily available list of users at its disposal. Certain non-critical queries can be delegated to the RDBMS to reduce hits to the portal.
How to configure Maven to use proxy to connect to the network
Background This article demonstrates how configure Apache Maven to use proxy to connect to the network. [wp_ad_camp_1] Software Environment Windows 7 Professional SP1 Apache Maven 3.1.1 Java 1.7 (1.7.0_67 – Windows x86) Modify conf/settings.xml [wp_ad_camp_2] Download the Apache Maven from http://maven.apache.org/
How to determine the current size of a MySQL Database
Background [wp_ad_camp_1] Sometimes you may need to limit the size of a particular MySQL specially for demo applications. Limiting the size of a database requires determining its current size before any insert operation. This article demonstrates how to use SQL
How to create MD5 checksum for Jar Files using Apache Ant
Background This article demonstrates how to create an MD5 checksums for jar files using Ant. This is useful to verify if correct jar files have been used to deploy in some environment by other team, e.g., SQA. [wp_ad_camp_1] Software Environment
How to Zip a file or the contents of a Directory in PHP
Background This article demonstrates how to archive the contents of a directory in PHP using ZipArchive class. [wp_ad_camp_1] Software Requirements Windows 7 Professional SP1 PHP 5.5.9 / Zend Engine v2.5.0 NetBeans IDE 8.0.1 Zip a file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | /* * Copyright 2014 www.turreta.com. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * Description of ZipArchiveSample * * @author www.turreta.com */ $zip1 = new ZipArchive(); $zip1->open("zip_add_single_file.zip", ZipArchive::CREATE); $zip1->addFile('zipme.txt', 'zipme.txt'); $zip1->close(); |
Zip a Directory
How to Trace Program Flow using Log4j2
Do you not hate it to log method with “entry” and “exit” texts? Should you use “start” or “entry”? This article demonstrates how to use Log4j2 API to perform flow tracing without the need to provide texts.
Prevent Remote Access to Apache Web Server
Background [wp_ad_camp_1] You downloaded and installed XAMPP for some research or experiment but do not want other people in the same network to have access to the local XAMPP web console. This can be achived using one of Apache HTTP
How to read files line by line in PHP
Background [wp_ad_camp_1] PHP is not as bad as other people would think. Sometimes it is easier to do things in PHP than in, say, Java. Consider reading a text file line by line and parsing each pipe-delimited line. Hardware Environment