unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Cakephp view not working === When I want to see for example localhost/pages/index, the localhost page is shown. The controller is working (the dubug shows proper value defined in the controller). Also the title of the localhost/pages/index is set properly ("Posts"). Can somebody help me? The page is in /app/View/webroot
0
[ 2, 8390, 26120, 1418, 52, 638, 800, 3726, 3726, 76, 31, 259, 20, 196, 26, 823, 375, 11694, 118, 6486, 18, 118, 25671, 15, 14, 375, 11694, 2478, 25, 1721, 9, 14, 9919, 25, 638, 13, 5, 124, 1052, 16254, 1285, 4119, 1923, 2811, 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...
How can I share a selected amount of data with all my templates in pyramid? === I read the cookbook article on making [user objects][1] avail to all requests but I may not understand it fully because I can't see if it is related to my problem. I render quite a few templates on a site I'm working on and there's different user info each templates needs. For example, like this page on SO my every page needs to display my username, points, number of notifications, number of badges, etc. I have all this information but I find myself having to add it to each request dictionary I send to the template like so: return dict(page=page, name=name, save_url=save_url, logged_in=authenticated_userid(request), title='add new', url='/new', points=points, num_badges=badges) Is there a way to combine all this once so I can just send one entry to each view? I'm sure its not good to run the same query every time but its also annoying to have to type it for every view. Any suggestions? [1]: http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/auth/user_object.html
0
[ 2, 184, 92, 31, 1891, 21, 1704, 2006, 16, 1054, 29, 65, 51, 22894, 18, 19, 9565, 60, 800, 3726, 3726, 31, 1302, 14, 27526, 2002, 27, 544, 636, 16704, 3916, 500, 2558, 165, 500, 24240, 20, 65, 12279, 47, 31, 123, 52, 1369, 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...
Paint jcomponent in 2 places === I'm trying to draw scrolling icons and I'm stumped. All the code I have now is the icons sitting on a 5x5 static grid of JPanels (Custom paint method) with icons I drew in 5 seconds. So I have the icons sitting on their own little component, say 50x50, on a grid, so a column looks like this: icon 1 icon 2 icon 3 icon 4 I want to be able to drag them down and paint them in a loop so that if you drag down a little it is drawn like this: bottom half of icon 4 icon 1 icon 2 icon 3 top half of icon 4 My question is simply how I would draw/split up the icon to draw it in halves (part at the bottom where it would go off screen, and the other part at the top. Since it's scrolling I want the split icon to be the same object if possible (just in 2 different places while it is off screen) so that when it is dragged down completely the order will have changed to: icon 4 icon 1 icon 2 icon 3 and so on. Thanks a lot!
0
[ 2, 5107, 487, 11103, 218, 2291, 19, 172, 1489, 800, 3726, 3726, 31, 22, 79, 749, 20, 2003, 13, 28166, 9801, 18, 17, 31, 22, 79, 15781, 69, 9, 65, 14, 1797, 31, 57, 130, 25, 14, 9801, 18, 1805, 27, 21, 331, 396, 264, 12038, 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...
What's changed in the recent versions of Dapper? === I see a 1.9 and 1.10 release of dapper.net at http://code.google.com/p/dapper-dot-net/source/list What's changed in these new versions? Is there a change log somewhere? Did the query cache ever get fixed so that it won't grow indefinitively? Thanks.
0
[ 2, 98, 22, 18, 1015, 19, 14, 1764, 3281, 16, 1331, 8763, 60, 800, 3726, 3726, 31, 196, 21, 137, 9, 518, 17, 137, 9, 1036, 830, 16, 1331, 8763, 9, 2328, 35, 7775, 6903, 9375, 9, 16111, 4875, 9, 960, 118, 306, 118, 593, 8763, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 custom template not outputting properly === When I write what's contained in code 1.0 in a jquery function I get the output as what's in figure 1: Code 1 $(document).ready( function() { $("#content").append(aboutUsSlider()); // load the about us slide on initial loading $("#about").click(function() { $("#content").fadeOut(150, function() { $(this).replaceWith(aboutUsSlider(), function() { $(this).fadeIn(150); }); }); function aboutUsSlider() { return '<head><style type="text/css">.box5 {border-radius: 3px;border: 1px solid #999999;background-color: #DEE2E2;'+ 'font-family: verdana, Geneva, Tahoma, sans-serif;font-size: 8pt;}</style></head><em>'+ '<table id="content" cellpadding="5" style="width: 90%; height: 66;" align="center"><tr><td class="box5" style="height: 51px">'+ '<div class="fourth" style="border-width: 0px; margin-top: 0px; margin-right: 30px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-image: url("") initial; font-weight: normal; font-style: normal; font-size: 12px; font-family: Helvetica, Arial, Verdana, sans-serif; vertical-align: baseline; position: relative; float: left; width: 217px; color: rgb(73, 89, 95); font-variant: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">'+ '<p style="border-width: 0px; padding: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; border-image: url("") initial; font-weight: inherit; font-family: inherit; vertical-align: baseline; color: rgb(73, 89, 95);">'+ 'Nurbell is a on going project, formed and created by Mike '+ 'Grigsby and his team. The concept of Nurbell is to allow '+ 'those interested in having a website be found online in a '+ 'professional manner. With the Nurbell Home Tool you\'ll be '+ 'able to view a centralized repository of all our projects '+ 'within a few clicks. This site keeps track of all our '+ 'products and is used as a portfolio for all the work '+ 'developed by Mike\'s team. it is geared towards those '+ 'interested in our work and is deployed when we are in search '+ 'for potential clients. The Nurbell name holds a standard '+ 'higher than most. Projects developed under Nurbell are '+ 'constructed with perfectionism in mind.</p></div><br class="Apple-interchange-newline">'+ '<img alt="" height="140" src="http://nurbell.com/nurbell/vd/1.0/images/img_process_3.jpg" width="219"><br><br>'+ '<img alt="" height="140" src="http://nurbell.com/nurbell/vd/1.0/images/img_process_4.jpg" width="217"><br><br>'+ '<div style="width: 494px; height: 18px; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 8pt"><em>'+ 'We are technically backed by Pheeva LLC and SuperSoul Inc.</em></div></td>'+ '</tr></table></em>'; } Figure 1 ![enter image description here][1] But when I write it regularly in Html I get what's showed in Figure 2 using the code in Code 2: Code 2: <head><style type="text/css">.box5 {border-radius: 3px;border: 1px solid #999999;background-color: #DEE2E2; font-family: verdana, Geneva, Tahoma, sans-serif;font-size: 8pt;}</style></head><em> <table id="content" cellpadding="5" style="width: 90%; height: 66;" align="center"><tr><td class="box5" style="height: 51px"> <div class="fourth" style="border-width: 0px; margin-top: 0px; margin-right: 30px; margin-bottom: 0px; margin-left: 0px; padding-top: 10px; padding-right: 0px; padding-bottom: 0px; padding-left: 10px; border-image: url('') initial; font-weight: normal; font-style: normal; font-size: 12px; font-family: Helvetica, Arial, Verdana, sans-serif; vertical-align: baseline; position: relative; float: left; width: 217px; color: rgb(73, 89, 95); font-variant: normal; letter-spacing: normal; line-height: 19px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "> <p style="border-width: 0px; padding: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 15px; margin-left: 0px; border-image: url('') initial; font-weight: inherit; font-family: inherit; vertical-align: baseline; color: rgb(73, 89, 95);"> Nurbell is a on going project, formed and created by Mike Grigsby and his team. The concept of Nurbell is to allow those interested in having a website be found online in a professional manner. With the Nurbell Home Tool you'll be able to view a centralized repository of all our projects within a few clicks. This site keeps track of all our products and is used as a portfolio for all the work developed by Mike's team. it is geared towards those interested in our work and is deployed when we are in search for potential clients. The Nurbell name holds a standard higher than most. Projects developed under Nurbell are constructed with perfectionism in mind.</p></div><br class="Apple-interchange-newline"> <img alt="" height="140" src="http://nurbell.com/nurbell/vd/1.0/images/img_process_3.jpg" width="219"><br><br> <img alt="" height="140" src="http://nurbell.com/nurbell/vd/1.0/images/img_process_4.jpg" width="217"><br><br> <div style="width: 494px; height: 18px; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 8pt"><em> We are technically backed by Pheeva LLC and SuperSoul Inc.</em></div></td> </tr></table></em> Figure 2: ![enter image description here][2] [1]: http://i.stack.imgur.com/o0cOQ.png [2]: http://i.stack.imgur.com/cBu3S.png <br> Now I need Code 1 to output like what Code 2 is outputting but for some reason when I code it in jQuery or Js the tables are not being outputted correctly as you can tell. Any ideas as to why this is happening?
0
[ 2, 487, 8190, 93, 5816, 22894, 52, 5196, 1203, 7428, 800, 3726, 3726, 76, 31, 2757, 98, 22, 18, 3437, 19, 1797, 137, 9, 387, 19, 21, 487, 8190, 93, 1990, 31, 164, 14, 5196, 28, 98, 22, 18, 19, 1465, 6352, 1797, 137, 5579, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 instanceof type out of an array without if statements === Note: This is an abstracted version of my problem as a lot of actual code would probably be confusing and irrelevant to the problem. I have an array/ArrayList of objects that all inherit their information from another class. For example class A class B extends A class C extends A class D extends A Objects of class B, C, and D all go into an array of type A. Now when they come out I want to cast them back to the original type to use a specific method / variable etc. **How can I do this without having to go through a set of *if* statements to try and find out what sort of sub class it is?** It makes my code very inflexible as I have to write a new set of *if* statements every time I add a new class that extends class A. Is there a way to simply return to the exact name of the class that an object is?
0
[ 2, 164, 4851, 1041, 1001, 70, 16, 40, 7718, 366, 100, 9015, 800, 3726, 3726, 1945, 45, 48, 25, 40, 8502, 69, 615, 16, 51, 1448, 28, 21, 865, 16, 3463, 1797, 83, 910, 44, 18084, 17, 25334, 20, 14, 1448, 9, 31, 57, 40, 7718, 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...
Relational vs NoSql: Which database should I use for this kind of app? === I am about to build an application which does analytics on student results. the data that needs to be stored looks like this: Course: name Semester: 1st,2nd etc Student: name Subject1: marks Subject2: marks Subject3: marks Subject4: marks Subject5: marks Subject6: marks GRAND TOTAL: marks Subjects would vary according to the semester & course. the main requirements are:- 1. database should allow creation of various reports like exam wise report, student wise report, consolidated report, subject report etc. 2. It should have library for ruby as that's the language, i have decided to develop this application on. So, should I choose Relational or NoSQL database for this kind of application. If NoSQL, then which one? **Question** what is the best suited database for this use-case?
4
[ 2, 5827, 192, 4611, 90, 18, 22402, 45, 56, 6018, 378, 31, 275, 26, 48, 825, 16, 4865, 60, 800, 3726, 3726, 31, 589, 88, 20, 1895, 40, 3010, 56, 630, 26320, 27, 1209, 1736, 9, 14, 1054, 30, 2274, 20, 44, 8214, 1879, 101, 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...
Confused by default constructor description of std::tuple in the ISO C++ Standard === The Standard says that `std::tuple` has the following member functions constexpr tuple(); explicit tuple(const Types&...); Can someone please explain what is supposed to happen for `std::tuple<>`?
0
[ 2, 4230, 34, 12838, 6960, 248, 5318, 16, 354, 43, 45, 45, 2473, 5106, 19, 14, 11899, 272, 20512, 1236, 800, 3726, 3726, 14, 1236, 898, 30, 13, 1, 384, 43, 45, 45, 2473, 5106, 1, 63, 14, 249, 322, 3719, 11608, 38, 6899, 139, 22...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
KSOAP 2 Complex Class === I need to send my OrderItemList Class with OrderItem Class Array inside, I try this one but gives me error. Cannot serialize: foo.foo.OrderItemList@461e0bf8 Thanks for your time in advance. SoapObject request = new SoapObject(NAMESPACE, WebService); OrderItemList orderItemList = null; PropertyInfo pinfo = new PropertyInfo(); pinfo.name = "orderItems"; pinfo.namespace = NAMESPACE ; pinfo.type = OrderItemList.class; ArrayList<OrderItem> orderItemListT = new ArrayList<OrderItem>(); orderItemListT.add(new OrderItem(9,9,"",9,9,9,9)); orderItemList = new OrderItemList(orderItemListT); request.addProperty(pinfo,orderItemList); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.addMapping(NAMESPACE, "orderItems", orderItemList.getClass()); envelope.addMapping(NAMESPACE, "OrderItem", OrderItem.class); envelope.dotNet = true; envelope.setOutputSoapObject(request); AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(URL); androidHttpTransport.call("http://tempuri.org/" + WebService , envelope); OrderItem > public class OrderItem { public int ID; public int OrderId; public String FinalCode; public int Quantity; public double Price; public double Discount; public int Status; public OrderItem(int id, int orderId, String finalCode ,int quantity, double price, double discount, int status) { ID = id; OrderId = orderId; FinalCode = finalCode; Quantity = quantity; Price = price; Discount = discount; Status = status; } } OrderItemList > public class OrderItemList { public ArrayList<OrderItem> OrderItemList; public OrderItemList(ArrayList<OrderItem> orderItemList) { OrderItemList = orderItemList; } }
0
[ 2, 680, 656, 2552, 172, 1502, 718, 800, 3726, 3726, 31, 376, 20, 2660, 51, 389, 2119, 79, 5739, 718, 29, 389, 2119, 79, 718, 7718, 572, 15, 31, 1131, 48, 53, 47, 2352, 55, 7019, 9, 1967, 5956, 2952, 45, 4310, 111, 9, 4120, 111...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 insert xml nodet at a defined points === xslt have function(like substring vice versa) or how to solve it? I had xml: <document> <Line> <Line-Item> <LineNumber>10</LineNumber> <EAN>111</EAN> <BIC>123123</BIC> <SIC>AVD091</SIC> </Line-Item> </Line> <Line> <Line-Item> <LineNumber>20</LineNumber> <EAN>22222</EAN> <BIC>3232332</BIC> <SIC>AVD25482</SIC> </Line-Item> </Line> </document> needed output: 10 111 123123 AVD091 20 22222 3232332 AVD25482 Field line number start from 1 column position, EAN start from 11 column position, BIC start from 19 and SIC from 31.
0
[ 2, 184, 20, 14692, 23504, 15421, 38, 35, 21, 2811, 819, 800, 3726, 3726, 993, 18, 255, 38, 57, 1990, 5, 1403, 972, 11130, 1821, 18596, 6, 54, 184, 20, 8402, 32, 60, 31, 41, 23504, 45, 13, 1, 28132, 1, 13, 1, 1143, 1, 13, 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...
Replace part of string === I'm having difficulty with the following. In VB.Net, I have the following line: `Dim intWidgetID As Integer = CType(Replace(strWidget, "portlet_", ""), Integer)` where `strWidget = portlet_n` where `n` can be any whole number, i.e. `portlet_5` I am trying to convert this code to C#, but I keep getting errors, I currently have this: `intTabID = Convert.ToInt32(Strings.Replace(strTabID, "tab_group_", ""));` which I got using an online converter But it doesn't like `Strings` So my question is, how to I replace part of a string, so `intTabID` becomes `5` based on this example? I've done a search for this, and found this link: http://stackoverflow.com/questions/9609042/c-sharp-replace-part-of-a-string Can this not be done without regular expressions in c#, so basically, I'm trying to produce code as similar as possible to the original vb.net example code.
0
[ 2, 3934, 141, 16, 3724, 800, 3726, 3726, 31, 22, 79, 452, 6967, 29, 14, 249, 9, 19, 13, 20468, 9, 2328, 15, 31, 57, 14, 249, 293, 45, 13, 1, 14160, 19, 38, 499, 21292, 13647, 28, 13820, 800, 272, 4474, 5, 99, 5119, 5, 9729, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Adjust Image propertie(Like change contrast,brightness etc) using NDK === I want to do image manipulations using NDK,any clue how to do this? I have already set up the NDK and have done a lot of search on the topic but didnt get any result. Thanking you in advance
0
[ 2, 14328, 1961, 4119, 5294, 5, 1403, 753, 3710, 15, 17069, 720, 2722, 6, 568, 13, 706, 197, 800, 3726, 3726, 31, 259, 20, 107, 1961, 17561, 18, 568, 13, 706, 197, 15, 6001, 8906, 184, 20, 107, 48, 60, 31, 57, 614, 309, 71, 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...
Facebook sdk post on wall on iPhone app === I have a problem with implementing Facebook posting on wall in my iPhone application. I installed SDK and linked framework login is working fine. here's the code: -(IBAction)loginButtonPressed:(id)sender { NSLog(@"loginButtonPressed: called"); AppDelegate *appdel=[[UIApplication sharedApplication] delegate]; appdel.facebookSession=[[FBSession alloc] init]; [appdel.facebookSession openWithCompletionHandler:^(FBSession *session, FBSessionState status, NSError *error) { // }]; } But I have a problem with posting message on user's wall. Here's the code: -(IBAction)likeButtonPressed:(id)sender { NSLog(@"likeButtonPressed: called"); // Post a status update to the user's feedm via the Graph API, and display an alert view // with the results or an error. NSString *message = @"test message"; NSDictionary *params = [NSDictionary dictionaryWithObject:message forKey:@"message"]; // use the "startWith" helper static on FBRequest to both create and start a request, with // a specified completion handler. [FBRequest startWithGraphPath:@"me/feed" parameters:params HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) { [self showAlert:message result:result error:error]; }]; } Help me please. What's wrong with my code? Or should I add some permissions to login request?
0
[ 2, 9090, 13, 18, 43, 197, 678, 27, 769, 27, 21024, 4865, 800, 3726, 3726, 31, 57, 21, 1448, 29, 17333, 9090, 15669, 27, 769, 19, 51, 21024, 3010, 9, 31, 4066, 13, 18, 43, 197, 17, 4727, 6596, 6738, 108, 25, 638, 1123, 9, 235, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Combination of stacked and side-by-side bar charts in R === In the lattice package of R it is possible to create stacked bar charts. I would like to have several stacked bars side by side similar to this one: barchart( mpg ~ as.factor(gear), data=mtcars, groups=cyl, stack=F, horizontal=F, auto.key=T ) ![side-by-side barchart with covered bars][1] This is almost what I need. The problem is that the bars are layered, e.g. for the pink bar at the center there are 3 layered bars of approximately the same value (between 17 and 22). The bars are not stacked. The bar that is painted later covers bars painted earlier. Would it also be possible to have different colors/textures for the stacked bars as well as for the side-by-side bars and an additional legend? The different levels in the stack come from an additional factor. [1]: http://i.stack.imgur.com/zkRpJ.png
0
[ 2, 3733, 16, 20054, 17, 270, 8, 779, 8, 1416, 748, 5158, 19, 761, 800, 3726, 3726, 19, 14, 18508, 6030, 16, 761, 32, 25, 938, 20, 1600, 20054, 748, 5158, 9, 31, 83, 101, 20, 57, 238, 20054, 6062, 270, 34, 270, 835, 20, 48, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
OpenJPA not taking full column name in query === I am using OpenJPA and doing the mapping using orm.xml. For certain cases where my column name length is more than some number of characters then jpql while generating sql query generates the column name as only upto some number of characters. If i have a mapping as below <code> <entity name="OneOffSystemTemplateVariableValue" class="financing.tools.docgen.models.OneOffSystemTemplateVariableValue"> <table name="modification_variable_values"/> <attribute-override name="id"> <column name="modification_variable_values_id"/> </attribute-override> </attributes> </entity> </code> When i run a simple query on OneOffSystemTemplateVariableValue, it generated my query as below SELECT t0.**MODIFICATION_VARIABLE_VALUES_I**, t0.create_timestamp, t0.create_id, t0.last_update_timestamp, t0.last_update_id, t0.modification_object_id, t0.variable_name, t0.variable_value FROM Administrator.modification_variable_values t0 WHERE t0.one_off_template_id = ? Here for MODIFICATION_VARIABLE_VALUES_ID column if i change column name to MOD_VARIABLE_VALUES_ID then my query works good. So sql generated is not taking full column name length. I have not set the maxColumnNameLength anywhere in my applicaiton. Can you tell me how can i set the value of column name length so that i may not face this prob.
0
[ 2, 368, 728, 1060, 52, 741, 503, 4698, 204, 19, 25597, 800, 3726, 3726, 31, 589, 568, 368, 728, 1060, 17, 845, 14, 13305, 568, 54, 79, 9, 396, 8184, 9, 26, 1200, 1871, 113, 51, 4698, 204, 1476, 25, 91, 119, 109, 234, 16, 1766,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Non GPL Swing date picker with keyboard navigation? === I am looking for a Java Swing date picker that **specifically** allows you to navigate the calendar view using the keyboard. I've only found [JXDatePicker][1] from SwingX, ['DatePicker'][2] and a couple more that all offer the standard textfield with a button to show the calendar- but none of these allow you to navigate with the keyboard alone. Use case - imagine your mouse is broken or otherwise unavailable (this is an actual client requirement). Any pointers? Oh, and I won't touch GPL or similarly licensed stuff with a barge pole - this is for a commercial project. [1]: http://swingx.java.net/ [2]: http://sourceforge.net/projects/datepicker
0
[ 2, 538, 489, 5727, 5587, 1231, 2036, 106, 29, 8896, 8368, 60, 800, 3726, 3726, 31, 589, 699, 26, 21, 8247, 5587, 1231, 2036, 106, 30, 13, 1409, 9219, 1326, 1409, 2965, 42, 20, 20782, 14, 7036, 1418, 568, 14, 8896, 9, 31, 22, 195...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Simple framework MVC: how to associate the controller actions to urls? === I have followed [this][1] nice video tutorial to create a mini MVC PHP framework. As you can see, the guy creates an action called `home()` inside the Controller class to show the main page. Now, I need to create another action called `foobar()` that shows another page, but how can i associated it to an url in a simple way? [1]: http://net.tutsplus.com/tutorials/php/create-your-first-tiny-mvc-boilerplate-with-php/
0
[ 2, 1935, 6596, 307, 8990, 45, 184, 20, 4169, 14, 9919, 3078, 20, 13, 911, 7532, 60, 800, 3726, 3726, 31, 57, 709, 636, 1565, 500, 2558, 165, 500, 2210, 763, 29724, 20, 1600, 21, 4236, 307, 8990, 13, 26120, 6596, 9, 28, 42, 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...
How do I get a scrapy item into a postgres stored procudure (function) performing an insert using psycopg2 === I am creating a service layer for a database, and hence I am creating functions to perform certain operations. Atm some of them are simple asynchronous inserts. However, they have a huge amount of parameters. I am using scrapy to spider data and I use the [`item` concept][1] from scrapy, which has a python dict-like api. I don't want to have to parameterise all of the fields in the stored procedure signature / stored procedure call construction, or the insert statement. What is the cleanest way of getting a python dict-like entity into postgres using pyscopg2, without having to parameterise whilst at the same time being future proof (i.e., no positional paramterization). I'm thinking `tablename%ROWTYPE` should be declared as the stored procedure input parameter, but how do I map the python dict-like object when I create the execute query string ? Something to do with [composite type casing in psycopg2][2] I think. But I can't see the complete picture from the documentation. For the sake of argument lets consider a user table `CREATE TABLE( name character varying, id interger primary key)` with a coresponding scrapy type, and the primary id is unique implicitly in the domain. Any comments on how the insert would look like incase default values and a pkey serializer was in place would also help :D [1]: http://doc.scrapy.org/en/0.14/topics/items.html [2]: http://initd.org/psycopg/docs/extras.html#composite-types-casting
0
[ 2, 184, 107, 31, 164, 21, 10241, 93, 9101, 77, 21, 678, 6879, 18, 8214, 13, 15617, 21714, 99, 13, 5, 22359, 6, 2955, 40, 14692, 568, 13, 16033, 9734, 263, 135, 800, 3726, 3726, 31, 589, 2936, 21, 365, 5385, 26, 21, 6018, 15, 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...
Integrated Spree Extension === Can somebody please explain , how to use integrated extension in Spree using Rails Application? I have followed Spree's Docs on http://guides.spreecommerce.com/creating_extensions.html but was unable to understand. Urgent help will be appreciated.
0
[ 2, 5547, 28761, 3896, 800, 3726, 3726, 92, 8861, 2247, 3271, 13, 15, 184, 20, 275, 5547, 3896, 19, 28761, 568, 2240, 18, 3010, 60, 31, 57, 709, 28761, 22, 18, 9765, 18, 27, 7775, 6903, 17599, 18, 9, 18, 3515, 62, 26470, 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...
.NET Runtime exception caused by thread unhandled exception === I have an `Async` method that closes some browser popups. Some times the application crashes upon exit with a `.NET Runtime` error (**mscorwks.dll** with exception code **0xc0000005**). I suspect it happends when the `Thread` is forced to terminate, because I can't see the logged "Thread exit" line. Could it be the code inside the `ExtendedIeBrowser` that throws an `unhandled exception`? You can find the source code below. <!-- language: C# --> internal void KeepAliveAsync() { PageController controller = new PageController(); controller.Initialize(siteWebBrowser); var thread = new Thread(() => { throw new Exception(); _logger.Debug("Thread start - KeepAliveAsync"); try { while (!Program.ShouldAbortBackgroundOperations()) { try { if (controller.TryCloseTimeoutWarningPopup()) { _logger.Info("KeepAliveAsync: Closed popup successfully"); } Thread.Sleep(5000); } catch (Exception ex) { _logger.ErrorException("KeepAliveAsync", ex); } } } catch (Exception ex) { _logger.ErrorException("KeepAliveAsync", ex); } _logger.Debug("Thread exit - KeepAliveAsync"); }); thread.Name = "KeepAliveAsync"; thread.IsBackground = true; thread.SetApartmentState(ApartmentState.STA); thread.Start(); } The `PageController` uses this class: public class ExtendedIeBrowser : IE { private IntPtr hwnd; private static Logger _logger = LogManager.GetCurrentClassLogger(); public ExtendedIeBrowser(WebBrowser webBrowserControl) : base(webBrowserControl.ActiveXInstance, false) { } public void Initialize(WebBrowser webBrowserControl) { hwnd = webBrowserControl.FindForm().Handle; // Start the dialog watcher or else the browser won't be able to attach the handler. StartDialogWatcher(); } public override IntPtr hWnd { get { return hwnd; } } protected override void Dispose(bool disposing) { hwnd = IntPtr.Zero; base.Dispose(disposing); } } And this is: internal static bool ShouldAbortBackgroundOperations() { bool should = true; try { should &= Application.OpenForms.Cast<Form>().Count(f => f.ShowInTaskbar) == 0; // at least one form is shown in the taskbar } catch (Exception ex) { _logger.ErrorException("ShouldAbortBackgroundOperations", ex); should = false; } return should; }
0
[ 2, 13, 9, 2328, 485, 891, 5391, 1497, 34, 9322, 367, 3203, 1294, 5391, 800, 3726, 3726, 31, 57, 40, 13, 1, 58, 9507, 150, 1, 2109, 30, 543, 18, 109, 16495, 1675, 15699, 9, 109, 436, 14, 3010, 21563, 685, 4350, 29, 21, 13, 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...
jQuery Form Validation before Ajax submit === JavaScript bit: var data_string = $('#form').serialize(); $.ajax({ type:'POST', url:'add.php', data:data_string, beforeSubmit: function() { $.validator.addClassRules( { required: { required: true } }); $("#form").validate(); }, success:function(response) { $("#answers").html(response); } }); HTML bit: <input type="text" name="answer[1]" class="required" /> <input type="text" name="answer[2]" class="required" /> So this is the code I am trying to use. The idea is to get all my inputs validated before I send my form with Ajax. I've tried numerous versions of this now but every time I end up with submitting even though the form is not entirely filled out. All my inputs are of the "required" class. Can anyone see what I am doing wrong?
0
[ 2, 487, 8190, 93, 505, 27999, 115, 20624, 12298, 800, 3726, 3726, 8247, 8741, 1142, 45, 4033, 1054, 1, 11130, 800, 5579, 5, 22, 5910, 4190, 22, 6, 9, 4104, 2815, 2952, 5, 6, 73, 5579, 9, 6881, 7522, 5, 1, 1001, 45, 22, 6962, 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...
PHP: htmlentities/strip_tags === I've been re-writing my website lately and added a Syntax highlighter so that I can post code snippets. Before, all I did was htmlentities() the string so that it would be safe and not break anything, but now that I have to use a <pre> to highlight code, htmlentites() effectively removes the syntax highlighting from the page. I've been trying to come up with a function that will just perform an htmlentites() on anything between two tags (<entitiesparse></entitiesparse>) but nothing seems to work. Does anyone know of a function that I can either: a) Set it to htmlentities() everything but specific tags (like strip_tags()) OR b) Only htmlentities() things in cetain tags (As mentioned above)
0
[ 2, 13, 26120, 45, 13, 15895, 2291, 3808, 118, 19992, 1, 8628, 18, 800, 3726, 3726, 31, 22, 195, 74, 302, 8, 12646, 51, 2271, 10434, 17, 905, 21, 22649, 14373, 106, 86, 30, 31, 92, 678, 1797, 13, 29061, 18, 9, 115, 15, 65, 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...
I want to detect the device through serial port using RxTx in java === I want to detect the device through serial port using RxTx in java and device is programmed that if it recieves a specific word from computer it will reply "ok" and if the computer receives ok.. it will stop sending the word and highlight that the device is attached. PLEASE HELP ME. and one more thing.. i have to check for every port.. please will you code a method that auto-cycle through the ports till the device is detected. My code sends the word only one time even being in a infinite loop. code: private void cb1KeyPressed(java.awt.event.KeyEvent evt) { // TODO add your handling code here: try{ l1.setText("Port: "+cb1.getSelectedItem().toString()+" is Selected"); selectedPort = cb1.getSelectedItem().toString();// TODO add your handling code here rs.connect(selectedPort); for(;;) { CommPortSender.send(new ProtocolImpl().getMessage("KITM"));//send message if(pi.rmess().equalsIgnoreCase("OK"))//received message { l1.setText("The Device is attached to: "+selectedPort); CommPortSender.send(new ProtocolImpl().getMessage("OK ACK"));//send message break; } else { rs.disconnect(selectedPort); continue; } } } catch(Exception e){} }
0
[ 2, 31, 259, 20, 9092, 14, 3646, 120, 5956, 1295, 568, 13, 21141, 38, 396, 19, 8247, 800, 3726, 3726, 31, 259, 20, 9092, 14, 3646, 120, 5956, 1295, 568, 13, 21141, 38, 396, 19, 8247, 17, 3646, 25, 2866, 43, 30, 100, 32, 302, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Update a Record containing Identity Element using Stored Proc in LinqtoSQL === I have a table defined as: CREATE TABLE [dbo].[procInfo]( [id] [int] IDENTITY(1,1) NOT NULL, [startTime] [datetime] NOT NULL, [endTime] [datetime] NULL, [procName] [varchar](50) NOT NULL, CONSTRAINT [PK_procInfo] PRIMARY KEY CLUSTERED ( [id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] When I start a Process, I create a record for it using a LinQtoSQL Stored Procedure from my c# code. Now when the process ends, I want to update the same record with the `endtime`. The `id` should remain same as it is referenced by other tables. I am aware of the SQL queries: SET IDENTITY_INSERT [dbo].[procInfo] ON SET IDENTITY_INSERT [dbo].[procInfo] OFF I have a way to store the id if the process that has finished. Now, I want to write a stored Procedure to update this record with the `endTime`. I have been trying various things, but none of those are working. Any suggestions on how to do this ?
0
[ 2, 11100, 21, 571, 3503, 3270, 4520, 568, 8214, 13, 15617, 19, 6294, 1251, 262, 18, 22402, 800, 3726, 3726, 31, 57, 21, 859, 2811, 28, 45, 1600, 859, 636, 43, 1192, 500, 9, 2558, 15617, 108, 4120, 500, 5, 636, 1340, 500, 636, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
ivy 2.3 can't resolve dependencies for jersey-servlet 1.13 (or 1.11, or 1.12) === I am trying to include jersey-servlet in my project using ivy. My dependency looks like this: <dependency org="com.sun.jersey" name="jersey-servlet" rev="${jersey.version}"/> ...but I am running into some unresolved dependencies: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: org.eclipse.persistence#org.eclipse.persistence.moxy;2.3.2: not found [ivy:resolve] :: org.jboss.spec.javax.interceptor#jboss-interceptors-api_1.1_spec;${interceptor.api.version}: not found [ivy:resolve] :: javax.inject#javax.inject;${atinject.api.version}: not found [ivy:resolve] :: org.jboss.weld#weld-api;1.1.4.Final: not found [ivy:resolve] :: org.jboss.weld#weld-spi;1.1.4.Final: not found [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: My research tells me weld-spi/api **1.1.4.Final** do not exist. It looks like these are dependencies of weld-osgi-bundle-1.1.4.Final.jar. But if you open that jar and dig around inside the META-INF directory, there are references to weld-spi/api **1.1.Final**, which DO exist. Plus, in the maven repository, the dependencies table for weld-osgi-bundle 1.1.4.Final shows nothing in the version column. Could it be that ivy is defaulting to the 1.1.4.Final version of the weld-osgi-bundle for all of its dependencies, whereas maven knows where to find the correct versions of the dependencies? Is there a way around this with ivy?
0
[ 2, 7389, 172, 9, 240, 92, 22, 38, 9854, 29411, 26, 2134, 8, 10321, 1336, 137, 9, 1543, 13, 5, 248, 137, 9, 1306, 15, 54, 137, 9, 918, 6, 800, 3726, 3726, 31, 589, 749, 20, 468, 2134, 8, 10321, 1336, 19, 51, 669, 568, 7389, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 detect road lane in video using opencv? === I have to detect lane and car on android. to detect cars i am using haar Cascades. however i tried to detect line but i am not getting output.my code to detect lane is given below please help me to correct this.thanks in advance enter code here #include "stdafx.h" #include <math.h> #include "cv.h" #include "highgui.h" #include <stdio.h> #include "String.h" #include <iostream> #include "cvaux.h" #include "cxmisc.h" int main( int argc, char** argv ) { IplImage *img; int key; /* supply the AVI file to play */ assert( argc == 2 ); /* load the AVI file */ CvCapture *capture = cvCaptureFromAVI( argv[1] ); /* always check */ if( !capture ) return 1; /* get fps, needed to set the delay */ int fps = ( int )cvGetCaptureProperty( capture, CV_CAP_PROP_FPS ); /* display video */ cvNamedWindow( "video", 0 ); while( key != 'q' ) { /* get a image */ img = cvQueryFrame( capture ); /* always check */ if( !img ) break; /* display frame */ cvShowImage( "video", img ); /* quit if user press 'q' */ key = cvWaitKey( 1000 / fps ); //set ROI cvSetImageROI(img, cvRect(0, img->height/2, img->width,img->height)); IplImage *img2 = cvCreateImage(cvGetSize(img),img->depth,img->nChannels); //Copy image cvCopy(img, img2, NULL); //Save Image //Convert into gray image IplImage *gray_image = cvCreateImage(cvSize(img2->width,img2->height),img2->depth,1); cvCvtColor( img2, gray_image, CV_RGB2GRAY ); //Apply Sobel IplImage *edgeimage = cvCreateImage(cvSize(gray_image->width,gray_image->height),gray_image->depth,1); cvSobel(gray_image,edgeimage,1,0,3); //Apply Otsu threshold IplImage *otsuimage = cvCreateImage(cvSize(edgeimage->width,edgeimage->height),edgeimage->depth,1); cvThreshold (edgeimage, otsuimage, 128, 255,CV_THRESH_OTSU); //Dilation IplImage *dilateimage =cvCreateImage(cvSize(otsuimage->width,otsuimage->height),otsuimage->depth,1); cvDilate(otsuimage,dilateimage,NULL,1); //Hough Transform CvMemStorage* storage = cvCreateMemStorage(0); CvSeq* lines = 0; int i; lines = cvHoughLines2(ilateimage,storage,CV_HOUGH_PROBABILISTIC,1,CV_PI/180,100,50,10 ); for( i = 0; i < lines->total; i++ ) { CvPoint* line = (CvPoint*)cvGetSeqElem(lines,i); CvPoint pt1, pt2; pt1 = line[0]; pt2 = line[1]; double theta = atan( (double)(pt2.y - pt1.y)/(pt2.x - pt1.x) ); /*slope of line*/ double degree = theta*180/CV_PI; if( fabs(degree) > 70 )//checking for near horizontal line { cvLine( img, pt1, pt2, CV_RGB(255,0,0), 2, 8 ); } } }//end while cvReleaseCapture( &capture ); cvDestroyWindow( "video" ); return 0; }
1
[ 2, 184, 20, 9092, 383, 3566, 19, 763, 568, 368, 12732, 60, 800, 3726, 3726, 31, 57, 20, 9092, 3566, 17, 349, 27, 13005, 9, 20, 9092, 2137, 31, 589, 568, 1458, 512, 13542, 18, 9, 207, 31, 794, 20, 9092, 293, 47, 31, 589, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Syntax Error: /home/fzxa/work/blog2/views/articles/index.jade:7 === 5| div#articles 6| - if(articles.length) > 7| !=partial('article_list', {collection : articles, as : 'article'}) 8| - else 9| #no-results No articles found. Create one 10| a(href="/articles/new") here why... :(
0
[ 2, 22649, 7019, 45, 13, 118, 8167, 118, 410, 380, 6791, 118, 3783, 118, 220, 5567, 9298, 4725, 18, 118, 20360, 18, 118, 25671, 9, 1004, 546, 45, 465, 800, 3726, 3726, 331, 1, 13, 12916, 5910, 20360, 18, 400, 1, 13, 8, 100, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Suppressing section in Crystal Reports when column has no value equal to "something" === I have the following problem: -- I have one database table with the following structure : < Age, Gender , Wage., ..> -- I have one Crystal Reports report with two subsreports , each displaying a graph of wage per age , one for records that have male gender the other for female gender. I would like to suppress one subreport if the table has no records with gender value "male" or "female". Thanks, Vali
0
[ 2, 12451, 68, 1050, 19, 4282, 2813, 76, 4698, 63, 90, 1923, 2747, 20, 13, 7, 9099, 7, 800, 3726, 3726, 31, 57, 14, 249, 1448, 45, 13, 8, 8, 31, 57, 53, 6018, 859, 29, 14, 249, 1411, 13, 45, 13, 1, 348, 15, 4552, 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...
web2py MySQL migration fails adding unique= === I have a working app using web2py `(1, 99, 7, datetime.datetime(2012, 3, 4, 22, 12, 8), 'stable'); Python 2.5.4: C:\Program Files (x86)\web2py\web2py_no_console.exe`) and MySQL 5.5. If I change one field to add `unique=True` the web2py migration fails with this error: `"<type 'exceptions.KeyError'> 'institution_name'"` where institution_name is the name of the field in question. I've recreated the problem using a single-table application in web2py using MySQL. Here's the model code: To start off (field not defined as unique): ... (usual model/db.py boilerplate) db = DAL('mysql://w2ptest:abcde123@mysql5.server.com:3307/abc_web2py') ... db.define_table('Institution', Field('Institution_name', 'string', length=60, required=True), format='%(Institution_name)s') I go to the appadmin page and everything looks fine. Then, making Institution_name unique: db.define_table('Institution', Field('Institution_name', 'string', length=60, required=True, unique=True), format='%(Institution_name)s') I then refresh the appadmin page and get a ticket with the error. The error line in the traceback is the last line of the modified statement above. And, to make things worse, I can go in and undo the `unique=True`, but web2py doesn't respond if I refresh the appadmin page...or any page served by that web server, even in other applications! The cpu is <b>not</b> pinned while in this state. I have to recreate the app and database to clear the problem. (Well, I think I have to go that far. Just restarting web2py doesn't clear it in the full case, but does clear it in my little one-table test case.) I try to stop the server (web2py_no_console.exe), but it fails to respond. Instead of the `unique=True` I can `db.executesql('ALTER TABLE abc_web2py.Institution ADD UNIQUE INDEX UX_Iname (Institution_name) ;');` but I'd rather not, particularly as then I have to `try` that statement because MySQL has no `...IF NOT EXIST...` capability for index creation. Also, if I start off the model with `unique=True` in the first place, everything is fine, and MySQL even shows the unique index as created.
0
[ 2, 2741, 135, 6448, 51, 18, 22402, 8443, 13614, 4721, 2619, 3726, 800, 3726, 3726, 31, 57, 21, 638, 4865, 568, 2741, 135, 6448, 13, 1, 5, 165, 15, 7787, 15, 453, 15, 1231, 891, 9, 8209, 891, 5, 3212, 15, 203, 15, 268, 15, 1024...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Safely create const char* in C++ === What's the safest way to create const char* in C++? const char *tmp = "SOME STRING"; or another way?
1
[ 2, 9817, 1600, 11608, 38, 4892, 2483, 19, 272, 20512, 800, 3726, 3726, 98, 22, 18, 14, 1834, 384, 161, 20, 1600, 11608, 38, 4892, 2483, 19, 272, 20512, 60, 11608, 38, 4892, 1637, 38, 2554, 800, 13, 7, 3220, 3724, 7, 73, 54, 226,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
iPad UISplitViewController, change the master width === I am using SDK 4.3 (have a snow leopard) and was able to change the master column width in the UISplitViewController as following: if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){ [self.splitViewController setValue:[NSNumber numberWithFloat:0.0] forKey:@"_masterColumnWidth"]; [window addSubview:splitViewController.view]; } but the detail view does not get the whole device width is that normal? How can I get the detail view to show in the whole device screen? Here is a snapshot of what I get ![enter image description here][1] [1]: http://i.stack.imgur.com/mUQYT.png
0
[ 2, 31, 8240, 13, 5661, 25603, 4725, 12898, 1252, 15, 753, 14, 1129, 9456, 800, 3726, 3726, 31, 589, 568, 13, 18, 43, 197, 268, 9, 240, 13, 5, 5815, 21, 2224, 15446, 6, 17, 23, 777, 20, 753, 14, 1129, 4698, 9456, 19, 14, 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...
Get param value from a URL in jquery mobile === I have got a page called servicesDetails.html that has links.The url looks like below ../Myapp/servicesDetails.html?servicetype=Advanced&serviceid=1208 The links when clicked loads an internal page called **audioListPage** with some params,the link looks like this <a href="#audioListPage?audioid=123&audiotype=mp3" class="loadAudio" data-role="button" data-mini="true" data-inline="true"> Once the audioListPage is loaded the url changes to ../Myapp/servicesDetails.html?servicetype=Advanced&serviceid=1208#audioListPage?audioid=123&audiotype=mp3 I need to display the user with the audioid and audiotype when the audioListPage loads,how do i do this? Thanks
0
[ 2, 164, 2258, 79, 1923, 37, 21, 287, 6362, 19, 487, 8190, 93, 3241, 800, 3726, 3726, 31, 57, 330, 21, 2478, 227, 687, 546, 8682, 18, 9, 15895, 30, 63, 6271, 9, 124, 287, 6362, 1879, 101, 1021, 13, 9, 9, 118, 915, 7753, 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...
Lightweight weblogic dev environmient === We just started a project in ADF, Oracle's J2EE framework. Usually we develop in Tomcat, then deploy into the production weblogic servers. But we realized ADF requires a weblogic server installed locally to develop in Eclipse/JDeveloper. This is **really** heavyweight, even configured as dev, it is killing our machines, and taking long time to deploy. So, are there any configuration parameters we could tweak so weblogic takes the less resources as possible? Are there any alternatives we could use? We are mostly concerned about memory (it is taking a wonderful 800MB,) and startup time (~2 minutes)
0
[ 2, 13613, 2741, 24268, 9664, 21314, 2075, 1435, 2291, 800, 3726, 3726, 95, 114, 373, 21, 669, 19, 21, 8736, 15, 15759, 22, 18, 487, 135, 2851, 6596, 9, 951, 95, 2803, 19, 2067, 5782, 15, 94, 17617, 77, 14, 637, 2741, 24268, 17595,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Knid of #if (Debug Symble) but for web.config file === I would like to use different <appSettings> section for debug and release configuration. tried to use "web.config transform" functionality but it works great only for deploying. and not when i just want to build and execute the application locally. can i add a condition to the web.config for choosing the right <appSettings>? Thanks.
0
[ 2, 6209, 1340, 16, 6926, 821, 13, 5, 546, 16254, 13, 7261, 2854, 6, 47, 26, 2741, 9, 14093, 2816, 3893, 800, 3726, 3726, 31, 83, 101, 20, 275, 421, 13, 1, 7753, 19831, 18, 1, 1050, 26, 121, 16254, 17, 830, 8091, 9, 794, 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...
No Browser is running javascript in my computer === I am trying to learn javascript. But my browser (latest version of firefox, IE, chrome) is not running the script. I will tell you the problem in detail. I am trying to run some small script, but the browser displays only html content but everything inside the script tag is not run by the browser can someone please help me out. I am testing this on a windows OS because a couple of days back i had installed XAMPP on linux and was filling out security passwords and after that wen i started it using the command /opt/lampp/lampp start some command like that i got a message that daemon was running and stuff like that so i stopped web development cos of that error nor could i uninstall that xampp completely. can anyone figure out the solution to any of these problems?
1
[ 2, 90, 16495, 25, 946, 8247, 8741, 19, 51, 1428, 800, 3726, 3726, 31, 589, 749, 20, 2484, 8247, 8741, 9, 47, 51, 16495, 13, 5, 6554, 384, 615, 16, 535, 18219, 15, 13, 660, 15, 13, 12985, 6, 25, 52, 946, 14, 3884, 9, 31, 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...
mapView should throw "user prompt message". location couldn't befound === In my app, after entering some parameters, it shows location in mapView. What I want is when a user enter some and that place can't be located then it should throw a message that "could not find"....means "prompt message". How to do it ..any related answer will be appriciated. thanks.
0
[ 2, 2942, 4725, 378, 3814, 13, 7, 16704, 11443, 4417, 2802, 7, 9, 1474, 711, 22, 38, 44, 12235, 800, 3726, 3726, 19, 51, 4865, 15, 75, 4604, 109, 12905, 15, 32, 1285, 1474, 19, 2942, 4725, 9, 98, 31, 259, 25, 76, 21, 4155, 2830...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Freeze Screen on windows === Is there any way to freeze the screen and show only one form active (only that form can receive input from user). The example of my description is like when windows user clicks shutdown from start menu. It shows choices like shutdown, restart, etc and not allows user to do input other than to that form. or when using Tune Up registry optimizer it will ask you to close all other running applications , then it shows up a Blue Window with a progress bar , but the user can neither close this window or do other input . I know about modal forms , but is there any other way to do that . Any Idea?
0
[ 2, 23030, 11551, 2324, 27, 1936, 800, 3726, 3726, 25, 80, 186, 161, 20, 11551, 14, 2324, 17, 298, 104, 53, 505, 1348, 13, 5, 4965, 30, 505, 92, 2588, 6367, 37, 4155, 6, 9, 14, 823, 16, 51, 5318, 25, 101, 76, 1936, 4155, 10840,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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# Combobox SelectedIndexChanged event === Ok, i have a problem, I need several text boxes to fill up with data after I select different values from the comboBox and I need an event to do it, but this isn't working for some reason: private override void rasaCombo_SelectedIndexChanged(object sender, EventArgs e) I've tested it and it seems it doesn't even recognize this as a valid event, since it never enters that part of the code. I'm using Visual C# 2010. Help?
0
[ 2, 272, 5910, 22621, 5309, 1704, 25671, 16229, 43, 807, 800, 3726, 3726, 5854, 15, 31, 57, 21, 1448, 15, 31, 376, 238, 1854, 8120, 20, 3509, 71, 29, 1054, 75, 31, 5407, 421, 4070, 37, 14, 22621, 5309, 17, 31, 376, 40, 807, 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...
get comments from fb-likes from url of my app? === I there, I have a facebook app but has a own message system, but still I would like to show comments that users did in facebook from user shares or likes, Lets say: http://myapp.com/?myId=100005235 This url is shared in fb, some one adds a comment to the share; that's the comments i'd like to recive (and user..), Can i do it with the facebook-js-skd? Thanks
0
[ 2, 164, 7534, 37, 13, 13478, 8, 1403, 18, 37, 287, 6362, 16, 51, 4865, 60, 800, 3726, 3726, 31, 80, 15, 31, 57, 21, 9090, 4865, 47, 63, 21, 258, 2802, 329, 15, 47, 174, 31, 83, 101, 20, 298, 7534, 30, 3878, 144, 19, 9090, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 a Django project made in Python be used by Jython? === I have a Django project that was written in Python first. Then we realized that there might be an advantage to using Jython. After spending a day or two fiddling with Jython trying to get the original project to work in Jython, I realized that perhaps the issue was that I was trying to run a Django project generated with Python. I was thinking maybe the django-jython project might only affect all Django code generated using Jython. Could this be the case? The error that pops up when I'm trying to run *jython manage.py syncdb* is *django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb* except that django-jython is supposed to make it so if my config says *'ENGINE': 'doj.backends.zxjdbc.mysql'* then it will run okay. Oh, and my classpath does include the mysql-connector-java-5.1.20-bin.jar Any help? Tips? Criticisms?
0
[ 2, 92, 21, 3857, 14541, 669, 117, 19, 20059, 44, 147, 34, 487, 93, 11570, 60, 800, 3726, 3726, 31, 57, 21, 3857, 14541, 669, 30, 23, 642, 19, 20059, 64, 9, 94, 95, 1896, 30, 80, 530, 44, 40, 3314, 20, 568, 487, 93, 11570, 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...
How to determine subtype of a type parameter in Scala? === class S class A extends S class B extends S class ClassWithTypeParameter[+T] val a: ClassWithTypeParamter[S] = new ClassWithTypeParameter[A] How can one determine the type of the subclass used for the type parameter of value a ?
0
[ 2, 184, 20, 3746, 972, 4474, 16, 21, 1001, 18906, 19, 25975, 60, 800, 3726, 3726, 718, 13, 18, 718, 21, 9073, 13, 18, 718, 334, 9073, 13, 18, 718, 718, 1410, 4474, 6351, 7307, 2558, 2430, 38, 500, 3347, 21, 45, 718, 1410, 4474, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Saving NSUserDefaults from safari === Perhaps I am going to far with this but, does anyone know if there is a way for saving a NSUserDefaults variable from Safari, with javascript or something like that. I am trying to save an access token from Facebook so I can use it later in my application. Does anyone know a way of achieving this? I don't do it in my app because I am using Unity3D and there is no access to a webview or a facebook login in there. Thank you in advance.
0
[ 2, 7599, 13, 2172, 16704, 13862, 9708, 18, 37, 25055, 800, 3726, 3726, 1774, 31, 589, 228, 20, 463, 29, 48, 47, 15, 630, 1276, 143, 100, 80, 25, 21, 161, 26, 7599, 21, 13, 2172, 16704, 13862, 9708, 18, 7612, 37, 25055, 15, 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...
get form field name (that appears in the form), not actual name in PHP === If I have a simple form, something like: <div class="main_account"> <form name="create_account" action="create_account.php" method="post"> <legend>Create Account</legend> <p><label for= "user" >Username*: </label><br/><input type="text" name="user" /> <p/> <p><label for= "password" >Password*: </label><br/><input type="password" name="password" /> <p/> .......... Is there a way to see in the create_account.php form the "Username*:" value for the name field,in other words the value that appears next to each form field in the actual field. I am asking this because I want to create a field that displays a variable string next to it, and I don't know how to pass it to php script. I am not interested in include or require. Thanks a lot.
0
[ 2, 164, 505, 575, 204, 13, 5, 887, 1780, 19, 14, 505, 6, 15, 52, 3463, 204, 19, 13, 26120, 800, 3726, 3726, 100, 31, 57, 21, 1935, 505, 15, 301, 101, 45, 13, 1, 12916, 718, 3726, 7, 6232, 1, 29148, 7, 1, 13, 1, 4190, 204, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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# Restrict generic parameter on interface to subclass === The following is contived, but bear with me: interface Clonable<TSubClass> { TSubClass Clone(); } How can I restrict TSubClass to be of the implementing type? i.e only let the implementor do this: class Dog : Clonable<Dog> { Dog Clone() { .... } } Not this: class BadDog : Clonable<Rabbit> { Rabbit Clone() { .... } } Thanks, ~S
0
[ 2, 272, 5910, 15436, 12733, 18906, 27, 6573, 20, 972, 1898, 800, 3726, 3726, 14, 249, 25, 21217, 4763, 15, 47, 2746, 29, 55, 45, 6573, 19226, 579, 1, 38, 7563, 1898, 1, 13, 1, 13, 38, 7563, 1898, 13871, 5, 6, 73, 13, 1, 184, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 Session variables resetting with each page load === My session variables are resetting every time I load a new page. I have included a header.php file to each script with the session_start() function at the very top like so: <? session_start(); error_reporting(E_ERROR); ?> I have also checked to make sure that the session_id is the same across all pages and it is. I checked my web host's php_ini config file and I saw that the session.save_path was set to /tmp. I changed it to /var/lib/session/ like someone had suggested on this site and I began to get odd warnings in my code <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: open(/var/lib/php/session//sess_97fca6d21c7ffa8333cd42eaa87f2eac, O_RDWR) failed: Permission denied (13) in <b>/home/mforsyth/public_html/Beesting/header.php</b> on line <b>2</b><br / I do not know what to do to fix this problem. Any help would be useful.If more details are needed please let me know.
0
[ 2, 13, 26120, 3723, 12157, 302, 19831, 29, 206, 2478, 6305, 800, 3726, 3726, 51, 3723, 12157, 50, 302, 19831, 352, 85, 31, 6305, 21, 78, 2478, 9, 31, 57, 506, 21, 157, 106, 9, 26120, 3893, 20, 206, 3884, 29, 14, 3723, 1, 13680, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 and getting back to default settings === I have following piece of code: $(document).ready(function(){ $("#cont").hide(); $("#slide").show(); $('#slide').click(function(){ $("#cont").slideToggle(); $("#slide").css("background-image", "url('img/slideup.png')"); }); }); The code simply calls of the div to be slided down from nowhere after clicking another div and getting back. And on start, as in CSS I've set the icon to be arrow pointing down, and then after a click it changes to be pointing up, it will just stay like this. I have simply no idea, how to make it "toogle" depending on the div status. I've tried a lot of things and the script simply falled down, could any one give me some clue or the code that will make the bg image toggle? Something like proper div statement, as my didn't work... Thanks alot!
0
[ 2, 487, 8190, 93, 17, 1017, 97, 20, 12838, 12410, 800, 3726, 3726, 31, 57, 249, 1855, 16, 1797, 45, 5579, 5, 28132, 6, 9, 15193, 5, 22359, 5, 6, 1, 5579, 5, 7, 5910, 1126, 38, 7, 6, 9, 19522, 5, 6, 73, 5579, 5, 7, 5910, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Organizing Messy Notepad data === I have some data in Notepad that is a mess. There is basically no space between any of the different columns which hold different data. I know the spaces for the data. For example, Columns 1-2 are X, Columns 7-10 are Y.... How can I organize this? Can it be done in R? What is the best way to do this? Thanks!!
0
[ 2, 11725, 21503, 1945, 8240, 1054, 800, 3726, 3726, 31, 57, 109, 1054, 19, 1945, 8240, 30, 25, 21, 3957, 9, 80, 25, 11374, 90, 726, 128, 186, 16, 14, 421, 7498, 56, 1027, 421, 1054, 9, 31, 143, 14, 7644, 26, 14, 1054, 9, 26, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 browser / Samsung Galaxy SII scrolling bug on web forms. Select list hitboxes don't scroll === I've got a really weird bug that I found testing my new web application on a Samsung Galaxy S2 running Android 4.03 ICS. What happens is that when you load a form in the default web browser, and then scroll down the page, the hitbox/touchable area seems to stay where it was on screen when the page first loaded, even though the form element itself has scrolled up the screen. As far as I can tell with the few testing devices I have available, I think this only happens on the Samsung Galaxy S2 as I have tried it in the Android simulator with the same version of android and was unable to replicate the problem. I know this makes it a very specific user base that haves the probem however last I checked the Galaxy s2 was the most popular Android handset in my country (Australia) so it would be nice to find a fix. I have created a very simple page to demonstrate this at http://users.tpg.com.au/geoffica/test.html You can replicate the problem by doing the following: 1. Load the page on a Galaxy S2 2. Scroll the browser so that page completely fills the screen and the address bar is _just_ off the top of the screen. 3. Where the select box is, place your finger to the side of the screen as a marker of where the select list was. 4. Scroll down the page any distance, then touch the whitespace where the select list used to be and the options should come up on screen. It may take a few attempts to get it but it will happen. Now I know you are thinking this is quite tricky to replicate and likely rare that it will happen, but on a form I built for a client because of where the elements were positioned, the hitbox always overlapped the submit button of the form, making it very difficult to hit the submit button. Select lists will also steal touches from other select lists if the hitboxes overlap, making the wrong options appear when touched. I've tried many things but the only workaround I've found so far is to use the touchstart event to trigger my submit button instead of the click event. This seems to happen before the click event of the select lists and prevents it from getting in first, but this is far from ideal, and doesn't stop the select lists from stealing clicks from other elements on the page. I've also thought about rolling my own jquery plugin to maybe place the select lists offscreen and then trigger their click events by touching a link or something. If it's a mobile device then the options will come up on screen regardless of the position of the select ilst. This would be quite cumbersome however and I would need to factor in the effect this would have on users coming from a pc or ipad for example which shows the options in a dropdown list instead. Sounds pretty prolematic to me. May even require some Galaxy s2 specific browser/device sniffing. Does anyone have a real workaround for this, apart from just not using select lists?
0
[ 2, 13005, 16495, 13, 118, 22981, 9358, 2769, 49, 13, 28166, 6256, 27, 2741, 1997, 9, 5407, 968, 770, 5309, 160, 221, 22, 38, 12159, 800, 3726, 3726, 31, 22, 195, 330, 21, 510, 5455, 6256, 30, 31, 216, 4431, 51, 78, 2741, 3010, 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...
OpenGL - Using shaders with glDrawElements === So I have brushed up on my knowledge of shaders and understand how they work. I have been going through the Superbible 5th edition and they do a great job explaining how to move a large number of geometry around using VBOs, index buffers and VAOs. I am curious as to how you specify the shader to use when rendering with glDrawElements(). Is it the last shader that is bound that is used? Or do you have to use other commands. To summarize: How do I specify which shader is used when I use glDrawElements(), i.e. the shaders that will be used on the triangles in my VBO that I render. Thank you!
0
[ 2, 368, 8430, 13, 8, 568, 7546, 1224, 29, 13, 8430, 43, 12404, 27567, 18, 800, 3726, 3726, 86, 31, 57, 7267, 71, 27, 51, 1918, 16, 7546, 1224, 17, 1369, 184, 59, 170, 9, 31, 57, 74, 228, 120, 14, 18656, 3426, 331, 96, 1322, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get information from a view to a model in Backbone.js without a DOM event === I'm new to Backbone.js and am having trouble figuring out the proper architecture for a model-view relationship. I have a view that holds an input box and a model that is supposed to take the contents of that input box and send it to the server. My issue is that I don't always have a discreet DOM event that triggers a request for the view to update the model data, such as `input.change`. Sometimes the code itself needs to ask the model to send updates to the server. I've thought of three solutions to this problem so far, I'm not sure if any if them are any good though: * Update the model on the input element's `keypress` event * Once the view is initialized with the model, have the view update/add a function to the model called '`get_input_value()`' that returns the value of the input box * Whenever the application needs to request the model to update the server, first call a function in the view that updates all of the information that the user has typed into the view to the model. Please bear in mind that this is a simplified example. The view contains child views as well, all of which hold a number of elements that the user can manipulate, the model needs to be updated with all of this information so that it can update the server. Any help and input is appreciated! Thanks so much!
0
[ 2, 184, 20, 164, 676, 37, 21, 1418, 20, 21, 1061, 19, 24036, 9, 728, 18, 366, 21, 11859, 807, 800, 3726, 3726, 31, 22, 79, 78, 20, 24036, 9, 728, 18, 17, 589, 452, 2572, 25379, 70, 14, 4119, 2607, 26, 21, 1061, 8, 4725, 1429...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Error when installing nokogiri on mac with"sudo gem install nokogiri" === I was trying to install nokogiri because it is required for rails to be started $ rails s /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:90:in `block in materialize': Could not find nokogiri-1.5.5 in any of the sources (Bundler::GemNotFound) from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `map!' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `materialize' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/definition.rb:127:in `specs' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/environment.rb:27:in `specs' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:41:in `candidate?' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:60:in `setup' from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/rubygems-bundler-1.0.3/lib/rubygems-bundler/noexec.rb:75:in `<top (required)>' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require' from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:9:in `<main>' However, it failed when I tried to install nokogiri with the command $ sudo gem install nokogiri Here is the error. $ sudo gem install nokogiri Building native extensions. This could take a while... ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for libxml/parser.h... *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib --with-iconv-dir --without-iconv-dir --with-iconv-include --without-iconv-include=${iconv-dir}/include --with-iconv-lib --without-iconv-lib=${iconv-dir}/lib --with-xml2-dir --without-xml2-dir --with-xml2-include --without-xml2-include=${xml2-dir}/include --with-xml2-lib --without-xml2-lib=${xml2-dir}/lib --with-xslt-dir --without-xslt-dir --with-xslt-include --without-xslt-include=${xslt-dir}/include --with-xslt-lib --without-xslt-lib=${xslt-dir}/lib --with-libxslt-config --without-libxslt-config --with-pkg-config --without-pkg-config --with-libxml-2.0-config --without-libxml-2.0-config --with-libiconv-config --without-libiconv-config /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:381:in `try_do': The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:506:in `try_cpp' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:970:in `block in find_header' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:790:in `block in checking_for' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block (2 levels) in postpone' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:284:in `block in postpone' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:254:in `open' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:280:in `postpone' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:789:in `checking_for' from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/mkmf.rb:969:in `find_header' from extconf.rb:114:in `<main>' Gem files will remain installed in /usr/local/rvm/gems/ruby-1.9.3-p194/gems/nokogiri-1.5.5 for inspection. Results logged to /usr/local/rvm/gems/ruby-1.9.3-p194/gems/nokogiri-1.5.5/ext/nokogiri/gem_make.out
0
[ 2, 7019, 76, 25429, 90, 921, 14913, 27, 1572, 29, 7, 18, 18601, 8551, 16146, 90, 921, 14913, 7, 800, 3726, 3726, 31, 23, 749, 20, 16146, 90, 921, 14913, 185, 32, 25, 1390, 26, 2240, 18, 20, 44, 373, 5579, 2240, 18, 13, 18, 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...
imap_delete, who is deleting that mail courier daemon or postfix? === Is there some log on server about imap_delete? What user is executing delete and how? Is there some way to track status or progress of delete (or any other action)? I added log level ofr postfix to -v -v but I do not see anything in logs, also I have DEBUG_LOGIN=2 (but this is just to debug login). Is there some RAW log or plugin or something like that. Why I need this? I do not know really that mail is deleted. imap_delete just returns true but I need more than that. Any idea?
0
[ 2, 31, 15022, 1, 24249, 591, 15, 72, 25, 121, 1336, 68, 30, 4216, 19418, 13127, 54, 678, 18594, 60, 800, 3726, 3726, 25, 80, 109, 6738, 27, 8128, 88, 31, 15022, 1, 24249, 591, 60, 98, 4155, 25, 25836, 27448, 17, 184, 60, 25, 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...
Java creating new class versions === I'm currently working on a project. I've been running into a few issues with the e-mail functionality, I've made multiple attempts to fix the issue and the latest seems to have fixed the issue. For each rewrite I've created a new class to hold the new code this doesn't seem to be the best solution as each time I have to go through the code and track down the references to the class and update them, with each rewrite only the code for the actual sending of the email has changed, function inputs and names have been consistent. I've looked up versioning but this hasn't been particularly helpful in providing a solution either granted most likely due to my own lack of knowledge on the subject. So here is what I'm looking for basically is to have one instance of the class with multiple versions preferably without all the old code in it to aid in reading but I want access to the old versions so that if a function/feature was there previously and wasn't built into the current version I can see how it was implemented.
0
[ 2, 8247, 2936, 78, 718, 3281, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 21, 669, 9, 31, 22, 195, 74, 946, 77, 21, 310, 1549, 29, 14, 13, 62, 8, 8079, 18548, 15, 31, 22, 195, 117, 1886, 3265, 20, 6098, 14, 1513, 17, 14, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
matplotlib not generating PS output === I have installed matplotlib and using ipython I have changes the backend to "PS" because the other backends werenot working Now when I do In [1]: plot([1,2,3],[4,5,6]) Out[1]: [<matplotlib.lines.Line2D at 0x23dc110>] In [2]: show() There is no output I mean there should be a '.ps' file generated right?(please correct me if I am wrong) but there is no such file in my pwd
0
[ 2, 4277, 13221, 38, 8326, 52, 13500, 8613, 5196, 800, 3726, 3726, 31, 57, 4066, 4277, 13221, 38, 8326, 17, 568, 31, 6448, 11570, 31, 57, 1693, 14, 97, 2451, 20, 13, 7, 1919, 7, 185, 14, 89, 97, 2451, 18, 46, 1270, 638, 130, 76...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
The text flickers on rotation in kinetic js in chrome browser === I am trying to rotate a text on click event. It has been achieved but the text flickers on rotation in Google chrome. It works fine in mozilla. How to stop this flickering of text. Please help. The code is <html> <head> <style> body { margin: 0px; padding: 0px; } canvas { border: 1px solid #9C9898; } </style> <script src="http://www.html5canvastutorials.com/libraries/kinetic-v3.10.2.js"></script> <script> window.onload = function() { var angle = 0; var stage = new Kinetic.Stage({ container: "container", width: 578, height: 200 }); var layer = new Kinetic.Layer(); var text = new Kinetic.Text({ x:225, y: 80, text: "Simple", fontSize: 12, fontFamily: "Calibri", textFill: "black" }); text.on("click", function() { angle+=1 text.transitionTo({ rotation:Math.PI*angle/2, duration:1 }); }); layer.add(text); stage.add(layer); } </script> </head> <body> <div id="container"></div> </body> </html >
0
[ 2, 14, 1854, 18709, 18, 27, 9431, 19, 13, 16905, 487, 18, 19, 13, 12985, 16495, 800, 3726, 3726, 31, 589, 749, 20, 21448, 21, 1854, 27, 10840, 807, 9, 32, 63, 74, 3153, 47, 14, 1854, 18709, 18, 27, 9431, 19, 8144, 13, 12985, 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...
Configuring screen height doesn't match actual screen size === I am trying to set the layout height in my **main.xml**, but when I set the layout_height to 270dp (or px) it fills up the whole screen from top to bottom, but my screen size is actually 320x240 (HTC magic - Android 1.5) - So it SHOULDN'T fill up the screen from top to bottom! Code inside Activity: Display display = getWindowManager().getDefaultDisplay(); Log.i("Screen height", Integer.toString(display.getHeight())); // Returns 320 Log.i("Screen width", Integer.toString(display.getWidth())); // Returns 240 Code inside main.xml: <ImageView android:id="@+id/bitmapImageView" android:layout_height="270dp" // Fills up the whole screen from top to bottom android:layout_width="50dp" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:background="#FFFFFF" android:src="@drawable/ic_launcher" /> Why is this happening? How can I fix it? Example when using 270 as layout height: ![][1] Example when using 240 as layout height: ![][2] [1]: http://i.stack.imgur.com/Ex0PE.png [2]: http://i.stack.imgur.com/px30r.png
0
[ 2, 1065, 13549, 68, 2324, 2947, 1437, 22, 38, 730, 3463, 2324, 1072, 800, 3726, 3726, 31, 589, 749, 20, 309, 14, 9106, 2947, 19, 51, 13, 1409, 6232, 9, 396, 8184, 1409, 15, 47, 76, 31, 309, 14, 9106, 1, 252, 7748, 20, 13, 1371...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
link a quest order to account order magento === I want to link a quest order to a existing account in Magento. Does someone know which fields on which tables i have to change this? Or is there maybe a easer way? Thank you. Great, Lex
0
[ 2, 3508, 21, 7769, 389, 20, 2176, 389, 4723, 17050, 800, 3726, 3726, 31, 259, 20, 3508, 21, 7769, 389, 20, 21, 3149, 2176, 19, 4723, 17050, 9, 630, 737, 143, 56, 2861, 27, 56, 7484, 31, 57, 20, 753, 48, 60, 54, 25, 80, 913, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0...
sql query returning multiple dates, only need latest date === I have a query that returns users by first name, last name, user id and a date they've completed an event. I want the query to only return one row per user, but some users have completed the same event on multiple dates. I can't use a distinct becuase the dates are distinct, and I can't use a group by for the same reason. how can I have the query return only the latest date on which the event was completed?
0
[ 2, 4444, 255, 25597, 2485, 1886, 4076, 15, 104, 376, 5736, 1231, 800, 3726, 3726, 31, 57, 21, 25597, 30, 4815, 3878, 34, 64, 204, 15, 236, 204, 15, 4155, 4924, 17, 21, 1231, 59, 22, 195, 1066, 40, 807, 9, 31, 259, 14, 25597, 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...
Doing SSL on Windows8 Metro app === I am trying to do implement a simple C# XMPP client that can exchange messages with the facebook chat server. On the facebook chat api page([https://developers.facebook.com/docs/chat/][1]), it specifies that the messages need to be send over TLS for the setup to be successful, which leads me to my problem. I cannot successfully do SSL/TLS in Win8 Metro. So for doing SSL in Win8 Metro, I basically followed this site: [http://msdn.microsoft.com/en-us/library/windows/apps/Hh780595.aspx][2] Here is what I have: var socket = new StreamSocket(); var host = new HostName("chat.facebook.com"); await socket.ConnectAsync(host, "5222", Windows.Networking.Sockets.SocketProtectionLevel.Ssl); So on the third line, I get the following error: The token supplied to the function is invalid (Exception from HRESULT: 0x80090308) I am not sure exactly what this means. Does anyone have experience with this or know another way to successfully connect to the facebook chat server using SSL/TLS? [1]: https://developers.facebook.com/docs/chat/ [2]: http://msdn.microsoft.com/en-us/library/windows/apps/Hh780595.aspx
0
[ 2, 845, 13, 18, 18, 255, 27, 1936, 457, 3986, 4865, 800, 3726, 3726, 31, 589, 749, 20, 107, 8713, 21, 1935, 272, 5910, 993, 79, 3421, 6819, 30, 92, 1950, 7561, 29, 14, 9090, 6615, 8128, 9, 27, 14, 9090, 6615, 21, 2159, 2478, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
image gallery for epaper === I am on a project for creating a epaper for a website and am using the zoom function to magnify the paper using the "class:magnify;" but the thing is that i want the main image to change when clicking on the specific thumbnail..is there any specific java script for this effect? .mainpic { width:600px; float:left; } .thumbpic { width:430px; height:650px; float:right; overflow : auto; background:#fff; padding:10px 15px 0px 15px; } .thumbpic img { border: solid 1px #999; } .thumbpic img:hover { border: solid 1px #000; }
0
[ 2, 1961, 2246, 26, 13, 62, 17945, 800, 3726, 3726, 31, 589, 27, 21, 669, 26, 2936, 21, 13, 62, 17945, 26, 21, 2271, 17, 589, 568, 14, 19469, 1990, 20, 20587, 9596, 14, 1397, 568, 14, 13, 7, 1898, 45, 9473, 103, 8612, 73, 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...
Couchbase Ruby client connection refused using node_list === I have set up couchbase on 2 servers(192.168.56.4 & 192.168.56.5) both in the same bucket(default). I'm able to connect to each individually, but not when passing the node_list arg as shown below: It connnects when I do so: client = Couchbase.connect("http://192.168.56.4:8091/pools/default") OR client = Couchbase.connect("http://192.168.56.5:8091/pools/default") but I get a refuse connection error when I try: c = Couchbase.connect( :pool => "default", :port => 8091, :node_list => ['http://192.168.56.4', 'http://192.168.56.5']) OR c = Couchbase.connect( :pool => "default", :port => 8091, :node_list => ['192.168.56.4', '192.168.56.5']) OR c = Couchbase.connect( :pool => "default", :node_list => ['http://192.168.56.4:8091', 'http://192.168.56.5:8091']) AND with other combinations that I have tried... So, any ideas on what am I doing wrong? BTW, just in case anyone asks, they seem to be working properly when it comes to replicate the data between themselves. Thanks.
0
[ 2, 4914, 8436, 10811, 6819, 2760, 2453, 568, 15421, 1, 5739, 800, 3726, 3726, 31, 57, 309, 71, 4914, 8436, 27, 172, 17595, 5, 19532, 9, 13434, 9, 3776, 9, 300, 279, 13, 19532, 9, 13434, 9, 3776, 9, 264, 6, 156, 19, 14, 205, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
preventing click event after mousedown event - bing maps conrol === I am using bing maps ajax control 7.0 I have attached two event handlers to the map, a `mousedown` handler and a `click` handler. During the `mousedown` event the mouse is usually depressed for a second or two. On releasing the mouse button the click event fires. I only wish the click event to fire if there was no `mousedown` At the moment I am just setting an internal variable `var cancelClick` within the `mousedown` event handler that is then tested in the `click` event handler and if it is true then the `click` handler returns without executing. Is there a better/proper way to handle this situation?
0
[ 2, 11520, 10840, 807, 75, 7567, 2968, 807, 13, 8, 18080, 6867, 1065, 7133, 800, 3726, 3726, 31, 589, 568, 18080, 6867, 20624, 569, 453, 9, 387, 31, 57, 3638, 81, 807, 24641, 18, 20, 14, 2942, 15, 21, 13, 1, 14002, 62, 2968, 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...
SQL Server 2008 - How to Export/Backup the Last 3 Months of Data from the MS SQL Database === I need to troubleshoot the production MS SQL Server 2008 database, so I want to export/backup only the last 3 month of data contained in it in order to import it into the test SQL box and try to troubleshoot the issue there. Production and test SQL Servers are in two different forests/domains. Would you be so kind to advise me what is the better way of doing that? Thanks a lot in advance!
0
[ 2, 4444, 255, 8128, 570, 13, 8, 184, 20, 7487, 118, 1958, 576, 14, 236, 203, 818, 16, 1054, 37, 14, 4235, 4444, 255, 6018, 800, 3726, 3726, 31, 376, 20, 2572, 12511, 14, 637, 4235, 4444, 255, 8128, 570, 6018, 15, 86, 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 list all direct and indirect subtypes in a hierarchy stored in MySQL === I am facing a very general problem. I have a large object hierarchy the relation between each object type is stored in DB table(id, name,supertype_id). Now if I have a hierarchy A<-B<-C<-D. How can I list all subtypes of B. Not only those directly related and of course B can have many direct subtypes not only C and C also can have many subtypes and so on. Now I now I can fetch all data and process it outside the DB but how would I do it using SQL procedures.
0
[ 2, 184, 20, 968, 65, 1744, 17, 17132, 972, 4474, 18, 19, 21, 14417, 8214, 19, 51, 18, 22402, 800, 3726, 3726, 31, 589, 4325, 21, 253, 297, 1448, 9, 31, 57, 21, 370, 3095, 14417, 14, 5827, 128, 206, 3095, 1001, 25, 8214, 19, 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...
STP configuration issue === Having a strange issue with STP that I cannot seem to pin down with the following topology: -------881 ------- Public WAN ----- 881--- Switch1 Swith2 --------2911--------Private leased line---- provided by isp I am trying to extend a layer 2 network between two remote sites, the two bottom routers are cisco 2911's connected through a leased line from the ISP. The two routers at the top are cisco 881's connected over an encrypted VPN tunnel over public WAN. The 881 link is supposed to serve as a backup link to the link between 2911s. Using pesudowire I have set up the network such that STP packets can freely flow between the switched, simulating a LAN. I can see BPDUs being sent and received in appropriate locations however there seems to be a problem with failing over to the secondary link when the primary goes down in a certain way. Operating normally the non-root switch (on the right) blocks its link to the 881, getting rid of the loop. When the link between the switch and the 2911 is broken STP unblocks the port and traffic between the two sites flows normally. However, when the link between the two 2911's is broken STP cannot seem to switch over to the other link and traffic stops transmitting between the 2 sites. Think there might be something about the STP configuration since traffic seems to be flowing as expected until a failure but I can't be sure anymore. Any ideas with something similar would be great. Thanks
2
[ 2, 354, 306, 8091, 1513, 800, 3726, 3726, 452, 21, 2578, 1513, 29, 354, 306, 30, 31, 1967, 2260, 20, 3459, 125, 29, 14, 249, 21661, 45, 13, 8, 8, 8, 8, 8, 8, 8, 3020, 165, 13, 8, 8, 8, 8, 8, 8, 8, 317, 10685, 13, 8, 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...
php - building an array inside a while loop === i have the following code: $namesArray= array(); while ($row=mysql_fetch_array($result)) { $nameAndCode->code = $row['country_code2']; $nameAndCode->name = $row['country_name']; array_push($namesArray,$nameAndCode); } return $namesArray; the problem is that i get only the last value comming from the Table. i think its because i am building the array while referencing its values to the same object, and it's keep changing. i know while loop doesnt create a new scope for each iteration which IS the problem, what's the best way to acomplish that?
0
[ 2, 13, 26120, 13, 8, 353, 40, 7718, 572, 21, 133, 5293, 800, 3726, 3726, 31, 57, 14, 249, 1797, 45, 5579, 7259, 4964, 2787, 3726, 7718, 5, 6, 73, 133, 13, 5, 4403, 5417, 3726, 915, 18, 22402, 1, 410, 19913, 1, 8576, 93, 5, 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...
html to php error === I am converting from html to WP. The theme does not show any error until I don't add the following code, <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> As I add it, I start getting an error at the last line of my code. Please help me out. Thanks
3
[ 2, 13, 15895, 20, 13, 26120, 7019, 800, 3726, 3726, 31, 589, 19583, 37, 13, 15895, 20, 13, 13790, 9, 14, 3184, 630, 52, 298, 186, 7019, 163, 31, 221, 22, 38, 3547, 14, 249, 1797, 15, 13, 1, 60, 26120, 100, 13, 5, 5815, 1, 69...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
DB schema: Large Text Storage with css === Not sure if it matters but I'm currently using mysql version 5.1 (varies slightly between servers) and rails 2.3.11 (This may need to get ported to rails 3 in the future). Here's the scenario:<br /> I need to store blocks of text that will combine to create a page with troubleshooting steps, information collection, and a submit to continue the troubleshooting based on what is found. There will be fields in the pages to collect information. **For example:** <br /> text: 'What is the name of the malfunctioning program'<br /> text_field: program name text: 'Try to uninstall the program and re-install it.'<br /> submit_link: Is the issue fixed? (clicking something like 'no' would lead to more troubleshooting) This is kind of a mundane example but it should get the point across. When the form is submitted it would take the user to a new page with the next appropriate troubleshooting step and the process repeats. At the very end of the process if the issue is not resolved, the collected fields are combined a long with the the selected answers that allow you to traverse from step to step and submit a ticket to a technician. <br /> There is more on the back-end to this however the portion I'm struggling with combining a many-to-many relationship to get rid of redundancies (troubleshooting steps may be reused), include css (as basic as coloring text), include javascript (so fields can have calendar logic, time/date verification, etc), all while keeping the large text queries fast. Most of my attempts have included plugging css/javascript into the rails project on the view (the page that loads), and they reference a class id that is assigned in the html block so when the page loads the css/javascript is already on the page and its simply called instead of being repeated in the table multiple times. I've also tried breaking up the text so that each row has an ID to a corresponding table holding the text so by referencing that key you pull the text and don't have to duplicate the row multiple times to use it in multiple places (also allows for a single step among several others to be repeated without pulling the entire page or parsing it). I've found multiple ways to handle the fields my main concern is the actual text because it gets large (upwards of 10,000 characters in some cases). Speed is one of my biggest concerns because these pages are going to be dynamically generated on the fly constantly and as a result the smallest difference in load times has an noticeable affect on the front end. If the only solution (or the fastest solution) is storing each section in a TEXT field that's fine, I was just hoping to avoid it. Thank you ahead of time for any comments/suggestions.
0
[ 2, 13, 9007, 23874, 45, 370, 1854, 4326, 29, 272, 18, 18, 800, 3726, 3726, 52, 562, 100, 32, 4556, 47, 31, 22, 79, 871, 568, 51, 18, 22402, 615, 331, 9, 165, 13, 5, 8220, 160, 1847, 128, 17595, 6, 17, 2240, 18, 172, 9, 240, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Limited Number of Connections When Using CHUNKED encoding === I'm using the Axis 1.x SOAP Framework in one of my web service clients. During our early testing for the application, it turns out that if we use the default HTTP 1.0 standards (Without CHUNKED encoding), and when the received SOAP envelope is huge, I end up with an invalid XML exception. This is why I have added the client-config.wsdd file, and set the CHUNKED property as part of the HTTP Request Headers. This has solved my problem. This however has caused yet another problem: When using the CHUNKED encoding, and when making web service calls using my client, I am limited to ONLY "2" simultaneous calls (Each call needs around 1 minute to return a response). So before any of the two web services returns a response, any additional calls are "put on hold". My question is: is there a way to override this behavior, while making sure that I'd still be using CHUNKED encoding, which helped solve my earlier problem?
0
[ 2, 1317, 234, 16, 6760, 76, 568, 15009, 69, 19608, 800, 3726, 3726, 31, 22, 79, 568, 14, 8577, 137, 9, 396, 6447, 6596, 19, 53, 16, 51, 2741, 365, 7421, 9, 112, 318, 274, 4431, 26, 14, 3010, 15, 32, 2844, 70, 30, 100, 95, 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...
Running SQL query using SignalR === Most of my experience is with applications and I am having trouble working with a SQL query. The web page uses signalr to update clients with new info which will be controlled by a different process but what I am trying to implement is that new connected clients will not be at the same place as others already joined so it will update new clients with the correct info. I have this SQL Query , public string LoadCurrent() { SqlConnection con = new SqlConnection(); SqlConnectionStringBuilder bldr = new SqlConnectionStringBuilder(); bldr.DataSource = @"server\SQLEXPRESS"; bldr.InitialCatalog = "Signalr_Example"; bldr.UserID = "zip"; bldr.Password = "zap"; con.ConnectionString = bldr.ConnectionString; con.Open(); string currentPage = ""; using (SqlCommand command = con.CreateCommand()) { command.CommandText = "SELECT TOP 1 activepage FROM active"; con.Open(); command.ExecuteNonQuery(); SqlDataReader myReader = command.ExecuteReader(); while (myReader.Read()) { int _currentpage = myReader.GetOrdinal("activepage"); currentPage = myReader.GetString(_currentpage); } } return currentPage; } Which I would like to return when a client connects public Task Connect() { string html = LoadCurrent(); _connections.TryAdd(Context.ConnectionId, null); //This runs firstview which populates a content div on new clients. Clients[Context.ConnectionId].firstview(html); return Clients.tally(_connections.Count.ToString()); } while this works in a winapp , it breaks all of signalr on my page when run and does not return the result. I am probably doing something I am not supposed to , so I thought I would ask.
0
[ 2, 946, 4444, 255, 25597, 568, 2800, 139, 800, 3726, 3726, 127, 16, 51, 1496, 25, 29, 3767, 17, 31, 589, 452, 2572, 638, 29, 21, 4444, 255, 25597, 9, 14, 2741, 2478, 2027, 2800, 139, 20, 11100, 7421, 29, 78, 15404, 56, 129, 44, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 invert a permutation array in numpy === Given a self-indexing (not sure if this is the correct term) numpy array, for example: a = np.array([3, 2, 0, 1]) This represents this [permutation](http://en.wikipedia.org/wiki/Permutation#Notation) (`=>` is an arrow): 0 => 3 1 => 2 2 => 0 3 => 1 I'm trying to make an array representing the inverse transformation without doing it "manually" in python, that is, I want a *pure* numpy solution. The result I want in the above case is: array([2, 3, 1, 0]) Which is equivalent to 0 <= 3 0 => 2 1 <= 2 or 1 => 3 2 <= 0 2 => 1 3 <= 1 3 => 0 It seems so simple, but I just can't think of how to do it. I've tried googling, but haven't found anything relevant.
0
[ 2, 184, 20, 19, 8122, 21, 28706, 7718, 19, 13, 6336, 6448, 800, 3726, 3726, 504, 21, 1119, 8, 25671, 68, 13, 5, 1270, 562, 100, 48, 25, 14, 4456, 981, 6, 13, 6336, 6448, 7718, 15, 26, 823, 45, 21, 800, 13, 8157, 9, 8576, 93,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
DateTime just the date? === Getting abit of a problem I only know how to use DateTime to display my results like so: { string uri = "http://localhost:8002/Service/HireDate"; XDocument xDoc = XDocument.Load(uri); var staff = xDoc.Descendants("HireDate") .Select(n => new { StartDate = DateTime.Parse(n.Element("HireFromDate").Value), //this line EndDate = DateTime.Parse(n.Element("HireToDate").Value), //this line TotalDaysHired = n.Element("NumberOfDaysHired").Value, }) .ToList(); dataGrid9.ItemsSource = staff; } However this outputs like this in my datagrid: 15/07/2012 00:00:00 27/07/2012 00:00:00 Is there a way to remove the time I just want the date?
0
[ 2, 1231, 891, 114, 14, 1231, 60, 800, 3726, 3726, 1017, 21, 3326, 16, 21, 1448, 31, 104, 143, 184, 20, 275, 1231, 891, 20, 3042, 51, 1736, 101, 86, 45, 13, 1, 3724, 13, 3594, 800, 13, 7, 21127, 6903, 15580, 11694, 45, 8464, 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...
How to convert NAD 83 coordinates to latitude and longitude with rgdal package? === I have coordinates, all of which should be located in DC, but I cannot figure out how to convert them from NAD 83 to latitude and longitude in R. I'm using the `spTransform()` function in the rgdal package and get an error about non-conformant data. library(rgdal) nad83_coords <- data.frame(x=c(396842.6, 397886.9, 398315.5, 398154.3, 398010.3), y=c(140887.1, 139847.0, 138743.9, 139534.5, 138697.3)) coordinates(nad83_coords) <- c('x', 'y') proj4string(nad83_coords) <- CRS("+init=epsg:4269") Error in `proj4string<-`(`*tmp*`, value = <S4 object of class "CRS">) : Geographical CRS given to non-conformant data: 398315.5 140887.1 Other combinations of proj4strings yield the same error. I believe the error is because the coordinates are too large, but I'm not sure why that would be. The documentation for the coordinates is below: > Values are in the Maryland State Plane meters NAD 83 map projection. I'm very new to mapping and projections, and any help is appreciated.
0
[ 2, 184, 20, 8406, 7536, 10270, 13714, 20, 16337, 17, 22291, 29, 13, 8911, 3952, 6030, 60, 800, 3726, 3726, 31, 57, 13714, 15, 65, 16, 56, 378, 44, 335, 19, 4752, 15, 47, 31, 1967, 1465, 70, 184, 20, 8406, 105, 37, 7536, 10270, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
LogCat: Could not find class 'com.jcraft.jsch.JSch' === i'm trying to ssh connect from my android phone to a ssh server. My import line: import com.jcraft.jsch.*; and here the rest try{ JSch jsch = new JSch(); //create SSH connection String host = "192.168.158.20"; String user = "jan"; String password = "mypassword"; Session session = jsch.getSession(user, host, 22); session.setPassword(password); session.connect(); System.out.println("done"); } catch(Exception e){ System.out.println(e); } I'm using Jsch (java ssh implementation) for that. I've downloaded the jsch-0.1.48.jar from the website and added it to my eclipse android project's build path via "right click project -> libraries -> Add Jars" I can now see the jsch-0.1.48.jar file inside my Referenced Libraries so that seems to be ok. When i start the debug i get a Could not find class 'com.jcraft.jsch.JSch' error from LogCat at the line 1. Eclipse shows me no warnings or syntax errors.
0
[ 2, 6738, 5782, 45, 110, 52, 477, 718, 13, 22, 960, 9, 728, 7856, 9, 728, 2992, 9, 728, 2992, 22, 800, 3726, 3726, 31, 22, 79, 749, 20, 13, 18, 1635, 6379, 37, 51, 13005, 1132, 20, 21, 13, 18, 1635, 8128, 9, 51, 9010, 293, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 send message to facebook account through mail function === I want to sen message on my facebook account i am using class.phpmailer.php and getting done message but i did not receiving message on my facebook account, is there any way to send message to facebook account via email. i also tried graph api but not receiving any type of message.
1
[ 2, 13, 26120, 2660, 2802, 20, 9090, 2176, 120, 4216, 1990, 800, 3726, 3726, 31, 259, 20, 8252, 2802, 27, 51, 9090, 2176, 31, 589, 568, 718, 9, 26120, 8079, 106, 9, 26120, 17, 1017, 677, 2802, 47, 31, 144, 52, 3396, 2802, 27, 51,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 crossdomain request with jquery === I trying to make a call to an external domain using $.ajax() and it WORKS, the server receives the call, but the response in firebug errors out in jquery.js line 7760. I've been beating my head at this all day and don't feel like I've made it much further. $.ajax({ type: "GET", url: "http://admin:asdfg@149.50.143.241:81/stream.jpg", //data: {}, //async: true, //contentType: "application/jsonp; charset=utf-8", //headers: { // 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5', // 'Accept': '*/*', // 'Authorization': 'Basic ' + auth //}, //timeout: 500, dataType: "jsonp", //crossDomain: true, beforeSend: function (req) { req.setRequestHeader('User-Agent', 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5'); req.setRequestHeader('Accept', '*/*'); req.setRequestHeader('Authorization', 'Basic ' + auth); }, success: function (data) { alert("Success"); } });
0
[ 2, 20624, 919, 537, 6232, 3772, 29, 487, 8190, 93, 800, 3726, 3726, 31, 749, 20, 233, 21, 645, 20, 40, 4886, 4603, 568, 5579, 9, 6881, 7522, 5, 6, 17, 32, 693, 15, 14, 8128, 8359, 14, 645, 15, 47, 14, 1627, 19, 535, 16254, 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...
Creating and Inserting new entity from Existing One in Linq To Sql === I have 2 tables; PriceList and PriceListDetail with one to many realitonship. After inserting a new PriceList and I need to copy PriceListDetail's of an existing PriceList. var pricedetails= db.PriceListDetails.Where(p => p.PriceList Id == SomeExistingPriceListID); All I need is to change priceListID of pricedetails above and Insert them to PriceListDetail table. When I modify priceListId of pricedetails and try to insert them I get 'cannot insert entities that already exists'. Obvious solution is to create new entities and copy values one by one from pricedetails then insert. Is there a way to avoid one by one copying? Maybe create duplicate rows then modify duplicated ones?
0
[ 2, 2936, 17, 14692, 68, 78, 9252, 37, 3149, 53, 19, 6294, 1251, 20, 4444, 255, 800, 3726, 3726, 31, 57, 172, 7484, 73, 2162, 5739, 17, 2162, 5739, 546, 8682, 29, 53, 20, 151, 683, 49, 444, 2418, 9, 75, 14692, 68, 21, 78, 2162,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
VS Setup project: install files in different directories === I have Visual Studio Setup project. And I want to install one of my file to some directory on drive C. How am I supposed to do it? An example: I'm installing my app in C:\MyApp\. And one file, settings.ini, to C:\Settings\MyAppSettings\
0
[ 2, 4611, 18161, 669, 45, 16146, 6488, 19, 421, 559, 1596, 800, 3726, 3726, 31, 57, 3458, 1120, 18161, 669, 9, 17, 31, 259, 20, 16146, 53, 16, 51, 3893, 20, 109, 16755, 27, 1493, 272, 9, 184, 589, 31, 2293, 20, 107, 32, 60, 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...
SQL Server 2008 : Avg. timing in milliseconds === I have this query select substring((convert(varchar,PostTime,120)),1,11),AccountNumber,sum(Cast (datediff(ss,TranTime,AuthProcessedTime) as money)) / COUNT(1) AverageTime,COUNT(1) NumberOfCount from AuthTransactions WITH(NOLOCK) group by substring((convert(varchar,PostTime,120)),1,11),AccountNumber in this query AverageTime comes in sec. but i want to see it in milliseconds because the result are in milliseconds . so is it possible to see the result in milliseconds Thanks in advance.
0
[ 2, 4444, 255, 8128, 570, 13, 45, 21, 22955, 9, 11812, 19, 13436, 5007, 18, 800, 3726, 3726, 31, 57, 48, 25597, 5407, 972, 11130, 5, 5, 1126, 8122, 5, 3311, 5433, 15, 6962, 891, 15, 12054, 6, 6, 15, 165, 15, 1306, 6, 15, 29148,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Opacity issue in IE8 when Adding Simple Jquery Fadein/Fadeout === Iam trying to implement simple jquery Fadein/Fadeout to my website. So i have done these steps JQUERY <script type="text/javascript"> $(document).ready(function() { $(".writereview").click(function(){ $(".reviewpopup").fadeIn(); $(".popupcontainer").fadeIn(); }); $(".popupclose").click(function(){ $(".reviewpopup").fadeOut(); $(".popupcontainer").fadeOut(); }); }); </script> HTML <div class="reviewpopup" style="display: none; "></div> <div class="popupcontainer" style="display: none; "> <iframe src="feedback.html" frameborder="0" scrolling="no" width="475" height="510"> </iframe> <a href="#" class="popupclose"><img src="images/popupclose.jpg" alt="HoHo"></a> </div> CSS .reviewpopup { display:none; width:100%; height:100%; overflow:hidden; background-color:#000; opacity:0.5; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; filter: alpha(opacity=50); position:fixed; top:0; z-index:1001; } .popupcontainer { width: auto; height:auto; display:none; position:absolute; top: 45px; left: 50%; margin-left: -280px; background-color:#FFF; z-index:1001; border-radius:10px; -moz-border-radius:10px; -webkit-border-radius:10px; border:solid 5px #000; padding:20px; } The Jquery is Working fine in all Browsers, But the Issue is, Opacity is not working properly in IE8. I just Removed the Jquery and it works. I don't know what is the exact reason with this IE8 Opacity and Jquery. Please Help me.
0
[ 2, 13, 11490, 5788, 1513, 19, 13, 660, 457, 76, 4721, 1935, 487, 8190, 93, 11381, 108, 118, 1473, 546, 1320, 800, 3726, 3726, 31, 765, 749, 20, 8713, 1935, 487, 8190, 93, 11381, 108, 118, 1473, 546, 1320, 20, 51, 2271, 9, 86, 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...
Border in a UIButton === I dragged A round rect button into the nib and set a background image for the button. However, the image didn't fill up the whole space, it left out a narrow border on the sides of the button. How do I get rid of this border. Thanks.
0
[ 2, 1862, 19, 21, 13, 5661, 811, 444, 800, 3726, 3726, 31, 7465, 21, 560, 6042, 38, 5167, 77, 14, 1781, 220, 17, 309, 21, 2395, 1961, 26, 14, 5167, 9, 207, 15, 14, 1961, 223, 22, 38, 3509, 71, 14, 979, 726, 15, 32, 225, 70, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Working with strcmp and string array === I'm trying to eliminate extra elements in the string array and I wrote the code below. There seems a problem with strcmp function and string arrays. Strcmp doesn't accept the string array elements that way. Can you help me fix that? for(int l = 0; l<9999; l++) { for(int m=l+1;m<10000;m++) if(strcmp(array3[l],array3[m])) { array3[m]=array3[m+1]; } }
0
[ 2, 638, 29, 354, 5453, 2554, 17, 3724, 7718, 800, 3726, 3726, 31, 22, 79, 749, 20, 10628, 2230, 2065, 19, 14, 3724, 7718, 17, 31, 738, 14, 1797, 1021, 9, 80, 2206, 21, 1448, 29, 354, 5453, 2554, 1990, 17, 3724, 7718, 18, 9, 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...
Font size for @font-face alternative === I'm using @font-face that has to be given a large font-size. for example the font-size of the title is 54px which is normally so big, but in this font it appears medium. So the problem is, while the page loads, the alternative font appears veeeery big and breaks the whole layout. Is there a way i can specify a font-size for alternative font?
0
[ 2, 9978, 1072, 26, 13, 1, 21931, 8, 6413, 2676, 800, 3726, 3726, 31, 22, 79, 568, 13, 1, 21931, 8, 6413, 30, 63, 20, 44, 504, 21, 370, 9978, 8, 10454, 9, 26, 823, 14, 9978, 8, 10454, 16, 14, 581, 25, 5896, 306, 396, 56, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get the URL of a page where a Google Script Gadget is embedded === I'm looking for a method that allows me to get the URL of the current page where a Google Script Gadget is embedded. I tried using getActivePage() but that only returns my Google Site's home page. According to this issue: http://code.google.com/p/google-apps-script-issues/issues/detail?id=568 get active site and get active page is defective but that was in September 2011... Here is my code: var site = SitesApp.getActivePage(); Am I using getActivePage() incorrectly? Thank you for your help in advance.
0
[ 2, 184, 20, 164, 14, 287, 6362, 16, 21, 2478, 113, 21, 8144, 3884, 25661, 25, 12138, 800, 3726, 3726, 31, 22, 79, 699, 26, 21, 2109, 30, 2965, 55, 20, 164, 14, 287, 6362, 16, 14, 866, 2478, 113, 21, 8144, 3884, 25661, 25, 1213...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 the Query Of a UIWebView URL === Hey guys I'm trying to find a way to specifically grab the Query String out of the URL that my UIWebView currently has loaded up. So for example: www.google.com?page=235 I want to end up with a NSString with the text "page=235". Or even better Page at a NSData Key of Title and 235 at a Key of ID. Im basically trying to organise the Query String into useable data. In my project I have a button: [HTML appendString:@"<a href='didtap://goto?Page=56'>Post Comment</a>"]; That i access with checking the absolute URL to see if the button was fired. Is there any way to profile the information the way i want to?
0
[ 2, 164, 14, 25597, 16, 21, 13, 5661, 14113, 4725, 287, 6362, 800, 3726, 3726, 8409, 2776, 31, 22, 79, 749, 20, 477, 21, 161, 20, 3524, 4931, 14, 25597, 3724, 70, 16, 14, 287, 6362, 30, 51, 13, 5661, 14113, 4725, 871, 63, 8572, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
parent child data === hi i am working in a project where i have to save data with parent child relationship. I am saving flight related data. data structure is like this flight_id child_id Flight_name 1 1 E213 2 2 E333 3 2 E444 FLight 1 have no child id so its parent id replaces it flight 2 have two child_id so in each of child_id i have to put the parent id Any idea how can i do that?
0
[ 2, 4766, 850, 1054, 800, 3726, 3726, 4148, 31, 589, 638, 19, 21, 669, 113, 31, 57, 20, 2079, 1054, 29, 4766, 850, 1429, 9, 31, 589, 7599, 1690, 1597, 1054, 9, 1054, 1411, 25, 101, 48, 1690, 1, 1340, 850, 1, 1340, 1690, 1, 7259...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 image link, not working === Hey I'm doing some testing while learning js + html5 and other web/mobile frameworks. I have a problem with one of my picture links, which I also need to change the picture dynamically and the target(hopefully). But it won't work. HTML: <div data-role="content" id="firstPageContent"> <p>I'm first in the source order so I'm shown as the page.</p> <p>View internal page called <a href="#second">second</a></p> <a herf="#second" id="mapLink" name="mapLink"><img id="mapLinkImage" alt="a map which links to the mapPage" src="images/main_header.png"/></a> <Button id="loadButton" onClick="load()"/> </div><!-- /content --> js: importScripts(dataManager.js); var mapLink=second; function load(){ alert('called'); document.getElementById('mapLinkImage').src="images/store.map.png"; document.getElementById('mapLink').herf="http://google.com"; } problem: It ain't showing the image as a link, just as a plain image.
0
[ 2, 13, 15895, 1961, 3508, 15, 52, 638, 800, 3726, 3726, 8409, 31, 22, 79, 845, 109, 4431, 133, 2477, 487, 18, 2754, 13, 15895, 264, 17, 89, 2741, 118, 12571, 6596, 18, 9, 31, 57, 21, 1448, 29, 53, 16, 51, 2151, 6271, 15, 56, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Using TemplateVarible checkbox ModX === I'm trying to display social icons if user check checkbox in template varribles. So i made everything I need to display this checkbox on each page (i have 1 template only) in template varribles. Next i put this code into base.html (i use static files for all chunks and template - this file is BaseTemplate static file) <?php if ($modx->getTemplateVar(1,'Yes')) { ?> <a href="#"><img src="assets/templates/default/images/facebook.png" alt="Facebook" style="width: 26px; height: 26px; border: 0; margin-left: 40px;" /></a> <a href="#"><img src="assets/templates/default/images/twitter.png" alt="Twitter" style="width: 26px; height: 26px; border: 0; margin-left: 10px;" /></a> <a href="#"><img src="assets/templates/default/images/linkedin.png" alt="LinkedIn" style="width: 25px; height: 25px; border: 0; margin-left: 10px;" /></a><br /><br /> <?php } ?> Also i tried: <?php if ($modx->getTemplateVar($social,'Yes')) { ?> where `social` is a name of my TV, `1` is id of my TV. And this is what i get on website: getTemplateVar($social,'Yes')) { ?> I though it is because i cant use php in chunks/template file, so i create snippet and put code to check TV is checked into it, but this didnt give me any results. Here is [documentation](http://wiki.modxcms.com/index.php/Template_Variable_Checkbox) i read to use TV. What em i doing wrong? How to use TV in this way, not as a filter while display resource?
0
[ 2, 568, 22894, 3311, 3426, 2631, 5309, 7226, 396, 800, 3726, 3726, 31, 22, 79, 749, 20, 3042, 668, 9801, 18, 100, 4155, 2631, 2631, 5309, 19, 22894, 4033, 17980, 1355, 9, 86, 31, 117, 796, 31, 376, 20, 3042, 48, 2631, 5309, 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...
running c# on unix === I was wondering if it was possible to run/convert/compile/recompile a small c# program, tasked with invoking a webservice and passing it the usual xml file with, for unix. The unix version if HP ux 11.23(released in 2003). Wherever I looked for it the only reasonable answer was "mono". However while searching I also came across this: http://www.mono-project.com/Mono:HPUX Currently only the Mono Interpreter (mint) will work on HPUX. At this time, Mono's JIT does not work with HPUX. Only thing keeping me screaming I guess is my ignorance on the matter. What would this change for me or keep me from compiling and running my little program? btw the references I use are: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using System.Xml.Serialization; using System.Net; Is there any way I can get myself out of this with a "few" bruises, as opposed to completely trashed and with every bone broken? Thank you.
0
[ 2, 946, 272, 5910, 27, 22540, 800, 3726, 3726, 31, 23, 5712, 100, 32, 23, 938, 20, 485, 118, 1126, 8122, 118, 11103, 3599, 118, 99, 11103, 3599, 21, 284, 272, 5910, 625, 15, 14605, 29, 19, 2625, 1581, 21, 2741, 11449, 17, 2848, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Increase JVM size for jar file === I am trying to increase the java heap size for jar file that launches easy neurons program. There is a patch file that i tried to modify to be like that java -jar easyNeurons.jar -Xmx1024M -Xms1024M but I still get VectorSizeMismatchException
0
[ 2, 1839, 487, 20147, 1072, 26, 5112, 3893, 800, 3726, 3726, 31, 589, 749, 20, 1839, 14, 8247, 15414, 1072, 26, 5112, 3893, 30, 22933, 2010, 18131, 625, 9, 80, 25, 21, 7331, 3893, 30, 31, 794, 20, 17579, 20, 44, 101, 30, 8247, 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...
How do I match certain characters from a certain part of string with a regex? === I have some urls that look like this: http://subdomain_domain_com/some_path http://subdomain_domain_com?some_var=some_value How do I write a regex to match the underscores only from the domain?
0
[ 2, 184, 107, 31, 730, 1200, 1766, 37, 21, 1200, 141, 16, 3724, 29, 21, 7953, 1706, 60, 800, 3726, 3726, 31, 57, 109, 13, 911, 7532, 30, 361, 101, 48, 45, 7775, 6903, 7563, 537, 6232, 1, 537, 6232, 1, 960, 118, 3220, 1, 8353, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
JMeter: How to set content to the request of a Java Request Sample on "View Results Tree" page? === I created a test plan with JMeter, and this plan include a Thread Group which contains 2 Java Request Sample. The plan runs successfully. But when I open the "View Results Tree", and select the "Request" tab for a Java request, there is "no data to display". I want to display a string here, and I did set the string to SampleResult by: *sampleResult.setRequestHeader(requestString);* However, setting request header seems not to work. What should I do to display the string in "Request" tab?
0
[ 2, 487, 7307, 45, 184, 20, 309, 2331, 20, 14, 3772, 16, 21, 8247, 3772, 5717, 27, 13, 7, 4725, 1736, 1541, 7, 2478, 60, 800, 3726, 3726, 31, 679, 21, 1289, 944, 29, 487, 7307, 15, 17, 48, 944, 468, 21, 9322, 214, 56, 1588, 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...
if auto_update_statistics is amde ON by using sp_autostats for a particular index of a table will Statistics for every DML? === I hit upon **auto_update_statistics** on google, it suggest if we make this ON we do not need to update **Statistics**, SQL Server will do it. I was wondering so for any Insert, Update(of Indexed Column), Delete on Table will result in Update of **Statistics**? If yes will not that create latency for transaction.
0
[ 2, 100, 3108, 1, 576, 8209, 1, 29380, 8354, 25, 589, 546, 27, 34, 568, 3782, 1, 18042, 10631, 18, 26, 21, 1498, 4348, 16, 21, 859, 129, 5818, 26, 352, 13, 43, 8184, 60, 800, 3726, 3726, 31, 770, 685, 13, 1409, 18042, 1, 576, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Intercept HTTP request body from chrome extension === I'm aware that `chrome.webRequest.onBeforeRequest` allows a request to be intercepted, analyzed and blocked, but it only allows access to the request headers, and not the request body (as far as i know). Sample use case: think intercepting form values. It seems there is a API change proposal [here](http://www.chromium.org/developers/design-documents/extensions/proposed-changes/apis-under-development/notifications-of-web-request-and-navigation#TOC-Accessing-request-and-response-bodi) suggesting exactly this. Is there another way this could be accomplished? Thanks.
0
[ 2, 18324, 7775, 3772, 358, 37, 13, 12985, 3896, 800, 3726, 3726, 31, 22, 79, 3854, 30, 13, 1, 12985, 9, 458, 3692, 10351, 9, 218, 12750, 99, 10351, 1, 2965, 21, 3772, 20, 44, 18990, 15, 19214, 17, 8388, 15, 47, 32, 104, 2965, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 share objects with other activities? === My program has a range of different class activities (basically different screens). In one activity I am creating multiple objects which I would then like to access in other activities. How do I go about making these objects accessible to other activities within my program, in other words how do I share objects with other activities? TIA Mark
0
[ 2, 184, 20, 1891, 3916, 29, 89, 1648, 60, 800, 3726, 3726, 51, 625, 63, 21, 978, 16, 421, 718, 1648, 13, 5, 6093, 8438, 421, 14236, 6, 9, 19, 53, 2358, 31, 589, 2936, 1886, 3916, 56, 31, 83, 94, 101, 20, 1381, 19, 89, 1648, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 UIControl have the "sendAction:to:forEvent:" method? === the event should be captured by os .then in NSRunLoop UIApplication pass event to UIButton, if not deal go along the responder chain . why UIButton have "sendAction:to:forEvent:" ? because the event come from UIApplication . hold a candle to the sun http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIControl_Class/Reference/Reference.html#//apple_ref/occ/cl/UIControl UIControl implements this method to forward an action message to the singleton UIApplication object
0
[ 2, 483, 13, 5661, 12898, 57, 14, 13, 7, 18, 2451, 8645, 45, 262, 45, 16558, 6645, 45, 7, 2109, 60, 800, 3726, 3726, 14, 807, 378, 44, 2411, 34, 13, 759, 13, 9, 2504, 19, 13, 2172, 3169, 18786, 13, 5661, 2552, 20669, 1477, 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...
JPQL SELECT Distinct Query with Lob Column works fine on MySQL, but SQLServer 2005 doesn't === I'm Using Hibernate 3.6.10 based JPA2.0 , I created two objects which are Many-to-Many relation. @Entity @Table(name="Project") public class Project implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; private String topic; @Lob @Basic(fetch=FetchType.LAZY) private String content; @ManyToMany(fetch=FetchType.EAGER) @JoinTable(name="TrProj_Area",joinColumns=@JoinColumn(name="TrProj_ID"), inverseJoinColumns=@JoinColumn(name="Area_ID")) private Set<Area> areas = new HashSet<Area>(); //getters and setters } @Entity @Table(name="Area") public class Area implements Serializable{ @Id @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; private String name; @ManyToMany(mappedBy="areas") private Set<Project> projects; //getters and setters } The **Project** entity has a **content** property,It is **Lob** When I created a Query like this: select distinct o from Project o join o.areas a where a.id in(?,?) **It works fine on MySQL 5.5,but SQLServer 2005 doesn't**.SQLServer error log is below: Error code 306, SQL state S0001: The text, ntext, and image data types cannot be compared or sorted, except when using IS NULL or LIKE operator I known this issue is caused by the **content** property , the text column can not include in the **select distinct** statement, but I can't remove it from my Entity, how can I solve this issue?
0
[ 2, 13, 12851, 22402, 5407, 4421, 25597, 29, 13, 10904, 4698, 693, 1123, 27, 51, 18, 22402, 15, 47, 4444, 255, 10321, 106, 812, 1437, 22, 38, 800, 3726, 3726, 31, 22, 79, 568, 4148, 2102, 8820, 203, 9, 379, 9, 1036, 432, 487, 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...
Route in rails with simple regex doesn't match === this is my first question on SO! I looked on the web for a while but I can't get this to work. Our application has to work with urls like ourapp.com/meandyou, where the common element is the "and" in the parameter. I saw that it's possible to constrain urls parameters using regex, so I added the rule to routes.rb, but without success. If I try to match the same expression using the terminal, it works. Here's the complete route file: Railroot::Application.routes.draw do resources :couples get "home/index" root :to => 'home#index' match ':url' => 'couples#show_url', :url => /and/ end I read that Rails nests the expression within a bigger one when matching the route, so maybe I'm doing something slightly wrong even for such a simple expression. I'm running on Ubuntu 10.04, Ruby 1.9.3, Rails 3.2.3, Passenger 3.0.13, Nginx 1.2.1. Thanks in advance for your help!
0
[ 2, 858, 19, 2240, 18, 29, 1935, 7953, 1706, 1437, 22, 38, 730, 800, 3726, 3726, 48, 25, 51, 64, 1301, 27, 86, 187, 31, 292, 27, 14, 2741, 26, 21, 133, 47, 31, 92, 22, 38, 164, 48, 20, 170, 9, 318, 3010, 63, 20, 170, 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...
Rewriting in .htaccess with forward slashes === here is what I need. I have the url pearlsquirrel.com/profilecomments.php?u=eggo. eggo being my username and the part of the dynamic url that changes. I would like to rewrite the url to say pearlsquirrel.com/eggo/comments, using .htaccess. Here is what I have so far: RewriteRule ^(.*)$ $1.php RewriteRule ^([a-zA-Z0-9_-]+)$ profilecomments.php?u=$1 RewriteRule ^([a-zA-Z0-9_-]+)/$ profilecomments.php?u=$1 RewriteCond %{HTTP_HOST} ^www\.pearlsquirrel\.com$ [NC] RewriteRule ^(.*)$ http://pearlsquirrel.com/$1/comments [L,R=301] but I just can not get it to work. Any help would be greatly appreciated. Thanks!
0
[ 2, 302, 12646, 19, 13, 9, 9020, 20604, 29, 917, 14098, 160, 800, 3726, 3726, 235, 25, 98, 31, 376, 9, 31, 57, 14, 287, 6362, 5445, 18, 3003, 139, 7256, 9, 960, 118, 14503, 960, 6601, 9, 26120, 60, 291, 3726, 20564, 111, 9, 638...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Developing iPad app for iPhone retina screen size(640x960) === I am developing one universal app(for both iPhone and ipad). But I am having images only for iPhone retina screen size(640 x 960). If I use those images in iPad(screen size having 768x1024), it will be scaled up. So I am thinking to render my app for 640x960 screen size on iPad in centre of the screeen. It will be equivalent to using iPhone build on iPad and using 2x. But images will not be scaled. Now my question is that will Apple approve this method? Did u see any other apps like this? Or is there any other solution for this problem? Help me pls. Thanks in advance.
0
[ 2, 3561, 31, 8240, 4865, 26, 21024, 24325, 2324, 1072, 5, 19780, 396, 24504, 6, 800, 3726, 3726, 31, 589, 3561, 53, 4172, 4865, 5, 1106, 156, 21024, 17, 31, 8240, 6, 9, 47, 31, 589, 452, 3502, 104, 26, 21024, 24325, 2324, 1072, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...