Tried to change theme in project, is not working anymore - qooxdoo

I've been working in a project since 3 months, at first was with Modern theme as default, after some changes I applied Indigo theme and kept working, yesterday tried to switch back to Modern without success, after several tries I followed step by step some directions another guy posted here : http://stackoverflow.com/questions/19820195/qooxdoo-how-do-i-create-a-new-theme-and-use-it-in-the-application surely I did something wrong because I didn't get Modern theme on, so, I undo everything. Now if I try to generate source I get many errors about resources and directories already deleted, my guess is that something is left at cache or somewhere else. Please can you help to apply modern theme correctly or at least anything I can continue working. Any help will be much appreciated.

If you just want to see the modern theme in your app without alterations, edit your config.json to include the line
"QXTHEME": "qx.theme.Modern",
then run generate.

Related

Odd behavior in code repo and link to my open source git repo

Now that things are sort of getting stable, I am still doing the codename one todo app demo and got to the point where I added underlines under the label/checkbox. My git repo is
https://github.com/deanhiller/codenameOneExamples
****EDIT
I just published my build and ran on android phone and the basic todo app is not working either. I am not sure what's wrong, and if I can't fix this it may be time to jump ship and create two apps(one swift and one android studio...bleck ). I really like this concept and at 70/month, codeone was not a bad deal for what we need.
****END EDIT
If I click + 3 times though, the screen looks like this (settled on using intellij 2019.1.4 with codename 6.5.1 on MacOS Catalina 10.15.4). This is not what the demo should look like though.
and thanks at the amazing support Shai.
It seems you only defined the styles for the unselected theme. This means that when an entry is selected or pressed it's unstyled. You can see this by opening the theme in my repo and comparing it to your theme.
Since I wrote that book we've slowly moved to styling with CSS which isn't very different from the content of the book (slightly different syntax). That makes things like that easier since CSS implicitly defines all the 4 styles in the same way and changes things for a specific style explicitly. This is a bit more convenient. It's also easier to treat styling as code even though I'm not a fan of CSS.
The nice thing if you can "live edit" CSS which means changes instantly show in the simulator without interaction.

drupal site UI stopped working for reasons unknown

Am working on a drupal-7 site but it suddenly has stopped showing the correct theme and just shows a garbled UI.
have thought about it and cannot seem to locate the reason for this.
wanted to ask that if any suggestions can be given of this . secondly is there a way to refresh the drupal site (i.e. run the drupal site installation process again without re-installing/deleting any physical file/database).
hope to have made the question clear :)
Two common reasons.
The last thing you did broke it.
Someone hacked it.
Reinstall the exact same version of drupal in a new folder with a new empty database. If the only things you changed were the content (no PHP patches etc), then you should be able to simply switch databases. You could also diff the installations to see if any files were altered.
issue solved. problem came apparently from a module (custom made) which had function name same as used somewhere else on site.
thank you for time and suggestions

Visual Studio freezes on breakpoints

