Blast from the past. This is one of the puzzles from my early days:
Can you write a method (a function) which when called outputs its own source - literally including all the quotes, indentations, etc?
No cheating - no reading from a file
Hi,
I use terminal from Mac OS X Leopard to connect to remote Linux machines and edit C++ code there using VI.
What determines that in some machines, using the same MACOSX terminal settings, the source code gets colorized and in other not?
Thanks
Hi everyone...
I have a website displaying data from MySQL in a php file (/something.php).... i want to copy the source code of that page as HTML so i can use it in a textfield box so users can copy paste that code...
It's almost like an HTML generator using info from mySQL, so users can custimize each HTML code.
I have everything covered... except the display HTML thing.
Please Help
I wish to 'engineer' the google wave and try it for my blog/website ? Is it possible to tinker with the source code of Google Wave ? Where is it available ?
Hello everyone,
I am using SQL Server 2008 Enterprise and using the new Merge statement. From my experiment, I find source is always read only (table content not modified, i.e. no record is deleted/inserted/updated)? Is that correct understanding?
thanks in advance,
George
From one particular machine, accounts are unable to get tfs project info and source control via the visual studio tfs client.
The connection with the tfs server is made but the project content remains empty.
Web access is possible from this machine.
Note: from all other machines everything works normally, so it must be a local machine issue.
What might be misconfigured on this machine?
Otherwise there seem to be no problems on this XP machine.
I am trying to read the Excel Named range using OLEDB using the below code
"Select * from [MyNamedRange1]"
everything works fine only when the source excel sheet is not opened if it is open then i am not able to read the range names using OLEDB it simply hangs
Where as i am able to execute the query
"Select * from [Sheet1$]"
even if the workbook is open or closed...
Any work arounds for reading the range by OLEDB only i dont want to go for interop...
I have too many ranges defined in the excel file
Hi,
I am sending tweets to Twitter via Zend_Service_Twitter.
The tweets appear with a note "via API". I want to set the API Source with a different name, is there already a functionality within the Zend Framework to change it?
Or do I need to subclass to get this functionality?
Thanks!
I noticed that when I build a given C# source to produce a DLL, the binary output is different each time. It would be helpful for our build / deployment process if this was not the case. Can I control this?
Why is still C99 mixed declarations and code not used in open source C projects like the Linux kernel or GNOME?
I really like mixed declarations and code since it makes the code more readable and prevents hard to see bugs by restricting the scope of the variables to the narrowest possible. This is recommended by Google for C++.
For example, Linux requires at least GCC 3.2 and GCC 3.1 has support for C99 mixed declarations and code
Hi,
I would like to write a simple GUI application using C++ and wxWidgets. I'm wondering if there are any open source GUI applications using C++ and wxWidgets and tutorials for reference.
Thanks,
I want to create a similar GUI as QT Creator main layout and thus I am looking for QT Creator Source files.
Can anyone direct me from where to download.
Thanks in advance.
I want to incorporate the CallLog feature in my Android project means I want to track Incoming, Missed and Received Calls and their details like Time and Duration of the call.......So kindly If any one has.....help me with the Code in android.............
I also found the built in application named PHONE in the emulator, but don't know how to use/call it in my application....Can I have its source code..so that it can be used in my application....
Thanks...
if i send email from my smtp server, For Example in code if i set From to [email protected] and sent to an email address, than the recipient think that mail comes from anydomain. so how to confirm email source?
Hi,
I'm want to add a windows installer to my project.
I saw two open source solutions: WiX and Nsis.
Do you have any expirience with them? Do you use another FOSS installer?
I have a ControlTemplate which is for the Button control, in the ControlTemplate I have Image control which is used to displayed in the button, Now I want to set the Image Source at runt time as I have to copy paste the ControlTemplate for each of the button to set new image for new button.
Thanks in advance.
I have a Java source code that I need to interrogate and apply security policies [for e.g. applying CWE]
I have couple of ideas, for starters using AST and then travel thru the tree. Others include using regular expression.
Are there any options other than AST or regex that I could use for such process.
I did ask whether this was possible in 2008 which was answered in http://stackoverflow.com/questions/1296840/read-and-step-into-net-framework-source-code.
However my problem is that I am using 2005 and not 2008.
Does anyone know whether this is possible please??
The reason I want to do this is to better understand C# paradigms.
With Java this is possible and I learnt a tremendous amount by being able to read code written by engineers
How can I display a default image when the binded path file is missing?
<Image Source="{Binding DisplayedBook.ImagePath}" />
My solution: Used a converter, which check if the image exists and returns the appropriate path.
Looking for a custom tooltip (typical yellow baloon callout) on click of an anchor tag. The tooltip should appear and remain in view until the cross button on the tooltip is clicked.
Just looking for a tried and tested open source solution. Tried googling this but most of the tooltip [...missing info?...]
Ajax control toolkit has the calloutvalidator which seems like a good choice but is tied up to be used for validation tooltips.
Our development cycle rarely requires a branch so we have what tfs appears to consider a single, never-ending development cycle. Our problem is that each build includes an ever increasing long "Generating list of changesets and updating work items" step that includes all changesets/work items back to day 1.
What is the proper step that we need to perform to formally lock and label (wrong terms I'm sure) the source tree so that a new cycle of changesets and work items can begin.
Thanks!