小编Rei*_*ica的帖子

如何减少拨号图表中的字体大小

我正在使用jfreechart绘制拨号图表,我想减小字体大小.

我怎样才能做到这一点?

java jfreechart

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

无法接收GCM的通知

我正在使用Android Hive 教程.它之前工作正常,但现在它不起作用.

当我注册我的设备时,它会被注册,我可以在我的网页上看到已注册的设备,但是当我发送消息时,我无法在设备上接收它.以下是我注册时收到的一些消息GCM:

03-05 12:18:09.200: E/GCMRegistrar(1008): internal error: retry receiver class not set yet
03-05 12:18:09.500: E/URL(1008): > http://10.0.2.2/gcm_server_php/register.php
03-05 12:18:09.960: D/dalvikvm(1008): GC_CONCURRENT freed 248K, 11% free 5975K/6663K, paused 14ms+7ms
03-05 12:18:15.040: V/GCMRegistrar(1008): Setting registeredOnServer status as true until 2013-03-12 12:18:15.041
03-05 12:18:15.160: V/GCMBaseIntentService(1008): Releasing wakelock
03-05 12:23:03.830: V/GCMRegistrar(1008): Unregistering receiver
03-05 12:23:03.830: E/UnRegister Receiver Error(1008): > Receiver not registered: com.google.android.gcm.GCMBroadcastReceiver@40ff0d88
Run Code Online (Sandbox Code Playgroud)

android google-cloud-messaging

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

Nexus存储库使用maven命令上传工件时出现问题

正如你上面提到的,我已经更新了pom

<distributionManagement>

     <repository>
         <id>deployment</id>
         <name>deployment</name>
         <url>http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases</url>
     </repository>

     <snapshotRepository>
         <id>snapshots</id>
         <name>Internal Snapshots</name>
         <url>http://localhost:8080/nexus-webapp-1.9.2/content/repositories/snapshots</url>
     </snapshotRepository>

</distributionManagement>
Run Code Online (Sandbox Code Playgroud)

并且还改变了settings.xml这样的东西

        <server>
            <id>deployment</id>
            <username>deployment</username>
            <password>deployment123</password>
        </server>

        <server>
            <id>snapshots</id>
            <username>deployment</username>
            <password>deployment123</password>
        </server>
Run Code Online (Sandbox Code Playgroud)

