博客园 - 寒殇
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=21221
2020-12-08T05:12:14Z
寒殇
https://www.cnblogs.com/laxknight/
feed.cnblogs.com
https://www.cnblogs.com/laxknight/p/5084433.html
centos 6.X minimal 系列最小化安装完成后,安装mono和jexus过程小记录 - 寒殇
在使用虚拟机安装minimal版centos运行mono+jexus的时候,遇到了一些坑,记录一下,比如虚拟机访问不了网络,没wget命令没开放80端口,等等小问题,其他网上教程已经有mono+jexus的详细安装教程,我这个文章就是弥补一些小坑而写的. CentOS 6.4 x64 minimal最小化安装完成后,无setup命令,无法通过字符菜单模式设置网卡IP,也不能使用yum 来更新,安装...
2015-12-28T16:01:00Z
2015-12-28T16:01:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】在使用虚拟机安装minimal版centos运行mono+jexus的时候,遇到了一些坑,记录一下,比如虚拟机访问不了网络,没wget命令没开放80端口,等等小问题,其他网上教程已经有mono+jexus的详细安装教程,我这个文章就是弥补一些小坑而写的. CentOS 6.4 x64 minimal最小化安装完成后,无setup命令,无法通过字符菜单模式设置网卡IP,也不能使用yum 来更新,安装... <a href="https://www.cnblogs.com/laxknight/p/5084433.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/5020373.html
MVC3/4伪静态 jexus mvc伪静态 - 寒殇
第一步修改RouteConfig.cs文件 public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "A...
2015-12-04T12:32:00Z
2015-12-04T12:32:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】第一步修改RouteConfig.cs文件 public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( "A... <a href="https://www.cnblogs.com/laxknight/p/5020373.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/4967918.html
petapoco 使用 MiniProfiler Glimpse监控 - 寒殇
PetaPoco是一款适用于.Net(window) 和Mono( linux )的微小、快速、单文件的微型ORM。 MVC MiniProfiler是Stack Overflow团队设计的一款对ASP.NET MVC的性能分析的小程序,适用于.Net(window) 和Mono( linux )。可以对一个页面本身,及该页面通过直接引用、Ajax、Iframe形式访问的其它页面进行监控,监控内...
2015-11-15T17:13:00Z
2015-11-15T17:13:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】PetaPoco是一款适用于.Net(window) 和Mono( linux )的微小、快速、单文件的微型ORM。 MVC MiniProfiler是Stack Overflow团队设计的一款对ASP.NET MVC的性能分析的小程序,适用于.Net(window) 和Mono( linux )。可以对一个页面本身,及该页面通过直接引用、Ajax、Iframe形式访问的其它页面进行监控,监控内... <a href="https://www.cnblogs.com/laxknight/p/4967918.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3985276.html
尝试整理出自己的开发框架1 - 寒殇
技术选型:开发环境:window+Visual Studio,Xamarin Studio+C#运行环境:linux(Mono+Jexus),window系列数据库:PostgreSQL,MongoDB,Sqlite.数据访问技术:Npoco(Petapoco),Dapper,SqlHelper(A...
2014-09-21T16:31:00Z
2014-09-21T16:31:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】技术选型:开发环境:window+Visual Studio,Xamarin Studio+C#运行环境:linux(Mono+Jexus),window系列数据库:PostgreSQL,MongoDB,Sqlite.数据访问技术:Npoco(Petapoco),Dapper,SqlHelper(A... <a href="https://www.cnblogs.com/laxknight/p/3985276.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3985219.html
初尝Brnshop移植到Linux Mono Jexus环境运行 - 寒殇
brnshop是最近社区上比较火的开源商城。 Jexus是Linux上的web服务器,简单说就是Linux的iis吧。特别感谢作者宇内流云的指点 一.根据http://www.cnblogs.com/szxfwu/p/3948388.html 进行设置,或者直接在brnshop官方群下载已经改好的web.config。然后再根据这个文章进行修改。(但是要注意的是,群共享里面的文件有个web...
2014-09-21T15:53:00Z
2014-09-21T15:53:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】brnshop是最近社区上比较火的开源商城。 Jexus是Linux上的web服务器,简单说就是Linux的iis吧。特别感谢作者宇内流云的指点 一.根据http://www.cnblogs.com/szxfwu/p/3948388.html 进行设置,或者直接在brnshop官方群下载已经改好的web.config。然后再根据这个文章进行修改。(但是要注意的是,群共享里面的文件有个web... <a href="https://www.cnblogs.com/laxknight/p/3985219.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3715279.html
(转)Android开发出来的APP在手机的安装路径是? - 寒殇
一、安装路径在哪? Android应用安装涉及到如下几个目录: system/app系统自带的应用程序,无法删除。data/app用户程序安装的目录,有删除权限。安装时把apk文件复制到此目录。data/data存放应用程序的数据。data/dalvik-cache将apk中的dex文件安装到dalvik-cache目录下(dex文件是dalvik虚拟机的可执行文件,其大小约为原始apk文件大小的...
2014-05-07T17:01:00Z
2014-05-07T17:01:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】一、安装路径在哪? Android应用安装涉及到如下几个目录: system/app系统自带的应用程序,无法删除。data/app用户程序安装的目录,有删除权限。安装时把apk文件复制到此目录。data/data存放应用程序的数据。data/dalvik-cache将apk中的dex文件安装到dalvik-cache目录下(dex文件是dalvik虚拟机的可执行文件,其大小约为原始apk文件大小的... <a href="https://www.cnblogs.com/laxknight/p/3715279.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3712918.html
Activity调用静态方法改变UI,使用Handler来改变UI显示 - 寒殇
本人菜鸟,请各位多多指点,不足之处,请斧正.没啥技术含量,就权当丰富下mono for android的小代码. Activity调用静态方法改变UI using System;using Android.App;using Android.Content;using Android.Runtime;using Android.Views;using Android.Widget;using A...
2014-05-06T17:00:00Z
2014-05-06T17:00:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】本人菜鸟,请各位多多指点,不足之处,请斧正.没啥技术含量,就权当丰富下mono for android的小代码. Activity调用静态方法改变UI using System;using Android.App;using Android.Content;using Android.Runtime;using Android.Views;using Android.Widget;using A... <a href="https://www.cnblogs.com/laxknight/p/3712918.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3669821.html
mono for android中使用dapper或petapoco对sqlite进行数据操作 - 寒殇
在mono for android中使用dapper或petapoco,很简单,新建android 类库项目,直接把原来的文件复制过来,对Connection连接报错部分进行注释和修改就可以运行了.(用可移植类库PCL项目也可以的.) 如果需要源码可以联系我.10元收费哈.. 以下内容包括 1.在安卓中创建sqlite数据库; 2.检查数据库是否存在; 3.返回数据库路径; 4.插入数据(前置知...
2014-04-16T16:51:00Z
2014-04-16T16:51:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】在mono for android中使用dapper或petapoco,很简单,新建android 类库项目,直接把原来的文件复制过来,对Connection连接报错部分进行注释和修改就可以运行了.(用可移植类库PCL项目也可以的.) 如果需要源码可以联系我.10元收费哈.. 以下内容包括 1.在安卓中创建sqlite数据库; 2.检查数据库是否存在; 3.返回数据库路径; 4.插入数据(前置知... <a href="https://www.cnblogs.com/laxknight/p/3669821.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3653275.html
查看当前正在运行的activity - 寒殇
找到sdk的安装路径,比如我的是 D:\prostu\Android\android-sdk\tools该路径下的: hierarchyviewer.bat 双击,可以用此工具查看设备跑的是当前的哪个activity,非常方便哦。
2014-04-08T16:30:00Z
2014-04-08T16:30:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】找到sdk的安装路径,比如我的是 D:\prostu\Android\android-sdk\tools该路径下的: hierarchyviewer.bat 双击,可以用此工具查看设备跑的是当前的哪个activity,非常方便哦。 <a href="https://www.cnblogs.com/laxknight/p/3653275.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3653273.html
从原生APK反编译,拿到界面,用于mono for android - 寒殇
从原生APK反编译,拿到界面,用于mono for android1.用apktool反编译apk,得到xxx.apk.de2.从xxx.apk.de\res\layout3.复制所有xml到MonoAndroid\Resources\Layout文件下4.新建bat文件,输入ren *.xml *...
2014-04-08T16:27:00Z
2014-04-08T16:27:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】从原生APK反编译,拿到界面,用于mono for android1.用apktool反编译apk,得到xxx.apk.de2.从xxx.apk.de\res\layout3.复制所有xml到MonoAndroid\Resources\Layout文件下4.新建bat文件,输入ren *.xml *... <a href="https://www.cnblogs.com/laxknight/p/3653273.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3652574.html
mono for android代码记录1 WebClient Post数据到Nopcommerce(post数据到MVC5) - 寒殇
WebClient Post数据到Nopcommerce(post数据到MVC5) 注意事项 1.把[ValidateAntiForgeryToken]注释掉,以后再处理CSRF攻击.现在学习先不理 2.post的数据,必须和MVC上面接收的参数字段进行对应,否则post不到函数,就报500错误. 本来想写详细,可是现在不懂写啥了,直接贴代码,不懂就留言问哦. 代码没重构,有空再重构漂亮点.将就看...
2014-04-08T10:05:00Z
2014-04-08T10:05:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】WebClient Post数据到Nopcommerce(post数据到MVC5) 注意事项 1.把[ValidateAntiForgeryToken]注释掉,以后再处理CSRF攻击.现在学习先不理 2.post的数据,必须和MVC上面接收的参数字段进行对应,否则post不到函数,就报500错误. 本来想写详细,可是现在不懂写啥了,直接贴代码,不懂就留言问哦. 代码没重构,有空再重构漂亮点.将就看... <a href="https://www.cnblogs.com/laxknight/p/3652574.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3647122.html
Visual Studio 2013 支持MVC3不完善,Razor智能提示不完整或者不提示 - 寒殇
以下只是针对MVC3. 前天试用Orchard 1.8,用VS2013新建C#类库项目(ClassLibrary project),然后新建Views文件夹,新建cshtml,然后引用MVC3的相关dll(System.Web.Mvc.dll(3版本),System.Web.WebPages.dll(1版本)),然后增加web.config来增加对Razor 的智能提示,可是没出现提示,然后从or...
2014-04-05T04:38:00Z
2014-04-05T04:38:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】以下只是针对MVC3. 前天试用Orchard 1.8,用VS2013新建C#类库项目(ClassLibrary project),然后新建Views文件夹,新建cshtml,然后引用MVC3的相关dll(System.Web.Mvc.dll(3版本),System.Web.WebPages.dll(1版本)),然后增加web.config来增加对Razor 的智能提示,可是没出现提示,然后从or... <a href="https://www.cnblogs.com/laxknight/p/3647122.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3545769.html
PowerDesigner增强 - 寒殇
把注释显示出来 选定编辑的表,右键- >Properties- >Columns- >Customize Columns and Filter(或直接用快捷键Ctrl+U)- >Comment(前面打勾)- >OK 把Name的值变成comment(注释) 参照 改进脚本:Powerdesigner界面-Database-Edit Current DBMS 将表的Name换为Comme...
2014-02-12T05:10:00Z
2014-02-12T05:10:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】把注释显示出来 选定编辑的表,右键- >Properties- >Columns- >Customize Columns and Filter(或直接用快捷键Ctrl+U)- >Comment(前面打勾)- >OK 把Name的值变成comment(注释) 参照 改进脚本:Powerdesigner界面-Database-Edit Current DBMS 将表的Name换为Comme... <a href="https://www.cnblogs.com/laxknight/p/3545769.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3424586.html
centos使用jexus支持php小记录 - 寒殇
安装php(文章参考http://linuxdot.net/bbsfile-3132)yum install php1)修改“/etc/php.ini”文件(有的位置在/etc/php5/cgi/php.ini): 找到cgi.force_redirect=1一行,把前边的"#"号去掉,把值从1改为...
2013-11-14T17:15:00Z
2013-11-14T17:15:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】安装php(文章参考http://linuxdot.net/bbsfile-3132)yum install php1)修改“/etc/php.ini”文件(有的位置在/etc/php5/cgi/php.ini): 找到cgi.force_redirect=1一行,把前边的"#"号去掉,把值从1改为... <a href="https://www.cnblogs.com/laxknight/p/3424586.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3381711.html
Dapper试用 - 寒殇
以下代码摘自imfunny的 Dapper> http://www.cnblogs.com/imfunny/archive/2011/09/16/2178829.html using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;usin...
2013-10-21T16:27:00Z
2013-10-21T16:27:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】以下代码摘自imfunny的 Dapper> http://www.cnblogs.com/imfunny/archive/2011/09/16/2178829.html using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data.SqlClient;usin... <a href="https://www.cnblogs.com/laxknight/p/3381711.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3362863.html
Android的项目不能直接引用可移植类库的项目解决方法 - 寒殇
深圳_exception() 10:25:51Android的项目不能直接引用可移植类库的项目,但是可以引用可移植类库生成的dll,这就意味着无法直接断电调试可移植类库上海-黄药师() 10:26:17谢谢,刚刚自己搞定了。上海-黄药师() 10:26:32拷贝了两个文件到某目录就OK了。上海-黄药师() 10:26:47可以引用的。深圳_exception() 10:27:12是吗?我试试 谢啦上海-黄药师() 10:27:27是的上海-黄药师() 10:27:39复制两文件到: C:\Program Files (x86)\Reference Assemblies\Microsoft\Fr
2013-10-11T02:40:00Z
2013-10-11T02:40:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】深圳_exception() 10:25:51Android的项目不能直接引用可移植类库的项目,但是可以引用可移植类库生成的dll,这就意味着无法直接断电调试可移植类库上海-黄药师() 10:26:17谢谢,刚刚自己搞定了。上海-黄药师() 10:26:32拷贝了两个文件到某目录就OK了。上海-黄药师() 10:26:47可以引用的。深圳_exception() 10:27:12是吗?我试试 谢啦上海-黄药师() 10:27:27是的上海-黄药师() 10:27:39复制两文件到: C:\Program Files (x86)\Reference Assemblies\Microsoft\Fr <a href="https://www.cnblogs.com/laxknight/p/3362863.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3356729.html
jexus ASP.NET开发注意项1 - 寒殇
Jexus@宇内(273766940) 9:09:02linux上的文件名和文件路径是大小写敏感的。Jexus@宇内(273766940) 9:10:11在win上,你文件名是 Login.aspx,可以用login.aspx访问,但在linux上,你用login.aspx访问就会找不到文件。肖坤(276953703) 9:11:32也就是只要是文件名或路径大小写匹配就可以了。这也是linux系统的原因Jexus@宇内(273766940) 9:12:39在迁移中,还要注意操作系统API调用方面的问题,如果你的asp.net程序中用dllmport访问了windows的系统api,那么,这种调
2013-10-08T02:55:00Z
2013-10-08T02:55:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】Jexus@宇内(273766940) 9:09:02linux上的文件名和文件路径是大小写敏感的。Jexus@宇内(273766940) 9:10:11在win上,你文件名是 Login.aspx,可以用login.aspx访问,但在linux上,你用login.aspx访问就会找不到文件。肖坤(276953703) 9:11:32也就是只要是文件名或路径大小写匹配就可以了。这也是linux系统的原因Jexus@宇内(273766940) 9:12:39在迁移中,还要注意操作系统API调用方面的问题,如果你的asp.net程序中用dllmport访问了windows的系统api,那么,这种调 <a href="https://www.cnblogs.com/laxknight/p/3356729.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3347009.html
android4.0以上访问网络不能在主线程中进行以及在线程中操作UI的解决方法 - 寒殇
MONO 调用一个线程操作UI 然后报Only the original thread that created a view hierarchy can touch its views。错误 google了一下说UI的操作还是需要到主线程,看了些java的例子 java中是使用了Handler 但是在MONO中需要怎么实现? 一. RunOnUiThread(()=>执行语句 ); dem...
2013-09-30T03:26:00Z
2013-09-30T03:26:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】MONO 调用一个线程操作UI 然后报Only the original thread that created a view hierarchy can touch its views。错误 google了一下说UI的操作还是需要到主线程,看了些java的例子 java中是使用了Handler 但是在MONO中需要怎么实现? 一. RunOnUiThread(()=>执行语句 ); dem... <a href="https://www.cnblogs.com/laxknight/p/3347009.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3327746.html
MONO MessageBox 类 - 寒殇
MessageBox类,负责提示各种消息.using System; using Android.App; using Android.Content; namespace Box{ public class MessageBox { private static AlertDialog.Builder CreateDialog(Context ctx, string title, string message) { AlertDialog.Builder dlg = new AlertDialog.Bui...
2013-09-17T17:16:00Z
2013-09-17T17:16:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】MessageBox类,负责提示各种消息.using System; using Android.App; using Android.Content; namespace Box{ public class MessageBox { private static AlertDialog.Builder CreateDialog(Context ctx, string title, string message) { AlertDialog.Builder dlg = new AlertDialog.Bui... <a href="https://www.cnblogs.com/laxknight/p/3327746.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/laxknight/p/3298710.html
mono for android 百度map binding项目(转) - 寒殇
好丫小子之前发布过百度地图android SDK的mono for android绑定dll,许多朋友看过之后说想理解是怎么绑定的,现我把绑定的代码发出来。针对2.1.2版本百度地图android sdkMetadata.xml在Additions目录中新增一个Fx.cs文件,文件内代码如下using System;using System.Collections.Generic;using System.Text;using Object = Java.Lang.Object; namespace Com.Baidu.Mapapi.Map{ public partial class I...
2013-09-03T06:47:00Z
2013-09-03T06:47:00Z
寒殇
https://www.cnblogs.com/laxknight/
【摘要】好丫小子之前发布过百度地图android SDK的mono for android绑定dll,许多朋友看过之后说想理解是怎么绑定的,现我把绑定的代码发出来。针对2.1.2版本百度地图android sdkMetadata.xml在Additions目录中新增一个Fx.cs文件,文件内代码如下using System;using System.Collections.Generic;using System.Text;using Object = Java.Lang.Object; namespace Com.Baidu.Mapapi.Map{ public partial class I... <a href="https://www.cnblogs.com/laxknight/p/3298710.html" target="_blank">阅读全文</a>