Once you learn one language does it become easier to learn a second and are there pairs of languages that go together? Also is it even a good idea to learn more then one language?
Hello,
I am getting a NullPointerException at android.app.ActivityThread$PackageInfo$ServiceDispatcher.doConnected(ActivityThread.java:1012). My application is not even in the stack trace, so I have no idea what is going on. I am trying to connect to a service when it happens. How can I fix this problem?
Thanks,
Isaac Waller
Although iPhone support JSON natively, AMF is a binary protocol and it supposes to use much less bandwidth. Do you think using AMF is a good idea?
Just found this AMF library in cocoa (Objective-C): http://github.com/nesium/cocoa-amf/
If I create a checkbox view and call setEnabled(false), the checkbox look is grayed but if I create a radiobutton, the view is inactive but it is not grayed.
Any idea ?
Hi,
My client wants to implement podcast on his website.
I mean to create a webpage which offers podcasts and subscribe.
I don't have any idea about this technique.
If anyone knows about this, please share your ideas.
Many Thanks
Lucky Luck
I am running a Django instance locally and doing some Facebook development.
So, I set up a port on a remote machine to forward to my local machine, so that Facebook can hit the web server, and have the requests forwarded to my local machine.
Unfortunately, I'm getting the following error in my browser when I try and access the page: http://dev.thegreathive.com/
Any idea what I'm doing wrong? I think the problem is on my local machine, since if I kill the SSH tunnel, the error message changes.
When I recompress the same caf file over and over using:
afconvert -f caff -d ima4 audiofile.caf
I get different sizes each time. Any idea what caused this behavior?
i have $date variable 2009-04-29 which is Y-m-d
anybody can give idea how to extract into $d, $m, $y using simplest method as possible?
regex is preferable.
any more suggestion with simple method will be chosen. :)
I am trying to detect which web in sharepoint that the user is looking at right now. One approach could be to read the URls from the browser and try to compare them to a reference URL to the sharepoint solution. I have not yet been able to locate any solution that works in both IE and Firefox.
The idea is to write a small C# app that will harvest the URLs and do the comparing.
TIA
I need to config one SMTP server (sendmail) to send mail with 2 interfaces with different ip's depending server.
For example: In same machine with to ip: 1.1.1.1 and 2.2.2.2 i need to send email [email protected] by 1.1.1.1 and [email protected] by 2.2.2.2
I don't now if i can configure it on sendmail, or use iptables, some idea ?
Thx.
When I'm connecting to imap.gmail.com, the server is connected. But, the authentication is failed due to following error
Server returned:CAPABILITY IMAP4rev1 UNSELECT LITERAL+ IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE
Any Idea plz???
Hi,
Is it possible to automatically create Word documents which include list fields from a custom SharePoint list?
here is the scenario:
- custom list (over 100 columns)
- Word templates (not sure where is best to store them yet)
- Entry Form will provide data for the templates (or partial data, ie Client name, Sales Rep)
- a form that will have buttons (ie 'Create Order Form', 'Create PO')
the idea is to be able to generate partial populated templates from a custom list with a puch of a button.
All solutions are realy appreciated!!!
Thanks,
Hello all,
I'm going to create a javadoc look-a-like for the language I'm mainly using, but I was wondering - is it worth to use a parser generator for this? The main idea to use a parser generator was because I could use templates for the HTML code which could be exported then. Also I could also use PDF templates if I need it.
Thanks,
William v. Doorn
Guys in one of excersises (ch.5,e.8) from TC++PL Bjarne asks to do following:
'"Run some tests to see if your compiler really generates equivalent code for iteration using pointers and iteration using indexing. If different degrees of optimization can be requested, see if and how that affects the quality of the generated code"'
Any idea how to eat it and with what?
Thanks in advice.
For some strange reason when I have nested object intializers it always gets the last '}' wrong. It is not indented at all as shown in the following example:
namespace MyNameSpace
{
internal static class MyClass
{
static MyClass()
{
var bla = new Bla { Name = "Bla" };
bla.Blub = new Blub
{
Name = "Blub",
Blap = new Blap { Name = "Blap", Visible = true },
Blob = new Blob { Name = "Blob" },
Blib = new Blib
{
Blep = new Heater { Name = "Bleb" },
Id = 1,
Blap = new Blap { Name = "Blap" }
} // <---- wrong !!!
};
}
}
}
Any idea what I can do against it ?
I'm somewhat new to programming and am unsure how to deal with a segmentation fault that appears to be coming from a std function. I hope I'm doing something stupid (i.e., misusing a container), because I have no idea how to fix it.
The precise error is
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x000000000000000c
0x00007fff8062b144 in std::_Rb_tree_rebalance_for_erase ()
(gdb) backtrace
#0 0x00007fff8062b144 in std::_Rb_tree_rebalance_for_erase ()
#1 0x000000010000e593 in Simulation::runEpidSim (this=0x7fff5fbfcb20) at stl_tree.h:1263
#2 0x0000000100016078 in main () at main.cpp:43
The function that exits successfully just before the segmentation fault updates the contents of two containers. One is a boost::unordered_multimap called carriage; it contains one or more struct Infection objects that contain two doubles. The other container is of type std::multiset< Event, std::less< Event EventPQ called ce. It is full of Event structs.
void Host::recover( int s, double recoverTime, EventPQ & ce ) {
// Clearing all serotypes in carriage
// and their associated recovery events in ce
// and then updating susceptibility to each serotype
double oldRecTime;
int z;
for ( InfectionMap::iterator itr = carriage.begin(); itr != carriage.end(); itr++ ) {
z = itr->first;
oldRecTime = (itr->second).recT;
EventPQ::iterator epqItr = ce.find( Event(oldRecTime) );
assert( epqItr != ce.end() );
ce.erase( epqItr );
immune[ z ]++;
}
carriage.clear();
calcSusc(); // a function that edits an array
cout << "Done with sync_recovery event." << endl;
}
The last cout << line appears immediately before the seg fault.
I hope this is enough (but not too much) information. My idea so far is that the rebalancing is being attempting on ce after this function, but I am unsure why it would be failing.
(It's unfortunately very hard for me to test this code by removing particular lines, since they would create logical inconsistencies and further problems, but if experienced programmers still think this is the way to go, I'll try.)
I'm trying to figure how a function I've been given works -- or rather doesn't work. The problematic areas include array notation like this:
$small[$end[$i]{0}]
I think the idea is to append "0" to the value of $end[$i] and use that for the index of $small. But it doesn't work in PHP5.3. Is this a deprecated syntax and is it trying to do what I think it is?
I working in a activex control using .net for load it in a ie website. I need read a jpeg 2000 file but i don't want use a 3rd party dll because this will cause dependencies or embedding it make my dll very big. Anyone have idea where i can find a class .cs for embedded on my project, i need only read file, no write only read.
Hello. I am running a script that walks a directory structure and generates new files in each folder in the directory. I want to delete some of the files right after creation. This is my idea, but it is quite wrong I imagine:
directory = os.path.dirname(obj)
m = MeshExporterApplication(directory)
os.remove(os.path.join(directory,"*.mesh.xml"))
How to you put wildcards in a path? I guess not like /home/me/*.txt, but that is what I am trying.
Thanks,
Gareth
Hello,
Ultimately here is my goal. Using Zend_Form I want to turn this idea http://www.sohtanaka.com/web-design/fancy-thumbnail-hover-effect-w-jquery/ into a list of radio buttons.
Kind of using this concept.
http://theodin.co.uk/tools/tutorials/jqueryTutorial/fancyRadio/
I know there has to be a way to do this but I can't seem to figure anything out! Any ideas?
Thanks!
-d
hi,
I've installed the usb driver, i'm running win7.
I can see that the driver is installed in the window-android SDK and AVD manager-installed packages
but when i'm writing "adb devices" in the cmd it doesnt show like the phone is connected (it is - it has the orange led on..)
I'm using the HTC G1.
I also did the "Turn on "USB Debugging" on your device" step...
anyone got an idea??
I need to use functionality that ObservableCollection provides, in my asp.net app. My only concern is that this class is a part of WindowsBase assembly and I'm not sure if it's a good idea to include a windows assembly in a web project.
Any ideas/comments?
Thanks!
Hi !
I read this post but I don't really understand the code...
I have a core data database with an Entity and some attributes. One of them is named "myDate" and has for type NSDate.
Now I want to to display each date but eliminate dates with same day-month-year and display them ascendantly .
Have you got an idea?
Thanks a lot !
Any idea what the proper containing markup would be to indicate a transcript for a video? Thinking accessibility for folks with disabilities but also perhaps search engine recognition of the association between the text and the video.