Perl regular expression engine bug?

I have been trying to write a regular expression to validate a file to make sure that it follows a specific format. The file should have a version(); line and then be followed by one or more element(); blocks. Here is an example of a valid file: ve...
more »

2017-09-21 23:09 (2) Answers

Gradle: Resolve dependencies ':app:_debugApk'

I have a problem in Android Studio. All of a sudden, it stucks at starting app building. I tried changing the repos and nothing changes. If i create a new project i have no errors. This is the error message: Gradle: Resolve dependencies ':app:_debu...
more »

2017-09-13 22:09 (0) Answers

VS2017 DOM Explorer turn off

I'm starting using VS2017 and noticed that for every HTML based project there's a DOM Explorer window appearing at launch. Problem: I don't want it, but I don't see how to turn off this option. I've already uncheked Tools->Options->Deguggin->General-...
more »

2017-09-13 13:09 (0) Answers

Stopping gdb while loop when receiving signal

I'm trying to find a segmentation fault in my program that doesn't happen all the time. I'm trying to run my program in a loop in gdb until the segmentation fault happens. My problem is that the gdb continues the while loop after receiving the seg f...
more »

2017-09-12 10:09 (2) Answers

Using GDB to change a for loop condition?

I am trying to debug a program and am interested in the line for(int i =0; i<10; i++) and want to change i <10 to i<=10 in the GDB debugger. I've used print to change variable names, but how do I do it for this? Thank you. ...
more »

2017-09-03 20:09 (1) Answers

Is there an lldb equivalent to gdbserver?

I have recently started developing on macOS and need to remotely debug a process by kicking off a debug server and connecting to it from another machine. Using GDB I would do this on the machine to be debugged: gdbserver :<port> --attach <p...
more »

2017-09-01 16:09 (1) Answers

Unresolved references with list in Python

I am not entirely sure whether or not this behavior is to be expected or not, but it is definitely quite strange. When you have some code like this: def a_function(): if a_list != some_other_list: print(a_list) It works fine and I had ...
more »

2017-08-29 21:08 (3) Answers

Pandas.Index.isin() fails with large data set

Here is an example Create a table with 100M identical rows: >>> df = pd.DataFrame([('20170101', 'TULIP', 'FLOWER')] * 100000000, columns = ['DATE', 'NAME', 'TYPE']) Set the first 2 columns as index: >>> df.set_index(['DATE', 'N...
more »

2017-08-25 21:08 (1) Answers

How can I debug Django referer and CSRF checking?

TL;DR I have found what seems to be a nasty bug in my Django site. The login form uses {% csrf_token %} and I also set <meta name="referrer" content="same-origin">. This login page works fine. However, trying to program a production site test, ...
more »

2017-08-23 17:08 (0) Answers

Checking variables in XCODE after app has crashed

My app has crashed telling that he index is out range when I use this team[1] which is surprising because it should have 2 strings in it. I have looked everywhere, in XCODE and the internet, but cannot find a way to see what the team array looks like...
more »

2017-08-18 03:08 (1) Answers

How can I echo last query in cakephp 1.2.6

I'm new to cakephp and having trouble in echo the last query. I want to see what is my sql query that is being executed coz it's not returning the expected result. The version of cakephp is 1.2.6. I have tried the following code //$log = $this->...
more »

2017-08-17 08:08 (1) Answers

Python Quicksort Debugging

I have implemented this quicksort but I seem to have bug that I can not fix, would someone mind taking a quick look at it? The output for the example I give is close to the answer but some indices are misplaced. def partition(array, pivot, start...
more »

2017-08-16 23:08 (1) Answers

Component won't recognize it's being exported

I've encountered a very strange error. I feel that I've exported the Home component in a normal and conventional manner. Below, I've posted the .js files that I think are relevant in order to rectify this error. Despite this, In my iOS simulator, ...
more »

2017-08-16 16:08 (1) Answers

Git checkout just aborts

So, I've freshly cloned a repo. I want to switch to a branch and it unhelpfully just aborts: git checkout II-13 ... ... html/icons/EJ4/AJ/ucp-ico Aborting This is on an up to date Mac. Ideas? Ideas on debugging? ...
more »

2017-08-03 16:08 (0) Answers

Facebook Debugger tool blank page

I was trying to debug a page of blog, but the debugger tool wont allow me to. Any idea why is this happening? Debugger Tool with the page link: https://developers.facebook.com/tools/debug/sharing/?q=https%3A%2F%2Fwww.naturalthrone.com%2Fblog%2Fartig...
more »

2017-08-02 12:08 (1) Answers

Camera preview layer makes button invisible

I'm trying to add a button over a camera preview but it doesn't show up when I run the program (I have constraints). I looked into the code and tried to debug but I'm new to swift and Xcode and I'm new to debugging in general. I saw that when I comme...
more »

2017-07-29 22:07 (1) Answers