小编Wie*_*ies的帖子

Eclipse Indigo市场

我在Ubuntu 11.10上安装了Eclipse Indigo,市场没有显示在"帮助"下,所以我在http://download.eclipse.org/releases/indigo/中添加了"安装新软件"中的软件存储库.当我尝试使用"帮助" - >"检查更新"来更新Eclipse时,它会显示一些应该更新的内容,但我无法安装更新,因为此错误:

Cannot complete the install because of a conflicting dependency.
Software being installed: Eclipse Java Development Tools 3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK (org.eclipse.jdt.feature.group 3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK)
Software currently installed: Shared profile 1.0.0.1317160331466 (SharedProfile_PlatformProfile 1.0.0.1317160331466)
Only one of the following can be installed at once: 
  org.eclipse.rcp_root 3.7.0.dist-9gBsFnkFlfr2B21319
  org.eclipse.rcp_root 3.7.1.r37x_v20110729-9DB5FmNFnFLSFCtLxnRfMqt15A4A
  org.eclipse.rcp_root 3.7.0.v20110216-9DB5Fm1FpBGy_AaVz-mFamgY
Cannot satisfy dependency:
  From: Shared profile 1.0.0.1317160331466 (SharedProfile_PlatformProfile 1.0.0.1317160331466)
  To: org.eclipse.rcp_root [3.7.0.dist-9gBsFnkFlfr2B21319]
Cannot satisfy dependency:
  From: Eclipse Java Development Tools 3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK (org.eclipse.jdt.feature.group 3.7.1.r371_v20110810-0800-7z8gFcoFMLfTabvKsR5Qm9rBGEBK)
  To: org.eclipse.platform.feature.group 3.7.1
Cannot satisfy dependency:
  From: …
Run Code Online (Sandbox Code Playgroud)

ubuntu eclipse-marketplace eclipse-indigo

5
推荐指数
1
解决办法
5745
查看次数

PHP imagettftext部分粗体

我正在训练我的PHP技能来生成图像.我只需要一件不起作用的东西.我不认为这可能是我想要的方式,但应该有另一种方式.我已经拥有的代码是这样的:

<?php
$textSize = 10;
$text = addslashes("Wietse: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada aliquet dolor, vitae tristique lectus imperdiet nec. Pellentesque et.");
$maxWidth = 448;

//Create image
$im = imagecreate(468, 60);

// Black background and White text
$bg = imagecolorallocate($im, 0, 0, 0);
$textColor = imagecolorallocate($im, 255, 255, 255);

// Split in multiple lines
$words = explode(' ', $text);
$lines = array();
$line = "";
foreach ($words as $word) {
    $box = imagettfbbox($textSize, 0, './arial.ttf', …
Run Code Online (Sandbox Code Playgroud)

php gd imagettftext

4
推荐指数
2
解决办法
1万
查看次数

if(pause == null){不起作用

我是if(pause == null)用来做什么pausenull.但是我得到了错误

the operator == is undefined for the argument type(s) long,null

这是代码,

public class Timer extends CountDownTimer {
    long pause = (Long) null;

    public Timer(long startTime, long interval) {
        super(startTime, interval);
    }

    @Override
    public void onTick(long millisUntilFinished) {
        content.setText("Tijd over: " + millisUntilFinished / 100);
    }

    public void onPause(long millisUntilFinished) {
        if(pause == null) {
            pause = millisUntilFinished;
            content.setText("Tijd over: " + millisUntilFinished / 100);
            this.cancel();
        }
        else {
            this.start();   
        }
    } …
Run Code Online (Sandbox Code Playgroud)

java android

3
推荐指数
1
解决办法
1369
查看次数