oozing

Currently oozing might be the Problem… or better the retraction… it looks like 3d print Fails during travel, or shortly after… after the last fail i had a look at the filament end and it was a blop… it looks like the filament was pulled out, and then back in, but not throught… so retration might be the Problem…

https://www.matterhackers.com/articles/retraction-just-say-no-to-oozing

3d printing

time for a new category, or actually a new post… its been a while 🙁

and mainly it starts with a short story…

after a long time i finaly got my 3d printer (a trinus3d), which i backed on Kickstarter… and it actually worked pretty good… but then i changed to a cheap filament and trusted my printer it kinda messed up… the filament did not stick to the heat bed and it printer up around the nozzle… and after that, printig was a real Problem… but if this was really the beginning of all the issues is the big question. others with the same printer have similar Problems. the main issue is the cooling… whenever the fan starts, the temperature gets lower and lower… and sometimes it too low and the flow of the filament stops. so the printer stops…

so its time to understand the Problem… i already did 2 Things… replaces the power suppliy unit to an official stronger PSU. then i cleaned and replaces the nozzle…

i currently testing settings with Pango and Cura and actually i am not happy… there are still a lot of failures… but there are successes as well 🙂

A new beginning…

so its been a while, since i lastly added a new post to this blog… and actually i was supriced, that it was still there.

So its time to reactivate it. But it will be different… the main focus will still be the same… so only a notebook for things i run into, and want to document. own projects and inspiration. Mainly only for me…

so what is different? me 🙂

i dont work as a programmer anymore… so no work related coding stuff… so new stuff:
– i backed a 3d printer on kickstarter.
– i startet sewing.
– i like pinterest.
– i started backing again.

so thats it… we will see, if i stick in this plan 😛

Excel Worksheets

ok something completle different… vba… currently i am working in a small person related company, where they manage their clients in an Excel sheet. This actually is a good tool, but every person has his own sheet, where searching is horrible… so my goal is to write a small script, to generate an index page.

Sub SheetNames()

‘ Erster Eintrag auf Zeile
StartRow = 3

‘ Laufvariable mit der Postion zum einfüllen des aktuellen SheetNamens
Position = StartRow

For i = 1 To Sheets.Count

‘ Nur einfüllen, wenn der SheetName nicht dem Inhaltsverzeichnis entspricht

If Sheets(i).Name <> ActiveSheet.Name Then

‘Link erstellen
‘=HYPERLINK(“[Makro Tester.xlsm]’Tabelle1’!A1”; “Tabelle1”)
Worksheets(“Index”).Cells(Position, 1) = “=HYPERLINK(“”[” & ThisWorkbook.Name & “]'” & Sheets(i).Name & “‘!A1″”, “”” & Sheets(i).Name & “””)”

‘Position weiterzählen
Position = Position + 1
End If

Next i

‘ Leere Zeilen am Ende einfügen, um gegebenenfalls gelöschte Sheets aus dem Index zu löschen
For i = 1 To 5
Worksheets(“Index”).Cells(Position, 1) = “”

‘ Position weiterzählen
Position = Position + 1
Next i
End Sub

Modelmapper

In clean software development, with clean nice layers, there is one small problem relating entities. Every layer has own, most of the time similar entities. So there is a DB entity, an BusinessObject (BO) and there could be a TransferObject (TO) and so on. And mapping is a pain.

Modelmapper is the solution.

This framework simply mappes to objects and first hands on, this framework is great. Ok my entities where simple… DB Entity -> EntityBO both mainly similar, but with Lists of Objects and actually it worked out of the box. I didnt need any special MapperStrategy.

Love it.

MAVEN_OPTS

how to set MAVEN_OPTS:

export MAVEN_OPTS=”-Xms512m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=512m”

oracle read queue jms data

queues… only triggers are more confusing… ok thats wrong… because i learned stuff about queue_schedulers… pretty scary… but thats something completely different and i actually hope, i dont have to write about these… but back to queues…

queue handling is in my point of view pretty strate forward… define a queue message, write a queue writer to put messages in the queue, write a reader to retrieve the messages from the queue… simple… but checking, whats acutally going on on the queue is difficult…

we have sys_aq$_jms_text_messages in the queue, which is actually shown on the queue_table when you do a select on it… great… so how can i get its content?

select msgid, enq_time, enq_uid, qt.user_data.TEXT_VC from MY_QUEUE_TABLE qt where q_name = ‘my_queue’

where as the qt needs to be written out…

unix mount windows share

my work setup at work is still the same… win7 with a vmware guest redhat which i work on… a big part of the company is windows based, thats why i need to have access outside of the unix… one way is good old copy-paste… an other is webmail… and the next, which i actually use a lot is mounting… so here is the mount command, which i normaly need to google all the time 🙂

mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

find file in svn

after out switch from cvs to svn all old (not more improved) project where copied to a chaotic seperate lagacy svn… and hurray… i need to find some code in there… so how to search?

svn list -R https://subversion/repository | grep filename

but it takes for ever… so i used:

svn list -R file:///subversion/repository | tee svnlegacy.log

so i see, that it is still working… takes for ever… and if there is a typo in the file, i am looking for, i can search it much fuster in the logfile…

and yeah… still running 🙁

wsdl sharing by pack/unpack artifact

The problem is simple… we have a service-contract maven project, which contains all the wsdls… this will be deployed on a seperate server… why not simply use the maven repo?

so there are actually two solutions… put wsdl artifact on maven or unpack the arifact. This blog entry handles only the unpacking…

The solution is to put all wsdls as jar to the maven repo. Get the artifact, unpack it and generate the server or client from the unpacked wsdls. This solution matches my problem at work and no really effort was needed… but the solution kinda sucks… later more… first the solution 😉

Create a jar and pack the wsdls with build-helper-maven-plugin:

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<id>add-resource</id>
<phase>generate-resources</phase>
<goals>
<goal>add-resource</goal>
</goals>
<configuration>
<resources>
<resource>
<directory>src/main</directory>
<targetPath></targetPath>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>

And then unpack it in the actual service with maven-dependency-plugin:

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>unpack</id>
<phase>initialize</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>ch.michio.test</groupId>
<artifactId>service-contracts</artifactId>
<version>1.0.0</version>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}/service-contracts</outputDirectory>
<includes>**/*.xsd,**/*.wsdl</includes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>

Important it needs to be unpacked, before the generate-sources. Now it is in the target folder…

And finally generate it with cxf-codegen-plugin.