Since a week back I'm seeing a very annoying behavior from VS2010:
As I'm debugging a project and the debugger stops on a breakpoint Windows freezes for almost ten seconds. I say "Windows freezes" because the mouse and keyboard are useless during this time period.
The problem only happens as I debug a specific project and I've tried it on two diffrent machines with the same result. The project is WPF and I do hook the keyboard at one point (not the mouse though) but that code hasn't been touched for months while the problem is just a week old.
I did install Telerik's big suite of everything (trial) just before this started to show so my first suspicion was Telerik's VS integration was the culprit. I uninstalled all Telerik VS integrations (the "JustXXX" products) but the problem remain.
I would be very greatful to anyone being abe to give a hint as to what might be going on here.
Thanks
EDIT 1:
I have now tried building a new solution, moving all projects into it but the problem remains.
I then uninstalled everything Telerik, just to make sure, but this also was to no effect.
The next test was to load the exact same solution on a different machine and that did help. That machine has no 3rd party integrations with VS2010 except for reSHarper 6.1.
I have also analyzed the issue bit more and the typical scenario is that the first few times a breakpoint is hit the UI freezes for apeoximately ten seconds. Mouse/keyboard stops responding but the cursor keeps blinking in the code editor. The next few breakpoints does the same and often stepping from one line to another will cause a very long delay (no UI freeze though).
Also, if the first breakpoint is set very early in my application startup code I might not experience the problem. But as I continue to step through the code the debugger becomes more sluggish as the application initializes itself (in separate threads).
As I've said before this happens for a single application so the code is clearly related somehow.
Does anyone have good knowledge of how the debugger operates? Apart from the obvious steps needed whenever a breakpoint is set or the user steps from one line to another (refresh stack trace and watch windows) what is going on in the background that might freeze up everything and how is it possible?
My last hope is a complete reinstall of VS2010 but I hope I can solve this before that option is required.
I have finally found the cause for this weird behavior. As I mentioned in the original post I do hook the keyboard (AND mouse, I had forgotten I did that) during the application's initialization in order to be able to detect user inactivity.
The monitoring takes place in a background thread that simply waits for an AutoResetEvent to discover user activity or inactivity. For some odd reason the AutoResetEvent.WaitOne(...) somehow affects the debugger. My current fix is to just avoid the wait if the debugger is attached.
I still cannot explain why this happens now. It has been working for a year but the cause for the problem is finally found and dealt with.
I have submitted my question to Microsoft, hoping to get a good explanation. If I do I will post it here.
If you really have the problem with one Project / Solution you could try to create a new empty solution and add the project there, maybe this helps.
I don't really know much about the inner workings of Visual Studio (after all it must be one of the most complex pieces of software out there). But what I've learned is, that a reinstall often is the best and fastest solution (even if it takes an hour or two). Just make sure you backup any settings you don't want to lose.
Update:
I found this one here, maybe you've already found it too: http://connect.microsoft.com/VisualStudio/feedback/details/260864/visual-studio-debugger-occasionally-locks-up-the-entire-windows-gui
You could give it a try and disable the language bar.

How do I create a page template?

So, I must be missing something.
I want to create a specific template for a Basic Page with Drupal 7. I've read about doing something like creating a file called page—mypagename.tpl.php, and putting it in the theme folder but this has not worked for me.
Can anyone provide a quick walk through for this?
Drupal makes my head hurt. :\
Thank you.
Make sure to clear your cache in Drupal after major theme changes which include adding files to the theme as above, otherwise your theme may not pick up the new files.
Last I checked, the Devel module was still buggy for D7, but if it has come along then I highly recommend using this along with the devel_themer module, it has a tool that will tell you what exactly to name your theme files for different elements (pages, nodes, fields, etc).

YouTube XL in WPF WebBrowser?

I'm trying to create a simple HTPC interface and found YouTube XL (http://youtube.com/xl) which i thought would be cool and easy to add to my program.
I'm using WPF so i simply tried to add a System.Windows.Controls.WebBrowser and navigate to that adress.
The problem is that there is no video, everything else around the actual video works fine and other pages(including normal youtube) works fine. Youtube XL also works fine in normal Internet Explorer(8).
Is there anything that differs between IEs and WPFs browser control that might cause this problem?
Edit: I am compiling the program for x86, otherwhise flash doesn't work at all. All other web pages i have tried, including normal youtube, works just like normal.
The strangest thing is that it worked once! The first time i tried it i got video, since then there is only black :(
There shouldn't be a difference. You might be subject to this bug (and workaround) if you are using an x64 version of Windows:
http://blogs.msdn.com/uberdemo/archive/2009/07/09/circumventing-an-ie-flash-display-issue-in-the-wpf-webbrowser-control-on-x64-machines.aspx
You need to set the project to compile for x86 processors, since on x64 systems the 64-bit webbrowser is used, which, when i last checked, didn't have a working flash plugin yet. Not sure if there is one now, though.
OP here, accidentally ate my cookies.
Deleting browser history in Internet Explorer solved the problem.
Deleting the ie history and cache only resolved the issue as a one time thing only.

Resources