Cosmos
A star rating control for iOS / Swift
As a result of starting to use c# more often, I decided to start using the COSMOS development kit. A link to the project can be found here.
However, I have read a tutorial of how to use COSMOS with vs 2013. Everything was going well until the installer gave me the following error:
Nothing like COSMOS and other self-setup dev kits EVER work for me even though I follow the exact instructions set out by the developers!
Does anyone know how to fix this error?
EDIT: I am on Windows 7 SP1, I use Visual Studio 2013 (if vs 2013 wasn't clear enough) and I have all the required prerequisites functioning correctly (if 'I follow the exact instructions set by the developer' wasn't clear enough). I have a 64-bit version of both Windows and Visual Studio, as surprising as this may seem, running on a 64-bit machine. Please do not down vote this question because of lack of information - The picture and this paragraph is all the information and data I have about my environment and development with COSMOS.
Source: (StackOverflow)
So I installed Cosmos and opened visual studio 2010 (I'm using the Mile stone 4 version of Cosmos which worked on my laptop) and I click "Cosmos Boot" and it opened and told me "the referenced components Cosmos.Sys, Cosmos.Kernel, Cosmos.Compiler.Build are not yet built or cant be found" any one know why?
Source: (StackOverflow)
When attempting to compile the default code in a Cosmos OS project, it throws this error. I have not made any changes to the project.
1>------ Build started: Project: CosmosKernel1, Configuration: Debug Any CPU ------
1> CosmosKernel1 -> c:\users[omitted]\documents\visual studio 2013\Projects\CosmosKernel1\CosmosKernel1\bin\Debug\CosmosKernel1.dll
2>------ Build started: Project: CosmosKernel1Boot, Configuration: Debug x86 ------
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : Error occurred while invoking IL2CPU.
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : Exception: System.NullReferenceException: Object reference not set to an instance of an object.
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Microsoft.Samples.Debugging.CorSymbolStore.SymbolAccess.GetReaderForFile(SymbolFormat symFormat, String pathModule, String searchPath) in c:\Data\Sources\OpenSource\Cosmos\source\MDbg4\src\debugger\corapi\SymAccess.cs:line 133
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Microsoft.Samples.Debugging.CorSymbolStore.SymbolAccess.GetReaderForFile(String pathModule, String searchPath) in c:\Data\Sources\OpenSource\Cosmos\source\MDbg4\src\debugger\corapi\SymAccess.cs:line 106
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Microsoft.Samples.Debugging.CorSymbolStore.SymbolAccess.GetReaderForFile(String pathModule) in c:\Data\Sources\OpenSource\Cosmos\source\MDbg4\src\debugger\corapi\SymAccess.cs:line 99
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Cosmos.Debug.Common.DebugInfo.GetSequencePoints(String aAsmPathname, Int32 aMethodToken, Boolean aFilterHiddenLines) in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.Debug.Common\DebugInfo.cs:line 231
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Cosmos.Debug.Common.DebugInfo.GetSequencePoints(MethodBase aMethod, Boolean aFilterHiddenLines) in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.Debug.Common\DebugInfo.cs:line 226
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Cosmos.IL2CPU.AppAssembler.MethodBegin(MethodInfo aMethod) in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\AppAssembler.cs:line 167
2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Cosmos.IL2CPU.AppAssembler.ProcessMethod(MethodInfo aMethod, List1 aOpCodes) in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\AppAssembler.cs:line 462 2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Cosmos.IL2CPU.ILScanner.Assemble() in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs:line 929 2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\ILScanner.cs:line 251 2>C:\Program Files\MSBuild\Cosmos\Cosmos.targets(31,5): error : at Cosmos.IL2CPU.CompilerEngine.Execute() in c:\Data\Sources\OpenSource\Cosmos\source\Cosmos.IL2CPU\CompilerEngine.cs:line 238 2> Loaded : DebugEnabled 2> Loaded : StackCorruptionDetectionEnabled 2> Loaded : DebugMode 2> Loaded : TraceAssemblies 2> Loaded : DebugCom 2> Loaded : UseNAsm 2> Loaded : OutputFilename 2> Loaded : EnableLogging 2> Loaded : EmitDebugSymbols 2> Loaded : IgnoreDebugStubAttribute 2> Loaded : References 2> Message: Executing IL2CPU on assembly 2> Message: Plug found: 'Microsoft.Win32.RegistryKey' 2> Message: Plug found: 'System.Array' 2> Message: Plug found: 'System.Byte' 2> Message: Plug found: 'System.Char' 2> Message: Plug found: 'System.Delegate' 2> Message: Plug found: 'System.Double' 2> Message: Plug found: 'System.Drawing.Color' 2> Message: Plug found: 'System.Drawing.SR' 2> Message: Plug found: 'System.Enum' 2> Message: Plug found: 'System.Environment' 2> Message: Plug found: 'System.GC' 2> Message: Plug found: 'System.Globalization.CultureInfo' 2> Message: Plug found: 'System.Globalization.NumberFormatInfo' 2> Message: Plug found: 'System.Int16' 2> Message: Plug found: 'System.Int32' 2> Message: Plug found: 'System.Int64' 2> Message: Plug found: 'System.IntPtr' 2> Message: Plug found: 'System.Net.IPAddress' 2> Message: Plug found: 'System.Net.SocketAddress' 2> Message: Plug found: 'System.Number' 2> Message: Plug found: 'System.Object' 2> Message: Plug found: 'System.Resources.ResourceManager' 2> Message: Plug found: 'System.RuntimeType' 2> Message: Plug found: 'System.RuntimeType+RuntimeTypeCache' 2> Message: Plug found: 'System.RuntimeTypeHandle' 2> Message: Plug found: 'System.Security.CodeAccessSecurityEngine' 2> Message: Plug found: 'System.Runtime.CompilerServices.RuntimeHelpers' 2> Message: Plug found: 'System.Runtime.InteropServices.SafeHandle' 2> Message: Plug found: 'System.SByte' 2> Message: Plug found: 'System.Security.Cryptography.Utils' 2> Message: Plug found: 'System.Single' 2> Message: Plug found: 'System.SR' 2> Message: Plug found: 'System.String' 2> Message: Plug found: 'System.Threading.Interlocked' 2> Message: Plug found: 'System.UInt16' 2> Message: Plug found: 'System.UInt32' 2> Message: Plug found: 'System.UInt64' 2> Message: Plug found: 'System.Diagnostics.Debugger' 2> Message: Plug found: 'System.Math' 2> Message: Plug found: 'System.Buffer' 2> Message: Plug found: 'System.EventHandler' 2> Message: Plug found: 'System.Exception' 2> Message: Plug found: 'System.MulticastDelegate' 2> Message: Plug found: 'System.OutOfMemoryException' 2> Message: Plug found: 'Cosmos.Core.CPU' 2> Message: Plug found: 'Cosmos.IL2CPU.GCImplementation' 2> Message: Plug found: 'Cosmos.Core.IOPortBase' 2> Message: Plug found: 'Cosmos.Debug.Kernel.Debugger' 2> Message: Plug found: 'System.Collections.Generic.Dictionary2[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]'
2> Message: Plug found: 'System.Random'
2> Message: Plug found: 'System.Text.DecoderFallback'
2> Message: Plug found: 'System.Text.EncoderFallback'
2> Message: Plug found: 'System.Text.ASCIIEncoding'
2> Message: Plug found: 'System.Console'
2> Message: Plug found: 'System.Text.InternalDecoderBestFitFallbackBuffer'
2> Message: Plug found: 'System.Threading.Monitor'
2> Message: Plug found: 'System.Type'
2> Detecting fields for type 'Cosmos.Debug.Common.AssemblyFile'
2> Message: Loaded assemblies:
2> Message: C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\IL2CPU.exe
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.IL2CPU.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Build.Common.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Debug.Common.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Assembler.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.System.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Core.Plugs.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.IL2CPU.Plugs.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Common.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.Debug.Kernel.Plugs.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Kernel\Cosmos.System.Plugs.dll
2> Message: c:\users[omitted]\documents\visual studio 2013\Projects\CosmosKernel1\CosmosKernel1\bin\Debug\CosmosKernel1.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Mono.Cecil.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\System.Data.SQLite.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_32\System.Transactions\v4.0_4.0.0.0__b77a5c561934e089\System.Transactions.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\DapperExtensions.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\SQLinq.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\XSC.exe
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\XSharp.Nasm.dll
2> Message: C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Core.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.Debug.Kernel.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\Cosmos.HAL.dll
2> Message: C:\Users[omitted]\AppData\Roaming\Cosmos User Kit\Build\IL2CPU\corapi.dll
2> Errorred
2> IL2CPU invoked with DebugMode='Source', DebugEnabled='True', TraceAssemblies='{NULL}', IgnoreDebugStub='False'
2> IL2CPU task took 00:00:02.1199734
2>Done building project "CosmosKernel1Boot.Cosmos" -- FAILED.
2>
2>Build FAILED.
Build has been canceled.
It seems like Cosmos just can't see the compiler. How do I make it see it?
Source: (StackOverflow)
I'm working on some commands for the OS. One of them includes updating the time, but I can't figure out how. I can get the current time fine enough using Cosmos.Hardware.RTC.hour and so on, but I have no clue how to update it.
Source: (StackOverflow)
I've just installed Cosmos and tried to run the test program given by default. That's the code:
using System;
using System.Collections.Generic;
using System.Text;
using Sys = Cosmos.System;
namespace CosmosKernel2
{
public class Kernel : Sys.Kernel
{
protected override void BeforeRun()
{
Console.WriteLine("Cosmos booted successfully. Type a line of text to get it echoed back.");
}
protected override void Run()
{
Console.Write("Input: ");
var input = Console.ReadLine();
Console.Write("Text typed: ");
Console.WriteLine(input);
}
}
}
When I try to compile it, it says:
Error 8 Plug needed. System.Void System.Threading.Monitor.Exit(System.Object)
at Cosmos.IL2CPU.ILScanner.ScanMethod(MethodBase aMethod, Boolean aIsPlug) in c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 663
at Cosmos.IL2CPU.ILScanner.ScanQueue() in c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 779
at Cosmos.IL2CPU.ILScanner.Execute(MethodBase aStartMethod) in c:\Data\Sources\Cosmos\source2\IL2CPU\Cosmos.IL2CPU\ILScanner.cs:line 284
at Cosmos.Build.MSBuild.IL2CPUTask.Execute() in c:\Data\Sources\Cosmos\source2\Build\Cosmos.Build.MSBuild\IL2CPUTask.cs:line 239 C:\Program Files (x86)\MSBuild\Cosmos\Cosmos.targets 32 10 CosmosKernel2Boot
I'm using Visual Studio 2010, I have installed all requirements listed here: http://cosmos.codeplex.com/releases/view/123476
Thank you in advance!
Source: (StackOverflow)
I just started developing an operating system using cosmos for visual studio (in c#)
A lot of people said how to shut it down, and I tried every method but this one gives some weird error I simply cannot understand!
this is the code I am using to shutdown the os:
this.stop()
Cosmos.Core.Bootstrap.CPU.halt();
but this is the error I receive when building:
Error occurred while invoking IL2CPU
Exception: System.Exception: Assembly 'CosmosKernel7' is in ring User(3). It references assembly 'Cosmos.Core' which is in ring Core(0), but this is not allowed!
I have no idea what that means....
Can someone help me fix this?
thank you!
Source: (StackOverflow)
I'm trying to get all the historic information about a sensor of Fi Ware.
I've seen that Orion uses Cygnus to store historics in Cosmos. Is that information accesible or is it only possible to use IDAS to get it?
Where could I get more info about this?
Source: (StackOverflow)
I have been using Cosmos in Microsoft Visual C# 2008 to make primitive, TUI, operating systems. I wonder how to make a GUI in Cosmos. I know that it's possible, but I just want to know how to make it. Constructive criticism appreciated, insults not! Please reply with code (and comments in the code), because I am an absolute beginner, with only some knowledge of basic c# commands. Thanks!
Source: (StackOverflow)
I have an issue related to ngsi2cosmos data flow. Everything works fine when persisting the information received in Orion into the public instance of Cosmos, but the destination folder and file name are both "null".
Simple test as follows:
- I create of a brand new NGSIEntity with these headers added: Fiware-Service: myservice & Fiware-ServicePath: /my
- I add a new subscription with Cygnus as the reference endpoint.
- I send an update to previously created NGSIEntity
When I check my user space in Cosmos I check that the following route has been created: /user/myuser/myservice/null/null.txt
File content is OK, every updated info in Orion has been correctly sinked into it. The problem is with folder and file names.
I can't make it work properly. Isn't it supposed to get entityId and entityType for folder and file naming?
Component versions:
- Orion version: contextBroker-0.19.0-1.x86_64
- Cygnus version: cygnus-0.5-91.g3eb100e.x86_64
- Cosmos: global instance
Cygnus conf file:
cygnusagent.sources = http-source
cygnusagent.sinks = hdfs-sink
cygnusagent.channels = hdfs-channel
#=============================================
# source configuration
# channel name where to write the notification events
cygnusagent.sources.http-source.channels = hdfs-channel
# source class, must not be changed
cygnusagent.sources.http-source.type = org.apache.flume.source.http.HTTPSource
# listening port the Flume source will use for receiving incoming notifications
cygnusagent.sources.http-source.port = 5050
# Flume handler that will parse the notifications, must not be changed
cygnusagent.sources.http-source.handler = es.tid.fiware.fiwareconnectors.cygnus.handlers.OrionRestHandler
# URL target
cygnusagent.sources.http-source.handler.notification_target = /notify
# Default organization (organization semantic depend on the persistence sink)
cygnusagent.sources.http-source.handler.default_organization = org42
# Number of channel re-injection retries before a Flume event is definitely discarded
cygnusagent.sources.http-source.handler.events_ttl = 10
# Management interface port (FIXME: temporal location for this parameter)
cygnusagent.sources.http-source.handler.management_port = 8081
# Source interceptors, do not change
cygnusagent.sources.http-source.interceptors = ts
# Timestamp interceptor, do not change
cygnusagent.sources.http-source.interceptors.ts.type = timestamp
# Destination extractor interceptor, do not change
cygnusagent.sources.http-source.interceptors.de.type = es.tid.fiware.fiwreconnectors.cygnus.interceptors.DestinationExtractor$Builder
# Matching table for the destination extractor interceptor, do not change
cygnusagent.sources.http-source.interceptors.de.matching_table = matching_table.conf
# ============================================
# OrionHDFSSink configuration
# channel name from where to read notification events
cygnusagent.sinks.hdfs-sink.channel = hdfs-channel
# sink class, must not be changed
cygnusagent.sinks.hdfs-sink.type = es.tid.fiware.fiwareconnectors.cygnus.sinks.OrionHDFSSink
# Comma-separated list of FQDN/IP address regarding the Cosmos Namenode endpoints
cygnusagent.sinks.hdfs-sink.cosmos_host = 130.206.80.46
# port of the Cosmos service listening for persistence operations; 14000 for httpfs, 50070 for webhdfs and free choice for inifinty
cygnusagent.sinks.hdfs-sink.cosmos_port = 14000
# default username allowed to write in HDFS
cygnusagent.sinks.hdfs-sink.cosmos_default_username = myuser
# default password for the default username
cygnusagent.sinks.hdfs-sink.cosmos_default_password = mypassword
# HDFS backend type (webhdfs, httpfs or infinity)
cygnusagent.sinks.hdfs-sink.hdfs_api = httpfs
# how the attributes are stored, either per row either per column (row, column)
cygnusagent.sinks.hdfs-sink.attr_persistence = column
# prefix for the database and table names, empty if no prefix is desired
cygnusagent.sinks.hdfs-sink.naming_prefix =
# Hive FQDN/IP address of the Hive server
cygnusagent.sinks.hdfs-sink.hive_host = 130.206.80.46
# Hive port for Hive external table provisioning
cygnusagent.sinks.hdfs-sink.hive_port = 10000
#=============================================
# hdfs-channel configuration
# channel type (must not be changed)
cygnusagent.channels.hdfs-channel.type = memory
# capacity of the channel
cygnusagent.channels.hdfs-channel.capacity = 1000
# amount of bytes that can be sent per transaction
cygnusagent.channels.hdfs-channel.transactionCapacity = 100
Source: (StackOverflow)
I am working in a project of SmartAgrifood and I have to use Fispace platform. This platform supports widgets. Currently I store data in Cosmos, and I need read this data from Cosmos using Wirecloud. Is there any example for this?
Source: (StackOverflow)
I am trying to delete a folder in my Cosmos account,
but I get the SafeModeException:
# hadoop fs -rmr /home/<user>/input
rmr: org.apache.hadoop.hdfs.server.namenode.SafeModeException:
Cannot delete /user/<user>/input. Name node is in safe mode
Source: (StackOverflow)
I have very little experience with coding, so that being said I don't know what is causing an exception in my code. The Exception it is giving me is:
System Fault: Invalid Opcode at 0x005A215F
Can i get a little input on what is causing the exception?
public static void Init()
{
var xBoot = new Cosmos.Sys.Boot();
xBoot.Execute();
Console.WriteLine("Welcome, you are running EVE V0.0.1");
Console.WriteLine("Enter Help for a list of commands.");
string UserInput;
string[] IndexCmnd = { "Shutdown", "Reboot", "Help", "End"};
int CmndCtrl = 1;
while (CmndCtrl == 1)
{
UserInput = Console.ReadLine();
foreach (string x in IndexCmnd)
{
if (x.Contains(UserInput))
{
if (UserInput == "Shutdown")
{
Cosmos.Sys.Deboot.ShutDown();
}
if (UserInput == "Reboot")
{
Cosmos.Sys.Deboot.Reboot();
}
if (UserInput == "Help")
{
Console.WriteLine("The commands are:");
Console.WriteLine("Shutdown, Reboot, Help, End");
}
if (UserInput == "End")
{
CmndCtrl = 0;
}
}
else
{
Console.WriteLine("Invalid command! Please try again");
}
}
}
while (true);
}
Source: (StackOverflow)