internal

How to use internal links with wildcard items in Sitecore?

我只是一个虾纸丫 提交于 2019-12-22 06:33:31
问题 I have a multiple site Sitecore solution. All the sites share a product range which is stored inside a 'Shared data' node that sits at the same level as the root nodes of the sites. The individual product pages on a site use a wildcard item to lookup the product based on the last part of the URL. This means that we can't use internal links in the rich text editor to point to the product page on any of the sites because the product item does not have a specific site URL. Does anyone know of a

Android get images from sdcard

允我心安 提交于 2019-12-21 05:35:16
问题 I am using a code which is listing all the images from my device...and I'm trying to figure it out how to get images only from a specific folder, not all the images. Here is the code I'm using : ArrayList<Bitmap> images = new ArrayList<Bitmap>(); String[] projection = {MediaStore.Images.Thumbnails.DATA}; Uri uri = Uri.parse("content://media/external/images/media"); cursor = managedQuery( uri, projection, null, null, null); //cursor = managedQuery( MediaStore.Images.Media.EXTERNAL_CONTENT_URI,

Static functions declared in “C” header files

痞子三分冷 提交于 2019-12-20 12:14:09
问题 For me it's a rule to define and declare static functions inside source files, I mean .c files. However in very rare situations I saw people declaring it in the header file. Since static functions have internal linkage we need to define it in every file we include the header file where the function is declared. This looks pretty odd and far from what we usually want when declaring something as static. On the other hand if someone naive tries to use that function without defining it the

How to do internal interfaces visible for Moq?

时间秒杀一切 提交于 2019-12-20 09:57:27
问题 I have 3 project in my C# solution. Signatures Structures Tests Signatures has public and internal interfaces. Also it has [assembly: InternalsVisibleTo("Structures")] [assembly: InternalsVisibleTo("Tests")] in AssemblyInfo.cs of. Structures has public and internal classes and [assembly: InternalsVisibleTo("Tests")] in AssemblyInfo.cs of. Tests has next source: <packages> <package id="Moq" version="4.2.1409.1722" targetFramework="net45" /> <package id="NUnit" version="2.6.4" targetFramework=

How do you handle R Data internal to a package?

依然范特西╮ 提交于 2019-12-20 08:54:37
问题 The R package I am developing requires several R data objects, such as pre-computed models and parameters. Currently I have each object in the 'data' directory of the package in individual .RData files. When using the package users can use the "data" function to attach these objects to their environment. The behaviour I would like instead would be that on loading the package the data objects are automatically attached to the internal package environment and not accessible to the user directly

C++ - What can be done with internal compiler errors?

别说谁变了你拦得住时间么 提交于 2019-12-20 06:05:28
问题 I encountered something interesting and annoying while programming a matrix class: internal compiler error. I was willing to invoke a sister constructor in the class called Matrix4<T>::Matrix4(Matrix4<T>&&) . This is the piece of code that generates this error: template<typename T> Matrix4(Matrix4&& matrix_) = default; template<typename T> Matrix4<T>::Matrix4(T (&&matrix_)[4][4]): Matrix4({ .data = { {matrix_[0][0], matrix_[0][1], matrix_[0][2], matrix_[0][3]}, {matrix_[1][0], matrix_[1][1],

Problem facing in reading file from Internal memory of android

一笑奈何 提交于 2019-12-20 02:57:12
问题 I am facing the problem with openfileinput class. First thing is , I am saving my username and password in the file.On sucessful login, I will be saving and moving to internal home screen.The problem is when I logout or close the application, and reopen the application I am able to read the data but when I convert it to String I get Out put as AAAAAA(each as 4 bytes). On succesful login on moving to Home screen , I am able to read it properly.I get this output before login. This is something

c#, Internal, and Reflection

五迷三道 提交于 2019-12-19 11:24:13
问题 Is there a way to execute "internal" code via reflection? Here is an example program: using System; using System.Reflection; namespace ReflectionInternalTest { class Program { static void Main(string[] args) { Assembly asm = Assembly.GetExecutingAssembly(); // Call normally new TestClass(); // Call with Reflection asm.CreateInstance("ReflectionInternalTest.TestClass", false, BindingFlags.Default | BindingFlags.CreateInstance, null, null, null, null); // Pause Console.ReadLine(); } } class

Access to internal classes from another project

二次信任 提交于 2019-12-19 05:42:27
问题 I'm wondering if it's possible to access internal class variables from other project in c#. I know that is impossible in regular use, I explain it below. I have one project (P1 [class library]) containing those classes... internal class Settings { public static long size {get;set;} public static DoSomethingInternalOnly() { } } public class Program { public static Main() { } } ... and another one (P2) containing: public class Program { public static Main() { //P1.CopyOfSettings.size = 2048; ??

Basic internal links don't work in honeycomb app?

给你一囗甜甜゛ 提交于 2019-12-19 05:21:47
问题 Internal links do not seem to be working in Android version 3 in my published app. My app targets Froyo at this point. The app works fine on tons of phones, but my new Galaxy Tab can't handle the internal links!! It can handle them within an html page, ie: <a href="#faq">Go to faq</a> <!-- goes to FAQ link --> Goes to the tag lower on the same page: <a name="faq" id="faq"></a> However from a another html file, ie the index page, the link no longer works in Honeycomb: <a href="mainpage.html