Orion Orion

2

votes
0

answer
10

views

Stop wpautop from running in Gutenberg custom html blocks

I am frontend developer and Wordpress is having its way with me. I have tried every solution I've found on every marginally-related post from Stack Exchange to Quora and back and I've accomplished nothing. Please help me, I'm one failed attempt away from turning to black magic for a solution. Maybe...
Orion
1

votes
2

answer
608

views

UIScrollView Subviews not expanding to fill width (Autolayout)

I'm using the following code to constrain a view to the left and right anchors of a parent UIScrollView. Despite the right anchor and the left anchor being set to the ScrollView's left and right anchors, the view does not expand to fill the scrollview. Note: The gray background in this image is the...
orion
1

votes
1

answer
1.8k

views

C++ Input Iterator

I'm reading C++ Standard (Section Input Iterator) and I'm having hard time to visualize the text in bold: Note: For input iterators, a == b does not imply ++a == ++b. (Equality does not guarantee the substitution property or referential transparency.) Algorithms on input iterators should never attem...
Orion
1

votes
2

answer
87

views

Passing two parameters using MVC

I want to pass two parameters from one page to other page. I am able to pass single parameter. when it comes to two parameters, i get the error http 404 could not found. My View My Code What I want to achieve here is, I want to share trainer id and title to the next page. When i put , it gives me...
Orion Rigel
1

votes
1

answer
149

views

Additional information: String was not recognized as a valid Boolean

I am working on editing gridview. I have added checkbox as well. I need to check when user clicks check button, it should give true value. if not false. Here is my Grid View. I am getting error while executing the page. The error is String was not recognized as a valid Boolean. Code: protected voi...
Orion
1

votes
1

answer
23.2k

views

JavaFX: Exception in thread “JavaFX Application Thread” java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

I'm working on JavaFX project and I've an error like this: Logout Exception in thread 'JavaFX Application Thread' java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at javafx.fxml.FXMLLoader$MethodHandler.invoke(FXMLLoader.java:1774) at javafx.fxml.FXMLLoader$ControllerMethodEve...
orion
1

votes
2

answer
1k

views

Swift naming conventions for add/set methods [closed]

