w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Multilingual Approach in ASP.Net Application
If I understood your question correctly, I think you should take a look at this: http://www.codeproject.com/Articles/334820/Using-Globalization-and-Localization-in-ASP-NET

Categories : C#

How to build a multilingual ember application
You could roll your own if you need something special, but as a starting point this is what most people use at the moment: https://github.com/jamesarosen/ember-i18n One of (my) favorite feature is clearly the TranslatteableProperties mixin which is really easy to use: Translate properties on any object: The Em.I18n.TranslateableProperties mixin automatically translates any property ending in "Translation": var userButton = Em.Object.extend(Em.I18n.TranslateableProperties, { labelTranslation: 'button.add_user.title' }); userButton.get('label'); Check also this other answer of my: Ember: how to translate a placeholder using i18n lib? for reference. Hope it helps.

Categories : Ember Js

Multilingual application: CultureInfo manual change error
Try to recreate forms when you change language. One possibility: /// <summary> /// Program entry point /// </summary> [STAThread] public static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // ... // close the form after you change the language: // DialogResult = DialogResult.Cancel; // exit with any other value DialogResult result; do { MainForm form = new MainForm(); result = form.ShowDialog() } while(result == DialogResult.Cancel); }

Categories : C#

Guidelines for the development of web Gis Application
Please see some ideas below set out to answer your questions. I think the way to integrate the most amount of data sources is probably with the the OpenGeo Suit. This is an open source software stack that includes Geoserver as a WMS source and GXP libraries and examples as the front end client. It can be found here http://opengeo.org/ There are a number of Open source projects out there that will help. I have already mentioned OpenGeo. Also check out Openlayers http://openlayers.org/ GeoExt (Can't post link as I don't have enough reputation points yet) Leaflet (Can't post link as I don't have enough reputation points yet) Geoserver is a good one for this but you could also checkout Mapserver (Can't post link as I don't have enough reputation points yet) In summary I would recommend th

Categories : Asp Net

Mobile application development using HTML5
HTML is basically for webpages and hence HTML5. Yes you can create a mobile app with HTML5 only, but it will be a like a website and when you want to display it, you will still need to use webview or a browser, so still you will need some other tools. But there are some frameworks which are using HTML 5, try PhoneGap. Hope this will help. Thanks

Categories : HTML

Confusion about API-based application development
With SOA, I wouldn't really say this is necessarily Go or Ruby/Rails specific. It would be the same if you were just using Ruby or Go by themselves. What it comes down to is how your application is architected. You could do SOA with just Ruby or Go. There are a lot of benefits to a Service Oriented Architecture. Clear separation of responsibility Different teams can work on different components Simplifed application archetecture code-wise Can lower development and management costs Configuration flexibility Targeted performance monitoring Simplified/gradual software updates Inherent service documentation (godoc generates from source) Targeted unit testing (does the service work?) Better scalability You could probably add more benefits to that list. The biggest obstacle to overcome is

Categories : Ruby On Rails

