• Home
  • Referenzen
  • Südtirol Panorama
  • Impressum
  • Kontakt
  • Blog
  • Bilder Gallery
  • Artikel

    • TR/Phorpiex 552960 Lösung
    • Facebook Connect via Asp.net
    • Samsung Wave S8500-S8530 Touchscreen/Display Tausch Anleitung
    • ERROR CREATING CONTROL FOR NODETYPE: Media Umbraco v4
    • Samsung Wave Bada 2.0 S8500XXKK5 zum download bereit
    • Funktionen und Views beim selbergenieren des LinqToSql Codes einbeziehen
    • Samsung Wave Google Exchange einrichten
    • Keep div:hover open when changing nested select box
    • Jquery shuffle plugin with sorting by attribute
    • Jquery Html Slider - bxSlider
    • Links

      • Flightplanning24 – Metar Taf Webcams
      • Internetseiten Südtirol
      • Jobbörse Südtirol
      • Niederkofler Webentwicklung
  • Kategorien

    • Allgemein (23)
    • In eigener Sache (4)
    • Javascript (3)
    • Kaufberatung (2)
    • Konsolen (4)
    • Programmierung (9)
    • Spiele (7)
    • Technik (23)
    • Tools (6)
    • Webprogrammierung (77)
    • Windows (33)
      • Treiber (4)
    • XBox 360 (3)
  • Archive

    • Januar 2012
    • Dezember 2011
    • November 2011
    • Oktober 2011
    • September 2011
    • August 2011
    • Juli 2011
    • Juni 2011
    • Mai 2011
    • April 2011
    • März 2011
    • Februar 2011
    • November 2010
    • Oktober 2010
    • September 2010
    • August 2010
    • Juli 2010
    • Juni 2010
    • Mai 2010
    • April 2010
    • März 2010
    • Februar 2010
    • Januar 2010
    • Dezember 2009
    • November 2009
    • Oktober 2009
    • September 2009

Archiv für die Kategorie „Webprogrammierung“

« Ältere Einträge

Facebook Connect via Asp.net

Mittwoch, 11. Januar 2012

Facebook Connect via Asp.net ist eigentlich sehr einfach einzurichten.
Dazu benötigt ihr folgende DLL`s
FacebookSDK

Weiters natürlich eine Facebook App.

Diese könnt ihr hier einrichten Facebook for Developer

Ein kleines Beispiel:

Folgender Code ist um sich einzuloggen mittels Facebook

string[] extendedPermissions = new[] { "publish_stream", "offline_access" };
var oauth = new FacebookOAuthClient { ClientId = appId };
var parameters = new Dictionary<string, object>
{
{ "response_type", "token" },
{ "display", "popup" }
};
if (extendedPermissions != null && extendedPermissions.Length > 0)
{
var scope = new StringBuilder();
scope.Append(string.Join(",", extendedPermissions));
parameters["scope"] = scope.ToString();
}
var loginUrl = oauth.GetLoginUrl(parameters);

Um nun abzuprüfen ob ein User eingeloggt ist wird folgender Code verwendet:

private void webBrowser_Navigated(object sender, WebBrowserNavigatedEventArgs e)
{
FacebookOAuthResult result;
if (FacebookOAuthResult.TryParse(e.Url, out result))
{
if (result.IsSuccess)
{
var accesstoken = result.AccessToken;
}
else
{
var errorDescription = result.ErrorDescription;
var errorReason = result.ErrorReason;
}
}
}

Auf der FacebookSDK Seite findet ihr natürlich viele Beispiele.

Viel Spaß mit Facebook und Asp.net

Schlagworte:Asp.net, Connect, Facebook
Veröffentlicht in Programmierung, Webprogrammierung | Keine Kommentare »

ERROR CREATING CONTROL FOR NODETYPE: Media Umbraco v4

Mittwoch, 30. November 2011

Problem:
[ArgumentException: ERROR CREATING CONTROL FOR NODETYPE: Media]
umbraco.cms.presentation.Create.Page_Load(Object sender, EventArgs e) in d:\inetpub\wwwroot\ccnet\Source\Umbraco 3.1\umbraco\presentation\umbraco\create.aspx.cs:45
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
umbraco.BasePages.BasePage.OnLoad(EventArgs e) in d:\inetpub\wwwroot\ccnet\Source\Umbraco 3.1\umbraco\businesslogic\BasePages\BasePage.cs:287
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Solution:
1. open the UI.xml (located in /umbraco/config/create
2. search for the node with alias ‘media’,
3. change the alias in ‘Media’ (first letter a capital).
4. save the UI.xml
5. restart the website (to make sure the new UI.xml is loaded.

Schlagworte:umbraco
Veröffentlicht in Webprogrammierung | Keine Kommentare »

Samsung Wave Bada 2.0 S8500XXKK5 zum download bereit

Donnerstag, 24. November 2011

Seit heute früh steht Bada 2.0 zum download bereit.

Die Firmware GT S8500XXKK5 ist eine Final Version:

S8500XXKK5: Die Neuerungen im Überblick

Nach dem erfolgreichen Flashvorgang auf die S8500XXKK5 Firmware, möchte ich euch nun die Neuerungen vorstellen. Zurzeit fallen diese noch dürftig aus, aber ich werde diese Liste im Laufe des Tages weiter vervollständigen.

Die Neuerungen:

  • bereits gedrückte Tasten auf dem Tastenfeld verändern leicht ihre Farbe
  • Firmware enthält FlashLite 4
  • Browser deutlich schneller
  • Google Maps funktioniert
  • Facebook und Twitter App fehlen
Neuerungen von SciDev:
  • Wave läuft im Stand-by Modus mit 860MHz, statt wie bei bada 1.2  dauerhaft mit 1GHz
  • erstes Over-the-Air Update auf KKV

Daten von bada-blog.de

Veröffentlicht in Webprogrammierung | 1 Kommentar »

Funktionen und Views beim selbergenieren des LinqToSql Codes einbeziehen

Dienstag, 25. Oktober 2011

Folgender Code ermöglicht das.

qlmetal /server:localhost\SQLEXPRESS /database:DashBoard /views /functions /sprocs /dbml:DataClasses.dbml /namespace:DashBoard.Data

Veröffentlicht in Webprogrammierung | Keine Kommentare »

Keep div:hover open when changing nested select box

Freitag, 16. September 2011

This is an IE-only problem. The Layout: .toolTip becomes visible when it’s parent div is hovered over. Inside of .toolTip is a select box. When the user opens the select box to make a selection, the parent element gets hidden. I`m using also position:absolute.

