hello all
my desktop application that invoking FQL query's , for the first time im loged in as
different user ( not the developer user )
and im getting this error massage :
"error_code":606 : xxxx is not permitted to requested mailbox permissions from xxxxxx
from reading i know i need to Whitelist my desktop app , but now one tells how ??
Correct me if I'm wrong, after reading drupal fapi related articles, I got the impression that fapi generates 'id' attributes by itself. It allows developers to assign 'name' attribute only. If that's the case, is there a way I can set desire 'id' value for elements? Because, I want my elements to have meaningful 'id' so that html/jquery code would be easier to read as well as save my time from going through already written jquery code to change those all 'id's that I've used inside.
P.S:drupal version - 6.x
Good researching to come here on the site that has several script modes more SUBE not fit everything in one part only.
The where to get the junta to leave but I think he ta with error'm not sure I'm not a programmer I know only the basics can someone help me?
My idea is to create an app that publishes the Wall more people with the name of her ex:
Thony Henry
The meaning of your name is
ex
to using the tag image to give an example wanted the name of the person foce written or published emcima image, do not know how I just know to give to. Can anyone help?
Thank you!
Are there any tutorials or guides out there that anyone knows of that will show me how to read forms from an external program and get back information about the controls on the form? Currently, I can get the handle to the form, and I can get the class name, but I need to get more information such as a persistent name and contained data. Thanks.
Edit:
I now have a way to read the contained data (with the WM_GETTEXT message), however, I still need a persistent name/ID that I can be sure will not change from instance to instance. One way I can think of for doing this is to take the handle, find the position of the control on the window, and then get the handle from the position from then on. Another way is to determine a static ID for the control and then use that to get the handle from then on. The new scope of my problem is how to implement either of these. Any Ideas?
I'm about to integrate automated payments into a site.
To date, I've successfully used paypal for a number of projects, but these have always been sites which sell physical goods, meaning I can upload the cart contents, user pays, person physically ships goods.
This site is a one off payment to enable extra features on a web app. My current thinking is to go down the paypal IPN route to get a notification back and update the users account based on the successful payment.
Question is in two parts:
1 - is there a better / simpler way? (any payment processor considered)
2 - does anyone know of a code library or plug in for php which will speed up my integration?
Thanks for your help.
Rob
Hi,
We are trying it with facebook social plugin. The HTML code for it as follow:
<iframe border='0' src='http://www.facebook.com/plugins/likebox.php?id=1185611481&width=243&height=400&connections=15&stream=false&header=false' scrolling='yes' frameborder='0' allowTransparency='false' style='border:0px; overflow:hidden; width:243px; height:300px; background-color: #03869E; color: white;'> <iframe>
As it replace inner HTML of frame on load. We want our own CSS to apply to this HTML. But as it replace whole HTML and it have its own CSS we are unable to set our CSS.
We are doing this in GWT. Is there any way we can get the list of fans so we can display it as we want and can apply css? Or check given user is fan of page?
Hi,
I am having an application in which i am storing user ip address. But now i want to store the City, Country and Country Code of the user on the basis of their ip addresses. So I am able to get the user's IP Address in ASP.NET but how to get other details. If its possible (which i don't thin it is) then tell me else tell me some alternate way to do this, is there any online FREE service using which ican get these details.
How to do this in ASP.NET using C#
Thanks.
Via SWFobject and AJAX I put in a video to a certain .
Using jquery I tried this:
$('#youtubepreview').html('');
HOwever that didn't remove it at all - the video still stayed right there.
Any ideas?
This question has been asked before on SO, but most of those questions were asked a long time ago.
Essentially, we want a simple way to pre-populate the Facebook status message through the URL much like you can with Twitter.
We're aware of the Facebook APIs, but are wondering if there is a more lightweight approach.
We don't need programmatically to post a message, but just provide some default text that the user can edit before sharing.
So, I'm writing a small test that I have been required to complete and I just want to give it some final touches by adding some header status code responses and some other stuff.
Right now, my dilemma is what HTTP status code to choose for my "Unknown command" response after the $_GET['cmd'] has been compared to the existing commands list.
case 404: $text = 'Not Found'; break;
case 405: $text = 'Method Not Allowed'; break;
case 406: $text = 'Not Acceptable'; break;
For which one of the above should I go? And if none, which other?
Hello,
I have a website which generates hourly updates to users.
I want to allow these updates to show up as News feeds in Facebok.
I opened a Facebook Connect application. Through my site I receive the extended persmission to post news to the users' news feeds.
My question is can I automatically post news feeds to these users without them being logged in to my site? That is, sending hourly news feed to all users using a cron job.
Thanks,
Joel
I am making my first Facebook App and nothing is working as stated in the documentation. As an example, I have facebook.php on my server and am calling this line:
$friends = $facebook->api_client->friends_get();
but I get a "call to undefined function friends_get()"
I see that there is no "friends_get()" function in the facebook.php. I do see there is a friends.get in that long array... but I'm not sure how to access it?
Consider the following Class structure...
public class ListViewControl
{
public int SystemId {get; set;}
public List<ControlAction> Actions {get; set;}
public List<ControlAction> ListViewActions {get; set;}
}
public class ControlAction
{
public string blahBlah {get; set;}
}
I want to load class ListViewControl eagerly using NHibernate.
The mapping using Fluent is as shown below
public UIControlMap()
{
Id(x => x.SystemId);
HasMany(x => x.Actions)
.KeyColumn("ActionId")
.Cascade.AllDeleteOrphan()
.AsBag()
.Cache.ReadWrite().IncludeAll();
HasMany(x => x.ListViewActions)
.KeyColumn("ListViewActionId")
.Cascade.AllDeleteOrphan()
.AsBag()
.Cache.ReadWrite().IncludeAll();
}
This is how I am trying to load it eagerly
var baseActions = DetachedCriteria.For<ListViewControl>()
.CreateCriteria("Actions", JoinType.InnerJoin)
.SetFetchMode("BlahBlah", FetchMode.Eager)
.SetResultTransformer(new DistinctRootEntityResultTransformer());
var listViewActions = DetachedCriteria.For<ListViewControl>()
.CreateCriteria("ListViewActions", JoinType.InnerJoin)
.SetFetchMode("BlahBlah", FetchMode.Eager)
.SetResultTransformer(new DistinctRootEntityResultTransformer());
var listViews = DetachedCriteria.For<ListViewControl>()
.SetFetchMode("Actions", FetchMode.Eager)
.SetFetchMode("ListViewActions",FetchMode.Eager)
.SetResultTransformer(new DistinctRootEntityResultTransformer());
var result = _session.CreateMultiCriteria()
.Add("listViewActions", listViewActions)
.Add("baseActions", baseActions)
.Add("listViews", listViews)
.SetResultTransformer(new DistinctRootEntityResultTransformer())
.GetResult("listViews");
Now, my problem is that the class ListViewControl get the correct records in both Actions and ListViewActions, but there are multiple entries of the same record. The number of records is equal to the number of joins made to the ControlAction table, in this case two.
How can I avoid this? If I remove the SetFetchMode from the listViews query, the actions are loaded lazily through a proxy which I don't want.
Is it a good or bad idea to make setters in java return "this"?
public Employee setName(String name){
this.name = name;
return this;
}
This pattern can be useful because then you can chain setters like this:
list.add(new Employee().setName("Jack Sparrow").setId(1).setFoo("bacon!"));
instead of this:
Employee e = new Employee();
e.setName("Jack Sparrow");
...and so on...
list.add(e);
...but it sort of goes against standard convention. I suppose it might be worthwhile just because it can make that setter do something else useful. I've seen this pattern used some places (e.g. JMock, JPA), but it seems uncommon, and only generally used for very well defined APIs where this pattern is used everywhere.
Update:
What I've described is obviously valid, but what I am really looking for is some thoughts on whether this is generally acceptable, and if there are any pitfalls or related best practices. I know about the Builder pattern but it is a little more involved then what I am describing - as Josh Bloch describes it there is an associated static Builder class for object creation.
can anyone detail the particulars that are required to send data collected from a asp.net web page using vb.net that has a bunch of text boxes for first name, last name, address... item price, quantity, total price... to paypal for processing and settlement?
i have never worked with paypal so i am assuming paypal will get this info and generate a bill to send the user.
thanks in advance
hey
i have iphone application that using facebook connect.
users login to the iphone application using facebook connect.
and then i receive their sessionKey back to my server, and i am using the sesssionkey to post actions to users wall.
the iphone application keeps the user logged in allways.
which means that every times the user will open the application, he will not need to make login again.
the problem is that, when the user change his facebook password
the user sessionKey also changes.
and when the user enter to my iphone applicaiton,
the user is shown as loggedin, and then i recieve to my server
the user old sessionkey, and when i try to post to the user wall
facebook tells me that the session is inavlid.
it is ok because the user change his password and the session changes too.
my question is
how can i check in the iphone if the session key has changed ?
and if it changes to promote the user to make login again.
If anyone can help me with the Video wall posts on my site www.fameboxx.com, then i would really be greatful.
Since youtube changed its design i could not post Videos using the URL from youtube. What am i suppose to do in this case.
You can check the site www.fameboxx.com
Please help.
Hi.
I'm synchronizing reader and writer processes on Linux.
I have 0 or more process (the readers) that need to sleep until they are woken up, read a resource, go back to sleep and so on. Please note I don't know how many reader processes are up at any moment.
I have one process (the writer) that writes on a resource, wakes up the readers and does its business until another resource is ready (in detail, I developed a no starve reader-writers solution, but that's not important).
To implement the sleep / wake up mechanism I use a Posix condition value, pthread_cond_t. The clients call a pthread_cond_wait() on the variable to sleep, while the server does a pthread_cond_broadcast() to wake them all up. As the manual says, I surround these two calls with a lock/unlock of the associated pthread mutex.
The condition variable and the mutex are initialized in the server and shared between processes through a shared memory area (because I'm not working with threads, but with separate processes) an I'm sure my kernel / syscall support it (because I checked _POSIX_THREAD_PROCESS_SHARED).
What happens is that the first client process sleeps and wakes up perfectly. When I start the second process, it blocks on its pthread_cond_wait() and never wakes up, even if I'm sure (by the logs) that pthread_cond_broadcast() is called.
If I kill the first process, and launch another one, it works perfectly. In other words, the condition variable pthread_cond_broadcast() seems to wake up only one process a time. If more than one process wait on the very same shared condition variable, only the first one manages to wake up correctly, while the others just seem to ignore the broadcast.
Why this behaviour? If I send a pthread_cond_broadcast(), every waiting process should wake up, not just one (and, however, not always the same one).
So, issue is with the thing Delphi progies scare to death - Rich Edit in Windows ( XP and pre-XP versions ).
Situation:
I have added EM_AUTOURLDETECTION in OnCreate of form. Target - RichEdit1. Then, I have form, that is "collapsed" after showing form. RichEdit Control is sattic, visible and enabled, but it is "hidden" because form window is collapsed.
I can expand and collapse form, using Button1 and changing forms Constraints and Size properties.
After first time I expand form, the URL inside RichEdit1 control is highlighted.
BUT -
After second, third, fourth, etc... time I Collapse and Expand form, the RichEdit1 Control does not highlight URL anymore.
I have tried EM_SETTEXTMODE messages, also WM_UPDATEUISTATE, also basic WM_TEXT message - no luck. It sems like this merssage really works ( enables detection ) while sending keyboard strokes ( virtual keycodes ), but not when text has been modified.
Also - I am thinking to rewrite code to make RichEdit Control dynamic. Would this fix the problem?
Maybe solution is to override OnPaint / OnDraw method to avoid highlight ( formatting ) losing when collapsing or expanding form?
Weird is that my Embarcadero Documentation says this function must work in any moment text has been modified. Why it does not work?
Any help appreciated. I am making this Community Wiki because this is common problem and togewther we cam find solution, right? :)
Also - follow-ups and related Question:
http://stackoverflow.com/questions/738694/override-onpaint
http://stackoverflow.com/questions/478071/how-to-autodetect-urls-in-richedit-2-0
http://www.vbforums.com/archive/index.php/t-59959.html
This is a repeated question and I have followed both the suggestions provided in these StackOverflow links:
How to log-out users using FaceBook connect in php and zend
Trouble logging out of a FaceBook connect site and destroying sessions
The issue is - the code works 90% of the time. Thats the weird part. Out of the 100 times I've logged in and out - I've experienced this problem 5-6 times and 2 of my beta test users have reported the same issue.
So when it works- if u click the logout link - u get the facebook popup saying - you being logged out - when it does'nt work - absolutely nothing happens - the page does not refresh - it just sits on that page doing nothing.
This is the javascript code that gets called on clicking logout
function logout()
{
FB.Connect.get_status().waitUntilReady(function(status) {
switch(status) {
case FB.ConnectState.connected:
FB.Connect.logoutAndRedirect("http://www.example.com/login/logout");
break;
case FB.ConnectState.userNotLoggedIn:
window.location = "http://www.example.com/login/logout";
break;
}
});
return false;
}
This is the php code:
$this-_auth-clearIdentity();
$face = Zend_Registry::get('facebook');
$fb = new Facebook($face['appapikey'], $face['appsecret']);
//$fb-clear_cookie_state();
$fb-expire_session();
Anyone experienced such sporadic issues.
Thanks
I am capturing output of windows program using following function:
public static Bitmap Get(IntPtr hWnd, int X1, int Y1, int width, int height)
{
WINDOWINFO winInfo = new WINDOWINFO();
bool ret = GetWindowInfo(hWnd, ref winInfo);
if (!ret)
{
return null;
}
int curheight = height;
if (curheight <= 0 || curheight > winInfo.rcWindow.Height)
curheight = winInfo.rcWindow.Height;
int curwidth = width;
if (curwidth <= 0 || curwidth > winInfo.rcWindow.Width)
curwidth = winInfo.rcWindow.Width;
if (curheight == 0 || curwidth == 0) return null;
Graphics frmGraphics = Graphics.FromHwnd(hWnd);
IntPtr hDC = GetWindowDC(hWnd); //gets the entire window
//IntPtr hDC = frmGraphics.GetHdc(); -- gets the client area, no menu bars, etc..
System.Drawing.Bitmap tmpBitmap = new System.Drawing.Bitmap(curwidth, curheight, frmGraphics);
Graphics bmGraphics = Graphics.FromImage(tmpBitmap);
IntPtr bmHdc = bmGraphics.GetHdc();
BitBlt(bmHdc, 0, 0, curwidth, curheight, hDC, X1, Y1, TernaryRasterOperations.SRCCOPY);
bmGraphics.ReleaseHdc(bmHdc);
ReleaseDC(hWnd, hDC);
return tmpBitmap;
}
On Development environment everything is excellent, but on windows server 2008 I have following issues:
1) When there is other window in front my - it is getting captured as well
2) When there is no user connected to RDC - image is black
On other hand, I am able to render webpage images using IE. How I can change behaviour of windows rendering process to get proper results?