Was ist der Unterschied zwischen den Intel Prozessoren? Welcher Prozessor ist besser/schneller?

Hypothesen

„Kauf dir nen i7, der ist viel besser als ein i5!“

Frage: Ist ein Intel Core i7-3517U schneller als ein Intel Core i3-7100U?

„Je höher die Zahl ist desto schneller ist der Prozessor!“

Frage: Ist ein Intel Core i7-6700HQ langsamer als ein Intel Core i7-7500U?

Ergebnis

Alle diese Aussagen sind völliger Quatsch oder stimmen nur in einem bestimmtem Kontext. Es kommt immer darauf an für welchen Zweck eine CPU hauptsächlich genutzt wird.

  1. Werden Anwendungen genutzt die auf mehreren Kernen laufen?
  2. Werden aufwändige Open GL Berechnungen durchgeführt / wird viel gespielt?

Eine sehr schöne Vergleichsmöglichkeit bietet hier die folgende Seite:

http://www.technikaffe.de/cpu_vergleichen

Sie ermöglicht den Vergleich zwischen Intel und AMD Prozessoren, sowie eine direkte Gegenüberstellung unterschiedlicher Benchmarks, die kontextspezifisch (was will ich mit dem Gerät machen?) betrachtet werden muss.

C++ und Visual Studio 2015 : Standard Libraries not found: stdio.h / cerrno.h / float.h / math.h … not found | Simple „Hello world!“ program not working

Problem

You have installed Visual Studio 2015 (Community Edition) and you are unable to compile a simple „Hello World!“ program using C++.

Nach der Installation von Visual Studio 2015 (Community Edition) lässt sich nicht mal ein simples „Hello World!“ Programm erstellen.

Analysis – Analyse

According to Microsofts article https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/ the headers, sources, and libraries are now distributed as part of a separate Universal CRT SDK. This SDK is included with Visual Studio; it is installed by default to C:\Program Files (x86)\Windows Kits\10. The debug ucrtbased.dll is also included as part of this SDK and is installed to the system directory.

Microsoft erwähnt in seinem Artikel https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/, dass die Header-Bibliotheken als Teil eines seperaten universellen C-Runtime SDK ausgefliefert werden, welches Standardmäßig mit Visual Studio 2015 in C:\Program Files (x86)\Windows Kits\10 installiert wird. Die ucrtbased.dll-Datei, welche auch Teil des SDKs ist, wird in das Systemverzeichnis kopiert.

Lösung – Solution

Der Bildschirm nach dem Kompilieren (orange) – Visual Studio 2015 findet 460 Fehler.
Screenshot after the compilation progress (orange) – Visual Studio 2015 is reporting 460 Errors.

errors

Rot: Um das Problem zu lösen -> Rechtsklick auf Projekt -> „Eigenschaften“ wählen.
Red: To solve the problem rightclick the project  and select „Properties“.

Library Path: C:\Program Files\Windows Kits\10\Lib\10.0.10150.0\ucrt\x86

pfad1

Danach müssen wir analog dazu den Include-Pfad (wieder mit einem Projekt-Rechtsklick -> Eigenschaften) einrichten.

After that we have to configure a second path to the Include-Directory in the same way (Rightclick project -> properties)

Include Path: C:\Program Files\Windows Kits\10\Include\10.0.10150.0\ucrt

path2

Nun kann man trotz der Anzeigen von Fehlern das Projekt einfach kompilieren, nach dem ersten Kompilier- oder Erstellvorgang sind die Fehlermeldungen in der Regel verschwunden.

Now you can hit the Run-Button / Recreate the project / Recompile it. After that the other errors should disapear.

helloworldcpp

Atlassian JIRA+MS SQL Server Get values from multiple version picker custom field in SQL / Mulitple Version Picker Werte über SQL Query erhalten

Problem

The version strings of custom field, that can select multiple versions, shall be selected

Approach – Ansatz

The table projectversion can be used to connect to CustomFieldValue.NUMBERVALUE

Solution – Lösung