The solution

<!--[if IE]>
<style type="text/javascript">
  jQuery(function($){
    $('.toolTip select').focus(function(){
        $(this).parents('.toolTip').addClass('keepOpen');
    });
    $('.toolTip select').blur(function(){
        $(this).parents('.toolTip').removeClass('keepOpen');
    });
    $("a.closeParentBox").click(function(){
        $(this).parents('.toolTip').fadeOut();
        return false;
    });
  });
</script>
<![endif]-->

Schlagworte:absolute, Bug, IE, position
Veröffentlicht in Webprogrammierung | Keine Kommentare »

Jquery shuffle plugin with sorting by attribute

Freitag, 19. August 2011

Lange hab ich gesucht und nichts gefunden. Ich suchte nach einem Jquery plugin was einerseits ein Shuffle macht und dann noch mittel attribute was ich gesetzt habe sortiert.

Nun habe ich ein Plugin selber programmiert.

Hier ist mein Code

Aufruf: $('#selector').shuffle({orderby:'rel',descending:false});

Jquery Shuffle download

Benötigt wird Jquery

Schlagworte:download, JQuery, shuffle, sort
Veröffentlicht in Webprogrammierung | Keine Kommentare »

Jquery Html Slider – bxSlider

Mittwoch, 10. August 2011

Lange habe ich gesucht und nun habe ich einen gefunden.

Der bxslider für jquery ist optimal um verschiedene Html Objekte herumzusliden.

Hier ein paar Informationen auf Englisch:

  • horizontal, vertical, and fade transitions
  • display and move multiple slides at once (carousel)
  • prev / next, pager, auto controls
  • easing transitions
  • random start
  • ticker mode
  • before, after, first, last, next, prev callback functions
  • optional styling included
  • TONS of options,

Solltet ihr einen Slider suchen, dann probiert auf jedem Fall zuerst diesen aus.

bxSlider

Schlagworte:bxslider, JQuery, slider
Veröffentlicht in Webprogrammierung | Keine Kommentare »

Footer Html5 Internet Explorer 8 Problem

Mittwoch, 10. August 2011

