Posts

javascript - Defining transpency in bmp files -

a game i'm researching, has textures on interface. textures in-game transparent. game old (1999) , textures saved .bmp . here sample texture file: sample texture interface file this game written in c++. here's question: how possible, game understands parts of .bmp , black , transparent surface? can give me idea, how define 1 well? i'm working in canvas (javascript, babylonjs ), need idea, not code.

sitecore8.1 - Sitecore 8.2 showing error attempt to access method 'Sitecore.Context+PageMode.get_IsPageEditor()' failed -

i have upgraded sitecore 8.1 sitecore 8.2. have method in using: sitecore.context.pagemode.ispageeditor for giving error: attempt method method_name access method 'sitecore.context+pagemode.get_ispageeditor()' failed. what missing? the sitecore.context.pagemode.ispageeditor is deprecated in sitecore.kernel since sitecore 8.0 update-6 see release notes : deprecated , removed functionality the properties ispageeditor, ispageeditordesigning , ispageeditorediting in class context.pagemode sitecore namespace have been deprecated in favor of new introduced properties isexperienceeditor , isexperienceeditorediting. old properties removed in 1 of future major versions. (438475) in sitecore 8.2 update 1 sitecore.context.pagemode.ispageeditor removed use sitecore.context.pagemode.isexperienceeditor same for: ispageeditor, obsolete use isexperienceeditor instead ispageeditorclassic, deprecated false ispageeditordesigning, ob...

excel vba - VBA Open file with wildcard knowing only extension -

i trying excel open file in given folder (thisworkbook.path\peach\apple) has .xlsm extension (there 1 file). possible open wildcard character? not know name of file, extension. if not, there way it? just ask file system first matching file: dim path string: path = thisworkbook.path & "\peach\apple\" findfirstfile = dir$(path & "*.xlsm") if (findfirstfile <> "") workbooks.open path & findfirstfile else '// not found end if (this not search sub-directories)

excel - Access Export to Text File (Formatted files) then Import it issues -

Image
my coworker , noticed issue trying import formatted file text file preduced using access export text file. the sample file within access after create looks this: the sample file looks when exported using text file option: ------------------------------------------------------------------------------------------------------ | id | famousname | famousfor | ------------------------------------------------------------------------------------------------------ | 3 | bill gates | american businessman | ------------------------------------------------------------------------------------------------------ | 4 | muhammad ali | american boxer , civil rights campaigner | ------------------------------------------------------------------------------------------------------ | 5 | john f. kennedy | pres...

javascript - Uncaught ReferenceError: $ is not defined? -

how come code throws an uncaught referenceerror: $ not defined when ok before? $(document).ready(function() { $('#tabs > ul').tabs({ fx: { opacity: 'toggle' } }); $('#featuredvid > ul').tabs(); }); results in tabs don't close anymore. jquery referenced in header: <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/sprinkle.js"></script> <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/jquery-1.2.6.min.js"></script> <script language="javascript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/jquery-ui-personalized-1.5.2.packed.js"></script> you should put references jquery scripts first. <script language="javascript" type=...

c++ - g++ internal compiler error segmentation fault with recursive constexpr -

i updated g++ version 6.3.0 (g++ (homebrew gcc 6.3.0) 6.3.0), g++: internal compiler error: segmentation fault: 11 (program cc1plus) . previous version (i'm not sure around) 5.2 worked. , on 1 of other computers use g++ (ubuntu 5.2.1-22ubuntu2) 5.2.1 , works. the code is: constexpr bool checkforprimenumber(const int p, const int t) { return p <= t or (p % t , checkforprimenumber(p, t + 2)); } constexpr bool checkforprimenumber(const int p) { return p == 2 or (p & 1 , checkforprimenumber(p, 3)); } int main() { static_assert(checkforprimenumber(65521), "bug..."); } i compile code with g++ test.cpp -std=c++11 -fconstexpr-depth=65535 what can possibly work around this? edit: bug report sumitted the error comes stack overflow internally in g++. allegedly able increase stack (on macos 10.11.6). however, did not resolve issue @ hand. came solution, split check 2 branches, here code: constexpr bool checkforprimenumber(const int p...

amazon web services - When deploying a Docker container to AWS, do i need to deploy my own reverse proxy as well? -

i have rails api handle data , server logic other client apps. when dockerizing , deploying aws elastic beanstalk (generic docker - single container), fails. need deploy multiple containers, include own configuration of nginx? or aws have way handle reverse proxy me? looking little guidance. if have handle nginx myself that's fine (and pointers there nice), i'm trying offload setup , configuration possible onto services aws provides , keep more narrow focus on code need write api itself you can use aws alb, application load balancer ( https://aws.amazon.com/de/elasticloadbalancing/applicationloadbalancer/ ), deploy in ec section , understand container configuration, offers target container / port in ecb stack. way avoid own nginx container load balancer configuration, alb handle you, ssl interception , promise reliable ( , limitations )