我正在尝试删除Drupal上的页面节点的标题.我有这个页面:

我希望它看起来像这样:

如您所见,我希望删除标题,但仅限于分类术语.如果我尝试使用CSS擦除它,我会删除页面标题,所以我想使用这个模块,它允许管理员自动生成节点标题并隐藏它.
我去结构 - >输入内容 - >我的类型内容,然后编辑它.我激活模块,我想根据节点类别自动生成标题.我认为它应该是这样的,但它不起作用......

有什么想法吗?
编辑:对不起,我忘了说:是的,当我激活模块,使用它,并选择类别作为自动生成的标题,它的工作原理.但它并没有隐藏标题......
它也启动了这个错误:

好吧,这个问题似乎很容易解决,但它让我不知所措......
我在Magento Web上有一些类别,每个类别都有一些产品.我希望它们显示为4列计数,但它总是显示为3列计数,如下所示:

我试过这个:在app/desing/frontend/default/mytheme/layout/catalog.xml上,我修改了这段代码:
<!--
Category default layout
-->
<catalog_category_default translate="label">
<label>Catalog Category (Non-Anchor)</label>
<reference name="left">
<block type="catalog/navigation" name="catalog.leftnav" after="currency" template="catalog/navigation/left.phtml"/>
</reference>
<reference name="content">
<block type="catalog/category_view" name="category.products" template="catalog/category/view.phtml">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml">
<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml">
<block type="page/html_pager" name="product_list_toolbar_pager"/>
<!-- The following code shows how to set your own pager increments -->
<!--
<action method="setDefaultListPerPage"><limit>4</limit></action>
<action method="setDefaultGridPerPage"><limit>9</limit></action>
<action method="addPagerLimit"><mode>list</mode><limit>2</limit></action>
<action method="addPagerLimit"><mode>list</mode><limit>4</limit></action>
<action method="addPagerLimit"><mode>list</mode><limit>6</limit></action>
<action method="addPagerLimit"><mode>list</mode><limit>8</limit></action>
<action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
-->
</block>
<action method="setColumnCount"><columns>4</columns></action>
<action method="addColumnCountLayoutDepend"><layout>empty</layout><count>6</count></action>
<action method="addColumnCountLayoutDepend"><layout>one_column</layout><count>5</count></action>
<action method="addColumnCountLayoutDepend"><layout>two_columns_left</layout><count>4</count></action> …Run Code Online (Sandbox Code Playgroud) 我正在尝试管理手机和另一个蓝牙设备之间的连接.我正在使用java Android做这一切.这是我用于使用我的设备连接套接字的代码:
首先,我找到蓝牙设备,然后创建套接字:
BluetoothDevice btNonin = null;
for (BluetoothDevice device : pairedDevices)
{
if (device.getName().contains("Nonin"))
{
// We found the device
exito = true;
try
{
// We create the socket
Method m = device.getClass().getMethod("createRfcommSocket", new Class[] {int.class});
socket = (BluetoothSocket) m.invoke(device, 1);
socket.connect();
}
catch (Exception e)
{
Dialogs.showInfoDialog(NONIN_OFF, this);
}
}
}
Run Code Online (Sandbox Code Playgroud)
我创建数据字节,我希望远程蓝牙接收使用一些代码将ASCII转换为字节:
String[] parts = mensaje.split(" ");
String res = "";
if(parts != null && parts.length > 0)
{
for (String s : parts)
{
if (s.length() …Run Code Online (Sandbox Code Playgroud) 我有一个看起来像这样的列表:
<dl>
<dt>Something</dt>
<dd><div>Div with an image</div></dd>
<dt>Second</dt>
<dd><div>Second Div</div></dd>
</dl>
Run Code Online (Sandbox Code Playgroud)
当你在页面上运行它时,它看起来是垂直的,我希望它看起来是水平的。代码如下所示:
Something
Div with an image
Second
Second Div
Run Code Online (Sandbox Code Playgroud)
但我想要这样的东西:
Something Second
Div with an image Second Div
Run Code Online (Sandbox Code Playgroud)
我无法更改 dl 和 dt 元素顺序,因为它是我无法修改的代码的一部分。但是它们都用类或 id 标记,所以我可以修改 CSS。
那么,有没有什么办法可以让列表在这种结构下看起来是水平的呢?
我想知道如何创建一个类似于此的滚动:

我真的很想能够建立一个这样的,我不确定这个是什么,以及如何实现它.我一直在寻找,但我找不到任何信息......所以任何教程,指南或线索都会非常感激.
我正在用 C# 开发一个应用程序,并且开发了一个用相机做一些事情的库Aforge。要点之一是简单地捕获网络摄像头前面的图像并将其显示在特定的设备上PictureBox:
camera.NewFrame += NewFrame;
private void NewFrame(object sender, NewFrameEventArgs args)
{
Bitmap newFrame = new Bitmap(args.Frame);
args.Frame.Dispose();
PictureBox.FromBitmapImage(newFrame);
newFrame.Dispose();
newFrame = null;
}
Run Code Online (Sandbox Code Playgroud)
我在这里所做的,是获取每一帧并将其绘制到PictureBox.
我的疑问是:
在某些计算机中,这种绘制方式会产生非常高的内存泄漏。相机配置为:640x480,如果更高,内存泄漏会增加。
电脑配置:
Intel i5:内存泄漏至 500Mb
英特尔 i7:无内存泄漏。
Double coeur(没那么强大):没有那么多内存泄漏。
编辑:
public static void FromBitmapImage(this Image image, Bitmap bitmap)
{
BitmapImage bitmapImage = new BitmapImage();
using (MemoryStream memoryStream = new MemoryStream())
{
bitmap.Save(memoryStream, ImageFormat.Bmp);
memoryStream.Position = 0;
bitmapImage.BeginInit();
bitmapImage.StreamSource = memoryStream;
bitmapImage.CacheOption = …Run Code Online (Sandbox Code Playgroud) 我有以下内容CustomAction:
<CustomAction Id="CopyToSystem32" ExeCommand="copy /y 64bits.txt C:\Windows\System32" Directory="INSTALLFOLDER" Impersonate="no" Execute="deferred" Return="asyncWait" />
<InstallExecuteSequence>
<Custom Action="CopyToSystem32" After="InstallFiles" >VersionNT64</Custom>
</InstallExecuteSequence>
Run Code Online (Sandbox Code Playgroud)
因此,当它检测到64位操作系统时,它会将文件复制到System32文件夹.如果我用.bat文件执行它,它工作正常.但我更喜欢它是一个批处理命令.
日志说明如下:
MSI (s) (74:AC) [10:08:33:473]: Executing op: ActionStart(Name=CopyToSystem32,,)
Action 10:08:33: CopyToSystem32.
MSI (s) (74:AC) [10:08:33:473]: Executing op: CustomActionSchedule(Action=CopyToSystem32,ActionType=3234,Source=C:\Program Files (x86)\SetupProject\,Target=copy /y 64bits.txt C:\Windows\System32,)
MSI (s) (74:AC) [10:08:33:474]: Executing op: ActionStart(Name=RegisterProduct,Description=Registering product,Template=[1])
Action 10:08:33: RegisterProduct. Registering product
MSI (s) (74:AC) [10:08:33:474]: Executing op: ChangeMedia(,MediaPrompt=Please insert the disk: ,MediaCabinet=1\cab1.cab,BytesPerTick=0,CopierType=1,,,SignatureRequired=0,,,IsFirstPhysicalMedia=1)
MSI (s) (74:AC) [10:08:33:474]: Executing op: DatabaseCopy(DatabasePath=C:\Windows\Installer\32ea43.msi,ProductCode={0C013216-61FB-4283-AF0A- 6CB264019F5B},,,)
MSI (s) (74:AC) [10:08:33:474]: …Run Code Online (Sandbox Code Playgroud) 我正在连接到蓝牙设备,它可以回答我发送的一些参数,但作为响应,我从这样的套接字中读取:
String data = dIn.readLine();
Run Code Online (Sandbox Code Playgroud)
其中dIn是:
DataInputStream dIn = new DataInputStream(socket.getInputStream());
Run Code Online (Sandbox Code Playgroud)
问题是我收到了数据,但它是一个字符串读取的字节数组.如何将包含我的字节数组的字符串转换为具有正确十六进制值的String?
先感谢您.
我正在尝试开发一个相应ProgressBar填充到我手动设置的值.例如,我有这个ProgressBar:
<ProgressBar Height="33" HorizontalAlignment="Left" Name="progressBar1" VerticalAlignment="Top" Width="285" />
Run Code Online (Sandbox Code Playgroud)
我有一个按钮,ProgressBar每按一次就会增加10个单位的值,如下所示:
private void button1_Click(object sender, RoutedEventArgs e)
{
progressBar1.Value += 10;
}
Run Code Online (Sandbox Code Playgroud)
我希望每次点击它时都会对该值进行动画处理.我试过这个:
Duration duration = new Duration(TimeSpan.FromSeconds(1));
DoubleAnimation doubleanimation = new DoubleAnimation(200.0, duration);
progressBar1.BeginAnimation(ProgressBar.ValueProperty, doubleanimation);
Run Code Online (Sandbox Code Playgroud)
但它从0到100的值ProgressBar.如何告诉动画停止特定值,而不是100%?
我正在尝试以LayoutParams.BELOW编程方式设置.这是我的代码:
RelativeLayout layout = new RelativeLayout(this.getActivity());
layout.setLayoutParams(new RelativeLayout.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));
layout.setBackgroundColor(Color.parseColor("#CCCDCDCD"));
ImageView imageView = new ImageView(this.getActivity());
RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.CENTER_IN_PARENT);
imageView.setLayoutParams(params);
imageView.setBackgroundResource(R.drawable.create_template);
AnimationDrawable frameAnimation = (AnimationDrawable) imageView.getBackground();
if (frameAnimation != null) {
frameAnimation.start();
}
TextView textView = new TextView(this.getActivity());
params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
params.addRule(RelativeLayout.BELOW, imageView.getId());
textView.setLayoutParams(params);
textView.setText("Generating information...");
layout.addView(imageView);
layout.addView(textView);
return layout;
Run Code Online (Sandbox Code Playgroud)
但它没有正确定位.有什么想法没有定位好吗?