Natürlich wie kanns auch anders sein, erkennt der Internet Explorer 8 das Html5 Attribute <footer> nicht.

Hier hilft nicht einmal mehr ein display:block;

Es gibt jedoch eine einfache Lösung:

Fügt folgenden Javascript Code oberhalb euren <footer> Attributes ein.

document.createElement('footer');

Und schon funktioniert auch das Footer Attribut im IE8. Unter der Vorraussetzung natürlich, dass Javascript aktiviert ist.

Schlagworte:footer, Html5, Internet Explorer
Veröffentlicht in Webprogrammierung | Keine Kommentare »

Mircosoft SQL Server 2008 Datenbank Schema ändern

Dienstag, 28. Juni 2011

Derzeit beschäftige ich mich ein wenig mit dem SQL-Server 2008 und wollte einen ganz simple Geschichte machen: Eine bestehende Tabelle ein wenig anpassen. Beim Speichern der Daten kam aber vom Microsoft SQL Server Management Studio immer die Meldung, dass die Tabelle nicht gespeichert werden kann – mit dem Kommentar: “Speichern von Änderungen verhindern, die die Neuerstellungder Tabelle erfordern”

Die Lösung dafür ist eigentlich recht simple: Man öffnet im SQL Server Managementstudio den Menüpunkt Extras -> Optionen; geht dann in den Bereich Designer -> Tabellen- und Datenbank-Designer und deaktiviert dort unter “Tabellenoptionen” die Checkbox “Speichern von Änderungenverhindern, die die Neuerstellung der Tabelle erfordern”.

Anschließend kann man wie gewohnt die Tabelle modifizieren und auch speichern….

Veröffentlicht in Webprogrammierung, Windows | Keine Kommentare »

Mssql Database log is growing

Samstag, 25. Juni 2011

If you are using MsSQL, you might have noticed an abnormal growth of your ldf file. I will explain in this article the principle of the transaction log file, and how to limit its growth.

Whenever a data update is made in the database, entries are added to the transaction log (ldf file). It is not possible to prevent this as it is part of the way Microsoft SQL server maintains integrity – particularly during recovery.

The transaction log is a circular file; when the end is reached any free entries at the start will be used. This means that all being well, the file will stay at a constant size as the current entry cycles round.

The system maintains the MinLSN which is a pointer to the first active log record. Any log records before this (in the circular file) are free. The MinLSN will be prevented from moving forward by any open transactions;  the oldest open transaction entry will be >= the MinLSN. The MinLSN is updated at checkpoint so committing a transaction will not immediately free entries and anything that holds up the checkpoint can cause problems.

If the database is in simple recovery mode all entries prior to the MinLSN will be freed at checkpoint.

If the database is in full recovery mode (and a full backup has been taken) the entries prior to the MinLSN will only be freed by a transaction log backup (not full backup).

Unfortunately the sql server default (except local editions) leaves the databases in full recovery mode. This means that if no action is taken, no transaction log entries will be freed and the log file will eventually fill the disk and crash the system.

I would recommend always setting the model database to simple recovery mode.

If the log file has grown to being in full recovery mode then set it to simple before going any further. This should immediately stop the log from growing.

Enterprise manager
Right click on the database, properties, Options, set model to simple, OK.

t-sql
sp_dboption [dbname], ‘trunc. log on chkpt.’, ‘true’

Before this make sure there are free entries by setting the recovery model to simple or backing up the log.

Enterprise manager

Right click on the database, All tasks, Shrink database, Files, Select log file, OK.

t-sql
dbcc shrinkfile ([db_log_name])
Here [db_log_name] is the logical name of the log file as found from sp_helpdb or the table sysfiles

Always take a full backup before a detach. Detach the database, delete/rename the log file, attach the database – this will create a minimum size log file.
Note that the log file must be deleted/renamed otherwise it will be re-used even though it is not mentioned in the attach.

Enterprise manager

Right click on the database, All tasks, Detach database, OK.
Delete/rename the disk log file.
Right click on databases, All tasks, Attach database, Select the .mdf file, OK, Yes (to the create new log message).

t-sql

sp_detach_db [dbname]
Delete/rename the disk log file.
sp_attach_single_file_db [dbname], [filename]
where [filename] is the name of the physical data file (.mdf).

Veröffentlicht in Webprogrammierung, Windows | Keine Kommentare »

« Ältere Einträge

designed by tolpeit © 2010 - all rights reserved