Contacts android application development
try to use checking string like this if ((!name.equals("")) && name !=null ) { ops.add(ContentProviderOperation.newInsert( ContactsContract.Data.CONTENT_URI) .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, 0) .withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE) .withValue( ContactsContract.CommonDataKinds.StructuredName.DISPLAY_NAME, name).build()); } else { Toast.makeText(this, "Enter Valid Name",Toast.LENGTH_LONG).show(); return; } if (!(number

Categories : Java

SOLVED!! Best Practise for GUI development for vanilla C++ application
You can to a large extent write completely separate logic and GUI code in Qt. However you will be able to create a much more useful GUI if you allow the logic and GUI code to interact. Qt has it's own classes for a lot of things (QString, QVector<> etc.) but you're free to ignore these for the most part and use the standard library instead if you'd prefer. However, I do not think that it is worth trying to separate Qt from the logic code entirely because, as mentioned before, you will be able to build a much better GUI if they interact. For a simple example you could write a very simple Qt GUI with just a window and a button; press that button and some logic code is run. However with more interaction you could use signals and slots to update a progress bar on the GUI to let the user kn

Categories : C++

Sharing Private keys in application development
You don't want to share your private keys with your developers...you should restrict access to the private key to a very small group of trusted people. To allow developers to work on code you can use Delay Signing/Test Key signing: http://blogs.msdn.com/b/shawnfa/archive/2004/03/17/91575.aspx On your secured CI/Build Server that generates your "releases"...you would allow it access to the production private key and then use that in the build process during a "Release" build (which doesn't use Delay Signing) to sign everything properly. What exactly are Delay signing and strong names in .net? http://blogs.msdn.com/b/shawnfa/archive/2005/10/24/484170.aspx http://blogs.msdn.com/b/shawnfa/archive/2006/06/23/644648.aspx

Categories : Java

Xbox Application Development using C# and Visual Studio
Visual Studios seems to be what most developers would use for xbox. As for languages if your looking to develop apps for xbox and not games, you could use C# or WPF. Hope this was a bit helpful.

Categories : C#

Application resource path is different from development and IIS7
For an alias, try setting the path of the app in IIS7. Try this: http://www.codeproject.com/Questions/460354/How-to-set-virtual-path-of-my-application-hosted-o You should be able to use ~/folder/resource.ext syntax in newer versions of mvc. The ~ uses a relative path based on the location of the app. Or, use Url.Content("~/folder/resource.ext") if that doesn't work, which should work in all versions.

Categories : Asp Net Mvc

When exactly session is created in java web application development?
A user session is/(should be) created after the successful login of the user into the system and it will be valid till the user logs out of the system or the session expires after the session timeout.

Categories : Java

Access to Application Support Directory on the device during development
Take a look at http://developer.apple.com/library/mac/#recipes/xcode_help-devices_organizer/articles/copy_app_data_from_sandbox.html This should provide you with a package of all data within the App's sandbox

Categories : IOS

ImageButton control with Google TV android application development
Make sure your ImageButtons are marked as focusable. You'll also want to make sure you set the nextFocus* related attributes as well. The following is from my project, Serenity for Android which uses ImageButtons on the OSD when playing a video. <ImageButton android:id="@+id/osd_rewind_control" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@android:color/transparent" android:focusable="true" android:nextFocusRight="@+id/mediacontroller_play_pause" android:nextFocusUp="@+id/mediacontroller_seekbar" android:scaleType="fitXY" style="@android:style/MediaButton.Rew" android:src="@drawable/skipback_selector" tools:ignore="ContentDescription" /> Agai

Categories : Android

Why assets (except application.css, applications.js) are not being served in Development mode using require_tree
Actually, it was the problem with the order in which the JavaScript files are being loaded using require_tree. directive. When we use require_tree. it assumes to load all the js files inside the app/assets/javascripts directory in alphabetical order. But in case of javaScript, we can load the files in a particular order so that one file should not conflict with the other regarding any functionalilty. So, it is better to avoid require_tree. directive unless we are using only small number of js files. You can explicitly declare each file in the application.js manifest file so the order can be controlled. The common files you are loading can be put in to a separate directory under app/assets/ and it can be loaded using require_directory ./separate_directory_name to load it (iff it has not

Categories : Ruby On Rails

Library/Framework for Single Page Application Development (as of 2013)
I finally made my own jQuery plugin. It manages the page-swapping and the ajax loading from files, firing custom events before and after each page is shown. Took no more than 150 lines comments included. I kept the parameter-passing stuff out, though.

Categories : Javascript

Returning errors back to development team from deployed iOS application
Depends on what kind of errors you're talking about... Exceptions are automatically reported back by Apple. But, they don't give all exceptions back and there is a lag. There are several 3rd party services which you can use where you add their framework and it will detect the exception and send it back to their server for you to analyse. For non-exception errors there is nothing standard. I would suggest adding analytics to your app and using part of the analytics to track these occurrences.

Categories : IOS

How to design/organize/architect the development of mobile web within a Rails application?
It seems to me that the one piece of essential information is "why?" and you need to consider your budget and timescales and deadlines for the job. Providing you use a liquid layout similar to the awesome layouts by Matthew James Taylor that will resize according to the available screen size The only reason I can see for needing mobile specific templates is in order to provide specific css styling to make you views look more like a mobile app. I don't see performance as being an issue. If you have performance overhead from an existing website and you are designing these performance issues out for mobile then why not also design these issues out for the non mobile. i.e. design a mobile site with a liquid layout and make it work for desktop/tablet viewing as well. It could be an good oppor

Categories : Ruby On Rails

How do I statically configure Celery application differently in production and development?
The way that I do it is using an environment variable. As a simple example... # By convention, my configuration files are in a "configs/XXX.ini" file, with # XXX being the configuration name (e.g., "staging.ini") config_filename = os.path.join('configs', os.environ['CELERY_CONFIG'] + '.ini') configuration = read_config_file(config_filename) # Now you can create the Celery object using your configuration... celery = Celery('mymodule', broker=configuration['CELERY_BROKER_URL']) @celery.task def add_stuff(x, y): .... You end up running from the command line like so... export CELERY_CONFIG=staging celery -A mymodule worker This question has an example of doing something like this, but they say "how can I do this in a way that is not so ugly?" As far as I'm concerned, this is quite

Categories : Python

What is the exact way for view handling in multiple orientation in iPad application development?
And here is a guide from apple. If autolayout it's not suitable for you, then you need a separate landscape viewcontroller. https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/RespondingtoDeviceOrientationChanges/RespondingtoDeviceOrientationChanges.html

Categories : IOS

Does SCOM make sense as an application monitoring tool (used by development group)?
Yeah, what you're asking is somewhat possible. I spent the best part of a day trying to figure this out and so I thought I'd post what I found for you here. it is possible to set up monitoring for any log on any machine. As long as you can see that log in windows with the event log viewer (there are actually many more, but if you can see it here. Assume it can me monitored. Put whatever you are monitoring into it's own group in SCOM and set up it's own management pack. You can even set up mail alerts with the criteria for a subscription matching 'raised by any instance in a specific group' if you want to be mailed about these alerts. Here is an example if you wanted to monitor just the 'application' log on a remote server: Start the Operations Console as a member of the Operations Ma

Categories : Windows

android application development- saving and retrieving the values of editText and textView
Its happening because you are saving all data in Arrays which get cleaned up when the app exits. There are several ways tht you could do this. You could either use SharedPreferences to save your data or write your values to a file. For e.g. you could use SharedPreferences as follows: public static final String MY_PREF = "MyPreference"; SharedPreferences.Editor editorPref; public static String keyName = "MyKey"; SharedPreferences myPref; You could then create the shared preference and add values to it.Hope this helps

Categories : Java

WebMethod error response as application/json on Development but text/html on Production
It turns out the issue is about "Friendly Error Message" - which is in html format. IIS is using this by default on Windows 2008 R2 machine. As a solution, I found this article: http://helpnotes.vpasp.com/kb/611-General-hosting-questions/1089-How-to-Turn-Off-Friendly-Error-in-IIS-7xx/ and performed #4 to #6.

Categories : Jquery

.NET integration with Honeywell D6X00 Platform SDK ( for Personal digital assistant - Dolphin 6500 Mobile Computer application development )
Although this is now several weeks old... If you get a windows mobile device from any company and need an SDK for special hardware in the dvice, you first have to look for downloads at the company's web site. For a Dolphin 6500, for example, you will find the possible downloads at https://www.honeywellaidc.com/en-US/resources/Pages/download.aspx?pid=DOLPHIN6500. To develop for a Windows Mobile (NOT Windows Phone!) you need a full VS2005 or 2008 version, the Express one's will not support SmartDevice development. After you have downloaded and installed at least one Windows Mobile SDK by the MS sites. You are able to start a SmartDevice project in your VS setup. You can write C/C++, C# or VB.net SmartDevice projects (you can also mix the progr. languages). The company's SDK is only an exte

Categories : Dotnet

Do any standards and practices exist for applying acceptance test driven development to non-development tasks?
Take a look at this post in StackExchange: Agile methodologies such as Scrum in non-software development projects Also there is a nice article called "Scrum is not just for software" written by the Agile Alliance (note that this is a PDF download)

Categories : Misc

windows mobile application development Windows 7 Operating System
I dont understand the question. I had to do nothing special as I installed Visual Studio 2008 and then the Windows Mobile 6 SDK. I assume, you already connected the WM device to your Win7 station. So you should have WMDC already installed. Otherwise install Windows Mobile Device Center from the MS site. Secondly install VS2008 (not express version, it does not support WM development). Then download and install Windows Mobile 6 (professionell) SDK and install. That is all, nothing special. I did it without any hassle on my Win7/64 PC. Should be the same for Win7/32. If you need further assistance be more specific in your description.

Categories : Windows

multilingual website in .net
The only way you can guarantee that all strings that can be localized correctly (excluding user input via data entry forms) is by creating some sort of resource that contains translations for all of these strings. You could also use a translation API of some sort I guess but we all know what translation programs are like: terrible. The .Net framework has built-in globalization and localization features, one of which is through using resources. There are MSDN articles on the subject here.

Categories : C#

Multilingual Messages
I'm not sure I completely understood your question, but an example for you could be this: # file text_messages.py from django.utils.translation import ugettext as _ MY_MESSAGE = _('Auth failed') Then in the script where you should use that message: import text_messages messages.error(request, text_messages.MY_MESSAGE) This is all in the docs Then, of course, you need to run django-admin.py makemessages --locale=en,de and provide a way to switch correctly languages in your views. Is this what you where after?

Categories : Django

UTF-8 and multilingual website
All the mb_... functions are for multi-byte characters. http://php.net/manual/en/book.mbstring.php There's a mb_strlen in there.

Categories : PHP

Multilingual app name in WinRT
You can pull your applcation DisplayName from your multilingual resource files. In appxmanifest: <DisplayName>ms-resource:AppTitle</DisplayName> In your Resources.resw: AppTitle MyAppTitle

Categories : C#

ASP.NET MVC 4 multilingual web template
Have a look at this page and save your money : http://www.codeproject.com/Articles/526827/MVC-Basic-Site-Step-1-Multilingual-Site-Skeleton Good Luck

Categories : Misc

Multilingual MVC 4 best practice
Using multiple columns for each language will work, but it will also get out of hand pretty quickly as more columns and languages need to be added down the road. So I'd advise against that approach. What you can do however is move the columns that need to be localized to a different table with a compound primary key. Here's a simple example with a cities table : You'll have classes that look somewhat like this : // City.cs public class City { public int CityId { get; set; } public string UnlocalizedField1 { get; set; } public string UnlocalizedField2 { get; set; } // Optional public virtual List<CityTranslation> Translations { get; set; } } // CityTranslation.cs public class CityTranslation { public int CityId { get; set; } public string LanguageId

Categories : Asp Net Mvc

How to Test ASP Application on Domain when Development Environment isn't on Domain?
We did few large deployments of AD with asp.net applications with automatic account provisioning and 50k+ users and the idea was always to abstract the user backstore and have at least two or three implementations: inmemory repository injected into upper layer services for unit testing them database implementation convenient for developers as it is persistent, doesn't vanish on restarts actual ad implementation tested separately in two different testing environments but not directly by developers (devs use the database repository) Having the logic which relies on abstraction and is conveniently tested with the inmemory repository and then having the ad repository tested separately allows us to just compose these two on the production site.

Categories : Asp Net

cakephp multilingual routes
Check my article on http://bakery.cakephp.org/articles/kicaj/2013/01/27/internationalization_with_static_and_dynamic_content_routing_and_switching or a little more on polish version on my blog: http://blog.kdev.pl/2013/02/internacjonalizacja-statyczna-i.html There were more subjects on stackoverflow.com, search:)

Categories : Cakephp

Multilingual in grails view
You can use internationalization in grails through messages.properties file, you can define message signature in files and and they can be accessed through ?lang=es on the URL, you may need to have two files one for english and another for Arabic. for example define in the messages.properties: vendor.link.dashboardLink = Vendor Dashboard and on the GSP page you can access it like: <g:message code="vendor.link.dashboardLink" /> you can find more about internalization at grails doc have a look at http://grails.org/doc/2.2.1/guide/i18n.html

Categories : Grails

Plomino multilingual site
At the moment there is no document content translation solution for Plomino. The mentioned solution can be used to translate pre-defined contents (like labels in forms, computed values, etc.) but obviously it is not applicable to content freely entered by users in documents. Nevertheless, Plomino is already used in multilingual contexts. A basic solution is to: create a field to store the document language, provide a Document ID formula which will use this lang field value (so we can guess the id of any translated version from the current doc id), implement the different actions you might need (like "Translate this doc", "Switch to language xx", etc.) as basic Plomino actions.

Categories : Misc

Django ModelForm with Multilingual
If you are using Django way to make your site multilingual: https://docs.djangoproject.com/en/dev/topics/i18n/ You can do something like: from django.conf import settings ... def __unicode__(self): return getattr(self, "user_type_name_%s" % settings.LANGUAGE_CODE, self.user_type_name_en)

Categories : Django

MultiLingual Email template with grails
Can you work around this by creating a model containing a list with the correct translations? For example: def messages = [:] messages['hello.world'] = messageSource.getMessage( "hello.world", null, new Locale("nb") ) def template = groovyPageRenderer.render( template: '/mail/email', model:[messages:messages] ) And then in the view you just write: <html> <head> <title>${messages['hello.world']}</title> </head> <body> </body> </html>

Categories : Grails

Disqus comment counter multilingual
The comment counter currently can't be presented in different languages, it only substitutes the string that you set in your Disqus admin settings. If you aren't completely stuck on including the phrase, we generally recommend using just the number for multilingual websites. You can also build your own comment counter with the API using this guide: http://help.disqus.com/customer/portal/articles/1131783 If you do this, we'd recommend caching the results on your own server or else the 1000 requests/hour will run out quickly on a busy site.

Categories : PHP

Drawing multilingual text using PIL (Part II)
I suspect that your problem is that you are drawing a 9 character string in a 76 point in a 400x400 pixel image starting at 50, 50 - so it is either wrapping or clipping and getting messed up - try changing your point size to 32 or your image to 800x800. (IIRC 76 points is approximately 100 pixel per character.)

Categories : Misc



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.