小编Nat*_*pos的帖子

汇编的文本编辑器

我现在正在开发Linux下的Assembly,但我喜欢在具有语法高亮功能的编辑器上进行开发.然后我想知道什么是最好的汇编(具有语法高亮).

linux assembly syntax-highlighting text-editor editor

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

如何使用与Gingerbread和Froyo一起使用的ICS UI创建Android应用程序?

Hacker News beta这样的应用程序如何在他们的应用程序上使用Ice Cream Sandwich 4.0 UI,并且在2.3 Gingerbread和2.2 Froyo上没有任何问题?我想创建应该在4.0上运行的应用程序,并具有这样的向后兼容性,但是如何做到这一点?

android backwards-compatibility

8
推荐指数
2
解决办法
3017
查看次数

如何为Dart创建库?

如何使用Dart创建库?

我想开始将我创建的一些JavaScript(和其他语言)库移植到Dart.

dart dartium

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

使用GCC构建Linux可执行文件

我正在使用Linux Ubuntu Intrepid Ibex并使用GCC编译C++文件,但是当我编译时,gcc生成a.out文件,即可执行文件,但我如何制作Linux可执行文件?谢谢!

c++ linux ubuntu executable gcc

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

将字符串拆分为数组

我想拆分字符串并构造数组.我尝试了下面的代码:

myString="first column:second column:third column"
set -A myArray `echo $myString | awk 'BEGIN{FS=":"}{for (i=1; i<=NF; i++) print $i}'`
# Following is just to make sure that array is constructed properly
i=0
while [ $i -lt ${#myArray[@]} ]
do
echo "Element $i:${myArray[$i]}"
(( i=i+1 ))
done
exit 0

It produces the following result:
Element 0:first
Element 1:column
Element 2:second
Element 3:column
Element 4:third
Element 5:column

This is not what I want it to be. When I construct the array, I want …
Run Code Online (Sandbox Code Playgroud)

unix bash

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

创建一个简单的旧学校控制台模拟器

我现在梦想开始一个旧学校游戏机模拟器项目(Atari,Colecovision ......),但在开始之前我需要了解一些事情:

  • 哪个是最简单的控制台来创建它的模拟器?
  • 在哪里可以找到一些好的资源来构建它?
  • 哪个是构建模拟器的最佳语言?

谢谢.

emulation

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

在TRadioGroup中选择了哪个单选按钮?

正如你可以在我的问题的历史看,我正在开发一个电子图书管理员,这将是开源的,我会释放它在10天左右,但我有一个TRadioGroup,你可以看到:
TRadioGroup用在我的格式为:http: //img85.imageshack.us/img85/1830/radiogroup.png

而且我想将一些东西存储在一个变量(需要是一个Integer)中,并与之"链接" TRadioGroup.

我需要做这样的if功能:

TRadioButton的标题 - >需要存储在变量中的数字

适合2x宽度 - 默认 - > 0
适合2xHeight - > 1
适合宽度 - > 2
适合高度 - > 3

但我只是用一个TRadioGroupTRadioButton一个时间,比我以前用过的20倍以上C#不同.然后我想知道我需要把什么放在if函数上,因为它会做什么我已经知道怎么做了:

var
  num: Integer;

begin
  if(TRadioButton1 checked?)
  begin
    num := 0;
  end;
end.
Run Code Online (Sandbox Code Playgroud)

我需要把它放在if函数的括号内?

PS:我将把这些学分放在帮助我完成这个小项目的人的计划中.

delphi integer radio-group lazarus radio-button

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

正则表达式选择包含HTML类的整行

我正在使用TextMate来编辑我正在做的项目(HTML文件),并且我已经<div>为该class=navigation属性分配了一些标签,但是我需要更改这个<div>以用于我正在计划的新设计,但它们很多(如果我搜索,大约47个结果class=navigation).

所以我需要一个正则表达式来匹配找到这个属性的整行,但是它是什么?

html regex textmate

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

解析Twitter API created_at

我想解析Twitter API created_at值(存储到变量中),如下所示:

Sun Aug 28 19:31:16 +0000 2011

进入:

8月28日19:31

但我需要它是时区意识.关于如何使用它的任何想法php


在使用John Flatness建议的第二个选项后,我收到了这个错误:

Fatal error:  Uncaught exception 'Exception' with message 'DateTime::__construct() [<a href='datetime.--construct'>datetime.--construct</a>]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Sao_Paulo' for 'BRT/-3.0/no DST' …
Run Code Online (Sandbox Code Playgroud)

php twitter datetime

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

关于RSS项目描述的图像

我开始使用RSS开发,我的新网站,但我想知道是否有任何方法将图像放在项目的描述上,如下所示:

<item>
    <title>Image Test</title>         
    <link>http://testin.test</link>
    <description>Some text...
    <img src="image.jpg"></description>
</item>
Run Code Online (Sandbox Code Playgroud)

如果可能的话,哪些读者将能够清晰和完美地将其可视化.

xml rss image

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