text
stringlengths
8
267k
meta
dict
Q: Converting 32 bit hexadecimals to decimal in java for an assignment I have to write a program that will take in an 8 character string(hexadecimal) and then convert it to base 10. I am not allowed to use any outside classes to do this. I'm pretty sure I have it working properly... for positive numbers only. My proble...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577519", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: how to use these sql scripts in oracle? I have a sql-script like: @tables\run.sql; @sequences\run.sql; @views\run.sql; @functions\run.sql; @procedures\run.sql; And I have two questions: * *Do I need to imply all the related script-files into the db? *I execute the SQL script above in the PL/SQL developer bu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577530", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Iphone, Obtaining a List of countries from MonoTouch Is it possible to replicate what the code in here does in MonoTouch? Here is what I've tried so far: foreach(string countryCode in NSLocale.ISOCountryCodes){ // How to convert this objective-c code to c#? // [[NSLocale currentLocale] displayNameForKey:NSLocaleCo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577535", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: old function don't work in php 5.35 function goto($herf) { echo ("<script>window.location.href='".$herf."'</script>"); } the above function work well before php 5.3.5, after i upgrade my php to 5.3.5, the following error displayed. Parse error: syntax error, unexpected T_GOTO, expecting T_STRING or '(' in C:\xa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577537", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: IE9 Double Form Submit Issue I am just wondering if anyone have some info or feedback about the situation I am in. Currently I am facing a "Double Form Submit" issue, where I click the "Submit" button once, and it submit the form twice. This only happens in IE9, but I have only tested against Safari, Chrome (Latest)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577542", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "14" }
Q: How to replace a word in a String? I'm using a String like: String message = "%%NAME is inviting you"; I am using message.replaceAll("%%NAME", me); where me is a String. This line of code is not working for me. I was wondering what I was doing wrong? A: I would suggest using the format method instead of replaceAll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577543", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Using pandas, how do I subsample a large DataFrame by group in an efficient manner? I am trying to subsample rows of a DataFrame according to a grouping. Here is an example. Say I define the following data: from pandas import * df = DataFrame({'group1' : ["a","b","a","a","b","c","c","c","c", ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577546", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: cache required serialized object I try to store (List-> with many pojo objects) into memcache. the requirement is the value(object) need to implements serializable. is there any technique to use memcache.put(value) , without required to implement serializable for (List-> with many pojo objects) ? will java outputL...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577548", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Tag friends in a Photo This is my code. It does not show any errors but only the first 2 friends are tagged! for ($i=0;$i<count($friendsID);$i++) { $post_url = "https://graph.facebook.com/".$upload_photo['id']."/tags/".$friendsID[$i]."?access_token=".$token."&x=80&y=".$y."&method=POST"; $response = file_get_conten...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577553", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Close Animation will not run In my iPhone app there is a window that appears over the main window. Here is the code for my close button; -(IBAction)cancel{ [UIView beginAnimations:@"Animation" context:nil]; [UIView setAnimationDuration:0.75]; [UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:se...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577558", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Get all zip code using google map api which are lies in between sourece and destination pa I have a requirement to implement google map direction.User will supply source and destination.Then the full path will be shown in google map.It also show all the zip code which are lies on this path. I dig around Google but c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577564", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: PowerPoint - How to attach a label to a line graphic When you add a polygon shape to PowerPoint, you can attach/embed a textbox inside it. When you move or rotate the polygon shape, the text adjusts with it. How can I do this with a line shape? In the example below, I rotated and moved both boxes, and the text and l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577565", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Bit wise operations in C I'm working on a C programming assignment, I need to simulate the operation of a 3 bit decoder. My compiler is complaining, this Wikipedia article gives a list of C operators, but my code still seems not to be working. Wikipedia: http://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B#Bitwi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577569", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Using htaccess Files for Pretty URLS - Opencart how to write htaccess if my opencart home page is http://www.stico.com.my/index.php?route=product/category&path=20_59 , i want url to be like this http://www.stico.com.my My client want page product category set as homepage. i hope someone can help me. A: Add this to ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577572", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Enforcing development cycle through Bugzilla I work on a project with a pretty formal development process: there's a list of required documents, from requirements to design to testing to user documentation. We're trying figure out how to make sure all feature development goes through all the stages. One idea is to u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577584", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Overriding method with generic return type in Java When using generics in the return type, I'm having trouble extending a parent class like following example. As you know, without generics, the following example will be compiled normally, but it won't be type safe because it's type should be Object. Is there any c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577587", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: AutoSuggest component in standard JSF 2.0 component set Is there a Google-like autosuggest input component in standard JSF 2.0 component set? A: The standard JSF <h:xxx> component set doesn't have such a component. All it offers are just basic HTML elements. An autosuggest field is basically a combination of an <in...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577590", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Google Maps markers with directions renderer So I want to plot a route using directions renderer and at the same time have Origin as an "A" marker, all the way through the destination as the final marker, with all waypoints also being marker. By default it looks like renderer only sets markers for origin and destina...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577591", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Additional bytes received by a DatagramPacket I have a problem that I see for the first time ever, I'm using java DatagramSocket (s) for sending and receiving data in my app. this is how I send the data: byte[] buffer = "my data".getBytes(); senderPacket = new DatagramPacket(buffer, 0, buffer.length, remoteAddress, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577592", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to change the brightness on iPhone (using private APIs) I want to make an app similar to SBSettings (a quick settings application on Cydia) because developers can't jailbreak their devices. Can someone tell me how to change the screen brightness? It doesnt need to be approved by Apple, so it can use private APIs...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577593", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Passing IndexPath between views I am trying to pass the indexpath of my subview over to my main view. I am doing this through delegates and protocols that I have alread set up, I have just slightly edited the method I call to accept the indexpath.. so everything seems to work correctly however when I do the NSLog fr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577594", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to get (-8)^0.333333 = -2 in MATLAB? Using MATLAB exponential function: (-8)^0.333333 ans = 1.0000 + 1.7320i How to get (-8)^0.333333 = -2 instead? x=-10:-1; x.^0.333333 How to get real value? How to redefine ^: x.^y to sign(x).*abs(x.^y)) A: There are 3 possible answers for the cube root of -8: -2, 1+/- s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577595", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to embed an executable program in another as if the iframe does in HTML I have an existing GUI program named A. How can I write another program in Visual C++ which hosts A as a CView or something similar. Just like a html inside another html using iframe. Thank you. A: Yes it is possible to do that, However you...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577596", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Display sidebar on main page only be default, other places can optionally override I want my main page to display a side bar, and then for all other pages it should not display anything unless I explicitly want to. How can I do this? A: If you have in your _Layout.cshtml @RenderSection("sidebar", required: false); ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577606", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Emacs truncate lines in all buffers What can I put in my .emacs file so that all lines an any kind of buffer always truncate if too long. I do this mostly because I tend to open many frames and it gets hard to read on a small screen if my 80 char lines get wrapped 2 or 3 times over. A: Try M-x toggle-truncate-lines...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577614", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Parallel wget in Bash I am getting a bunch of relatively small pages from a website and was wondering if I could somehow do it in parallel in Bash. Currently my code looks like this, but it takes a while to execute (I think what is slowing me down is the latency in the connection). for i in {1..42} do wget "http...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577615", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "82" }
Q: after fork/execvp control does not return to parent when i run my code below and type in "ls" at the prompt it runs ls in the terminal but then just sits there and doesnt print my prompt again. How do I get control to go back to the parent process? Thanks #include <stdio.h> #include <string.h> #include <unistd.h> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577619", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Linux start-up script for java application I have Jar file to run in Linux using this command: java -jar SyslogAgent_01.jar 192.168.2.154 1998 D:/apachelog.log ApacheLog 13 Can anyone let me know how to create script and implement this process automatically while we restart our computer? In windows we use services ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577620", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Setting up Sinatra to run in a subdirectory Now I am pretty new to Sinatra/Ruby/Apache but have inherited a Sinatra application to deploy. Currently Apache is set up to run from a document root (httpdocs) and I need to run a ruby application underneath a folder subdirectory such as: /httpdocs/webapp What do I need t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577622", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Service with AsyncTask I have heard that it isnt good to have an async task in a service. Is it really necessary for an AsyncTask or just onStartCommand()? I am wondering because I have a Service with an AsyncTask that is launched by an alarm. And it launches the Service more than once; it's only supposed to launch ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577624", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Purpose of Constructor chaining? After reading this Constructor chaining question I am just curious to know why would any one do constructor chaining? Could some one please shed some light on type of scenarios where this might be useful. Is this a good programming practice? A: It's absolutely a good practice for tw...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577627", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "6" }
Q: Why isn't AJAX working in IE? Anything I'm missing with the code below? I'm a bit overwhelmed. $("a[id^='submitspam']").click(function () { var thisForm = $(this).attr('id'); var com_id = $(this).attr('id').substring(11); var thisFormFull = '#' + thisForm; $.ajax({ type: "POST", u...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577632", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-5" }
Q: Taking input for fstream::seekp and fstream::put How would I go about taking input for seekp and put for use with hex? Something like this? Cin>>hex>>mychar; How about printing the correct value in hex? Say at 0x16 the byte is FF or 255 unsigned 8bit(decimal?) when I do this fstream mystream; mystream.seekp(0x16...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577635", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: asp.net wizard control I have a Wizard control with 5steps. After the user selects his values from the Drop Downlist, TextBoxes, I have a submit_click event to insert all the selected values in the DB. Here's what I have in the Submit_Click try { int result = new objBLL.PostPro...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577640", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-2" }
Q: How to create an Jsoup Selector with an AND operation? I want to find the following tag in a html. <a href="http://www.google.com/AAA" class="link">AAA</a> I know I can use a selector like a[href^=http://www.google.com/] or a[class=link]. But how can I combine this two conditions? Or is there a better way to do thi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577642", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: What is the effect of calling sleep(0) on a UNIX system? I see people doing this in some parts of heavily multi-threaded, multi-process application systems I work with. It seems to be done around debug lines: std::cerr << "DEBUG: Reaching: " << __FUNCTION__ << " @ " << __LINE__ << std::endl; sleep(0); If I macro o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577643", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: Critique my Python Package Structure I'm in the process of finishing up a Python package I've been writing. However, before I release it I'd like to get some feedback on the overall structure of the package as well as the __init__.py file. This should give an idea of what my __init__.py file looks like. ''' A docst...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577651", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is there any good choice of Wifi-Transfer(OTA) kit for iOS?(Like cocoawebresource) I have tried cocoawebresource(which is based on cocoahttpserver). It's quite functional , but I wonder is there any other better choice?
{ "language": "en", "url": "https://stackoverflow.com/questions/7577652", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: C# google login I'm maintaining some code that I want to add a chat feature to. I already have a client/server/database setup, but what I would like to do is use Google accounts for logins, instead of people having to create new accounts and such. Could anyone point me in the right direction? I've already download...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577654", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Delphi XE2 dbExpress MySQL connection No matter what I've tried, I couldn't make XE2 to connect to a MySQL with dbExpress. The problem has actually many faces. First, target MySQL is either 32- or 64-bits, which affects the libmysql.dll that comes with the MySQL installation, which seems to be misleading because XE2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577658", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Radial gradient mixin in LESS isn't working? If you are familiar with less, could you help me with this problem? I am creating a radial gradient mixin for just a quick test case. However both are not working? .radialGradient(@posX:center @posY:center, @shape:circle @size:closest-side, @from:white, @to:black){ ba...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577665", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: I am having a problem i to connect different users when user logs in string connectionString = "provider=Microsoft.Jet.OLEDB.4.0;" + "data source=" + Page.Server.MapPath("MyConnectionString"); System.Data.OleDb.OleDbConnection conn = new System.Data.OleDb.OleDbConnection(connectionString);...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577668", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: RQRcode error for Ruby on Rails I'm getting the following error from Ruby on Rails in my EquipmentController#show uninitialized constant EquipmentController::RQRCode controller def show @equipment = Equipment.find(params[:id]) @equipment_statuses = EquipmentStatus.all @equipment_bookings = E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577669", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# synchronous TCP client socket unexplained missing data I'm using TCP over an unreliable mobile data connection, which may drop packets due to interference or whatever may be going wrong with the signal strength. What complicates matters is that I'm using Modbus TCP and the mobile router on the other end converts...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577673", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Trouble Deserializing JSON into Object Stack Overflow: I am using JSON.NET and have done so successfully before, however I am now running into a nasty bit of JSON that I cannot seem to deserialize. Clearly the problem lays in how the class is constructed, and so I kindly ask for someone to help me plan a class that ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577675", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: ASP.Net - Handling session data in a load balanced environment? How does ASP.Net deal with session data in a load balanced environment? Let's say a user makes multiple requests while navigating through a couple of pages? Do all requests go to the same server in the load balancer? What can I do if they don't all poin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577677", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: Python3 print statement doesn't work as expected I am using Python 3.2.2 >>> s = 'hhh' >>> print s SyntaxError: invalid syntax >>> print(s) hhh >>> print 2*2 SyntaxError: invalid syntax >>> print(2*2) 4 Why do I have to use print("...") to print something? If I dno't it complains with 'SyntaxError'. A: As of pyth...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577678", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Ruby on Rails: How do detect if access by JSON? I got a GET URL that calls a controller method getInfo. It can be called by mydomain.com/getInfo.json?params=BLAHBLAH or mydomain.com/getInfo?params=BLAHBLAH In the controller, is there a way to detect how the user called it? A: As easy as do: request.path_parameters[...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577682", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "27" }
Q: c# update current time,days,date protected void Page_Load(object sender, EventArgs e) { todayDate.Text=DateTime.Now.toString(); } Output 10:28AM 9/28/2011 the current time is never update, the result is static, how do i set a interval in c# in order to update current time? updated information this is my ajax ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577691", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C#: Globally alias a generic class name? in some project we are using Generics, and we get a lot of lines like this: Line<SomeTClass,SomeCClass> myLine = (Line<SomeTClass,SomeCClass>)LineFactory.CreateLine(...) We can declare local alias, with using X = Line<SomeTClass,SomeCClass>. Then we can write, X m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577692", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to get the average of the last X values? If I have a table with two columns - value and time_stamp - how can I use SQL to get the average of the last X values? One statement or several, it doesn't matter. Maybe something like SELECT value FROM table ORDER BY time_stamp DESC LIMIT x ? Then in my program, I could ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577695", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: org.xml.sax.SAXException: Parser configuration problem: I am stuck with this error org.xml.sax.SAXException: Parser configuration problem: namespace reporting is not enabled at net.sf.saxon.event.ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:383) at net.sf.saxon.event.ReceivingContentHand...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577699", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: delete a row in android sqlite table i want to delete a row in the database table i using a listview and after longclick the listitem you will get alert dialog to show edit and delete method when i click the edit method the emulator goes fine, but when i click the delete method, there comes the force close notificat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577700", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Hibernate Mapping same Column twice How can fix this thing Repeated column in mapping for entity: com.abc.domain.PersonConnect column: PERSON_ID (should be mapped with insert="false" update="false") this is snippet from my hbm file <class name="com.abc.domain.PersonConnect" table="PERSON_CONNECT"> <com...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577701", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Hadoop MAC OS installation woes So I'm trying to install hadoop on MAC OS X Leopard following the steps in this note: Running Hadoop on a OS X Single Node Cluster. I reached Step 4: Formatting and running Hadoop, where I entered the following: hadoop-*/bin/hadoop namenode -format This produced the following unpleas...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577702", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Problems aligning ImageButton within LinearLayout? This is my code: <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" android:background="@drawable/game_background" android:weightSum="100" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:an...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577703", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SSRS Report Parameters that are not in select I created a SSRS report and I wanted to pass date (begin date and end date). I am not populating the field on the report (i.e its not in select statement). In this case how to assign report parameters to query in the 'Report Parameter Properties' window. SELECT * FROM E...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577705", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: INPUT type=image, how to get coordinate value? An <input> with type="image" and name="something" will send the variables something_x and something_y to the server, along with the coordinates where the image was clicked. If the form is being handled by JavaScript, for instance in an AJAX setup, how do I go about gett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577706", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Need help forming JQuery to clone element and insert within parent div There are multiple identical div#DropDown as in the below html with same id: <div class="DropDown"> <div class ="ListAndLink"> <select id="mydropdown" name="mydropdown"> <option selected="selected" value="18">Blah</option> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577709", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android Secure HTTP communication I'm really new to Android programming, so this may seem silly to do this...but I want to communicate to a PHP server (I assume using JSON is best). So...would I use a HTTP connection or what? IS there anyway to make this 'secure', like if I was sending site user credentials over t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577712", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Public\Shared assembly without GAC I have two assemblies and this assembly was used by many applications. I dont have to have this in GAC. Is there a way to share the assembly publicly accessible by many applications without the use of GAC My customer dont want to dump these dlls in GAC since these assemblies used b...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577713", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I use SQL Server Profiler to view the TSQL ran in a CLR trigger? How can I user SQL Server Profiler to view the TSQL ran in a CLR trigger? I have a CLR trigger in the a MS SQL Server DB, that checks the Inserts, Updates, Deletes on a table and then conditionally does inserts to another table. Is there a sett...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577714", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Difference between prop in obj and obj.hasOwnProperty(prop) and obj[prop]? Should I use one over the other? Is using them all together better? Thanks. A: * *prop in obj checks whether obj has a property named prop at all, even if it's just inherited from a prototype. *obj.hasOwnProperty(prop) checks whether obj i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577715", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "9" }
Q: How to test a scenario that requires javascript to complete? A project I'm working on fetches data from a 3rd party service and caches it locally along with specific info for my app. My environment: * *I provide a search mechanism against the service's search API. *When a user browses to the item page for the f...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577716", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to login a website using python module "mechanize" with a cookies.txt exported by the chrome extension "cookies.txt export"? I have looked through similar questions in stackoverflow yet seemingly no answers measures up. Now I have a cookies.txt in hands which is exported by a chrome extension named "cookies.txt"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577724", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Animate (slide in) new panel to replace current panel's contents? I'm trying to change the contents of an Ext.List. I'm trying to change the content to a new panel, although I don't need more list elements. This seems to replace the contents, but how do I animate the change? onItemDisclosure: function(record, btn, i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577729", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Capistrano deploy/assets on Rails 3.1 fails I added the this line load 'deploy/assets' to my Capfile to deploy assets with Rails 3.1. Capistrano gets to this line * executing "cd /home/deploy/armonia/stage/releases/20110928021521 && bundle exec rake RAILS_ENV=stage RAILS_GROUPS=assets assets:precompile" then fails ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577731", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Dictionary Iteration Python I am newbie in Python. Dictionary has multiple values. dc = {1:['2', '3'], 2:['3'], 3:['3', '4']} If you iterate over 'dc' you find there are three occurrences of '3'. First occurrence is in 1:['2','3']. I would like to iterate over dict so that if first occurrence of '3' occurs: dos...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577732", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: How can I make the Eclipse content assist case-sensitive? Does anyone know of an easy way to configure the Eclipse content assist to respond to the case of the first letter in a fragment? When I start a token with a lowercase letter, I'd prefer not to have suggestions for classes, since I am always referring to a me...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577737", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: XML declaration not playing nice with PHP I'm using PHP to output custom XML based upon values stored in a MySQL database. I have the following at the start of the condition: echo '<?xml version="1.0" encoding="UTF-8"?>'; (I've also tried this variation: echo "<?xml version='1.0' encoding='UTF-8'?>"; to no avail.)...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577743", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: Add a dynamic supervisor to ejabberd Is it possible to start a supervisor module in ejabberd which I can add a gen_fsm module to, per connection? Specifically, I want to create a supervisor which I start when the server starts (or when connections come in). And I have a couple of gen_servers which I want to start, ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577745", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: grails on ec2 - bitnami tomcat 7 stack vs 'vanilla' Ubuntu instance Just started prepping AWS ec2 account for small grails app deploy and would like to know your thoughts on deploying to bitnami instance with tomcat7 vs going through the process of installing java, tomcat and doing configuration by hand. Any pros a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577751", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Drag and Drop to folder behavior I have been searching around and learning about android widget programming. I am wondering about interaction in android widget. Is it possible for me to create a home screen widget that allow users to drag and drop other application icons to my widget? (behave like folder) If so, cou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577764", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Why can't I "git clone" from my server with a key that works from my local machine? This is the content of /home/ubuntu/.ssh drwx------ 2 ubuntu ubuntu 4096 2011-09-28 02:32 . drwxr-xr-x 5 ubuntu ubuntu 4096 2011-09-28 02:08 .. -rw------- 1 ubuntu ubuntu 396 2011-09-27 20:53 authorized_keys -rw------- 1 ubuntu ubun...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577766", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: iOS - heightForRowAtIndexPath does not fire during scrolling I am writing a simple iOS app using Xcode4, which uses a table view to display a list of stories (fetched from a URL). I'm displaying the story titles as UILabels, and as a subview of the table cell. I am over-riding heightForRowAtIndexPath to calculate th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577770", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: MySQL + PHP: select multiple rows on a join, then update those rows/insert new ones I want to do the following: * *Select multiple rows on an INNER JOIN between two tables. *Using the primary keys of the returned rows, either: * *Update those rows, or *Insert rows into a different table with the returned prim...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577772", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: PayPal complete date format PayPal send back the payment_date field in the following format 19:19:09 Sep 27, 2011 I am using php to calculate days remaining from payment_date, but my code is based on getting the format in 2011-09-27 12:19:00. How do I change? This is my code (which works perfectly if date in my cor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577779", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: The page loading animation for hiding whole page load process ends long before It must fade out Possible Duplicate: Hiding page loading I'm using loading animation for hiding whole page load process. but it ends long before It must fade out. it ends while loading but must fade out after full page load Here is th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577780", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Syntax error while running tests from terminal I have a rails application on RubyMine. While running tests on terminal(Mac OS X 10.7), I am getting the following error: Ruby -Itest test/unit/user_test.rb Creating sqlite :memory: database -- create_table("logins", {:force=>true}) -> 0.0014s -- create_table("posts"...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577782", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: iPhone disabling caching for stringWithContentsOfURL I have an iPhone app which needs to load some data from a URL. I have the following line of code: NSString *versionControlContents = [NSString stringWithContentsOfURL:[NSURL URLWithString:versionControlURL] encoding:encoding error:NULL]; The issue that I'm havin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577787", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: .NET Regex Equivalent of Python Regex's (?P=previousmatchname) In Python's implementation of regular expressions you can do the following: <(?P<foo>.*)>(.*)</(?P=foo)> and basically it will look for <this>right here</this> but not <this>right </here>. Basically it allows you to use the previously captured named m...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577788", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Can I disable selection in specific UIPickerView item? I can find a post that teach to use delegate method to check if the row valid and then scroll to the right one if not. But that's not I want. Can I disable the specific row after the pickerView initialized? Like "Gray-out" the row and can't stop indicator on it....
{ "language": "en", "url": "https://stackoverflow.com/questions/7577789", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Adding active class to wordpress 3+ menu I'm having problems with adding active class to wordpress menu. (If is home highlight home, if blog highlight blog and so on... ) I'm using superfish menu. I have this in my functions.php function me_register_menu() { register_nav_menu('main-menu', __('Main Menu')); } ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577793", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to redefine the .^ operator in MATLAB? How can I redefine the exponential function .^ in MATLAB? From: x.^y to: sign(x).*abs(x.^y)) A: Don't. It won't be correct. (-1).^(1/2) should always give you the imaginary unit (i). The expression you have would give you (-1).^(1/2) -> -1. Even worse, consider (-1)^...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577802", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Rails submit button not working in Internet Explorer Bizzarre issue I've been working that is beyond frustrating. The submit button on one of my edit views is not working in Internet Explorer. It is a pretty standard layout using input type = submit (not a customized button_to or something). * *The button works ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577811", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Existing movable type plugin that does URL shortening and redirection? We send out a newsletter that has URLs in it. Rather than having foreign URLs directly, they all come to our website and then redirect to the outside world. Right now the redirects are all done with HTML files. My goal is to have them all done w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577813", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Use Rails path helpers from inside an plain old ruby class? (Resque job) I need to make some API calls from inside a Resque job (which is just a plain old Ruby class) and those API calls need to include URLs to resources on my site. Is it "correct" to just add this to my class definition? include Rails.application.r...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577814", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: AutoSuggest running problem This XML file does not appear to have any style information associated with it. The document tree is shown below. <html xmlns="http://www.w3c.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.prime.com.tr/ui"> <h:head> <link type="text/css" rel="styleshee...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577816", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Understanding merge sort optimization: avoiding copies I have below merge sort program in algorithms book, it is mentioned that The main problem is that merging two sorted lists requires linear extra memory, and the additional work spent copying to the temporary array and back, throughout the algorithm, has the effe...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577825", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: querying arcgis and getting results sorted by distance from some point Using the REST or javascript api, does anyone know how to get results back sorted by distance from a point? I'm doing someething like this: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm and i need the results sorted...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577826", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: C Memory Management in Embedded Systems I have to use c/asm to create a memory management system since malloc/free don't yet exist. I need to have malloc/free! I was thinking of using the memory stack as the space for the memory, but this would fail because when the stack pointer shrinks, ugly things happen with the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577828", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to receive AJAX data in CherryPy Beginning to climb the ajax learning curve, I'm trying to make a simple ajax call back to my CherryPy application and echo the data sent back to the browser. My ajax call is working and I can return, for instance, the request method back to the browser. I cannot, however, find th...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577831", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Does having more buckets in amazon s3 matter? My website currently has 3 sections in which i want store files, lets call it A, B, and C. Whats the difference of making my file structure like this: bucket -> A, B, C or making the structure like this: bucket ->A bucket->B bucket->C *consider the A, B, and C as folder...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577832", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Write consistency with nested subquery in Oracle I've read many of the gory details of write consistency and I understand how it works in the simple cases. What I'm not clear on is what this means for nested sub-queries. Here's a concrete example: A table with PK id, and other columns state, temp and date. UPDATE t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577836", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: $.ajax & passing data to .asmx webservice I'm quite confused as to why this is happening. I can't seem to pass data successfully via $.ajax, the URL gets all mangled up instead of the data being passed in a query string. I've cleaned up the code for brevity, see below. Webservice (using GET) [WebMethod] [ScriptMetho...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577840", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Can I simulate multiple clients this way? I wrote a small server program. I wanted to see how it is handling multiple requests. So I wrote the following program to simulate multiple clients. Pseudo Code: main() { //set up all necessary data structures to connect to the server fork(); fork(); fork...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577844", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to select display:none labels from the div i want to select all labels inside a div that are only apply style display:none labels like below <label for="txtAmount_146" generated="true" class="errortd" style="display: none; ">This field is required.</label> i tried if($('.errortd', this).not(':hidden')){ ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577846", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: jQuery tooltip with link inside I have a grid of large images for products. I'm looking to have a tooltip appear when you rollover the image. Though the tooltip will need to stay visible because there will be content and links inside of it. The tooltip will be positioned partly on top of its respective large prod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577847", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Android OnItemClickListener not working I'm using android 2.3.3. I set up a layout like, <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577848", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "15" }
Q: Index out of bounds array exception +Streamreader I have encountered an array index out of bounds exception based on the following codes: I understand that readtoend method may disrupt the pointer for the streamreader, hence i implement the discardbuffereddata and seekorigin 0. However, im still getting an index out...
{ "language": "en", "url": "https://stackoverflow.com/questions/7577849", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-4" }