text
stringlengths
8
267k
meta
dict
Q: Get the correct url format to Facebook Sharer I need to format a url passed to Facebook Sharer via AS3 using navigateToURL(new URLRequest(request), "_blank");. The url that is passed has a lot of strange characters. What is the best way to get the correct output? This works: http://www.facebook.com/sharer.php?u=www....
{ "language": "en", "url": "https://stackoverflow.com/questions/7633104", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: recursive function and a breakpoint using F# Consider the following code: [<EntryPoint>] let main (args: string []) = let rec main time = let newTime = time + 2 // place a breakpoint at this line main newTime main 0 I am not able to place a breakpoint at the marked line. I meet such problems quite of...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633105", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Which normal form does this table violate? Consider this table: +-------+-------+-------+-------+ | name |hobby1 |hobby2 |hobby3 | +-------+-------+-------+-------+ | kris | ball | swim | dance | | james | eat | sing | sleep | | amy | swim | eat | watch | +-------+------...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633108", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Logical error in ternary operator Can somebody explain me why that ternary operetor return the second option instead of the first ? This is the code : $token_sid = ($user->data['user_id'] == ANONYMOUS && !empty($config['form_token_sid_guests'])) ? $user->session_id : ''; And here are the values for my actu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633111", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "-1" }
Q: Graphical front-end for references in Eclipse is there any graphical plugin/front-end for eclipse to handle/search for references like in Mendeley or Endnote. I know that the texClipse plugin comes with a bibtex editor but it takes quite a while to put all references together by hand. Regards, syrvn A: Sadly, I don...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633115", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How can I concatenate array elements into a string? I have string whose value are like FirstName;LastName;Phone e.g. Tom;Hanks;12346789 I am populating a UIVewTable Label text is suposed to be FirstName,LastName e.g. Tom,Hanks Then I put the phone in details bit. I am splitting the String based on semiColumn ; the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633124", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: In IE 8/9 - cant click image, inside anchor that is wrapped with span using display:block I've got a bit of a problem creating a navigation element - its working fine in firefox, but seems to be causing me a headache in IE8/IE9. The other odd thing is that it works fine in IE on when running under localhost, but not...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633127", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How do I get all values in a JIRA multi-checkbox customfield with SOAP? I'm developing a web application that uses SOAP to communicate with JIRA. I have a custom field that contains several checkboxes, and I can get this field through SOAP, but I can't get to the actual checkboxes it contains. Is there a way to do t...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633130", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to delete a selected item from the listview? SORRY FOR THIS CONFUSION: UPDATED QUESTION: I'm trying to remove a list item from the listview. when the item is clicked, the alertdialog is shown. If i click OK, then the selected item must be removed from the listview. My Code goes below: case R.id.lvinc: Al...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633135", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to remote exception through .NET Remoting? Possible Duplicate: .NET Remoting Exception not handled Client-Side I have a client-server applicaytion working with .NET Remoting. Server contains a class (RemoteClass) which contains a method throwing exception. But this exception crushes server instead of being ha...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633136", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Installing Perl/Tk on fedora I am having trouble trying to install perl Tk on my system(fedora,perl v5.8.8).I downloaded the tarred module from http://search.cpan.org/~srezic/Tk-804.029/pod/gencmd, untarred it.In the terminal,I gave "perl Makefile.PL" which worked fine and then "make" which could not complete.Here i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633143", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Please return to the payment page and correct the address i have an problem with integration of paypal sandbox for Australia. in back end i enabled all tab except billing_phone number. when i click pay now i get following error Please return to the payment page and correct the address. here i am attaching my code. ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633148", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: C# arraylist user input I have a problem with ArrayList in C#, I know how can I add my own input and run the program so the Array is filled with information. But I would like to fill an ArrayList based on user input. This is what I need: the user could enter his/hers name, birthdate and age. And all these theree inf...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633152", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Solr thinks a string field is a multivalued. Why? i'm trying to index a field in solr which is a string which may contain commas. Solr doesn't care about the type string, and gives me this exception http://pastie.org/2631085 (i'm running a custom plugin, that's why the unconventional error) As you can see, "Charlott...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633153", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Coloring code disappeared Today I opened Eclipse Helios, and wanted to do some job. But when it opened I saw that there is no highlighted code, just class field are blue. I don't remember that I was changing configuration. How to set this to default? Here is screenshot: Now keywords like public, void, throws are ju...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633156", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: jquery doesn't remove div always on mouseleave This is very annoying. After you rollover on image, if you rollout from left, top or right edges red box disappears. But if you rollout from bottom edge red box sometimes disappears sometimes not. Why is that? http://jsfiddle.net/f98r3/2/ Edit: Another weird thing is, w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633158", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to set only the preferred width of Panel with flow layout? I have a panel with flow layout, and it can contain a variable number of items - from 1 to 2000. I want to put it inside a scroll pane, scrollable in vertical direction, and with fixed width. The problem is, when I set preferred size of panel to somethin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633161", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "10" }
Q: adding functions to injected elements Okay how can i add function to injected elements(which that element dosent exist on first browser load). Please read through my example carefully , i hope you can understand. For example: i go to www.website.com , when it loads it loads up "functions.js" and "other.js" , inside ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633164", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: highlight a text in textview How can we highlight a text in textview like the imgage shown below,the user tap the select verse it hilight the verse in yellow color and a popup window apper for that verse for doing action.How to do this? Thanks in advance. A: It is only doable using CoreText, because it needs format...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633167", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deleting from SQLite Hy! I always get e sql error. I log the id of the choosen item and then i want to remove it from the ListView and from the db My code: public boolean onItemLongClick(final AdapterView<?> arg0, final View arg1, final int arg2, long arg3) { final Pizza pizza = (Pizza)arg0.getItemAtPosi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633168", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Suggestion for using php array? Let say i have 100k records in table, after fetching that records from table i am pushing it to an array with some calculations, and then send them to server for further processing. I have test the scenario with(1k) records, its working perfectly, but worrying about if there is perfor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633172", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Android listview adapter show text from sqlite I need a little help with my custom list view adapter. I'm using the adapter example from vogella.de, but I need to find a way how to set text and image from sqlite database. Here is the adapter code which I am using : import android.app.Activity; import android.databa...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633175", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Jersey: how to use InjectableProvider with @Context annotation? I followed this post and created by first custom injectable provider, a LocaleProvider that scans the HTTP Request for the Accept-Language header. It works fine if I use it within a Jersey resource: @Path("test") @GET public Response getStatus(@Context ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633177", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: link external stylesheet conflicting with script src loading jquery? Hi I was doing a simple expanding slider with jquery and somehow the slider would expand to the full-width of the window, then shrink to the desired width I assigned it to do .. (if you reload the page a few times, it comes up sometimes) the probl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633182", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Javascript Canvas Lat Lng Plotting I want to create a data visualization similar to this: ...but for the entire globe. The canvas size will be arbitrary but won't need to resize with the browser (I will set the width and height before I start plotting points). I need to figure out a way of converting latitude and l...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633183", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: How to remove spaces from pagination on CodeIgniter? I use the pagination helper from CodeIgniter and it works. But when I see the result in my browser, I can observ unwanted spaces. CodeIgniter seems to insert them in an automatic way. In my view: <div><?php echo $this->pagination->create_links(); ?></div> The cod...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633190", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Firebird - update row's value in table basing on some condition As far as I remember I could do such update in MS SQL Server: UPDATE MyTable SET MyValue = (IF SomeCondition THEN 1 ELSE 0 END) or different way for update by using CASE: UPDATE MyTable SET MyValue = (CASE WHEN SomeCondition1 THEN 1 ELSE 0 END) Is a...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633195", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Stripping characters from a Python string I have a string: v = "1 - 5 of 5" I would like only the part after 'of' (5 in the above) and strip everything before 'of', including 'of'? The problem is that the string is not fixed as in it could be '1-100 of 100', so I can't specify to strip everything off after the 10 o...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633197", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to cast void * to float (*)[3] in c++? This is the code snippet. typedef struct Lib3dsMesh { //.. float (*vertices)[3]; //.. } void* lib3ds_util_realloc_array(void *ptr, int old_size, int new_size, int element_size) { // Do something here. return ptr; } mesh->vertices = lib3ds_util_realloc_array...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633201", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: UIImageView positioning problems? i wrote the following code: -(void)viewDidLoad{ JumpVelocity = 10; aStandRightArray = [[NSArray alloc] initWithObjects:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"aStandR1" ofType:@"png"]], [UIImage ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633204", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Catching Flash URLLoader errors I'm trying to bullet proof a URLLoader and wondering where I need to capture things like 404s and more importantly, mid-session timeouts and connectivity failures. The app will be run in places where the connectivity is spotty and it is very possible that a connection will initiate c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633206", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Remove page from Google Listings using robots.txt file Is this the correct way to do this - below is my txt file, would this prevent Google from indexing my admin directory as well as oldpage.php? User-agent: * Allow: / Disallow: /admin/ Disallow: http://www.mysite.com/oldpage.php A: Yes you are absolutely correct...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633207", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Logoff after logonuser on C# I use advapi32.dll's logonuser method to access data over our network. I know it change the thread's user to the information i give it, but i was wondering if there's a way to reverse it. I want to access the data and then return to the local user credentials. A: Some time ago I creat...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633208", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "5" }
Q: shutdownReason : ConfigurationChange, but only static files changed? I'm on IIS 7.5 and ASP.NET 4 with latest official updates. I'm logging all application shutdown reasons. All is working ok, but since a week strange shutdown reasons are logged. This now happens when static files are updated on the server. Example ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633219", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Fluent NHibernate - Query over a derived class Lets say I have two classes: public class A { public virtual int Id { get; set; } public virtual Object1 Obj { get; set; } } public class B : A { public new virtual Object2 Obj { get; set; } } I use Fluent NHibernate and I have created two different mappings for...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633225", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get public page statuses using Facebook Graph API without Access Token I'm trying to use the Facebook Graph API to get the latest status from a public page, let's say http://www.facebook.com/microsoft According to http://developers.facebook.com/tools/explorer/?method=GET&path=microsoft%2Fstatuses - I need an access ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633234", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "65" }
Q: What's the name of this methodology? Complete specification: I want to to this, this, and this Infinite iterations: 1. Design a task, module or little piece of software. 2. Implement. 3. Test. The design and implementation stages occurs practically at the same time. Does this methodology exist? A: I think we'd call...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633236", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to make url address like I want? I can't find information how to make url address like www.example.com/categories/id-category_name Could you give me example? Thank you A: This should be helpful. http://en.wikipedia.org/wiki/Rewrite_engine
{ "language": "en", "url": "https://stackoverflow.com/questions/7633238", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Assigning a directory thumbnail image for an MP4 in Android? I'm trying to assign a specific thumbnail image to represent the media file (mp4) within the android directory. By default, I believe android will use the first frame. I've tried metadata/tags to no avail. Please let me know if you have a solution, and I ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633240", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Compress audio and video with VP8 and vorbis ogg into avi container I am developing a program to record movies. I grab video from the webcam and audio from the microphone. I want to use Webm VP8 DirectShow filter for video and Xiph Vorbis Ogg filter for audio recording. As far as I understood - the only way to mux ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633247", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Present or dismiss modal view controller in landscape orientation I have an iPad app with a view of a UIViewController with 3 subview (3 UIViewController). If i present or dismiss a modal view controller in portait orientation I get the view controller with the right frame. If I present or dismiss the modal view con...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633252", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ERROR: array value must start with "{" or dimension information This is my function: DECLARE f_ids integer[] := '{}'; BEGIN SELECT INTO f_ids "fileId" FROM "tbFiles" WHERE "size" <= $2 AND "size" >=$1 ; RETURN f_ids; END; This function should return bigint[], but when I try to run it I get this error: SELECT "Get...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633254", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: correlation computation with threshold in R I would like to compute correlations in R. However I have a lot of missing values. So, I would like to admit in the correlations matrix only correlations that were calculated from at least 10 pairs of values. How to proceed? Edit: please note that correlation matrix is gen...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633256", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: TypeDelegator equality inconsistency? Consider the following code: class MyType : TypeDelegator { public MyType(Type parent) : base(parent) { } } class Program { static void Main(string[] args) { Type t1 = typeof(string); Type t2 =...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633260", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "22" }
Q: matching urls with query string I need a piece of code that basically does task of matching URL. I have listed 2 scenarios below to clear how I need the things. Match URL may/may not contain sub-directory, so there are 2 scenarios. http://example.com/?pgid=1 http://example.com/?pgid=1&opt2=2 http://example.com/?opt2...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633262", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Causing VS2010 debugger to break when Debug.Assert fails Is there any way to cause Visual Studio 2010 to break while debugging when the argument of Debug.Assert evaluates to false? Example: in my code I have lines like this: Debug.Assert(!double.IsInfinity(x)); If I am not debugging, a window pops up when the asser...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633265", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: when i use bundle , Could not reach rubygems repository http://rubygems.org/ aoople@aoople:~/projects/jobs$ bundle Fetching source index for http://rubygems.org/ Could not reach rubygems repository http://rubygems.org/ Could not find hoptoad_notifier-2.4.11 in any of the sources somebody help me !
{ "language": "en", "url": "https://stackoverflow.com/questions/7633268", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: java error stackoverflow I want to generate random numbers within a range and the generated numbers should not collide within some range. i used following code but im getting Stackoverflow error.. Any better solution? static int [] xPositions=new int[10]; int WIDTH=700 public static void main(String args[])throws I...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633271", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Trouble with WCF configuration in asp .net I have a 5 layer application (Entity, Data Access, Business, UI and Exception) in my Visual Web developer express 2010. My Data Access Layer being a WCF Service and UI being asp .net web application. I added service reference to the Business Layer and dragged the app config...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633272", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Extracting words from a string, removing punctuation and returning a list with separated words I was wondering how to implement a function get_words() that returns the words in a string in a list, stripping away the punctuation. How I would like to have it implemented is replace non string.ascii_letters with '' and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633274", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "19" }
Q: JSF 2 : Why my first bean is called during an ajax action to a second bean? I have two backbeans, one to retrieve datas in a ui:repeat and one to perform an action. When my page is rendered, if I perform an action with the second backbean, the first is called (initialized) even if I use an ajax action with Richfaces...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633277", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Android add undo feature to finger paint example in api demo hi i am trying to add undo feature to finger paint example given in API demo. but i am not able to achieve it. So far i have added all the path that are drawn in a list and redrawing it to the canvas except the last path. But it is not working. Any clue wh...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633282", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: How to create play heroku procfile? I am following the directions here http://blog.heroku.com/archives/2011/8/29/play/ but I do play run and then git push heroku master but a procfile is not found. -----> No Procfile found. Will use process: play run --http.port=$PORT $PLAY_OPTS * *How do I explicitly c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633283", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "12" }
Q: Plotting surfaces with contour map in 3D over triangles The example code here for rgl does almost what I want. However my (x,y) are not in a rectangle but in a triangle that is half of the rectangle (x=0..1, y=0..1 and z is missing if x+y>1). My input dataset is in the following format: x1 x2 x3 x4 x5 x6 z and I wou...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633288", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Deploying App in iOS device - .sql file is zero bytes I am attempting to test my app on an iPad and iPhone. The app includes a small SQLite database file, which locally on my Mac is 8 bytes, but when I deploy and run the app on my iOS device, the .sql file is zero bytes. I initially read the SQL file (database) and ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633289", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I change never notify in 'user account control settings'? Possible Duplicate: Disabling UAC programmatically How can I change never notify in 'user account control settings' by c#? by manual : User Accounts -> user account control settings -> change by scall bar to 'never notify'. (I need it for automate...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633291", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Change subview with binding Possible Duplicate: Changing the View for a ViewModel I have a view: <UserControl ...> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <ComboBox ItemSource="{Binding Items}" /> ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633293", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How can I make the image move in a random position? I have an image inside the panel and it moves in a clockwise direction. Now, I want it to move in a random direction and that is my problem. Could someone give me an idea how to do it? Here's what I've tried : private int xVelocity = 1; private int yVelocity = 1; p...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633295", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Simple git post-commit hook to copy committed files to a certain folder I would like to automatically copy the committed files to a certain folder so they can be viewed in a browser, but I would like to do this without having to create a bare repository that mirrors the main repository (as shown here) and I would li...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633299", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "23" }
Q: Android table row image How do I make an image occupy the entire row of a table and not be bigger than the screen ? TableLayout tableView = (TableLayout) findViewById(R.id.tblVW); TableRow row = new TableRow(this); ImageView im = new ImageView(this); bmp=getbmp(img); im.setImageBitmap(bmp); row.addView...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633301", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to perform scp between 2 remote unix boxes using Jsch? I am writing a Java code using Jsch in which I need to perform scp between 2 remote UNIX boxes. I tried to execute the scp command in the same way as to execute a normal command from my java code like this : JSch jsch=new JSch(); Session session=jsch.getSes...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633305", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: ExtJS 4 Application Login & Authentification & Rights I'm developing an web application on Ext JS 4 using the new recommended application structure. Therefore I need to implement a authentification & rights system. The idea so far: * *The server is responsible to ensure the user role and rights. *ExtJS frontend ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633309", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: colorbox - enable clicks outside of it I'm using colorbox, and I want to be able to click on the webpage behind the colorbox while it is open. Is it possible? A: The idea of lightbox-like "windows" is that they shadow the website while they are open. But you can add the following to your CSS to hide the overlay: #c...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633311", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Will we leak the android service connection if the client's process is killed by android? Condition: I have a client activity "X" of a remote service (with AIDL) that calls the bindService() in the onCreate() and unbindService() in the onDestroy(). Assume that this activity has been started but not in the foreground...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633317", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Get Facebook wall data to web portal I have web portal. I need to somehow get all Facebook wall posts from just one specific user or group( that represents my web portal). I need to have wall posts available on my web portal for further processing. I will be also needing an option for posting messages from web port...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633322", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: MSBuild backup files (with time stamp) before replacing I currently use a web deployment project to update an existing web site through various MSBuild tasks Taking site offline: <Target Name="BeforeBuild" Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <CreateItem Include="..\website\App_Code\ov...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633324", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: SQL: Eliminate chains of duplicate in a GROUP_CONCAT I'm running a query to analyse variations in Group_member_ID for some users. What I would like to identify is the key variations in group_member_ids (eg Group1 on 01/08/2011, Group5 on 05/08/2011). I came up with this command: select id, CAST(group_concat(concat(...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633328", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Error converting from MySQL to SQLite It hasn't been too much trouble but there's an error I keep getting from an update from user clicking a button. Originally in MySQL this was an enum('Y','N') value, but as SQLite doesnt use enums or booleans, I've decided to use an int with 1 and 0 respectively. How can this be ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633330", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: P4 - change workspace for client I want to change the workspace client using the p4 command line but i don't know if its possible. You can create, delete or edit workspace using the p4 workspace command, but i want to change the current workspace with a .bat method. Exemple : p4 -c MyClient changeworkspace myNewWor...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633332", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "16" }
Q: Android dialog number picker Is there any tested and usable component we can use to show "Count selector" like this? Our target is to get it working from API v7 . (Taken from DatePickerDialog) A: After some deep testing and using, this is a list of usable Picker widget libraries * *Android Wheel http://code.goo...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633343", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "21" }
Q: How to see "alternatives" for properties in PowerShell? Using Get-ChildItem | Get-Member I can see the methods and properties for an object. But how can I see the different possible values for e.g. properties? I can use Get-ChildItem | Where-Object {$_.Attributes -ne "Directory"} to extract objects which are not ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633344", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Jmeter issue while recording and executing windows based authentication scripts In one of my application during the initial login I need to give the windows authentication as the user name and password to login into the application. In Jmeter I was unable to proceed if i play back the captured step. Also I was unabl...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633345", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to transition an existing DB Schema without AUTO_INCREMENT primary key to a key with AUTO_INCREMENT? I have an application which was developed with HSQL DB and the problem is that we are migrating it to MySQL with JPA/Hibernate. The problem is that the old schema doesn't have an AUTO_INCREMENT primary key : how ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633346", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: maven assembly create jar with dependency and class path I have a maven project with a lot of dependencies. I want to pack all in a jar with dependency using assembly plugin, but I don't won't all the dependencies jars unpacked in a big mess. I want all of them do go into lib folder, but I don't know how to add the...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633347", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: best way to make this list in css Basically I would like to know the best way to create a simple list in CSS that: instead of bullets has a circle with a number inside of it, and the text next to it... I know how to create circles in css3, but how do you replace the bullet that comes with ul, with the circle? Should...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633348", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: JSON generation in ASP.NET MVC 3 I've got the sample code below from an article written by Scott Mitchell on using Google Maps with ASP.NET MVC: @{ var locations = new List<string>(); var infoWindowContents = new List<string>(); foreach (var store in Model) { locations.Add(string.Format( ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633349", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting an error in W3C Markup Validation when trying to get a whole element as a link in a page I am trying to get whole <figure> element as a link so i wrote these line of code :- <figure> <a href="#"> <img src="images/product-image.jpg" alt="image " /> <span class="label"><span class="rotate">40%<...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633350", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Geting the last entry on join So, I have these 2 tables. One contains, lets call them, bugs, and another contains solutions. One bug may have more than one solution (or state, if you may), and I'd like to get the last one. Right now, I'm doing it like this: Select b.*, ap.approveMistakeId from bugs_table as b LEFT ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633352", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to hide the arrow buttons in a JScrollBar I need to hide the arrow buttons of java.awt.Scrollbar(VERTICAL) in an AWT application. Does anyone know how this can be achieved? I saw an example here, but the code just hides the buttons. The vacant space for the buttons still remains; it is not occupied by the scroll...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633354", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: Javascript Regular Expression Match Try <script type="text/javascript"> var str=">1 people>9 people>1u people"; document.write(str.match(/>.*people/img).length); </script> at http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_regexp_dot. This code should return an array of size 3 but it return arr...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633361", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: jquery.cookie and internet explorer cookie issue I am building an asp.net website using jquery cookie. I have the jquery image slider on that page. In order to retain the scroll position of the slider, I store them in the jquery cookie (I use the jquery.cookie plugin by carhartl). for example I use the function as ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633374", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Is it possible to integrate Wordpress CMS with a telephone system such as Asterisk? At the moment, I am dealing with a Web project and would like to know what are the possibilities to develop a Website with Wordpress CMS and integrate it with a Telephone system such as Asterisk. The main purpose is to build a portal...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633377", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: How to set this Layout that fit to Any Screen height? I have Some layout Problem regarding my Application. This is My Application Layout: <?xml version="1.0" encoding="utf-8"?> <ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/tax_calculator_logo"/> <Lin...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633382", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "4" }
Q: Will this allow for mysql_real_escape_string to work globally? $_POST = mysql_real_escape_string($_POST); By executing this statement, does each post value now get escaped via mysql_real_escape_string? A: No. That won't work at all: $_POST is an array: mysql_real_escape_string needs a string as its first argument....
{ "language": "en", "url": "https://stackoverflow.com/questions/7633385", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to find out 3rd party libraries version? In my project I want to find what is the version of 3rd party libraries. I only have the jar file and some of them contains manifest file with version number in but others don't. Is there a way other than manifest? A: The general technique is to find a place which has mu...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633387", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to fix border in UITableView for the UITableViewStyleGrouped For a UITableViewStyleGrouped UITableView a small extra line is drawn below the tableview How do I fix this? I have tried my best. No luck so far. Thank's in advance. My Code -(void)myTableView { // if(mytableView != nil) // [mytableView release]; ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633390", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Only scrolling inside one div, while website stays positioned I'm trying to create a website with the following. On top there's just a basic horizontal menu. Below that, on the left side, is another subcategory. The content will be on the right of the subcategory and can be very long. Now what I would like is that w...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633392", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "8" }
Q: How do you perform a delayed loop in Opa? What construct exists in Opa to perform a delayed loop; for instance, executing a function every 10 seconds. Take the chatroom tutorial - if I wanted a bot in there then how would I have it write a statement every 10 seconds to the other users? A: What you are looking for i...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633395", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Print list of ALL environment variables I would like to print a list of all environment variables and their values. I searched the Stackoverflow and the following questions come close but don't answer me: * *How to discover what is available in lua environment? (it's about Lua environment not the system environme...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633397", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Rhomobile back function I'm having a problem getting the back button function to work in Rhomobile. I've tried various methods of url_for(:index, :back => ....) etc etc and nothing seems to work. The problem with this method is (even if it worked) that it only allows navigation to a set place, rather than a dynamic ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633399", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: whole link created using attribute passing, not working. Trying to create a link dynamically for some purpose $('', { text: 'Click here!', href: 'http://www.example.com', title: 'Click to win' }).appendTo('body'); But this is not working ... anything wrong ? http://jsfiddle.net/QJy6P/ A: you have not s...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633402", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Can Google analytics be used for an old web app? I have heard about google analytics ad currently reading up and researching it. My company has a really old web app that's being retired but before it does I would like to pull some statistical information on it. The application was developed on a struts 1.1 framework...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633404", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Synced animated tiles in a 2d web game I'm building a strategy game in the browser since 2 years back. Its already actively played by a small crowed of people so it is a working game. Our problem is that its resource hungry. Basically you want opera or chrome. IE9 is more or less unplayable and firefox can be quite ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633406", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "2" }
Q: Mapping elements of a data frame by looping through another data frame I have two R data frame with differing dimensions. However but data frames have an id column df1: nrow(df1)=22308 c1 c2 c3 pattern1.match ENSMUSG00000000001_at 10.175115 10.175423 10.109524 ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633411", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: How to know whether a class method was called internally or remotely in .NET Remoting? I have a class which needs to behave differently when being called remotely via .Net remoting. How can I determine, inside the class, if this is the case? class RemoteClass : MarshalByRefObject { public void SomeMethod () { if...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633412", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: Passing value between NSTabView I try to do a simple program in cocoa, a NSTabVew with 2 items, in the first item I set a content to a string var, in the second tab I display this value. I create two Object class (Prima and Seconda), than I add 2 object in IB setting like Prima and Seconda Prima.m - (IBAction) salva...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633413", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "1" }
Q: Using JNA or similar to shutdown and restart computer in linux and mac I am trying to write a function in java that will shutdown, force shutdown, restart and force restart the computer and it should work on Windows, Linux and Mac. Windows is not a problem, but I am unable to run commands to shutdown on Linux due to...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633433", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }
Q: Getting logcat from a tester's android device We are having trouble reproducing some bugs in an application we are developing, and so I would like to retrieve logcat logs from a tester's android device. He isn't testing plugged into a computer, and we don't have regular physical access to his machine as he is testi...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633434", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "7" }
Q: Map different function to first and last element in list I have a function where I want to transform a list of floats into another one, where for each element I want to have x percent of element i spill over into element i + 1 example: let p3 = [0.1; 0.2; 0.4; 0.2; 0.1] then p3_s should be: [0.05; 0.15; 0.3; 0.3;...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633441", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "3" }
Q: how to save instance the activity without refreshing? i switch to next screen and then comes back to the original and wants to pick up where i left off , save and restore data.In Activity 1:i have more than 10 buttons i can select and unselect button,if go to next screen and if i come back it should not reload,it ...
{ "language": "en", "url": "https://stackoverflow.com/questions/7633442", "timestamp": "2023-03-29T00:00:00", "source": "stackexchange", "question_score": "0" }