Buy anything from HongKong - Dealextreme

You can buy any kind of electronic gadgets from DealExtreme with free shipping option.
Please visit DealExtreme for very low prices.
Here is the link to the site : www.dealextreme.com

29 February 2016

Multi-language application integration

Whether your application makes use of multiple platforms and languages or not, it is fairly likely that its operations span multiple processes over networks and time. At some point, these processes will need to communicate, either through a file on disk, through a buffer in memory or across networks. There are two central concerns associated with inter-process communications:
  • Type Serialization
  • Service Implementation
In order to achieve this just check the following projects:
Apache Thrift (https://thrift.apache.org/
Apache Avro (https://avro.apache.org/

03 March 2015

varnish-cache

Varnish Cache is a web application accelerator also known as a caching HTTP reverse proxy. You install it in front of any server that speaks HTTP and configure it to cache the contents. Varnish Cache is really, really fast. It typically speeds up delivery with a factor of 300 - 1000x, depending on your architecture.
https://www.varnish-cache.org/ 

10 February 2015

Adding sub task control in Jira

If you want to check if subtasks are resolved during resolving the main task you can add a transition condition to the active workflow

Script workflow function : Simple scripted condition : Checks script:

import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.Issue
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.comments.CommentManager;
def subTaskManager = ComponentManager.getInstance().getSubTaskManager();
def result = true
CommentManager commentManager = ComponentManager.getInstance().getCommentManager(); 
Collection subTasks = issue.getSubTaskObjects()
if (subTaskManager.subTasksEnabled && !subTasks.empty) {
      for(i in subTasks) {
        commentManager.create (issue, "eyigitbasi", "2 " + i.issueTypeObject.id, false)
       if(i.issueTypeObject.id.equals('11')) {
          if(i.statusObject.id!=null && (i.statusObject.id.equals('5') || i.statusObject.id.equals('6'))){
           result = true
          } else {
                return false
          }
        }
      }
}
result

19 September 2014

Access tibco service wsdl

Just add ".wso?wsdl" to the end point : http://endpoint:port/EndPoint.wso?wsdl

18 December 2013

05 November 2013

Find string in files

Taken from: http://www.liamdelahunty.com/tips/linux_find_string_files.phpfind . | xargs grep 'string' -slThe -s is for summary and won't display warning messages such as grep: ./directory-name: Is a directoryThe -l is for list, so we get just the filename and not all instances of the match displayed in the results.
Performing the search on the current directory I get:
./javascript_open_new_window_form.php
./excel_large_number_error.php
I find this useful for just quickly seeing which files contain a search time. I would normally limit the files searched with a command such as :
find . -iname '*php' | xargs grep 'string' -slAnother common search for me, is to just look at the recently updated files:
find . -iname '*php' -mtime -1 | xargs grep 'string' -slwould find only files edited today, whilst the following finds the files older than today:
find . -iname '*php' -mtime +1 | xargs grep 'string' -sl






Automatic creation of jira tasks by using Script Listeners

  1. In the Script Listeners section select "Create a subtask" for automatic creation of subtasks.
  2. In the Script Listeners section select "Clones an issues and links" for automatic creation of the same task in another project


Sample condition: 

(issue.projectObject.name != "PRJ" && issue.issueTypeObject.name == 'Project') || (issue.projectObject.name == "PRJ" && issue.issueTypeObject.name == 'Incident' && issue.components.name.contains('CRM'))

Sample Modification: 


import com.atlassian.jira.ComponentManager
import com.atlassian.jira.issue.customfields.manager.OptionsManager
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.bc.project.component.ProjectComponent
import java.util.List
import java.util.ArrayList
import com.atlassian.jira.bc.project.component.ProjectComponent
def optionsManager = ComponentManager.getComponentInstanceOfType(OptionsManager.class)
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Support Needed In'}
def fieldConfig = cf.getRelevantConfig(issue)
def option = optionsManager.getOptions(fieldConfig).find {it.value == "Internal Test"}
issue.setCustomFieldValue(cf, option)
issue.summary = issue.summary + " - Support (Internal Test)"
if(issue.projectObject.name == "MSP-PRJ"){
    def component = ComponentAccessor.getProjectComponentManager().findByComponentName(10500,'CRM')
    List l = new ArrayList()
    l.add(component)
    issue.setAssignee(ComponentAccessor.getUserUtil().getUser('egulec'))
    issue.setComponentObjects(l)
}

23 October 2013

What to do if "Show as Conversations" check is not enabled?

On the View tab, which Arrangement are you using? Conversation is only available with Date arrangement :)
Order by "Received" column and it will be enabled again.

05 September 2013

Install package with apt-get without download

Just download the package with wget
Copy the package to /var/cache/apt/archives
run apt-get with the following options:

sudo apt-get install --no-download --fix-missing openntpd

03 September 2013

How to set HTTP Proxy in Unix- Linux

 export http_proxy=http://username:password@IP:port/

05 August 2013

Decrypt a stored password within IBM Websphere Application Server v7


c:\was\AppServer\java\jre\bin\java -Djava.ext.dirs=c:\was\AppServer\deploytool\itp\plugins\com.ibm.websphere.v7_7.0.0.v20080817\wasJars\ -cp securityImpl.jar:iwsorb.jar com.ibm.ws.security.util.PasswordDecoder {xor}pass

This will output the decoded password



12 July 2013

Change date & time in Unix
date -s "2 OCT 2006 18:00:00"

30 September 2012

Bulk rename files including sub folders

for /f "tokens=* delims= " %a in ('dir /b /ad /s') do rename "%a\*.suf1" "*.suf2"

25 July 2012

Importing a Certificate to Websphere Keystore


d:\IBM\WebSphere\AppServer\java\bin\keytool.exe -import -alias facebook -file d:\facebok.cer -storepass WebAS -keystore d:\IBM\WebSphere\AppServer\profiles\AppSrv01\etc\DummyClientKeyFile.jks

Owner: CN=www.facebook.com, O="Facebook, Inc.", L=Palo Alto, ST=California, C=US
Issuer: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, OU=VeriSign International Server CA - Class 3, OU="VeriSign, Inc.", O=VeriSign Trust Network
Serial number: 165f9ff89d0b31a887537cdef24fe04
Valid from: 6/21/12 3:00 AM until: 1/1/14 1:59 AM
Certificate fingerprints:
         MD5:  8E:74:0C:F8:E5:50:76:EC:04:F0:D9:C5:B7:AD:B4:3A
         SHA1: 9C:53:B1:A4:16:F9:58:79:1B:DA:D0:28:A9:FA:5D:65:4C:5F:81:52
Trust this certificate? [no]:  yes
Certificate was added to keystore

d:\IBM\WebSphere\AppServer\java\bin\keytool.exe -import -alias facebook -file d:\facebok.cer -storepass WebAS -keystore d:\IBM\WebSphere\AppServer\profiles\AppSrv01\etc\DummyClientTrustFile.jks

Owner: CN=www.facebook.com, O="Facebook, Inc.", L=Palo Alto, ST=California, C=US
Issuer: OU=www.verisign.com/CPS Incorp.by Ref. LIABILITY LTD.(c)97 VeriSign, OU=VeriSign International Server CA - Class 3, OU="VeriSign, Inc.", O=VeriSign Trust Network
Serial number: 165f9ff89d0b31a887537cdef24fe04
Valid from: 6/21/12 3:00 AM until: 1/1/14 1:59 AM
Certificate fingerprints:
         MD5:  8E:74:0C:F8:E5:50:76:EC:04:F0:D9:C5:B7:AD:B4:3A
         SHA1: 9C:53:B1:A4:16:F9:58:79:1B:DA:D0:28:A9:FA:5D:65:4C:5F:81:52
Trust this certificate? [no]:  yes
Certificate was added to keystore

14 December 2011

Creating custom Issues View in Mantis

Add a new custom configuration named " view_issues_page_columns " which is complex type.
Add the required columns like below in an array definition :

array ( selection, edit, priority, id, bugnotes_count, category, status, custom_Project Start Date, custom_Proposed Resolution Date, custom_Actual Resolution Date, custom_Work Done (%), summary, last_updated, )

13 September 2011

Can not exit from Excel 2007 by using close button

If the Excel is not closed when you close the last worksheet by using the close button from the upper right corner try this tip:
- Uncheck “Show all windows in the Taskbar” from "Excel Options" -> "Advanced" -> "Display" section.

25 March 2011

JSF 2.0 Migration Guide

The following document identifies the steps that are required to migrate a web application from JSF 1.2 to JSF 2.0 which uses Richfaces 3.3.x and Spring 3.0

The application will continue using RichFaces 3.3.x baseline with JSF 2.0 support
JSF 2.0 built-in facelet support will not be available(Old facelet library will continue)

Future Enhancements

Upgrade to Richfaces 4.0 with full JSF 2.0 support

Library Upgrades


  • Remove Old EL implementations: el-api.jar el-impl.jar
  • Remove Old JSF implementations: jsf-api-1.2.x.jar and jsf-impl-1.2.x.jar
  • Download Mojarra JSF 2.10 Reference implementation ( http://java.net/projects/javaserverfaces/downloads/download/release%252Fmojarra-2.1.0-FCS-binary.zip )
  • Rename Mojarra libraries to jsf-api-2.1.0.jar and jsf-impl-2.1.0.jar
  • Download EL 2.2.0 Reference Implementation ( http://download.java.net/maven/glassfish/javax/el/el-api/2.2.0-SNAPSHOT/el-api-2.2.0-SNAPSHOT.jar http://download.java.net/maven/glassfish/org/glassfish/web/el-impl/2.2.0-SNAPSHOT/el-impl-2.2.0-SNAPSHOT.jar )
  • Remove RichFaces JSF 1.2 Implementation (richfaces-impl-3.3.3.Final.jar)
  • Add RichFaces JSF 2.0 Implementation (richfaces-impl-jsf2-3.3.3.Final.jar) to web-inf/lib folder
  • Add new Mojarra and EL implemetation libraries to web-inf/lib folder

Web.XML Upgrade
Add the following context parameters to Web.xml

<!-- Activating the Expression Language -->
<context-param>
<param-name>com.sun.faces.expressionFactory</param-name>
<param-value>com.sun.el.ExpressionFactoryImpl</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
<param-value>true</param-value>
</context-param>

FacesConfig.XML Upgrade

  • Change file header version to 2.0:

<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
version="2.0">

  • Remove message bundle definition in <application> tag

<message-bundle>com.ccc.web.resources.messages</message-bundle>



  • Add new resource bundle definition

<resource-bundle>
<base-name>com.ccc.web.resources.messages</base-name>
<var>msg</var>
</resource-bundle>

  • Application tag should look like this:

<application>
<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
<view-handler>org.ajax4jsf.application.AjaxViewHandler</view-handler>
<resource-bundle>
<base-name>com.ccc.web.resources.messages</base-name>
<var>msgs</var>
</resource-bundle>
<locale-config>
<default-locale>tr</default-locale>
<supported-locale>tr</supported-locale>
<supported-locale>en</supported-locale>
</locale-config>
</application>

Other

  • Update validator messages in messages.properties
  • Check custom components.
  • Check custom validators

28 February 2011

Installing RPM package with relocation

List the files in RPM:
rpm -qpl lynx-2.8.4-2.aix5.1.ppc.rpm

Then relocate needed directories with -relocate option:

rpm -i --relocate /opt/freeware=/home/wasadmin/lynx/opt/freeware /usr/bin=/home/wasadmin/lynx/bin --root /home/wasadmin/lynx/ lynx-2.8.4-2.aix5.1.ppc.rpm

09 February 2011

Fırsat siteleri

Önümüzdeki birkaç yıl fırsat siteleri çok revaçta olacak gibi görünüyor. Bunlara üyelik için aşağıdaki davetiyeleri kullanabilirsiniz.

Paramini.com
Özellikle çocuk ve bebek ürünleri
http://www.paramini.com/

Modaelinizde.com
Tüm ünlü markalar
http://private.modaelinizde.com/

Markafoni.com
Tüm ünlü markalar
http://www.markafoni.com/

Trendyol.com
Tüm ünlü markalar
http://www.trendyol.com/

Limango.com.tr
Tüm ünlü markalar. ayrıca çocuk ve bebek ürünleri için özel sitesi de mevcut.
Özel mesaj atmaniz halinde davetiye gönderebilirim.

04 February 2011

What is new on Weblogic Server 10.3.4 (11gR1)

Weblogic server 10.3.4 will support some of the Java EE 6 standarts.
Full support will be on next release (EJB 3.1, CDI 1.0, Servlet 3.0)

  • JSF 2.0, JPA 2.0, JAX-RS 1.1 support
  • JPA 2.0 : Toplink or EclipseLink
  • JAX RS 1.1 : Jersey (Use easy annotations)
  • Spring integration (Management from console, pre-configured beans)
  • Console performance
  • Optional components on startup(don't start EJB, JMS or JCA - for fast start) : Like WAS 7.0
  • Execute modified code immediately after recompile (no reboot no redeploy)
  • Ant and Maven support : Deploy directly with maven
  • Use Oracle Enterprise pack for Eclipse, JDeveloper or Netbeans (3 IDEs)
  • OEPE 11gR1 : For eclipse Helios 3.6, JSF 2.0 JPA 2.0, Coherence, WLST support
  • CAT- Class Loader Analysis Tool : Handy for 3rd party libraries. Can be accessed from console in dev mode.
  • Share same API and infrastructure with Glassfish (like OSGi kernel)
  • Exalogic Elastic Cloud integration
  • Partitioned Distributed Topics
  • Coherence Integration

Roadmap for full Java EE 6:
Support JavaEE 6 web profile for developers : In a zip <50MB and startup time <5sec