What is this FAQ

“What is this” is an application uses amazon rekognition service to find out what are the picture contents.

July 29, 2017 · 1 min · Özkan Pakdil

How to get TeamCity parameters dynamically

I have been searching about this hours. If you want to query parameters from build template. You can use REST api curl -s -u %system.REST% http://servername:port/httpAuth/app/rest/buildTypes/template_name/parameters/parameter.%selectedOpTeam%.svnpath this rest call brings some svnpath from tc parameters. But when I wanted to get password it becomes tricky. Because I used to save password in tc as password type. %secure:teamcity.password.team.4.svnpass% This is the value when you do rest call. So how can we get passwords from team city. You need to add password parameters to system properties. Then actually teamcity gives you those parameters in file ...

July 29, 2016 · 1 min · Özkan Pakdil

Oracle weblogic installation from console

the -silent mode is actually console installation without gui. Create 2 files 1 responseFile.properties [ENGINE] Response File Version=1.0.0.0.0 [GENERIC] ORACLE_HOME=/path-to-install-to INSTALL_TYPE=WebLogic Server MYORACLESUPPORT_USERNAME= MYORACLESUPPORT_PASSWORD= DECLINE_SECURITY_UPDATES=true SECURITY_UPDATES_VIA_MYORACLESUPPORT=false PROXY_HOST= PROXY_PORT= PROXY_USER= PROXY_PWD=<SECURE VALUE> COLLECTOR_SUPPORTHUB_URL= oraInst.loc inventory_loc=/inventory/ inst_group=users Run this command in shell java -jar fmw_12.2.1.1.0_wls.jar -silent -invPtrLoc /fullpath/oraInst.loc -responseFile /fullpath/responseFile.properties for windows java -jar fmw_12.2.1.1.0_wls.jar -silent -invPtrLoc c:\oracle\oraInst.loc -responseFile c:\oracle\responseFile.properties in responseFile.properties change ORACLE_HOME=c:\\some-path-to-install

July 1, 2016 · 1 min · Özkan Pakdil

different loops in two dimensional array

I was trying to solve hackerrank questions. it has been long time I write anything directly related to arrays. mostly coding after some point is db related and mostly used lists there. anyway here is how you can solve https://www.hackerrank.com/challenges/diagonal-difference this question in O(n square) and O(n). import java.io.*; import java.util.*; public class Solution { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); final int n = stdin.nextInt(); long sum = 0; long sum1 = 0; long[][] matris = new long[n][n]; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { matris[i][j] = stdin.nextLong(); } } for (int i = 0; i < n; i++) { // System.out.println(matris[i][i]); sum += matris[i][i]; } for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { if (i + j == n - 1) { // System.out.println(matris[i][j]); sum1 += matris[i][j]; } } } for (int i = n - 1; i >= 0; i--) { System.out.println(matris[i][n - 1 - i]); } System.out.println(Math.abs(sum - sum1)); } }

February 11, 2016 · 1 min · Özkan Pakdil

How to use opatch in windows

Oracle has opatch utility for applying weblogic patches. you just need to unzip the patch package and run the command like this C:\Oracle\wls12.1.3\OPatch>opatch apply C:\Oracle\wls12.1.3\OPatch\utils\patches\20741228 Oracle Interim Patch Installer version 13.2.0.0.0 Copyright (c) 2014, Oracle Corporation. All rights reserved. Oracle Home : C:\Oracle\WLS121~1.3 Central Inventory : C:\Program Files\Oracle\Inventory from : n/a OPatch version : 13.2.0.0.0 OUI version : 13.2.0.0.0 Log file location : C:\Oracle\WLS121~1.3\cfgtoollogs\opatch\20741228_Feb_01_2016_10_10_23\appl OPatch detects the Middleware Home as "C:\Oracle\wls12.1.3" Feb 01, 2016 10:10:24 AM oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl INFO: Install area Control created with access level 0 Applying interim patch '20741228' to OH 'C:\Oracle\WLS121~1.3' Verifying environment and performing prerequisite checks... All checks passed. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = 'C:\Oracle\WLS121~1.3') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files... Patching component oracle.javavm.jrf, 12.1.0.2.0... Verifying the update... Patch 20741228 successfully applied Log file location: C:\Oracle\WLS121~1.3\cfgtoollogs\opatch\20741228_Feb_01_2016_10_10_23\apply OPatch succeeded. for listing patches already applid in the system C:\Oracle\wls12.1.3\OPatch>opatch lspatches Feb 01, 2016 5:53:32 PM oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl INFO: Install area Control created with access level 0 21370953;WebLogic Server 12.1.3.0.5 PSU Patch for BUG21370953 October 2015 20469805;One-off 20741228;JDBC 12.1.3.1 BP1 22192029;One-off making a rollback one of the patches C:\Oracle\wls12.1.3\OPatch>opatch rollback -id 21370953 Oracle Interim Patch Installer version 13.2.0.0.0 Copyright (c) 2014, Oracle Corporation. All rights reserved. Oracle Home : C:\Oracle\WLS121~1.3 Central Inventory : C:\Program Files\Oracle\Inventory from : n/a OPatch version : 13.2.0.0.0 OUI version : 13.2.0.0.0 Log file location : C:\Oracle\WLS121~1.3\cfgtoollogs\opatch\21370953_Feb_01_2016_17_56_20\roll OPatch detects the Middleware Home as "C:\Oracle\wls12.1.3" Feb 01, 2016 5:56:24 PM oracle.sysman.oii.oiii.OiiiInstallAreaControl initAreaControl INFO: Install area Control created with access level 0 RollbackSession rolling back interim patch '21370953' from OH 'C:\Oracle\WLS121~1.3' Please shutdown Oracle instances running out of this ORACLE_HOME on the local system. (Oracle Home = 'C:\Oracle\WLS121~1.3') Is the local system ready for patching? [y|n] y User Responded with: Y Patching component oracle.wls.libraries, 12.1.3.0.0... Patching component oracle.wls.libraries, 12.1.3.0.0... Patching component oracle.wls.clients, 12.1.3.0.0... Patching component oracle.wls.clients, 12.1.3.0.0... Patching component oracle.wls.core.app.server, 12.1.3.0.0... Patching component oracle.wls.core.app.server, 12.1.3.0.0... Patching component oracle.wls.libraries.mod, 12.1.3.0.0... Patching component oracle.wls.libraries.mod, 12.1.3.0.0... Patching component oracle.webservices.wls, 12.1.3.0.0... Patching component oracle.webservices.wls, 12.1.3.0.0... Patching component oracle.wls.server.shared.with.core.engine, 12.1.3.0.0... Patching component oracle.wls.server.shared.with.core.engine, 12.1.3.0.0... Patching component oracle.wls.workshop.code.completion.support, 12.1.3.0.0... Patching component oracle.wls.workshop.code.completion.support, 12.1.3.0.0... Patching component oracle.wls.admin.console.en, 12.1.3.0.0... Patching component oracle.wls.admin.console.en, 12.1.3.0.0... RollbackSession removing interim patch '21370953' from inventory Log file location: C:\Oracle\WLS121~1.3\cfgtoollogs\opatch\21370953_Feb_01_2016_17_56_20\rollback2016-02-01_17-56-02PM_1.log OPatch succeeded. ...

February 2, 2016 · 2 min · Özkan Pakdil