hi, i'm using the code of this link: http://blog.stormyprods.com/2008/09/proper-usage-of-mpvolumeview-class.html
it is working on an ipod touch, but NOT on iphones.
what can be the reason for that?
i have a simple update query (foo column type is BOOLEAN (default false)):
update tablename set foo = true where id = 234;
which "id" is set to (primary) key, and if i run "explain analyze" i got:
Index Cond: (id = 234)
Total runtime: 0.358 ms
but still, i have plenty of unexplained queries at slow log (pgfouine), which took more than 200s (?!):
Times executed: 99, Av. duration (s): 70
can anyone please explain, whats the reason for that? (1.5 mio rows in table, postgresql 8.4)
Trying to share cookies accross 2 domains in asp.net, for some reason 1 domain has a '.' before the domain, and the other doesn't.
Why is that?
e.g:
.staging.example.com
and
staging.example.com
Is this something to do with how I create the cookie, or a web.config change?
I am not using forms authentication, just creating a cookie manually.
For some reason when I download zip files with IE8 I get Folder is invalid or corrupted while downloading with Firefox or Chrome I can open the file. Is there a fix for this?
Hi i'm trying to do a regex that will show all product keys with the value #####-#####-#####-#####-#####
this is the regular expression i have created
[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}
for some reason it just isn't working.
Any help?
int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout);
I'm a little confused about the maxevents parameter. Let's say I want to write a server that can handle up to 10k connections. Would I define maxevents as 10000 then, or should it be be lower for some reason?
For some reason, XCode has decided to start copying a huge Prefix.pch.gch file into my application's resources folder when building. This file is not in the Copy Bundle Resources build phase, nor can I find any other project setting that should tell XCode to do this. Has anyone seen this before and know what's going on?
I'm writing an Qt application and I go through authorization process and
everything. I'm even able to fetch the @self feed, but for some reason I
get error 404 when trying to do the same thing with @consumption:
"Download of https://www.googleapis.com/buzz/v1/activities/v.kiril/@consumption failed:
Error downloading https://www.googleapis.com/buzz/v1/activities/v.kiril/@consumption - server replied:
Not Found"
I've got this url from the Google Buzz API. And I've tried to use my personal google profile ID and this @me namespace. Without success
I'm looking for a way to programatically select all the content inside a TinyMCE editor instance.
The reason I need this is that I'd like it if all the text inside the editor was selected, as soon as someone clicks on it (I'm using TinyMCE in conjunction with JEditable, by the way).
Thanks,
Edan
what is default line-height of browsers like font-size is 16px?
for which HTML elements i should define line-height and for which not?
What is the reason behind to give line-height to body { } ?
Will line-height effect to single line text?
If I'm using font in em then should i also use use line-height in em?
What is co-relation between line-height and font-size?
I downloaded the latest jquery.scrollTo from the plugins site. Is there an obvious reason why the minified version does not work? With the exact same code the console throws the error:
$.scrollTo is not a function
By default ASP.NET writes any unhandled exception to the default ASP.NET X.Y.Z.0 event log source. Is it possible to specify either configuration that the events and exceptions for a particular application has to be logged in a specific event log Source?
The reason is that I would want all issues directly related to my application to be stored in a separate event log category that can then be filtered against.
hi, i know this is kinda retarded but I just can't figure it out. I'm debugging this:
xor eax,eax
mov ah,[var1]
mov al,[var2]
call addition
stop: jmp stop
var1: db 5
var2: db 6
addition:
add ah,al
ret
the numbers that I find on addresses var1 and var2 are 0x0E and 0x07. I know it's not segmented, but that ain't reason for it to do such escapades, because the addition call works just fine. Could you please explain to me where is my mistake?
Hi all,
I'm trying to build a small fb application using asp.net mvc 2, and facebook C# .net
From some reason, the code from the sample application doesn't seem to work for me.
Here's the exception I am receiving from my web.config file.
Unrecognized attribute 'apiKey'. Note
that attribute names are
case-sensitive.
Source Error:
<facebookSettings
apiKey="XXXX"
apiSecret="XXXX"
appId="XXXX" />
Any ideas?
We've noticed that when checking in updates that our .DFM files have had ExplicitWidth and ExplicitHeight properties added for what appears to be no particular reason.
My two questions are, what are they for and why do they get automatically added by Delphi?
Below is an example with the property in:
object Splitter2: TcxSplitter
Left = 0
Top = 292
Width = 566
Height = 8
Cursor = crVSplit
HotZoneClassName = 'TcxXPTaskBarStyle'
AlignSplitter = salBottom
Control = BottomPanel
Color = clBtnFace
ExplicitWidth = 8
end
As an example, why do most LINQ operators accept Expression<Func<TSource>> and it's equivalent Func<TSource>
What's the benefit/reason for using the generic Expression class instead of straight up lamda syntax?
I'm writing a class that excepts a product_id and a $_FILES array as it's constructor. The class saves these variables and uses them to create a new directory named by product_id and attempts to copy the temp file to my specified directory.
For some reason my class isn't even getting as far as creating a directory (which should happen in the constructor)
Here's a link to my code: http://pastie.org/955454
I was wondering whether there is a simple PHP library to test the loading speed of a web page or a single resource similar to Google Page Speed and Yahoo! YSlow.
The reason is that I'd like to build a web based alternative.
I have text objects on a Crystal Report in Visual Studio with an initial capital. When I print the report, the text is all lower case.
And the reason is?
Hello,
I am trying to change the content of a specific line in a batch of files. I thought that would be a piece of cake but for some reason, nothing happens, so I guess I am missing something.
Line 8 should have been replaced.
Here the csh script I used:
!/bin/csh
#
replace context in line xxx by yyy
2010/05/07
set files = ls FILENAMEPART*
echo $files
foreach file ($files)
sed '8,8 s/1/2 /' $file
end
thanks for suggestions
How in Makefile export variable first then make another variable's expansion?
somevar := apple
export somevar
update = $(shell perl -e 'print "$$ENV{somevar}"')
all:
@echo $(update)
For some reason the expansion takes place first, then export. As a result the output is empty.
Hello,
I want to bind one property to multiple sources. My reason for this are things like this:
midpoint=point2.X - point1.X; //depends on two sources!
How could this be realised? As far as I know it's not directly possible out-of-the-box?
Is there a way to tell to VS2005 to get compiler error when using "some defined" method?
It probably sounds strange, but I do not want to compile when using Decimal.Round().
Reason:
CF does not round by "awayfromzero", so I created a method to do this job.
But sometimes I (and team) forget that is not to use Decimal.Round. So I'd like to get a compiler error when using it.
Hello,
This is a question about DirectShow IEnumMoniker.
Out of some reason, I have to know "what kind of order" IEnumMoniker enumerates items.
(I mean, it's alphabetically or...?)
The following pages are documents about IEnumMoniker, however, it doesn't mention about this :
http://msdn.microsoft.com/en-us/library/ms692852(v=VS.85).aspx
http://msdn.microsoft.com/en-us/library/dd407292%28VS.85%29.aspx
If anybody has the idea about the enumeration sequence, please let me know.
Thanks a lot.
I have an Interop assembly lying in GAC; Windows Explorer clearly shows it listed in the C:\WINDOWS\assembly folder. Yet, when I try to add a reference to it in from Visual Studio, I can't see it anywhere in the Add Reference dialog.
If this is happened to you too, what is the reason for this? And how do I fix this?
(The assembly is actually located in C:\WINDOWS\assembly\GAC_MSIL folder, if you must know.)