i am trying to understand ZF2 flow but it's little hard without flow diagram like this one for ZF1:
http://tournasdimitrios1.files.wordpress.com/2011/05/zend-framework-sequence_flowchart.jpg
http://otroblogmas.com/wp-content/uploads/2010/07/zend-framework-flow-diagram.png
alternatively how can I logged my custom events that was dispatched in my app?
There is a Cheat-Sheet available:
German Version of ZF2 Cheat-Sheet (no longer available)
English Version of ZF2 Cheat-Sheet (no longer available)
English Version of ZF2 Cheat-Sheet (Alternative Link)
Please note that those are copyright protected and you may not use or redistribute them anywhere. You may only link to them.
Related
I have an MVC application that uses .NET 4.5. I debug it locally and then I publish it to a remote server. The local copy has validation messages in polish, but the remote one has them in english. I've added <globalization culture="pl-PL" uiCulture="pl-PL" /> hoping it will fix the issue, but outside of switching inputs/displays to localized date and float format, nothing changed.
After that I have manually set in IIS' site setting .NET Globalization both Culture and UI Culture to Polish (Poland) (pl-PL) (both of those were set to neutral for some reason) and made sure that Enable Client Based Culture is set to false. That didn't help either (even after restarting the site).
I've seen this problem mentioned a number of times on the internet, but with no working solutions. Nonetheless, one of the threads that I found about the problem suggested that .NET 4.5 is missing the proper language pack. This would seem like an easy problem to fix, yet I have found it impossible to install any language pack on my remote server.
The remote server is running on Windows Server 2012 (seems to be the english version). When I try to install .NET 4.5 language pack I get an error message saying that .NET 4.5 is already installed.
I also found language pack for .NET 4.5.1, but this one also greets me with an error. This time it's a different error though, it says that my system language is incompatible with the language pack's language and I need to either switch my OS to different language or install a language pack. I checked control panel if it is perhaps possible to switch the OS language, but as expected I can't really do that. As for language packs for Windows Server 2012, there is one, but it isn't available for mere mortals. It's only available for members of Microsoft Partner Network program.
Has anyone had the same problem and resolved it or can anyone give me some clues as to what I'm doing wrong here?
Since the fix was preformed by someone else, I cannot describe the exact process, but I'm reposting the general instructions as an answer.
Contrary to what I believed, it appears that it is possible to change the language of Windows Server 2012 in control panel, it's just the option wasn't very obvious to me. Switching this option makes the system do a big patch which might leave you with no .Net runtimes (and possibly other libraries, system tools). Although you might be forced to reinstall those, thankfully you should be able to do so in the language of your choice. When I have time to test it further, I'll post more info as an answer.
For now, if you have a similar problem,
Try going to "Control panel"
Open "Clock, Language, and Region" section
And then the "Language" subsection
Within this section make sure the language, that you want your .Net (and validation messages) to be in, is there.
If it's not, just add it and follow to the next step:
Click on the "options" hyperlink(like) button (on the right of your language row)
Wait for the "Windows display language" section to load (previously I didn't bother to do so and missed the next option as a result)
Pick the "Download and install language pack" option and follow with the installation (it might take a while)
After doing this, it should be possible to install the correct language pack for your .Net.
Is it possible in monodroid to have Drawables, Layouts, etc... (I mean resources) in a DLL? The problem is that I have created a project that generates a DLL but it doesn't build the project structure a regular android application project builds. Is there any possibility to accomplish this? Where should I move drawables, etc... in a dll?
This is not supported in the current version of Mono for Android. This post on the mailing list provides some more details about it. It's on the roadmap to get added in a future version, but I don't think they've given a timeline on it.
Which API should I use? Which one is more promising? My main goal is to generate ODF documents. It's important for me to support ODF 1.2. And I want to use C++ and CLI bingings.
I use OpenOffice API a lot in an application of me. I made some tests with LibreOffice too and there are some (as far as i see undocumented and unwanted!) differences allready! (OO 3.2 against LO 3.4 and 3.5) Not much but here and there teh LO-Api behaves different from the OO-Api even in the same functionality. This is not important if you only deal with one of them, but it is important when you have to be sure that your App runs with OO and LO.
There is nearly no difference between the two APIs ATM. At least before Libreoffice 4.0 ( which is only in planning with no specific date ) there might be some long necessary API clean-ups. All in all they should be even c++ binary compatible.
Right now you should be able to use the same extensions/code to access both Libreoffice and Openoffice. You should only be careful with all interfaces marked as LibO 3.4 or 3.5 from http://api.libreoffice.org/
I would like for my Win7-x64 dev box to remain in the current locale (pl-PL), but at the same time for whole .NET tools to run in English locale.
I previous releases this could be achieved by not installing a language pack add-on that came up in windows update. This time it did sneak up and I cannot find it in windows update history and appwiz.cpl, or it is installed differently.
Can you tell how to uninstall other than English locales for .NET installation or setup .NET & it's tools to use only English locale?
What I'm NOT interested in (and there are already such answers on SO):
How to setup current process or application locale, within this application (aka. CurrentCulture ). I do want applications I release to use user's current locale.
Change current thread locale. For the same reason as above.
PS. I would like to avoid re-installation of .NET/VS2010 if possible ;)
As far as I know there is no way to get rid of localized messages when you have "localized" version of Windows. Possibly, Windows 7 Ultimate (I am not sure about other versions) should allow changing the whole UI language, and it should do the trick (as this is what CLR uses to determine current locale).
Uninstall the Polish language pack:
Start - Control Panel - Programs and Functions - Microsoft .NET Framework (4 Client Profile) Language Pack PLU - Uninstall
You may need to repeat the uninstallation for each version of .NET Framework that you find there.
For web applications you can put this in the web.config
<configuration>
<system.web>
<globalization uiCulture="en-US" />
I'm looking for a programmatic interface to the Solaris ifconfig(1M) command.
Apparently Linux has the getifaddrs(3) command, but as far as I can tell this has not been ported to Solaris.
Short of attempting to use the code at the link above, is there any way to determine ifconfig(1M)-type data (network interface presence, state, etc.) without forking the system command and parsing the output?
I have an implementation here, IPv4-only based on SIOCGIFCONF ioctl()'s and IP family agnostic version using SIOCGLIFCONF:
http://code.google.com/p/openpgm/source/browse/trunk/openpgm/pgm/getifaddrs.c
Tested on SPARC/Solaris 10 and x86/OpenSolaris 2008.11 & 2009.06, LGPL 2.1 license.
getifaddrs() was recently integrated into the source code for future OpenSolaris & Solaris releases, but that doesn't help your code run on current releases:
6731945 need BSD getifaddrs() API
OpenSolaris source: usr/src/lib/libsocket/inet/getifaddrs.c
Until then you'll need to use the SIOCGLIFCONF ioctls, which you should find lots of examples of in open source code, including the link you posted.
Real men use ioctl ;)
Take a look at if(7P).