Besides making an HTML5 app (which may very well be the answer to this question), are there any other languages I can develop in for android besides Java?
Take the following code in C/C++, for example:
int foo[] = {0, 0, 0, 0};
No magic numbers, right?
Now, the Python "equivalent" of that would be:
foo = [0, 0, 0, 0]
Still no magic numbers.
However, in Python, that same thing can be written like this:
foo = [0] * 4
And now we DO have a magic number. Or do we?
I'm guessing this and other similar things are present on these and other languages.
does the nesting of function be possible in the object oriented languages like c# ,java ,c++ etc . If yes can anyone help me with the suitable code for that ...?
If I use UIWebView to render some richtext content and some dynamic web content in my app, then is there a possibility of adverse effect on my app rating in approval process?
I am using openssl in a project. It works fine on one machine. However, on an xp pro machine I get:
The ordinal 968 could not be located in hte dynamic link library LIBEAY32.dll
Does anyone know how to fix this issue, is it a dependency issue on some other dll?
How do the Lambda Expressions / Closures in C++0x complicate the memory management in C++? Why do some people say that closures have no place in languages with manual memory management? Is there claim valid and if yes, what are the reasons behind it?
hello.
I would like to read about history of computing, is there some particular book you recommend about:
programming languages and their evolution
history of supercomputing and supercomputers
Thank you
I am currently learning asp.net MVC2. I was trying to do a simple project similar to tadalist.com
Could you please guide me to some articles on how to create the dynamic textboxes and how to capture the user input for persistance?
Thanks
I'm looking for a good tool for printing Invoices, Receipts and similar documents in Java Swing. I have tried JasperReports but it is pretty hard to get a dynamic layout and it is designing for reports.
A requirement that I have is that the document should be sent directly to the printer and must not be saved to a file. So some tools that first creates an Office Document or a PDF document isn't a solution for me.
Any recommendations?
I'm an experienced iOS programmer and have recently began to dabble in web development to expand my horizons. I've found it quite interesting and was wondering what learning path I should take through all the numerous languages. Here's what I planned on doing:
HTML+CSS- PHP/Jquery
Does that sound reasonable? Currently I'm nearly confident with my html/css abilities, and am planning to move ahead. Any good suggestions you guys could throw my way?
I want to insert an attribute in every xml node. As xml is changed every time some developer do a change so I want to retrieve xml node path dynamically first and then insert the attribute in it. Any idea how can I have a dynamic path of an xml instead of passing a absolute path.
Hi all, basically i am launching a site soon and i predict ALOT of traffic. For scenarios sake, lets say i will have 1m uniques a day. The data will be static but i need to have includes aswell
I will only include a html page inside another html page, nothing dynamic (i have my reasons that i wont disclose to keep this simple)
My question is, performance wise what is faster
or
How to put a cut/copy reference to specific files and/or folders into Windows clipboard so that when I open standard Windows Explorer window, go to somewhere and press Ctrl+V - the files are pasted?
If I copy or cut some files/folders in Windows Explorer, how do I get this info (full names and whether they were cut or copied) in my Program?
I program in C#4, but other languages ways are also interesting to know.
Rails 4 is nearly there, we should be ready before it released. Most developers are trying hard to keep their application on the edge.
Must see resources:
1) @sikachu talk:
What to Expect in Rails 4.0 - YouTube
2) Rails Guides release notes: http://edgeguides.rubyonrails.org/4_0_release_notes.html
There is a mix of all major changes down here:
ActionMailer changes excerpt:
Asynchronously send messages via the Rails
Raise an ActionView::MissingTemplate exception when no implicit template could be found
ActionPack changes excerpt
Added controller-level etag additions that will be part of the action etag computation
Add automatic template digests to all CacheHelper#cache calls (originally spiked in the cache_digests plugin)
Add Routing Concerns to declare common routes that can be reused inside others resources and routes
Added ActionController::Live. Mix it in to your controller and you can stream data to the client live
truncate now always returns an escaped HTML-safe string. The option :escape can be used as false to not escape the result
Added ActionDispatch::SSL middleware that when included force all the requests to be under HTTPS protocol
ActiveModel changes excerpt
AM::Validation#validates ability to pass custom exception to :strict option
Changed `AM::Serializers::JSON.include_root_in_json' default value to false. Now, AM Serializers and AR objects have the same default behaviour
Added ActiveModel::Model, a mixin to make Ruby objects work with AP out of box
Trim down Active Model API by removing valid? and errors.full_messages
ActiveRecord changes excerpt
Use native mysqldump command instead of structure_dump method when dumping the database structure to a sql file.
Attribute predicate methods, such as article.title?, will now raise ActiveModel::MissingAttributeError if the attribute being queried for truthiness was not read from the database, instead of just returning false
ActiveRecord::SessionStore has been extracted from Active Record as activerecord-session_store gem. Please read the README.md file on the gem for the usage
Fix reset_counters when there are multiple belongs_to association with the same foreign key and one of them have a counter cache
Raise ArgumentError if list of attributes to change is empty in update_all
Add Relation#load. This method explicitly loads the records and then returns self
Deprecated most of the 'dynamic finder' methods. All dynamic methods except for find_by_... and find_by_...! are deprecated
Added ability to ActiveRecord::Relation#from to accept other ActiveRecord::Relation objects
Remove IdentityMap
ActiveSupport changes excerpt
ERB::Util.html_escape now escapes single quotes
ActiveSupport::Callbacks: deprecate monkey patch of object callbacks
Replace deprecated memcache-client gem with dalli in ActiveSupport::Cache::MemCacheStore
Object#try will now return nil instead of raise a NoMethodError if the receiving object does not implement the method, but you can still get the old behavior by using the new Object#try!
Object#try can't call private methods
Add ActiveSupport::Deprecations.behavior = :silence to completely ignore Rails runtime deprecations
What are the most important changes for you?
What is better for PHP developer - Unicode or UTF-8?
I am going to create international CMS. So I am going to have clients all over the werld. They will speak all posible languages.
What encoding format is better for browser recognition and for DB data storing?
I am trying to do dynamic instantiating using strings rather than strongly typed names.
So the obvious choice was to use Reflection.
It is working fine. The class has a method. How am supposed to access this method using the object returned by the CreateInstance method?
thanks in advance
Hi,
I've been wondering if there is any chance to use dtrace ustack helpers on Mac OS X for python and other interpreted languages? I know that you can figure out what python and php on OpenSolaris are doing when giving the ustack some extra memory for a buffer. Is this somehow possible on Mac OS X?
Regards
raichoo
Hello everyone!
I have to make an on-screen keyboard using JAVA on linux.
the problem is it has to work on the most languages.
for start, i need to et the current locale, that's clear, but after that, is there any way of getting the keyboard layout and maping of that locale?
i searched for hours, but couldn't find a thing, so i really hope you can help me.
Thanks in advance, Adam!
Hi all,
In Mac, in skype when we add users to an existing chat, by clicking '+' button on top, a beak like window appears carrying a token field like control. When an user types some name in it and a match is found then a list appears carrying user icon , status icon and his/her name. Also the width of dynamic list is same as beak window.
Can any one suggest some way to create similar control?
Thanks in advance,
Miraaj
which database should I use, if my application is going to be in multiple languages (including Chinese, Japanese etc)? In other words, is MySQL better or worse than Postgres to handle unicode etc? (these are the only two databases my hosting company has)
Also, which language is better for handling unicode? PHP or Ruby/Rails?
Hi,
I'm looking for a python library for finding the longest common substring from a set of python strings.
I'have read that it exist to way to solve this problem :
- one using suffix trees
- the other using dynamic programming.
The method implemented is not important. Otherwise, it is important to have a implementation that can be use for a set of strings and not only two strings
Thanks,
I am facing a really tough time doing this. I haven't done much on web development before this. I know HTML and dats it. What else do I need to learn in order to start coding a good facebook app (specifically scripting languages like JS, PHP etc). I have already created a test application using a web hosting site. Time is of the essence here.
I would like to rewrite dynamic URL
/index.php?pid=login&redirect=/previous-page.html
to something like this
/login.html-r-previous-page.html
I tried this
RewriteRule ^login.html-r-(.*)$ /index.php?pid=login&redirect=$1 [L]
But no succes. I was also trying to change the regex to .+ or some other forms, but it seems useless. Maybe I am making mistake somewhere else.
I am new to regular expressions and also mod_rewrite.
Thank you for help
On my there are two set languages, which are English and Russian, and English is the default set language. Yet every time I leave Code::Blocks and click on the window again, the program automatically changes the language to Russian, which not only is it annoying, but it doesn't make much sense.
Does anyone have any idea why it's going on and how to get rid of this pest? So far that's the best C++ IDE I have found and I don't want to ditch it due to such a nasty annoyance.
I want to have a login form on a charity website I am building (it's for a friend, and I'm learning on the go), and I want to know what languages/software should I learn to build databases for user logins and info? Note: it HAS to be secure and relatively simple to learn for someone with moderate programming experience.
Update: I understand that CMSs offer good tools for logins etc. but I want to do this all by myself.