Hello everyone
I know there is no public api to read 3g/wifi bandswitch.
But I wonder how this app can do this?
http://itunes.apple.com/ca/app/download-meter-for-wi-fi-gprs/id327227530?mt=8
Thanks
interdev
Hi,
I was wondering what people are using for externally configuring logging in a Flex app. Are there any ready baked solutions out there, similar to Log4J's configuration via properties files for instance?
If there are, do these work directly with the Flex logging API or are they part of a separate logging library?
I'm working on a rails app to integrate with infusionsoft's xmlrpc api. Does anyone have any tips or pointers for integrating a system smoothly? What are best practices? How do you best re-factor code?
Thanks for any tips / ideas
I did insert an image using the OpenXML SDK API .. however i can not figure out how to position the image to appear on any part of the page (probably using anything similar to (x,y) co-ordinates?
My application supports twitter and needs to open browser for OAuth. When the user clicks the Share on Twitter button, the main activity will create another subactivity (TwitterActivity) to handle twitter authentication issues.
Here is a flow graph showing how activities are invoked currently. Main is short for MainActivity and Twit for TwitterActivity.
startActivity() OAuth intent OAuth callback finish()
Main ---------------> Twit ------------> Browser --------------> Twit --------> Browser
As you may notice, after the TwitterActivity calls finish() to stop, it will now return back to MainActivity, but Browser instead. How can I make it return back to MainActivity? Many thanks
How can you read data, i.e. convert simple text strings to voice (speech) in Android?
Is there an API where I can do something like this:
TextToVoice speaker = new TextToVoice();
speaker.Speak("Hello World");
While traditional UCE (get rich quick, enlarge your body parts, Nigerian barristers) are handled adequately, I'm still receiving a lot of not quite unsolicited spam. This is typically from commercial services forwarding "invites" from my "friends" and then "reminding" me of their services. Typical offenders are Facebook, Linkedin, dropbox, bebox, etc etc.
(Of course, none of these services provide any way of opting out, except possibly by registering, which they will then take as an invitation to stuff your mailbox with even more crap)
What is a good way to deal with these? I can of course junk them using procmail, but is it a better idea to e.g. bounce them, or at least send a reply informing the sender (and "friend") that I am not interested in their service nor their spam. Any solutions to this?
Ok, im developing some software which requires file icons to display lists of files on a computer...
i don't want to use the system ExtractAssociatedIcon api's i'd rather load the icons for the file extensions out of a database... (as some systems may not have certain files associated etc)...
Does anyone have a database of file extensions & icons to go with the extensions that i can use?
Cheers in advance,
Hi,
I'm using Hibernate and I need to find a way of retrieving the relations for an object dynamically at run-time. I can't find this in the API.
Can anyone point me in the right direction please?
Thanks
I am writing a small code to detect number of objects left behind after certain actions in our tool. This uses FollowReferences() JVMTI-API. This counts instances reachable by all paths. How can I skip paths that included weak/soft/phantom reference?
(IterateThroughHeap counts all objects at the moment, so the number is not fully reliable)
Thanks,
Jayan
How to make the table column width inside the chart smaller so I can see more values and how to add some scrollbar to see the values that I can't see on right sight .
There is no changes in ASP (just added this element)
here is a method how I drawing this line :
if (dt != null) // dt - my DataTable
{
string seriesName = "Graph";
Chart1.Series.Add(seriesName);
Chart1.Series[seriesName].ChartType = SeriesChartType.Line;
Chart1.Series[seriesName].BorderWidth = 3;
foreach (DataRow row in dt.Rows)
{
string columnName = row[0].ToString();
try
{
double YVal = Convert.ToDouble(row[1]);
Chart1.Series[seriesName].Points.AddXY(columnName, YVal);
}
catch (Exception)
{
Chart1.Series[seriesName].Points.AddXY(columnName, 0);
}
}
}
Hi,
For an audit log, i need to know the differences between 2 objects.
Those objets may contains others objets, list, set of objects and so the differences needed maybe recursive if desired.
Is there a api using reflection (or other) already for that ?
Thanks in advance.
Regards
I got into a deadlock issue where I am struggling find the root-cause...The Deadlock graph suggests that an UPDATE statement became the victim over a SELECT statement...
What puzzles me is that the UPDATE statement is trying to acquire an index on some other table that is never referred in update statement...
This is how my UPDATE statement looks like...
UPDATE Table set col1 = @P1 where col2 = @P2
This statement acquired a X lock on the col2 index, but also tries to acquire an index on a column defined in some other table that is no way related to the UPDATE statement...
And the SELECT statement that won the deadlock situation had nothing to do with the table or index in the update statement but tried to acquire an index on the table in UPDATE statement. eventually causing the DEADLOCK.
Does anyone know of a way to control the font size/color/weight of the row and column names when plotting a correspondence plot with the ca package?
The following code will produce a very nice looking chart, though if there were more attributes (very heavy, super heavy, something more than super heavy) or more classes of workers (peons, underlings, etc) then the graph will get a little cluttered and hard to tell what was what.
It would be nice if you could list all the attributes in a separate color than the categories of workers.
library(ca)
data("smoke")
plot(ca(smoke)
, map = "symmetric"
, what =c("active","active")
, mass = c(T,T)
, contrib = "absolute"
, col = c("red","blue")
, pch = c(15,17,15,17)
, labels = c(2,2)
, arrows = c(T,F)
)
Alternatively, does anyone know if there is a way to reproduce something along these lines with ggplot2? I didn't find anything on the website that seemed comparable, but I don't know much about the package.
Thanks,
-Chase
Say I am using an Identity Matrix for my modelViewTransformation Matrix on an Open GL ES2.0 program. The Co-ordinate system in this case is the canonical opengl co-ordinate system which extends from (-1,-1,-1) to (1,,1,1).
My question is, is this coordinate system right-handed or left-handed?
A broader question: Is there a document with OpenGL which can list all the mathematical conventions followed by the API?
What exception does com.google.appengine.api.datastore.Transaction.commit() throw when there is a concurrency problem?
I want to retry if there is a concurrency issue, but I don't know what exception to catch.
I'm trying to make a page using data from the discogs.com (XML)-API. i've been parsing it with simpleXML and it's working pretty well but there is some things i'm not sure how to do.
Here is part of the XML:
<releases>
<release id="1468764" status="Accepted" type="Main">
<title>Versions</title>
<format>12", EP</format>
<label>Not On Label</label>
<year>1999</year>
</release>
<release id="72246" status="Accepted" type="Main">
<title>The M.O.F Blend</title>
<format>LP</format>
<label>Blenda Records</label>
<year>2002</year>
</release>
<release id="890064" status="Accepted" type="Main">
<title>The M.O.F Blend</title>
<format>CD</format>
<label>Blenda Records</label>
<year>2002</year>
</release>
<release id="1563561" status="Accepted" type="TrackAppearance">
<title>Ännu En Gång Vol. 3</title>
<trackinfo>Backtrack</trackinfo>
<format>Cass, Comp, Mix</format>
<label>Hemmalaget</label>
<year>2001</year>
</release>
</releases>
What i want to achieve is something similair to how discogs presents the releases: http://www.discogs.com/artist/Mics+Of+Fury where diferent versions of the same release are sorted together. (see. The M.O.F Blend in my link) This is done on discogs with having a master release that features the other releases. unfortunately this information isn't present in the API data, so i want to do the same thing by grouping the <release>-nodes with the same <title>-tags, or add a flag to the <releases> that don't have a unique <title>? any good ideas on the best way of doing this?
i also like to know if it's possible to count the <release>-nodes (child of releases) that have the same type-attribute? like in this example count the releases with the type "Main"?
maybe it's better to do this things with XMLReader or XPath?
Hi,
I am trying to play around Twitter API for my Blackberry application. Is there any library through with i can access twitter information.(I want to pull feeds in my twitter account.)
Any help would be appreciated.
Thanks & Regards,
Jim.
I try to make Fabric func, which checks if Apache installed:
from fabric.api import *
def check_apache():
try:
result = local('httpd -v', capture=True)
except:
print "check_apache exception"
But if httpd not installed I get:
[root@server-local ~]$ fab check_apache
Fatal error: local() encountered an error (return code 127) while executing 'ahttpd -v'
Aborting.
check_apache exception
Done.
How can I get correct exception for Fabric local() method ? So I need to get exception and continue executing without any Fabric error messages:
[root@server-local ~]$ fab check_apache
check_apache exception
Done.
JID jid = new JID("[email protected]"); //success with code
SUCCESS
JID jid = new JID("mycomponent.host.domain.com"); //send fail with
code INVALID_ID ,but when i try send from gmail OR jabber to
mycomponent.host.domain.com . it was a success.
Is this a but in google xmpp api?
Hello Experts,
could someone please explain to me, how in netty "Downstream Exceptions" are handeled? According to the javadoc there are no Downstream exceptions:
http://docs.jboss.org/netty/3.1/api/org/jboss/netty/channel/ExceptionEvent.html
Given the case that in one of my downstream handlers an exception occures OR in the I/0 Thread itself, where can these errors be catched and handeled?
thank you very much
tom
Recenty I was asked this interview question:
There is a server which receives millions of requests every day. Design an API for finding out hits in the last one minute, in the last 10 minutes etc. What should be the algorithm and design to implement it efficienly.
I want to know the ideas on this.
I'd like to iterate through a certain set of fields in a report (rpt) file and, for the sake of argument, make them have a blue background. I'd like to do this for many files and on a conditional basis. The ReportDocument class seems like the way to go, but I don't see any Fields or anything like that in the API.
Is there a way to do this via C#?
CR 9.2
Hello Friends,
Can anyone help me?
How can I read SMS from mobile with my .net application? i have a Nokia 5310 mobile phone. Can you tell me from where i can download Nokia SDK or source code or Nokia API etc?
I want to make a custom application which reads SMS and at the same time sends a response to the sender's mobile number.