`
13146489
  • 浏览: 246313 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论
文章列表
原文地址:http://stackoverflow.com/questions/6788566/jquery-context-menu-clashes-with-jquery-draggable 将contextmenu源代码改变: $(this).mousedown( function(e) { var evt = e; evt.stopPropagation(); $(this).mouseup( function(e) { e.stopPropagation(); var srcElement = $(this); ...

foreach in entityset

    博客分类:
  • .NET
QS: OK so I have a strongly-typed Customer "Details" view that takes a Customer object Model. I am using LINQ to SQL and every Customer can have multiple (parking) Spaces. This is a FK relationship in the database so my LINQ-generated Customer model has a "Spaces" collection. Gr ...

what is activemq

原文地址:http://www.christianposta.com/blog/?p=101 Although the Active MQ website already gives a pithy, to-the-point explanation of ActiveMQ, I would like to add some more context to their definition. From the ActiveMQ project’s website: “ActiveMQ is an open sourced implementation of JMS 1.1 as part o ...
原文地址:http://www.ibm.com/developerworks/cn/opensource/os-studionow/ 简介 开源软件让企业家和技术专家得以将创新型的解决方案带到市场。本文讨论了我们在创立这个后来卖价达 3.65 千万美元的公司之初为何以及如何采用了开源技术。 我 ...
Jerry is a jQuery in Java. Jerry is a fast and concise Java Library that simplifies HTML document parsing, traversing and manipulating. Jerry is designed to change the way that you parse HTML content. http://jodd.org/doc/jerry/index.html import static jodd.lagarto.dom.jerry.Jerry.jerry; ... Jerry do ...
android能很方便的使用jsinterface来实现使用javascript调用android的方法。 但是iphone的uiwebview貌似没有这样的简便的方法。 它的实现大致思想是:每一个js方法都是通过重新提交了一个http请求,请求的src使用特定的前缀,然后将方法名和参数以及回调地址编入src中,然后使用 - (BOOL)webView:(UIWebView *)webView2 shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebVie ...

mysql 修改root密码

今天mysql使用root无法在远程登录,只能在服务器使用localhost登录。而且修改了权限后忘记了刷新权限,就只有重启mysql服务就好了 原文:http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html On Windows, use the following procedure to reset the password for all MySQL root accounts: Log on to your system as Administrator. Stop the MySQL server if ...
昨天非常的郁闷的处理这个base64的问题,同样的一个图片文件,在java和c#进行base64编码后结果不一样,让我苦恼很久。 在网上搜索很久,有篇文章提到有可能是如下问题: byte在java和c#的不同范围的问题: Java byte : -128 to 127 C# byte : 0 to 255 我经过对比确实确实是这样的。但是后来解决问题后,发现问题根本就没有出在这里。。。 其根本原因在于字符集的问题。 我使用commons-io中的方法读取图片: FileUtils.readFileToString(new File(path)); 查看方法说明才发现,该方法把图片读成uft ...
情况:在web.xml中配置一个servlet映射路径为/test,但是struts2的filermapping为/*. 这样,servlet就不会被映射到。 解决: <constant name="struts.action.excludePattern" value="/YourServlet"/> 参考: Why the Filter is mapped with /* and how to configure explicit exclusions (since 2.1.7) In the example above we've m ...

拷贝jar包的文件

    博客分类:
  • java
1、最近将程序打包成jar的时候才出现个文件: 我将一个配置文件放在了classpath下,程序获取classpath路径后便使用了commons-io的fileutils.copy方法将该文件拷贝到system32下。 该程序在ide环境中云高兴没有问题,但是当我把程序打包成jar时,程序运行失败。 后来查资料才知道要将打包成jar中的文件拷贝到jar外,必须首先将文件从jar中解压出来,然后才能进行拷贝。 后来在jnative中查看源代码的时候,发现它有一个从jar包中拷贝dll到java-libary-path的代码。 该方法在JNative.java中: private sta ...
第一篇入门,来自jquery官方的插件编写指南 http://docs.jquery.com/Plugins/Authoring 第二篇来自smashmagazine,在入门的基础上讲解设计模式: http://coding.smashingmagazine.com/2011/10/11/essential-jquery-plugin-patterns/

java 调用打印机

    博客分类:
  • java
参考文章:SDK 1.2 Printing API Tutorial http://java.sun.com/products/java-media/2D/forDevelopers/sdk12print.html

JNATIVE 调用dll方法

    博客分类:
  • java
JNATIVE能很方面的调用dll中的方法: C语言代码:#include "stdafx.h" #include <Windows.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <string.h> typedef int (*bOpenUsb20Video)(); typedef int (*sGetBarData)(char *out); typedef int (*bCloseUsb20)() ...
转自:http://news.csdn.net/a/20110822/303394.html 北京时间8月21日消息,Netscape创始人、硅谷著名投资人马克·安德森(Marc Andreessen),日前在华尔街日报上发表的《软件正在吞噬整个世界》文章称,当今的软件应用无所不在并且正在吞噬整个世界。这篇文章分析了目前科技行业发展趋势和原因,最后的结论称“这是一个伟大的机会,我明白该把自己的钱投向哪里”。 以下是这篇文章全文: 本周,惠普(我是该公司董事会董事)宣布将放弃目前处于步履为艰的PC业务,转而致力于认为具有更大增长潜力的软件业务。同时,谷歌宣布收购手机制造商摩托罗拉移动。两者此举 ...
原文地址:http://agile.dzone.com/news/top-100-agile-books-edition One year ago, at the Agile 2010 conference, I came up with the idea to publish a Top 100 Agile Books. Like many of my other top 100 lists it was a great success (in terms of blog traffic). This year I am not at the Agile 2011 conference (fo ...
Global site tag (gtag.js) - Google Analytics