我正在为公共网站指定构建/购买权衡并且已经达到了一个相当有趣的途径.
该网站的部分设计是将评论与一组明显具有自己IDss的不同"项目"相结合.(即/食谱/ 23或设备/ 16等,等).
最初,我已经指定了带标签的评论系统.然而,项目发起人已经回来询问是否很容易将Disqus纳入混合.我之前使用过Joomla(从未在.NET中)并且认为这将是一个好主意,因为默认情况下,评论会通过常用的社交网络媒体自动分配.
在ASP.NET MVC上建立一个无缝工作的Disqus实现是否相当轻松?ASP.NET MVC中是否有教程或者如何使用Disqus的解决方案?我已经看过这个例子,到目前为止已阅读过文档.
使用UIBinder和Widgets非常简单,但它产生的html非常难以理解(uibinder会生成很多内联样式,覆盖外部样式 - 甚至HTMLPanel也有一些).
我应该使用纯HTML来获取干净的makrup(使用普通的元素对象 - 例如ButtonElement)吗?
那么如何处理事件呢?
或者这是否值得做生产力矫枉过正?
什么是小部件与HTML方式的专家和骗局?
有没有办法让NPAPI插件在Internet Explorer中工作,还是我需要采用activex方式?
谢谢
"SOMETHING,SOMETHING1,SOMETHING2,......"
如何将该字符串拆分为
有些东西1有些东西2
这就是我现在所拥有的:
Pattern p = Pattern.compile("\\,+");
Matcher m = p.matcher(nVI);
while(m.find()){
System.out.println(m.group(1));
Run Code Online (Sandbox Code Playgroud)
但是,它没有产生预期的结果.
我在php脚本中有一个表单.我正在使用javascript进行验证.
<?php
$con = mysql_connect("servername","login","passsword");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("dbadminatms", $con);
if (isset($_POST['email']) && isset($_POST['name']) && isset($_POST['comments']))
{
$sql="INSERT INTO feedback_comments (posted_by, email, comments_text, comment_date)
VALUES
('$_POST[name]','$_POST[email]','$_POST[comments]',NOW())";
$emailID = $_POST['email'];
$postedBy = $_POST['name'];
$message = $_POST['comments'];
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
else
{
mail( "aaa@bbb.coml.com", "Subject: Comments", $message, "From: $emailID\r\n $postedBy" );
}
}
else
{
echo '
<form action="contactus.php" method="POST" id="feedback" onsubmit="javascript:return validate("feedback","name","email","comments");">
<p id="errorMsg">All fields are required</p>
<label for="name" …
Run Code Online (Sandbox Code Playgroud) 我正在Graphics
使用C#.NET 3.5在Windows CE中绘制一个对象.
我使用的代码如下所示:
e.Graphics.DrawLine(new Pen(Color.FromArgb(11, 118, 200), 2), x1, y1, x2, y2);
Run Code Online (Sandbox Code Playgroud)
然而,由于锯齿等,这看起来很糟糕.无论如何,我可以绘制抗锯齿线?
从我可以告诉该Graphics
对象本身不支持这个,但无论如何使用一些技巧"欺骗"这种效果?
我想转换以下拆分功能,我一直使用preg_split ..它有点混乱,因为值会不时改变..
$root_dir = 'www';
$current_dir = 'D:/Projects/job.com/www/www/path/source';
$array = split('www', 'D:/Projects/job.com/www/www/path/source', 2);
print_r($array);
Run Code Online (Sandbox Code Playgroud) 我在我的控制台上收到以下错误
root@comp09:~# gem install eventmachine
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... no
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
creating Makefile
make
I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DHAVE_INOTIFY_INIT -DHAVE_INOTIFY -DHAVE_WRITEV -DHAVE_WRITEV …
Run Code Online (Sandbox Code Playgroud) 我猜它它给要添加到NSMutableDictionary或NSDictionary的对象提供了一个名称来访问它.但是,我必须确认一下.有人能告诉我吗?
php ×2
regex ×2
.net ×1
asp.net ×1
asp.net-mvc ×1
c# ×1
disqus ×1
email ×1
graphics ×1
gwt ×1
html ×1
java ×1
javascript ×1
npapi ×1
nsdictionary ×1
objective-c ×1
preg-split ×1
split ×1
uibinder ×1
windows-ce ×1
xcode ×1