Search Posts

Category: Programming

Autotool太複雜

Autotool太複雜,個人認為它阻礙了system programming的發展應該給斷除。AutoTool由三大組件所構成:autoconf, automake和libtool。Autoconf是由autoconf, autoreconf, autoheader, autoscan, autoupdate, ifnames, autom4te, m4指令所合成,automake由automake和aclocal指令合成,libtool則由libtool, libtoolize, ltdl等指令所構成。它們之間也沒有一個統一個使用標準,就是說你可以自己去判斷用那些指令去構建你的build system,所以學習難度非常之大也不統一。所以根本學唔掂,你可以隨便git一個開源項目試下改一下它的autoconf就會知道。

Remove the “Logging” menu from putty

Below are the steps to remove the “Logging” menu from putty Download windows source from putty website, don’t clone from the github because it missing Makefile.vc. Search for “Windows source archive” in https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Comment out line 1488 to 1543 in config.c which in the root folder (see below image) cd windows nmake -f Makefile.vc If everything […]

The setting to identify an SPO/Onprem project for spfx

In file .yo-rc.json, the value of “environment” is either “spo” or “onprem”, it identify your project is on-premises or sharepoint online. If you want to create extension, you have to use “spo” { “@microsoft/generator-sharepoint”: { “version”: “1.4.1”, “libraryName”: “quantr-express”, “libraryId”: “1a6a217f-6fb8-44b4-981f-35d0ebe7025b”, “environment”: “onprem” } }

My notes on command set development for SPO

current list id : this.context.pageContext.list.id current list title : this.context.pageContext.list.title for (let row of event.selectedRows) { let itemId: number = row.getValueByName(‘ID’); Dialog.alert(`${itemId}`); } Get current user email : this.context.pageContext.user.email import * as strings from ‘SpfxCloneCommandSetStrings’; this._fieldTypesToIgnore = new Array( strings.typeCounter, strings.typeContentType, strings.typeAttachments, strings.typeModStat, strings.typeComputed ); this._fieldsToIgnore = new Array( strings.fieldModified, strings.fieldCreated, strings.fieldAuthor, strings.fieldEditor, strings.field_HasCopyDestinations, strings.field_CopySource, […]

Finally deployed nodejs+express to azure

Finally deployed nodejs+express to azure, I failed a fews time using the examples https://docs.microsoft.com/en-us/azure/app-service/app-service-web-get-started-nodejs and https://docs.microsoft.com/en-us/azure/cloud-services/cloud-services-nodejs-develop-deploy-express-app . The easiest steps for me are: 1. Create the App service manually in Azure portal 2. Create you express 3. Ftp to the app service. 4. Download server.js , copy content from bin/www to it and modify “var […]

SharePoint 2016 Central Admin Functionalities summary

Application management Create/edit/delete web application Create/edit/delete site collection Assign site collection primary and secondary administrator Create or extend Web application Remove SharePoint from IIS Web site Delete Web application Define managed paths Web application outgoing e-mail settings Web application general settings Content databases Manage Web application features Web application list SharePoint Site Management Create site […]

Microsoft is fake again, node 8.9.0 is not working for office365 development

In SharePoint with NodeJs development, Microsoft was suggesting us to use Node 6.9.x, now microsoft website is updated and telling us to use Node8.9.x, I tried which failed. Lots of people on technet are saying they can’t compile their SharePoint project too. Microsoft need a better open source QC team.

Microsoft outlook addins example is wrong

Microsoft outlook addins example is wrong if you use reactjs with webpack. Go to webpack.dev.js file, add the things in the below screen. After you run “npm start”, manually browse to “https://localhost:3000/function-file/function-file.html” and check all files referred by it are loaded successfully. Then the “Gist the gist” button will work. Peter

Next Page » « Previous Page