Skip to main content

Posts

Swift language

Just for fun, I am giving a look to the new "Swift" programming language from Apple. I have to say it looks pretty cool. Type inference, tuple, and optionals can really save a lot of time during development. I am really eager to try it more extensively. 

SVN: E175002: Getting crazy with Maven Release Plugin (solved)

I was trying to use Maven Release Plugin on my cygwin to upload a versioned library into my archiva repository. I was keep and keep getting this exception. svn: E175002: Processing OPTIONS request response failed: Premature end of file. (/) svn: E175002: OPTIONS request failed on '/'         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)         at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)         at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)         then I noticed that in my pom files I had the following scm connection ...

Beethoven a Latina

Immaginate se Ludwig Beethoven, anzichè nascere a Bonn negli anni 70 del settecento, per uno scherzo del destino fosse nato un po' piu' giu', mettiamo da qualche parte in Lazio, e appena qualche anno dopo, mettiamo un paio di secoli. Beethoven si siede, ha una grandissima idea, comporrà la nona sinfonia. Si siede sul tavolo è ispiratissimo, sente proprio la melodia scorrergli nelle vene e riempirgli il cuore...driin driin, un poke su facebook della sua amica, quella stronza profumiera di Elisa, che sono anni che gli ronza attorno e non gliel'ha data mai. "Ke fai?" "Elisa, sto componendo la nona sinfonia". "Xke', le altre otto che hanno fatto? Ci facciamo un giro all'iper?". "Non posso, sto lavorando". "E dai vieni che ti faccio conoscere uno che mi piace". Maledetta...giocare cosi' con i suoi sentimenti... attacca. Ritorna a scrivere, la melodia torna potente nel cuore, una nota, poi l'altra, poi...

Extracting a single field from a very long json file

Trivial task, but still can save some time to somebody, so I am gladly sharing. A friend of a mine has an huge json file, and she had to extract all unique value for a field called "title".  The file was too big to be processed from a notepad or an excel. With those comands, I was able to obtain a clean, unique and sorted list list of all the content. grep -o -E '"title":"[^"]+",' tmp.json | sort |uniq > output.txt sed -i 's/"title":"//g' output.txt sed -i 's/",//g' output.txt

A new redbook!

Time for changes, you know... but I have good news!  The redbook "Building and implementing Social Digital Experience", one I had the honor to co-author, is finally out! http://www-10.lotus.com/ldd/portalwiki.nsf/xpDocViewer.xsp?lookupName=IBM+Redbooks%3A+Building+and+Implementing+Social+Digital+Experiences#action=openDocument&content=catcontent&ct=redbooks

Playing with Apache...

If you are playing with Apache on Windows and you keep getting E:\IBM\HTTPServer\bin>apache.exe -k start [Fri Jan 31 00:12:00 2014] [notice] Disabled use of AcceptEx() WinSock2 API (OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted.  : make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Before getting mad and reviewing all your httpd.conf line by line, try to quit Skype. Yes, by default it opens port 80 !!!

How a Global Admin knows about the communities to modify?

Moderation in Connections 4.5  is an awesome feature, but may be pretty cumbersome. If you decide to moderate everything before it get published (ex-ante), you will enforce an strict rule over you social network. If you moderate after publishing (ex-post) ,you are basically relying on good will of other users flagging content around your organization.  IBM Connections not offers you the very powerful role of Global Admin. It's a J2EE role, it is present both on Communities and Search (and other features too), but now let's focus on these two features. So, a global admin can do everything on every community: great stuff, but how he gets to know a community exists?  With the basic community ui you have access to  1) Communities you own 2) Communities you are a member of 3) Public communities And the global admin role technically is neither of three. That's why the global admin role is also on search application, where he can see everything. So g...

SECJ0118E with form authentication and spnego enabled

Our deployment keeps getting an odd SECJ0118E  exception when authenticating with Form authentication with Mozilla or Chrome browser not configured for Active Directory Domain. All instructions into WebSphere infocenter for enabling fallback to default authentication were correctly applied.  We noticed that standard WebSphere security tracing ( *=info:com.ibm.ws.security.*=all:com.ibm.websphere.security.*=all:com.ibm.websphere.wim.*=all:com.ibm.wsspi.wim.*=all:com.ibm.ws.wim.*=all)  provided into trace a lot of Kerberos exceptions.  [30/12/13 17.36.57:246 CET] 0000005e Krb5LoginModu < login() Exit javax.security.auth.login.FailedLoginException: Errore di login: com.ibm.security.krb5.KrbException, codice di stato: 68 messaggio: Nessuno at com.ibm.security.jgss.i18n.I18NException.throwFailedLoginException(I18NException.java:30) at com.ibm.security.auth.module.Krb5LoginModule.a(Krb5LoginModule.java:719) at com.ibm.security.auth.module.Krb5LoginMo...

AssertionException in IBM Connections

We had an odd scenario with a Novell directory, where the uid attribute was mapped in another attribute.  To support this scenario first we had to modify wimconfig.xml into WebSphere configuration to expose uid as another attribute (edit under <config:attributeConfiguration> )  <config:attributeConfiguration>   <config:attributes name="customUid" propertyName="uid">   <config:entityTypes>PersonAccount</config:entityTypes>   </config:attributes> </config:attributeConfiguration> then after mapping in TDI scripts, into map_db_from_source.properties the following, guid=customUid uid=customUid we noticed that every user trying to accessing got an exception like this one AssertionException: Unsupported access by user with no profile: cn=FRANCESCO DE COLLIBUS,ou=users,dc=test,dc=com Making the SQL query db2 connect to PEOPLEDB select * from EMPINST.EMPLOYEE where PROF_SURNAME like '%De Collibus%' my r...

