• Home
  • Contact
bogge.info

The brain dump of bogge.

  • Contact
  • Blog
    • Computer
    • Food
    • Fun stuff
    • Graphic
    • msi
    • Pirate
      • Scripting
        • AutoIT
        • Crystal syntax
        • Etomite CMS
        • HTML
        • PHP
        • VBScript
    • Software
  • Photo
    • Interior
    • Landscape
    • Nature
    • Sky

Browsing Author Archives

Page 1 of 41234»

Wordperss editing toolbar gone and how to get it back.

Posted on March 4, 2012 by bogge

I saw this problem after installing a new wordpress site using 3.3.1. It worked at first but later it just vanished.

I noticed an error in the background, it was a 404 saying that a en.js could not be found.

To solve this i just created a folder named langs in  /wordpress/wp-includes/js/tinymce/themes/advanced/. Then i copied the /wordpress/wp-includes/js/tinymce/langs/wp-langs-en.js to /wordpress/wp-includes/js/tinymce/themes/advanced/langs and renamed the file to en.js.

So now the file exists /wordpress/wp-includes/js/tinymce/themes/advanced/langs/en.js  and the editing toolbar is visible again.

View from Glastonbury Tor

Posted on August 7, 2011 by bogge

295.67 megapixel panorama of the view from Glastonbury Tor, spans 360 horizontaly and 23.3 verticaly. Taken with Nikon D5100 and stitched by Microsoft ICE. This is just a view from the Glastonbury Tor, everything on the tor is not in this panorama.

Glastonbury tor is one of the most famous and sacred landmarks in the West Country. From the summit at 158 meters you can see three counties (Sommerset, Dorset and Wiltshire.).

Tor is a West Country word of Celtic origin meaning hill. The Tor has been a place of pilgrimage for over 10000 years.

On the summit is the St. Michaels´s Tower, part of a 14th-century church. It was built to replace a previous church which had been destroyed by an earthquake in 1275. The second church lasted until the Dissolution of the Monasteries in 1539. At this time, the tor was the scene of the hanging of Richard Whiting, the last Abbot of Glastonbury.

Woodhenge (360 panorama)

Posted on August 6, 2011 by bogge

847.72 megapixel panorama of Woodhenge, spans 360 horizontaly and 55.8 verticaly. Taken with Nikon D5100 and stitched by Microsoft ICE. The middle and the sky was something that just didn’t work.

Woodhenge is a Neolithic Class I henge and timber circle monument located in the Stonehenge World Heritage Site in Wiltshire, England. It is 2 miles north-east of Stonehenge in the parish of Durrington, just north of Amesbury.

Most of the 168 post holes held wooden posts, although Cunnington found evidence that a pair of standing stones may have been placed between the second and third post hole rings. Recent excavations (2006) have indicated that there were, in fact, several standing stones on the site, arranged in a “cove”. The deepest post holes measured up to 2m and the height of the timber posts they held has been estimated at up to 7.5m above the ground. The posts would have weighed up to 5 tons and the arrangement was similar to that of the bluestones at Stonehenge. The positions of the postholes are currently marked with modern concrete posts which are a simple and informative method of displaying the site.

Oviken old curch (360 panorama)

Posted on July 12, 2011 by bogge

Oviken old church was built in the middle ages.

Ovikens parish was in the Middle Ages one of the most important in Jämtland. This is demonstrated not least by the Ovikens vicar (1525-1563), Erik Andersson, was hired as a reformer by Gustav Vasa. Pastorate covered the entire southern Jamtland, including Klövsjö and Åsarna.

Camera is Nikon D40 and some Microsoft ICE.

Lake and hills from Lögdö wilderness

Posted on July 11, 2011 by bogge

Taken with Nikon D40, HDR in Photoshop and no other editing.

360 Lakeview in Lögdö wilderness

Posted on July 11, 2011 by bogge

A view of the lake by Ropnäs cottage in Lögdö wilderness. Lögdö wilderness is a 50 000-hectare area of magnificent countryside rich in lakes and forests perfect for wild camping, fishing, canoeing, swimming, hiking, and berry and mushroom picking. The moraine landscape made of up large boulders is a remnant of the last ice age, giving the area its special character.

Be sure to checkout the 360 pano below.

Stiching in Microsoft ICE, no other editing.

Click on panoramas below to see the 360 views.

From 2010

From 2009

Changeing timezone in crystal reports

Posted on July 7, 2011 by bogge

I have a data source that is in UTC (Coordinated Universal Time) and iam in the CET (Central European Time) timezone. So a need too change this time to the relevant timezone so that the data can be understood.

For example if some one is adding a post to the database in 1300 CET, the database says 1200 UTC and when the report is created it says that the post was created 1200 and the reader thinks that this is in CET.

So you can do it litke this:

local datetimevar x:=*Some Date*;
DateTime (YEAR(x), Month(x), day(x), hour(x)+1, minute(x), second(x))

But there is a problem with this approach and that is when is summer time we have Daylight savings so CET (Central European Time) becomes CEST (Central European Summer Time). So CET is +1h to UTC

So a better way to do this is to do it like this:

local datetimevar x:=*Some Date*;
ShiftDateTime (DateTime (YEAR(x), Month(x), day(x), hour(x), minute(x), second(x)), "CET,-60,CEST,0", "")

Explaining the syntax

ShiftDateTime shifts a DateTime value from one time zone to another time zone.

ShiftDateTime (inputDateTime, inputTimeZone, newTimeZone)

inputDateTime: a DateTime value to be shifted.
inputTimeZone: a “TimeZoneString” representing the time zone of the inputDateTime.
newTimeZone: a “TimeZoneString” representing the time zone to which the inputDateTime is shifted

The last empty string in my example indicates the local time zone is taken from the OS settings.

My TimeZoneString is constructed like this:
CET = String name of the standard time zone (eg Central European Time).
-60 = Offset, in minutes, of the standard time zone (CET is -1 hence -60 minutes).
CEST = String name of the DST time zone (eg Central European Summer Time).
0 = Optional DST offset from standard, defaults to one hour ahead of standard offset.

Blue sky and something

Posted on June 27, 2011 by bogge

Is it a plane? Is it a glider? No, it is something in between.
No editing…
Nikon D40

Calculate number of workdays in crystal reports

Posted on August 12, 2010 by bogge

In Sweden we typically work between Monday to Friday and are not working Saturdays and Sundays.

So for calculating how many days we work in a month we can use this formula in crystal reports:

Local DateTimeVar Start := #2010-01-01#;
Local DateTimeVar End := #2010-01-31#;
Local NumberVar Weeks;
Local NumberVar Days;

Weeks:= (Truncate (End - dayofWeek(End) + 1
- (Start - dayofWeek(Start) + 1)) /7 ) * 5;
Days := DayOfWeek(End) - DayOfWeek(Start) + 1 +
(if DayOfWeek(Start) = 1 then -1 else 0)  +
(if DayOfWeek(End) = 7 then -1 else 0); 

Weeks + Days

This returns the number of workdays in January when used in a formula in crystal reports.

Share variables between main crystal report and subreport

Posted on August 10, 2010 by bogge

To share a variable in crystal reports between a subreport and the main report you can do the following.

In the sub report create a formula and add this:

Shared NumberVar TheAnswer := 41;

Then in the main report you just add this in a formula:

Shared NumberVar TheAnswer;
TheAnswer

This will print out 41 in the main report.

Bur remember that the sub report must be executed before the formula in the main report, else the answer is 0 or null.

Page 1 of 41234»
  • Connect with us:
  • RSS
  • © 2021 www.bogge.com
  • bogge.com | bogge.eu | bogge.tv