Should clicking already selected UI item be handled normally or ignored?

Lets say you have a user-interface with a tree view, and you click on already selected item. Should the click-event be handled normally or ignored (since the item is already selected)? Lets also assume that performing normal click-handling involves lots of lengthy calculations, but in overall takes less than 200 ms.

In other words you can “optimize” away lots of lengthy calculations, and just return right away, or you can force update everything, just to make sure that everything is up to date. As a side effect of second case you can “hide away” some bugs, in cases when some information is not up to date, but user can always rely on that clicking in UI would recalculate everything.

Why does my generic Chinese intervalometer stop short of selected number of frames?

I am using an intervalometer to make a time lapse video

I am using a Nikon D3300 with a 50mm f1.8 lens Focus set to manual

Camera Settings:

ISO: 3200

Shutter Speed : 1/25 Seconds

Apreture : f1.8

Intervalometer settings:

Interval : 6 seconds

Frames : 150 frames

When I press start on the intervalometer device everything works with the timing and shooting, but the problem is when it reaches 20 frames, it stops shooting automatically and resets the settings to default “00:00:00”

I formatted my 16gb SD CARD and I have a lot of space

Why does this happen?

Upgrading Drupal 7.43 to 8 error: Source database is Drupal version 8 but version 7 was selected

I am new to Drupal, but I am trying to upgrade a site with the version 7.43 to 8, flowing these steps:

After installing the Migrate modules and defining the source site, I have the following error message:

Source database is Drupal version 8 but version 7 was selected.

In my old site’s database, the drupal_version table is empty.

Any help?


My laptop running windows10 is in a state that the first icon in the desktop is always selected. We can not select any other icon or open any other programs from desktop. It is also enthe case of a web page also we can not dragon down to bottam of web page. In key board num lock key is alwyas on and it is not working other keys and touch pad also not working.i tried with a external mouse and keyboard and it is working fine how can I tackle this plz help..Thanks in advance

the price of the bundle product returns 0 but there are related products in the products and by default everything is selected, can someone help?

$ collection = $ this->_productCollectionFactory->create();

$ collection->addAttributeToSelect(‘*’)->addAttributeToFilter(‘type_id’,

array(‘like’ => ‘bundle’);

return $ collection;

How to convert range of image file path from local folder as comment in the selected destination range?

I’m asking for your help. My research ended up in 2 different macros that combined will give a good utility for my work.

  1. This VBA code will insert image as comment.
  2. This VBA code will fetch Hyperlinks(Local folder path only, not web based URL) and paste them in destination cell.

I really tried to combine them to do one job, but I guess I don’t have enough knowledge on this.

I tried to make a single script that gets the links from source range

Set Rng = Application.InputBox("Please select the url cells:") 

Then prompt for destination cells (Application.InputBox(“Please select a cell to put the image as comment:).

Now This is the tricky part for me, I need the images to be inserted as comment as the 1st code does to the destination range user selects.

Can anyone guide to achieve this excellent tweak

Sub InsertPictureAsComment() Dim PicturePath As String Dim CommentBox As Comment 'Pick A File to Add via Dialog (PNG or JPG)        With Application.FileDialog(msoFileDialogFilePicker)         .AllowMultiSelect = True         .title = "Select Comment Image"         .ButtonName = "Insert Image"         .Filters.clear         .Filters.Add "Images", "*.png; *.jpg"         .Show          'Store Selected File Path           On Error GoTo UserCancelled             PicturePath = .SelectedItems(1)           On Error GoTo 0         End With      'Clear Any Existing Comment       Application.ActiveCell.ClearComments      'Create a New Cell Comment     Set CommentBox = Application.ActiveCell.AddComment      'Remove Any Default Comment Text       CommentBox.Text Text:=""      'Insert The Image and Resize       CommentBox.Shape.Fill.UserPicture (PicturePath)       CommentBox.Shape.ScaleHeight 6, msoFalse, msoScaleFormTopLeft       CommentBox.Shape.ScaleWidth 4.8, msoFalse, msoScaleFromTopLeft      'Ensure Comment is Hidden (Swith to TRUE if you want visible)       CommentBox.Visible = False      Exit Sub      'ERROR HANDLERS  UserCancelled: MsgBox "Done" End Sub 

‘Next code-

Sub URLToCellPictureInsert()      Dim Pshp As Shape     Dim xRg As Range     Dim xCol As Long      On Error Resume Next      Set Rng = Application.InputBox("Please select the url cells:", "", Selection.Address, , , , , 8)     If Rng Is Nothing Then Exit Sub     Set xRg = Application.InputBox("Please select a cell to put the image as comment:", "", , , , , , 8)      If xRg Is Nothing Then Exit Sub      Application.ScreenUpdating = False      For i = 1 To Rng.Count         filenam = Rng(i)         ActiveSheet.Pictures.Insert(filenam).Select         Set Pshp = Selection.ShapeRange.Item(1)          If Pshp Is Nothing Then GoTo lab          xCol = cell.Column + 1         Set xRg = xRg.Offset(i - 1, 0)         With Pshp             .LockAspectRatio = msoFalse             .Width = 80             .Height = 80             .Top = xRg.Top + (xRg.Height - .Height) / 2             .Left = xRg.Left + (xRg.Width - .Width) / 2         End With lab:         Set Pshp = Nothing         Range("A2").Select     Next      Application.ScreenUpdating = True End Sub 

Only allow one checkbox to be selected

I have two checkboxes and I want them to start of unchecked. but if select one, and then choose to change your mind and select the other box, then the previous one goes unchecked. My code so far is below, I am so close. But when I run my app when you select one they both turn on or off. Please help.

    private void customer_IsCheckedChanged(object sender, EventArgs e)     {         if (business.IsChecked == true)         {             business.IsChecked = !customer.IsChecked;         }          if (business.IsChecked == false)         {             business.IsChecked = !customer.IsChecked;         }      }      private void business_IsCheckedChanged(object sender, EventArgs e)     {         if (customer.IsChecked == true)         {            customer.IsChecked = !business.IsChecked;         }          if (customer.IsChecked == false)         {             customer.IsChecked = !business.IsChecked;         }     } 

I want to use a selected part of a string

Lets say i have a string path that looks like this: C:/users/name/epicEnding

And i want to just use the last part of the path: epicEnding

How can i always use the last part of the path without just writing string endPath = "epicEnding"; (sorry, dont know another way to describe it.)

And the results should be:

//selected path: "C:/users/name/epicEnding" ex. //last part: "epicEnding"

(it should be the last part of the path whatever the path looks like.)

Get all values (even those not selected) from a select list field in a view

new Drupal user here so please forgive any rookie assumptions or questions I may have.

I’m trying to create a view that lists all the values in a select list. The list consists or when something is available (e.g. Winter, Spring, etc.). It’s just as important to know when something is available as it is when it’s not. However as I’m sure you already know, it only returns those items selected and not everything I need.

I’ve tried messing with the “rewrite results” trying Loops, IfElse, Multiple duplicate fields, etc. Is this even possible and if so what the best way to go about it. Thanks in advance for any guidance.

Price is not updating when dropdown is selected for configurable items

I am having a small issue in where the price is not being updated on Magento 1.9. When I select a drop down selection the price is still fixed to the configurable price. I have learned that Magento does not take the prices of the simple items. Which I am ok with, but I don’t understand there reasoning behind it. How do I go about fixing this issue?enter image description hereenter image description here