ADMU3011E when deploying Cognos in Connections 4.5

I had a cognos for connections 4.5 to deploy, and I keep getting error. cognos_server was unable to start with WAS error into cognos-configure.log ADMU0116I: Tool information is being logged in file            /opt/IBM/WebSphere/AppServer/profiles/CognosProfile/logs/cognos_server/startServer.log ADMU0128I: Starting tool with the CognosProfile profile ADMU3100I: Reading configuration for server: cognos_server ADMU3200I: Server launched. Waiting for initialization status. ADMU3011E : Server launched but failed initialization. Server logs,            startServer.log, and other log files under            /opt/IBM/WebSphere/AppServer/profiles/CognosProfile/logs/cognos_server            should contain failure information. Waiting for Cognos services started. I noticed that i left populated this variable also on linux # The following property is only required...

WASService.sh and ulimit.... a tricky combo

From version 7 onward, the Application Server scripts and configuration scripts have the good manner to set by themselves the right ulimit valu. So ulimit is now less a problem than it was before. The problem is that, sometime when dealing with linux services,things do not always get right. For example you get exceptions such as [11/14/13 12:06:15:483 CET] 00000066 exception     E com.ibm.ws.wim.adapter.ldap.LdapAdapter authenticateWithPassword                                  com.ibm.websphere.wim.exception.WIMSystemException: CWWIM4520E  The 'javax.naming.CommunicationException: ldapus.ldap.domain.com:389 [Root exception is java.net.SocketException: Too many open files]' naming exception occurred during processing. (In case you are asking, yes, network connections are counted as open files) That's why I strongly suggest to modify your /etc/security/limits.conf (on RedHat) bef...

Always use Global Sender!

In Connections notification, I really don't like using dozens of different senders for every feature That's why in notification-config.xml I always add the property for always using globalSenderName. You have to add it manually  here <?xml version="1.0" encoding="UTF-8"?><!-- Copyright IBM Corp. 2008, 2013  All Rights Reserved.              --><config buildlevel="LC4.0_20130311_1432" enabled="true" id="notification-config" version="4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="notification-config.xsd"> <properties> <property name="globalSenderEmailAddress">global-admin@esprinet.com</property> <property name="alwaysUseGlobalSender">true</property> <property name="globalSenderName">Info Connections</property> <!-- If true a link to Conne...

Cognos-setup.bat error

When we run cognos-setup.bat, cognos-configure.bat cognos-setup-update.bat or cognos-configure-update.bat script we could get this type of error E :\INSTALL\Cognos\win32\issetup.exe Using cognos.locale: EN All properties provided for Cognos database All properties provided for Metrics database com.ibm.net.SocketKeepAliveParameters JDBC Connection Success Success to verify the JDBC connection to Cognos Content Store database.  '-classpath' is not recognized as an internal or external command, operable program or batch file. Failed to verify the JDBC connection to Metrics database. Please check the error message. Validation failed, unable to continue setup By disabling the echo off at the beginning of batch script, we see that variables do not get correctly populated. Let's open any one of these files REM Validate the JDBC connection. SET was=%was.install.path% SET java="%was%\java\bin\java.exe" SET JAR_HOME=%cognosSetupScriptPath_%BI-Custom...

Problem installing Cognos Transformer for Connections on Windows

For a mistake the first time I ran and installed the cognos-setup.bat script inside CognosConfig package for connections 4.5, I installed both Transformer and BI Server on the same folder, E:\IBM\Cognos64. I fixed the error into cognos-setup.properties ( Transformer into E:\IBM\Cognos and BI Server in E:\IBM\Cognos64)So I removed everything with uninstaller on E:\IBM\Cognos64\uninstall. Only the BI package was available for removal.  If I try to run again the cognos-setup.bat script, the tiny Cognos Stream Installer in the upper left corner  was every time getting this exception you cannot install this version of the product over a previously installed version After checking and doublechecking (regedit show no presence of any transformer reference, and I also tried installing and removing Transformer with standalone installer on the wrong directory, to be sure everything is correctly removed from user registry or whatever). At the end, I had an idea: the respo...

A Redbook residency needs you!

A very interesting residency awaits candidates http://www.redbooks.ibm.com/residents.nsf/Residency/69CBBCAFD466D61985257C0D00656CC8?OpenDocument it will be the upgrade of this one, so give a look, "Building and implementing a social portal" http://www.redbooks.ibm.com/abstracts/TIPS1008.html?Open Always keep your eyes open on redbook site for docs and news http://www.redbooks.ibm.com

WAB Demistified

This article of always helpful Bhava Mada is great for understanding how to deploy Web Application Bridge in WebSphere Portal 8. Don't miss it! As soon as I got time, I want to write something specific on the precise working of the proxy technology of WAB. http://www-10.lotus.com/ldd/portalwiki.nsf/dx/Integrating_the_Web_Application_Bridge_(WAB)_with_IBM_WebSphere_Portal_8.0_A_step-by-step_guide