In Objective-C, you might have a method like one of these -(void)addWidget(Widget*)widget classification:(WidgetClassification*)classification; -(void)setText:(NSString*)text color(UIColor*)color style:(FontStyle)style In Swift 3+, you could chose to translate the names as either this (let's call i...
Orion Edwards
1

votes
2

answer
2.1k

views

Display the output on the terminal and tail the last 10 lines to log file

I need to run a script and output the full contents to the terminal. I then want to get the last 10 lines from the terminal output and put them in a log file. I have tried using ./script.sh 2>&1 | tail -10 > log.log but this stops the output to the terminal.
Orion
1

votes
1

answer
74

views

How to tell when an Application (not activity) enters the background?

I have some utility code in my android application running as part of a shared component. It's scoped to the lifetime of the application, and launched as part of an overridden Application class. What I'd like to know is if I can be notified when the application itself enters or leaves the foreground...
Orion Edwards
0

votes
0

answer
9

views

Omp for loop initialize vector

I have the following code: int main() { vector vec; #pragma omp parallel for ordered schedule(dynamic) for (int i = 0; i
Orion
1

votes
1

answer
41

views

Center Align UL for 2 lines

I'm trying to center align my menu that goes onto 2 lines. I'm using ul li. not sure if this is the best option. I've trued everything from posts posted on SO, but nothing doing :( I would like it to go onto 2 lines and still be centered Here is s screen shot of what it looks like: CSS: @media only...
Orion
1

votes
1

answer
206

views

LINQ: Select the Min and Max values from a collection on an entity after grouping

The goal is to get the first DateTime and Last DateTime from a collection on an Entity (Foreign Key). My Entity is an organization and my collection are Invoices. I'm grouping results since Organizations unfortunately are not Unique. I'm dealing with duplicate data and cannot assume my organizations...
Orion
1

votes
1

answer
327

views

Gitlab-ci: extend script section

I have an unity ci-project. .gitlab-ci.yml contains base .build job with one script command. Also I have multiple specified jobs for build each platform which extended base .build. I want to execute some platform-specific commands for android, so I have created separated job generate-android-apk. Bu...
orion_tvv
1

votes
3

answer
4.3k

views

Create a WPF “control” that is run in an external process

I have a WPF app which contains a number of child controls. One of these controls hosts a third party library which underneath the covers runs some native code which throws access violations and crashes the application. Unfortunately removing the library is not an option. What I'd like to do is spin...
Orion Edwards
1

votes
2

answer
1.3k

views

How do I include the newlines from syscomments in SQL Server?

I'm building a script to get all the triggers in the document, but I want to include newlines. I'm copying and pasting this into excel in order to then quickly generate some mandated documentation, but all the contents from the text column end up being generated without newlines. The line I'm curren...
Orion Adrian
1

votes
3

answer
3.6k

views

Does the EntityDataSource support “it.Property.Property” syntax?

I have an EntityDataSource where I'm trying to replace some previous code-behind work. My EntityDataSource looks like: When when I actually use it I get the error: 'Person' is not a member of type 'Transient.rowtype[(Id,Edm.Int32(Nullable=True,DefaultValue=))]' in the currently loaded schemas. Does...
Orion Adrian
1

votes
3

answer
168

views

Does applying additional clauses to a compiled query cause a recompile?

If I have a compiled entities query via CompiledQuery.Compile and I then tack on another .Where() clause or .OrderBy() clause, do these addition clauses force a full recompile, a partial recompile, or no recompile?
Orion Adrian
1

votes
3

answer
751

views

WordPress Mobile Pack Custom Page Template

Hoping someone can help. I've inherited a WP based website which has WPMP already installed & activated & working on it (I can see it work on many pages). I've had to create a custom template & a few pages that use this template. Unfortunately, when I switch to mobile mode (or check out the new page...
Orion
1

votes
1

answer
1.5k

views

How to change the font color of a datatemplated wpf listbox using a converter?

I have a DataTemplate that is used by a listbox: MY_COLOR is the following bit of code: public class Packet_Class : INotifyPropertyChanged { private bool _my_color = false; public bool MY_COLOR { get { return _my_color; } set { _my_color = value; RaisePropertyChanged('MY_COLOR'); } } } and then whe...
Johnny_Orion
1

votes
2

answer
2.1k

views

How to make ldap respect Active Directory password history in php

I have access to an Active Directory that enforces a 5 password history restriction. Any password in the last 5 passwords you have, is not a viable candidate to be set or reset as your password. I am using php and am trying to use ldap calls to reset a user's password. I can reset the password jus...
Johnny_Orion
0

votes
0

answer
4

views

Opencv cv2.VideoCapture() stoping to read rtsp ip camera

Hello im learning opencv and im reading a ip camera trough rtsp:// videoStream = 'rtsp://admin:[email protected]:554/Streaming/Channels/1' capture = cv2.VideoCapture(videoStream) im reading this stream and im making a facial detection in opencv but after 1 or 2 minutes my script crashes whit a h264...
Jasar Orion
1

votes
1

answer
556

views

html2canvas resetting letter spacing

$('#cypher-branding-letter-spacing').change(function(e) { $('#cypher-branding-main-edit-right-txt-text').css('letter-spacing', $('#cypher-branding-letter-spacing').val() + 'px'); }); //add text to design $(document).on('click', '#cypher-branding-btn-add-to-design-text', function() { //remove th...
Orion
1

votes
1

answer
77

views

“Paranormal” activity in queue structure

#include #include /* Report an error and abort */ #define FATAL_ERROR(message) \ { \ fprintf(stderr,'In %s(%d) [function %s]: %s\n', \ __FILE__, __LINE__, __FUNCTION__ , (message) ); \ abort(); \...
Orion Papadakis
1

votes
1

answer
1.1k

views

How to check if an array field is a part of another array in MongoDB?

In this question, Jeff the Bear explained how to search documents with an array contains 'tag1' contains ['tag1','tag2'], contains any of ['tag3', 'tag4'] But how should I do if I want to search documents with an array which is part of another array? post1.tags = ['tag1'] post2.tags = ['tag1','tag3...
Orion Chang
1

votes
1

answer
1.7k

views

Java ProcessBuilder process waiting for input

When running a command line command via ProcessBuilder (specifically 'GetMac /s') if it throws an error or returns normally and I can read the error or the MAC address that it returns but if it prompts the user input (some pc's on the network require a password when using getmac) the process will ju...
Orion
1

votes
1

answer
93

views

Order of occurance of the same value in a vector

I have the following series of numbers: id = c(1, 2, 1, 2, 4, 1, 1) What is the most straightforward way to devise a vector including the order of each occurrence of each distinct number? orders = c(1, 1, 2, 2, 1, 3, 4)
Orion
0

votes
0

answer
4

views

GetActiveObject is not a member of Marshal

I'm working in vb.net in Visual Studio 2017. I'm fairly new to visual basic. I'm more familiar with VBA. I prototyped code to access Autodesk Vault 2019, download a file, and open it in Autodesk Inventor 2019. This code was created with an Autodesk Inventor AddIn template in visual studio. The c...
Orion DeYoe
1

votes
1

answer
1.4k

views

How to add element at specific index/position in HashSet?

I have some HashSet collection of String elements, how I can add new element at specific position? I saw documentation and didn't find any method that can do it.
Orion
2

votes
2

answer
3.6k

views

Why scrollWidth doesn't work in this case in Firefox?

I'm trying to make a simple marquee in Javascript, and need to get the full content width of innerDIV in the following: very long ... text I tried scrollWidth. It works well in Chrome but not in Firefox (where it gives the value of clientWidth instead). Here is a live demonstration: http://jsfiddle....
Orion
2

votes
1

answer
25

views

React component masquerading as a function

Can anyone please help me understand what is going on here in some code I need to refactor. I have a component which looks pretty ordinary such as this: export default class MyContainer extends PureComponent { //props //state //render() //etc. } This is then passed in as props to another component l...
orion_kid
1

votes
3

answer
966

views

as3 / flex builder - is it possible to change the color of a trace statement?

i suspect the answer here is 'no', but i'm wondering if it's possible to set the color of trace statements which appear in flex's console pane. ie, i have a few 'levels' of log statements, and i'd like the warnings and errors to really stand out. tia, Orion
orion elenzil
6

votes
2

answer
5.2k

views

Using System.Reactive in .NET 3.5 (in a shipping product) [closed]

This question is no longer relevant now that microsoft have released a proper version of the Rx framework on devlabs Original Question I've downloaded the Silverlight 3 toolkit and rebased System.Reactive.dll to work on the .NET 3.5 CLR, and am really enjoying using it. What I'd like to know is, can...
Orion Edwards
17

votes
7

answer
10.3k

views

How can I disable a validation and callbacks in a rails STI derived model?

Given a model class BaseModel < ActiveRecord::Base validates_presence_of :parent_id before_save :frobnicate_widgets end and a derived model (the underlying database table has a type field - this is simple rails STI) class DerivedModel < BaseModel end DerivedModel will in good OO fashion inherit all...
Orion Edwards
18

votes
7

answer
15.5k

views

Programmatically select multiple files in windows explorer

I can display and select a single file in windows explorer like this: explorer.exe /select, 'c:\path\to\file.txt' However, I can't work out how to select more than one file. None of the permutations of select I've tried work. Note: I looked at these pages for docs, neither helped. https://support.mi...
Orion Edwards
3

votes
1

answer
1.3k

views

How can I force a call to onSaveInstanceState

I've implemented onSaveInstanceState and onRestoreInstanceState in my android activity. These seem to work OK, but I'd like to explicitly save the instance state when certain things happen (e.g. when the user presses a button) in case the application crashes, or I terminate it via the debugger I can...
Orion Edwards
6

votes
6

answer
22.5k

views

HTML Select Tag with black background - dropdown triangle is invisible in Firefox 3

I have the following HTML (note the CSS making the background black and text white) first second Safari is smart enough to make the small triangle that appears to the right of the text the same color as the foreground text. Other browsers basically ignore the CSS, so they're fine too. Firefox 3 howe...
Orion Edwards
5

votes
3

answer
4.7k

views

If you call EventWaitHandle.Set() X times, will it signal X threads if X the threads haven't started yet?

In other words I have a thread that starts and calls waitHandle.Set() multiple times. Then I start several threads and each is waiting on that WaitHandle. Will X of the them be signaled where X is the number of times the original thread called waitHandle.Set()? Is there a structure that supports wha...
Orion Adrian
2

votes
1

answer
829

views

How do I change the file that the XSLT template is using in Visual Studio 2010?

I have an XSLT file and the first time I ran it, it asked me for an XML file. How do I get it to let go of that setting and let me choose a new one?
Orion Adrian
6

votes
1

answer
1.1k

views

Can I change the key bindings on the free version of CodeRush Express for Visual Studio?

Note: I've tried posting on the coderush/devexpress forums and as is usual for that kind of thing, received no response. Hopefully some SO users use coderush express and can possibly help? Hi. I've just installed the free CodeRush XPress addon, and it looks nice, however I can't figure out how to ch...
Orion Edwards

View additional