text stringlengths 8 267k | meta dict |
|---|---|
Q: Is multiple inheritance possible in VB .Net? Is multiple inheritance possible in VB .Net? If so, what is the syntax?
A: It's possible in a restricted manner in VB.Net in the same way that it is in C#: via Interfaces. Since an interface works out to essentially a pure-abstract base class, you can inherit from as m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351242",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Error registering COM+ application proxy I have exported a COM+ application proxy, which generates MSI and CAB files, and I have successfully installed them on a few different Win XP and Vista machines. However, I have a WinXP box that isn't playing nicely. When I try and run the MSI it gives me the following error ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351243",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: MySql Null DateTime and MS.net are not playing nice Heres the issue.
I have a table(mySQL) that contains dates and some of them are null.
I know that I can use DateTime? or Nullable to allow nulls, but I'm not sure where to set it.
What I've tried:
I built the class in the dblm. The date propery has the following a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351244",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Excel countif Pulling apart a cell to do different things Excel 2007
I have a row of cells with variation of numbers and letters (which all mean something.. not random.)
It's basically a timesheet. If they take a sick day they put in S, if they take a partial sick day they put in PS. The problem is they also put i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351257",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I make Flex file upload work on firefox and safari? I have a flex app that uploads files to a server. The server requires authentication to be able to upload. In IE the upload works fine. However in FF and Safari, it does not upload. I have seen people all over with this same problem but no answers. Don't fai... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351258",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: HttpWebRequest Won't Serialize I'm getting the following error when I try to Serialize an HttpWebRequest
Type 'System.Net.KnownHttpVerb' in
Assembly 'System, Version=2.0.0.0,
Culture=neutral,
PublicKeyToken=b77a5c561934e089' is
not marked as serializable.
Using .Net Framework 2.0
This is one of the propert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351265",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How to stop link being followed until after jQuery .animate has complete? back story: I am designing a portfolio website for myself. on its home page, the logo is front and center but on the sub pages the logo is top & right.
I thought it would be a nice visual cue (upon clicking a link to a sub page) to use jQuery... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351268",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: What does the function set use to check if two objects are different? Simple code:
>>> set([2,2,1,2,2,2,3,3,5,1])
set([1, 2, 3, 5])
Ok, in the resulting sets there are no duplicates.
What if the object in the list are not int but are some defined by me?
What method does it check to understand if they are different?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351271",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best Practices: When not/to use partial classes I have been using the partial class modifier for some time in order to put helper classes in their own file.
Today we got a new guy and he said that the last team he worked with didn't allow partial classes for this because modifying a helper class that is in a separat... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351272",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: Updating the parameters of an existing trap and partially sending parameters in a trap We have created a list of traps (notifications) that our application is exposing and described it in a MIB file.
Today, we found ourselves in a situation where we need to update the MIB and add an additional (optional) parameter t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351274",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Find OS Name/Version using JScript I have to maintain a server-side script written in JScript (NOT Javascript) that needs to discover the OS of the system that it's running on. How can I do this correctly and robustly?
A: Take a look here for all the different system information you can get.
Here's some sample code... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351282",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Multiple Font/Language support in Flash Greetings,
I'm in the middle of writing a Flash application which has multilingual support. My initial choice of font for this was Tahoma, for its Unicode support. The client prefers a non-standard font such as Lucida Handwriting. Lucida Handwriting doesn't have the same, s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351290",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to show a text as hidden using c# I am developping in C#.
I need to capture a password written inside a Text Box, but would like to not show the password that is being typed, showing instead **** or any other character to hide the password.
How can I do that? I'm sure it's by modifying an attribute, but can't fi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351296",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Can I use Google Apps for domain Email and still use a "sendmail" server to send emails? I am using Google Apps for domain to host the email from my domain and I've setup the MX records on my site according to the Google documentation. Can I also use a "sendmail" server to send additional emails from my webserver w... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351297",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Best source code formatter for Javascript? I've been digging through Stack Overflow as well as a number of Google searches, and I cannot find a satisfactory code formatter for JavaScript.
I have found several related tools, such as syntax highlighters and pretty-printers, but I am looking for a tool that I can ideal... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351298",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: Calculate checksum of audio files without considering the header I want to programmatically create a SHA1 checksum of audio files (MP3, Ogg Vorbis, Flac).
The requirement is that the checksum should be stable even if the header (eg. ID3) changes.
Note: The audio files don't have CRCs
This is what I tried by now:
1) ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351306",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: WCF User Management Technology Recommendation I'm writing C# WinForm and asp.net apps that talk to a SQL server through a WCF service. I want to avoid creating my own user management system and would like to use an existing component/technology that can create/delete/manage users and roles. What would you recommend?... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351313",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Stuck on a Iterator Implementation of a Trie I have to implement a homemade Trie and I'm stuck on the Iterator part. I can't seem to figure out the increment method for the trie.
I hope someone can help me clear things out.
Here's the code for the Iterator:
template <typename T> class Trie<T>::IteratorPrefixe{
frien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351314",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Best practices to follow/read large mailing-lists? You're probably a lot to be subscribers to various mailing list, some more updated than others.
*
*What are your best practices to follow all information going by these lists?
*What are the best clients you've used to managed that?
I'm sure I'm not the only on... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351318",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "15"
} |
Q: Custom System.Collections.Generic.Contains For Testing Custom Object How can I rewrite or is there a way to writing my own custom function that simulates the Custom System.Collections.Generic.Contains but only factors in certain Public Properties of a Custom Object?
For example if I have a custom Object with Propert... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351324",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Web Service vs WCF Service What is the difference between them?
When would I opt for one over the other?
A: This answer is based on an article that no longer exists:
Summary of article:
"Basically, WCF is a service layer that allows you to build applications that can communicate using a variety of communication me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351334",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "114"
} |
Q: Log combing algorithm We get these ~50GB data files consisting of 16 byte codes, and I want to find any code that occurs 1/2% of the time or more. Is there any way I can do that in a single pass over the data?
Edit: There are tons of codes - it's possible that every code is different.
EPILOGUE: I've selected Dari... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351336",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "14"
} |
Q: ORA-01426: numeric overflow exception when executing stored procedure I ported a Delphi 6 application to Delphi 2007 and it uses BDE to connect to
an Oracle 9i database. I am getting an
ORA-01426: numeric overflow exception
When I execute a stored procedure. This happens randomly and if I
re-run the stored procedu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351339",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What's the shortest TSQL to concatenate a person's name which may contain nulls 3 fields: FirstName, MiddleName, LastName
Any field can be null, but I don't want extra spaces. Format should be "First Middle Last", "First Last", "Last", etc.
A: Assuming by "extra spaces", you mean extra spaces inserted during the co... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351340",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: Linq: multiple relationships to same table I have the same problem as this guy:
I have a table that has references my tblstaff table twice for two different people. Now that I have added this second reference neither of them work.
What is up w/ that?
A: I had to create a function to getStaffbyID and manually call... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351345",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: In IRouteHandler.GetHttpHandler() Can I redirect? As a glutton for unproven sexy techniques I've adopted System.Web.Routing in my Web Forms application to manage navigation and such. Further, I'm hoping to move role-based security from web.config to the route definitions itself so I can say "this route is only avail... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351354",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: An algorithm to get the next weekday set in a bitmask I've got this small question - given a bitmask of weekdays (e.g., Sunday = 0x01, Monday = 0x02, Tuesday = 0x04, etc...) and today's day (in a form of Sunday = 1, Monday = 2, Tuesday = 3, etc...) - what's the most elegant way to find out the next day from today, t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351360",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Issue with Events on AJAX-heavy page I have an asp page that uses jQuery ajax to load member counts into a bunch of divs after a page is loaded.
It works perfectly well in FireFox, and with clients that have a small number of groups.
For the small number of clients that have many groups (500+), I am getting an error... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351368",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: jQuery: Creating a circular slider You may have seen JavaScript sliders before:
http://dev.jquery.com/view/tags/ui/1.5b2/demos/ui.slider.html
What I'm envisioning is a circular slider. It would consist of a draggable button at one point on the circle -- and that button can be dragged anywhere along the ring. The val... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351371",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Database indexes: Only selects! Good day,
I have about 4GB of data, separated in about 10 different tables. Each table has a lot of columns, and each column can be a search criteria in a query. I'm not a DBA at all, and I don't know much about indexes, but I want to speed up the search as much as possible. The impor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351372",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Creating an Eclipse "Distribution"? In the context of creating a custom Eclipse distribution for a development team.
How would I go about building a custom Eclipse distribution containing a specific set of plugins? Would it be difficult to also add a kind of update site to put specific versions of the plug-ins from ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351373",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Emulate Sleeping Windows Mobile Device Is it possible to emulate a device sleeping and waking using the Microsoft-supplied device emulators?
A: Yes, but you have to generate your own emulator image with a modified kernel (changing OEMPowerOff). Bruce Eitman blogged about it here. You didn't detail your needs, so ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351374",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Unindexed Foreign Key leads to TM Enqueue Contention So we've been told that one source of TM Enq contention can be unindexed FK's. My question is which one.
I have an INSERT INTO Table_B that is recording TM Enq Wait.
It contains a PK that is the parent to other tables and it has columns that are FK constrained to ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351375",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the problems associated with serving pages with Content: application/xhtml+xml Starting recently, some of my new web pages (XHTML 1.1) are setup to do a regex of the request header Accept and send the right HTTP response headers if the user agent accepts XML (Firefox and Safari do).
IE (or any other browser... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351380",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: How to use MKS Integrity (source code control) more efficiently We use MKS Integrity for our source control. I have no control over that -- I just have to use it.
What are some "gotchas" that I should know about and avoid? And, are there any neat things about the software that will allow me to use it better?
I'v... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351383",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Have any vb applications migrated to delphi? I would like to hear of the experiences of classic vb developers who migrated their applications to delphi rather than vb.net. How has it worked out? Are you glad or sorry that you didn't move to vb.net?
A: I am not really a vb developer but rather a Delphi developer wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351390",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Do you know any file comparison add-in for visual studio Is there any built-in, add-in solution for visual studio to compare two files and display result with differences? I could't find one...
A: As for me, CodeCompare is a useful solution for your task. You can
compare, merge and edit data within one environment ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351394",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Show parents element's item Lets say we have something like:
<div class="row">
<div class="box">
<a class="more" href="#more"/>
</div>
<div class="hidden">
stuff
</div>
</div>
<div class="row">
<div class="box">
<a class="more" href="#more"/>
</di... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351402",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to append something to an array? How do I append an object (such as a string or number) to an array in JavaScript?
A: You can use the push and apply functions to append two arrays.
var array1 = [11, 32, 75];
var array2 = [99, 67, 34];
Array.prototype.push.apply(array1, array2);
console.log(array1);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351409",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2891"
} |
Q: Quick Test Pro (Regression test scripts) - Cruisecontrol.net Any one succeeded in integrating Quick Test Pro (QTP) automated test scripts in Cruisecontrol.net.
if any one have an idea to run them unattended , in a schedule task or cruisecontrol.net
will be more useful.#
A: I am sure this will be possible using the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351410",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do you find the users name/Identity in C# I need to programatically find the users name using C#. Specifically, I want to get the system/network user attached to the current process. I'm writing a web application that uses windows integrated security.
A: string user = System.Security.Principal.WindowsIdentity.G... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351415",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "20"
} |
Q: Determine record in multi record html form In a html form, I'm displaying multiple records from a table, ready for update.
Right now I use: name=<column-name>_<pk-id> value=<value> for the fields.
Then in my python-script I go for:
for key in form.keys():
if key.startswith('<name-A>_'):
update <table> se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351440",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: My application icon is corrupted (problems in the compiler?) The "Application Icon" of my application is wrong.
My application shows in taskbar a different icon than the classic Delphi icon. Instead is shows the icon of one of my VCL's. That specific VCL from which the icon was "stolen" is not used in my application... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351443",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How do I get data from stdin using os.system() The only reliable method that I a have found for using a script to download text from wikipedia is with cURL. So far the only way I have for doing that is to call os.system(). Even though the output appears properly in the python shell I can't seem to the function it to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351456",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: how do i start a program (say calc.exe) based on existence of some file (1.htm) via scheduler? I need to start a program based on existence of some file (1.htm) on the same machine using scheduler. I don't want to write any extra code. is it possibele by using that is already on windows for e.g listener etc. 1.html... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351459",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: send bitmap with winsock How could you send a bitmap over winsock without saving it to a file then sending that? It would also be helpful if you knew how to convert the data after being recieved back into a bitmap.
A: What programming language are you using?
Basically, you've got to store the bitmap data into some ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351464",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How abstracted should MVC models be? I'm in the process of extending and improving a website that has quite a few structural problems. It looks very much like the developers before me had heard of MVC but didn't understand the ideas of abstraction or modularity. So the MVC "framework" is a) bespoke b) broken c) patc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351470",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Fire events selectively in C# class Child
{
private override void Check_CheckedChanged(object sender, EventArgs e)
{
if (Check.Checked)
{
this.addName(this.FirstName);
this.disableControls();
}
else
{
this.addAddress(this.address);... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351473",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: What size int whould you use for foreign key fields? I have a star schema type data base, with fact tables that have many foreign keys to dimension tables. The number of records in each dimension table is small - often less than 256 bytes, but always less than 64k. The fact tables typically have hundreds of thousan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351474",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Getting absolute path from relative in Vista seems to fail using Win32/Shell PathCombine() Not sure if this is intended behavior or a bug or a wrong function that I'm using, but the problem is that PathCombine() returns a wrong path on a Vista box.
The relative path is (as exported by the WMP to a playlist):
..\..\.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351479",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How do I create a ListBox in ASP.NET MVC with single selection mode? How do I create a ListBox in ASP.NET MVC with single selection mode?
A: MVC5.cshtml
@Html.DropDownList("PropertyID", null, htmlAttributes: new {size=5, @class="form-control" })
Controller
ViewBag.PropertyID = new SelectList(db.EntityItems);
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351483",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: How to determine type of dynamically loaded usercontrol? I have an application the will load usercontrols dynamically depending on the user. You will see in the example below that I am casting each user control via switch/case statements. Is there a better way to do this? Reflection? (I must be able to add an even... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351484",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: TfrmMain and TApplication - what are these for? I am a Delphi novice, but I'm trying to understand the relationship between TApplication and TfrmMain windows using Spy++. It seems that the TfrmMain window is the real window that has proper screen coordinates, but the TApplication window is the one that appears in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351487",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Is it possible to output a SELECT statement from a PL/SQL block? How can I get a PL/SQL block to output the results of a SELECT statement the same way as if I had done a plain SELECT?
For example how to do a SELECT like:
SELECT foo, bar FROM foobar;
Hint :
BEGIN
SELECT foo, bar FROM foobar;
END;
doesn't work.
A: ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351489",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: Dynamically creating keys in a JavaScript associative array All the documentation I've found so far is to update keys that are already created:
arr['key'] = val;
I have a string like this: " name = oscar "
And I want to end up with something like this:
{ name: 'whatever' }
That is, split the string and get the ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351495",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "207"
} |
Q: Does an ASP.NET SQL Library Exist for Managing Tables? Does anyone know of a SQL library in ASP.NET that can be used to manage tables?
E.g.
SQLTable table = new SQLTable();
table.AddColumn(“First name”, varchar, 100);
table.AddColumn(“Last name”, varchar, 100);
if(table.ColumnExists(“Company”))
table.RemoveColumn(... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351496",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Plugin API design So I have an application that is based heavily on the QT API which using the QPlugin system. It's fairly simple to use, you define a class which inherit from an Interface and when the plugin is loaded you get an instance of that class. In the end it'll boil down to a dlopen/dlsym or LoadLibrary/Get... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351498",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "13"
} |
Q: How to create a pop-up window (the good kind) I need to make a pop-up window for users to log-in to my website from other websites.
I need to use a pop-up window to show the user the address bar so that they know it is a secure login, and not a spoof. For example, if I used a floating iframe, websites could spoof m... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351499",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What's the difference between a CoreAnimation Layer Backed View and a Layer Hosting View? What is the difference between a Layer Backed View and a Layer Hosting View in Core Animation?
What are the steps to setting up each and when is it appropriate to use either type?
A: A layer backed view contains Cocoa or Coco... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351503",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "47"
} |
Q: Programmatically controlled virtual drive How would I go about creating a virtual drive with which I can programmatically and dynamically change the contents?
For instance, program A starts running and creates a virtual drive. When program B looks in the drive, it sees an error log and starts reading/processing it.... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351508",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Akamai Cache refresh How often does Akamai refresh cache?
We use Akamai to cache frequently accessed files. When uploading and overwriting files to the Akamai FTP, I can't see the new file reflected live.
Anybody have any experience with this?
A: Bear in mind that the files may be cached elsewhere as well, includin... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351511",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Is there anything that will do syntax highlighting that I can put into a word document? I'm going to be including some code in a word document. Specifically some sql statements but this question applies to any sort of language. I'd like to make the code look a bit nicer and easier to read with some highlighting.
Is ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351516",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How do I accept an md5sum via command line in C? typedef union
{
uint ui[4];
} md5hash;
void main(void)
{
int opt;
while ((opt = getopt(argc, argv, "c:t:s:h:")) != -1) {
switch (opt) {
case 'h':
hash = optarg;
break;
default: /* '?' */
exit(EX... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351519",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: ASP.NET: Casting XPath to bool - Possible? Greetings!
I have an XML value that I'd like to use as a boolean value to toggle the visibility of a Panel. I have something like this:
<asp:FormView id="MyFormView" runat="server" DataSourceID="MyXmlDataSource">
<ItemTemplate>
<!-- some stuff -->
<asp:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351520",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C++ Huffman Code Header basically, I've got my Huffman table as
std::map<std::string, char> ciMap;
Where string is the bit pattern and char is the value represented by said pattern.
The problem is how do I store that as a header of my compressed file so I can build again the same map when I want to decode it?
Tryi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351522",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UITableViewController subclass won't load I'm trying to show in the screen a table...
Basically I create a custom UITableViewController with the methods needed for the UITableView delegate and data source which is self since UITableViewController does it for you.
When I put it in the -initWithRootView: controller, a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351546",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Can you call one Drupal views template for multiple views? I've used the Views Theming Wizard to output a template and it gave me the following chunk of code to go in template.php.
I'd prefer to just maintain the one template, so all my functions will be calling the same one, and rather than writing numerous version... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351547",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How does one insert a column into a dataset between two existing columns? I'm trying to insert a column into an existing DataSet using C#.
As an example I have a DataSet defined as follows:
DataSet ds = new DataSet();
ds.Tables.Add(new DataTable());
ds.Tables[0].Columns.Add("column_1", typeof(string));
ds.Tables[0].... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351557",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: System.currentTimeMillis vs System.nanoTime Accuracy Vs. Precision
What I would like to know is whether I should use System.currentTimeMillis() or System.nanoTime() when updating my object's positions in my game? Their change in movement is directly proportional to the elapsed time since the last call and I want to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351565",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "411"
} |
Q: Where can I find information about Javascript engine internals? I'm looking for books / articles / papers on Javascript engine internals along the lines of the many reference works about the JVM internals, CLR internals, etc. I could (and likely will) look at the source code for JavaScriptCore and V8/Chromium, but ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351574",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "24"
} |
Q: Why is reflection called reflection instead of introspection? What is the origin of the term reflection? It seems more like introspection. Why isn't it called that?
Introspection: A looking inward; specifically, the act or process of self-examination.
Reflection:
*
*the act of reflecting or the state of being r... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351577",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "81"
} |
Q: Making an expandable button in HTML I need to make OK and Cancel buttons in my HTML, and I'd like them to be a fixed width so the two buttons are the same size. For example, like this:
<style>
button.ok_cancel {
width: 50px;
background-color: #4274af;
font-size: 9px;
line-height: 12px;
color: #f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351578",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I discover/control the level of internal buffering in a C++ fstream? Say I do this (a contrived example):
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char* argv[])
{
ifstream ifs(argv[1]);
char ch;
while(ifs.read(&ch, 1)) {
cout << ch;
}
}
I assu... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351582",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to Build a Secure Send-to-a-Friend Function in PHP? Can anyone suggest a way, or a link to an example, of building a function in PHP that allows users to send a link via e-mail to multiple friends?
A: By "secure" do you mean not allowing your form to be used to send spam?
There are a few ways to combat this:
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351587",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Creating a "chat bubble" on the iPhone, like Tweetie Just curious, did I overlook somewhere in the API to display a chat bubble type image as found in the iPhone's SMS application? There's a few applications out there that use bubbles that look verbatim to the iPhone's and I'm wondering if they're using a native wid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351602",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "12"
} |
Q: Best practices and anti-patterns in creating indexes in SQL Server? What are the things that you would consider when defining indexes, clustered and non-clustered, for SQL Server? Are there any anti-patterns that DB newbies should be aware of? Please explain the "Why" or provide references if possible.
A: Don't te... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351615",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: What is the best way to extend restful_authentication/AuthLogic to support lazy logins by an anonymous iPhone? I'm building an iPhone application that talks to a Ruby on Rails backend. The Ruby on Rails application will also service web users. The restful_authentication plugin is an excellent way to provide quick an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351627",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: How do I load css rules dynamically in Webkit (Safari/Chrome)? I currently have issues in Webkit(Safari and Chrome) were I try to load dynamically (innerHTML) some html into a div, the html contains css rules (...), after the html gets rendered the style definitions are not loaded (so visually I can tell the styles ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351633",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Memcached with Windows and .NET Is there anyone already implement memcached for production use in Windows environment?
Because many blogs that I've read, it's not recommended to run memcached in Windows especially for production use, for example running memcached on windows.
And one more thing, which memcached clien... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351635",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "83"
} |
Q: How to install Hibernate Tools in Eclipse? What is the proper way to install Hibernate Tools in Eclipse as a plugin?
The Hibernate site doesn't really give any instructions.
Looking at the Hibernate Tools binary HibernateTools-3.2.4.Beta1-R200810311334.zip, it appears that I can just unzip this in my eclipse directo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351640",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "129"
} |
Q: Synchronous ADO.NET dataservices calls in Silverlight I'm using ADO.NET dataservices in a Silverlight application and since the silverlight libraries don't support the ToList() call on the IQueryable I thought it might be possible to create an extension method around this called SilverlightToList(). So in this metho... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351644",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inhouse registration vs. OpenID vs. Google Friend Connect vs. Facebook Connect vs. (etc) I'm trying to decide how to allow users to register for my website... there's openID, clickpass, facebook connect, google friend connect, etc, or the good old fashioned in-house "enter a username, email, password, etc."
Looking ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351651",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "22"
} |
Q: How do I mock an IMAP server in Python, despite extreme laziness? I'm curious to know if there is an easy way to mock an IMAP server (a la the imaplib module) in Python, without doing a lot of work.
Is there a pre-existing solution? Ideally I could connect to the existing IMAP server, do a dump, and have the mock se... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351656",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Preventing sqlplus truncation of column names, without individual column formatting By default sqlplus truncates column names to the length of the underlying data type. Many of the column names in our database are prefixed by the table name, and therefore look identical when truncated.
I need to specify select * que... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351657",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Using a NSMutableArray to store data Can you store an Array ( that contains another two subarrays one being a string and another another array) into a single MutableArray object?
A: Please read the documentation on NSArray. It can contain any number of arbitrary objects.
That said, without knowing more about what y... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351661",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to see SQL query using Hibernate Tools in Eclipse? Having installed Hibernate Tools in Eclipse, how can I view the would-be generated SQL query of from the JPA query language? (I'm using Hibernate as my JPA implementation)
My Java DAO class looks something like:
public List<Person> findById(int id)
{
return ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351665",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I trick MVC into rendering links based on a different virtual path? I'm running a bunch of apps on discountasp.net with the subdomain addon. Since with shared hosting I can't have multiple IIS sites, I've also written an HTTP module that allows sites in subfolders to operate as if they are running in the roo... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351677",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Client-side table rendering with extremely large data tables Problem: Customer X has requested that pages using XML DataBinding and Databound tables in MSIE be re-factored to work cross-browser.
Question: What is the best-practice way to mimic the MSIE DataBinding feature of MSIE cross-browser (i.e., in both MSIE an... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351683",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How much of the compiler should we know? In order to write better code, is it worth to know deeply what the compiler does?
Just how much would be enough? I'm not a bit scrubber, but I was thinking that knowing how the compiler operates would make me a better programmer. Am I wrong?
If so, what resources would you ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351690",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: Which method when navigation bar "back" button clicked? I am using UINavigationController to push and pop a view.
I used [[self navigationController] pushViewController:myView animated:YES] to push in a view. Then I clicked the top-left back button to go back, I am getting error:
*** -[NSCFDictionary superview]: un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351693",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: LINQ Subquery I need to perform a LINQ query for both a time period from a database table (Period) and a list of invoices from a table (Invoice) that fall within the period's start and end dates. There is no key reference between the two tables, how can I do the Invoice subquery?
I am trying to do something similar... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Software for Windows server monitoring Can anyone recommend monitoring software for a windows environment?
We already have monitoring in the sense of resources and availability. I want to know who logged in and changed settings, added files etc.
We have outsourced IT and I want to be able to track down all the chan... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351709",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "7"
} |
Q: Sharing Views between different controllers Is it a good idea to share views between different controllers (using the Views/Shared folder)? I am creating my first MVC application and it requires some pieces of data that are similar to each other. They "explain" different things (and will therefore be stored in diffe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using More than 2 Entity Relationships in Report Builder (SQL Server 2005) I've created a model using SQL Server Reporting Services. When I try to create a report using the Report Builder, I can drag an entity to the report, followed by a nested sub-entity. I get the two-level grouping as expected.
However, I cannot... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Understanding the Sun JVM I'm looking for some useful books for a beginner who wants to better understand the Sun JVM
A: Not specific to the Sun Java Virtual Machine implementation, but The Java Virtual Machine Specifications from Sun may be an interesting read.
A: You can try out this.
Ivor Horton's Beginning J... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351729",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to convert line breaks in input form in ASP.NET? How do you usually convert line breaks in a form textbox or input=text element to html line breaks?
Thanks
Edit: Is it always \r\n with all browsers?
A: Or in C#:
myString.Replace("\r\n", "<br />");
If you're worried about it being different on different platfor... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351732",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How would one write object-oriented code in C? What are some ways to write object-oriented code in C? Especially with regard to polymorphism.
See also this Stack Overflow question Object-orientation in C.
A: Namespaces are often done by doing:
stack_push(thing *)
instead of
stack::push(thing *)
To make a C struc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351733",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "537"
} |
Q: Centralize Eclipse Configuration Does anybody have a system that they use to maintain the same eclipse configuration between computers? How well does it work?
I am getting to a point where I have a reasonable setup to get a new Eclipse installation to the same point as my others, and I miss the emacs functionality ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: running code with threads in Octave I have several blocks of the following code that each use there own matrix. Is there a way to run each block in it's own thread rather then run all of them sequentially?
for i=1:length(DJI)
DJI2(:,1) = reshape(datenum(strvcat(DJI(:,2)(:)), length(DJI(:,2)),'yyyy-mm-dd'));
DJI2(:,... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351754",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Application Settings in the Database I want to centrally locate all of my application settings in the database. I have a database object which stores the app.settings in an XML column. I'd like to have my application read that object and then parse the XML column into its own app settings. Is there any easy way t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/351758",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.