text stringlengths 8 267k | meta dict |
|---|---|
Q: Where to disable cross-network protection in Opera? In JS security issue with Opera 11.01, after moving from server A to B I learned that opera has some "cross-network" protection.
I encountered the same js security problem and I found that Opera 11.10 (“Barracuda”) added a preference to disable cross-network protec... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543678",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "9"
} |
Q: Porting C++ socket code to Windows I am trying to make a C++ library used by one of my classes work on both Windows and Linux (it was designed for Linux). The code for it is here (it's not large). I am compiling with MinGW on Windows 7 64 bit.
I'm running into trouble with HTTPInputStream during the final linking st... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543681",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: mouseMoved not called I have a subclassed NSView which is part of a .xib-file of a subclassed NSDocument, which gets alive by the default behaviour of NSDocumentController's openDocument: method. In this subclassed NSView I have implemented the methods awakeFromNib, in which the view's NSWindow setAcceptsMouseMovedE... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543684",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: Crash when calling clear on an Empty Map I'm getting a strange crash when I try to interact with a map in this particular class. When I try to call clear() or even begin() on the map it crashes. I haven't added anything to map, at this point nothing has touched it at all.
Code in question:
spriteMap_.clear();
if (!s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543687",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I remove the 'people like this' message next to facebook like button?
Possible Duplicate:
Facebook Like-Button - hide count?
I created a facebook like button using their Open Graph protocol.
Everything works well, except I would like to remove the message next to the Like button that reads
"Name and Nam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543694",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Bug in Chrome or bad CSS? (anchor with visibility hidden) Test this simple line in any HTML:
<a href="anything"><span style="visibility:hidden;">insible text here</span></a>
(you can test it directly from here: http://jsfiddle.net/wqS3E/ )
In Firefox and IE you can click the link (even more, you can see the default... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543696",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Does "vector::iterator" mean there is a "vector" namespace? I have seen the code
vector<char> v(10);
vector<char>::iterator p;
here what is the need of vector<char>::.Does it mean iterator is a class inside vector namespace?
A:
Does it mean iterator is a class inside vector namespace?
Not quite, is a type inside... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543697",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Android run bash command in app Hi i'm developing an application which requires me to run some bash code is there a way i can hard code the script into my app and then run it? For instance (this is a VERY simplified example)
#!/system/bin/sh
#
if [ ! -f /sdcard/hello.txt ]
then
echo 'Hello World' >> /sdcard/hello.t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543700",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: Error 6017: The NavigationProperty '(propertyname)' on the type '(typename)' is the source of Error 6017: The NavigationProperty '(propertyname)' on the type '(typename)' is the source of a generated property '(otherpropertyname)' which conflicts with a member of the same name.
OK, I'm fairly certain I understand wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543704",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Why can't my program delete the files it creates under Win7? I've made a Java program in Eclipse. I started on Windows XP, but have recently upgraded.
As part of it's saving mechanism, the program writes the settings to a file settings_new.sav. If that goes ok, it deletes the settings.sav, and renames the new one to... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543707",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Chain trigger in Task Scheduler in Windows I scheduled some tasks in Windows task scheduler. I installed a third party tool called Bmail that added a task that sends email from the task scheduler independently. It can be triggered at a given time. Does any one know how to set this up so that Bmail task sends emails ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543708",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: "Bindable" variables in JavaScript? From my littleexperience in Flex, I learned about Bindable variables, so that the content of a text element changed with th value of a variable, for example.
I'm wondering if it's possible to do such a thing in JavaScript. For instance, suppose I have an <h1 id="big_title"> that I... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543710",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Getting the database name from a SQL Server Express database in Visual Studio I'm currently using this connection string to attach to my database that I created in Visual Studio:
Data Source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|Database1.mdf;User Instance=true
I'm trying to host the... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543711",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Using NSData efficiently I have a bit off code that manipulates Audio files by first putting all the audio file data in NSData variables. But it crashes sometimes because it uses to much RAM
NSData *data1 = [NSData dataWithContentsOfFile: someFile];
I have checked using Instruments that everything was being releas... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543712",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: What are the advantages and disadvantages of real time collaboration in an IDE? I can think of a few disadvantages of having real time collaboration in an IDE like no two people code in the same way so there are chances of semantically conflicting edits that can break the work.
But are there any advantages to it? Wh... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543716",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Test in JQuery if an element is at the top of screen I have a div that is positioned about 100px from the top of the browser window. When the user scrolls down, I want the div to stay where it is until it reaches the top of the screen. Then, I'll change some CSS with JQuery to make the position to change to fixed ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543718",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "41"
} |
Q: regex (vba) - repeat a pattern My code is:
Dim regEx, retVal
' Create regular expression.
set text = "update my_table set time4 = sysdate, randfield7 = 'FAeKE', randfield3 = 'MyE', the_field9 = 'test' WHERE my_key = '37', tymy_key = 'me';"
Set regEx = CreateObject("vbscript.regex... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543720",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: 1 table, but two tables. Something like disk partitioning for mysql tables Is there a way to have one table that is split in two, or partitioned like a hard drive, so that I can call
SELECT * FROM email validated
or
SELECT * FROM email pending
and get two different results. Both results not containing the other's... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543722",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Is this the suitable scenario for Multi-column Indexes? My programming environment is Rails 2.3 and PostgreSQL 8 (shared Database on Heroku):
I have read this
http://devcenter.heroku.com/articles/postgresql-indexes#multicolumn_indexes
and other related resources on the Internet before I started building my app in th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543726",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: UITableViewCell with UITableViewCellStyleValue1; how to get cell to resize textLabel to respect detailtext UITableViewCellStyleValue1 is the cell style that has left-hand black text and right-hand blue detail text.
I can set adjustsFontSizeToFitWidth to ensure that the textLabel respects the width of the cell, but i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543731",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: How can I speed up Rails unit tests involving image upload/resizing? My app does a lot with images. I use paperclip to attach them to models. I have tons of tests (Test::Unit) that involve creating images, these run pretty slowly.
I use FactoryGirl to create models in my tests. This is how I create image attachments... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543736",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Java regex error - Look-behind group does not have an obvious maximum length I get this error:
java.util.regex.PatternSyntaxException: Look-behind group does not have an
obvious maximum length near index 22
([a-z])(?!.*\1)(?<!\1.+)([a-z])(?!.*\2)(?<!\2.+)(.)(\3)(.)(\5)
^
I'm trying to matc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543746",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "19"
} |
Q: How often should I open/close my Booksleeve connection? I'm using the Booksleeve library in a C#/ASP.NET 4 application. Currently the RedisConnection object is a static object across my MonoLink class. Should I be keeping this connection open, or should I be open/closing it after each query/transaction (as I'm doi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543751",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "16"
} |
Q: PHP Form/jQuery validate e-mail address - Display bad email addresses I'm looking for a jQuery plugin to validate a text file that contains many records (including email addresses).
Example: Textfile.txt
1)Last Name, First Name, Email Address
..
..
100)Last Name, First Name, Email Address
If a bad email address is... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543752",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: C bitwise shift I suppose sizeof(char) is one byte. Then when I write following code,
#include<stdio.h>
int main(void)
{
char x = 10;
printf("%d", x<<5);
}
The output is 320
My question is, if char is one byte long and value is 10, it should be:
0000 1010
When I shift by 5, shouldn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543753",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: what's the usage of extensions in the build section For some maven POM.xml, I found there are extensions in the build section. What's the purpose to include build extensions?
A: Takes less than 6 second in Google and read. See here http://maven.apache.org/pom.html#Extensions
Extensions are a list of artifacts that... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543762",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How many bits are needed to address this much memory? I'm taking a programming fundamentals course and currently I'm on the chapter where it talks about computer organization and operations on bits - how the CPU (ALU, CU, registers, etc.) works.
I have a fairly good understanding of the binary language. I understand... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543763",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to stop the forces acting on a body in box2d I am using box2d on the iphone to create a game. I have a body that is effected by gravity to move down and not right or left. It will get hit by another body and will then be moving right or left. I then have a reset button which moves the body back to its starting p... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543764",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Pop function and linked list implementation Alright guys, so I know how the pop function works obviously. I also know that I need to set a LinkNode * top = head and that if top == NULL that you need to return NULL. I'm just not sure what I'm honestly supposed to do after that. The return is supposed to remove and... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543765",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: q(i,j)=X x P1(i,j) + (1-X) x P2(i,j) :how to code it in matlab? q(i,j)=X x P1(i,j) + (1-X) x P2(i,j)
where P1 and P2 are two input images and X is any constant value ,e.g X=0.5
how to write the code for it ?
A: Assuming P1 and P2 are stored in matrices and have the same size, you can just write
q = X * P1 + (1-X) *... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543770",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-3"
} |
Q: Getting the type of an object in Javascript when its prototype is assigned an instance of another object I must have some sort of fundamental misunderstanding of how objects work in Javascript because I am unable to figure out why the following outputs what it does. You can see the jsfiddle of the following code he... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543771",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: MovieClip does everything it's supposed to, and still there is `error 1009` I'm creating game in which user is given a map and five flags. User must drag flags, one by one to the countries, so after creating MovieClips that represent flags, I started creating code for them. That worked for France, but after I copied... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543777",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Ruby JSON parse changes Hash keys Lets say I have this Hash:
{
:info => [
{
:from => "Ryan Bates",
:message => "sup bra",
:time => "04:35 AM"
}
]
}
I can call the info array by doing hash[:info].
Now when I turn this into JSON (JSON.generate), and then parse it (JSON.parse), I ge... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543779",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "72"
} |
Q: How to mock and stub active record before_create callback with factory_girl I have an ActiveRecord Model, PricePackage. That has a before_create call back. This call back uses a 3rd party API to make a remote connection. I am using factory girl and would like to stub out this api so that when new factories are built... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543782",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "17"
} |
Q: Whats design pattern does UITableView use to populate and what are the benefits of delegate and datasource setup? Whats design pattern does UITableView use to populate and what are the benefits?
Is it delegate pattern? Reason I am asking is that it's not just delegate but the datasource as well.Seems more like along... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543786",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Changing a directory time/date I tried utime() on both Windows (XP) and Linux. On Windows I get an EACCES error, on Linux I don't get any error (but the time is not changed). My utime() code is fine, because it works on files. I could not find if utime() is supposed to work on directories or not, but if not, how can... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543787",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Adding an ID to a Raphael circle I'm trying to make a drag curver with Raphael.
Please look for this:
r.circle(x, y, 6).attr({
fill: "#ff0000",
stroke: "none",
id: "cir1"
}),
This is my code:
$(document).ready(function() {
var r = Raphael("holder", 1583, ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543792",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Problem with heatmaps in Google Fusion Tables These are my two functions for searching my table and making overlays. (the map is created in a different function). For some reason, the dotmap one works fine, but the heatmap one doesn't work with the where clause. Any insight?
function heatmap() {
var layer = new ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543796",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Best data structure for an immutable persistent 3D grid I'm experimenting with writing a game in a functional programming style, which implies representing the game state with a purely functional, immutable data structures.
One of the most important data structures would be a 3D grid representing the world, where ob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543801",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "10"
} |
Q: WebSockets - How to create different messages? I am creating a websocket chat application and I managed to relay chat messages to other browsers connected. I have a console application listening on one port.
My question is... If one person logs on to the system I want everybody to know that, how can I do that? I'm u... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543804",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Difference between the Kohana's Request cookie(), Response cookie() and the Cookie class? I'm working on a program dealing with cookies under the kohana's HMVC structure, and I find that Kohana has 3 ways to get/set the cookie. They are
Request::current()->cookie(), Response->cookie(), and the cookie class (Cookie:... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543811",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: jquery mobile page flash during transition after submit I am using phonegap + jquery mobile and have a submit function that works and after it submits it transitions to another page. these pages are inner pages such as data-role="pages" like jquery mobile uses. The problem is that before it finally transitions to th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543815",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: regex javascript to match both RGB and RGBA Currently I have this regex which matches to an RGB string. I need it enhanced so that it is robust enough to match either RGB or RGBA.
rgbRegex = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/; //matches RGB
http://jsfiddle.net/YxU2m/
var rgbString = "rgb(0, 70, 255)";
var RGBAStri... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543818",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Replace multiple occurrences of a string with different values I have a script that generates content containing certain tokens, and I need to replace each occurrence of a token, with different content resulting from a separate loop.
It's simple to use str_replace to replace all occurrences of the token with the sam... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543821",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: How to remove a specific parameter from the URL in PHP? Example:
$url = http://example.com/?arg=val&arg2=test&arv3=testing&arv2=val2
remove_url_arg($url, "arg2")
echo($url); // http://example.com/?arg=val&arv3=testing
The above remove_url_arg() function removes all occurrence of arg2 argument from the URL
A: un... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543826",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Rails testing has_many association failure I have 2 models. A User and a Task. Here's the code for them both:
class User < ActiveRecord::Base
has_many :tasks
has_many :assigned_tasks, :class_name => 'Task', :foreign_key => 'assigned_user_id'
end
class Task < ActiveRecord::Base
belongs_to :user
belongs_to :... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543828",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Problem with Google Calendar API Java Library I try to use Google Calendar API Java library, and copy this code from example:
CalendarService myService = new CalendarService("abc");
try {
myService.setUserCredentials("авaea@gmail.com", "1111223");
} catch (AuthenticationException e) {
// TODO Auto-generated... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543834",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Configure android EditText to allow decimals and negatives I have an Android EditText that I want to have the number keyboard come up.
If I set the android:inputType to numberSigned, I get the number keyboard and the ability to type in negatives. However this won't let me use decimals. If I use the numberDecimal ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543835",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "42"
} |
Q: difference between ++i and i++ in for loop I understand well how postfix and prefix increments/decrements work. But my question is, in a for loop, which is more efficient or faster, and which is more commonly used and why?
Prefix?
for(i = 0; i < 3; ++i) {...}
Or postfix?
for(i = 0; i < 3; i++) {...}
A: For ints i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543843",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: AntiForgeryToken HtmlHelper throwing NotImplementedException when run within a RazorGenerator class I'm using RazorGenerator to unit test my Razor/MVC3 per David Ebbo's post here http://blog.davidebbo.com/2011/06/unit-test-your-mvc-views-using-razor.html and every time I attempt to use the AntiForgeryToken HtmlHelpe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543844",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to remove additional padding from a WPF TextBlock? By default a WPF TextBlock seems to have additional top and bottom padding applied. I wish this wasn't so.
*
*I've tried setting negative padding, but got an exception:
0,-10,0,0' is not a valid value for property 'Padding'.
*I've tried setting the LineHei... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543846",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "30"
} |
Q: Automatically check for valid HTML on each request I am cleaning up my website and i would like to see html errors and warnings on each page automatically. I use to use Html Validator for firefox (addon) but it doesnt appear to validate automatically anymore. I don't know if its because of the addon version or the f... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543850",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Cant connect/send from hMailServer I have recently setup hMailServer.
I have a domain on godaddy so I am using the MX record given by godaddy. For this example, I am going to say that I am using mail.hmailserver.net as the MX Record.
I have added the username and password under SETTINGS > Protocols > SMTP on hMailSe... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543853",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Weird problems with CSS position:absolute I am having some really weird problems with position:absolute. I have set the main title of my webpage to be position absolute, but when I resize the window, the text moves around. The really weird thing is that the tagline (the Bible verse) is also position:absolute, but it... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543854",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Real Time issues: Oracle Performance tuning (types / indexes / plsql / queries) I am looking for a real time solution...
Below are my DB columns. I am using Oracle10g. Please help me in defining table types / indexes and tuned PLSQL / query (both) for the updates and insertion
Insert and Update queries are simple b... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543857",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: in javascript, call each function in array with a callback using forEach? An array of functions, [fn1,fn2,...], each "returns" through a callback, passing an optional error. If an error is returned through the callback, then subsequent functions in the array should not be called.
// one example function
function fn... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543858",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Model validation. Don't want to repeat myself. Django I have a model M that has a field num=models.IntegerField()
I have a modelform called F for model M.
I want to ensure that num is never negative.
If I do validation in my form class, F, then I can do clean_num():
if negative then throw ValidationError('Num can ne... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543862",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: which operator overloading has been used for ifstream object to evalute to boolean I am new to C++. recently I come across the following code
ifstream in("somefile");
if(in){
//read the file....
}
I am wondering which operator overloading the ifstream might have used for the in object to automatically evaluate... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543870",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: MPI Irecv cannot receive correctly to the first element of a buffer? I've just been experimenting with MPI, and copied and ran this code, taken from the second code example at [the LLNL MPI tutorial][1].
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char ** argv) {
int num_tasks, ra... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543871",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: VB.net Populate TreeView with DataSet using Parent-Child Relations I'm working on a program that allows me to edit XML data in a DataGridView. I have most everything working but I don't like my current TreeView Structure.
I load the XML data into a DataSet and edit it there, so that is what I'd prefer to base my Tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543873",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Do ajax requests works if JavaScript is disabled in the browser? I am developing a web application and am using jQuery to provide a good user interface for users. Therefore, I am using ajax requests and many jQuery functions.
If I disable JavaScript in the browser most of the function will not work because I am send... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543877",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "8"
} |
Q: issue with changing UIButton background image I have the following code which basically just initialize a UIButton.
self.button = [[UIButton alloc] init];
self.button.autoresizingMask = UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleBottomMargin | UIViewA... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543879",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: IIS CPU goes bezerk after updating web.config in a C# application with a Singleton with a thread I have a web application that does the following:
You click a button to instantiate a singleton, which creates a Thread. That Thread runs continuously doing some HTTP requests to gather some data. You can click a stop ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543885",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I view the response data from the server using TTURLRequest? Is there an easy way to dump the response data from a TTURLRequest? I'm getting a server side error and I'd like to be able to quickly log the response in the console without having to tail the server logs. I'm using Three20's TTURLRequest in conjun... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543890",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Doubly-linked list infinite loop? If I were to create a node class, as shown below, and if it were used in a doubly-linked list, would it create an infinite loop upon deconstruction of the doubly linked list? Or would it terminate nicely?
class Node
{
Node( );
~Node( )
{
delete mNext; //dealloc... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543891",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: Displaying retrieved value in excel file into ALV Good Day Everyone,
There is this something i've been trying to exercise in abap and that is the Displaying of column datas in ALV by retrieving the values from excel file into an internal table. I've been trying to debug my program for quite some time now and i can't... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543894",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: mysql error in retrieving data I have data in my webpage that is coming from MySQL. Its a field that is initially zero and increases in value as the users visits more pages, it counts them and writes the tracked value to a cell on the pages.
But the problem is it works fine for few weeks then suddenly it again star... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543895",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Eclipse : Importing Existing Projects into workspace We have a Existing project downloaded from server which was build on Maven .
(this is in the form of Folder Structure )
While import that project in Eclipse , should i use
Existing Projects into workspace
Or
File System
Please guide me
Thank you .
A: If you... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543896",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "2"
} |
Q: Inserting into table using Python and MySQLdb I am using Python and MySQLdb, I have a table which is displayed below but I get error message each time I try to insert into the table.
INSERT INTO reviews (entry,created_time, user_id, branch_id, title)VALUES('branches that would lead use to the ciyrt', '2011-09-20 00... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543897",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I specify an action's default model I want to make an action's model to be the current user's if not specified. How to do that?
For example, I have an profile action in user controller. If the url is like /user/profile/3 , It will show profile of user whose id is 3 and if the url is like /user/profile it will... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543899",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "-1"
} |
Q: Add other object and receive error MultiValueDictKeyError (Django admin) I have a relationship follow as:
class Question(models.Model):
qid = models.PositiveIntegerField(primary_key=True)
content = models.CharField(max_length=128)
class Answer(models.Model):
answerid = models.PositiveIntegerField(primary_k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543901",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: .goutputstream-XXXXX - possible to relocate? I've been trying to create a union file system for a college project. One of its features that differentiates it from unionfs is the fact that there are no copy-ups. This means that if a file is located in a certain branch, it will remain there even if it is written to.
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543912",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: XML - Need to add more child node with a loop <field name="dob_day" type="list" default="select"
description="COM_USERS_REGISTER_DOB_DAY_DESC"
filter="string"
label="COM_USERS_REGISTER_DOB_DAY_LABEL"
message="COM_USERS_REGISTER_DOB_DAY_MESSAGE"
required="tr... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543914",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do you select all rows which match one individual row in either of a thousand columns? For example, my personality match database has 1000 columns, with genre titles such as:
autoid | movie_genre_comedy | movie_genre_action | movie_genre_horror | more genres -->
23432 | 1 | 0 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543915",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: what's the fastest way to tell whether we're on a weekday in a particular hour range? I am using PHP/MySQLin my project, and I have a table that holds time values, and days of week. The rows are SUNDAY_OPEN SUNDAY_CLOSE etc. for the rest of the week. These hold times like 9:00 and 17:00.
All I want to do is on a cer... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543919",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: When to use Navigator or Package Explorer view? I have imported an existing project built using Maven into my Eclipse workspace. Should we use Navigator or Package Explorer to view our projects in Eclipse?
A: The Navigator is more of a hierarchical file explorer, to explore all artifacts within the project, while t... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543920",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "11"
} |
Q: Silverlight/Windows Phone ViewModel updating question I have a XAML page whose DataContext is set to my ViewModel. A switch control on the page is bound to the following code in the ViewModel:
public bool TeamLiveTileEnabled
{
get
{
return Data.Subscriptions.Any(s => s.TeamName == this.Team.Name);
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543921",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: jQuery: having radio buttons and a textarea update hidden form fields Really new to using jQuery and trying to find an example I need.
1) if I have, say, 5 radio buttons to choose an item, how do I pass the selected item to a hidden form field?
2) same question for a textarea. How do I pass the text written to a hid... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543922",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Loading image from cache using BitmapFactory.decodeStream() in Android UPDATES: Even if i don't retrieve images from cache, i tried to retrieve via Drawable where i stored all the 18 images in the "drawable-mdpi" folder. Still, a blank screen was display.
I was able to retrieved images from the server and save the i... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543928",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How can I initialize an array in MIPS? In my previous question, I inquired about converting the MAX_ARRAY() function into MIPS. I have completed that task. Now, I wish to initialize an array in my program. How might I achieve this?
addi $t1,$zero, 0 # initialize index i to 0
loop: add $t1,$t1,1 ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543929",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "6"
} |
Q: "error A2006: undefined symbol" in masm32 in window 7 64 bit? When i run this example, I get an error. After removing PROC1 PROC FAR, I get another error "symbol type conflict". With /coff: "leading underscore required for start address : START".
Microsoft (R) Macro Assembler Version 6.14.8444 Copyright (C) Microso... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543930",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Layout form fields without tables I have a very simple HTML layout I'm trying to implement. It is something like this:
A Label: [Input ]
Another Label: [Input ]
The Last Label: [Input ]
In the past, I'd just go ahead and use a table for this. Otherwise, it's a... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543933",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "3"
} |
Q: What is the Pythonic way to merge 2 lists of tuples and add the nonunique values in the tuples? I am looking for the best way to refactor the Python code below. I think there is a Pythonic way to do this in 2 or 3 lines of code, but couldn't figure it out. I have searched Stackoverflow but couldn't find similar prob... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543944",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Generating random Unicode between certain range I am trying to generate random Unicode characters with two starting number+letter combination..
I have tried the following below but I am getting an error.
def rand_unicode():
b = ['03','20']
l = ''.join([random.choice('ABCDEF0123456789') for x in xrange(2)])
... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543945",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Q: How to compare to datatable with different columns I have the EMP datatable it contains 500 records like this:
UserAceNumber UserID
emp001
emp002
emp003
emp004
(userid will be empty for all the 500 records)
Another Empdetails datatable contains some records which I wi... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543947",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: RESTKIT internal mapping fails if json value == NULL I am using RESTKIT to map the properties from the server side to the properties in the client side.
I am hitting the [NSNull unsignedIntValue] error when RESTKIT is trying to map a NULL value from the server to a NSUInteger property on the client side.
For example... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543952",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: PHP---if(!session_is_registered deprecated? This if statement has been deprecated
if(!session_is_registered('firstname')){
header("location: index.php"); // << makes the script send them to any page we set
} else {
print "<h2>Could not log you out, sorry the system encountered an error.</h2>";
exit();
}
I replaced... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543953",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to use from one short key on active tab? I have a window that has some tabs,in each tab i can create a new item.
I want define a short key for create new item.But i want my short Key work on active tab.
For example, when Tab1 was active my short key work on create item in Tab1 or when Tab2 was active my short k... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543955",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: form post in Chrome extension popup not doing anything I am making a chrome extension and I have a popup.html page that contains a form with method post, it does not do anything when opened using the popup button however if the page is opened as an options page or just a normal html page, the form posts fine and th... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543958",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "5"
} |
Q: Drawing formatted text I set up a draw rectangle to draw simple formatted text first aligned to the left as
*item 1
[1]Something
content
[2]Something else
<a> subsomething else
content
<b> another subsomething else
content
*item 2
The end.
and I woul... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543959",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Simple hierarchical listing in PyQT I'm trying to create a UI with 3 columns - when you select an item in the left column, the select item is passed to a function, and it returns the items for the middle column (and of course same for selecting items in the middle column)
Should be simple, but I can't find any easy ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543961",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: How to set multiple select options by default from array I'm trying to retrieve options/values from my database in the from of an array i would like to set these option/values as selected by default in a multiple select list and display them to the user where they will be able to updated their data if necessary.
//d... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543965",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "1"
} |
Q: Raphael + svgweb + svg core Can it be possible to use Raphael js with svg web and svg core (original SVG API), so that I can get the benefit of all available features? I tried to load them together, but nothing would happen. Perhaps they overwrite each other's functionalities.
More precisely, once again my question ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543968",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Options on spinner based on which button clicked in Android I have this layout with buttons A & B and a spinner under them.
The A & B buttons work like radio buttons. I want to make it, when the user clicks button A, the spinner shows options for example 1,2,3,4 but when the user clicks the button B, the spinner wil... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543971",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to speed of learning android programming by reducing redundant activities? I'm learning android. Fort testing every aspect of android SDK I need to create new project in eclipse and create new class and so on. I need a new way to decrease these redundant activities.
In Java programming I use groovy to learn Jav... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543973",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: Deploying JRuby/Rails to Glassfish: undefined method `bundle_path' for Bundler:Module The following error shows up in my Glassfish log when attempting to access my app:
Caused by: org.jruby.exceptions.RaiseException: (NameError) method 'to_yaml' not defined in Object
Looking through the log I see this:
undefined me... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543974",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How to pass -g3 flag to gcc via Make command line? I am debug our project, but I find that the project was compiled with -g ,but not -g3, which means that I can't expand macros in gdb. I want to add -g3 flag to gcc, but I don't want to modify Makefile, I just want to add this flag via Make command line, could anyone... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543978",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "29"
} |
Q: What is causing a NoMethodError '_view_paths' exception? First off, the exception in question:
undefined method '_view_paths' for nil:NilClass`
The related routes:
get 'payments/index' => 'payments#index'
get 'payments/class' => 'payments#class'
get 'payments/kids' => 'payments#kids'
get 'payments/donate' => 'payme... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543980",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: urlencoding in pear changes post request values I recently downloaded PEAR package and i'm currently using HTTP_Requst2.
It was working find until i tried posting to a site that included a hidden parameter that had a space in the value: &login=Sign In
The problem is that the HTTP_Request is urlencoding the request s... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543987",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "0"
} |
Q: How do I add OnClick function that goes to a page link (url) with javascript/jquery Ok I am using the fantastic map plugin found here:
http://jvectormap.owl-hollow.net/#maps
I am a noob ... can't figure out how to implement the parameter mentioned in the "reference" part on the documention which states you can use ... | {
"language": "en",
"url": "https://stackoverflow.com/questions/7543988",
"timestamp": "2023-03-29T00:00:00",
"source": "stackexchange",
"question_score": "4"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.