但是当我使用mvn deploymaven命令进行部署时,我得到了这样的异常:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project Test: Failed to deploy artifacts: Could not transfer ar
tifact Test:Test:jar:0.0.1 from deployment (http://localhost:8080/nexus-webapp-1.9.2/content/repositories/releases): Failed to transfer file: http://localhost:8080/nexus-
webapp-1.9.2/content/repositories/releases/Test/Test/0.0.1/Test-0.0.1.jar. Return code is: 401 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project Test: F
ailed to …
Run Code Online (Sandbox Code Playgroud)

nexus maven

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

使用addCookie()响应并发送Redirect()

我使用以下代码设置cookie然后重定向.

String level=(String) request.getAttribute("level");

 if(level!=null)
 {
  Cookie cookie=new Cookie("level",level);
  cookie.setMaxAge(-1);
  cookie.setPath("http://localhost:8080/saml");

  response.addCookie(cookie);

  response.sendRedirect("http://?localhost:8080/saml/someservices.jsp");
 }
Run Code Online (Sandbox Code Playgroud)


这段代码工作正常.但我想知道怎么做?因为当jsp引擎解析jsp代码时,它将首先遇到addCookie并发送重定向.它是否尽快添加cookie response.addCookie(cookie);?如果我以相反的方式给它,即首先sendRedirect()然后addCookie()呢?jsp引擎如何看待这个?

cookies servlets

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

自定义游标属性不工作IE浏览器

我为任务使用了自定义光标属性,但它不适用于ie浏览器.我使用了以下代码段.

<html>
<head>
<title>Custom Cursor</title>
<style>
h1{
cursor: url(http://www.franco.it/Images/Lookf.png), auto;
}
</style>
</head>
<body>
<h1>Custom Cursor</h1>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

它适用于Chrome,Firefox和Safari - 除了IE之外的所有内容.有些文章说我应该使用.cur格式,但如何将图像转换为cur?我找不到合适的链接来转换它.

谢谢.

css

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

从字符串中提取细节

我的数据库中有一个字符串和类型 varchar

{"available":"","bind":"0","hours":{"00:00":{"available":"","bind":"0","info":"","notes":"","price":"","promo":"","status":"none"}},"hours_definitions":[{"value":"00:00"}],"info":"","notes":"","price":"100","promo":"","status":"available"}
Run Code Online (Sandbox Code Playgroud)

如何从中提取价格?

php arrays string

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

如何克服 ResourceNotFoundException: Requested resource not found 错误在 Go lang 中?

我是 Go lang 的初学者,我正在尝试使用 AWS 在 Go lang 和 Dynamodb 之间建立连接,并使用 Go lang 编写的 API 在 dynamodb 中插入数据。任何帮助,将不胜感激。

下面是我正在尝试做的代码:

package main
import "fmt"	
import (  
        "github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/aws/credentials"
	"github.com/aws/aws-sdk-go/service/dynamodb"
        "github.com/user/dynamo_connect/data"
    )
func database_init() {
	
        var testCredentials = credentials.NewStaticCredentials("Access_key", "secret_key", "")
	sess, err := session.NewSession()
	svc := dynamodb.New(sess, &aws.Config{
		Region: aws.String("us-east-1"),
		Credentials: testCredentials,
	})
	resp, err := data.UploadForumData(svc)

	if err != nil {
		fmt.Println("An error occurred while writing to the Employee table")
		fmt.Println(err.Error())
	}
	fmt.Println(resp)

    }
func main() {
    database_init()
} …
Run Code Online (Sandbox Code Playgroud)

go amazon-web-services amazon-dynamodb aws-sdk aws-sdk-go

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

如何仅使用CSS创建淡入/淡出效果?

我想只使用CSS淡入和淡出效果.如果我移动或悬停在一个div元素上,那么我需要调用另一个DIV来淡入,然后它会在鼠标离开时淡出agsin.DOM元素调用和效果应该在CSSCSS3.我不能使用javascript和Jquery.

<style> 
#b
{
    width: 200px;
    height: 40px;
    background: red;
    border-radius: 10px;
    text-align: center;
    margin: 35px;
    padding: 30px 0px;
    box-shadow: 2px 4px 10px 2px;
    opacity:0;
    color: white;
    font: 20px bold;
}
#a
{
    width: 200px;
    height: 40px;
    background: rgb(156, 155, 155);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    margin: 35px;
    padding: 30px 0px;
    box-shadow: 2px 4px 10px 2px;
    color: white;
    font: 20px bold;
}

#a:hover + #b { 
    animation:myfirst 1s;
    -webkit-animation:first 1s;
    opacity:1;
                }

@keyframes first
{ …
Run Code Online (Sandbox Code Playgroud)

css css3

0
推荐指数
1
解决办法
4852
查看次数

是否有基于变量自动重新排序代码语句的机制?

如果您有一个变量X和Y并且您将此代码应用于它们:

int x = 10;
int y = 0;
x++;
y = x;
out(y);
Run Code Online (Sandbox Code Playgroud)

然后代码的顺序对输出至关重要.

我的问题:是否有一个关键字让计算机按特定顺序运行代码,具体取决于变量?

selOrder为了这个例子而编写的关键字.它获得一个布尔值,并确定首先执行哪一行.

example:
{
      int x = 10;
      int y = 0;
      bool order = true;
      selOrder(order)
      {
          x++;
      }
      {
          y = x;
      }
      out(y);
}
Run Code Online (Sandbox Code Playgroud)

出:11

这个例子非常荒谬,它让这个问题看起来很可悲,但我完全认真,尽管在这个例子中这个关键词是没用的.我偶然发现了许多代码方案,它可能非常漂亮.

c#

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