Entries by อ.เอ้ด

SERVER 2012 R2 foundation

When you go to install an upgrade, the supported upgrade paths are checked in 2 registry Values located in “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\Current Version” Value 1: ProductName / Value 2: EditionID If you can look up these values in an existing server, you find that Server 2012 R2 Standard ProductName=Windows Server 2012 R2 Standand / EditionID=ServerStandard By […]

User Certificate folder in Windows 7

ชื่อไฟล์ ดูได้จาก Thumbprint ไปหา ไฟล์ ได้ที่ folder %APPDATA%\Microsoft\SystemCertificates\My\Certificates ที่อยู่ของ Key%USERPROFILE%\AppData\Roaming\Microsoft\Crypto\RSA\SID %USERPROFILE%\AppData\Roaming\Microsoft\Credentials%USERPROFILE%\AppData\Roaming\Microsoft\Protect\SID Ref:https://superuser.com/questions/411909/where-is-the-certificate-folder-in-windows-7

10.0.14393.3503

[10.0.14393.3503]LocalOnlyPatch.x86=1LocalOnlyOffset.x86=A6578LocalOnlyCode.x86=jmpshortLocalOnlyPatch.x64=1LocalOnlyOffset.x64=8D8A1LocalOnlyCode.x64=jmpshortSingleUserPatch.x86=1SingleUserOffset.x86=36CE5SingleUserCode.x86=nopSingleUserPatch.x64=1SingleUserOffset.x64=1B6A4SingleUserCode.x64=ZeroDefPolicyPatch.x86=1DefPolicyOffset.x86=31209DefPolicyCode.x86=CDefPolicy_Query_eax_ecxDefPolicyPatch.x64=1DefPolicyOffset.x64=F185DefPolicyCode.x64=CDefPolicy_Query_eax_rcxSLInitHook.x86=1SLInitOffset.x86=45912SLInitFunc.x86=New_CSLQuery_InitializeSLInitHook.x64=1SLInitOffset.x64=22C80SLInitFunc.x64=New_CSLQuery_Initialize [10.0.14393.3503-SLInit]bInitialized.x86 =C2F94bServerSku.x86 =C2F98lMaxUserSessions.x86 =C2F9CbAppServerAllowed.x86 =C2FA0bRemoteConnAllowed.x86=C2FA4bMultimonAllowed.x86 =C2FA8ulMaxDebugSessions.x86=C2FACbFUSEnabled.x86 =C2FB0bServerSku.x64 =E73D0lMaxUserSessions.x64 =E73D4bAppServerAllowed.x64 =E73D8bInitialized.x64 =E8470bRemoteConnAllowed.x64=E8474bMultimonAllowed.x64 =E8478ulMaxDebugSessions.x64=E847CbFUSEnabled.x64 =E8480

Arduino Wind Direction

int VaneValue;// raw analog value from wind vane
int Direction;// translated 0 – 360 direction
int CalDirection;// converted value with offset applied
int LastValue;

#define Offset 0;

void setup() {
LastValue = 1;
Serial.begin(19200);
Serial.println(“Vane Value\tDirection\tHeading”);
}

void loop() {
VaneValue = analogRead(A1);
Direction = map(VaneValue, 0, 1023, 0, 360);
CalDirection = Direction + Offset;

if(CalDirection > 360)
CalDirection = CalDirection – 360;

if(CalDirection < 0)
CalDirection = CalDirection + 360;

// Only update the display if change greater than 2 degrees.
if(abs(CalDirection – LastValue) > 5)
{
Serial.print(VaneValue); Serial.print(“\t\t”);
Serial.print(CalDirection); Serial.print(“\t\t”);
getHeading(CalDirection);
LastValue = CalDirection;
}
delay(100);
}

// Converts compass direction to heading
void getHeading(int direction) {
if (direction >= 52 && direction <= 53) {
Serial.println(“SSE”);
}
else if (direction >= 58 && direction <=61) {
Serial.println(“SE”);
}
else if (direction >= 56 && direction <= 57) {
Serial.println(“SEE”);
}
else if (direction >= 86 && direction <=92) {
Serial.println(“S”);
}
else if (direction >= 68 && direction <=70) {
Serial.println(“SSW”);
}
else if (direction >= 110 && direction <=123) {
Serial.println(“SW”);
}
else if (direction >= 104 && direction <=106) {
Serial.println(“SWW”);
}
else if (direction >= 172 && direction <=176) {
Serial.println(“E”);
}
else if (direction >= 154 && direction <=156) {
Serial.println(“NEE”);
}
else if (direction >= 278 && direction <=280) {
Serial.println(“NE”);
}
else if (direction >= 226 && direction <=230){
Serial.println(“W”);
}
else if (direction >= 251 && direction <= 253) {
Serial.println(“NNE”);
}
else if (direction >= 312 && direction <= 314){
Serial.println(“N”);
}
else if (direction >= 292 && direction <= 293){
Serial.println(“NNW”);
}
else if (direction >= 332 && direction <= 337){
Serial.println(“NW”);
}
else if (direction >= 216 && direction <= 218){
Serial.println(“NWW”);
}
else
Serial.println(“N”);
}

 