SELECT pk.PROJECT_KEY+'-'+CAST(a.issuenum AS varchar(max)) as issue, pv.vname
FROM project_key pk
INNER JOIN jiraissue a ON pk.PROJECT_ID=a.PROJECT 
INNER JOIN CustomFieldValue b ON a.ID=b.ISSUE
INNER JOIN customfield c ON b.CUSTOMFIELD=c.id 
INNER JOIN projectversion pv ON pv.ID=b.NUMBERVALUE
WHERE c.CFName = 'LUA Version(s)' 
--AND pk.PROJECT_KEY+'-'+CAST(a.issuenum AS varchar(max)) ='NDS-4352'
ORDER BY 1

Guitar Tab / Tabs : Pirates of the caribbean / Fluch der Karibik Tabulaturen

Intention

I have transcripted the theme of the pirates of the caribbean movie by Hans Florian Zimmer to play it on one accoustic guitar. It is not completely conform to the original music because i wanted to keep it playable on one guitar.

If you want to buy the original transcription watch out amazon.com or click here.

If you want to see and hear my transcripted version, download the free software „Tux Guitar“ and my Tux Guitar file. In Tux Guitar you can slow down the tempo.

It will looks like this:

MS SQL Server: Stored Procedure mit Übergabeparameter

Problem

Es soll eine Stored Procedure erstellt werden

Ansatz – Approach

– Verwendung von SQL

Voraussetzung – Prerequirement

Create Procedure Permission/Berechtigung

Lösung – Solution

Dieser Code wird in ein SQL Management Studio Abfragefenter kopiert, markiert und mit F5 ausgeführt.

IF OBJECT_ID ( ‚dbo.sp_PreviousAcitivites‘, ‚P‘ ) IS NOT NULL
DROP PROCEDURE dbo.sp_PreviousAcitivites;
GO
CREATE PROCEDURE dbo.sp_PreviousAcitivites
@StartPoint nvarchar(50)
AS

SET NOCOUNT ON;
SELECT ‚>’+@StartPoint+‘<' GO [/javascript] Mehrere Übergabeparameter werden durch Kommas getrennt. Aufruf der Stored Procedure: [javascript] dbo.sp_PreviousAcitivites 'Bla' [/javascript]

MS SQL Server: Remove / Strip HTML Tags from Field – HTML Tags entfernen

Problem

Aus einer Selektion sollen alle HTML Tags entfernt werden.

Ansatz – Approach

– Erstellen einer Function
– SQL Abfrage absetzen (z.B. i.e. dbo.udf_StripHTML(‚HTML‚))

– Create a custom function
– Make your SQL Statement (i.e. dbo.udf_StripHTML(‚HTML‚))

Lösung – Solution

Als erstes wird die Funktion udf_StripHTML(STRING) erstellt:

CREATE FUNCTION [dbo].[udf_StripHTML] (@HTMLText VARCHAR(MAX))
RETURNS VARCHAR(MAX) AS
BEGIN
    DECLARE @Start INT
    DECLARE @End INT
    DECLARE @Length INT
    SET @Start = CHARINDEX('<',@HTMLText)
    SET @End = CHARINDEX('>',@HTMLText,CHARINDEX('<',@HTMLText))
    SET @Length = (@End - @Start) + 1
    WHILE @Start > 0 AND @End > 0 AND @Length > 0
    BEGIN
        SET @HTMLText = STUFF(@HTMLText,@Start,@Length,'')
        SET @Start = CHARINDEX('<',@HTMLText)
        SET @End = CHARINDEX('>',@HTMLText,CHARINDEX('<',@HTMLText))
        SET @Length = (@End - @Start) + 1
    END
    RETURN LTRIM(RTRIM(@HTMLText))
END
&#91;/javascript&#93;
Der obige Text wird hierzu einfach in das SQL Server Management Studio kopiert, markiert und ausgeführt. 

Zum Schluss wird die Abfrage abgesetzt:
&#91;javascript&#93;
SELECT dbo.udf_StripHTML(htmlTextFeld) FROM Tabelle

-- ODER

SELECT dbo.udf_StripHTML('<a href="irrsinn.php">Grober Unfug</a> ist keine <b>Methode</b> sondern <div style="font-family:Times;">Kriegsführung</div>')