我是Eclipse Luna 4.4
从eclipse.org下载的.我改变了主题general > appearance > theme => dark
.但这不是我想要的.
现在是哪个
应该(出现在图片中)
月亮ui
我怎么能完全黑暗Eclipse
?
Node.js是一个事件驱动的I/O,它是一个单线程服务器,它作用于回调,从不在主线程上阻塞.
基于线程的模型将任务分配给线程,如果没有空闲线程,则阻止新任务.
我想知道事件驱动和基于线程的服务器系统之间有什么区别(优点/缺点).
Facebook推出了一种新的编程语言,它看起来就像是PHP的扩展.他们称之为Hack,它在他们的HHVM引擎上运行.
在看到他们的网站并阅读了一下之后,我想知道从PHP到Hack的迁移有多么流畅.
让我们围绕已经部署到LEMP或LAMP堆栈的Web应用程序进行讨论.
我的一些初步想法和行动清单包括:
那么,你会怎么做呢?
我<p:wizard>
一步一步地使用primefaces 和i registiration.如果注册成功结束,向导的步骤是第一个,但如果我继续新记录或用户,向导无法添加新记录.我正在更新以前的记录/用户.我怎么做系列中添加新记录?另一个问题; 当它返回到第一步时,它无法重置该字段.我可以这样做吗?它的提交按钮的代码;
<p:commandButton immediate="true" value="Submit" update="@parent,wiz1,growl,panel"
actionListener="#{OgrenciKayit.save}" oncomplete="wiz.loadStep (wiz.cfg.steps [0], true)" />
Run Code Online (Sandbox Code Playgroud)
如果向导提交,它返回到第一步.
oncomplete="wiz.loadStep (wiz.cfg.steps [0], true)"
Run Code Online (Sandbox Code Playgroud)
和actionListener
public void save(ActionEvent actionEvent) {
tx = session.beginTransaction();
session.save(ogrenci);
tx.commit();
FacesMessage msg = new FacesMessage("Ba?ar?l?", "Ho?geldin :"
+ ogrenci.getAd());
FacesContext.getCurrentInstance().addMessage(null, msg);
}
Run Code Online (Sandbox Code Playgroud)
等待你的想法...(附加信息我使用Jsf 2.2,Tomcat 7.0.50,Hibernate 4.3.5.final,Primefaces,Shiro)
我有一个后台服务,我正在做这个服务的所有操作。
该服务有时会与活动一起工作。但是如果应用程序关闭,服务会以START_STICKY
;重新启动。它工作正常,但有时需要很长时间才能重新启动,比如一分钟多。
@Override
public void onCreate() {
SocketIOConnect();
super.onCreate();
}
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
return START_STICKY;
}
Run Code Online (Sandbox Code Playgroud)
如何减少重启时间?
我正在尝试在textview中显示代码片段。但是我无法使长文本行在textview中自动水平滚动。
码:
TextView code = new TextView(getActivity());
TableRow.LayoutParams paramsExample = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT,TableRow.LayoutParams.WRAP_CONTENT);
code.setBackgroundColor(getResources().getColor(android.R.color.black));
code.setPadding(5, 5, 5, 5);
code.setTextColor(getResources().getColor(android.R.color.white));
code.setTextSize(TypedValue.COMPLEX_UNIT_SP,12);
code.setClickable(true);
code.setLayoutParams(paramsExample);
setCode(code, R.raw.codesnippet);
ll.addView(code);
Run Code Online (Sandbox Code Playgroud)
我在fragment.fragment_layout.xml中创建此textview:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fragment_ll"
android:orientation="vertical">
</LinearLayout>
Run Code Online (Sandbox Code Playgroud)
我正在coordinatorlayout> nestedscrollview> linearlayout(fragment container)中的活动中开始此片段
每个人的宽度大小是“匹配父母”
这是setcode方法:
public void setCode(TextView tv, int rawId) {
Resources res = getResources();
BufferedReader input = new BufferedReader(new InputStreamReader(
res.openRawResource(rawId)));
StringBuffer sb = new StringBuffer();
try {
String line;
while ((line = input.readLine()) != null) {
sb.append(line);
}
} catch (IOException …
Run Code Online (Sandbox Code Playgroud) 我想从后台服务向app活动发送数据.我该怎么做?我在后台服务上使用socketio获取数据.我需要在我的活动类中使用这些数据
我试图使用以下代码阻止国家nginx.conf:
geoip_country /usr/share/GeoIP/GeoIP.dat;
map $geoip_country_code $allow_visit {
default yes;
RU no;
}
Run Code Online (Sandbox Code Playgroud)
但我使用CLoudFLare/cdn service.so当我阻止一些国家.有时我无法登录我的系统.Coz cloudflare服务器可能在我的块国家.所以我应该从块国家列表中删除cloudflare ips.但我怎么能这样做?任何建议?
我在我的服务器上使用ubuntu 14.04/nginx ..
*
现在我受到了攻击.你们知道,网络战这么快我应该快速解决这个问题.
*
提前致谢.
android ×3
ajax ×1
cloudflare ×1
eclipse ×1
eclipse-luna ×1
event-driven ×1
hacklang ×1
hhvm ×1
hibernate ×1
jquery ×1
jsf ×1
nginx ×1
node.js ×1
php ×1
primefaces ×1
server ×1
socket.io ×1
textview ×1
threadpool ×1