Ref:http://www.philpot.me/weatherinsider.html

Arduino Uno Wind Speed Way 2

#include <math.h> #include <millisDelay.h> #define windSensorPin 2 millisDelay timerDelay; int windCounter = 0; float windSpeedM = 0; float windSpeedK = 0; int windPulse = 0; int pulses = 0; int startTest = 1; int windTest1 = 1; int windTest2 = 0; int windTimer = 1; int result = 1; int timerStart = 1; void setup() […]

Arduino Uno Wind Speed Way 1

#include “TimerOne.h” // Timer Interrupt set to 2 second for read sensors #include <math.h> #include <Time.h> // speed ok near speed-3.ino #define WindSensorPin (2) // The pin location of the anemometer sensor char wind[10]; //empty array where to put the numbers going to the master int LastValue; //int wind = 0; volatile bool IsSampleRequired; // […]

10.0.19041.84

[10.0.19041.84]LocalOnlyPatch.x86=1LocalOnlyOffset.x86=B46B9LocalOnlyCode.x86=jmpshortLocalOnlyPatch.x64=1LocalOnlyOffset.x64=87611LocalOnlyCode.x64=jmpshortSingleUserPatch.x86=1SingleUserOffset.x86=3AD27SingleUserCode.x86=ZeroSingleUserPatch.x64=1SingleUserOffset.x64=0BF0CSingleUserCode.x64=ZeroDefPolicyPatch.x86=1DefPolicyOffset.x86=3D7D9DefPolicyCode.x86=CDefPolicy_Query_eax_ecxDefPolicyPatch.x64=1DefPolicyOffset.x64=17ED5DefPolicyCode.x64=CDefPolicy_Query_eax_rcxSLInitHook.x86=1SLInitOffset.x86=66658SLInitFunc.x86=New_CSLQuery_InitializeSLInitHook.x64=1SLInitOffset.x64=1BDFCSLInitFunc.x64=New_CSLQuery_Initialize[10.0.19041.84-SLInit]bInitialized.x86 =CF920bServerSku.x86 =CF924lMaxUserSessions.x86 =CF928bAppServerAllowed.x86 =CF930bRemoteConnAllowed.x86=CF938bMultimonAllowed.x86 =CF93CulMaxDebugSessions.x86=CF940bFUSEnabled.x86 =CF944bInitialized.x64 =103FF8bServerSku.x64 =103FFClMaxUserSessions.x64 =104000bAppServerAllowed.x64 =104008bRemoteConnAllowed.x64=104010bMultimonAllowed.x64 =104014ulMaxDebugSessions.x64=104018bFUSEnabled.x64 =10401C net start termservice

ชนิดของ CREE LED

Cree เป็นบริษัท ผลิต Chip LED อยู่ที่ Durham รัฐ North Carolina โดยผลิต LED ความสว่างสูงหลายรุ่นที่ใช้กันอย่างแพร่หลายในไฟฉาย ทาง CREE ไม่ได้ทำไฟฉายขาย โดยตรง แม้ว่าบาง บริษัท จะอธิบายผลิตภัณฑ์ของตนว่าเป็น “ไฟฉาย CREE” นี่หมายถึงไฟ LED ภายในไฟฉาย เป็นของ Cree Cree แยกหลอด LED แต่ละรุ่นโดยพิจารณาจากฟลักซ์ทั้งหมดหรือเอาต์พุตแสง ถังฟลักซ์แต่ละช่องห่างกันประมาณ 7% ที่กระแสอ้างอิงบางอย่างเช่น 350mA หรือ 750mA แต่ที่กระแสไฟฟ้าที่สูงขึ้นเอาต์พุตจะสูงขึ้นจนถึงกระแสสูงสุดบางส่วน Cree วัดเอาท์พุทที่อุณหภูมิอ้างอิง 85 °เซลเซียสซึ่งเป็นอุณหภูมิการทำงานที่สมจริงกว่า แต่ในอดีตพวกเขาวัดที่ 25 ° โดยทั่วไปผลผลิตจะสูงขึ้นที่อุณหภูมิต่ำกว่า Cree แบ่งประเภทของไฟ LED สีขาวว่ามีความอบอุ่นเป็นกลางและเย็น แต่ยังรวมถึง “สีขาวกลางแจ้ง” ที่อยู่ระหว่างและซ้อนทับกันเป็นกลางและเย็น (4000-5300K) สีจะถูกจัดถังโดยใช้ระบบตามมาตรฐานANSI_White สีอ่อนของ Cree แบ่งย่อยและขยายในภูมิภาค ANSI โดยให้ถังขยะเช่น 1B เย็น 5B1 […]