my vim editor auto highlights php files, html files and so on.
but when i type: vim scriptname
and inside it write a bash script, it doesnt highlight it.
how come?
I had a doubt ..
Why do we need interface in Java ?
Instead of interface can't we write the methods in the class itself ?
Why do we need seperate interface?
I need to measure the length of time requests are taking to be processed on an ASMX ASP.NET web service. What is the best approach for this? Is there an support in ASP.NET that "natively" supports this without me having to write code? Thanks.
I'm trying to write a Haskell program which requires the output of external programs (such as lame, the mp3 encoder). While declaring dependency on a library is easy in cabal, how can one declare dependency on an executable?
I'm trying to write a program that needs smooth orientation sensor samples as the phone is rotated all around. Every time the orientation of the phone is changed, it interrupts the data and freezes the program while the layout changes. How can I lock it in one orientation (landscape or portrait, it doesn't matter)?
I assume it has something to do with android:layout in the xml file, but I can't find anything online.
I have informations about some objects stored in BigTable(coordinates and few more) and I have to put this objects on Google map. How can I do that? (Please write some code example. I am using java for my application).
Hi Guys!
I'm new on testing, I'm using PHPUnit to write test. All the site has been designed using the MVC pattern.
I would like to test each method on my controllers, the problem is that such methods receives the parameters though the $_POST variable. How can I overwrite this variable?
Thanks in advance
Alejandra
I need to parse a command line like
script.rb <mandatory filename> [options]
with optparse.
Sure I can write some custom code to handle the filename, then pass ARGV to optparse, but maybe there's a simpler way to do it?
EDIT: there's another hacky way to parse such a command line, and that is pass '--mandatory-filename ' + ARGV to optparse, then handle the --mandatory-filename option.
I'd like two websites to have read/write access to the same user profile database (named "aspnetdb" by default). Presumably this is possible by configuring the websites appropriately in the web.config. Are there any issues I should be wary of?
I believe there is a method to write a comment in a file that vim will use to override default tabbing and indent values.
Can someone point me to information about this feature and how to use it?
Is there a way to pre-load EJB instances (stateless) in JBoss 4.2.0? I know there isn't any configuration option for this, but could I write my own MBean or something to do this?
-Dave
It seems that JNI methods need to be written with the Java class signature built in to them. I want to call a JNI method that I didn't write. Can I call a native method on a library that was not written with my class in mind?
Write an Assembly Language program named “count letters” that counts the occurrences of all small and capital letters in given below string and then prints the result in the format (Caps, count:: Small, count). String is “bcAdBDeCEad” and it should print this result (Caps, 5:: Small, 6). The program should take address of the source string as a parameter via stack.
Is there any cost/drawback (apart from typing too much) to adorning a class with System.Runtime.Serialization attributes (like [DataContract]) such that it can be used locally as a direct reference to a desktop Client project or as a type for a WCF service? The goal here is to write a data-tier class that can be used in both rich client (WPF) and Web scenarios. My data classes will be in a project that is separate from Client and WCF (*.svc code-behind) code. Is this a valid attempt to reuse code?
i have .java file. i need to generate .form file using the java file. when i write a java file then automatically .form file should be created. by using java swings how can we create .form file
I am quite new in Python and I am looking for converting numbers from decimal to hex
How to convert float numbers to hex or char in Python 2.4.3?
how can I keep it to write it as ("\xa5\x (here the new hex number)")
any help
Thanks,
String 14/04/2010 17:12:11.
How to replace the characters to get a string
14%04%2010%17%12%11
I know the method Replace, but its syntax Replace(Char,Char). I have to use it 3 times. How to write shorter? Use regular expressions? Can I do without them?
hi
i have a linux bash shell 'myshell'
i want it to read two date as parameters, ex: myshell date1 date2
i am a Java programer, but don't know how to write a shell to get this done
the rest of the shell is like this
sed "s/$date1/$date2/g" wlacd_stat.xml tmp.xml
mv tmp.xml wlacd_stat.xml
thanks
I know that drop removes the data as well as the table structure whereas truncate retains table structure.
Does drop/truncate write to roll back segment ?
I have a web-based bussines application written in C#/ASP.NET
Recently my boss start pushing to re-write the app as Linux multi-user desktop application.
In his design users will need to connect to Linux server via VNC or alike to use the app.
I am not familiar with this kind of application design.
I'd appretiate any help explainig pros and cons of this approach vs. web and perhaps vs. traditional client-server design
Thank you
Do you know any real applications for Simulated Annealing?
Simulated Annealing is a heuristic algorithm used for problems like the traveling salesman or the knapsack problem.
And yes, this is homework. I have to write a paper on this, and I thought this would be the best starting point. Perhaps someone actually works on a project that relies on Simulated Annealing.
How do I output coloured text from by unit tests in the Unit Test Session window in Visual Studio. I am using Resharper VS addin which I think produces the Unit Test Window.
I am using this with nunit and wish to use c# Console.Write to generate coloured text to this window.
Hi! I try to write an extension and i saw the very restricted policy security.
I should create an extension that allows me to listen and download podcast from web. It is possible?
I use Chrome OS with VMWare, this OS has additional Api than Google Chrome Browser?
Thanks