Pick 3 winning numbers texas
lotteryGames
2021.01.28 15:28 lmb_reddit lotteryGames
The group welcomes all Lottery Players who play daily lottery games PICK 3 and PICK 4 to come together and share their thoughts and winning strategies to help each other.
2008.03.27 06:37 Texas
News, events, and general noise related to the great state of Texas!
2019.01.21 17:48 MarkMVP01 Unexpected Scott Steiner
šØšØšØšØšØšØšØšØ
2023.03.26 14:45 AutoModerator [Get] UpViral ā Viral Hacking Masterclass
| Get the course here: https://www.genkicourses.com/product/upviral-viral-hacking-masterclass/ [Get] UpViral ā Viral Hacking Masterclass š· https://preview.redd.it/yo7ms1f8i6pa1.jpg?width=1193&format=pjpg&auto=webp&s=202a114398fc493a2ffbd0a52a0b3a4747a915b0 To summarize hereās just some of what we cover in the seven-module (approximately seven weeks of training, done at your own preferred pace) ViralHacks Masterclass Series⦠MODULE 1 Introduction You get a solid introduction to the concept of viral marketing, why it works, and how you can leverage it to build your business. Regardless of the market or niche that youāre in! MODULE 2 Psychology Hacks and Strategies Learn and master the psychology of why people share things online, and how you can leverage that to pay off for your business! MODULE 3 Campaign Hacks and Strategies Learn about the types of campaigns that are proven to work. Weāll also cover the various types of promotional campaigns, including contests and giveaways, and determining which will work best for you. Youāll also learn the mechanics of elements like landing and share pages that will ensure your campaigns will succeed! MODULE 4 Follow-up Hacks and Strategies Youāll learn how to ensure your campaignsā success with winning, powerful email follow-up sequences. Also learn the crucial elements needed to ensure that will keep your follow-up sequences and campaigns as successful as possible. MODULE 5 Traffic Hacks and Strategies Weāll cover the most innovative ways to generate that initial surge of traffic needed to get your viral campaigns to truly take off. No rehashed, old-school traffic generation stuff. Youāll learn only new, cutting-edge traffic generation strategies that you can apply to launch successful campaigns as well as to your existing sites! MODULE 6 Optimization Strategies We cover how to continuously test and improve your campaigns to achieve better success rates, and earn higher profits. Optimization and testing is absolutely crucial to achieving the maximum success possible. Weāll discuss why itās critically important that you do it consistently, and why not doing so can cost you! Note: This module alone will return your investment in this course many times over ā guaranteed! MODULE 7 Case Studies Weāre going to take an in-depth look at several case studies of successful viral marketing campaigns and the strategies behind them. You will be able to apply what you learn from them to improve and ensure success in your own campaigns. submitted by AutoModerator to Courses4Cheap2 [link] [comments] |
2023.03.26 14:45 whodat_topg What am I doing wrong?
I've been maining jax lately. I started playing league again after about a year. I was just rotating champs as I wasn't having issues climbing (started out in silver 2 i believe). From there on I managed to peak at g2 68 LP. At that point I hit bad teams (i know its such a shit excuse). I dropped back to g4 and am hardstuck going up and down. I did decide to play jax mostly as I'm comfortable and winning lane / going even at worst. But I'm wondering if you guys have tips / tricks or see any improvement I can make. I tend to split around with instructing my team to play around drake/baron but they won't get simple concepts as stopping the enemies from backing or getting the objectives when several people come for me.
I always start with dorans blade, first item BOTRK into DS. Boots always merc treads unless there is no to little cc which is rare. Depending on the situation common items I pick are Deaths Dance, wits end and steraks gage.
This is me:
https://www.op.gg/summoners/euw/GSkillzz Looking for some advice / tips / tricks to improve and win more games. When I hit my peak I had a 60% WR which is gone nowš
submitted by
whodat_topg to
summonerschool [link] [comments]
2023.03.26 14:45 AhmedOsama3294 Why some parts of my "Save As" dialog is black, and the "Hide Folders" button doesn't work, and the left pane doesn't appear??
| Hand-made Save Dialog The save dialog code is actually in FSUtils.h ,at function: HWND SaveFileDialog(LPCWSTR filters, COMSPEC_FILTER* fltr, PWSTR* fname) FSUtils.h: #pragma once #include #define STRICT_TYPED_ITEMIDS #include #include // For COM headers #include // for IFileDialogEvents and IFileDialogControlEvents #include #include // for KnownFolder APIs/datatypes/function headers #include // for PROPVAR-related functions #include // for the Property key APIs/datatypes #include // for the Property System APIs #include // for StringCchPrintfW #include // for COMDLG_FILTERSPEC #include #pragma comment(lib, "Shlwapi.lib") #pragma comment(lib, "Propsys.lib") #pragma comment(lib, "comctl32.lib") #if defined _M_IX86 #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_IA64 #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_X64 #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") #else #pragma comment(linker, "/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #endif // Indices of file types #define INDEX_WORDDOC 1 #define INDEX_WEBPAGE 2 #define INDEX_TEXTDOC 3 // Controls #define CONTROL_GROUP 2000 #define CONTROL_RADIOBUTTONLIST 2 #define CONTROL_RADIOBUTTON1 1 #define CONTROL_RADIOBUTTON2 2 // It is OK for this to have the same ID as CONTROL_RADIOBUTTONLIST, // because it is a child control under CONTROL_RADIOBUTTONLIST // IDs for the Task Dialog Buttons #define IDC_BASICFILEOPEN 100 #define IDC_ADDITEMSTOCUSTOMPLACES 101 #define IDC_ADDCUSTOMCONTROLS 102 #define IDC_SETDEFAULTVALUESFORPROPERTIES 103 #define IDC_WRITEPROPERTIESUSINGHANDLERS 104 #define IDC_WRITEPROPERTIESWITHOUTUSINGHANDLERS 105 HRESULT CDialogEventHandler_CreateInstance(REFIID, void**); class CDialogEventHandler : public IFileDialogEvents, public IFileDialogControlEvents { public: // IUnknown methods IFACEMETHODIMP QueryInterface(REFIID riid, void** ppv) { static const QITAB qit[] = { QITABENT(CDialogEventHandler, IFileDialogEvents), QITABENT(CDialogEventHandler, IFileDialogControlEvents), { 0 }, #pragma warning(suppress:4838) }; return QISearch(this, qit, riid, ppv); } IFACEMETHODIMP_(ULONG) AddRef() { return InterlockedIncrement(&_cRef); } IFACEMETHODIMP_(ULONG) Release() { long cRef = InterlockedDecrement(&_cRef); if (!cRef) delete this; return cRef; } // IFileDialogEvents methods IFACEMETHODIMP OnFileOk(IFileDialog*) { return S_OK; }; IFACEMETHODIMP OnFolderChange(IFileDialog*) { return S_OK; }; IFACEMETHODIMP OnFolderChanging(IFileDialog*, IShellItem*) { return S_OK; }; IFACEMETHODIMP OnHelp(IFileDialog*) { return S_OK; }; IFACEMETHODIMP OnSelectionChange(IFileDialog*) { return S_OK; }; IFACEMETHODIMP OnShareViolation(IFileDialog*, IShellItem*, FDE_SHAREVIOLATION_RESPONSE*) { return S_OK; }; IFACEMETHODIMP OnTypeChange(IFileDialog* pfd); IFACEMETHODIMP OnOverwrite(IFileDialog*, IShellItem*, FDE_OVERWRITE_RESPONSE*) { return S_OK; }; // IFileDialogControlEvents methods IFACEMETHODIMP OnItemSelected(IFileDialogCustomize* pfdc, DWORD dwIDCtl, DWORD dwIDItem); IFACEMETHODIMP OnButtonClicked(IFileDialogCustomize*, DWORD) { return S_OK; }; IFACEMETHODIMP OnCheckButtonToggled(IFileDialogCustomize*, DWORD, BOOL) { return S_OK; }; IFACEMETHODIMP OnControlActivating(IFileDialogCustomize*, DWORD) { return S_OK; }; CDialogEventHandler() : _cRef(1) { }; private: ~CDialogEventHandler() { }; long _cRef; }; // IFileDialogEvents methods // This method gets called when the file-type is changed (combo-box selection changes). // For sample sake, let's react to this event by changing the properties show. HRESULT CDialogEventHandler::OnTypeChange(IFileDialog* pfd) { IFileSaveDialog* pfsd; HRESULT hr = pfd->QueryInterface(&pfsd); if (SUCCEEDED(hr)) { UINT uIndex; hr = pfsd->GetFileTypeIndex(&uIndex); // index of current file-type if (SUCCEEDED(hr)) { IPropertyDescriptionList* pdl = NULL; switch (uIndex) { case INDEX_WORDDOC: // When .doc is selected, let's ask for some arbitrary property, say Title. hr = PSGetPropertyDescriptionListFromString(L"prop:System.Title", IID_PPV_ARGS(&pdl)); if (SUCCEEDED(hr)) { // FALSE as second param == do not show default properties. hr = pfsd->SetCollectedProperties(pdl, FALSE); pdl->Release(); } break; case INDEX_WEBPAGE: // When .html is selected, let's ask for some other arbitrary property, say Keywords. hr = PSGetPropertyDescriptionListFromString(L"prop:System.Keywords", IID_PPV_ARGS(&pdl)); if (SUCCEEDED(hr)) { // FALSE as second param == do not show default properties. hr = pfsd->SetCollectedProperties(pdl, FALSE); pdl->Release(); } break; case INDEX_TEXTDOC: // When .txt is selected, let's ask for some other arbitrary property, say Author. hr = PSGetPropertyDescriptionListFromString(L"prop:System.Author", IID_PPV_ARGS(&pdl)); if (SUCCEEDED(hr)) { // TRUE as second param == show default properties as well, but show Author property first in list. hr = pfsd->SetCollectedProperties(pdl, TRUE); pdl->Release(); } break; } } pfsd->Release(); } return hr; } // IFileDialogControlEvents // This method gets called when an dialog control item selection happens (radio-button selection. etc). // For sample sake, let's react to this event by changing the dialog title. HRESULT CDialogEventHandler::OnItemSelected(IFileDialogCustomize* pfdc, DWORD dwIDCtl, DWORD dwIDItem) { IFileDialog* pfd = NULL; HRESULT hr = pfdc->QueryInterface(&pfd); if (SUCCEEDED(hr)) { if (dwIDCtl == CONTROL_RADIOBUTTONLIST) { switch (dwIDItem) { case CONTROL_RADIOBUTTON1: hr = pfd->SetTitle(L"Longhorn Dialog"); break; case CONTROL_RADIOBUTTON2: hr = pfd->SetTitle(L"Vista Dialog"); break; } } pfd->Release(); } return hr; } // Instance creation helper HRESULT CDialogEventHandler_CreateInstance(REFIID riid, void** ppv) { *ppv = NULL; CDialogEventHandler* pDialogEventHandler = new (std::nothrow) CDialogEventHandler(); HRESULT hr = pDialogEventHandler ? S_OK : E_OUTOFMEMORY; if (SUCCEEDED(hr)) { hr = pDialogEventHandler->QueryInterface(riid, ppv); pDialogEventHandler->Release(); } return hr; } /* Utility Functions *************************************************************************************************************/ // A helper function that converts UNICODE data to ANSI and writes it to the given file. // We write in ANSI format to make it easier to open the output file in Notepad. HRESULT _WriteDataToFile(HANDLE hFile, PCWSTR pszDataIn) { // First figure out our required buffer size. DWORD cbData = WideCharToMultiByte(CP_ACP, 0, pszDataIn, -1, NULL, 0, NULL, NULL); HRESULT hr = (cbData == 0) ? HRESULT_FROM_WIN32(GetLastError()) : S_OK; if (SUCCEEDED(hr)) { // Now allocate a buffer of the required size, and call WideCharToMultiByte again to do the actual conversion. char* pszData = new (std::nothrow) CHAR[cbData]; hr = pszData ? S_OK : E_OUTOFMEMORY; if (SUCCEEDED(hr)) { hr = WideCharToMultiByte(CP_ACP, 0, pszDataIn, -1, pszData, cbData, NULL, NULL) ? S_OK : HRESULT_FROM_WIN32(GetLastError()); if (SUCCEEDED(hr)) { DWORD dwBytesWritten = 0; hr = WriteFile(hFile, pszData, cbData - 1, &dwBytesWritten, NULL) ? S_OK : HRESULT_FROM_WIN32(GetLastError()); } delete[] pszData; } } return hr; } // Helper function to write property/value into a custom file format. // // We are inventing a dummy format here: // [APPDATA] // xxxxxx // [ENDAPPDATA] // [PROPERTY]foo=bar[ENDPROPERTY] // [PROPERTY]foo2=bar2[ENDPROPERTY] HRESULT _WritePropertyToCustomFile(PCWSTR pszFileName, PCWSTR pszPropertyName, PCWSTR pszValue) { HANDLE hFile = CreateFileW(pszFileName, GENERIC_READ GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_ALWAYS, // We will write only if the file exists. FILE_ATTRIBUTE_NORMAL, NULL); HRESULT hr = (hFile == INVALID_HANDLE_VALUE) ? HRESULT_FROM_WIN32(GetLastError()) : S_OK; if (SUCCEEDED(hr)) { const WCHAR wszPropertyStartTag[] = L"[PROPERTY]"; const WCHAR wszPropertyEndTag[] = L"[ENDPROPERTY]\r\n"; const DWORD cchPropertyStartTag = (DWORD)wcslen(wszPropertyStartTag); const static DWORD cchPropertyEndTag = (DWORD)wcslen(wszPropertyEndTag); DWORD const cchPropertyLine = cchPropertyStartTag + cchPropertyEndTag + (DWORD)wcslen(pszPropertyName) + (DWORD)wcslen(pszValue) + 2; // 1 for '=' + 1 for NULL terminator. PWSTR pszPropertyLine = new (std::nothrow) WCHAR[cchPropertyLine]; hr = pszPropertyLine ? S_OK : E_OUTOFMEMORY; if (SUCCEEDED(hr)) { hr = StringCchPrintfW(pszPropertyLine, cchPropertyLine, L"%s%s=%s%s", wszPropertyStartTag, pszPropertyName, pszValue, wszPropertyEndTag); if (SUCCEEDED(hr)) { hr = SetFilePointer(hFile, 0, NULL, FILE_END) ? S_OK : HRESULT_FROM_WIN32(GetLastError()); if (SUCCEEDED(hr)) { hr = _WriteDataToFile(hFile, pszPropertyLine); } } delete[] pszPropertyLine; } CloseHandle(hFile); } return hr; } // An function which renders file saving dialogs // Returns: An HWND for dialog customization. HWND SaveFileDialog(LPCWSTR filters, COMDLG_FILTERSPEC fltr[], PWSTR* fbb) { // CoCreate the File Open Dialog object. IFileDialog* pfd = NULL; HRESULT hr = CoCreateInstance(CLSID_FileSaveDialog, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pfd)); if (SUCCEEDED(hr)) { // Create an event handling object, and hook it up to the dialog. IFileDialogEvents* pfde = NULL; hr = CDialogEventHandler_CreateInstance(IID_PPV_ARGS(&pfde)); if (SUCCEEDED(hr)) { // Hook up the event handler. DWORD dwCookie; hr = pfd->Advise(pfde, &dwCookie); if (SUCCEEDED(hr)) { // Set the options on the dialog. DWORD dwFlags; // Before setting, always get the options first in order not to override existing options. hr = pfd->GetOptions(&dwFlags); if (SUCCEEDED(hr)) { // In this case, get shell items only for file system items. hr = pfd->SetOptions(dwFlags FOS_FORCEFILESYSTEM); if (SUCCEEDED(hr)) { // Set the file types to display only. Notice that, this is a 1-based array. hr = pfd->SetFileTypes(_ARRAYSIZE(fltr), fltr); if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) { // Set the default extension to be ".doc" file. hr = pfd->SetDefaultExtension(filters); if (SUCCEEDED(hr)) { // Show the dialog hr = pfd->Show(NULL); if (SUCCEEDED(hr)) { // Obtain the result, once the user clicks the 'Open' button. // The result is an IShellItem object. IShellItem* psiResult; hr = pfd->GetResult(&psiResult); if (SUCCEEDED(hr)) { // We are just going to print out the name of the file for sample sake. PWSTR pszFilePath; hr = psiResult->GetDisplayName(SIGDN_FILESYSPATH, &pszFilePath); if (SUCCEEDED(hr)) { TaskDialog(NULL, NULL, L"CommonFileDialogApp", pszFilePath, NULL, TDCBF_OK_BUTTON, TD_INFORMATION_ICON, NULL); CoTaskMemFree(pszFilePath); } psiResult->Release(); } } } } } } } // Unhook the event handler. pfd->Unadvise(dwCookie); } pfde->Release(); } } pfd->Release(); return FindWindowExW(NULL, NULL, MAKEINTATOM(32770), "Save As"); } The problem starts from line 290, here: // An function which renders file saving dialogs // Returns: An HWND for dialog customization. HWND SaveFileDialog(LPCWSTR filters, COMDLG_FILTERSPEC fltr[], PWSTR* fbb) { // CoCreate the File Open Dialog object. IFileDialog* pfd = NULL; HRESULT hr = CoCreateInstance(CLSID_FileSaveDialog, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pfd)); if (SUCCEEDED(hr)) { // Create an event handling object, and hook it up to the dialog. IFileDialogEvents* pfde = NULL; hr = CDialogEventHandler_CreateInstance(IID_PPV_ARGS(&pfde)); if (SUCCEEDED(hr)) { // Hook up the event handler. DWORD dwCookie; hr = pfd->Advise(pfde, &dwCookie); if (SUCCEEDED(hr)) { // Set the options on the dialog. DWORD dwFlags; // Before setting, always get the options first in order not to override existing options. hr = pfd->GetOptions(&dwFlags); if (SUCCEEDED(hr)) { // In this case, get shell items only for file system items. hr = pfd->SetOptions(dwFlags FOS_FORCEFILESYSTEM); if (SUCCEEDED(hr)) { // Set the file types to display only. Notice that, this is a 1-based array. hr = pfd->SetFileTypes(_ARRAYSIZE(fltr), fltr); if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) { // Set the default extension to be ".doc" file. hr = pfd->SetDefaultExtension(filters); if (SUCCEEDED(hr)) { // Show the dialog hr = pfd->Show(NULL); if (SUCCEEDED(hr)) { // Obtain the result, once the user clicks the 'Open' button. // The result is an IShellItem object. IShellItem* psiResult; hr = pfd->GetResult(&psiResult); if (SUCCEEDED(hr)) { // We are just going to print out the name of the file for sample sake. PWSTR pszFilePath; hr = psiResult->GetDisplayName(SIGDN_FILESYSPATH, &pszFilePath); if (SUCCEEDED(hr)) { TaskDialog(NULL, NULL, L"CommonFileDialogApp", pszFilePath, NULL, TDCBF_OK_BUTTON, TD_INFORMATION_ICON, NULL); CoTaskMemFree(pszFilePath); } psiResult->Release(); } } } } } } } // Unhook the event handler. pfd->Unadvise(dwCookie); } pfde->Release(); } } pfd->Release(); return FindWindowExW(NULL, NULL, MAKEINTATOM(32770), "Save As"); } WindowsProject4.cpp "the application which uses FSUtils.h" // WindowsProject4.cpp : Defines the entry point for the application. // #include "framework.h" #include "WindowsProject4.h" #include "../FSUtils.h" #define MAX_LOADSTRING 100 // Global Variables: HINSTANCE hInst; // current instance WCHAR szTitle[MAX_LOADSTRING]; // The title bar text WCHAR szWindowClass[MAX_LOADSTRING]; // the main window class name #define RECTWIDTH(rc) (rect.left + rect.right); #define RECTHEIGHT(rc) (rect.bottom + rect.top); // Forward declarations of functions included in this code module: ATOM MyRegisterClass(HINSTANCE hInstance); BOOL InitInstance(HINSTANCE, int); LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); int APIENTRY wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow) { UNREFERENCED_PARAMETER(hPrevInstance); UNREFERENCED_PARAMETER(lpCmdLine); // TODO: Place code here. // Initialize global strings LoadStringW(hInstance, IDS_APP_TITLE, szTitle, MAX_LOADSTRING); LoadStringW(hInstance, IDC_WINDOWSPROJECT4, szWindowClass, MAX_LOADSTRING); MyRegisterClass(hInstance); // Perform application initialization: if (!InitInstance (hInstance, nCmdShow)) { return FALSE; } HACCEL hAccelTable = LoadAccelerators(hInstance, MAKEINTRESOURCE(IDC_WINDOWSPROJECT4)); MSG msg; // Main message loop: while (GetMessage(&msg, nullptr, 0, 0)) { if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&msg); } } return (int) msg.wParam; } // // FUNCTION: MyRegisterClass() // // PURPOSE: Registers the window class. // ATOM MyRegisterClass(HINSTANCE hInstance) { WNDCLASSEXW wcex; wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW CS_VREDRAW; wcex.lpfnWndProc = WndProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; wcex.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_WINDOWSPROJECT4)); wcex.hCursor = LoadCursor(nullptr, IDC_ARROW); wcex.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); wcex.lpszMenuName = MAKEINTRESOURCEW(IDC_WINDOWSPROJECT4); wcex.lpszClassName = szWindowClass; wcex.hIconSm = LoadIcon(wcex.hInstance, MAKEINTRESOURCE(IDI_SMALL)); return RegisterClassExW(&wcex); } // // FUNCTION: InitInstance(HINSTANCE, int) // // PURPOSE: Saves instance handle and creates main window // // COMMENTS: // // In this function, we save the instance handle in a global variable and // create and display the main program window. // BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { hInst = hInstance; // Store instance handle in our global variable HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, nullptr, nullptr, hInstance, nullptr); if (!hWnd) { return FALSE; } ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); RECT rect; GetWindowRect(hWnd, &rect); INT x = RECTWIDTH(rect); INT y = RECTHEIGHT(rect); HWND hWnd2 = CreateWindowExW(WS_EX_WINDOWEDGE, L"Button", L"Save As", WS_CHILD WS_VISIBLE, x / 2, y / 2, 140, 20, hWnd, NULL, hInstance, NULL); ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); return TRUE; } // // FUNCTION: WndProc(HWND, UINT, WPARAM, LPARAM) // // PURPOSE: Processes messages for the main window. // // WM_COMMAND - process the application menu // WM_PAINT - Paint the main window // WM_DESTROY - post a quit message and return // // HRESULT hr; PWSTR fpb; LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_COMMAND: { if (HIWORD(wParam) == BN_CLICKED && LOWORD(wParam) != IDM_ABOUT && LOWORD(wParam) != IDM_EXIT) { COMDLG_FILTERSPEC fs[] = { {L"Word Document (*.txt)", L"*.txt"}, {L"All Documents (*.*)", L"*.*"} }; SaveFileDialog(L"*.*;txt", fs, &fpb); } int wmId = LOWORD(wParam); // Parse the menu selections: switch (wmId) { case IDM_ABOUT: DialogBox(hInst, MAKEINTRESOURCE(IDD_ABOUTBOX), hWnd, About); break; case IDM_EXIT: DestroyWindow(hWnd); break; default: return DefWindowProc(hWnd, message, wParam, lParam); } } break; case WM_PAINT: { PAINTSTRUCT ps; HDC hdc = BeginPaint(hWnd, &ps); // TODO: Add any drawing code that uses hdc here... EndPaint(hWnd, &ps); } break; case WM_DESTROY: hr = MessageBoxA(hWnd, (LPCSTR)"Do you want to exit?", (LPCSTR)"APC Application Closing Protection In-Proc Server", MB_ICONINFORMATION MB_YESNO); if (hr == IDYES) { PostQuitMessage(0); } if (hr == IDNO) { return false; } break; default: return DefWindowProc(hWnd, message, wParam, lParam); } return 0; } // Message handler for about box. INT_PTR CALLBACK About(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam) { UNREFERENCED_PARAMETER(lParam); switch (message) { case WM_INITDIALOG: return (INT_PTR)TRUE; case WM_COMMAND: if (LOWORD(wParam) == IDOK LOWORD(wParam) == IDCANCEL) { EndDialog(hDlg, LOWORD(wParam)); return (INT_PTR)TRUE; } break; } return (INT_PTR)FALSE; } How do I solve this problem? submitted by AhmedOsama3294 to LinusTechTips [link] [comments] |
2023.03.26 14:44 Unable-Storm3200 Why is NOTA (None Of The Above) so powerless in Indian elections.
Introduction: NOTA in Indian Elections
NOTA stands for "None of the Above" and is an option given to voters in Indian elections. It allows voters to indicate that they do not wish to vote for any of the candidates on the ballot.
Why is NOTA an option given to voters? NOTA was introduced as an option for voters in India in 2013 by the Supreme Court of India. The court ruled that voters have the right to reject all candidates if they do not find any of them suitable for the office. The introduction of NOTA was seen as a step towards enhancing the transparency and fairness of the electoral process.
What if NOTA wins majority votes? NOTA is not considered as a candidate and therefore, even if it receives the highest number of votes, it will not be counted as a valid vote. The candidate who receives the highest number of valid votes will be declared the winner of the election.
Why is NOTA so weak and powerless in Indian elections? Although NOTA is an option for voters, it is a weak and powerless tool in Indian elections. This is because it does not have any legal bearing on the outcome of the election. The introduction of NOTA was seen as a way to provide voters with a means to express their dissatisfaction with the candidates, but it does not have the power to force a re-election or invalidate the election results.
TL;DR: NOTA is an option for voters in Indian elections to reject all candidates, introduced in 2013 by the Supreme Court to enhance transparency and fairness. However, it does not have any legal bearing on the outcome of the election, even if it receives the highest number of votes. NOTA is seen as a weak and powerless tool in Indian elections as it does not have the power to force a re-election or invalidate the election results.
submitted by
Unable-Storm3200 to
india [link] [comments]
2023.03.26 14:44 Choomelon How to make a function that creates a string from given numbers?
I want to make a function that makes string from given numbers for example if i will assign the values,
a[0] = 3
a[1] = 24
a[2] = 9
a[3] = 0
I want the function to return
32490
and I don't know how to do it
submitted by
Choomelon to
learnpython [link] [comments]
2023.03.26 14:44 tx-sweetheart Waiting on SNAP renewal; application was send early/mid Feb
I was curious if anyone else has been waiting a long time for a renewal to get reviewed and approved. I sent my docs as well in towards the end of February and my benefits end 3/31. I checked this morning on the status and itās still āsentā. Just checking to see if anyone else has had the same situation w/ their renewals.
Eta: Iām in Texas
submitted by
tx-sweetheart to
foodstamps [link] [comments]
2023.03.26 14:42 etalha Season 3 episode 18: The red mile, How did jane knew who to call? i mean how he got the killers phone number so that dr steiner could make the call for bribe. if anyone knows. did i miss something
submitted by etalha to TheMentalist [link] [comments]
2023.03.26 14:42 CallOfKyle Night Shift Nursing Home Story
This happened about 6 years ago during my first year as a CNA. Names obviously changed for privacy. I've recently gone back to school for writing and thought it'd be fun to convert some journal entries into stories. Primarily some of my favorites/creepiest. Hope you enjoy and I'd love to hear some feedback to improve my writing!
"Aug-26-2017
I was always pretty comfortable working at night. Staying up late playing video games was all I did on my days off anyway. I didn't think much of how different it would be somewhere else.
I had picked up at the job as CNA at a nursing home. I had done this kind of work before but in this case the home I worked at needed night shift aides. I was pretty familiar with how easy going the night shift usually is. A few patients will hit their call lights every now and then. And the patients who couldn't move I turned and changed every couple hours. The hardest part of the job was staying awake. If you've never worked in a nursing home, don't. The companies that run these places always gut the staffing ratios. The night shift got by okay because most of the patients were asleep, it did get overwhelming at times. There were two long hallways throughout the building. Housing about 60 patients or residents. The residents were there to stay long term. They had problems with memory, were on hospice, brain injuries, or whatever else. The dementia residents were my favorite. At least once a week I would get a fun story out of them. Anyways, on the night shift we had 3 CNA's and 2 Nurses. About 20 patient's a piece for the aides. The nurses were always elbow deep in charting and handing out medications. That left the aides to work amongst themselves. On the residents wing of the building, called long term, there was one nurses station. On the rehab side, which was a bit bigger, there was a station as well. I always got put on the long term wing of the building. Being a larger guy made moving and turning residents around in their beds a lot easier. The job wasn't half bad and always felt pretty rewarding. There wasn't much to complain about.
It was a hot August night that I came in for my shift. I knew I was going to be assigned to long term and headed down the hall. I met with the night nurse, Holly, at the nurses station. There, the two swing shift aides were eagerly waiting to give me their report and go on their ways. I won't bother with their names, it's not important. They had told me the usual rundown of the residents and I had been familiar with them for almost 6 months now. However, they had told me that David in 312 had been acting weird. They said he didn't really eat his dinner and he refused to be put in bed. David was this sweet, old, mostly blind man in his 90's. He had dementia, which made a lot of what he said hard to believe. They said that David doesn't like sharing his room and that's why he won't go to sleep. They had explained to David that he did in fact have a private room but he insisted and refused to go to bed. The aides told me that night shift has just been waiting for David to fall asleep in his wheelchair and then taking him to bed then. I figured that would be my case that night.
I parked David next to Holly at the nurse's station and started my first round. I usually worked down the left half of the hallway and back up the right. The hallway is quite long with a big emergency fire door at the end. An alarm would sound if anyone were to open it. I had worked my way down to the end of the hall. David's room was at the very end. Room 312, with a terrible construction paper name plate taped to the door. There was some clothes on the ground in David's room that I'd picked up. I made his bed in the event he was asleep when I finished my first round. I noticed the bathroom was open and the light was on. I checked and nothing was in there so I closed it. All the bathrooms in this hall were shared between two adjacent rooms. I know David was incontinent and wouldn't have used the bathroom. I figured it was either the neighboring room or one of the aides washed their hands in there. I carried on and finished my round.
By the time I had finished my first round it was already 12:30 at night. I sat at the nurse's station next to David and Holly to start charting what I had just done. David was telling Holly all about his job as a photographer for the newspaper. He said he was getting photos for a story on the Black Panther Party in Oakland. I thought that was really incredible. Both that he thought it was the 60s and that he had actually photographed the events down there. You really got a lot of neat stories from the old people we kept down here.
At about 02:30 David finally fell asleep in his chair. I wheeled him down to his room and started to change his brief. I went to close the blinds when I felt a warm breeze under my shirt. David's window had been slid open a crack. I hadn't noticed it earlier, but I didn't really go near the window. I closed it up and finished putting David into bed. He was fast asleep when I was pulling his blankets over him. I headed back down to the nurses station and had a pretty calm second half of my shift.
The next night I came back to work. Same place, same time. The evening aides gave me their report, told me again about David not wanting to go to his room. I figured the night was going to be the same as last. I parked David next to Holly and started working. I was getting sheets out of the linen closet when I heard a toilet flush towards the end of the hall. I headed down towards the sound until I reached the end of the hallway. The faint sound of game shows on Room 311's TV was all I could hear. I looked into David's dark room, the bathroom light was on. I stepped over toward the handle and quickly flung the door open. There was nothing in there. Then I realized that it smelled. Someone had used the toilet. I walked through the joining room door. The resident's name was Patrick. He was an old war vet that had a stroke. His left side was weakened and he needed a lot of help to get around. I asked Patrick if he'd gotten himself up to the bathroom. He said no. I said okay and started walking back. He then told me that he was tired of the neighbor forgetting to unlock the bathroom door on his side. I froze and my heart sank as he told me that. I didn't want to freak Patrick out so I carried on with my round and got back to Holly. I told her what Patrick had said and that I heard the toilet flush down there. She decided to call the cops and have them search the backyard of the building. One of the officers said that the screen was missing from room 312, but that was it. I told the officer that that was the room I heard someone using the bathroom in. He said he'd look around again but there's nothing out there. They still found nothing and suggested we put a stick in the window to block it from opening but that's all that came of it that night.
The next night I had a sense of dread coming into work. The evening aides talked to me about how creepy it was and how they're afraid to go to David's room now. I did my best to ignore it but I was terrified to put David to bed that night. I was making my rounds again when I heard some shuffling down the hall. The hallway seemed to get longer and longer as I stared down toward room 312. A lump in my throat formed as I stood frozen. I was jump scared by my coworker Mindy. She was the aide for the center wing. She asked me about what happened and I told her. I also told her that I had just heard something from that room. She invited herself to investigate with me. We walked slowly towards the room. We approached the doorway and I reached for the light switch. I flicked the light on and the room seemed normal. No bathroom light on. Nothing. I asked Mindy to help me make the bed and we started. I kicked something on the ground and realized it was the stick that held the window shut. I looked up at Mindy and held up the stick. Her face turned pale white as she looked at it and me. She let out a scream and pointed at the window. A set of eyes over a dark silhouette stood on the outside of the window. It was a crazy looking guy. His hot breath was making fog on the window as he stared at us. Mindy had run out of the room already and I was left staring at him. I stood frozen as he leaned toward the window. "Thanks for making my bed again." he said with a smile that made my heart drop. Grabbed the window and tried sliding it open. I quickly put my hands on top to hold it shut. He started yelling at me and banging on the window with his hand. Telling me all of his things were in here and cursing at me. Holly and Mindy had come back into the room screaming. The man picked up a rock and started breaking in the window. I held up the stick ready to beat the man. Holly and Mindy pulled me back from the window as the man climbed through the broken glass. I then could see Mindy was on the phone with the police. The man's hands were all cut up from the glass. We eventually managed to fend the guy off and he climbed back out of the window and ran. The cops caught him later and said he was pretty deranged. They had me help them go through David's cabinet, they said the man insisted his things were in the room and that he lived there. Going through David's closet I slowly came to realize that a lot of this stuff wasn't his. Two bags of clothes and a dirty backpack were stuffed in the bottom of the closet. It made me realize that this guy had been living in David's room for at least a little while. David wasn't able to tell us what was going on. He really did think he just had a new roommate. We moved David closer to a room closer to the nurse's station while his window was being repaired. I never heard anything else about the guy that broke in. I figured he was admitted to a mental hospital somewhere. Hopefully he got the help he needed.
All this wasn't enough to make me quit the night shift. I do take noises I hear a lot more seriously now. I started working at the hospital a couple months later and security is a lot tighter there. Dark hallways still make me uneasy to this day and I always find myself checking for open windows."
submitted by
CallOfKyle to
creepypasta [link] [comments]
2023.03.26 14:42 Short_Algo $MET Awaiting Buy Signal based off 9 signals $1,035 net profit 3.81 profit factor 88% win rate on a 15-min chart. Free trial at https://t.co/yI1SPnacSZ https://t.co/uwvzwvERO8
2023.03.26 14:41 NoNamesLeft202005 Just wanted to ramble about how the right meds make all the difference.
As the title would imply, I am pro-medication but I understand that not everyone is. Not trying to convert anyone, just sharing my own experience.
Was only diagnosed two years ago so I didnāt have the privilege (truly - not being sarcastic) of āexperimentingā with this/being supervised by a medical professional as a child. My current psych is great but I feel like he really didnāt provide much guidance in regards toā¦. well, anythingā¦. But I do appreciate that he listens to me and trusts the requests I make.
I was lucky that Adderall IR was a good fit right off the bat, but I always struggled to get the prescription filled even before the shortage. By September 2022 I basically just lost hope and asked if I could switch to something else. I was excited to try Vyvanse but that resulted in CVS totally ghosting me because they either couldnāt (or wouldnāt?) order it and I was unmedicated for a month as a result, so that was super cool. Usually I got my meds at an independent pharmacy but I guess I was the only one who wanted to fill Vyvanse with them and they couldnāt justify the cost, which I understood. At my next appointment my psych switched me to Ritalin because he suspected that the supply chain issues had affected it the least. He was right - I had zero issues filling the prescription between October and now.
For me, Ritalin was better than nothing at all, but not by much. I felt like a zombie who could focus for 2-3 hours a day, maybe, and my mood was awful. It didnāt last nearly as long as Adderall so I was constantly up and down throughout the day. I thought about upping my Wellbutrin dose to help but decided against it. After a few months, I had become accustomed to my new ānormalā but I hated it/myself. I somehow got by at work though, which I donāt think I would have without Ritalin. I will say that it did help with focus and meetings and stuff, but did absolutely nothing for my depression. I was definitely on a low for pretty much 5 months straight.
Idk if this was noticeable or if the guy was just doing his job, but last time I went to pick up my meds, the pharmacist asked me if I was going to stay on Ritalin or switch back to Adderall once the shortage was over. I said I was switching back the second I could and the guy goes, āwe have it again.ā Dude, I nearly cried.
Itās been a week back on Adderall and ā¦.. just wow. What a difference. I donāt hate everyone and everything. Iām smiling again. I worked out this morning. Life doesnāt seem so daunting. I might eat something green today. Soā¦ā¦ yeah. Thatās it.
If youāre going through a similar thing, hang in there!!! You got this ā¤ļøā¤ļøā¤ļø
submitted by
NoNamesLeft202005 to
adhdwomen [link] [comments]
2023.03.26 14:41 Xx_calpal_xx Not too happy with psych, not sure if I should look for a new one or wait till she retires
A large reason Iām unsure is because when I started to see her in 8th grade (Iām F21) she said she was retiring soon. Sheās also my moms psych which is a reason she took me as a client. I donāt want to find a new doctor, it not work out then canāt go back to her.
I was diagnosed with depression and anxiety and for years I told her mostly everything was fine. Only, after dropping my toxic friends going into college and struggling to relate to neurotypical people I found everything just might not be fine. I related much more to my friend and bf with ADHD and have many symptoms of autism.
I do understand that because I said everything is fine then said actually no itās not, she would suspect maybe Iām medication seeking. However itās the fact that she didnāt try to continue talking to me about it that I donāt like. She knows what my mom has so she knows what is in my genes, but instead told me to instead take my meds at a different time. I asked her for a re-evaluation because I thought maybe I was misdiagnosed at 13, though she referred me she was more against the idea than anything. She told me that someone would call me about scheduling an appointment. 3 months later she emailed my mom about how I refused to answer or call them back. I never got any call nor did they message me through MyChart like usual. My mom defended me and told her to have them call her cause sheās more available than I am. Maybe two weeks later my mom emails again asking why they havenāt called and my psych responds āShe needs to call the office herself since she is an adult and give them an alternate phone number.ā
This makes me really angry because not only did she insult how I canāt make phone calls, but she also told me THEY will call me so I didnāt even know what number to call if I wanted to. She also didnāt tell my mom this when she told her to use her number instead, she waited 2 weeks to say anything. She also is my psychiatrist so she understands what anxiety does and knows that I have anxiety therefore doing something that triggers anxiety can be too much for me. I finally have an appointment for an evaluation, but should I look for a new psych? Should I tell her that I am upset about this?
submitted by
Xx_calpal_xx to
Advice [link] [comments]
2023.03.26 14:41 DorianDays [PSA] If you touch your guitar strings and the noise stops, it's normal and working as intended!
Every few days, I see someone asking whether this is normal, especially because the answer is counter-intuitive and people find it hard to believe so here it goes:
We all assume it's the guitar that's making the noise because it's an electric instrument picking up signals, but it's picking up the noise from your body! It is your body that's not grounded. When you touch the strings on your guitar and the noise stops, your body is being grounded by the guitar (which is properly grounded.)
If you find it hard to believe and want proof, try these three things and the noise will reduce:
1) Step away from the guitar. 2) Touch something else on your guitar, like the bridge plate or tuners on your guitar. 3) Touch a grounded object that is nowhere in your signal chain. It'll have the same effect as point 2 above.
There is a great
video that explains this properly. I just wanna share it with anyone who finds this hard to believe because it's a bit counter-intuitive. This video helped me ease up a lot after I spent a whole weekend once going crazy checking all my wiring to find where the noise was coming from. It was from my body and not my guitar, pedals or amp.
submitted by
DorianDays to
guitarpedals [link] [comments]
2023.03.26 14:40 AskingApleIphoneHelp APPLE HELP,ID(LOCKED TO OWNER)DISABLED ID , FORGETING THE id and passcode
Changing the password on the device, I got to the point of forgetting it. OK, after a few times it got disabled on the phone. I also forgot my apple id. After resetting the phone with the "erase" option on iTunes, it came out locked to the owner. I tried I guessed the password of my Apple ID several times and I didn't succeed, it disabled the iCloud. I found a solution from the contact center how to make a new password by giving my information number and card (in return they told me that they will check in 24 hours). Now my question is will my phone be made or not. Will I have the pictures (my data) and if the phone is repaired, will I be able to restore the pictures without a backup. Also a very important question. CAN MY PASSWORD BE RETURNED WITH THIS PROCESS AND WILL I LOGIN INTO MY ICLOUD COMMUNITY PLEASE HELP "This Apple ID has been disabled for security reasons". Please help, community!THE main thought is whether they will return it to me (will I be able to reset the Apple ID after those 24 hours) after the time waiting(i bought the iphone about 3 months now i dont want to lose it :/ if you know any information for help-reply and let me know it!!
submitted by
AskingApleIphoneHelp to
u/AskingApleIphoneHelp [link] [comments]
2023.03.26 14:40 AutoModerator [Get] Justin Welsh ā The Operating System-Grow & Monetize
Get the course here:
https://www.genkicourses.com/product/the-operating-system-grow-monetize/ [Get] Justin Welsh ā The Operating System-Grow & Monetizeš· Download Full course ā Instant Delivery Whatās Inside? 01 Getting started Laying the foundation
- Learn how to develop a profitable sub-nicheso you can stand outā¦
- Understand the 3 traitsyou need to grow an audience of raving fansā¦
02 Getting attention Content Creation
- Re-program how you create contentto crush āwriterās blockā foreverā¦
- Learn to separate your content into 2 critical partsto iterate and produce rapidlyā¦
- Focus on creating great content that you can reuseinstead of a high volume of subpar postsā¦
03 Getting leads Lead Capture
- Learn the number one problem with all LinkedIn profilesand how to get past itā¦
- Help your audience find you and get more leads in your inboxā¦
- Learn the only type of CTA to use, to have more prospect conversationsā¦
04 Getting customers Business Design
- Learn how to use 2 incredible prospecting techniquesto earn income through Linkedinā¦
- Use this method to create weekly incomewithout turning off your audienceā¦
- Learn about the 80/20 rule and how to apply it to make saleson LinkedInā¦
submitted by
AutoModerator to
Courses_Marketing [link] [comments]
2023.03.26 14:39 4sStylZ A lot of bugs latelly. Can't even play quickplay anymore. Am I alone ?
TL;DR : Just a Ā« Venting Ā» post where I list all the issues that I encounter, expecting that maybe Crytek will give a lookā¦
Latelly, maybe since the previous update, I encounter a lot of issue with the game. I gived up about the trade related to ping mechanic, special ammo reload issue but there are some new very strange issues :
- About the character models that don't appear when finishing a mission. This bug give you a very strange sound atmosphere like you'r in Limbo when on the menu. But sometimes, This bug continue after finding a match and you can hear the limbo sound atmosphere while playing. Then you need to reset the game and that lead us to the next oneā¦
- The reconnection feature work only 50% of the time.
- Sometimes, you reconnected but then your point of view seem's off compared to the actual map. you can move, jump, play, but since you're 5 metters shifted away from the environment, you get stuck into obstacles / trees etc.
- Sometimes you can reconnect but there is no sound except a vague echo far away. It's like hearing people walking into tunnels. Everything is muted and It's basically like playing as a hard of hearing person. Sometimes there is no sound at all.
- The UI have a bug if you pay for a character skin during the matchmaking phase. Sometimes it give you a error message window that disappear during the loading but come again while playing. Meaning that you have to click on a button during the gameplay and guess what⦠it shoot if you play and alert ennemies.
- Sometimes, launching a lamp that I turned off stuck my character into a state when he can't interact with anything, can't jump and can't change weapons. It happened 3 times and guess what, I don't want to turn off lamp anymore since the only thing to do was to launch the game again.
- In quickplay, I got a bug while trying to pick a scottfield akimbo on a crate. I got stuck with no pistols and just me pointing my two hands on front of me without any gun. It was like mister bean parody pretending to be a spy. Had to swap 3 times my loadout to finally getting my guns working.
- Since 2 days, I can't play quickplay anymore. If I start a lobby search, I got an error message telling me that there was an error and that I need to start again⦠Not only that but the UI is stuck and I have to reset the game to search again.
To me, it's like playing on a beta latelly. And I tried many things to change my issues even swapping to a whole new PC with different graphic card / CPU. I know that my mates have some issues but based on my conversation with them, I think I get more issues than them for unknow reasons.
submitted by
4sStylZ to
HuntShowdown [link] [comments]
2023.03.26 14:39 SufficientFroyo-661 Pelicans drive 21 3-pointers to win Clippers 131-110
2023.03.26 14:39 OkBumblebee1650 [Recruiting] Holder Origins (#99YQ89QJ) TH10+ Loot War Clan FWA Farm War Alliance CWL
We are an adult clan called Holder Origins. We have a friendly fun atmosphere of active players. No drama, it's a game, right? We are an official Farm War Alliance (FWA) clan. In simple terms, the idea behind farm wars is a large group of member clans search at the same predetermined time to increase the likelihood of matching other farm war clans. A system is in place to determine the winner of each war. This system allows clans to win an equal number of wars over time to ensure fairness. Specifically approved base designs are used to help facilitate this process. Maximum loot with minimum effort and cost.
We are currently accepting TH10s and up.
About the Clan:
CLAN NAME: Holder Origins
CLAN TAG: #99YQ89QJ
CLAN GAMES: We always participate and always max.
RAID WEEKEND: Always participate and always upgrading.
CLAN LEVEL: 26
CWL: We participate in a separate clan at the same time as FWA wars. You can choose to do both at the same time.
LOCATION: The clan is open to any English-speaking player from any country or time zone.
AGE: This is an adult clan.
COMMUNICATION: We currently use Discord to chat outside of the game. Joining is optional, but encouraged.
PROFANITY: With an adult clan, we understand curse words find their way into the chat occasionally, but we generally try to keep profanity to a minimum out of respect for all members.
DONATIONS: No specific donation requirements. Just be active and stay reasonably balanced.
JOINING: You can apply in game or on discord. In-game just mention this post. One of the leaders will review your profile as soon as they are able.
Click Here to join discord.
submitted by
OkBumblebee1650 to
ClashOfClansRecruit [link] [comments]
2023.03.26 14:39 tavad [Discussion] on probability paradoxes in the real world. I.e. Boy or Girl, Monty Hall
There is an average statistical family with two children. We know for sure that at least one of the children is a boy. What is the probability that both children are boys? Correct Answer: 1/3, i.e. 0.33
There is an average statistical family with two children. We know for sure that at least one of the children is a boy and was born on Wednesday. What is the probability that both children are boys? Correct answer: 13/27, i.e. 0.48 (72-1)/(74-1)
There is an average statistical family with two children. We know for sure that at least one of the children is a boy and was born on April 18th. What is the probability that both children are boys? Correct answer: 729/1459, i.e. 0.499657, practically 0.5 (3652-1)/(3654-1)
There is an average family with two children. We know for sure that the eldest of the children is a boy. What is the probability that both children are boys? Correct answer: 1/2
Note that the more information or noise in these problems, the faster the answer approaches 1/2. The answers to these problems range from 1/3 to 1/2. Note that 1/3 is obtained only when we are dealing with "noiseless" average values, and with each new piece of information, even a tiny one, the probability immediately approaches 1/2.
Those kind of probability problems are not only unintuitive because our brains have evolved to work with natural numbers, but also because probability theory works with noiseless mathematics, whit no real-world noise. Our brains don't solve complex differential equations when catching a ball or thinking about what to buy. Utility maximization and optimization problem-solving only work in a sterile world where there is no noise, all unknowns and their corresponding probabilities are given, and the rules of the game do not change.
In reality, where there is a lot of noise and the unknown, our brain uses simple and fast heuristic methods (rules of thumb) to solve problems of the unknown. One should not think that in the real world of uncertainty, the one who does not optimize is not rational. The truth is the opposite: in a world of uncertainty, success lies in simplicity.
One of our brain's simple heuristics is 1/n, where under uncertainty, we simply divide into n cases. Now imagine the following situation: I met Mr. Smith in real life, he said that he had two children and began to talk about his boy. What is the probability that both children are boys? My answer, and the answer of a rational person who does not delve into probabilities would be 1/2! Why? Because we live in a world of uncertainty, and the more noise in this problem, the faster the answer approaches half.
The same goes for Monty Hall's paradox, which says: āImagine that you have become a participant in a game in which you have to choose one of three doors. Behind one of the doors is a car, behind the other two doors are goats. You choose one of the doors, for example, number 1, after that the host, who knows where the car is and where the goats are, opens one of the remaining doors, for example, number 3, behind which there is a goat. After that, he asks you - would you like to change your choice and choose door number 2? Will your chances of winning a car increase if you accept the host's offer and change your choice?
From the noiseless point of view of probability theory, the answer to this problem is that yes, the probability does increase and become 2/3. And if I play with a computer or with a statistical design with the rules described above, then I will always change the door.
However, this problem is also counter-intuitive, and our inner voice tells us that there will be no change in the odds, and the probability will be the same 1/n (a simple heuristic), that is, the correct answer is 1/2. And our intuition is right. In this problem too, the more information or "noise," the faster the answer statistically approaches to 50%.
This task is similar to the previous one. And in the real world, playing with real people, I would not change the answer and say that the probability will be the same. Why? Because we are dealing with unpredictable rather than sterile probabilistic risk. In the real world, the host (Monty Hall) can play any trick on us, and we will think about hints, and not about probabilities, which is more correct.
So in the real world of uncertainty, trust your intuition, rather than trying to remember and solve complex problems of probability theory.
PS. Also, don't trust the charlatans at fairs, who in both problems, using probability theory in a sterile situation, can get probabilities of 1/3 and 2/3, respectively.
submitted by
tavad to
statistics [link] [comments]
2023.03.26 14:39 shipshaper88 Not yet sure what the appeal is over Diablo 3
Having played Diablo 3 a fair amount, I enjoy that game for what it is. The end game grind in that game is somewhat varied and very enjoyable for a time. Leveling is not really interesting but you donāt really spend much time doing that.
In contrast, Iām not yet sure what D4 offers. I get that we donāt have access to endgame, but I donāt really see any advancements that earlier entries provided. D2 was a clear advance over D1 with multiple areas, including selection of abilities through f-hotkeys, a talent tree, and an interesting gearing system. D3 was a huge advance over D2 in many ways, with a fully developed endgame and a much more advanced combat system (though some may argue it lost some of the appeal from D2). However Iām not really sure what D4 offers that isnāt present in D3. Mounts? D3 doesnāt really need mounts because of all the travel abilities. A skill tree? This doesnāt seem to be that much more advanced than the skill and runes system of D3. One could argue the gearing system of D4 appears more interesting, requiring you to actually look at your gear rather that just see whether the number is green. The story in D4 does appear better than D3 (I still have no idea what went on in that game). But I just donāt know why I should be excited to play D4 when I can have a blast right now playing D3.
submitted by
shipshaper88 to
diablo4 [link] [comments]
2023.03.26 14:39 thisisfuego I kinda goofed my first try at the traditional bifold, but I think this one made up for it
| Wasn't really happy with how my first bifold turned out. I was impatient, had inconsistent stitching and crooked punches/stitch lines. Decided pretty quickly after making it that I'm just gonna redo it. I now only work when I'm rested, and have been slow since I've been working toward deadlines for weeks. Now that it's finally behind me, I had time to finish this redemptive project. Also decided to try to take halfway decent photos this time. Upgraded to 3.38 french irons and #8 Vinymo purple taupe thread. Got 3 oz buttero offcuts for this green exterior, 2 oz whiskey drum stuffed roo for the interior. It's still not quite perfect but I'm happy with the improvement. At the very least, I'm glad that I'm getting noticably better two months in from picking up leather craft. submitted by thisisfuego to Leathercraft [link] [comments] |
2023.03.26 14:38 DismalFinding What if Iraq 'wins' the 1990-91 Gulf War?
So, Iraq couldn't conventionally win the Gulf War. But what happens if they turn it into the kind of headache the Russians experienced in Chechnya, or which the Americans themselves would later see in Afghanistan? A few historical changes might make this semi-plausible:
- Israel rises to the bait of Iraqi scuds in the early war and attacks. How many of the neighbouring middle eastern states would leave the coalition, or even join Iraq rather than fight alongside the Israelis?
- No big Iraqi missteps like the invasion of Saudi Arabia, they switch to insurgency tactics instead. How long can they eke things out and bleed the coalition?
- Iraq doesn't commit to large-scale tank battles, which are effectively turkey shoots for the coalition. What could they do instead to extend the war?
- Larger numbers of Republican Guard manage to escape back into Iraq after the liberation of Kuwait. How many would it take to make a noticeable difference in a war of attrition?
- America decides to push all the way to Baghdad and topple Saddam completely, instead of satisfying themselves with a February 28 ceasefire. What would the human cost of that extended action be? What would it do to coalition morale when it becomes clear Bush wants a long war?
- Iraq goes ham with chemical weapons. What's the psychological impact on those serving, and the media back home?
In effect, we're asking how long Iraq can remain a thorn in America's side, the the point where future middle eastern adventures aren't deemed worthwhile. The Afghans managed 20 years. The Chechens were a pain in Russia's ass for around 6 years. That's the ballpark.
If the US military-industrial complex loses faith in these kind of interventions, we might not see Afghanistan or the later Iraq conflict happen. America and her allies, Britain in particular, don't tank their international reputations.
Russia would undoubtedly gain more influence in the region overall, what would that look like? What does the world look like today if Iraq 'wins' the Gulf War?
submitted by
DismalFinding to
HistoryWhatIf [link] [comments]
2023.03.26 14:38 ApprehensiveGuard558 Engagement ring width help
My boyfriend and I went to our jeweler yesterday to pick out the details for my engagement ring. I stupidly did not take pictures, and I am so regretting that.
We are getting a 3 carat round diamond with a yellow gold plain metal band. The thing I am hung up on is the width of the band. I want it to be thick but the 2.5mm seemed almost too thick? It was hard to visualize since I tried on a wedding band and then they held the diamond on top of it. The 2mm was too thin for my liking.
I am a tall lady so I want my ring to hold some weight on my hand but also want a channel ring likely for my wedding band.
Can anyone share pics of their 2.5mm engagement rings? Or just thoughts in general I suppose.
submitted by
ApprehensiveGuard558 to
EngagementRings [link] [comments]