Przejdź do głównej zawartości

Posty

Angular2 + Moment.js library with Visual Studio 2017 .Net Core 2.0

Hey there! Recently I was facing problem with adding MomentJs library to Angular2 in .net core 2.0 project.  I'm using Visual Studio 2017 15.3.3.  ( https://www.visualstudio.com/pl/thank-you-downloading-visual-studio/?sku=Community&rel=15 ) Create new test project 2. Use Web -> Angular template  3. Compile and run in chrome to check that everything is ok.  4. Edit package.json. At the end of "dependencies" add new line:  "moment": "2.18.1" 5. Edit tsconfig.json file, At "compilerOptions" add: "allowSyntheticDefaultImports": true, 6. Edit home.component.ts and add: import * as moment from 'moment'; and the constructor.     constructor() {         try {             console.log("test");             let now = moment().format('LLLL');             console.log(now);         } catch (e) {             console.log(e);         }     } set br
Najnowsze posty

Runtime Error after Web publish via Visual Studio 2015

getting Runtime Error after publishing even simplest (new project) web application with VisualStudio 2015 ? and in IIS logs you have: Cannot execute a program. The command being executed was "D:\HostingSpaces\XXXXX\wwwroot\bin\roslyn\csc.exe" /shared /keepalive:"10" /noconfig /fullpaths @"C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\f282ca1d\e26e10c7\xj0hprs3.cmdline". at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() at System.Web.Compilation.BuildManager.CallAppInitializeMethod() at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) Cannot execute a program. The command being executed was ... try changing publish web

NetBeans and Trackpoint problem...

Netbeans doesn't allow (for some reasons) using native trackpoint + third blue button for scrolling through code view listing :/ that's annoying if You're not using mouse wheel ... I have Lenovo X200 and that was big problem for me... here is solution: open C:\Program Files\Lenovo\TrackPoint find tp4table.dat an edit it in Notepad++, add these lines, between similar lines: ; NetBeans support *,*,netbeans.exe,*,*,*,WheelStd,0,9 save the file, restart computer and voila... now Netbeans supports scrolling with Lenevo's trackpoint... tested with Netbeans 7.01 on win7 and default lenovo's trackpoint drivers

USB Mass Storage Problem Samsung Galaxy S i9000

If You're new to Samsung Galaxy S (aka i9000) and You have problem with connecting phone in Mass Storage mode to your computer via USB (only new hardware Samsung_Android in My Computer -> Devices) try downloading and installing drivers: http://drivers.softpedia.com/progDownload/Samsung-Galaxy-S-USB-Driver-for-Windows-x86-Download-96692.html 0. if Your phone is conected via USB disconnect it. 1. first try without debbuger mode -> Settings - > Application -> Developing -> USB Debugger = off ) 2. download and install drivers 3. connect your phone via USB, (in My Computer there should pop-up two new disks - but You won't be able to enjoy them :) ) 4. bring the topbar (notification bar) and select: Connect USB -> Connect ... now it's done... now it should work

Toggle Vibrate & Ring

Toggle VibraOrRing cab installation for WM 6.0: XDA Thread... c# how to toggle Vibra and Ring On ? simple... use this code :) using System; using System.Linq; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace toggleVibrateSound { class Program { private enum SoundEvent { All = 0, RingLine1, RingLine2, KnownCallerLine1, RoamingLine1, RingVoip } private enum SoundType { On = 0, File = 1, Vibrate = 2, None = 3 } private struct SNDFILEINFO { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] public string szPathNameNative; [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] public string szDisplayNameNative; public SoundType SstType; } [DllImport("aygshell.dll",

X Mapper 1.0 - Tool for mapping X Panel Button

I've made an application that allows simple mapping / binding exe files to X Panel Button (via editing registry file, SOFTWARE\\SonyEricsson\\PanelManager) I think that using my X Mapper is faster and easier then manual editing registry... Instruction: 1. if it's first time do Backup of registry entry and panelmanager.lnk in StartUp folder! a) (go to Menu->Backup->Save) b) (Menu->panelmanager.lnk->beckup before delete) 2. then we have to delete panelmanager.lnk from our StartUp folder (Menu->panelmanager.lnk->try to delete) 3. Choose one from available Events: - Run Program (allows to run program) - Run Program with Argument (allows to run any other application but with additional argument (uses my RWA app, see my signature) - Toggle WiFi (changes state of Wifi Adapter, uses external exe) - Toggle BT (changes state of BT Adapter, uses external exe) - Lock (devicelock.exe is executed) 4. if Run Program / Run Program with Argument is selected then press: "C

Send WinKey - Open Start Menu...

Send WinKey is tiny application that is emulating click of Windows Key... * You can use it while binding / mapping your hardware keys (ex Xperia, Touch Pro etc.) when You need the "fast" opening of Start menu (not touching screen but pressing the button...) Cab Installation XDA-Developers Thread *(yesssss... I know that MortScript has got that kind of options... but ... not everybody needs to have mortscript installed... or not everybody wants to edit those lines of scripts/codes... etc) :) cheers...