unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Remove empty and no child nodes from source XML recursively till a valid child has been found === Source XML: <MP> <Name>pol</Name> <PRules> <PRule order="1" name="r1"> <Conditions> <Condition eleName="eth" value="05">05</Condition> <Condition eleName="dest" value="32">32</Condition> </Conditions> </PRule> <PRule order="2" name="r2"> <Conditions> <Condition eleName="eth" value="04">04</Condition> </Conditions> </PRule> </PRules> </MP> If a Condition node with attribute eleName="eth" has to be deleted. After deletion of Condition node if Conditions is empty, complete PRule node also has to be removed. I have applied the following XSLT: <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:strip-space elements="*"/> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="node()|@*"/> </xsl:copy> </xsl:template> <xsl:template name="attributeTemplate" match="Condition[@elementName='eth']"/> <xsl:template name="removeEmptyElement" match="*[not(@*) and not(*) and not(text() [normalize-space()])]"/> </xsl:stylesheet> But the result is coming like this: <MP> <Name>pol</Name> <PRules> <PRule name="r1" order="1"> <Conditions> <Condition eleName="dest" value="32">32</Condition> </Conditions> </PRule> <PRule name="r2" order="2"> <Conditions/> </PRule> </PRules> </MP> What change I have to make to transform the XML as <MP> <Name>pol</Name> <PRules> <PRule name="r1" order="1"> <Conditions> <Condition eleName="dest" value="32">32</Condition> </Conditions> </PRule> </PRules> </MP> Is there a way to recursively call the "removeEmptyElement" to remove it's empty parent as well?
0
[ 2, 4681, 2424, 17, 90, 850, 16272, 37, 1267, 23504, 302, 24244, 102, 3924, 21, 7394, 850, 63, 74, 216, 800, 3726, 3726, 1267, 23504, 45, 13, 1, 2554, 1, 13, 1, 7259, 1, 7332, 1, 118, 7259, 1, 13, 1, 25789, 1355, 1, 13, 1, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to integrate in-app purchase for an iphone app developed using HTML 5 and then wrapping it using objective c === i am developing an iPhone app using HTML 5 and then wrapping it up using Objective C on X-code. I want to implement in-app purchase but I am not sure how to go about by it. An early response will be much appreciate.
0
[ 2, 184, 20, 18399, 19, 8, 7753, 3301, 26, 40, 21024, 4865, 885, 568, 13, 15895, 331, 17, 94, 13437, 32, 568, 7038, 272, 800, 3726, 3726, 31, 589, 3561, 40, 21024, 4865, 568, 13, 15895, 331, 17, 94, 13437, 32, 71, 568, 7038, 272,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Short Code for PHP string with variable === I have a query string that contains a variable like this $field_name = 'features'; $value = '5'; $query = "SELECT * FROM Table WHERE $field_name\_tid = '$value'"; My goal is to print out the `$query` like this `SELECT * FROM Table WHERE features_tid = '5';` I put `\_` there hoping it would work as escape character, but it didn't work. Is there any way to achieve this without use methods like `". $field_name ."` and modifying original variable value?
0
[ 2, 502, 1797, 26, 13, 26120, 3724, 29, 7612, 800, 3726, 3726, 31, 57, 21, 25597, 3724, 30, 1588, 21, 7612, 101, 48, 5579, 1109, 1, 7259, 800, 13, 22, 26956, 18, 22, 73, 5579, 15165, 800, 13, 22, 264, 22, 73, 5579, 8190, 93, 80...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Win Form Tab Control Page header layout === Simple question I hope.... I have a Win Form with a Tab Control and 12 tabs. When I added the eight table (and higher), the scroll bar in the tab header appears and you have to scroll with that control to view the extra tabs. How can you change the layout so that the tabs all show, without the scroll bar? Is it possible to have them appear "stacked" or "Multiline"?
0
[ 2, 628, 505, 6523, 569, 2478, 157, 106, 9106, 800, 3726, 3726, 1935, 1301, 31, 1376, 9, 9, 9, 9, 31, 57, 21, 628, 505, 29, 21, 6523, 569, 17, 390, 6523, 18, 9, 76, 31, 905, 14, 970, 859, 13, 5, 290, 1184, 6, 15, 14, 12159,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set Focus to Internet Explorer Object in Visual Basic === Does anybody know how to set focus onto an IE object with Visual Basic? I've tried myieobject.SetFocus, but the compiler errors with this statement
0
[ 2, 309, 1776, 20, 2620, 8520, 3095, 19, 3458, 2125, 800, 3726, 3726, 630, 11181, 143, 184, 20, 309, 1776, 1204, 40, 13, 660, 3095, 29, 3458, 2125, 60, 31, 22, 195, 794, 51, 660, 23793, 9, 3554, 23371, 15, 47, 14, 21486, 11908, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Newscalendar/tt_news - Show links in listView === A RTE link of a newsitem was not shown in tt_news List. I could get it displayed with this TS for tt_news plugin.tt_news.displayList { content_stdWrap.parseFunc < lib.parseFunc_RTE } I have some News which are displayed with tt_news fe plugin. But on another page i need to display the news with tx_newscalendar fe plugin. I can not find a solution to get the same thing work with newscalendar. I hoped that parseFunc for newscalendar inherits from tt_news, but not. I tried something like this which is displayed in ts objectbrowser plugin.tx_newscalendar_pi1 listView.content_stdWrap.parseFunc < lib.parseFunc_RTE } #or plugin.tt_news { general_stdWrap.parseFunc = < lib.parseFunc_RTE } but links are display like this in sourcecode: <link htpp:mydomainde="" />Mysite</link> Why **htpp:**, this looks realy rare? plugin.tx_newscalendar_pi1.render.parserFunction which could be found in the [Ext Manual][1] of the plugin is just for htmlentities, not for parseFunc_RTE. Does somebody know, how to show links in newscalendar list? [1]: http://typo3.org/extension-manuals/newscalendar/2.1.6/view/4/1/
0
[ 2, 78, 5093, 103, 2542, 118, 38, 38, 1, 14962, 13, 8, 298, 6271, 19, 968, 4725, 800, 3726, 3726, 21, 23322, 3508, 16, 21, 78, 9097, 79, 23, 52, 1721, 19, 13, 38, 38, 1, 14962, 968, 9, 31, 110, 164, 32, 6115, 29, 48, 13, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
upgrading from jQuery Mobile 1.0 to 1.1.0 and buttons dont respond === So i have looked all over and it seems that not many people are having that much of a problem but i think jquery.mobile has changed how they animate a button press action. In jQuery Mobile 1.0.0 when you press a button the button action is done right away (android 2.x) (the website i am working on is m.schedulicity.com (not trying to advertise, but its 1.0 and it works just fine on mobile)). But when we upgraded to mobile 1.1.0 the buttons do not respond like they did. If i hold the button down the action state will eventually set in (like .2 of a second but it does not respond at all if just tap the button (css wise) but the button is still "clicked" just no animation). If you have any suggestions i would really appreciate. NOTE: ----- I know you cannot self promote and i am not trying to self promote (with the link) but i wanted to give a really example of jquery1.0 working. The 1.1.0 is not released yet so i cannot give that. But i upgraded the css structure and the jquery mobile to 1.1.0 andeverything works, just slower. So the buttons do not display as "pressed" on tap but on a hold down it will. Thanks
0
[ 2, 26939, 37, 487, 8190, 93, 3241, 137, 9, 387, 20, 137, 9, 165, 9, 387, 17, 12861, 1049, 4590, 800, 3726, 3726, 86, 31, 57, 292, 65, 84, 17, 32, 2206, 30, 52, 151, 148, 50, 452, 30, 212, 16, 21, 1448, 47, 31, 277, 487, 81...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to base Y Axis to zero in nevron === We have a Nevron chart with two Y Axis. The secondary Y axis starts at zero. However, the primary Y axis starts at -100. Neither Y axis has any values less than zero. But the primary Y axis starts at -100. How can I tell the primary Y axis to start at Zero?
0
[ 2, 184, 20, 1000, 13, 93, 8577, 20, 4606, 19, 13, 14644, 2075, 800, 3726, 3726, 95, 57, 21, 13, 14644, 2075, 1795, 29, 81, 13, 93, 8577, 9, 14, 2277, 13, 93, 8577, 3244, 35, 4606, 9, 207, 15, 14, 1256, 13, 93, 8577, 3244, 35...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does Pytables support threading on separate files? === I know the PyTables site says that a thread can access each file for writing; however, when I try to accomplish this, my python code crashes at random. However, if I have all file access locked (all files within my pytables are locked for a single thread), then my code works.
0
[ 2, 630, 7103, 5924, 18, 555, 9322, 68, 27, 1725, 6488, 60, 800, 3726, 3726, 31, 143, 14, 7103, 5924, 18, 689, 898, 30, 21, 9322, 92, 1381, 206, 3893, 26, 1174, 73, 207, 15, 76, 31, 1131, 20, 14570, 48, 15, 51, 20059, 1797, 215...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
htaccess redirect is appending a query string === If i go to rocketroofing.us/rocket, it redirects me to rocketroofing.us/rochester-minnesota-roofing-contractor?/rocket. Why is it appending that query string? .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / #Removes access to the system folder by users. #Additionally this will allow you to create a System.php controller, #previously this would not have been possible. #'system' can be replaced if you have renamed your system folder. RewriteCond %{REQUEST_URI} ^system.* RewriteRule ^(.*)$ /index.php?/$1 [L] #When your application folder isn't in the system folder #This snippet prevents user access to the application folder #Submitted by: Fabdrol #Rename 'application' to your applications folder name. RewriteCond %{REQUEST_URI} ^application.* RewriteRule ^(.*)$ /index.php?/$1 [L] #Checks to see if the user is attempting to access a valid file, #such as an image or css document, if this isn't true it sends the #request to index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] # redirect from the old controller names to the new ones to try and help our SEO. #redirect 301 / http://rocketroofing.us/rochester-minnesota-roofing-contractor redirect 301 /rocket http://rocketroofing.us/rochester-minnesota-roofing-contractor redirect 301 /about http://rocketroofing.us/about-rochester-rocket-roofing redirect 301 /faq http://rocketroofing.us/frequently-asked-questions redirect 301 /contact http://rocketroofing.us/contact-minnesota-roofing-company </IfModule> <IfModule !mod_rewrite.c> # If we don't have mod_rewrite installed, all 404's # can be sent to index.php, and everything works as normal. # Submitted by: ElliotHaughin ErrorDocument 404 /index.php </IfModule> routes: $route['default_controller'] = "rocket"; $route['404_override'] = ''; // used to try and increase my SEO $route['rochester-minnesota-roofing-contractor'] = 'rocket'; $route['about-rochester-rocket-roofing'] = 'about'; $route['frequently-asked-questions'] = 'faq'; $route['contact-minnesota-roofing-company'] = 'contact';
0
[ 2, 13, 9020, 20604, 302, 14706, 25, 4865, 7601, 21, 25597, 3724, 800, 3726, 3726, 100, 31, 162, 20, 6598, 661, 1041, 68, 9, 267, 118, 22950, 15, 32, 302, 14706, 18, 55, 20, 6598, 661, 1041, 68, 9, 267, 118, 661, 18129, 8, 2160, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
concat two int values in postgresql === I have 7 integer values (with 3,1,3,4,4,5,4 digits respectively) and I have to concatenate them to a single integer (i.e a 24 digit no.) . I tried to do it like this create or replace function gen_id(int,int,int,int,int,int,int) returns bigint as $$ declare id bigint; begin id = $1 * 1000000000000000000000 + $2 * 100000000000000000000 + $3 * 100000000000000000 + $4 * 10000000000000 + $5 * 1000000000 + $6 * 10000 + $7; return id; end; $$ language plpgsql; select * from gen_id(100,1,101,1000,1001,10001,1000); But when I execute it I get error: bigint out of range . Is there any other better way to do it ? thanks
0
[ 2, 1065, 5782, 81, 19, 38, 4070, 19, 678, 6879, 18, 22402, 800, 3726, 3726, 31, 57, 453, 13820, 4070, 13, 5, 1410, 203, 15, 19127, 15, 300, 15, 300, 15, 264, 15, 300, 19076, 2820, 6, 17, 31, 57, 20, 1065, 9530, 8820, 105, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
onclick: Have to click twice in order for a div to hide/show === I have a problem where I have to click twice in order for my JavaScript function to run. HTML for the button: <input type="button" id="logintrigger" value="Log In" onClick="hideshow();"/> JavaScript: function hideshow() { var toggle = document.getElementById('logincontainer'); toggle.style.display = toggle.style.display == "none" ? "block" : "none"; } I have been searching around and haven't found anything that helped. Thank You.
0
[ 2, 27, 150, 10129, 45, 57, 20, 10840, 2088, 19, 389, 26, 21, 13, 12916, 20, 3077, 118, 9303, 800, 3726, 3726, 31, 57, 21, 1448, 113, 31, 57, 20, 10840, 2088, 19, 389, 26, 51, 8247, 8741, 1990, 20, 485, 9, 13, 15895, 26, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Playing with Ember.Object.reopen(), why I have those results? === I was trying to answer this question: http://stackoverflow.com/questions/11688427/emberjs-add-routes-after-app-initialize I started to play with Ember.Object.reopen(), to understand how it works, and perhaps finding a way of answering the previous question. I feel a bit puzzled, and don't understand the behavior of this code: jsfiddle: http://jsfiddle.net/Sly7/FpJwT/ <!-- language: lang-html --> <script type="text/x-handlebars"> <div>{{App.myObj.value}}</div> <div>{{App.myObj2.value}}</div> <div>{{App.myObj3.value}}</div> </script> <!-- language: lang-js --> App = Em.Application.create({}); App.MyObject = Em.Object.extend({value: 'initial'}); App.set('myObj', App.MyObject.create()); Em.run.later(function(){ App.get('myObj').reopen({ value: "reopenOnInstance" }); // the template is not updated, 'initial' is still diplayed, but console.log(App.get('myObj').get('value')); // print 'reopenOnInstance' App.MyObject.reopen({ value: "reopenOnClass" }); App.set('myObj2',App.MyObject.create()); // the template is updated and console.log(App.get('myObj2').get('value')); //print 'reopenOnClass' App.myObj3 = App.MyObject.create(); // the template is not updated but console.log(App.myObj3.get('value')); // print 'reopenOnClass' Em.run.later(function(){ App.get('myObj').set('value', "setWithSetter"); // the template is updated and console.log(App.get('myObj').get('value')); // print 'setWithSetter' App.get('myObj2').set('value', "setWithSetter"); // the template is updated and console.log(App.get('myObj2').get('value')); // print 'setWithSetter' App.myObj3.set('value', "setWithSetter"); // the template is not updated but console.log(App.myObj3.get('value')); // print 'setWithSetter' }, 2000); },2000); If someone can explain what is going on, particularly why the templates are sometimes not updated, sometimes updated, and also what's the difference between calling `reopen` on a class, calling it and on a instance.
0
[ 2, 791, 29, 13, 19603, 9, 23793, 9, 99, 10157, 5, 6, 15, 483, 31, 57, 273, 1736, 60, 800, 3726, 3726, 31, 23, 749, 20, 1623, 48, 1301, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 11343, 3020, 3941, 9816, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Transaction for different databases in C# === I use 2 different dlls to connect to 2 database in my project . each dll has it's own DAL layer . now in a page I need to insert a set of related data into these 2 databases . I want to use transaction to make sure data are inserted correctly . but as I just have access to public methods of Insert() of each assembly , not the ADO.net codes . how can I handle this situation ? is there anything like this in c# ? beginTransaction(){ dll1.class.Insert(data); dll2.className.Insert(relatedData); .... }
0
[ 2, 12799, 26, 421, 6018, 18, 19, 272, 5910, 800, 3726, 3726, 31, 275, 172, 421, 13, 43, 211, 18, 20, 6379, 20, 172, 6018, 19, 51, 669, 13, 9, 206, 13, 43, 211, 63, 32, 22, 18, 258, 6868, 5385, 13, 9, 130, 19, 21, 2478, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do i asymmetric encryption/decryption with OSX 10.7+ without openssl? === Since openssl is deprecated in osx 10.7+, i'd like to switch from openssl to the internal osx keychain and crypto function. But now i stuck on asymmetric encryption/decryption. How can i encrypt/decryption a randomly generated symmetric key with a asymmetric (RSA) key. With openssl it's quite easy. In the [apple dev docs][1] i can read, that CommonCrypto supports asymmetric encryption, but while checking the headers, i can only see support for symmetric stuff. Any hints? [1]: http://developer.apple.com/library/mac/#documentation/security/Conceptual/cryptoservices/GeneralPurposeCrypto/GeneralPurposeCrypto.html
0
[ 2, 184, 107, 31, 21, 16367, 24420, 118, 546, 11435, 872, 29, 13, 759, 396, 332, 9, 465, 2430, 366, 8965, 18, 255, 60, 800, 3726, 3726, 179, 8965, 18, 255, 25, 121, 3515, 150, 1669, 19, 13, 759, 396, 332, 9, 465, 2430, 15, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to label edges of google's fusion table network graph? === <br> Is there any way in google's fusion table network graph, where we can label the edges?<br> Currently we can assign the weight's to the graph but not the label.<br> Please reply how we should get this done.
0
[ 2, 184, 20, 1899, 7840, 16, 8144, 22, 18, 11117, 859, 982, 7210, 60, 800, 3726, 3726, 13, 1, 5145, 1, 25, 80, 186, 161, 19, 8144, 22, 18, 11117, 859, 982, 7210, 15, 113, 95, 92, 1899, 14, 7840, 60, 1, 5145, 1, 871, 95, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ajax Loader and chained select boxes === I am working with dynamic select boxes and I am using JS/Jquery to update the values of each select box. Since I am pulling the values from MySQL table, sometimes it takes a little longer to load the select boxes with its values. One Solution i search is the use of an ajax loader. How can I place an ajax loader (just before the jQuery.getJSON in the updateSelectBox.js) so that nothing can be clicked while loading on the first tab and remove it after the success handling (in the same file)? or any better solutions? Here is an [EXAMPLE][1] **updateSelectBox.js** var formObject = { run : function(obj) { obj.nextAll('.update').attr({'disabled': true, 'hidden':true}).html('<option value="">----</option>'); var id = obj.attr('id'); var v = obj.val(); jQuery.getJSON('mod/postfile.php', { id : id, value : v }, function(data) { $('.update').removeClass('last'); if (!data.error) { obj.next('.update').html(data.list).removeAttr('disabled hidden'); } else { obj.addClass('last').nextAll('.update').attr({'disabled': true, 'hidden':true}).html('<option value="">----</option>'); } }); } }; $(function(){ $('.update').live('change', function() { var str = ""; $("select option:selected").each(function () { str += $(this).text() + " "; }); $("#postSelected").text(str); formObject.run($(this)); }); }); **HTML** <select name="gender" id="gender" class="update" size="7"> <option value="">Select one</option> <?php if (!empty($list)) { ?> <?php foreach($list as $row) { ?> <option value="<?php echo $row['id']; ?>"> <?php echo $row['category_name']; ?> </option> <?php } ?> <?php } ?> </select> <select name="category" id="category" class="update" disabled="disabled" hidden="hidden" size="7"> <option value="">----</option> </select> <select name="colour" id="colour" class="update" disabled="disabled" hidden="hidden" size="7"> <option value="">----</option> </select> [1]: http://webprolearner.ueuo.com/dropdown-menu/test1.php
0
[ 2, 20624, 6305, 106, 17, 2858, 69, 5407, 8120, 800, 3726, 3726, 31, 589, 638, 29, 7782, 5407, 8120, 17, 31, 589, 568, 487, 18, 118, 728, 8190, 93, 20, 11100, 14, 4070, 16, 206, 5407, 1649, 9, 179, 31, 589, 3303, 14, 4070, 37, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Awstats extra section hits by subdirectory === I've followed the format at http://www.internetofficer.com/awstats/by-directory/ to setup an Extra Section with hits by directory. This works. images 28273657 38871644 1389.77 GB content 12607984 12652114 390.53 GB etc. However, I need hits by (first level) subdirectory. At the bottom of that page, it suggests using: ExtraSectionFirstColumnValues1="URL,^\/([^\/]*\/[^\/]*)\/" Still only shows top-level directories. I've also tried ExtraSectionFirstColumnValues1="URL,^\/*\/*\/" which results in the same thing. I can't get the right regexp to do what I need. Full code: #Include hits by top 25 directories ExtraSectionName1="Hits by Directory" ExtraSectionCodeFilter1="200 304" ExtraSectionCondition1="URL,^.*$" ExtraSectionFirstColumnTitle1="Directory" ExtraSectionFirstColumnValues1="URL,^\/*\/*\/" ExtraSectionFirstColumnFormat1="<A HREF='/%s/' TARGET='_blank'>%.80s</A>" ExtraSectionStatTypes1=PHB ExtraSectionAddSumRow1=1 MaxNbOfExtra1=25 MinHitExtra1=1
0
[ 2, 13, 3885, 10631, 18, 2230, 1050, 3858, 34, 972, 10197, 93, 800, 3726, 3726, 31, 22, 195, 709, 14, 2595, 35, 7775, 6903, 6483, 9, 6280, 2328, 17047, 139, 9, 960, 118, 3885, 10631, 18, 118, 779, 8, 10197, 93, 118, 20, 18161, 40...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use Underscore.js filter with an object? === I have an object like so: > Object > Rett@site.com: Array[100] > pel4@gmail.com: Array[4] > 0 id : 132 selected : true > 1 id : 51 selected : false etc.. How can I use the underscore _filter to return back only the items where selected === true? I've never had the need to go down to layers with _filter. Something like var stuff = _.filter(me.collections, function(item) { return item[0].selected === true; }); Thank you
0
[ 2, 184, 20, 275, 131, 15077, 9, 728, 18, 11945, 29, 40, 3095, 60, 800, 3726, 3726, 31, 57, 40, 3095, 101, 86, 45, 13, 1, 3095, 13, 1, 13, 18416, 1, 9097, 9, 960, 45, 7718, 2558, 4031, 500, 13, 1, 10747, 300, 1, 263, 8079, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use H tags correctly? === I'm looking at my template now, and I see a problem. Although, I'm not too advanced, so here I am, asking if I'm seeing a problem when there isn't one: Homepage contains: 15 H1 tags, one for each post header. 0 H2 tags. 3 H3 tags, for the widget titles. 8 H4 tags, for widget contents. 0 H5 tags. 0 H6 tags. Same goes for a single page, except it contains 1 H1 tag. So I'm seeing a problem because there is no H2 tags, there is H3 and H4 tags, and then no H5 and H6 tags.
0
[ 2, 184, 20, 275, 746, 3383, 18, 12044, 60, 800, 3726, 3726, 31, 22, 79, 699, 35, 51, 22894, 130, 15, 17, 31, 196, 21, 1448, 9, 419, 15, 31, 22, 79, 52, 266, 2255, 15, 86, 235, 31, 589, 15, 3379, 100, 31, 22, 79, 2078, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does the C standard consider that there are one or two 'struct uperms_entry' types in this header? === Can you give chapter and verse from one of the three C standards (preferably C99 or C11) which indicates whether the following header file has one or two `struct uperms_entry` types in it? #ifndef UPERMS_CACHE_INCLUDE #define UPERMS_CACHE_INCLUDE typedef struct mutex MT_MUTEX; typedef struct uperms_cache { MT_MUTEX *cache_lock; int processing; struct uperms_entry *uperms_list; // No prior struct uperms_entry } uperms_cache_t; typedef struct uperms_entry // Does this define a different struct uperms_entry? { char username[32]; int perms; struct uperms_entry *next; } uperms_entry_t; #endif /* UPERMS_CACHE_INCLUDE */ Adjunct questions: 1. If there are two types, is there any way to get GCC to report the issue? 2. If there are two types, does it ever matter in practice? (I think the answers are 'yes — strictly there are two types', and then (1) No and (2) No.) _Context: internal code review — I'd like the order of the structures reversed, but I'm not sure whether I'm being completely overly pedantic._
0
[ 2, 630, 14, 272, 1236, 3563, 30, 80, 50, 53, 54, 81, 13, 22, 10346, 71, 106, 79, 18, 1, 18195, 22, 2551, 19, 48, 157, 106, 60, 800, 3726, 3726, 92, 42, 590, 1260, 17, 7573, 37, 53, 16, 14, 132, 272, 3364, 13, 5, 3515, 2407...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to adjust Wordpress Twitter Tools PHP === I'd like to update this function so that it also imports a link to the status and the time it was posted. Here's the original function do_tweet_post($tweet) { global $wpdb; remove_action('publish_post', 'aktt_notify_twitter', 99); $data = array( 'post_content' => $wpdb->escape(aktt_make_clickable($tweet-> tw_text)) , 'post_title' => $wpdb->escape(trim_add_elipsis($tweet->tw_text, 30)) , 'post_date' => get_date_from_gmt(date('Y-m-d H:i:s', $tweet->tw_created_at)) , 'post_category' => array($this->blog_post_category) , 'post_status' => 'publish' , 'post_author' => $wpdb->escape($this->blog_post_author) ); The element that I'm trying to edit is `'post_content'`. Here's what I've tried so far: ... 'post_content' => $wpdb->escape(aktt_make_clickable($tweet-> tw_text.' from '.'<a href="http://www.twitter.com/1beb/statuses/"'.tw_id.'>Twitter</a> '.tw_created_at)) ... I'm not very familiar with PHP so I don't know if my syntax is correct, or how to deal with this particular type of referencing (`->`). I recall that you can concatenate strings using `''.''.''.` etc, but not sure if it's valid for a case like this. I apologize for the lack of context, if there's something else I can add to make it clearer, please advise. TIA
0
[ 2, 184, 20, 14328, 833, 5890, 10623, 4672, 13, 26120, 800, 3726, 3726, 31, 22, 43, 101, 20, 11100, 48, 1990, 86, 30, 32, 67, 20617, 21, 3508, 20, 14, 1782, 17, 14, 85, 32, 23, 6054, 9, 235, 22, 18, 14, 501, 1990, 107, 1, 38,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Comparing two lists in Python === So to give a rough example without any code written for it yet, I'm curious on how I would be able to figure out what both lists have in common. Example: listA = ['a', 'b', 'c'] listB = ['a', 'h', 'c'] I'd like to be able to return: ['a', 'c'] How so? Possibly with variable strings like: john = 'I love yellow and green' mary = 'I love yellow and red' And return: 'I love yellow and'
0
[ 2, 15047, 81, 7227, 19, 20059, 800, 3726, 3726, 86, 20, 590, 21, 4182, 823, 366, 186, 1797, 642, 26, 32, 768, 15, 31, 22, 79, 7686, 27, 184, 31, 83, 44, 777, 20, 1465, 70, 98, 156, 7227, 57, 19, 757, 9, 823, 45, 968, 58, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I add/update post meta in a admin menu page? === I wanted to create a plugin to batch manage posts' custom field data. I know I can add post meta by add a meta box in post edit screen and use add_action('save_post','function_to_update_meta') to trigger add meta functions. But I don't know how to trigger the add_post_meta function in a admin menu page (such as a custom admin menu). How to do that? Thank you in advance!
0
[ 2, 184, 92, 31, 3547, 118, 576, 8209, 678, 7618, 19, 21, 21, 43, 2160, 11379, 2478, 60, 800, 3726, 3726, 31, 417, 20, 1600, 21, 10922, 108, 20, 13064, 4705, 9868, 22, 5816, 575, 1054, 9, 31, 143, 31, 92, 3547, 678, 7618, 34, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to compare two characters in Processing? === I am a novice programmer and I am trying to compare two characters from different strings, such that I can give an arbitrary index from each string and check to see if they match. From the processing website it seems that you can compare two strings, which I have done, but when I try to do so with characters it seems that the arguments (char,char) are not applicable. Can someone tell me where I am going wrong? Thanks.
0
[ 2, 25, 32, 938, 20, 11590, 81, 1766, 19, 5511, 60, 800, 3726, 3726, 31, 589, 21, 21999, 17968, 17, 31, 589, 749, 20, 11590, 81, 1766, 37, 421, 7887, 15, 145, 30, 31, 92, 590, 40, 17237, 4348, 37, 206, 3724, 17, 2631, 20, 196, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
javascript variable access error === Please see the code snippet below: var pred = { _position: 0, setPosition: function (i) { _position = i }, getPosition: function () { return _position }, _size: 0, setSize: function (i) { _size = i }, getSize: function () { return _size }, _context: null, setContext: function (x) { _context = x }, run: function () { return function (c_) { return make_cps(_position, c_); }(ret_) == 2; } } when i run it like below, it runs correctly: pred.setPosition(2) pred.setSize(10) pred.setContext(null) var res = pred.run() console.log(res) // Output: true but if i replace the `_position` to `getPosition()` it gives error that `getPosition()` is not defined. Also if i change to `this.getPosition()` it says `this` doesn't have a member called `getPosition()` var pred = { _position: 0, setPosition: function (i) { _position = i }, getPosition: function () { return _position }, _size: 0, setSize: function (i) { _size = i }, getSize: function () { return _size }, _context: null, setContext: function (x) { _context = x }, run: function () { return function (c_) { return make_cps(this.getPosition(), c_); // gives Error here }(ret_) == 2; } } Please someone throw light on this issue. Thanks, Regards, Vimal
0
[ 2, 8247, 8741, 7612, 1381, 7019, 800, 3726, 3726, 2247, 196, 14, 1797, 13, 29061, 1021, 45, 4033, 782, 43, 800, 13, 1, 13, 1, 9339, 45, 713, 15, 309, 9339, 45, 1990, 13, 5, 49, 6, 13, 1, 13, 1, 9339, 800, 31, 13, 1, 15, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android SearchSuggestSelection enable query startswith instead of contains search === I'm using the Android [SearchRecentSuggestionsProvider][1] and [Searchable Configuration][2] to display previous in app searches and would like to limit the suggested responses to only return enteries that start with ? (what the user is typing) currently "p" returns phone, ipod, photo, happy, and what I'm after is just phone and photo Something eqlivent to SQL like % but I can't seem to get that to work. <searchable xmlns:android="http://schemas.android.com/apk/res/android" android:hint="@string/product_search_hint" android:imeOptions="actionSearch" android:label="@string/app_label" android:searchSuggestAuthority="com.myapp.ProductSearchSuggestionProvider" android:searchSuggestSelection="word MATCH ?" > </searchable> [1]: http://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html [2]: http://developer.android.com/guide/topics/search/adding-custom-suggestions.html#CustomSearchableConfiguration
0
[ 2, 13005, 2122, 18, 21606, 1430, 18, 5033, 9240, 25597, 3244, 1410, 700, 16, 1588, 2122, 800, 3726, 3726, 31, 22, 79, 568, 14, 13005, 636, 25136, 99, 5089, 18, 21606, 1430, 5757, 26735, 139, 500, 2558, 165, 500, 17, 636, 25136, 579,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CouchApp: List function with include_docs=true === I'm writing a simple CMS CouchApp as a pet project. I'm running CouchDB 1.2.0 on OS X 10.7.4 and using the Python CouchApp development tool. Basically I wanna have pages as documents and a page would refer to another document that contains the shared layout of the site. Example of a page document: { "_id": "index", "_rev": "3-d5451ea54212ae6ec0d8d2d95c5f225d", "content": "<img src=\"/images/img.jpg\"/> <p>Lorem ipsum dolor sit amet.</p>", "layout": "layouts/default" } Example of a layout document: { "_id": "layouts/default", "_rev": "1-d2fa96e15ab8768828b262d81265f3d2", "content": "<!DOCTYPE html> <html><head> <title>Foo</title> </head><body><div>{{content}}</div></body> </html>" } So basically to render a page I will need to fetch two documents. I would then render the page into the layout using Mustache. I fiddled around with show functions for a while but couldn't figure out a way to get the layout document in the function. I then stumbled upon include_docs and I'm now trying to get this to work using a list function and a view. My map function is as follows: function(doc) { if (doc.layout) { emit([doc._id, 1], doc); emit([doc._id, 0], {_id: doc.layout }); } }; When I navigate to the view itself in a browser giving the parameters include_docs=true&startkey=["index",0]&endkey=["index",1], it works just fine and is loading the layout documents. However, the layout document doesn't get passed to list functions. Running this list function on the aforementioned view function(head, req) { var doc = null; var row = getRow(); do { if (!row.value.layout){ doc = row.value; } } while (row = getRow()) for (i in doc) { send(i); } } ... with the same parameters renders: _id I did a bit of googling and noticed that there was bug in CouchDB where linked documents didn't get passed onto the list function (https://issues.apache.org/jira/browse/COUCHDB-444). As far as I can tell, this should be fixed already. Is this a case of regression or me being retarded?
0
[ 2, 4914, 7753, 45, 968, 1990, 29, 468, 1, 13799, 18, 3726, 13398, 800, 3726, 3726, 31, 22, 79, 1174, 21, 1935, 2390, 18, 4914, 7753, 28, 21, 3170, 669, 9, 31, 22, 79, 946, 4914, 9007, 137, 9, 135, 9, 387, 27, 13, 759, 993, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Home page not displaying correctly in firefox === For some reason my web page does not display correctly in firefox. www.streetstyles4all.co.uk displays correctly in IE9, Safari, chrome. When on firefox if I zoom out or in the layout changes. But then the youtube video begins to smear and pixelate. I asked a friend to check firefox on their computer and the same thing happens. Can anyone advise?
0
[ 2, 213, 2478, 52, 17418, 12044, 19, 535, 18219, 800, 3726, 3726, 26, 109, 1215, 51, 2741, 2478, 630, 52, 3042, 12044, 19, 535, 18219, 9, 13, 6483, 9, 13376, 4381, 18, 300, 1233, 9, 716, 9, 2185, 9412, 12044, 19, 13, 660, 518, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to call methods from blackberry native to javascript? === I am developing an app where i need to call some methods from blackberry native to javascript. when i click on back key down event , i want to trigger the **onBackKeyDown()** method, which is declared in javascript. Main.java protected boolean keyDown(int keycode, int time) { // TODO Auto-generated method stub if(Keypad.key(keycode) == Keypad.KEY_ESCAPE) { // onBackKeyDown(); // i want to call the following method which is declared in main.js file Dialog.alert("this is back button"); return true; } return super.keyDown(keycode, time); } main.js function onBackKeyDown() { try { if ($.mobile.activePage.is("#Page1")) { $.mobile.changePage("#page5"); } else if ($.mobile.activePage.is("#page2")) { $.mobile.changePage("#main"); } else if ($.mobile.activePage.is("#page3")) { $.mobile.changePage("#main"); } else if ($.mobile.activePage.is("#main")) { navigator.app.exitApp(); } } catch(e) { alert("Exception:ConsoleLog.log:" + e); } } As i am having idea that by using **"extendScriptEngine"** , the methods declared in javascript are invoked in native. But here how to invoke the methods in javascript which are in native as per my above code... can anyone please help me with this...
0
[ 2, 184, 20, 645, 3195, 37, 27367, 1275, 20, 8247, 8741, 60, 800, 3726, 3726, 31, 589, 3561, 40, 4865, 113, 31, 376, 20, 645, 109, 3195, 37, 27367, 1275, 20, 8247, 8741, 9, 76, 31, 10840, 27, 97, 1246, 125, 807, 13, 15, 31, 259...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to constrain records with the search keyword for messaging system === I just implemented the gem called "Mailboxer" (<https://github.com/ging/mailboxer>) Everything works find but keyword search over the messages function. In here(<https://github.com/frodefi/rails-messaging>), it talks about enabling search. But I don't want to install the gem "messaging" for some reasons. Is there any possible way to constrain the message records with specific keyword that user typed?? something like this easy @messages = current_user.mailbox.inbox
0
[ 2, 184, 20, 11608, 11809, 742, 29, 14, 2122, 1246, 9587, 26, 26437, 329, 800, 3726, 3726, 31, 114, 6807, 14, 8551, 227, 13, 7, 8079, 5309, 106, 7, 13, 5, 1, 21127, 18, 6903, 10404, 20926, 9, 960, 118, 2762, 118, 8079, 5309, 106,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regex to get everything but last word in sentence of words seperated by “/“? === What would be the appropriate regex to get everything of a sentence except the final word: For example: /hello/world -> /hello/ /one/two/three -> /one/two/ /foo/bar/ice/tea -> /foo/bar/ice/
0
[ 2, 7953, 1706, 20, 164, 796, 47, 236, 833, 19, 5123, 16, 715, 10332, 106, 1669, 34, 13, 1, 118, 1, 60, 800, 3726, 3726, 98, 83, 44, 14, 4593, 7953, 1706, 20, 164, 796, 16, 21, 5123, 1613, 14, 426, 833, 45, 26, 823, 45, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery widget smoothDivScroll right Hot Spot not scrolling, only easing on mouseout === I'm having an issue with smoothDivScroll ([http://www.smoothdivscroll.com/][1]). The left hot spot works fine; however the right hot spot does nothing on mouseover but does honor the ease out (i.e. I set `easingAfterHotSpotScrollingDistance: 100` and on mouseout it jumps that much). I added a console.log() to smoothDivScroll-1.2.js to log mouseover and mouseout and they are firing at the right times. Also, please note the image below: If I add width: 10% to the right hot spot, the background image is pushed to the left and the white space to the right of the image works fine on mouseover, but mousing over the area of the background image does not. ![Scroller][2] Please see code below: HTML after smoothDivScroll() is called: <ul class="quicktabs-tabs quicktabs-style-nostyle"> <div class="scrollingHotSpotLeft scrollingHotSpotLeftVisible" style=""></div> <div class="scrollingHotSpotRight scrollingHotSpotRightVisible" style=""></div> <div class="scrollWrapper"> <div class="scrollableArea" style="width: 1173px; "> <li class="active first"><a href="/drupal-7.14/general?qt-view__show_history__block=0#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-0" class="active quicktabs-loaded jquery-once-2-processed">1972</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=1#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-1" class="active jquery-once-2-processed">1984</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=2#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-2" class="active jquery-once-2-processed">1991</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=3#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-3" class="active jquery-once-2-processed">1994</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=4#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-4" class="active jquery-once-2-processed">1996</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=5#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-5" class="active jquery-once-2-processed">1997</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=6#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-6" class="active jquery-once-2-processed">1998</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=7#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-7" class="active jquery-once-2-processed">2000</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=8#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-8" class="active jquery-once-2-processed">2001</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=9#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-9" class="active jquery-once-2-processed">2002</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=10#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-10" class="active jquery-once-2-processed">2003</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=11#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-11" class="active jquery-once-2-processed">2004</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=12#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-12" class="active jquery-once-2-processed">2005</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=13#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-13" class="active jquery-once-2-processed">2006</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=14#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-14" class="active jquery-once-2-processed">2008</a></li> <li><a href="/drupal-7.14/general?qt-view__show_history__block=15#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-15" class="active jquery-once-2-processed">2011</a></li> <li class="last"><a href="/drupal-7.14/general?qt-view__show_history__block=16#qt-view__show_history__block" id="quicktabs-tab-view__show_history__block-16" class="active jquery-once-2-processed">2012</a></li> </div> </div> </ul> Javascript: jQuery(document).ready(function($){ $(".quicktabs-tabs").smoothDivScroll({ mousewheelScrolling: true, visibleHotSpotBackgrounds: 'always', hotSpotScrollingStep:1, hotSpotScrollingInterval:15, autoScrollingMode: "", manualContinuousScrolling: true, easingAfterHotSpotScrollingDistance: 100, }); }); CSS: .scrollingHotSpotLeft { position: absolute; left: 0; width: 90px; height: 106px; background: transparent url(../img/show-history-arrow_sprite.gif) 0 -110px no-repeat; } .scrollingHotSpotRight { position: absolute; z-index: 99; right: 0; width: 90px; height: 106px; background-image: url(../img/show-history-arrow_sprite.gif) no-repeat; background-repeat: no-repeat; background-position: 47px 0; } div.scrollWrapper { position: relative; overflow: hidden; width: 100%; height: 100%; } div.scrollableArea { position: relative; width: auto; height: 100%; } [1]: http://www.smoothdivscroll.com/ [2]: http://i.stack.imgur.com/i8o9o.gif
0
[ 2, 487, 8190, 93, 4807, 43, 3060, 3905, 12916, 3862, 8694, 193, 1047, 1999, 52, 13, 28166, 15, 104, 13, 16524, 27, 7567, 1320, 800, 3726, 3726, 31, 22, 79, 452, 40, 1513, 29, 3905, 12916, 3862, 8694, 13, 5, 2558, 21127, 6903, 6483...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Magento CSS Merge breaks layout in IE browsers === I am developing a magento website, and it is using CSS merge option. currently in IE the CSS not rendering properly. When I remove some part of CSS file its working. Some times it works when I remove 50 line from top. Some times it works when I remove 100 lines from bottom. So it's nothing related to the CSS I wrote. Merged file contains about 6000 lines and having 380 KB file size. can anybody help me on this ? Thanks
0
[ 2, 4723, 17050, 272, 18, 18, 12666, 7947, 9106, 19, 13, 660, 16495, 18, 800, 3726, 3726, 31, 589, 3561, 21, 4723, 17050, 2271, 15, 17, 32, 25, 568, 272, 18, 18, 12666, 4255, 9, 871, 19, 13, 660, 14, 272, 18, 18, 52, 15307, 742...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cli.Gtk not found on Mono Develop 2.8.6 (Ubuntu 12.04) on Java Ikvm GTK# Project? === Im a novice. I have no clue how to use Ikvm and GTK # and why Im having this problem while building a program. Here is a screen shot which can explain the problem : http://i1053.photobucket.com/albums/s471/curious_apprentice/Screenshot20from202012-07-052021061.png
0
[ 2, 19391, 9, 263, 38, 197, 52, 216, 27, 4129, 2803, 172, 9, 457, 9, 379, 13, 5, 4502, 1020, 2473, 390, 9, 3277, 6, 27, 8247, 13, 2883, 20147, 9509, 197, 5910, 669, 60, 800, 3726, 3726, 797, 21, 21999, 9, 31, 57, 90, 8906, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What happens exactly when we right click a URL and choose "Save as" in IE? === What actions does the IE take when we right click the following URL and choose "Save as"? http://www.somesite.com/some_file.zip I heard of something like "HTTP Download", what exactly is it? My understanding is, HTTP is a text based protocol, how could it be used to transfer different kinds of files? My guess is, when we choose Save as for a URL, IE (or any other browser) will open a new TCP connection to the server and do the file transfer. It should have nothing to do with HTTP. - When we visit a web page, browser use TCP connection to transfer HTTP info and HTMLs. - When we download file in IE, browser use TCP **It's essentially the same, only differnt in what's being transfered.** Am I right? connection to tranfer file content.
0
[ 2, 98, 5531, 1890, 76, 95, 193, 10840, 21, 287, 6362, 17, 3538, 13, 7, 19863, 28, 7, 19, 13, 660, 60, 800, 3726, 3726, 98, 3078, 630, 14, 13, 660, 247, 76, 95, 193, 10840, 14, 249, 287, 6362, 17, 3538, 13, 7, 19863, 28, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
styles and scripts not loading in my magento website after git pull === After i pull changes from development server to production server the styles and scripts are not loading up in the html as shown below ![enter image description here][1] [1]: http://i.stack.imgur.com/gqpqy.jpg I tried restarting the server and php service and cleared the caceh under /var/cache folder. what i am guessing is its because of Cache, but i cannot disable cache under admin panel as all the scripts are not added to head. how do i disable all cache in this scenario? Please suggest.
0
[ 2, 6443, 17, 17505, 52, 12797, 19, 51, 4723, 17050, 2271, 75, 13, 10404, 2201, 800, 3726, 3726, 75, 31, 2201, 1693, 37, 522, 8128, 20, 637, 8128, 14, 6443, 17, 17505, 50, 52, 12797, 71, 19, 14, 13, 15895, 28, 1721, 1021, 13, 187...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# - How to detect changes to SQL Server using SqlDependency? === I have a Windows Service that is supposed to wait for database changes. The database table it looks at looks like this : > Id [Guid] > Name [text] > MatchId [Guid] => this is a foreign key > MatchDateTime [DateTime] I would like my service to detect whenever someone 'cleared' the 'MatchId' field (assigned NULL to it), and then for all the rows that have 'NULL' in their 'MatchId' field - perform some algorithm that finds a match for them and assigns the 'MatchId' field. Problem is - if I use the 'SqlDependency' class, and wait for it to trigger on the 'MatchId' field - I will only get notified when **new** rows are affected, but any existing rows with 'MatchId = NULL' - I will not know about. This means that if the Windows Service loads, and there are already 20 rows in the table with 'MatchId = NULL', and for the next 5 hours no one will 'clear' the 'MatchId' row - this means that I will not know about the existing 20 rows and will not handle them. One solution might be that before I setup the 'SqlDependency' - I should perform a quick 'Select' to see if there are any **existing** rows with 'MatchId = NULL', and if so - handle them, and only then setup the dependency. The problem is - in the short interval between finishing to handle those rows, and setting up the SqlDependency - there might occur an event where someone changed a row to 'MatchId = NULL', and then again - I wouldn't catch it in the SqlDependency. Any idea how this can be solved ? (If the worst comes to the worst, I will just not use SqlDependency, and I will just have to poll the database every XXX minutes ...)
0
[ 2, 272, 5910, 13, 8, 184, 20, 9092, 1693, 20, 4444, 255, 8128, 568, 4444, 255, 19038, 8883, 60, 800, 3726, 3726, 31, 57, 21, 1936, 365, 30, 25, 2293, 20, 1760, 26, 6018, 1693, 9, 14, 6018, 859, 32, 1879, 35, 1879, 101, 48, 13,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
TransactionScope with Typed Dataset === Is it possible to use TransactionScope with a Typed Dataset? as in: using (var transaction = new TransactionScope()) { typedDataSet.DeleteStuff(id); typedDataSet2.DeleteSomeOtherStuff(id2); transaction.Complete(); } Will the the sql queries related to DeleteStuff(id) and DeleteSomeOtherStuff(id) actually be transactional if an error is thrown?
0
[ 2, 12799, 11555, 29, 1001, 43, 1054, 3554, 800, 3726, 3726, 25, 32, 938, 20, 275, 12799, 11555, 29, 21, 1001, 43, 1054, 3554, 60, 28, 19, 45, 568, 13, 5, 3311, 12799, 800, 78, 12799, 11555, 5, 6, 6, 13, 1, 1001, 43, 18768, 355...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Windows service can not access the other projects in runtime === In my Solution Explorer i have many projects ( target framework 3.5) and one windows service (target framework 4.0) in my windows service i used some methods form other projects but in run time my service cannot access any of them any idea ??
0
[ 2, 1936, 365, 92, 52, 1381, 14, 89, 2314, 19, 485, 891, 800, 3726, 3726, 19, 51, 4295, 8520, 31, 57, 151, 2314, 13, 5, 2935, 6596, 203, 9, 264, 6, 17, 53, 1936, 365, 13, 5, 3958, 3060, 6596, 268, 9, 387, 6, 19, 51, 1936, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CakePHP 1.3 HABTM - Add works fine, Edit will not save HABTMs === I am having a problem with my HABTM updates in CakePHP 1.3. First off, here is the relationship declaration as it appears in the Alert model: var $hasAndBelongsToMany = array( 'Region' => array( 'className' => 'Region', 'joinTable' => 'alerts_regions', 'foreignKey' => 'alert_id', 'associationForeignKey' => 'region_id', 'unique' => true, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', 'deleteQuery' => '', 'insertQuery' => '' ), 'ForecastZone' => array( 'className' => 'ForecastZone', 'joinTable' => 'alerts_forecast_zones', 'foreignKey' => 'alert_id', 'associationForeignKey' => 'forecast_zone_id', 'unique' => true, 'conditions' => '', 'fields' => '', 'order' => '', 'limit' => '', 'offset' => '', 'finderQuery' => '', 'deleteQuery' => '', 'insertQuery' => '' ) ); When I submit my form to create a record for the model everything works fine and the associated models (HABTM tables) get the proper records created. $this->data looks like this: Array ( [Alert] => Array ( [title] => Test Alert [overview] => This is a test alert overview [user_id] => 3 [timeframe] => Tonight [effective] => 2012-07-05 18:00:00 [effective_time] => 6:00 [effective_ampm] => pm [expires] => 2012-07-05 21:00:00 [expires_time] => 9:00 [expires_ampm] => pm ) [Region] => Array ( [Region] => Array ( [0] => 6 [1] => 5 ) ) [ForecastZone] => Array ( [ForecastZone] => Array ( [0] => 1598 [1] => 1594 [2] => 2685 [3] => 1565 [4] => 1613 [5] => 1595 ) ) ) Now, because of the complex associations with this Model (Alert, ForecastZone, and Region) I have it set up so there is a separate interface on the Alerts/Edit page to update JUST the forecast zones. The Alerts controller figures out what Regions the Forecast Zones belong to, and the controller populates the [Region][Region] value on it's own. The ForecastZones are selected from an interface where the user clicks to select which zones they want. When I submit a form to the /alerts/edit action, I can save the Alert data (title, overview, etc) no problem. However, it is IMPOSSIBLE for me to get the related HABTM models to update. I am at the verge of just doing it all with $this->query() but I am going to try one last time to figure out what is going wrong. Here is what the form looks like when I submit to /alerts/edit: Array ( [Alert] => Array ( [id] => 37 [fcz_update] => true ) [Region] => Array ( [Region] => Array ( [0] => 6 [1] => 5 ) ) [ForecastZone] => Array ( [ForecastZone] => Array ( [0] => 1595 [1] => 1613 [2] => 1565 [3] => 2685 [4] => 1594 [5] => 1598 [6] => 2989 [7] => 3723 [8] => 1650 [9] => 1626 [10] => 1653 [11] => 1678 [12] => 3447 [13] => 1649 [14] => 1654 [15] => 1675 [16] => 3448 [17] => 1668 [18] => 1664 [19] => 1635 [20] => 1667 [21] => 1628 ) ) ) I have tried $this->Alert->save($this->data) as well as $this->Alert->saveAll($this->data) and neither of these work. Both save() functions return a 1 (true) so I assume they are successful... yet when I return to my recently edited records... nothing has changed. I tried adding all of the other Alert data into the form as hidden fields, so I could save the whole alert data at once... this does not work either. The best bugs are the ones that throw no errors or have any way for you to figure out what's going wrong. So angry and frustrated... please help.
0
[ 2, 8390, 26120, 137, 9, 240, 13, 9075, 38, 79, 13, 8, 3547, 693, 1123, 15, 9392, 129, 52, 2079, 13, 9075, 38, 79, 18, 800, 3726, 3726, 31, 589, 452, 21, 1448, 29, 51, 13, 9075, 38, 79, 16779, 19, 8390, 26120, 137, 9, 240, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
customize share text for G+, FB, and LinkedIn, WITHOUT using OG meta tags === Twitter has a beautiful share API. If I want to customize text, I just include it in the URL I'm linking to: <a href="https://twitter.com/share" class="twitter-share-button" data-text="whoa, check out this SUPER-EASY CUSTOMIZED TWEET TEXT!" data-via="foo"> Tweet </a> My question is whether there is a way to do this with Facebook, Google Plus, and LinkedIn. I want to be able to do this *without* having to put og meta tags in the link target. Basically instead of the link target having knowledge of the message, I want the share button itself to have that knowledge. Thanks
0
[ 2, 5816, 2952, 1891, 1854, 26, 489, 2430, 15, 13, 13478, 15, 17, 4727, 108, 15, 366, 568, 7096, 7618, 3383, 18, 800, 3726, 3726, 10623, 63, 21, 1632, 1891, 21, 2159, 9, 100, 31, 259, 20, 5816, 2952, 1854, 15, 31, 114, 468, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Make Convert.ToDouble work with different CultureInfos === Whats the best way to make the conversion work when you have: string a = "10.0123"; string b = "10,0123"; And the cultureinfo is either swedish or english, it needs to work with both. I tried: double aSwe = Convert.ToDouble(a, CultureInfo.GetCultureInfo("sv-SE")); double bSwe = Convert.ToDouble(b, CultureInfo.GetCultureInfo("sv-SE")); double aInv = Convert.ToDouble(a, CultureInfo.InvariantCulture); double bInv = Convert.ToDouble(b, CultureInfo.InvariantCulture); Since '.' is not a valid separator in Swe and ',' is not valid in Eng I dont know how to make it work with both using the same code. Only solution I come up with is to replace the comma or dot before converting but it feels like there should be better solution?
0
[ 2, 233, 8406, 9, 262, 14368, 170, 29, 421, 1365, 108, 4120, 18, 800, 3726, 3726, 98, 18, 14, 246, 161, 20, 233, 14, 6263, 170, 76, 42, 57, 45, 3724, 21, 800, 13, 7, 1036, 9, 3026, 2001, 7, 73, 3724, 334, 800, 13, 7, 1036, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
call stack unwinding in ARM cortex m3 === I would like to create a debugging tool which will help me debug better my application. I'm working bare-bones (without an OS). using IAR embedded workbench on Atmel's SAM3. I have a Watchdog timer, which calls a specific IRQ in case of timeout (This will be replaced with a software reset on release). In the IRQ handler, I want to print out (UART) the stack trace, of where exactly the Watchdog timeout occurred. I looked in the web, and I didn't find any implementation of that functionality. Anyone has an idea on how to approach this kind of thing ?
0
[ 2, 645, 7566, 367, 7809, 68, 19, 813, 19685, 307, 240, 800, 3726, 3726, 31, 83, 101, 20, 1600, 21, 121, 16254, 2762, 5607, 56, 129, 448, 55, 121, 16254, 574, 51, 3010, 9, 31, 22, 79, 638, 4856, 8, 8640, 18, 13, 5, 14506, 40, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Elegant solution to class design === I have following design problem programming application in **C#.** I have classes **A** and **B** that both **derives from C**. I cannot change theirs definition because they are defined in **external assembly** and are **not** defined as **partial** too. What I am trying to achieve is to differ functionality basing on weather provided **C object** is of type ***A or B***. Of course I dont want to use if statements comparing runtime types of provided object. Is it possible with **extensions methods?** I dont think so. Any solution? :)
0
[ 2, 11614, 4295, 20, 718, 704, 800, 3726, 3726, 31, 57, 249, 704, 1448, 3143, 3010, 19, 13, 1409, 150, 5910, 9, 1409, 31, 57, 2684, 13, 1409, 58, 1409, 17, 13, 1409, 220, 1409, 30, 156, 13, 1409, 1157, 1284, 18, 37, 272, 1409, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Embeddable Rails Widget === I'm trying to create a paginated list of record results that someone can embed into their site with a simple script tag and customize with CSS. I'm following [this example](http://emphaticsolutions.com/2011/01/21/functional-widgets-with-rails-javascript-jsonp.html) but there's too many missing pieces in the explanation for me to piece together a working solution. Can someone please point me to a simple working example or better tutorial? Should I just give up and use an `iframe`?
0
[ 2, 11911, 69, 43, 579, 2240, 18, 4807, 43, 3060, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 19006, 12721, 968, 16, 571, 1736, 30, 737, 92, 11911, 69, 77, 66, 689, 29, 21, 1935, 3884, 3383, 17, 5816, 2952, 29, 272, 18, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Split floating point number into fractional and integral parts === I'm writing a template class designed to work with any floating point type. For some of the methods I need to split a number into its integral and fractional parts. With primitive floating point types I can just cast to an integer to truncate the fractional part, but this wouldn't work with a big number class. Ideally my class would only use the four basic arithmetic operations (addition, subtraction, multiplication, division) in its calculations. The method below is the solution I came up with. All it does is subtract powers of ten until the original number is less than 1. It works well, but seems like a brute-force approach. Is there a more efficient way to do this? template< typename T > class Math { public: static T modf( T const & x, T & intpart ) { T sub = 1; T ret = x; while( x >= sub ) { sub *= 10; } sub /= 10; while( sub >= 1 ) { while( ret >= sub ) { ret -= sub; } sub /= 10; }//while [sub] > 0 intpart = x - ret; return ret; } } Note that I've removed the sign management code for brevity.
0
[ 2, 2132, 8319, 454, 234, 77, 10885, 192, 17, 9315, 1341, 800, 3726, 3726, 31, 22, 79, 1174, 21, 22894, 718, 1006, 20, 170, 29, 186, 8319, 454, 1001, 9, 26, 109, 16, 14, 3195, 31, 376, 20, 2132, 21, 234, 77, 82, 9315, 17, 10885...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can I copy a text on a webpage and paste it in a text file? === I have a webpage which dynamically displays a text which I want to copy into a text file using watir-webdriver or any other additional gems. Is it possible?? If yes, how?? Thanks in advance..
0
[ 2, 92, 31, 4344, 21, 1854, 27, 21, 2741, 6486, 17, 640, 62, 32, 19, 21, 1854, 3893, 60, 800, 3726, 3726, 31, 57, 21, 2741, 6486, 56, 7782, 1326, 9412, 21, 1854, 56, 31, 259, 20, 4344, 77, 21, 1854, 3893, 568, 15553, 1523, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to split a string of words and add to an array - Objective C === Let's say I have this: `NSString *str = @"This is a sample string";` How will I split the string in a way that each word will be added into a NSMutableArray? In VB.net you can do this: Dim str As String Dim strArr() As String Dim count As Integer str = "vb.net split test" strArr = str.Split(" ") For count = 0 To strArr.Length - 1 MsgBox(strArr(count)) Next So how to do this in Objective-C? Thanks
0
[ 2, 184, 20, 2132, 21, 3724, 16, 715, 17, 3547, 20, 40, 7718, 13, 8, 7038, 272, 800, 3726, 3726, 408, 22, 18, 395, 31, 57, 48, 45, 13, 1, 2172, 11130, 1637, 9729, 800, 13, 1, 7, 1565, 25, 21, 5717, 3724, 7, 73, 1, 184, 129,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
BER Encoding of an Octet String === I am working on implementing the ITU-T Rec. X.690-0207 ANS.1 BER encoding rule. But I seem not to understand how to encode an octet string value from this documentation. Can someone please help break this down into steps with an example. I intent implementing these encoding rules in C language. I really will appreciate if I can get a link to step examples on how this different values can be encoded using the BER encoding rule. I hope my question is clear enough? Thanks.
4
[ 2, 5914, 19608, 16, 40, 9543, 1198, 3724, 800, 3726, 3726, 31, 589, 638, 27, 17333, 14, 32, 291, 8, 38, 6042, 9, 993, 9, 23954, 8, 3564, 2984, 40, 18, 9, 165, 5914, 19608, 1828, 9, 47, 31, 2260, 52, 20, 1369, 184, 20, 20523, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rails (now) not liking my jquery script which turned <td> elements into links. "undefined method" error === Here is the erring portion of the view (show.html.erb) <% @results.each do |r| %> <tr class="tweets"> <script> $("td.status").click(function(){ window.location = "http://www.twitter.com/id/status/<%= r.page_id %>"; }); </script> <td class="user"><img src="<%= r.img_url %>"></td> <td class="user"><strong><%= r.screen_name %></strong></td> <td class="user"><%= r.real_name %></td> <td class="time"><%= r.time_ago %></td> <td class="status"><%= r.status %></td> </tr> <% end %> Note that when I remove the jquery script all other r.element tags work. The @results object instantiated in this view's controller (called here) calls this script (I'm only showing part of it) def initialize(tweet_hash) @img_url = tweet_hash['profile_image_url'] @screen_name = tweet_hash['from_user'] @real_name = tweet_hash['from_user_name'] @status = tweet_hash['text'] @page_id = tweet_hash['id'] ...(cont)... There is a lot of complicated (to me anyway) parsing going on here through a series of files, gems, classes, but know that without the jquery script which "linkifies" given <td> elements, all is working well. Previously I used this jquery script without error. Please let me know if you'd like more information. EDIT (DOH!) --- here's the error message: NoMethodError in Searches#show Showing /home/ddouglas/Develop/twitter_research/app/views/searches/show.html.erb where line #28 raised: undefined method `page_id' for #<SimpleTwitter::Tweet:0x000000030ee590> Extracted source (around line #28): 25: 26: <script> 27: $("td.status").click(function(){ 28: window.location = "http://www.twitter.com/id/status/<%= r.page_id %>"; 29: }); 30: </script> 31: <td class="user"><img src="<%= r.img_url %>"></td>
0
[ 2, 2240, 18, 13, 5, 1387, 6, 52, 19007, 51, 487, 8190, 93, 3884, 56, 412, 13, 1, 38, 43, 1, 2065, 77, 6271, 9, 13, 7, 1020, 13439, 2109, 7, 7019, 800, 3726, 3726, 235, 25, 14, 13, 106, 2090, 2980, 16, 14, 1418, 13, 5, 9303...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
trying to manpulate <textblock> created inside <datatemplate> === I have this xaml code <DataTemplate x:Name="tamp1"> <Border Name="b1" BorderBrush="Black" BorderThickness="2" CornerRadius="5" Margin="6"> <StackPanel Orientation="Vertical"> <Image Source="{Binding Path=UriSource}" Stretch="Fill" Width="70" Height="55"/> **<TextBlock Name="imagecaption" Text="{Binding XPath=imagecaption}" HorizontalAlignment="Center"></TextBlock>** </StackPanel> </Border> </DataTemplate> i need to edit the textblock.text from c# code, can any one help me with that? I've tried to many solution but non of them worked with me :(
0
[ 2, 749, 20, 169, 306, 12383, 13, 1, 11969, 12048, 1, 679, 572, 13, 1, 18768, 9577, 6554, 1, 800, 3726, 3726, 31, 57, 48, 13, 6791, 8184, 1797, 13, 1, 18768, 9577, 6554, 993, 45, 7259, 3726, 7, 38, 10158, 165, 7, 1, 13, 1, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Excel array formula to MySQL equivalent === I've been using a pretty simple array formula in excel to crunch some datasets but they're getting too large and absolutely destroying my computers performance whenever I update the calculations. The excel sheet and MySQL database are laid out like so: +-Timestamp-+-value-+ | 1340816430| .02 | --------------------- x600,000 rows Here's the excel formula: {=AVERAGEIFS(B:B,A:A,"<"&A1+1000,A:A,">"&A1-1000)} That returns the average of the values, and is the third column in the excel sheet. Is there any plausible way for me to create a MySQL query that performs a similar operation and returns a column with the values that would have been in the third column had I run excel's formula?
0
[ 2, 20700, 7718, 3729, 20, 51, 18, 22402, 4602, 800, 3726, 3726, 31, 22, 195, 74, 568, 21, 1772, 1935, 7718, 3729, 19, 20700, 20, 13, 13555, 109, 1054, 3554, 18, 47, 59, 22, 99, 1017, 266, 370, 17, 6916, 10498, 51, 7774, 956, 663...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
UIProgressView scaling issue === I'm having this odd issue with UIProgressView. This video will explain better than I can with words... https://vimeo.com/45399884 **password: stackoverflow** But basically, I have a UIProgressView that uses iOS5's new setProgress:animated method. I'm animating it but when it animates, the slider part of the control is being scaled from the view's bounds 0,0 to bounds.size.max,bounds.size.max. It animates from left to right properly (with one exception), but scales at the same time. So basically it looks like a diagonal slide. This is every bit of my progress view code. progressView = [[UIProgressView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 11)]; [self.view addSubview:progressView]; [progressView setProgressViewStyle:UIProgressViewStyleBar]; [progressView setProgress:refreshInterval animated:YES]; Any tips or advice is appreciated. Thanks.
0
[ 2, 13, 5661, 2740, 13026, 4725, 26829, 1513, 800, 3726, 3726, 31, 22, 79, 452, 48, 4210, 1513, 29, 13, 5661, 2740, 13026, 4725, 9, 48, 763, 129, 3271, 574, 119, 31, 92, 29, 715, 9, 9, 9, 7775, 18, 6903, 1755, 790, 111, 9, 960,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Searching a dictionary for a key, adding the value of that key's value to another key value pair === Ok, so I've got, say, a dictionary, with a lot of key: value pairs: worddict = {'example1': 1, 'example2': 0, 'example3': 7} I want to go over certain keys, and get their values, and add it to another key: value pair's value. For example: pseudocode: seconddict = {'firstitem': 1, 'seconditem': 1, 'thirditem':9} for x in worddict: if x.key = example1: seconddict{'firstitem'.value} + example1.value I think I have the right general idea, but not the syntax. But basically, firstitem's value would increase by the exact same number as the value of example1 Basically, I've got a list of words, and these words are in certain categories. Any word in any of those category is going to tick the value up of that category by one.
0
[ 2, 5792, 21, 9186, 26, 21, 1246, 15, 4721, 14, 1923, 16, 30, 1246, 22, 18, 1923, 20, 226, 1246, 1923, 2146, 800, 3726, 3726, 5854, 15, 86, 31, 22, 195, 330, 15, 395, 15, 21, 9186, 15, 29, 21, 865, 16, 1246, 45, 1923, 7473, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why doesn't my partial work with slim and Rails 3.2? === I'm using Rails 3.2 and instead of ERB, I am using `slim`. Here is my form partial: = simple_form_for @game, :html => { :class => 'form-horizontal' } do |f| The syntax error I am getting is: _form.html.slim:1: syntax error, unexpected ')' ... => 'form-horizontal' } do |f|))).to_s)); But I don't know where it expects to put the ')'? Thanks
0
[ 2, 483, 1437, 22, 38, 51, 7284, 170, 29, 8824, 17, 2240, 18, 203, 9, 135, 60, 800, 3726, 3726, 31, 22, 79, 568, 2240, 18, 203, 9, 135, 17, 700, 16, 13, 106, 220, 15, 31, 589, 568, 13, 1, 18, 8585, 1, 9, 235, 25, 51, 505,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why I am getting "Type reference cannot find type" exception while referring ResourceDictionary in C# code === I am using following code to Create a Style in Resource Dictionary: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Chart="clr-namespace:TestApp.Controls.Chart"> <Style x:Key="DefaultLabelStyle" TargetType="{x:Type Chart:LabelStyle}"> <Setter Property="LabelBrush"> <Setter.Value> <SolidColorBrush Color="Red"/> </Setter.Value> </Setter> <Setter Property="LabelFontSize" Value="12.0"/> <Setter Property="Visibility" Value="False"/> <Setter Property="OrientationAngle" Value="0"/> <Setter Property="LabelPlacement" Value="Top"/> <Setter Property="LabelOrientation" Value="Normal"/> </Style> and then trying to consume it using following code: public static void LoadSkin() { var _skinDictionary = new ResourceDictionary { Source = new Uri("/Chart;component/Resources/DefaultSkin.xaml", UriKind.RelativeOrAbsolute) }; } but its throwing "Type reference cannot find type" exception, mentioning that unable to find LabelStyle. But LabelStyle is a public class in Chart. What I am doing wrong here? I tried checking other threads here with similar problem and tried to make those changes, still it doesn't works :( Please let me know your suggestions..!!
0
[ 2, 483, 31, 589, 1017, 13, 7, 4474, 2801, 1967, 477, 1001, 7, 5391, 133, 7378, 6577, 22595, 1857, 19, 272, 5910, 1797, 800, 3726, 3726, 31, 589, 568, 249, 1797, 20, 1600, 21, 1034, 19, 6577, 9186, 45, 13, 1, 99, 12097, 22595, 18...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Open jsp from jsp via controller === I have a jsp page with a link <a id="myLink" href="#" onclick="MyFunction();return false;">Click</a> When i click this link, it would call MyFunction() javascript function. which would go to the controller page and render another jsp page. Can you give me some example how can we achieve this functionality
1
[ 2, 368, 487, 3401, 37, 487, 3401, 1197, 9919, 800, 3726, 3726, 31, 57, 21, 487, 3401, 2478, 29, 21, 3508, 13, 1, 58, 4924, 3726, 7, 915, 6258, 7, 746, 14057, 3726, 7, 5910, 7, 27, 150, 10129, 3726, 7, 915, 22359, 5, 6, 73, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
create a query for date and average values === I need to select date and average values from a datacontext's table and I need to group it by year and by month. In SQL it will look like this select Year(data) as years, Month(data) as months, Avg(value) as prices from Prices group by Year(data),MONTH(data) order by years, months I've created a LINQ query var query0 = from c in dc.Prices where Convert.ToDateTime(c.data).CompareTo(left) >= 0 && Convert.ToDateTime(c.data).CompareTo(right) <= 0 && c.idsticker.Equals(x) group c by new { ((DateTime)c.data).Year, ((DateTime)c.data).Month } into groupMonthAvg select groupMonthAvg; But I don't know how to get average values in result
0
[ 2, 1600, 21, 25597, 26, 1231, 17, 862, 4070, 800, 3726, 3726, 31, 376, 20, 5407, 1231, 17, 862, 4070, 37, 21, 1054, 1126, 11969, 22, 18, 859, 17, 31, 376, 20, 214, 32, 34, 159, 17, 34, 1617, 9, 19, 4444, 255, 32, 129, 361, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Web Services in PHP/MySQL === I am trying to learn to write web services involving `PHP / MySQL`. I would want to post some data from client to server and then store it into a MySQL database via a web service. I'm very new to this area. I tried googling but did not find any basic tutorials. All of them were fancy and hi fi involving `SOAP` etc. Can someone give me a start by posing a code snippet / suggesting a decent URL / suggesting a good book to start with. Thanks
0
[ 2, 2741, 687, 19, 13, 26120, 118, 915, 18, 22402, 800, 3726, 3726, 31, 589, 749, 20, 2484, 20, 2757, 2741, 687, 4838, 13, 1, 26120, 13, 118, 51, 18, 22402, 1, 9, 31, 83, 259, 20, 678, 109, 1054, 37, 6819, 20, 8128, 17, 94, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Html 5 | difference between progress tag and meter tag === After a lot of search about the differences between using of progress tag and meter tag in html 5 , I don't found any difference so I need to help you to understand me about the really difference between them . thank u .
0
[ 2, 13, 15895, 331, 13, 1, 2841, 128, 3455, 3383, 17, 12587, 3383, 800, 3726, 3726, 75, 21, 865, 16, 2122, 88, 14, 4921, 128, 568, 16, 3455, 3383, 17, 12587, 3383, 19, 13, 15895, 331, 13, 15, 31, 221, 22, 38, 216, 186, 2841, 86...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Matlab search and Zip === I wish to search a directory and sub-directories for all .doc files and zip them all into one file using MATLAB. If I use the zip() matlab function it only allows for one root directory. ZIP(ZIPFILENAME, FILES, ROOTDIR) . 1)How do I recursively search the sub directories and 2) how do I add all the zip files into one folder. ?? would I be best searching for and moving all .doc files into a temporary folder then zipping them from that location?
0
[ 2, 4277, 9086, 2122, 17, 12133, 800, 3726, 3726, 31, 2536, 20, 2122, 21, 16755, 17, 972, 8, 10197, 1596, 26, 65, 13, 9, 13799, 6488, 17, 12133, 105, 65, 77, 53, 3893, 568, 4277, 9086, 9, 100, 31, 275, 14, 12133, 5, 6, 4277, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to store installation information in InstallShield? === So I have an InstallShield 2009 Premier project and a custom dialog with a text (editable) field. I need to have the value (string) entered in that field during maintenance mode (specifically REPAIR). I presume that I'm supposed to store this information in registry. The question is how to find the registry key specific to this (current) installation instance. I also need to support multiple installations. Is there an InstallScript function to retrieve a registry key of current installation where I can create my own subkey? Thanks
0
[ 2, 184, 20, 1718, 7758, 676, 19, 16146, 29026, 60, 800, 3726, 3726, 86, 31, 57, 40, 16146, 29026, 588, 2474, 669, 17, 21, 5816, 28223, 29, 21, 1854, 13, 5, 69, 242, 579, 6, 575, 9, 31, 376, 20, 57, 14, 1923, 13, 5, 11130, 6,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I list categories by title and owner === I have the following code currently. <?php $sectionsSide=mysql_query("SELECT * FROM categories ORDER by owner ASC"); while($sectionsSideRow=mysql_fetch_array($sectionsSide)) { $url=strtolower(str_replace(' ', '-', $sectionsSideRow['title'])); echo '<li><a href="'.$cls->root().'/category/'.$url.'/">'.$sectionsSideRow['title'].'</a></li>'; } ?> I want it to show by the owner, then by the title within the owner if that makes sense. How can I do this?
0
[ 2, 184, 92, 31, 968, 6422, 34, 581, 17, 2410, 800, 3726, 3726, 31, 57, 14, 249, 1797, 871, 9, 13, 1, 60, 26120, 5579, 10579, 18, 1416, 3726, 915, 18, 22402, 1, 8190, 93, 5, 7, 18, 16964, 1637, 37, 6422, 389, 34, 2410, 28, 15...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Remove Link on Images only in HTML of iPhone === I parse an XML and use different elements from the xml to build some HTML code that I can then show in a UIWebView. One part of the Parsed XML includes pictures with links. I would like to keep the pictures, but lose the links. Normally I could just replace all the ahref tags in the string, but I would like to keep other links not on pictures. Is there anyway I can do this in XCode to only remove the ahref tags from images? "a href="http://treymorgan.net/wp-content/uploads/2012/06/divorce.jpg" img class="alignleft size-full wp-image-4539" title="divorce" src="http://treymorgan.net/wp-content/uploads/2012/06/divorce.jpg" alt="" width="190" height="150"/ /a"
0
[ 2, 4681, 3508, 27, 3502, 104, 19, 13, 15895, 16, 21024, 800, 3726, 3726, 31, 2017, 870, 40, 23504, 17, 275, 421, 2065, 37, 14, 23504, 20, 1895, 109, 13, 15895, 1797, 30, 31, 92, 94, 298, 19, 21, 13, 5661, 14113, 4725, 9, 53, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WPF UserControl Hosted in Popup Window not taking focus === I'm using Philipp Sumi's [Notify Icon Control](http://www.codeproject.com/Articles/36468/WPF-NotifyIcon), but I'm having a small issue with it, I'm displaying a custom Balloon method call _TaskBarIcon.ShowCustomBalloon(_UserControlNotification, System.Windows.Controls.Primitives.PopupAnimation.Slide, null); and this works great, until the main window of my application is minimized, the popup is still visible which is what I want to happen, but you cannot click into the popup. I have a listbox embedded with a list of the notifications I need to display to the user which is bound to a Observable collection on my viewmodel for the _userControlNotification. The idea is the user can go to lunch and will then see a list of the notifications when they come back at which point clicking on one of the notifications will fire off a command which navigates the application to the relevant information in the main window. As I say the issue is with the popup not being clickable and taking focus. I know the popup will take mouse event as the mouse over event fires and also I have a image acting as a close icon on the usercontrol and the mouse down command fires perfectly fine still. Any thoughts or direction on why the listbox itself will not take the click event and take focus i.e. select the appropiate item in the list. Any ideas suggestions would be greatly appreciated as I'm at a bit of a standstill with this at the moment. Emlyn
0
[ 2, 619, 7721, 4155, 12898, 2812, 19, 1675, 576, 1463, 52, 741, 1776, 800, 3726, 3726, 31, 22, 79, 568, 16914, 3907, 49, 22, 18, 636, 1270, 8612, 9801, 569, 500, 5, 21127, 6903, 6483, 9, 9375, 21011, 9, 960, 118, 20360, 18, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Delphi Event Listener only executing the first time === Overview: I have an application were we want to listen/test events, the ideal is to pass an event name to a stored procedure and be able to report back it event was successful and/or unsuccessful. Issue: Event is only getting executed the first time, subsequent event don’t get executed. (see NotifyEventAlert) Stored Procedure: CREATE PROCEDURE TESTEVENT(EVENTNAME VARCHAR(65)) AS BEGIN POST_EVENT(:EVENTNAME); END; NotifyEventAlert: //Note event is only getting excuted the first time procedure TObjApplicationEvents.NotifyEventAlert(Sender: TObject; EventName: string; EventCount: Integer; var CancelAlerts: Boolean); begin if Assigned(Self.OnPostedEvent) then Self.OnPostedEvent(Self, Eventname); end; EventPosting : procedure TFrmEventProcessingTestLkp.btnTestEventClick(Sender: TObject); var c : TCursor; ae : TObjApplicationEvents; cq : TCustomQuery; begin inherited; c := Screen.Cursor; Screen.Cursor := crHourglass; ae := nil; cq := nil; try try ae := TObjApplicationEvents.Create; ae.OnPostedEvent := Self.OnPostedEvent; cq := TCustomQuery.Create(nil); cq.StartTransaction; cq.SetOperationType(cqotStoredProcedure); cq.SetStoredProcName('TESTEVENT'); cq.Params.CreateParam(ftString, 'EVENTNAME', ptInput); cq.ParamByName('EVENTNAME').Value := GetRecordColumnValue(cxColEvent.Index); cq.ExecSQL; cq.CommitTransaction; Sleep(1000); except on e: Exception do begin cq.RollBackTransaction; raise Exception.Create(e.message); end; end; finally FreeAndNil(ae); FreeAndNil(cq); Screen.Cursor:= c; end; end;
0
[ 2, 23030, 807, 21772, 104, 25836, 14, 64, 85, 800, 3726, 3726, 21598, 45, 31, 57, 40, 3010, 46, 95, 259, 20, 3834, 118, 10543, 963, 15, 14, 5628, 25, 20, 1477, 40, 807, 204, 20, 21, 8214, 7004, 17, 44, 777, 20, 1330, 97, 32, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
asp.net show element on one page, and not another === I'm trying to add a flash object to the default page of this asp.net website. The pages use a master page to set things like the header, which is where I want this movie. What I'm trying to do is basically [Pseudo Code] If(current page == default.aspx) show (flash object); Else show static header image; [/End Pseudo Code] I am completely new to asp.net, and have actually googled for solutions, but can't find anything to determine what page you're on. Any help would me much appreciated! Thanks, Mike P.S. I know that most of you will be inclined to offer a suggestion to put in the C# code-behind file, but it has to be inline asp.net because of how we distribute this to clients. Thanks again!
0
[ 2, 28, 306, 9, 2328, 298, 4520, 27, 53, 2478, 15, 17, 52, 226, 800, 3726, 3726, 31, 22, 79, 749, 20, 3547, 21, 4433, 3095, 20, 14, 12838, 2478, 16, 48, 28, 306, 9, 2328, 2271, 9, 14, 4434, 275, 21, 1129, 2478, 20, 309, 564, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Emacs csharp-mode -- configuration of code completion === I use speech recognition (Dragon naturally speaking) to write R and SQL code in emacs. It works extremely well. I'm using C# in Visual Studio to write a number of console applications to run data processing tasks. Once the applications are set up in Visual Studio, I want to use emacs so that I can take advantage of the speech recognition/emacs combination for C# also. I have csharp-mode working for text highlighting; with hide-show.el working fine for code folding; and with flymake which also works well. However, I am really struggling to make sense of the configuration for code completion. I'm using Windows Vista Home Premium. .NET 3.5. GNU Emacs 23.3.1. I have all of the charp-tools from http://code.google.com/p/csharpmode/downloads/detail?name=CsharpToolsForEmacs.2011may13.zip&can=2&q= aspx-mode.el cscomp-base.el CscompUtilities.cs CscompUtilities.dll csharp-analysis.el csharp-completion.el csharp-mode.el csharp-shell.el ICSharpCode.NRefactory.dll makefile tfs.el I have placed them in my site-lisp directory, with the following in my .emacs file. (setq auto-mode-alist (append '(("\\.cs$" . csharp-mode)) auto-mode-alist)) (require 'csharp-mode) (require 'flymake-for-csharp) (setq flymake-for-csharp-dotnet-location "C:\\Windows\\Microsoft.NET\\Framework\\v3.5") (eval-after-load "csharp-completion" '(progn (setq cscomp-assembly-search-paths (list "C:\\Program Files\\Reference Assemblies\\Microsoft\\Framework\\v3.5" ;;Reference assemblies "C:\\Windows\\Microsoft.NET\\Framework\\v3.5" ;; Framework assemblies "C:\\Program Files\\SQLite.NET\\bin" ;; SQLite )))) ;;csharp mode hook (defun my-csharp-mode-fn () "function that runs when csharp-mode is initialized for a buffer." (turn-on-auto-revert-mode) (setq indent-tabs-mode nil) (require 'csharp-completion) (csharp-analysis-mode 1) (flymake-mode 1) (ruler-mode 1) (hs-minor-mode 1) (local-set-key "\M-\\" 'cscomp-complete-at-point) (local-set-key "\M-\." 'cscomp-complete-at-point-menu) ) (add-hook 'csharp-mode-hook 'my-csharp-mode-fn t) ;;powershell ;; add the dir to load path ;;(add-to-list 'load-path "~/.emacs.d/") ;; autoload powershell interactive shell (autoload 'powershell "powershell" "Start a interactive shell of PowerShell." t) When I open a my source file in emacs and attempt code completion, using the Alt + . , emacs calls powershell. The following messages appear in my emacs messages buffer: > CSCOMP 17:05:52 csharp-analysis-mode: setting vars for initial > conditions CSCOMP 17:05:56 re-analyzing... CSCOMP 17:05:56 Starting > CscompShell... powershell starting up...in buffer *CscompShell* CSCOMP > 17:05:57 CscompShell vncaught exception > System.IO.FileNotFoundException: Could not load file or assembly > 'Ionic.CopyData, Version=1.0.1.0, Culture=neutral, > PublicKeyToken=edbe51ad942a3f5c' or one of its dependencies. The > system cannot find the file specified.File name: 'Ionic.CopyData, > Version=1.0.1.0, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c' > at Ionic.Cscomp.Tracing.Trace(String format, Object[] args) at > Ionic.Cscomp.Utilities.SetBasicSearchPaths() at > Ionic.Cscomp.Utilities..cctor()WRN: Assembly binding logging is turned > OFF.To enable assembly bind failure logging, set the registry value > [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is > some performance penalty associated with assembly bind failure > logging.To turn this feature off, remove the registry value > [HKLM\Software\Microsoft\Fusion!EnableLog]."1.3.0.2 is now running... The following message happens when I attempt code completion with Alt + . , which is bound to the cscomp-complete-at-point-menu function > setq: Symbol's value as variable is void: Exception Any thoughts about what I might be doing wrong?.
0
[ 2, 13, 62, 6893, 18, 272, 23646, 8, 15570, 13, 8, 8, 8091, 16, 1797, 5392, 800, 3726, 3726, 31, 275, 2974, 3514, 13, 5, 20433, 8000, 3324, 6, 20, 2757, 761, 17, 4444, 255, 1797, 19, 13, 62, 6893, 18, 9, 32, 693, 3898, 134, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
android - scroll listview to bottom , as fast as possible , but without skipping any items being viewed === i need to make the listview scroll as fast as possible over all of its items , without skipping any of them. i've found out that the [smoothScrollToPositionFromTop(int,int,int)][1] is very good , but it works only on API11+ , and i wish to target at least API8 i've also tried to use setOnScrollListener and similar solutions (setSelection , for example) , but they either didn't work or they are too slow and doesn't reflect what an end user can do (fast fling over the listview) . how do i achieve this ? [1]: http://developer.android.com/reference/android/widget/AbsListView.html#smoothScrollToPositionFromTop%28int,%20int,%20int%29
0
[ 2, 13005, 13, 8, 12159, 968, 4725, 20, 2129, 13, 15, 28, 1512, 28, 938, 13, 15, 47, 366, 27225, 186, 3755, 142, 6084, 800, 3726, 3726, 31, 376, 20, 233, 14, 968, 4725, 12159, 28, 1512, 28, 938, 84, 65, 16, 82, 3755, 13, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Magento: how to fix customer name search === Under the Magento admin menu Customers -> Manage Customers, we're unable to search for a customer using his name if the string consists of more than one word. Where would I find the core codes that performs this task? We don't have an extension for this section. Example of the problem: If I want to search for a customer named John Smith, searching for "john smith" returns no results. Searching for "john" or "smith" separately works, but it will bring up any names that contain "john" or "smith" similar to the SQL queries, `LIKE %john%` or `LIKE %smith%`.
0
[ 2, 4723, 17050, 45, 184, 20, 6098, 7705, 204, 2122, 800, 3726, 3726, 131, 14, 4723, 17050, 21, 43, 2160, 11379, 5279, 13, 8, 1, 4705, 5279, 15, 95, 22, 99, 2343, 20, 2122, 26, 21, 7705, 568, 33, 204, 100, 14, 3724, 2043, 16, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Filter Table in Sql === i have one table Abc Id Date status C01 Jul 3 A C02 Jul 5 B C03 Jul 9 A C02 Jul 9 A C05 Jul 3 C C02 Jul 3 C C03 Jul 12 C C05 Jul 13 A i want filter this table then out put... Id Date Status C01 Jul 3 A C02 Jul 9 A C03 Jul 12 C C05 Jul 13 A
0
[ 2, 11945, 859, 19, 4444, 255, 800, 3726, 3726, 31, 57, 53, 859, 5079, 4924, 1231, 1782, 272, 3026, 16323, 203, 21, 272, 3564, 16323, 331, 334, 272, 3601, 16323, 561, 21, 272, 3564, 16323, 561, 21, 272, 4071, 16323, 203, 272, 272, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
primefaces drag and drop probleme in some browsers === i'v succefully implemented the primeface dragable elements in datatable just like the exemple http://www.primefaces.org/showcase-labs/ui/dndTable.jsf , to discover days later that it's not working under internet explorer nor firefox , thow the exemple on the site is! so naturally i'm assuming the probleme is coming from me this is my code: <p:fieldset legend="Les reglements existant" toggleable="true" toggleSpeed="500"> <p:dataTable var="car" value="#{ReferencereglementaireBean.listReferencereglementaire}" scrollable="true" scrollHeight="100" resizableColumns="true" id="dataTable1"> <p:column> <h:outputText id="dragIcon" styleClass="ui-icon ui-icon-arrow-4" /> <p:draggable for="dragIcon" revert="true" /> </p:column> <p:column headerText="Fichier"> <h:outputText value="#{car.nomDoc}" /> </p:column> </p:dataTable> </p:fieldset> <p:fieldset id="selectedCars2" legend="Reglements choisie" style="margin-top:20px" toggleable="true" toggleSpeed="500"> <p:outputPanel id="dropArea"> <h:outputText value="!!!Glisse ici !!!" rendered="#{empty ReferencereglementaireBean.droppedCars}" style="font-size:24px;" /> <p:dataTable var="car" id="dt2" value="#{ReferencereglementaireBean.droppedCars}" rendered="#{not empty ReferencereglementaireBean.droppedCars}" tolerance="pointer" editable="true"> <p:ajax event="rowEdit" update="@this" listener="#{ReferencereglementaireBean.rowEditListener}" /> <p:column headerText="Nom document"> <p:cellEditor> <f:facet name="input"> <h:outputText value="#{car.referencereglementaire.nomDoc}" /> </f:facet> <f:facet name="output"> <h:outputText value="#{car.referencereglementaire.nomDoc}" /> </f:facet> </p:cellEditor> </p:column> <p:column headerText="Num Page"> <p:cellEditor> <f:facet name="input"> <h:inputText value="#{car.numpage}" /> </f:facet> <f:facet name="output"> <h:outputText value="#{car.numpage}" /> </f:facet> </p:cellEditor> </p:column> <p:column> <p:rowEditor /> </p:column> </p:dataTable> </p:outputPanel> </p:fieldset> <p:droppable for="selectedCars2" tolerance="touch" activeStyleClass="ui-state-highlight" datasource="dataTable1"> <p:ajax listener="#{ReferencereglementaireBean.onCarDrop}" update="dropArea dataTable1"></p:ajax> </p:droppable> by not working i mean i can't drag the elements because the little + icone is not showing to drag the elements with it. any ideas on how to overcome this? thank you
0
[ 2, 1621, 6413, 18, 5501, 17, 2804, 1448, 62, 19, 109, 16495, 18, 800, 3726, 3726, 31, 22, 710, 21792, 1105, 5655, 6807, 14, 1621, 6413, 5501, 579, 2065, 19, 1054, 5924, 114, 101, 14, 1396, 1503, 5106, 7775, 6903, 6483, 9, 21108, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to draw extra stuff on a custom component after creation at DT/RT? === I am trying to create a set of custom components like TEdit, TDBEdit, TComboBox with a new kind of border (rounded corner) and I have created this code: unit RoundRectControls; interface uses SysUtils, Classes, Controls, StdCtrls, Windows, Messages, Forms; type TRoundRectEdit = class(TEdit) private { Private declarations } protected { Protected declarations } public constructor Create(AOwner: TComponent); override; { Public declarations } published property BorderStyle default bsNone; property Ctl3D default False; { Published declarations } end; procedure Register; procedure DrawRoundedRect(Control: TWinControl); implementation constructor TRoundRectEdit.Create(AOwner: TComponent); begin inherited Create(AOwner); DrawRoundedRect(Self); end; procedure Register; begin RegisterComponents('Eduardo', [TRoundRectEdit]); end; procedure DrawRoundedRect(Control: TWinControl); var r: TRect; Rgn: HRGN; begin with Control do begin r := ClientRect; rgn := CreateRoundRectRgn(r.Left, r.Top, r.Right, r.Bottom, 30, 30) ; Perform(EM_GETRECT, 0, lParam(@r)) ; InflateRect(r, - 4, - 4) ; Perform(EM_SETRECTNP, 0, lParam(@r)) ; SetWindowRgn(Handle, rgn, True) ; Invalidate; end; end; end. But after I tried to put the component in the Form, this message came: ![Control '' has no Parent][1] [1]: http://i.stack.imgur.com/F4UzJ.png So, how to I fix that? I am new to construct components and I need a good tutorial on the web. Something tells me that I need to make that `DrawRoundedRect` outside the Constructor... But where?
0
[ 2, 184, 20, 2003, 2230, 3217, 27, 21, 5816, 5912, 75, 2502, 35, 13, 43, 38, 118, 5256, 60, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 309, 16, 5816, 5090, 101, 7859, 242, 15, 15596, 4283, 242, 15, 13, 38, 960, 1192, 5309, 29...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
alfresco extract image exif / iptc properties into custom properties using Tika === I have a complex custom model and i need to map some of the exif / iptc properties into custom properties of my model. model test has properties, i.e., test:tags and test:description I need to tell Tika to put exif keywords and description fields into my custom properties of my custom model. i tried like this: <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <bean id="extracter.TikaAuto" class="org.alfresco.repo.content.metadata.TikaAutoMetadataExtracter" parent="baseMetadataExtracter"> <constructor-arg><ref bean="tikaConfig"/></constructor-arg> <property name="inheritDefaultMapping"> <value>true</value> </property> <property name="mappingProperties"> <props> <prop key="namespace.prefix.cm">http://www.alfresco.org/model/content/1.0</prop> <prop key="namespace.prefix.test">http://www.test.net/model/content/1.0</prop> <prop key="description">test:description</prop> <prop key="keywords">test:tags</prop> </props> </property> </bean> </beans> This is doing nothing. Can anyone help me with more than "Look at the metadata extractor documentation", because, honestly, documentation is not conclusive and does not work for me. The whole Alfresco thing is getting more and more frustrating. This is the 10th issue I cannot solve by referring to documentation / on-line resources.
0
[ 2, 14307, 99, 8328, 10962, 1961, 1396, 821, 13, 118, 15735, 6668, 3704, 77, 5816, 3704, 568, 13, 38, 4166, 800, 3726, 3726, 31, 57, 21, 1502, 5816, 1061, 17, 31, 376, 20, 2942, 109, 16, 14, 1396, 821, 13, 118, 15735, 6668, 3704, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
get value of Dynamic textarea by jquery === http://jsfiddle.net/3QeSe/44/ i am getting undefined any help appreciated ...
0
[ 2, 164, 1923, 16, 7782, 1854, 17760, 34, 487, 8190, 93, 800, 3726, 3726, 7775, 6903, 728, 18, 1707, 12312, 9, 2328, 16842, 1251, 4635, 13722, 12918, 31, 589, 1017, 367, 13439, 186, 448, 13746, 13, 9, 9, 9, 3, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Details Group throwing in an unwanted extra row here and there === All of a sudden in my details group, I get 1 extra row of results whereas before I was not...and I shouldn't be getting this extra row here and there but I do. Not sure why..I've looked at it and the report and also the stored proc. The stored proc is only bringing back two records but sometimes I'm seeing 3 in the report.
0
[ 2, 3289, 214, 6033, 19, 40, 21095, 2230, 3131, 235, 17, 80, 800, 3726, 3726, 65, 16, 21, 4224, 19, 51, 3289, 214, 15, 31, 164, 137, 2230, 3131, 16, 1736, 5142, 115, 31, 23, 52, 9, 9, 9, 290, 31, 5714, 22, 38, 44, 1017, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java Mina - Accept both Websockets and TCP sockets === Doing some experiments with the Mina framework. I have the server up and running perfectly, and I can connect to it with e.g Telnet. Doing several connections at once, sending messages to one another etc. But I'd like to support websockets too, that is, execute the handshake and send the response back to the browser. After the handshake, I guess I can consider the websocket like any other socket. Started to implement my own handshaking-functionality. But I realized that all the websocket versions really is a mess, so I checked out some frameworks like jwebsocket but I'm completely lost. All I want is to setup the connection to the browser. Is a decoder something worth looking at? I'm using a regular TextLineCodecFactory at the moment. From that I can retrieve the whole websocket handshake request (building it line by line into a complete string)... Could I validate that and send it back to the client? Any frameworks for that? Thank you!
0
[ 2, 8247, 13, 6525, 13, 8, 3440, 156, 2741, 18, 5668, 6095, 17, 13, 38, 7439, 18482, 18, 800, 3726, 3726, 845, 109, 7715, 29, 14, 13, 6525, 6596, 9, 31, 57, 14, 8128, 71, 17, 946, 5759, 15, 17, 31, 92, 6379, 20, 32, 29, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Monitor Class in Depth === All, Could you explain me about Monitor Class, esp following code in more detail? <i> if (Monitor.TryEnter(CashDrawers.lockObject)) { try { // Work here } finally { Monitor.Exit(lockObject); } } </i> Thanks, CK
0
[ 2, 7626, 718, 19, 5204, 800, 3726, 3726, 65, 15, 110, 42, 3271, 55, 88, 7626, 718, 15, 9867, 249, 1797, 19, 91, 6110, 60, 13, 1, 49, 1, 100, 13, 5, 2111, 242, 248, 9, 5840, 13679, 5, 150, 6031, 3030, 4662, 18, 9, 3966, 23793...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
generate oauth signature for pentaho client in js or java for twitter === I would like to be able to make a request to Twitter with Pentaho's REST client request however this software does not have any concept of oauth. I found this ([http://stackoverflow.com/questions/2964392/implement-oauth-in-java][1])neat java class that I would like to implement with Pentaho's java class tranformation but I am so new to Pentaho this task will be very difficult. I am hoping someone can help me out with this.... [1]: http://stackoverflow.com/questions/2964392/implement-oauth-in-java
0
[ 2, 7920, 635, 1346, 96, 7810, 26, 11734, 58, 1807, 6819, 19, 487, 18, 54, 8247, 26, 10623, 800, 3726, 3726, 31, 83, 101, 20, 44, 777, 20, 233, 21, 3772, 20, 10623, 29, 11734, 58, 1807, 22, 18, 760, 6819, 3772, 207, 48, 2306, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to search for MS CRM "Entities" that contains a specific ActivityParty (Contact, systermuser) in an attribute === In a nutshell what the code below does is that there are currently 3 parameters which are passed from the UI. I created the code below and it's working perfectly fine, now the business users wanted to have an additional filter. Now the attribute is called "ATTENDEES" which is f type activityparty... Honestly, i dont understand how much the activityparty works and im getting errors when i try to filter it with a contact GUID. All i know is that this field is a collection of entities, which can be a contact, a systemuser, etc, etc. Can someone teach me HOW to properly add the filter? I cant seem to make it work. Thanks in advance and more power! filter.Conditions.Add(new ConditionExpression("prod_program", ConditionOperator.Equal, programId)); filter.Conditions.Add(new ConditionExpression("activityid", ConditionOperator.Equal, serviceActivityId)); filter.Conditions.Add(new ConditionExpression("prod_contract", ConditionOperator.Equal, contractId)); **filter.Conditions.Add(new ConditionExpression("attendees", ConditionOperator.Equal, contactId));** using (serverConnection.ServiceProxy) { scheduledMeetingList = serverConnection.ServiceProxy.RetrieveMultiple( new QueryExpression { EntityName = ScheduledMeeting.EntityLogicalName, ColumnSet = new ColumnSet(true), Criteria = filter }) .Entities.Select(e => e.ToEntity<ScheduledMeeting>()).ToList(); }
0
[ 2, 184, 20, 2122, 26, 4235, 6186, 79, 13, 7, 2291, 3808, 7, 30, 1588, 21, 1903, 2358, 9635, 13, 5, 29912, 15, 10315, 18, 3964, 16704, 6, 19, 40, 35, 14755, 800, 3726, 3726, 19, 21, 8619, 15984, 98, 14, 1797, 1021, 630, 25, 30,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mysql, querying newest entries and deleting the ones older then 2 months === I have a mysql table which stores about 5000 products. I then query the table and list all products on my website. 1. What "ORDER BY" or other mysql command I should use in order to query the newest added products first? SELECT * FROM table WHERE my mysql rules ORDER BY newest??? 2. In order to keep the product database rather low (having 5000 products means 5000 pages which I think is too much for my shard hosting) I want to delete old product entries, lets say older than 2 months. Any ideas how to do it? Do I need a dat field inside my table? 3. Do you think 5000 rows in my database and 5000 pages can be handles by a normal wordpress installation?
0
[ 2, 51, 18, 22402, 15, 25597, 68, 17175, 11399, 17, 121, 1336, 68, 14, 53, 18, 1234, 94, 172, 818, 800, 3726, 3726, 31, 57, 21, 51, 18, 22402, 859, 56, 4134, 88, 16024, 1985, 9, 31, 94, 25597, 14, 859, 17, 968, 65, 1985, 27, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
VS2010 Unresolved External Symbol boost::asio::detail::winsock_init_base::throw_on_error when linking boost-system with a project using libtorrent === I'm trying to build a small command line BitTorrent client using Rasterbar's libtorrent, which depends on Boost. I've built both the Boost libraries and the libtorrent library using their respective directions, but when I try to build my project I get the following linking errors 1>------ Build started: Project: MiniBT, Configuration: Debug Win32 ------ 1>MiniBT.obj : error LNK2019: unresolved external symbol "protected: static void __cdecl boost::asio::detail::winsock_init_base::throw_on_error(struct boost::asio::detail::winsock_init_base::data &)" (?throw_on_error@winsock_init_base@detail@asio@boost@@KAXAAUdata@1234@@Z) referenced in function "public: __thiscall boost::asio::detail::winsock_init<2,0>::winsock_init<2,0>(bool)" (??0?$winsock_init@$01$0A@@detail@asio@boost@@QAE@_N@Z) 1>MiniBT.obj : error LNK2019: unresolved external symbol "protected: static void __cdecl boost::asio::detail::winsock_init_base::startup(struct boost::asio::detail::winsock_init_base::data &,unsigned char,unsigned char)" (?startup@winsock_init_base@detail@asio@boost@@KAXAAUdata@1234@EE@Z) referenced in function "public: __thiscall boost::asio::detail::winsock_init<2,0>::winsock_init<2,0>(bool)" (??0?$winsock_init@$01$0A@@detail@asio@boost@@QAE@_N@Z) 1>MiniBT.obj : error LNK2019: unresolved external symbol "class boost::system::error_category const & __cdecl boost::asio::error::get_misc_category(void)" (?get_misc_category@error@asio@boost@@YAABVerror_category@system@3@XZ) referenced in function "void __cdecl boost::asio::error::`dynamic initializer for 'misc_category''(void)" (??__Emisc_category@error@asio@boost@@YAXXZ) 1>MiniBT.obj : error LNK2019: unresolved external symbol "unsigned long __cdecl boost::asio::detail::win_tss_ptr_create(void)" (?win_tss_ptr_create@detail@asio@boost@@YAKXZ) referenced in function "public: __thiscall boost::asio::detail::win_tss_ptr<class boost::asio::detail::call_stack<class boost::asio::detail::win_iocp_io_service,unsigned char>::context>::win_tss_ptr<class boost::asio::detail::call_stack<class boost::asio::detail::win_iocp_io_service,unsigned char>::context>(void)" (??0?$win_tss_ptr@Vcontext@?$call_stack@Vwin_iocp_io_service@detail@asio@boost@@E@detail@asio@boost@@@detail@asio@boost@@QAE@XZ) 1>MiniBT.obj : error LNK2019: unresolved external symbol "protected: static void __cdecl boost::asio::detail::winsock_init_base::cleanup(struct boost::asio::detail::winsock_init_base::data &)" (?cleanup@winsock_init_base@detail@asio@boost@@KAXAAUdata@1234@@Z) referenced in function "public: __thiscall boost::asio::detail::winsock_init<2,0>::~winsock_init<2,0>(void)" (??1?$winsock_init@$01$0A@@detail@asio@boost@@QAE@XZ) It seems to indicate that the asio::detail namespace didn't get included in the boost-system library as it is only those 5 symbols that it seems to have a problem with and it is linking to the boost-system library just fine otherwise. I'm trying to build a 32-bit application on a 64-bit system, but everything I've checked seems to be correctly configured for this. I know I'm missing something, but I can't seem to figure out what. Does anyone have any suggestions?
0
[ 2, 4611, 2751, 367, 99, 5594, 4763, 4886, 4678, 10419, 45, 45, 58, 11076, 45, 45, 546, 8682, 45, 45, 4181, 18, 5668, 1, 108, 242, 1, 8436, 45, 45, 21440, 1, 218, 1, 29992, 76, 12585, 10419, 8, 10724, 29, 21, 669, 568, 13, 8326...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Opposite of (preceding-sexp) === Stupid one, but can't figure it out on my own - how do I get the next sexp? Just like `preceding-sexp`, but forward.
0
[ 2, 2794, 16, 13, 5, 3515, 11014, 68, 8, 18, 6899, 6, 800, 3726, 3726, 3553, 53, 15, 47, 92, 22, 38, 1465, 32, 70, 27, 51, 258, 13, 8, 184, 107, 31, 164, 14, 328, 13, 18, 6899, 60, 114, 101, 13, 1, 3515, 11014, 68, 8, 18,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
HIde a Column in Repeater Control === How do I hide a particular column in Asp Repeater ? I want to hide POwner in this case ! <ItemTemplate> <tr> <td> <%#Eval("Priority") %> </td> <td> <%#Eval("ProjectName") %> </td> <td> <asp:Label ID="Label1" runat="server" Text='<%# Eval("POwner") %>'></asp:Label> </tr> </ItemTemplate> Adding this in code behind gives an error :s public void Repeater1_ItemDatabound(Object Sender, RepeaterItemEventArgs e) { Repeater a =(Repeater)e.Item.FindControl("Label1"); a.Visible = false;
0
[ 2, 3077, 21, 4698, 19, 6830, 106, 569, 800, 3726, 3726, 184, 107, 31, 3077, 21, 1498, 4698, 19, 28, 306, 6830, 106, 13, 60, 31, 259, 20, 3077, 351, 10705, 19, 48, 610, 13, 187, 13, 1, 2119, 79, 9577, 6554, 1, 13, 1, 6384, 1,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ffmpeg eclipse python mac === Can someone help me with this issue. I am doing some python under eclipse, the python library I need use ffmpeg to deal with audio file. When I use this library in my ipython console, everything works perfectly but when I use the same code inside eclipse, my program fails to encode the audio file. I guess the problem comes from ffmpeg, but I do not know how to solve this. For information: ffmpeg runs correctly when I call it directly from the command line. Thank you
0
[ 2, 13, 2460, 79, 20427, 11652, 20059, 1572, 800, 3726, 3726, 92, 737, 448, 55, 29, 48, 1513, 9, 31, 589, 845, 109, 20059, 131, 11652, 15, 14, 20059, 1248, 31, 376, 275, 13, 2460, 79, 20427, 20, 1183, 29, 4023, 3893, 9, 76, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Taking a screenshot and share it with social media === Here is a excerpt of the code. I can compile it, but the program crash on the phone/emulator. Bitmap bitmap; View v1 = MyView.getRootView(); v1.setDrawingCacheEnabled(true); bitmap = Bitmap.createBitmap(v1.getDrawingCache()); v1.setDrawingCacheEnabled(false); String path = Images.Media.insertImage(getContentResolver(), bitmap, "title", null); Uri screenshotUri = Uri.parse(path); final Intent socialIntent = new Intent(Intent.ACTION_SEND); socialIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); socialIntent.putExtra(Intent.EXTRA_STREAM, screenshotUri); socialIntent.setType("image/png"); Anyone know how to do it? I want to take a screenshot of the current screen and let the user to share it if he/she like to. Everything else works, it's just the screenshot I cannot get.
0
[ 2, 741, 21, 2324, 7868, 17, 1891, 32, 29, 668, 941, 800, 3726, 3726, 235, 25, 21, 13, 25523, 16, 14, 1797, 9, 31, 92, 26561, 32, 15, 47, 14, 625, 4597, 27, 14, 1132, 118, 1503, 14868, 9, 1142, 15022, 1142, 15022, 73, 1418, 566...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
websql access to a local databases === is it possible to use webkit and websql to access a database created by another application provided it was in the correct folder and had the right permissions. I want to ship My browser with a pre built database created with a third party utility. this database contains a large amount of data so it is not practical to be downloaded later .
0
[ 2, 2741, 18, 22402, 1381, 20, 21, 375, 6018, 18, 800, 3726, 3726, 25, 32, 938, 20, 275, 2741, 13703, 17, 2741, 18, 22402, 20, 1381, 21, 6018, 679, 34, 226, 3010, 1173, 32, 23, 19, 14, 4456, 19294, 17, 41, 14, 193, 5572, 18, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MVVM DynamicObject + Entity Framework STE entities + Property Change Behavior === I'm in the process of creating a BaseViewModel for my WPF projects, which is derived from DynamicObject, and I'm not really sure how to handle property changes to entities 'related' to the main entity (Navigation Properties of the main entity in the viewmodel). For example: VM: public class CustomerCRUDViewModel: BaseEntityViewModel<Customer> { ... } This would be the VM for the Customer CRUD, for example. and the Customer entity for example has a navigation property called Address (an entity of type Address). Now, the problem is, when binding the view to a property inside Address, changes are not reported to the VM, but to the entity directly, and therefore any behavior defined in the VM level is not triggered. I know the explanation may not be clear enough, I just don't know how to explain myself better with my poor english. My question is: how would the generic DynamicObject-based VM handle the scenario where I need to define behavior for properties no part of the main entity?
0
[ 2, 17967, 20147, 7782, 23793, 2754, 9252, 6596, 6621, 12549, 2754, 1354, 753, 3257, 800, 3726, 3726, 31, 22, 79, 19, 14, 953, 16, 2936, 21, 1000, 4725, 13998, 26, 51, 619, 7721, 2314, 15, 56, 25, 3981, 37, 7782, 23793, 15, 17, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Variable set to false === I wrote this REALLY simple code: $foo=false; echo $foo;//It outputs nothing Why? Shouldn't it output `false`? What can I do to make that work?
0
[ 2, 7612, 309, 20, 4997, 800, 3726, 3726, 31, 738, 48, 510, 1935, 1797, 45, 5579, 4120, 111, 3726, 13192, 870, 73, 8117, 5579, 4120, 111, 73, 118, 118, 242, 5196, 18, 626, 483, 60, 5714, 22, 38, 32, 5196, 13, 1, 13192, 870, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0...
Severe performance problems when performing a simple query using Entity Framework === I've got a fairly generic CRUD webapp, which generates pages dynamically according to the contents of several database tables. I'm using Entity Framework 4.0 to pull this data out of the DB, however I'm running into severe performance problems. I've managed to iterate down into a problem which is contained enough that I can detail below. I have a table containing list of **Page Forms** (~200). Each form has one or more **Fields** (~4000 total), and each field has may have some **Parameters** (~16000 total). I've attached a screenshot of my model below: ![Entity model][1] [1]: http://i.stack.imgur.com/jCw1H.png The associated entity objects are as follows: public class Form { public int FormID { get; set; } public string FormName { get; set; } public IList<FormField> FormFields { get; set; } } public class FormField { public int FieldID { get; set; } public string FieldName { get; set; } public int FormID{ get; set; } public IList<FormFieldParameter> FormFieldParameters { get; set; } public Form ParentForm { get; set; } } public class FormFieldParameter { public int FieldParamID{ get; set; } public string Value{ get; set; } public int? FieldID { get; set; } public FormField ParentField { get; set; } } The following code pulls out all data for the Form which has an ID of '1'. EntityConnection myConnection = new EntityConnection("name=myModel"); if(conn.State != ConnectionState.Open) { conn.Open(); } ObjectContext context = new ObjectContext("name=myModel"); context.ContextOptions.LazyLoadingEnabled = false; ObjectQuery<PageForm> myObjectSet = context.CreateObjectSet<PageForm>() .Include("FormField.FormFieldParameter"); IQueryable<PageForm> myFilteredObjectSet = myObjectSet.Where(c => c.FormID == 1); List<PageForm> myReturnValue = myFilteredObjectSet.toList(); Now, while this does work, it runs really poorly. The query takes over a second to run, the entirety of which is spent in the `myFilteredObjectSet.toList()` call. I ran a profiler on my database to see what was causing the delay, and found that the following query was being generated: SELECT [Project1].[FormID] AS [FormID], [Project1].[FormName] AS [FormName], [Project1].[C2] AS [C1], [Project1].[FormID1] AS [FormID1], [Project1].[FieldID] AS [FieldID], [Project1].[FieldName] AS [FieldName], [Project1].[C1] AS [C2], [Project1].[FieldParamID] AS [FieldParamID], [Project1].[Value] AS [Value], [Project1].[FieldID1] AS [FieldID1] FROM ( SELECT [Extent1].[FormID] AS [FormID], [Extent1].[FormName] AS [FormName], [Join1].[FieldID] AS [FieldID], [Join1].[FieldName] AS [FieldName], [Join1].[FormID] AS [FormID1], [Join1].[FieldParamID] AS [FieldParamID], [Join1].[Value] AS [Value], [Join1].[FieldID1] AS [FieldID1], CASE WHEN ([Join1].[FieldID] IS NULL) THEN CAST(NULL AS int) WHEN ([Join1].[FieldParamID] IS NULL) THEN CAST(NULL AS int) ELSE 1 END AS [C1], CASE WHEN ([Join1].[FieldID] IS NULL) THEN CAST(NULL AS int) ELSE 1 END AS [C2] FROM [dbo].[PageForm] AS [Extent1] LEFT OUTER JOIN (SELECT [Extent2].[FieldID] AS [FieldID], [Extent2].[FieldName] AS [FieldName], [Extent2].[FormID] AS [FormID], [Extent3].[FieldParamID] AS [FieldParamID], [Extent3].[Value] AS [Value], [Extent3].[FieldID] AS [FieldID1] FROM [dbo].[FormField] AS [Extent2] LEFT OUTER JOIN [dbo].[FormFieldParameter] AS [Extent3] ON [Extent2].[FieldID] = [Extent3].[FieldID] ) AS [Join1] ON [Extent1].[FormID] = [Join1].[FormID] ) AS [Project1] ORDER BY [Project1].[FormID] ASC, [Project1].[C2] ASC, [Project1].[FieldID] ASC, [Project1].[C1] ASC The duration of this query shown on the sql profiler shows that this query is what is taking so long to run. The interesting thing about the query, is that there is no filtering on it at all - It is returning the entire tree! I can't understand why it is returning everything, as the filter `myObjectSet.Where(c => c.FormID == 1)` is pretty explicit. The actual returned object only contains a single entry, which I would expect. I'm having this problem across my entire data access layer, and its performance is appalling. I have no idea why the generated query doesn't contain the filter - and no idea how to tell it to do so. Does anybody know the answer?
0
[ 2, 4538, 956, 1716, 76, 2955, 21, 1935, 25597, 568, 9252, 6596, 800, 3726, 3726, 31, 22, 195, 330, 21, 6647, 12733, 11498, 43, 2741, 7753, 15, 56, 7920, 18, 4434, 7782, 1326, 496, 20, 14, 8478, 16, 238, 6018, 7484, 9, 31, 22, 79...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rails Searching (Full text vs Semantic) for Food Products === I'm trying to build a search interface for a grocery store in Rails. I have several grocery store products stored in my database, but I'm struggling to find a good way to search through them. So far, I've used [Thinking Sphinx](http://freelancing-god.github.com/ts/en/) to do full text searching of the products. This works well for some items, such as 'eggs', but has several problems for other searches, such as 'lime'. For example, when I search for 'lime', I get the following returned items: - Diet Sierra Mist Lemon Lime Fridge Mate Soda - G2 Lemon Lime Low Calorie Electrolyte Beverage - Deer Park Berry Lime Sparkling Water - Ocean Spray Cocktail With Lime Cranberry Juice - Vintage Seltzer Water Limn Lime - Coke Diet With Lime Soda Contour Bottle - Coke Diet With Lime Soda Fridge Pack - Diet Sierra Mist Lemon Lime Fridge Mate Soda - Refreshe Soda Diet Lemon Lime Fridge Pack - Refreshe Soda Lemon Lime - Refreshe Soda Lemon Lime Fridge Pack - Sierra Mist Natural Lemon Lime Soda - ... etc All I really wanted was the actual fruit, which are listed as these products in my database: - Limes Large - Organic Limes - Limes Key Prepacked How can I make my search more intelligent? It's worth noting that I do have a lot of categorical data on each product. I essentially have an entire "food tree", where each product is a root node of the tree. For the product 'Limes Large', for example, I have the following categories: Fruits & Vegetables > Fresh Fruit > Citrus > Limes Large How can I better use these categories to improve my search? In my research, I am starting to believe I need to use semantic searching instead of full text searching. I came across the [Picky gem](http://florianhanke.com/picky/index.html) for Ruby, which looks promising, but I'm not sure if I have the right approach. Can semantic searching help me perform a better search? Is Picky a good fit for data categorized in this way? Any other insights? Any guidance would be really appreciated. Thanks in advance.
0
[ 2, 2240, 18, 5792, 13, 5, 13727, 1854, 4611, 17220, 6, 26, 950, 1985, 800, 3726, 3726, 31, 22, 79, 749, 20, 1895, 21, 2122, 6573, 26, 21, 14814, 1718, 19, 2240, 18, 9, 31, 57, 238, 14814, 1718, 1985, 8214, 19, 51, 6018, 15, 47...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MS Test unit testing raised event contents === I'm using **Microsoft's Visual Studio Test Tools** and **Moq** for unit testing. I have a method that raises an event and I need to verify that the event's message is correct. For example, the method calls this line of code: _myEventPublisher.RaiseEvent(new MyEvent(message: myMessage)) And I need to verify the content of myMessage is correct. I can successfully verify that the event is raised, with this line of code in the unit test: For<IMyEventPublisher>() .Verify(x => x.RaiseEvent(It.IsAny<IMyEvent>()), Times.Exactly(1)); But I can't figure out how to verify the IMyEvent.Message string.
0
[ 2, 4235, 1289, 1237, 4431, 1127, 807, 8478, 800, 3726, 3726, 31, 22, 79, 568, 13, 1409, 22019, 12980, 22, 18, 3458, 1120, 1289, 4672, 1409, 17, 13, 1409, 1293, 1251, 1409, 26, 1237, 4431, 9, 31, 57, 21, 2109, 30, 15303, 40, 807, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Storing Field Values With Cookies === I have a web app that I created to ease submitting sites to directories, but I have a bit of an issue. Whenever I close the window, the fields go blank and the checkboxes get unchecked. What I've been doing to work around this is just hard coding the site information every time and adding a checked value to the checkboxes in the HTML when before closing the page. What I would like to do is use cookies to store the value of these fields, with "save" and "clear" buttons. Unfortunately every time I've looked at cookies, my head explodes. I'm just using 7 text fields with separate names, and 40 checkboxes with separate names. I'd really appreciate any help I can get with this. I'll post a link ASAP.
0
[ 2, 25615, 575, 4070, 29, 19396, 800, 3726, 3726, 31, 57, 21, 2741, 4865, 30, 31, 679, 20, 6378, 28848, 3259, 20, 559, 1596, 15, 47, 31, 57, 21, 1142, 16, 40, 1513, 9, 6634, 31, 543, 14, 1463, 15, 14, 2861, 162, 6463, 17, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CIFilter inputIntensity slider for big images === I have implemented NSSlider for CIFilter inputIntensity adjustment. Its working. But when I try to adjust CIFilter intensity for big image its laggy. Slider is set to be "continuous", because I need user to be able see effect while moving slider. And when slider is being moved my app starts to lagg allot. Is there any possible solution to make it no lag? Because I saw many apps who has this future and its working perfect.
0
[ 2, 5486, 11924, 815, 6367, 108, 8710, 856, 3295, 106, 26, 580, 3502, 800, 3726, 3726, 31, 57, 6807, 13, 2172, 18, 1210, 1157, 26, 5486, 11924, 815, 6367, 108, 8710, 856, 16040, 9, 82, 638, 9, 47, 76, 31, 1131, 20, 14328, 5486, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eclipse Syntax Coloring Not Showing Correctly === I have a bit of a problem with Eclipse. I haven't had any issues with this until now, so I'm willing to be it's some broken settings somewhere. What happened is I moved form Sublime Text 2 to Eclipse. (I REALLY wanted to stay, but couldn't.) I attempted to import the Sublime Text 2 theme into Eclipse, and it seemed to work. But I can make any changes to the settings for Javascript now. I go to Preferences -> Javascript -> Syntax Coloring and put in all of the colors I want. It works just fine. I close Eclipse and open it and they're all gone. I go back to the preferences and the colors are still there, they're just not showing up. I change one color and it shows up. Close, reopen, repeat. I don't know what's wrong, but I just want the colors I put in to stay. What could possibly be causing this? EDIT: Completely forgot. Running the latest version of Eclipse (20120614-1722) on Windows 7. I started with Eclipse for Java Developers and installed the Web Page Editor plugin.
0
[ 2, 11652, 22649, 1665, 68, 52, 3187, 12044, 800, 3726, 3726, 31, 57, 21, 1142, 16, 21, 1448, 29, 11652, 9, 31, 2933, 22, 38, 41, 186, 1549, 29, 48, 163, 130, 15, 86, 31, 22, 79, 4452, 20, 44, 32, 22, 18, 109, 2023, 12410, 34...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WebApi: Overloading Get- parameter name functionally matters? === When I use the following code: public HttpResponseMessage Get() { return Request.CreateResponse(HttpStatusCode.OK, "Empty!"); } public HttpResponseMessage Get(int id) { return Request.CreateResponse(HttpStatusCode.OK, id); } requests work exactly as they should. `GET: api/controller` returns with the body "Empty!", and `GET: api/controller/12` returns 200 with the body "12". But as soon as I change my code to this: public HttpResponseMessage Get() { return Request.CreateResponse(HttpStatusCode.OK, "Empty!"); } public HttpResponseMessage Get(int itemId) //changed parameter name { return Request.CreateResponse(HttpStatusCode.OK, itemId); } everything hits the default method and returns "Empty!" I assumed that this was one of many naming convention matters, but I couldn't find any documentation or other posts that said the parameters must be named specific values. It may seem a semantic issue, but I'd like to know why I have to name my parameters specific things, or what I'm doing wrong. Why shouldn't this simply work?
0
[ 2, 95, 969, 2159, 45, 84, 16866, 164, 8, 18906, 204, 7652, 102, 4556, 60, 800, 3726, 3726, 76, 31, 275, 14, 249, 1797, 45, 317, 7775, 99, 18, 8782, 870, 3845, 18, 1303, 164, 5, 6, 13, 1, 788, 3772, 9, 14946, 815, 160, 8782, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Are there problems if a have a super larga datatype? === In my application development, I concluded that I need this variable. IDictionary<string, IDictionary<Levels, IList<Problem>>> PackageDictionaryForProblems IDictionary<string, IDictionary<Levels, IList<ProblemRule>>> PackageDictionaryForProblemRules But as I need to access to each key of the dictionary, so it's a pain. I supposed that would be a good option create a class to avoid write all the dataType: public class PackageDictionaryForProblems : IDictionary<string, IDictionary<Levels, IList<Problem>>> { } // the sane for the second dictionary What do you think about this? Is a good practice to create just this class? Or should I need to create several classes for each one? I.E. public class ProblemCollection : IList<Problem> { } Thanks in advance.
0
[ 2, 50, 80, 1716, 100, 21, 57, 21, 1026, 7841, 1136, 1054, 4474, 60, 800, 3726, 3726, 19, 51, 3010, 522, 15, 31, 4159, 30, 31, 376, 48, 7612, 9, 31, 22595, 1857, 1, 11130, 15, 31, 22595, 1857, 1, 3906, 18, 15, 31, 5739, 1, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP string manipulation - manipulate date string in PHP for uploading to mysql === My String: 10:44 13/7 What I require: 2012-07-13 Is there a way I can do this??? The year will always be the current year. Many thanks
0
[ 2, 13, 26120, 3724, 17561, 13, 8, 18468, 1231, 3724, 19, 13, 26120, 26, 71, 16866, 20, 51, 18, 22402, 800, 3726, 3726, 51, 3724, 45, 332, 21286, 539, 118, 465, 98, 31, 4077, 45, 563, 8, 2984, 8, 1543, 25, 80, 21, 161, 31, 92, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0...
3D Studio Max, Supported Materials for Collada Export === I'd like to export a model in 3D Studio Max to the Open Collada format for the use in an iBook and realized that most materials (V-Ray and Standard Materials) do no work properly in this format. Which basic 3D Studio Max materials do play well with Collada and which don't. Is there a compatibility list for this?
2
[ 2, 203, 43, 1120, 2049, 15, 1827, 2895, 26, 9470, 4405, 7487, 800, 3726, 3726, 31, 22, 43, 101, 20, 7487, 21, 1061, 19, 203, 43, 1120, 2049, 20, 14, 368, 9470, 4405, 2595, 26, 14, 275, 19, 40, 31, 5199, 17, 1896, 30, 127, 2895...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...