typing

Android Emulator typing "="

Hello. I have a problem with Android Emulator. I have created avd and run it. But when it was started I can't work, because it emulate typing many "=" symbol. I launch this avd with -debug-all parameter and debuger write "could not handle (sym=61, mod=0, str=EQUAL) >> KEY [0x00d, down]". OS - Windows Vista. Last version Java platform,...

How Can a Programming Language be both Statically-Typed and Dynamically-Typed?

Statically-typed languages and dynamically-typed languages in principle seem like opposite concepts. However, how can a language like Objective-C for example be both of these things at once? It seems to me that Objective-C is more static than dynamic. Can somebody explain how this is possible? ...

C++ and its type system: How to deal with data with multiple types?

"Introduction" I'm relatively new to C++. I went through all the basic stuff and managed to build 2-3 simple interpreters for my programming languages. The first thing that gave and still gives me a headache: Implementing the type system of my language in C++ Think of that: Ruby, Python, PHP and Co. have a lot of built-in types which ...

Which is a strongly typed language: Python or Prolog?

I am new to Python and prolog. From my understanding, Python is a strongly typed language. Is Prolog a strongly typed language also? ...

Is there any real possibility/example of useful `weak' typing policy implementation?

Are the implicit type coercions the absoulte evil? Or the history does know a decent implementation of what I've never heard.. Is `weak' typing doomed to be implemented in a way it is done in PHP, Javascript etc.? ...

What tricks can be used to type and edit code faster?

Please read the full question before posting. It's not that long. As Jeff Atwood noted, we are typists first, programmers second. Fast typing and editing may not be essential to be a good programmer, but it certainly helps. I noticed that I consciously and subconsciously use various tricks to get my intent across to the computer as fast...

C++ Typing and OOP child classes

I'm a bit confused: If I have a base class A, and a class B which extends A, can a variable of the type A hold a value of the type B and vice versa? If yes, why? Aren't they completely different even if B is derived from A? How about type-safety? If this is possible, what things do I have to mind when taking use of this? How would ...

What are some typing patterns using a standard QWERTY keyboard that work well for you as a programmer?

After hunting and pecking for about 35 years, I have decided to learn to type. I am learning QWERTY and have learned about 2/3 of the letters so far. While learning, I have noticed how asymmeterical the keyboard is, which really bothers me. (I will probably switch to a symmetrical keyboard eventually, but for now am trying to do everythi...

Interpreter typing in C

I'm developing an interpreter and I have some questions to it. I recently saw a small C interpreter that used a very simple struct like the below for all its objects/values in the language: struct Object { ubyte type; ubyte value; }; This struct can hold strings, integers, bools and lists (I think) used in the language the in...

how do i take advantage of sqlite manifest typing / type affinity using sqlalchemy?

I like the idea of sqlite's manifest typing / type affinity: http://www.sqlite.org/datatype3.html Essentially, if I set a column's affinity as 'numeric', it will duck type integers or floats to store them as such, but still allow me to store strings if I want to. Seems to me this is the best 'default' type for a column when i'm not su...

Deleting tabs when using tabs as spaces

I know that the general tabs vs spaces thing is as old as the hills and mostly comes down to personal preference/sticking to the style of your team, I just wanted to ask a practical question about using spaces in Visual Studio. There are certain things about tabs that bug me and I wouldn't mind changing to spaces while we're a small team...

F#, Nominative or Structural?

Does f# is a Nominal typed or a structurally-typed language? (I know that OCaml is structurally type, though f# doesn't seems to be so). ...

Python: Can a class forbid clients setting new attributes?

I just spent too long on a bug like the following: >>> class Odp(): def __init__(self): self.foo = "bar" >>> o = Odp() >>> o.raw_foo = 3 # oops - meant o.foo I have a class with an attribute. I was trying to set it, and wondering why it had no effect. Then, I went back to the original class definition, and saw that the a...

Accessing dynamically typed member

I have a dynamically typed member id currentEvent in my view controller class. The rationale is that the view controller is used to display data for two model classes that are very similar. I have a setter: -(void)setCurrentEvent:(id)e { [self.currentEvent release]; Class eventClass = [e class]; currentEvent = [[eventClass ...

GTK+ underscores - physically painful

Programming with GTK+ is annoying and physically painful because of the sheer amount of reaching out for the "_" key. For anyone with actual GTK+ experience, have you found a work around for this?. The platform is linux based. ...

What is Scala trying to tell me and how do I fix this? [ required: java.util.List[?0] where type ?0]

I am in the process of learning Scala and today I felt confident to introduce it to one of our projects. The application does a lot of JPA / Hibernate stuff and I started implementing one of the Java interfaces in Scala. All went well, until I tried to translate some unittest-code to Scala. I make a lot of use of Easymock, the code is ...

Is weak typing not necessary anymore?

I come from a statically/strongly typed language background (java), and I recently started to learn python and I think I see the value of dynamic/strongly typed language. Now I'm wondering whether weak typing can be ever desirable. Going through stackoverflow, I only found explanations that say it has performance benefits. Since th...

How to denote different numeral systems while typing?

Hello, I know that this isn't exactly a programming question, but it's related to the subject for me. How do you denote different numeral systems in just text? (By text I mean able to type at a proper speed and not copy-pasting it from another program.) For example if i have a number in base 2 how do I type it so others can understand th...

Request to Asp page misses if called very fast

Hi, I have a website with is made in classic asp. On one page there are 5 textboxes and 5 labels. When users type some value in the textbox then using javascript (added on Onchange event) another asp page is called which done some calculations, fetches some database values based on the value typed and return the result to caller page to...