Posts

iphone - Apple Lazy Loading Images within a nav controller, reverts back to placeholder images -

I implemented the LazyTableImages project () by Apple, but in my version I used RestKit to get data And my UItableviewcontroller was pushing on the navigation stack so I would leave whatever Apple does to get xml in the applet. I think that this problem is not My problem is that when you come back from the UITB visual controller using the NAV back button or using any other tabbar object and come back, then the images which were previously loaded there, but immediately load the placeholder image Actually, the opposite happens. This UITableview is like cached data, so when you come back, lazy tables interfere with images. I need to know that someone has implemented this code where they had to be repelled? EDIT: Looks like the image downloader is not zero for the second time, which prevents the image from loading. I'm still finding out how to bypass it. Of course, I can only take out the condition, but I do not know that it is "bad" for performance. imageDownlo...

Intersection with MySQL with queries -

I am trying to repeat two queries in MySQL in this query: SELECT user_id FROM post group select thread_ID HAVING COUNT (thread_ID) = 1 intersect from user_id from user_id; Group post (user_id) = 1 since URI_ID; I've discovered ways to do this in MySQL, but unfortunately I did not work for me using IN and INNER JOIN. I have to work with test data: Post post (post_member, timestamp, user_id, thread_id) value (0,0,1,1000); Post in post (post_member, timestamp, user_id, thread_id) value (0, 02, 2000); Post in post (post_member, timestamp, user_id, thread_id) value (0,0,3,2000); Post in post (post_member, timestamp, user_id, thread_id) value (0,04,3000); Post in post (post_member, timestamp, user_id, thread_id) value (0,0,5,4000); Post in post (post_member, timestamp, user_id, thread_id) value (0,0,1,4000); To run the spacing of two of my questions 4 Any help is appreciated Thank you. In postgres I will like it SELECT user_id by post Where Thread_ID (Thre...

Regex matching for certain URLS -

I am writing a script that needs to take some URLs on the page; For example, these URLs, http://fiel.com/989898/etc.html after "> load In JavaScript: var link For = document.links; (var i = 0; i & lt; links.length; i ++) {if (link [i] .match (/ http \: \ / \ fiel \ .com / i)) {}} in php $ html = ' gt; body & gt; .... & lt ; $ Body = A '); Foreign Exchange ($ link $ link) {if ($ Link-> nodeValue ==' load ') {$ data = $ link-> MillTutribute (' href ') // whatever href} }

richfaces - Keeping a rich:modalPanel open on validation fail? -

When I was done with an action, fails, I try to stop my modal from closing I am here. I have seen many discussions on this issue with many objective solutions but there is no luck with any of them. Has anyone got any work solution? I Reachfaces 3.3.3 I am using the finals. I like stack overflow because I always get a solution right after posting a question. The first solution to work for me Paraphrased, enter the ID on your Html element and then check this Javascript whether you can turn off the modal or not. function modalClose (if (!! Document.getElementById ('fullresolvedidofmessagepanel')) {Richfaces.hideModalPanel ('modalpanelid');}} Here are the string ins.

histogram - Octave : using bar and histc -

I want to plot uneven width histogram. x = [10 12 15 18] # Bean edges y = [3 2 6] #corresponding frequences time (E, C, 'Histk') I get the following output: Warning: implicit conversion string matrix # error: set: unknown property " " error: call to: error: / usr /share/octave/3.2.3/m/plot/ Bars . On line 120, column 7 - Error: /usr/share/octave/3.2.3/m/plot/ bar . 16 line, column 7 error: /usr/share/octave/3.2.3/m/plot/bar.m row 67, column at 19 It seems that Histk not working Used to be. I have Octave 3.2 installed. Any thoughts? Code Use Code for help Bar You will see that 'histoc' is not a valid style option (it is only supported in Matlab). If you need to count the frequencies of your data then the function

database - For a beginner, is there much difference between MySQL and PostgreSQL -

There is a lot of difference between MySQL and PostgreSQL for beginners like me, basic selection, like statement and choice, or main Differences with using more advanced questions? The reason that I usually suggest PostgreSQL before MySQL because MySQL is far away from standards (SQL This window functions (version 8.4), normal table expression (8.4), checking deficiencies , EXCEPT / MINUS operator, even the use of full external johns does not support. .. Even though you have never heard these words, you have to use those concepts at some point. I strongly suggest that you start with PostgreSQL, then you can learn what "real" SQL is, then you can decide if MySQL is sufficient or not. PS I started with MySQL and I regret it. Now I use PostgreSQL and I like it.

ruby on rails - is there anyway to combine these into one ActiveRecord query? -

I am thinking that both of these questions are there to connect together where without By using the string (... notifiable_type = & gt; "post" ,: notifiable_id => post.id) notification. Where (: notifiable_type = & gt; "comment",: Notifiable_id => post.comments.map (& amp; id)) In other words, I have to do without Looking for a method: notification. ("(Notifiable_type = 'post' and notifiable_id =?) Or (notifiable_type = 'comment' and (?)) Notifiable_ id", [post] .id, post.comments.map (& amp; id)]) Is this possible? You can use to get it in a clean and readable way: notification. Where ((:: notifiable_type = & gt; "post" & amp;; notifiable_id = & gt; post.id) | (: Notifiable_type = & gt; "Comment" & amp ;: notifiable_id = & gt; [post.comments .map (& amp; amp;; id)))