C# assemblies, whats in an assembly?

Namespaces affect name resolution only. Namespaces do not imply any sort of storage, nor do namespaces determine which DLLs contain your code. Namespaces allow you to group related things together under a logical name even though they may physically reside in different DLLs. An assembly is basically just a DLL or EXE file. It contains … Read more

Static functions declared in “C” header files

First I’d like to clarify my understanding of the situation you describe: The header contains (only) a static function declaration while the C file contains the definition, i.e. the function’s source code. For example some.h: static void f(); // potentially more declarations some.c: #include “some.h” static void f() { printf(“Hello world\n”); } // more code, … Read more

Hiding namespaces containing only internal types in a class library?

It depends on how you’re referencing your class library: If you have the class library project contained within your solution and use a project reference, you’ll always see that empty namespace via Intellisense. If you’re referencing a compiled dll of your class library, you won’t see the namespace popping up in intellisense, provided it contains … Read more

How do I read the file content from the Internal storage – Android App

Take a look this how to use storages in android http://developer.android.com/guide/topics/data/data-storage.html#filesInternal To read data from internal storage you need your app files folder and read content from here String yourFilePath = context.getFilesDir() + “https://stackoverflow.com/” + “hello.txt”; File yourFile = new File( yourFilePath ); Also you can use this approach FileInputStream fis = context.openFileInput(“hello.txt”); InputStreamReader isr … Read more

Accessing functions bound to event handlers with jQuery

jQuery 1.7 has stopped exposing the events in the regular data() function. You can still get them like this: var elem = $(‘#someid’)[0]; var data = jQuery.hasData( elem ) && jQuery._data( elem ); console.log(data.events); Please note, that this only works for Events which have been bound using jQuery. AFAIK you there is no way to … Read more

Using internal sun classes with javac

I have found the answer myself. When javac is compiling code it doesn’t link against rt.jar by default. Instead it uses special symbol file lib/ct.sym with class stubs. Surprisingly this file contains many but not all of internal sun classes. In my case one of those more-internal-than-usual classes was sun.awt.event.IgnorePaintEvent. And the answer to my … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)