document
stringlengths 0
28.6k
| label
stringclasses 17
values |
---|---|
I am using the Motion package for linux to act as a security system with two Microsoft LifeCam HD-5000 webcams. In general it's working very well but I'm experiencing a weird issue. Every now and then the feed from one cam will exhibit "crosstalk" or "crossover" from the other cam, in sweeping bars, best described in this image (highlighted in red):  As you can see, the image is a mixed mess of the inside and the outside camera feeds. I believe this article from Motion's wiki is describing the same issue, however there is no solution there besides: > If you need more than 1 USB camera add extra USB PCI cards to your computer However that is talking about USB 1.1, and these are USB 2.0 cameras. Also, I do believe this system has two UCB cards and that the cameras are connected to two different USB busses: root@chef:~# lsusb -t /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/8p, 480M |__ Port 2: Dev 3, If 0, Class=stor., Driver=usbfs, 480M |__ Port 3: Dev 4, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M |__ Port 3: Dev 4, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M |__ Port 3: Dev 4, If 2, Class=audio, Driver=snd-usb-audio, 480M |__ Port 3: Dev 4, If 3, Class=audio, Driver=snd-usb-audio, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci_hcd/2p, 480M |__ Port 1: Dev 2, If 0, Class=hub, Driver=hub/6p, 480M |__ Port 2: Dev 3, If 0, Class=HID, Driver=usbhid, 12M |__ Port 3: Dev 4, If 0, Class=HID, Driver=usbhid, 1.5M |__ Port 4: Dev 5, If 0, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M |__ Port 4: Dev 5, If 1, Class='bInterfaceClass 0x0e not yet handled', Driver=uvcvideo, 480M |__ Port 4: Dev 5, If 2, Class=audio, Driver=snd-usb-audio, 480M |__ Port 4: Dev 5, If 3, Class=audio, Driver=snd-usb-audio, 480M root@chef:~# lspci 00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06) 00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA IDE Controller (rev 06) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06) 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01) 02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57788 Gigabit Ethernet PCIe (rev 01) So my questions are: 1. Does anyone know what could cause crossover like this? 2. Any other troubleshooting suggestions? 3. I am guessing I will need to ask the developers of Motion for support, so before I do, can anyone confirm that I do have the cameras connected to two different PCI cards as they suggested? | cqadupstack-unix |
I obviously know how to create subdomains via CPanel but does anyone know what exact method CPanel uses to achieve this? | cqadupstack-webmasters |
I hope you can enlighten me. I get varying answers in Google and I need to find out which is the correct grammatical structure for these sentences. > The rest of the staff is/are on leave at the moment. > > The rest of my family is/are arriving late. | cqadupstack-english |
Background. Multicenter studies rely on data derived from different institutions. Forms can be designed to standardize the reporting process allowing reliable comparison of data. Objective. The purpose of the report is to provide a standardized method, developed as a part of a multicenter study of vertically transmitted HIV, for assessing chest radiographic results. Materials and methods. Eight hundred and five infants and children were studied at five centers; 3057 chest radiographs were scored. Data were entered using a forced-choice, graded response for 12 findings. Quality assurance measures and inter-rater agreement statistics are reported. Results. The form used for reporting chest radiographic results is presented. Inter-rater agreement was moderate to high for most findings, with the best correlation reported for the presence of bronchovascular markings and/or reticular densities addressed as a composite question (kappa = 0.71). The presence of nodular densities (kappa = 0.56) and parenchymal consolidation (kappa = 0.57) had moderate agreement. Agreement for lung volume was low. Conclusion. The current tool, developed for use in the pediatric population, is applicable to any study involving the assessment of pediatric chest radiographs for a large population, whether at one or many centers. | trec-covid |
I came across the following article W3 Total Cache - How to disable “Performance” menu under multisite? However on testing it with the latest version of WordPress 3.7 and W3 Total Cache v0.9.3 it seems to no longer work. How can I update the code from the link above so it works I also have the following code which works it removes the “Performance” from the admin top bar //Remove Performance function ds_w3tc_remove_adminbar() { global $wp_admin_bar; if ( ! is_super_admin() ) { $wp_admin_bar->remove_menu('w3tc'); } } add_action( 'admin_bar_menu','ds_w3tc_remove_adminbar',999); | cqadupstack-wordpress |
What's the idea behind rm not removing non-writable file by default? Every time you want to remove a file that is non-writable file for current user but you have a write permission on directory get this warning and you need to pres `y' to confirm deletion: rm: remove write-protected regular file I wonder why are non-writable files treated in such special way? One thing that comes to my mind is that such files are usually user config files that contain user secret data such as encrypted password so rm warns before deleting them. Now, what is the real reason? | cqadupstack-unix |
Which would it be--it is us, or it is we? "Who is the real culprit? It is us, the ignorant, apathetic people of America." Or, "Who is the real culprit? It is we, the ignorant, apathetic people of America." Or plural? "Who are the real culprits? They are us, the ignorant, apathetic people of America." (Sounds more like the name of a retail store--They R Us.) | cqadupstack-english |
I modified a site recently : - I added many google analytics events, to better understand user behaviour. - I added also two buttons on almost all the pages of the site. Those buttons show modal-views (I am using bootstrap) with questions about user opinion. This modals views are on almost all pages of the site. After this modification the ranking of the site decreased on google search from the second place to the seconde page :( Is it the events-collected or the model-views added ? If the model-views are the reason, then how to better do similar surveys ? Did you have please similar experience, or explanation to this ? Perhaps it is the effect of panda4 update. In this cas, what can I look for to improve the site. How to debug the problem/reasons ? | cqadupstack-webmasters |
I am wanting to update the fields on my server using a FeatureDataForm. I have followed the documentation, but it still does not work. It also does not have the buttons in the form that say 'OK' and 'Delete' like the documentation does. Any help will be appreciated. XAML (FeatureDataForm): <Border x:Name="FeatureDataFormBorder" Visibility="Collapsed" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10,10,10,0" Width="300" Height="300" > <Border.Effect> <DropShadowEffect Color="Black" Direction="-45" BlurRadius="20" Opacity=".75" /> </Border.Effect> <esri:FeatureDataForm x:Name="MyFeatureDataForm" Foreground="Black" BorderBrush="{StaticResource PanelGradient}" BorderThickness="12" IsReadOnly="False" LabelPosition="Left" /> </Border> XAML(MyMap): <esri:Map x:Name="MyMap" Background="#FFE3E3E3" WrapAround="True" MouseRightButtonDown="MyMap_MouseRightButtonDown" Extent="-9834972.92753924,4441899.425293319,-9833977.88119163, 4442762.485358352" Loaded="MyMap_Loaded"> <esri:Map.Layers> <esri:ArcGISTiledMapServiceLayer ID="MyLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> <esri:FeatureLayer ID="WaterValves" Url="http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer/0" Renderer="{StaticResource MySimpleRenderer}" OutFields="*" MouseLeftButtonUp="FeatureLayer_MouseLeftButtonUp" MouseLeftButtonDown="FeatureLayer_MouseLeftButtonDown_1" DisableClientCaching="True" Mode="OnDemand"/> <esri:GraphicsLayer ID="CandidateGraphicsLayer"> <esri:GraphicsLayer.MapTip> <Grid> <Rectangle Stroke="Gray" RadiusX="10" RadiusY="10" Fill="#77FF0000" Margin="0,0,0,5" > <Rectangle.Effect> <DropShadowEffect/> </Rectangle.Effect> </Rectangle> <Rectangle Fill="#DDFFFFFF" Stroke="DarkGray" RadiusX="5" RadiusY="5" Margin="10,10,10,15" /> <StackPanel Orientation="Vertical" HorizontalAlignment="Center" Margin="30,20,30,30"> <TextBlock Text="{Binding [Address]}" HorizontalAlignment="Left" Foreground="Black" /> </StackPanel> </Grid> </esri:GraphicsLayer.MapTip> </esri:GraphicsLayer> <esri:ArcGISDynamicMapServiceLayer ID="CalvertCity" Url="http://localhost:6080/arcgis/rest/services/CalvertCity_Test_2/MapServer" /> </esri:Map.Layers> </esri:Map> C#: private void MyMap_Loaded(object sender, RoutedEventArgs e) { MyFeatureDataForm.FeatureLayer = MyMap.Layers[1] as ESRI.ArcGIS.Client.FeatureLayer; } private void FeatureLayer_MouseLeftButtonDown_1(object sender, GraphicMouseButtonEventArgs e) { e.Graphic.Selected = !e.Graphic.Selected; if (e.Graphic.Selected) MyDataGrid.ScrollIntoView(e.Graphic, null); } I believe this tells me that the map is editable:  | cqadupstack-gis |
Food, food, and food. Everyone loves food. Food is better than sleeping. | webis-touche2020 |
I would like to ask how do we estimate the probabilities in TRANS_GUESS and EMIS_GUESS matrices (see here http://www.mathworks.com/help/stats/hidden- markov-models-hmm.html#f8288 ) as an input for the Baum-Welch algorithm. Should they be calculated based on the data or are they completely random? I am a little bit confused about this issue. | cqadupstack-stats |
Despite reduction in cardiovascular (CV) events and end-organ damage with the current pharmacologic strategies, CV disease remains the primary cause of death in the world. Pharmacological therapies based on the renin angiotensin system (RAS) blockade are used extensively for the treatment of hypertension, heart failure, and CV remodeling but in spite of their success the prevalence of end-organ damage and residual risk remain still high. Novel approaches must be discovered for a more effective treatment of residual CV remodeling and risk. The ACE2/Ang-(1–9) axis is a new and important target to counterbalance the vasoconstrictive/proliferative RAS axis. Ang-(1–9) is hydrolyzed slower than Ang-(1–7) and is able to bind the Ang II type 2 receptor. We review here the current experimental evidence suggesting that activation of the ACE2/Ang-(1–9) axis protects the heart and vessels (and possibly the kidney) from adverse cardiovascular remodeling in hypertension as well as in heart failure. | trec-covid |
When I equip a weapon that I don't have the skill for, I get the **Bad Weapon!** status effect. While it says, "Your attacks will be less effective until you get rid of it!", most status effects state what they do and what stats they change, but this doesn't have any more information in the tooltip. When I'm duel wielding, Vampirism and Dwarven Handshake still proc and I don't notice any change in my primary or secondary stats. So what does **Bad Weapon!** actually do? A quick look at the wiki (I'm mostly avoiding spoilers) and a search on Google didn't turn up anything promising. | cqadupstack-gaming |
For my project I need to map areas of major carbon sequestration using NDVI. The plan is that areas that have a high NDVI value (which stays high over seasons and over years) could be identified as areas of major carbon sequestration. I am using the MODIS NDVI and I have to compare this to the vegetation structure in my study area, which is around southern Zambia/northern-eastern Namibia. My questions are: 1. Where can I find information on the range of NDVI values found or expected for different kinds of vegetation, for example what is the max/min NDVI for savannah?. I have tried looking in papers that use NDVI but without success 2. Are there other remotely sensed products that could help me calculate carbon sequestration for my study area? This is only one, fairly small aspect of my project, but is starting to eat up lots of time. | cqadupstack-gis |
> **Possible Duplicate:** > When will my phone get the Android 2.3 update (Gingerbread)? I Recently bought an Alcatel OT-990 Android 2.2 Froyo unfortunately it has some software bugs like turning display off when in voice call not to operate on touch screen...! Can i upgrade the os to the next version? or atleast can i reinstall the same version in it? How can my problem solved? Details: **Brand:** Alcatel **Model:** Alcatel One Touch 990 **Firmware Version:** 2.2.2 **Baseband Version:** 60501005 **Kernel Version:** 2.6.32.9-perf android-bid@aclgcl-ubnt #1 **Build Number** :FRG83G.V568-0 Region: **India** | cqadupstack-android |
Accepted. | webis-touche2020 |
When something can have both favorable and unfavorable consequences, the term `double-edged sword` is often used to describe it. Why? Does a `double-edged sword` have unfavorable consequences? Are `double-edged swords` known to accidentally kill the person wielding the sword? | cqadupstack-english |
I'm working on an exchange site of sorts where people will be able to list or request surplus items inside of our organization. Listings will just be submitted as 'posts' but I've created a custom post type 'request' for requests and it seemed to be working fine; I'm displaying the requests on a page with my own little loop that shows the post title, excerpt, thumb and category (Both 'posts' and 'requests' share the same category taxon.) The problem is, I can't seem to view the 'requests' by category in the same blog style format that I can with posts. If I click on the category next to a request, It takes me to the 'posts' with that category. This seems like it would be pretty basic so I'm not sure what I'm missing. I can go to `mysite.com/category/mycategory` to see all of my listings ('posts') by category and I can go to `mysite.edu/request` to see all the requests but I can't just sort requests by category. Just in case, here's my custom post type code. Also, I have not selected a blog page in settings, I just left it blank - I don't think that really makes a difference, I just thought I would mention. One more thing, If I include a category widget in the sidebar, it includes both 'posts' and 'requests' in the post count but if I click the link, obviously, it just goes to the 'posts' in that cat. <?php /* Plugin Name: U Custom Post Types Plugin URI: http://mysite.edu Description: Creates custom post types Version: 0.1 Author: Me Author URI: http://mysite.edu */ function my_custom_post_request() { $labels = array( 'name' => _x( 'Requests', 'post type general name' ), 'singular_name' => _x( 'Request', 'post type singular name' ), 'add_new' => _x( 'Add Request', 'request' ), 'add_new_item' => __( 'Add New Request' ), 'edit_item' => __( 'Edit Request' ), 'new_item' => __( 'New Request' ), 'all_items' => __( 'All Requests' ), 'view_item' => __( 'View Request' ), 'search_items' => __( 'Search Requests' ), 'not_found' => __( 'No requests found' ), 'not_found_in_trash' => __( 'No requests found in the Trash' ), 'parent_item_colon' => '', 'menu_name' => 'Requests' ); $args = array( 'labels' => $labels, 'description' => 'Holds our requests and request specific data', 'public' => true, 'menu_position' => 5, 'supports' => array( 'title', 'editor', 'thumbnail', 'excerpt', 'comments' ), 'has_archive' => true, 'taxonomies' => array('category'), 'capabilities' => array( 'publish_posts' => 'publish_requests', 'edit_posts' => 'edit_requests', 'edit_others_posts' => 'edit_others_requests', 'delete_posts' => 'delete_requests', 'delete_others_posts' => 'delete_others_requests', 'read_private_posts' => 'read_private_requests', 'edit_post' => 'edit_request', 'delete_post' => 'delete_request', 'read_post' => 'read_request', ), ); register_post_type( 'request', $args ); } add_action( 'init', 'my_custom_post_request' ); ?> | cqadupstack-wordpress |
I conducted a t-test / ANOVA (both repeated measurements) and I want to represent the difference in the mean via a bar graph. There are several different views about the appropriate error bars for repeated-measurements: personal preference (Field, 2000), Root Mean Square Error (Estes, 1997) or rather Statistical Significance Bars (Schunn, 1999). What is the best solution? | cqadupstack-stats |
In a vacuum: On my left I have a rod that is 558000 miles long (3 light seconds). A button is secured to its end which activates a laser beam sent back to me once I've pushed the rod in the direction of the button. On my right I have a laser aimed at a reflector that is 558000 miles away pointing straight back toward me. I push the rod on my left and activate the laser on my right at exactly the same time. Which laser beam will reach me first, the one on the right, or the one on the left? | cqadupstack-physics |
Are there any filters that would make background image black and white? I have an image set as the background image using CSS, but now I need to apply a filter so that an image is shown in black and white only. Ideally, I would also like to apply opacity to it. The effect I really trying to achieve is to have background image black/white and on hover over that span element the filter would be removed, revealing the color version. And of course it has to work in Firefox, Chrome and Internet Explorer. | cqadupstack-webmasters |
I'm using a subdomain multisite and I receive a 404 when trying to visit posts. The main domain works, but the permalinks aren't working. When I use the default permalinks, they work, but when I use the custom ones like this `/base/%category%/%postname%/` it's not working. I'm wondering if it has to do with my .htaccess, since I've been editing that quite a bit. RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?nofillers.com$ RewriteCond %{REQUEST_URI} !^/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /$1 RewriteCond %{HTTP_HOST} ^(www.)?nofillers.com$ RewriteRule ^(/)?$ /index.php [L] | cqadupstack-wordpress |
trec-covid |
|
One of the most famous experiments in quantum mechanics in the context of wave-particle duality is certainly passing a beam of electrons through two slits, which results in an interference pattern being formed on a screen positioned after them. Now, **starting from the Schrödinger equation** (which we know is obeyed by electrons), how can we derive the formula describing the interference pattern? I am pretty sure we already know the answer, i.e. it is the same pattern generated by light going through two slits (so a sine squared modulated by a sinc envelope), but how do we get it **_from quantum mechanics_** ? | cqadupstack-physics |
What is the best material for understanding algorithmic analysis by a newbie? | quora |
There are more than those simple rights stated in the Constitution, people also have the freedom of religion, freedom to petition, right to bear arms. The state representatives can only go by what the people of the state want, which there are many people of those states who are gay. Many gay people are judged and looked down upon for who they are, which is not right. The states cannot always have control, the Constitution does hold very important things to it also the congress and others of the Judicial Branches have to follow it by law, or they can be taken out of office. | webis-touche2020 |
It's been a couple years since I've taken a physics class, and I have been wondering about this basically since I bought my car: I drive a 2010 Honda Fit, which has a street weight of approximately 2489 pounds (1129 kg). One feature of the Fit is that the back seats can sit upright like a normal car, or they can completely fold down (this image from this page shows a folded seat next to an upright seat). Since I rarely have more than one passenger in my car, I can leave the rear seats folded down almost all the time. Having the seats folded down will result in a lower center of gravity which should increase my fuel efficiency (I think!). I haven't been able to find an estimate on the weight of the rear seats, other than "pretty substantial" according to this forum post. But I'm not sure how much of a difference it will make overall, anyway. The first part of my question is, assuming that raising or lowering the center of gravity affects acceleration and deceleration, how does one quantify that? Then, given that I may be able to move, say, 100 pounds of seat from the "dead center" of my vehicle to, say, 1-2 feet closer to the wheels, how can I estimate how that will affect my fuel economy? Perhaps a more specific question would be, how can I estimate how that will affect my acceleration? (which is of course when I get the worst fuel economy, besides being stopped) | cqadupstack-physics |
This is a very top level question with no code examples attached. I have an interest in using Mathematica to read raw files coming from a Canon camera, before they are converted into jpg's, where data is lost. Are there any existing non proprietary mathematica scripts, which can read a CR2 file from a Canon camera and display its image as it would if a jpeg were imported. At the very least a script that can display data about the image stored in the CR2 file to include intensity, size, pixel value, LRGB histograms, etc... | cqadupstack-mathematica |
What are some mind-blowing computer tools that exist that most people don't know about? | quora |
> **Possible Duplicate:** > What are the best ways to increase your site's position in Google? I'm a web developer (.NET) and a newbie to the SEO world! Where and how to start ? What are the steps to go from a newbie to be a more experienced SEO ? Thanks in advance =) | cqadupstack-webmasters |
It is admission season for graduate schools. I (and many students like me) am now trying to decide which statistics program to pick. 1. What are some things those of you who work with statistics suggest we consider about masters programs in statistics? 2. Are there common pitfalls or mistakes students make (perhaps with regard to school reputation)? 3. For employment, should we look to focus on applied statistics or a mix of applied and theoretical statistics? **Edit:** Here is some additional information about my personal situation: All of the programs I am now considering are in the United States. Some focus on the more applied side and give masters degrees in "applied statistics" while others have more theoretical coursework and grant degrees in "statistics". I'm personally not that intent on working in one industry over another. I have some programming background and know the tech industry a little better than, say, the genomics or bioinformatics industry. However, I'm primarily looking for a career with interesting problems. **Edit** : Tried to make the question more generally applicable. | cqadupstack-stats |
IANAP, so feel free to berate me for thinking apocryphal thoughts! Just as magnetism has two charges, in which particles of like-charge repulse and particles of dissimilar charge attract, might gravity have two charges in which particles of like-charge attract and particles of dissimilar charge repulse? In practice, the state of magnetism means that there is no system composed of many particles in which all particles attract. Rather, there is a net 0 charge if there are equal numbers of each particle type. My silly theory regarding gravity would mean in practice that there would be two (or more) "clumps" (or universes) in existence, which are racing away from each other. So in our clump (universe) we see only attracting particles, because all the opposing particles have long since separated out and are racing away beyond the boundary of the observable universe. Just like the alien who lands in China and assumes that all humans have slanted eyes, we only observe the attracting particles (or "charge") and disregard the other, unobservable, "charge". Is there any way to disprove this idea, or like string theory can I go one believing it as it can never be disproved? Thanks. | cqadupstack-physics |
ever since I begun calculating thermodynamical cycles, I've had problems with determining the sign of the work along a particular bit of the cycle. Of course, I guess that an arbitrary cycle is 'bendy' and the sign of the work differential depends strongly on the coordinates, but usually the cycles I deal with consist of a couple of 'parts', for instance, adiabatics, isothermals, isochorics, etc. And whenever asked to calculate the total work done in a cycle (for instance to find the efficiency), I just kind of guessed the sign and managed to get by, but now when trying to understand this on a deeper level, this is coming back to haunt me. So, suppose I have a thermodynamic cycle like this: LINK Where: (1)-adiabatic (2)-isobaric (3)-isothermal (4)-isochoric How do I know the sign of the work along each of these paths? | cqadupstack-physics |
Essentially, what you're describing is a leveraged investment. As others noted, the question is how confident you can be that (a) the returns on the investment will exceed what you're paying in interest, and (b) that if you lose the bet you'll still be able to pay off the loan without severely injuring yourself. I did essentially this when I bought my house, taking out a larger loan than necessary and leaving more money in my investments, which had been returning more than the mortgage's interest rate. I then got indecently lucky during the recession and was able to refinance down to under 4%, which I am very certain my investment will beat. I actually considered lengthening the term of the loan for that reason, or borrowing a bit more, but decided not to double down on the bet; that was my own risk-comfort threshold. Know exactly what your risks are, including secondary effects of these risks. Run the numbers to see what the likely return is. Decide whether you like the odds enough to go for it. | fiqa |
I would like to demonstrate the several forms of the Friedmann equations WITH the $c^2$ factors. Everything is fine ... apart that I have a missing $c^2$ factor somewhere. In all the following $\rho$ is the **mass density** and not the energy density $\rho_{E}=\rho c^2$ If we look at the wikipedia French page concerning the Friedmann equations, according to the demonstration of the last paragraph we have : The Einstein field equation : $G_{\mu\nu} = \frac{8\pi G}{c^4}T_{\mu\nu}$ The Einstein tensor : $G_{\mu\nu} = \begin{pmatrix} G_{00}&0&0&0 \\\ 0&G_{ij}&0&0 \\\ 0&0&G_{ij}&0 \\\ 0&0&0&G_{ij} \end{pmatrix}$ The Energy-Momentum tensor : $T_{\mu\nu} = \begin{pmatrix} T_{00}&0&0&0 \\\ 0&T_{ij}&0&0 \\\ 0&0&T_{ij}&0 \\\ 0&0&0&T_{ij} \end{pmatrix}$ with : $G_{00} = 3H^2+3\frac{k}{a^2}c^2$ $G_{ij} = -\left(3\frac{H^2}{c^2}+2\frac{\dot{H}}{c^2}+\frac{k}{a^2}\right)$ $T_{00} = \rho c^2$ $T_{ij} = -P$ But : $T_{00}$ and $T_{ij}$ have the same physical unit ($P$ and $\rho c^2$ are in $kg.m^{-1}.s^{-2}$) whereas $G_{00}$ and $G_{ij}$ does not have the same unit : in the first one we have $H^2$ and in the second one we have $\frac{H^2}{c^2}$ for example. **My question are** : is there a mistake in the french wikipedia demonstration ? Where is the missing $c^2$ ? Where can I find a good demonstration with the $c^2$ factors ? EDIT : Maybe I've found something. At the beginning of the demonstration, the author say that the metric is of the form : $ds^2=c^2dt-a^2\gamma_{ij} dx^i dx^j$ where $\gamma_{ij}$ depends on the coordinates choice. This formula seems ok to me. But then he writes that : $g_{00} = c^2$ $g_{ij} = -a^2\gamma_{ij} $ I have a doubt on $g_{00}$ : is it equal to $c^2$ or to $1$ ? In fact, if we choose to write $g_{00} = c^2$, then $T_{00} = \rho c^4$ isn't it ? | cqadupstack-physics |
I've written a function to create a polygon based on geometry collected from the IRubberBand interface as follows: ITrackCancel esc = new CancelTrackerClass(); esc.CancelOnKeyPress = true; esc.Reset(); ArcMap.Document.ActiveView.ScreenDisplay.CancelTracker = esc; //MessageBox.Show("This will allow a key press to cancel the tracking if uncommented"); IRubberBand rubberBand = new RubberPolygonClass(); IScreenDisplay screenDisplay = ArcMap.Document.ActiveView.ScreenDisplay; IGeometry geometry = rubberBand.TrackNew(screenDisplay, null); I am attempting to cancel the tracking of the polygon (i.e. cancel the drawing operation) on key press. The above code will not cancel the tracking unless I insert a MessageBox display somewhere before the tracking begins. My guess is that this problem is somehow related to this issue: How to use ITrackCancel to escape IRubberBand track? . I'm also a bit skeptical of how I've hooked into the active view. If anyone could provide some insight on how to best cancel this operation without an awkward messagebox being involved I would certainly appreciate it. | cqadupstack-gis |
I would like to have current page number and last page number both in Roman and Hebrew. At the moment I have (example): pag. 12 ( י״ב ) di 145 (where "pag." = page and "di" = of) I'm trying to add `\begin{hebrew}\Hebrewnumeralfinal{\pageref{LastPage}}\end{hebrew}` but I get an error. | cqadupstack-text |
I am trying to make a density plot to show the data that can found here. I tried with GNUplot previously. The result of GNUplot density plot for a rectangular set of data. I am able to do this only for a square (n x n) data set of the type: x_1, y_1, z_1 ... x_n, y_n, z_n where n is the number of lines. The file that I post here is different. It is more similar to the one in the example from `ListLinePlot` page, which shows how to make a density plot for a spherical distribution of numbers. Now the question is: Can I make the density plot of this data set with `listdensityplot` in _Mathematica_? The 2D map of the x-y is like that  and the . As You can see all the points are in particular regions of the plot. So I expect that the density map works only in this part of the space (something simliar to this link Spreading colors in ListDensityPlot) | cqadupstack-mathematica |
Motivation: Laboratory RNA structure determination is demanding and costly and thus, computational structure prediction is an important task. Single sequence methods for RNA secondary structure prediction are limited by the accuracy of the underlying folding model, if a structure is supported by a family of evolutionarily related sequences, one can be more confident that the prediction is accurate. RNA pseudoknots are functional elements, which have highly conserved structures. However, few comparative structure prediction methods can handle pseudoknots due to the computational complexity. Results: A comparative pseudoknot prediction method called DotKnot-PW is introduced based on structural comparison of secondary structure elements and H-type pseudoknot candidates. DotKnot-PW outperforms other methods from the literature on a hand-curated test set of RNA structures with experimental support. Availability: DotKnot-PW and the RNA structure test set are available at the web site http://dotknot.csse.uwa.edu.au/pw. Contact: [email protected] Supplementary information: Supplementary data are available at Bioinformatics online. | trec-covid |
The length contraction means that an object is the longest in the frame in which it is at rest. Lets assume i have a meter stick with length $\Delta x$ in my rest frame which is $x,ct$ and i want to know how long my meter stick seems to an observer moving with a frame $x',ct'$. **1st:** I draw world lines of a meter stick in a rest frame and they are vertical (parallel to $ct$ axis) as meter stick is stationary in this frame. **2nd:** If an observer in a moving frame $x',ct'$ wants to measure my meter stick he measures its edges at the same moment in his time, so i draw a tilted line (parallel to $x'$ axis). **3rd:** If i mesure the length $\Delta x'$ which is a length of a meter stick as observer in frame $x',ct'$ sees it, it seems to me that **he sees a longer distance than me.** This is not correct. Could anyone tell me what am i missing here?  | cqadupstack-physics |
I would like to do a factory reset of my Android phone. All guides on the internet I read show a factory reset button under the Privacy tab in Settings. However I don't have this button. Where is it hidden? I have Android 4.0.3 on an HTC one phone. | cqadupstack-android |
Pro has defined democracy as a system of government in which the majority rules (which I interpret as exerts authority). I will show that the (simplified) American government fits Pro's definition of a democracy. Congressional Elections Because of the 17th Amendment to the Constitution, Senators are popularly elected [1]. The House of Representatives are also elected by the people as seen in Article 1 of the Constitution, which also gives Congress lawmaking powers [2]. The Supreme Court ruled in US v. Ballin (1892) that a majority of a present quorum is enough to pass a bill [5]. Presidential Elections Presidents are elected through the Electoral College. Citizens vote in state elections that determine who the electors will vote for. Usually, the candidate who wins the popular vote in the state election gets all of that state's respective electoral votes. There are 538 electors, and a majority of 270 is needed to win the election [3]. If a majority is not reached, the House of Representatives will decide who becomes president out of the three candidates with the most electoral votes [4]. The President is given many powers by the Constitution, including command over the military and the ability to pardon [2]. Therefore, a majority holds authority both directly - with the passage of laws, popular elections of Congressmen, and Supreme Court Cases - and indirectly - by voting in state elections which determine who electors vote for, resulting in a President who acts according to the will of the majority. [1] https://www.senate.gov... [2] https://www.archives.gov... [3] https://www.archives.gov... [4] https://www.congress.gov... [5] https://www.law.cornell.edu... | webis-touche2020 |
I'm experimenting using Mosh instead of raw SSH for remote shell connections. So far I like it, but I've become used to being able to page-up or scroll through backscroll in my terminal window to see the results of older commands or commands that print too much info to fit in a single window. This works fine with normal SSH connections, but Mosh seems to be "eating" lines beyond the height of the window, so when I scroll back all I can see is stuff printed before I invoked Mosh. Is there a way I can get Mosh to behave like raw SSH and retain the backscroll? If it matters, the client is running on OS X Mountain Lion (10.7) in the standard "Terminal" program, with tcsh. | cqadupstack-unix |
I'm a consultant at one company. There is another consultant who is a year older than me and has been here 3 months longer than I have, and a full time developer. The full-time developer is great. My concern is that I see the consultant making absolutely terrible design decisions. For example, M:M relationships are being stored in the database as a comma-delimited string rather than using a conjunction table to hold the relationships. For example, consider two tables, Car and Property: Car records: * Camry * Volvo * Mercedes Property records: * Spare Tire * Satellite Radio * Ipod Support * Standard Rather than making a table CarProperties to represent this, he has made a "Property" attribute on the Car table whose data looks like "1,3,7,13,19,25," I hate how this decision and others are affecting the quality of my code. We have butted heads over this design three times in the past two months since I've been here. He asked me why my suggestion was better, and I responded that our database would be eliminating redundant data by converting to a higher normal form. I explained that this design flaw in particular is discussed and discouraged in entry level college programs, and he responded with a shot at me saying that these comma-separated-value database properties are taught when you do your masters (which neither of us have). Needless to say, he became very upset and demanded I apologize for criticizing his work, which I did in the interest of not wanting to be the consultant to create office drama. Our project manager is focused on delivering a product ASAP and is a very strong personality - Suggesting to him at this point that we spend some time to do this right will set him off. There is a strong likelihood that both of our contracts will be extended to work on a second project coming up. How will I be able to exert dominant influence over the design of the system and the data model to ensure that such terrible mistakes are not repeated in the next project? A glimpse at the dynamics: I can be a strong personality if I don't measure myself. The other consultant is not a strong personality, is a poor communicator, is quite stubborn and thinks he is better than everyone else. The project manager is an extremely strong personality who is focused on releasing tomorrow's product yesterday. The full-time developer is very laid back and easy going, a very effective communicator, but is someone who will accept bad design if it means not rocking the boat. Code reviews or anything else that takes "time" will be out of the question - there is no way our PM will be sold on such a thing by anybody. | cqadupstack-programmers |
I can't show this page using my Android device. I have used many browser but none of them show the timetable. I guess that my phone is missing something but what? I'm using Android 2.3.7. | cqadupstack-android |
I am having a quite odd case with WP today, and after spending about an hour searching on google and forums, can't find any answers. I hope posting here might allow me some chance to get help from WordPress Wizards that lurks somewhere on this support forum :) Anyway, my problem here is that I accidentally deleted page.php on my template (I am trying to remove all default template and make WordPress more personalized and customizing backend). I wanted to remove the template called 'Default Template' and make the template dropdown on pages shows like: One Page Template (or just a random name) Grid 2 sidebar Template (or just a random name) Store contents (or just a random name) After I deleted page.php -- the Default Template didn't removed at all, I still got it, and I got no way to style or remove it. Adding to the problem is when I recopied page.php from my repository, **I got DOUBLE template called 'Default Template' now!** I tried to replicate the problem by installing a fresh copy of WP 3.1.2 and duplicate 2010, and then I activate that duplicate. Here's my steps: 1. Delete page.php and page-with-sidebar.php 2. Check pages, now I got 'Default Template', but no page.php 3. Recopied page.php 4. Check pages, now I got TWO 'Default Template' 5. Switched to the original 2010 -- check pages -- works OK, with one 'Default Template' and one 'Default Template with Sidebar' 6. Switched back to the modified 2010 -- check pages -- still got double 'Default Template' Now, what I see here is that this problem definitely happens because I deleted page.php -- and it's stuck on the Theme, not on the wordpress installation itself. To make the matter worse, I can't find any file that is updated because of it -- really amusing. This is what looks close to what I have, but not really: * http://wordpress.org/support/topic/page-templates-gone-wp-271 * http://wordpress.org/support/topic/missing-template-files-makes-wp-fall-back-on-default My questions: 1. What should I do to fix the problem? I wanted to know if there is anyway to return the theme to recognize that we already got the page.php back. 2. How to remove the 'Default Template' from the dropdown lists of page template? Maybe through unset call on functions.php ? Many thanks in advance. Andre | cqadupstack-wordpress |
It would be better if they made it with more rounds than one, but anyways. Since the instigator didn’t define any definition, then I will do instead. DEFINITIONS From the resolution we understand that “know” is a verb. Know: Verb => To perceive or understand as fact or truth; to apprehend clearly and with certainty. [1] OR Be aware of through observation, inquiry, or information. [2] OR Have knowledge or information concerning. [2] Everything:All things. [3] REBUTTAL Pro claims that they know everything. The BOP was fully on Pro to prove their claim. The only argument they presented was that “Know is everything”. First of all, as we see from the definitions I provided, “know” cannot be “everything” , because “everything” is not a verb3 and “know” is a verb. Second, “know is everything” is a bare assertion that needs first to be proved. Third, Pro doesn’t show how “Know is everything” proves that they know everything. Fourth, 95% of the universe is dark (dark matter and dark energy) and we, including Pro, almost know nothing about it. This is true, until Pro proves otherwise. [4] CONCLUSION Pro only provided one irrelevant bare assertion as an argument which didn’t affirm the resolution in any level, as I showed above. I also provided some other arguments that it is impossible for Pro to know everything. Vote Con please! [1] . http://www.dictionary.com... [2] . http://www.oxforddictionaries.com... [3] . http://www.oxforddictionaries.com... [4] . http://science.nasa.gov... | webis-touche2020 |
How important is it to be the first person to wish someone a happy birthday? | quora |
I am using the projection EPSG:3857 to plot out points on the map. Since the Earth is closer to the shape of an ellipsoid instead of a sphere, I am interested to find out what is the range of error if I were to plot some points using this spherical mercator projection. Using examples of prominent points of interest such as the tip of Mount Everest, Statue of Liberty, etc, would be helpful. | cqadupstack-gis |
I do this very thing, but with asset allocation and risk parity in mind. I disagree with the cash or bust answers above, but many of the aforementioned facts are valuable and I don't mean to undermine them in anyway. That said, let's look at two examples: Option 1: All-in For the sake of argument let's say you had $100k invested in the SPY (S&P 500 ETF) in early 2007, and you kept it there until today. Your lowest balance would have been about $51k, and at this point the possibility of you losing your job was probably at a peak. Today you would be left with $170k assuming no withdrawal. Option 2: Risk Parity BUT if you balanced your investments with a risk parity approach, using negatively correlated asset classes you avoid this dilemma. If you had invested 50% in XLP (Consumer Staples Sector ETF) and 50% in TLT ( Long Term Treasury ETF) your investments low point would have been $88k, and your lowest annual return would be +0.69%. Today you would be left with $214k assuming no withdrawals. I chose option #2 and it hasn't failed me yet, even in 2016 so far the results are steady and reliably given the reward. My general opinion is simple: when you have money always grow it. Just be sure to cover your ass and prepare for rain. Backtesting for this was done at portfoliovisualizer.com, the one caveat to this approach is that inflation and a lack of international exposure are a risk here. | fiqa |
I have a web application in which i need to show a big number of data or records for clients. Now i 'll use pagination but i was wondering should I: 1. Load all the data once then pagination, sorting and sarching 'll be easy..But it 'll takes big time(using local DB it takes up to 9 sec.) 2. Or each time i show new page(from the pagination) i make a new request to server and then new request to DB to get the next records..But then what if the client click on `Prev` button, i 'll make a new request to get data that I had previously..Should i cach data that are loaded before and how if that's good technique? So load all data once or make a new request every time i need data that maybe have been loaded before. I'm using ASP.NET MVC SPA with durandaljs and knockoutjs | cqadupstack-programmers |
There are some things I encountered, studying the Bernouilly equation, that I don't understand. I was studying in the following book: http://www.unimasr.net/ums/upload/files/2012/Sep/UniMasr.com_919e27ecea47b46d74dd7e268097b653.pdf. At page 72-73 they derive the Bernouilli equation for the first time, from energy considerations. They state that it can be applied if the flow is steady, incompressible, inviscid, when there is no change in internal energy and no heat transfer is done (p.72 at the bottom). I understand this derivation, my problems arise when they derive the equation again at page 110-111, this time from the Navier-Stokes equation. I don't quite understand the derivation yet, but I am more confused about the outcome. It seems that the Bernouilli equation can now be applied under the four conditions they state (inviscid flow, steady flow, incompressible flow and the equation applies along a streamline) while it seems that there are no limitations to the internal energy of the flow and the heat transfer done. If I understand the last paragraph right, they state that the requirement that the flow is inviscid already comprises the claim that there is no change in internal energy ("the constant internal energy assumption and the inviscid flow assumption must be equivalent, as the other assumptions were the same", I don't really understand this reasoning, because the "inviscid flow assumption" was also already made in the previous derivation). Furthermore, if I follow the reasoning (so if I assume that inviscid flow indeed implies that there is no change in internal energy or if I assume that the Bernouilli equation can also be applied, without the assumption of "no change in internal energy") then example 4 at page 74 seems strange to me. It shows that in this situation the Bernouilli equation can't be applied directly (because headloss has to be included in the equation). However I think that we can easily repeat the derivation, assuming that the flow is inviscid (and assuming that the other conditions are satisfied), but this example shows that the internal energy increases, so inviscid flow can't imply "no change in internal energy". And the example also shows that the Bernouilli equation can't be applied, because head loss has to be considered (so this example seems to contradict the result at page 110-111). I hope someone can explain where my understanding is lacking, because this really confuses me about the conditions under which the Bernouilli equation can be applied. It would also be helpful, if someone could explain the derivation at p.110: what I don't understand is the definition of "streamline coordinates". Do they just take a random point on the streamline, where they place a cartesian coordinate system? | cqadupstack-physics |
What does manipulation mean? | quora |
Let $Q_p$ be a class of probability distributions on non-negative reals parametrized by $p$, so that $$ Q_p([0,\infty)) = 1. $$ I wonder which known classes of distributions are closed under taking the maximum and, i.e. if $X_1\sim Q_{p_1}$ and $X_2\sim Q_{p_2}$ are independent then $\max(X_1,X_2)\sim Q_{p_3}$. | cqadupstack-stats |
I pulled the term smurf naming from here (number 21). To save anyone not familiar the trouble, Smurf naming is the act of prefixing a bunch of related classes, variables, etc with a common prefix so you end up with "a SmurfAccountView passes a SmurfAccountDTO to the SmurfAccountController", etc. The solution I've generally heard to this is to make a smurf namespace and drop the smurf prefixes. This has generally served me well, but I'm running into two problems. 1. I'm working with a library with a `Configuration` class. It could have been called `WartmongerConfiguration` but it's in the Wartmonger namespace, so it's just called `Configuration`. I likewise have a `Configuration` class which could be called `SmurfConfiguration`, but it is in the Smurf namespace so that would be redundant. There are places in my code where `Smurf.Configuration` appears alongside `Wartmonger.Configuration` and typing out fully qualified names is clunky and makes the code less readable. It would be nicer to deal with a `SmurfConfiguration` and (if it was my code and not a library) `WartmongerConfiguration`. 2. I have a class called `Service` in my Smurf namespace which could have been called `SmurfService`. `Service` is a facade on top of a complex Smurf library which runs Smurf jobs. `SmurfService` seems like a better name because `Service` without the Smurf prefix is so incredibly generic. I can accept that `SmurfService` was already a generic, useless name and taking away smurf merely made this more apparent. But it could have been named `Runner`, `Launcher`, etc and it would still "feel better" to me as `SmurfLauncher` because I don't know what a `Launcher` does, but I know what a `SmurfLauncher` does. You could argue that what a `Smurf.Launcher` does should be just as apparent as a `Smurf.SmurfLauncher`, but I could see `Smurf.Launcher being some kind of class related to setup rather than a class that launches smurfs. If there is an open and shut way to deal with either of these that would be great. If not, what are some common practices to mitigate their annoyance? | cqadupstack-programmers |
What are the best self-help books you've ever read? | quora |
> **Possible Duplicate:** > Get exit code of process that's piped to another If I pipe the output of one command into another, is there a way for me to check explicitly whether the first command failed? For example, if `prog` processes a file and outputs to STDOUT: prog file1 | cmp - file2 is there a way to check if `prog` explicitly failed or succeeded (by return code)? I want to avoid the use of temporary files, and don't want to rely on the output of the second command; so, for the example above, I want to avoid examining the output of `cmp` to determine if `prog` failed (if there is no affirmative answer to my question, I'll just fall back to doing precisely that). | cqadupstack-unix |
I have heard that when a sailboat is sailing against the wind, it operates on the principle of 'lift'. I am unable to understand the explanation, based on Bernoulli principle, completely. My question is, when it says 'lift', it literally means that the boat is being 'lifted' out of the water? Like when we throw a stone across the lake and it skims and hops on the water? | cqadupstack-physics |
I've installed Wordpress locally using XAMPP and this step by step guide by Sunny Johal(Fifth post down on that page). The first time I used the step by step and ran all 3 of the SQL codes(UPDATE wp_options/wp_posts), and then deleted the wp_config file(the author of the guide suggested this as the easiest way to configure the file) the page displayed it's header correctly but all text and images were displayed in a way that it looked like there was no sylesheet. Thinking I had messed something up I deleted the SQL database and started over. Now to my knowledge I'm following the same steps the same way, but I'm getting two explicit problems: 1. Wordpress is displaying an old, 2013 version of the site. It's nearly identical to the 2014 version and the posts themselves are updated but I can tell from the header that it is definitely the 2013 version. 2. I've gotten to the 'delete wp_config' part of the steps but the site _continues to run_. I don't understand how this is possible, but looking at my localhost filesystem I can see that wp-config.php is indeed not there. This seems to be happening each time I try now, so I'm thinking I might have picked up a bad habit that I can't seem to pinpoint. I've tried to be as detailed as possible.. If there's any more helpful information I can give please let me know | cqadupstack-wordpress |
I have a random forest to perform classification. I need the real probability of the predicted class. They take a feature vector **X** and output a predicted class **C**. Additionally we can compute the confidence level **L** we have over the predicted class (my implementation calls that value PROBABILITY (I'm using OpenCV machine learning module) and it comes by returning the percentage of trees who voted for that particular class, say 80% of the trees voted for class C1 then L is 0.8) * How can we relate the value **L** or 'Probability' to the real probability of C given the feature vector X? * Can we simply use **L** as a reliable probability measurement? * Are the classifier performance values (true/false positive rate, etc) somehow considered into the value **L** , or do I need to use **L** as a prior estimate to compute the real probability given the classifier performance parameters? | cqadupstack-stats |
I have 14 different habitat classes and two activity states (so two variables – habitat and activity). For activity state A, I have a data count of over 300, but with B, I only have around 30 (so unequal sample sizes). I really want to see if one or more habitat/s is used significantly more than others during each activity state, but then I also want to compare habitat count between activity states, to see if they are significantly different in this regard. I have two other variables, site location and gender, and I would also like to see if the habitat count varies significantly between these two. Obviously it would also be nice to combine some of the variables, i.e., does habitat count vary between gender between sites, if this makes sense. I am currently using JMP8 as I have very limited experience with R. I have been using chi squared and contingency analysis (although a number of my cells have quite low counts, less than five, which chi squared struggles with). What would be the best way to approach this statistically? How would I need to format the data (it is currently in text rather than count form, as there are so many classes in the habitat variable that it seems otherwise difficult to manage)? Any help would be hugely appreciated!! | cqadupstack-stats |
I am trying to compare the means of two treatments on a continuous variable with a lot of zeros in it. I've tried a log(n+1) transformation but that did not get me to a normal distribution. Any suggestions? | cqadupstack-stats |
I have a series of about 1000 points on a chromosome and I want to know if they are clumped, over-dispersed, or neither. The chromosome can be viewed as a 1-dimensional. I've looked over some spatial stats and found 2 methods that look promising. First one can chop the line into M segments, and the number of points in each segment should be Poisson distributed with λ = N/M, where N is the total number of points. Then it isn't too hard to construct a chi-squared test, where the observed is the point count in each segment, and the expected is λ. The issue here of course is how to choose M. I guess you try a range of values and see how stable the result is. The second method is to compute the distance to the nearest neighbor (NN) for each point. The NN values are said to be Rayleigh distributed. I'm not very comfortable with this distribution and I'm struggling to construct a good test statistic for the NN values. Similarly, it would be easy to simulate a null distribution though Monte Carlo methods, but I'm not sure what the appropriate summary statistic is to compare my observed distribution against (maybe the variance?). Any help appreciated! | cqadupstack-stats |
I am looking for some help in building a sql to export specific data from the DB. In BuddyPress, I have a profile field set up called _Newsletter_. I need to export a list of user from the db who have ticked the _Yes_ (subscribe to newsletter). I have identified the tables/fields in use in my DB. SELECT `user_id` FROM `wp_bp_xprofile_data` WHERE `field_id` = 8 AND `value` LIKE 'yes' Where user_id is the Registered user iD Where field_id 8 is my Newsletter value. Now I need to link this with wp_user on user_id but don't know how to use 1 SQL on both table (sorry not my stuff). Second table is wp_user where the Value of User_id should be "linked" to ID. will appreciate some expert help thx RESOLVED AS `SELECT wp_users.ID , wp_users.user_email FROM wp_users LEFT JOIN wp_bp_xprofile_data ON wp_bp_xprofile_data.user_id = wp_users.ID , WHERE wp_bp_xprofile_data.field_id =8 AND wp_bp_xprofile_data.value = 'yes'` Field ID = 8 being the Field you want to get (in my example, newsletter) wp_bp_xprofile_data.value = Yes, being the value of my checkbox (ie Yes) | cqadupstack-wordpress |
Increased requirements regarding ergonomic comfort, limited space, weight reduction, and electronic automation of functions and safety features are on the rise for future automotive gear levers. At the same time, current mechanical gear levers have restrictions to achieve this. In this paper, we present a monostable, miniaturized mechatronic gear lever to fulfill these requirements for automotive applications. This solution describes a gear lever for positioning in the center console of a car to achieve optimal ergonomics for dynamic driving, which enables both automatic and manual gear switching. In this paper, we describe the sensor and actuator concept, safety concept, recommended shift pattern, mechanical design, and the electronic integration of this shift-by-wire system in a typical automotive bus communication network. The main contribution of this paper is a successful system design and the integration of a mechatronic system in new applications for optimizing the human-machine interface inside road vehicles. | scidocs |
I'm letting one of my coding buddies have root access to my Raspberry Pi, and as I was getting everything set up, I tested sudo as him. It gave me "the speech": > We trust you have received the usual lecture from the local System > Administrator. It usually boils down to these three things: > > #1) Respect the privacy of others. > #2) Think before you type. > #3) With great power comes great responsibility. What I'm wondering is how to tell sudo to repeat that once. I can't find where it stores the "warned users" list, and I don't want to go overkill and tell it to give The Speech every time. | cqadupstack-unix |
"If you force people to pay into the system more, then you can spend more and still claim the deficit is decreasing. If you increase government spending without increasing government revenue, then the deficit increases. If you increase government spending while also increasing government revenue, then the deficit doesn't increase. But that doesn't mean shit. Government revenue is mainly taxes. And the middle class pays most of them. Hence, ""the middle class carry more"" line above." | fiqa |
I have credit card debt of about $5000 That's the answer right there. You told us the 401(b) has no match. The next highest priority would be credit card debt that's costing you interest. You didn't mention the rate on the card, I'm assuming it's 8% or more. As far as your balance sheet (the 'bottom line') is concerned, pay off a 10% debt is the same as earning 10% on your money. If anyone promises you a higher return with a different investment, I'd run the other way. We hope the market, i.e. the US stock market, as measured by a broad index, say the S&P 500, will return 8-10%/yr over the long term, but this isn't guaranteed. Paying off that credit card will save you the interest every year, and free up the payments to invest elsewhere. In response to Marlene's comment - Crazy? No. Human nature and emotion is what it is. I honestly don't know how to address some of it. Years ago, I was in a similar situation with a reader who had a $5000 'emergency' account, yet had $5000 in credit card debt. I had a tough time getting my head around why it wasn't obvious this made no sense. In your case, I might suggest you pay the card down to below $1000 and have the credit line reduced. Paying high interest on $5K makes no sense at any point in one's life. At least a 20-something can dig his way out and learn a lesson. A pre-retiree shouldn't be throwing this money away. | fiqa |
I have been struggling for some time to find a way to search the asset tables using the FIND tool; I "discovered" address locators. Is this going to be my solution? The problem: * I have polygons for buildings, polygons for electrical distribution points (locations of transformers or generators), and symbols for electrical components (i.e. panels). * Asset or location ID is assigned to each feature (such as an asset number or pad number) which is unique. * All of the data related to the building such as contract and maintenance data and electrical distribution ID is in a separate table. There is also a separate table each of HVAC units, plumbing assets, and other assets all referenced to the buildings unique ID * A table of electrical assets reference the panel asset number, the building ID and the electrical source ID. * Joins will not work in that the relationships are 1-many, and the data is being replicated. * The tables are updated daily from an excel spreadhseet * System is ArcGIS 10.1 on SQL Express SDE geodatabase replicated one-way to three child servers * Users are searching for assets through the ArcGIS program and are trades people with little computer experience. Searching individual tables and then having to run a link to activate relationships is ridiculous! The FIND tool just seems the logical answer but the basic tool will only search features in the TOC, not the tables. I want to be able to search the entire database, run identify, and see everything that is connected. Example: find an HVAC unit by asset number (found in database table), zoom/pan/identify asset and can see with no further hoops to jump through the facility it's in, the electrical panel that feeds it, the generator that powers the panel, and the other electrical assets attached to the same system. I have something that will do that now, but it was something forced and edits do not replicate. I created feature classes and loaded the data from the spreadsheets but the records have no geometry, therefore edits to the feature classes do not replicate, but I do have full search function for any string; which the users love. I need to create the system properly so it fully functions in searching, editing, and replication. I created an address locator with the asset number as the single field but if I type in only the digit part of the "address" it will not find it, even dumbing down the confidence to 1. It will find it if I type in the full name ABCXZ12345 instead of 12345. It also does not give me the option to identify, drats! Back to my question - will a composite address locator solve most of my problem? Is there a way to configure it for partial string search? Long explanation but I hope it conveys what I am trying to do. | cqadupstack-gis |
Ever heard of a company awarding bounty points for bugfixes? Making team members work to do the most, as some bonus money will be dependent on it? Having them split, or pay bounties to others to test, so they don't 'lose' points when it reaches a UAT environment? I heard this from management for the first time today. To me, it sounds like a pretty ridiculous approach to software development. It sounds as if the team members will be competing with each other in a non-productive way, essentially slashing the productivity they've got going now. Any thoughts? Have you ever seen something like this actually work? Did it help or hurt the team? _**UPDATE 4/6/11:_** This approach was cancelled due to feedback from the whole team! I'm happy to learn that it wasn't just me thinking it wasn't a great idea. | cqadupstack-programmers |
I need to place 2 USB (?) webcams that are looking at two doors. No sound needed, just a few things: * video files must be saved at least for 30 days (I have two eee pc's for the two webcams, so cable length doesn't matter) * video quality must be good enough [@night too! - infra cam needed] * timestamp on the video image I have a netbook that can do the recording. OS: **OpenBSD** | cqadupstack-unix |
Assault weapons are nothing more than common sporting rifles. Here is an example. Many will argue the AR-15 is the most practical firearm of all time, hence the popularity. The AR-15 uses a modular system, therefore it can quickly be configured for many different scenarios. Hunting, target shooting, self defense, just to name a few. It can be configured to fire many different calibers and projectiles. In it's normal configuration it has reasonable recoil and can be adjusted to suit people of all builds. | webis-touche2020 |
If you are searching for the best Hair Transplant Centre In Kharghar then contact with Aarjav Skin Care clinic which offers the best services for Hair Transplant, Laser Hair Removal, Laser Hair Tattoo Removal. To know more about Clinic Visit: http://www.aarjavskin.in/ or contact at: 9619418586 | fiqa |
Profile-driven personalization based on socio-demographics is currently regarded as the most convenient base for successful personalized advertising. However, signs point to the dormant power of context recognition: Advertising systems that can adapt to the situational context of a consumer will rapidly gain importance. While technologies that can sense the environment are increasingly advanced, questions such as what to sense and how to adapt to a consumer’s context are largely unanswered. In this chapter, we analyze the purchase context of a retail outlet and conceptualize it such that adaptive pervasive advertising applications really deliver on their potential: showing the right message at the right time to the right recipient. full version published as: Bauer, Christine & Spiekermann, Sarah (2011). Conceptualizing Context for Pervasive Advertising. In Müller, Jörg, Alt, Florian, & Michelis, Daniel (Eds.), Pervasive Advertising (pp. 159-183). London: Springer. | scidocs |
I am writing a thesis and I have made extensive use of hyperlinking through `\url` or `\url` within a `\footnote`. Now I would like to add a list (kind of like a simplified bibliography where each link appears only once) of all hyperlinks within the document. Is there a way to have that automatically generated for me? | cqadupstack-text |
There are graphics cards that only differ in the amount of RAM they have, e.g. MSI GTX770 Twin Frozr II Gaming OC **4GB** and MSI GTX770 Twin Frozr II Gaming OC **2GB**. Is more RAM better for more monitors? If I only use 1 or 2 screens what is the advantage of having more RAM? | cqadupstack-gaming |
I would like to color a few keywords in my slides under the listings environment In the following contrived example, I would like to color the `__shared__` word with orange and WIDTH with blue. How would I modify this? \begin{frame}[fragile] \lstset{language=C++, basicstyle=\ttfamily\scriptsize, keywordstyle=\color{blue}\ttfamily, stringstyle=\color{red}\ttfamily, commentstyle=\color{green}\ttfamily, breakline=true } \begin{lstlisting} __global__ void MatMulKernelFast(double* d_M,double* d_N,double* d_P,int WIDTH) { __shared__ double ds_M[TILE_WIDTH][TILE_WIDTH]; __shared__ double ds_N[TILE_WIDTH][TILE_WIDTH]; } \end{lstlisting} \end{frame} Here is the output of the previous code  | cqadupstack-text |
I am just beginning with _Mathematica_. I have received this code to study. I am not able to follow this particular section. I have tried looking it up on many forums, with no answer. Can you help? Clear[CSfunc]; CSfunc::usage="CSfunc[n_] returns {Cn,Sn} up to degree n >= 0"; CSfunc[n_] := Module[{cn,sn}, sn = Table[Sin[k*x*Pi/2], {k, n}]; (* anti-symmetric in x *) cn = Table[Cos[k*x*Pi/2], {k, n}]; (* symmetric in x *) cn = Join[{1/Sqrt[2]}, cn]; {cn, sn}]; << JavaGraphics`; doplot = False; doplot = True; If[True, (* check classic orthogonality: 2 on [-2,2], not yet on [-1,1] ... *) ntest = 6; xmax = 2; csn = CSfunc[ntest]; If[False && ntest < 5 && doplot, Plot[Flatten[csn], {x, -1, 1}, Axes->True, Frame->True]]; In the above portion of the program, I see `If[True etc.. If[False etc..]`, but no flag variable associated with it. So what condition is it checking? | cqadupstack-mathematica |
> **Possible Duplicate:** > Bulk load multiple shapefiles into PostGIS Is it possible to bulk upload shp files into postgis. Im currently playing around with postgis, qgis and geoserver (as a potential arcgis server, arcmap and arcsde replacements) and want i want to be able to do is run a batch file (I guess) that will upload a number of shp files (exported from arcsde) that overwrite existing shp/tables files in postgis. In effect postgis would be a slave database (for the time being). Med | cqadupstack-gis |
For a couple of years I've been hosting my blog on my own server. However, I'm getting tired of maintaining it myself, and I also wish to move away from the dasBlog engine, since development of that engine has stopped. For those reasons, I'd like to move the blog to a service that I don't host myself. It doesn't have to be free. However, I'd like to **move all the content** of the old blog so that **permalinks will still work** (redirecting to a new URL is also perfectly acceptable). The same goes for the RSS feed and comments. I was looking at wordpress.com, which looks good, but before I jump into that wanted to ask whether there are other options I should consider? | cqadupstack-webmasters |
If you're doing a solo project - would you use CI tools to build from a repository? I've used Hudson and Cruise Control in a team environment, where it's essential to build as soon as anyone checks anything in. I think the value of version control is still obvious, but do I need to build after every commit, seeing as I would just have built on my local machine, and no-one else is committing? | cqadupstack-programmers |
Few weeks ago I generated some content on my site. Now I am getting many visits from google, but those visits are from phrases that were in the content I added. But the most important key phrase was not in this content - but I added this key phrase in every title of every page possible. But still this phrase is not appearing on google. So my question is: how do I get google to index my site with a specific key phrase so that my site will appear on the first page? That phrase has not many competitors, there are about 2-3 sites that are kindof big, but the rest are just as small and unpopular as my page is. | cqadupstack-webmasters |
I have several non-duplicate page titles that match a search query, say for the query 'stackexchange': <title>John Smith Popular Content</title> <title>John Smith Audience</title> <title>John Smith Friends</title> <title>John Smith Analysis</title> I assume Google probably displays the most page-ranked page that matches the query, but does Google also take into account that this `page1` links to `page2`and `page3` which also have the search query in the title and therefore gives `page1` a better rank because my site also containts `page2` and `page3` about `searchterm`? The reasons I'm asking is because I'm trying to improve my rankings for SE queries such as `stackexchange`, and considering loading `page1` / `page2` / ... through JS while keeping the same URL. I assume this would mean Google won't even know what content `page2` has, so trying to understand his handling of multiple matches from same site better. | cqadupstack-webmasters |
> **Possible Duplicate:** > Which words in a title should be capitalized? Why are some book titles written with all letters in all words capitalized, while others choose to capitalize some words in the title? I mean, for example, when it comes to publication, what is the difference between "THINKING IN JAVA" and "Thinking in Java"? | cqadupstack-english |
There is an achievement for smashing a certain number of different monitors in the game. It seems like there are no possible ways to break some of the monitors, but I still haven't broken enough of them. How many monitors exist in Chapter 8? Is it possible to break each of those monitors (without using a glitch)? | cqadupstack-gaming |
I bought my phone since Christmas eve and when I checked my phone spec, my internal memory storage size is 4GB or 4GB ROM. (See details) My model is a brand from Philippines, _Starmobile Crystal_. When I took my first boot, my internal storage is 2GB and my external storage is 2GB also. I even haven't inserted my SD card into it. Although, I would wonder how does the external storage do and used for. Here's the overview again for the Starmobile Crystal: * 1GHz Dual-core MTK 6577 Processor * PowerVR SGX531 Graphics Card * 512MB RAM * 4GB Internal Storage, expandable up to 32GB via microSD * 2G/3G/HSDPA/WiFi/GPS/Bluetooth * 8.0-megapixel rear-facing camera with LED flash and backside illumination * 2.0-megapixel front-facing camera * Dual Sim, Dual Standby * 4.5-inch IPS Capacitive Touchscreen, qHD Pixel Resolution (960×540) * Android 4.0 Ice Cream Sandwich * 1700mAh Battery | cqadupstack-android |
I want to store location-polygon data in a parent-child relation. I am using spatial data in MySQL and Google map for polygon. Eg: 1. World * 1.1 US * 1.2 China * 1.3 Japan * 1.4 South Africa * 1.4.1 Pretoria * 1.4.2 Cape Town * 1.5 India * 1.5.1 New Delhi * 1.5.2 Chennai Table in mysql: CREATE TABLE IF NOT EXISTS `geom` ( `id` int(11) NOT NULL AUTO_INCREMENT, `g` geometry DEFAULT NULL, `location` varchar(100) NOT NULL, PRIMARY KEY (`id`) My questions are: 1. How can I identify India is the parent of New Delhi? 2. How to get children of India? Any spatial query? | cqadupstack-gis |
For example, I have: CharacteristicPolynomial[m, x] > > 0.5 + 0.1 x + x^2 > But Plot[CharacteristicPolynomial[m,x], {x,-1, 1}] gives errors. | cqadupstack-mathematica |
When a members logs in through WP admin, I would like to redirect them instantly to a custom URL. What will I need to change to make this possible? Respond with step-by-step details would be ideal. | cqadupstack-wordpress |
I have a rooted Samsung Galaxy S 2, and last night I updated it to Jelly Bean in hopes that it might solve a few small bugs. Most everything seems to be working as hoped. However, one new inconvenience has popped up. Before the upgrade, I controlled my MP3 player, Poweramp, by pressing the button attached to the wire of my headphones. One short press to stop and start songs, one long press to advance forward. After upgrading, whenever I press the button, the phone goes into voice search mode. That is, it turns on the microphone and is waiting for me to say something to search for using the Google search app. I have tried to look in system settings, and also in the settings for the Google search widget that's on the top of every screen. However, I can't find any way of turning this off. I want to give priority to Poweramp so that I can control music playback. How do I get voice search to stop getting in the way? | cqadupstack-android |
A growing number of commercial and enterprise systems increasingly rely on compute-intensive Machine Learning (ML) algorithms. While the demand for these compute-intensive applications is growing, the performance benefits from general-purpose platforms are diminishing. Field Programmable Gate Arrays (FPGAs) provide a promising path forward to accommodate the needs of machine learning algorithms and represent an intermediate point between the efficiency of ASICs and the programmability of general-purpose processors. However, acceleration with FPGAs still requires long development cycles and extensive expertise in hardware design. To tackle this challenge, instead of designing an accelerator for a machine learning algorithm, we present TABLA, a framework that generates accelerators for a class of machine learning algorithms. The key is to identify the commonalities across a wide range of machine learning algorithms and utilize this commonality to provide a high-level abstraction for programmers. TABLA leverages the insight that many learning algorithms can be expressed as a stochastic optimization problem. Therefore, learning becomes solving an optimization problem using stochastic gradient descent that minimizes an objective function over the training data. The gradient descent solver is fixed while the objective function changes for different learning algorithms. TABLA provides a template-based framework to accelerate this class of learning algorithms. Therefore, a developer can specify the learning task by only expressing the gradient of the objective function using our high-level language. Tabla then automatically generates the synthesizable implementation of the accelerator for FPGA realization using a set of hand-optimized templates. We use Tabla to generate accelerators for ten different learning tasks targeted at a Xilinx Zynq FPGA platform. We rigorously compare the benefits of FPGA acceleration to multi-core CPUs (ARM Cortex A15 and Xeon E3) and many-core GPUs (Tegra K1, GTX 650 Ti, and Tesla K40) using real hardware measurements. TABLA-generated accelerators provide 19.4x and 2.9x average speedup over the ARM and Xeon processors, respectively. These accelerators provide 17.57x, 20.2x, and 33.4x higher Performance-per-Watt in comparison to Tegra, GTX 650 Ti and Tesla, respectively. These benefits are achieved while the programmers write less than 50 lines of code. | scidocs |
> **Possible Duplicate:** > How to find web hosting that meets my requirements? I live in Denmark in the daily and need to find a web host that can keep up at the world level. Should there be some who is familiar with hotels that can follow the requirements below. **Overall** * Clustered Web * 24/7 Expert Helpdesk and Server Monitoring * Linux Operating System * Unlimited Subdomains * 50 MySQL Databases * FTP and FTPS Access * Fast connectivity to any destination - World Wide. (Stable/Low DNS, TTFB and similar) **Management** * Full DNS Management * Web Mail Access * phpMyAdmin * Cronjobs **Mail** * IMAP/POP3/SMTP * Mail Auto Responders * Catch-All Mailbox * Microsoft Exchange Enabled **Apache** * Python and perl CGI Support * Secure Server (SSL) * mod_rewrite * Full .htaccess Support **PHP** * PHP v 4.4 & 5.2 * ImageMagick and GD * CURL * RTF, POWERPOINT, EXCEL, WORD and PDF parser * Zip Utility * xhprof | cqadupstack-webmasters |
Human rhinoviruses (HRVs) are responsible for more than half of all cases of the common cold and cost billions of USD annually in medical visits and missed school and work. An assessment was made of the antiviral activities and mechanisms of action of paeonol (PA) and 1,2,3,4,6-penta-O-galloyl-β-D-glucopyranose (PGG) from Paeonia lactiflora root toward HRV-2 and HRV-4 in MRC5 cells using a tetrazolium method and real-time quantitative reverse transcription polymerase chain reaction and enzyme-linked immunosorbent assay. Results were compared with those of a reference control ribavirin. Based on 50% inhibitory concentration values, PGG was 13.4 and 18.0 times more active toward HRV-2 (17.89 μM) and HRV-4 (17.33 μM) in MRC5 cells, respectively, than ribavirin. The constituents had relatively high selective index values (3.3–>8.5). The 100 μg/mL PA and 20 μg/mL PGG did not interact with the HRV-4 particles. These constituents inhibited HRV-4 infection only when they were added during the virus inoculation (0 h), the adsorption period of HRVs, but not after 1 h or later. Moreover, the RNA replication levels of HRVs were remarkably reduced in the MRC5 cultures treated with these constituents. These findings suggest that PGG and PA may block or reduce the entry of the viruses into the cells to protect the cells from the virus destruction and abate virus replication, which may play an important role in interfering with expressions of rhinovirus receptors (intercellular adhesion molecule-1 and low-density lipoprotein receptor), inflammatory cytokines (interleukin (IL)-6, IL-8, tumor necrosis factor, interferon beta, and IL-1β), and Toll-like receptor, which resulted in diminishing symptoms induced by HRV. Global efforts to reduce the level of synthetic drugs justify further studies on P. lactiflora root-derived materials as potential anti-HRV products or lead molecules for the prevention or treatment of HRV. | trec-covid |
`ReplaceAll` seems not to reach inside `Image`, and I don't see why it shouldn't. Here is an example. Create a black and white image with four pixels: image = Image[{{1, 0}, {0, 1}}] The full form of `image` is: Image[List[List[1.`, 0.`], List[0.`, 1.`]], "Real", Rule[ColorSpace, Automatic], Rule[Interleaving, None]] The following line switches the pixels as desired: Image[ImageData[image] /. n_?NumberQ -> 1 - n] My question is, in the following usage, why doesn't `ReplaceAll` reach inside `Image` and accomplish the same? image /. n_?NumberQ -> 1 - n | cqadupstack-mathematica |
I have peculiar requirement. The author.php template is used as a profile page for the author where he can view his own posts and posts by other authors. This template has two custom loops to achieve this. The first loop is for displaying post by the author himself, whose profile is being viewed. So if the URL reads "http://example.com/author/john". The first loop is showing John's posts. Pagination for the first loop works absolutely fine. Arguments for the first loop: $args = array( 'post_type' => 'portfolio_post', 'posts_per_page' => 9, 'paged' => $paged, 'orderby' => 'date', 'post_status' => 'publish', 'author' => $author_id ); $custom_query = $wp_query; $wp_query = new WP_Query( $args ); ?> Arguments for the second loop: $authors = '2,3,5'; $args = array( 'post_type' => 'portfolio_post', 'posts_per_page' => 9, 'paged' => $paged, 'orderby' => 'date', 'post_status' => 'publish', 'author' => $authors ); $custom_query = $wp_query; $wp_query = new WP_Query( $args ); ?> The second loop is designed to show posts by other authors. The problem is with the pagination for the second loop. Since, I am viewing John's author page WP_Query is by default set by Wordpress to return posts only from the author John, whereas my second loop is actually looking for posts by other authors. Now, if John does not have any posts then pagination for the loop that fetches other authors post breaks, as $WP_Query->found_posts results "0". I am using Ajax to display results from both loops and it's working absolutely fine. I hoping this behaviour could be modified by using something like the "pre_get_posts" hook or may be something else. I could also be wrong in using the template "author.php" for this. Maybe I should use a different template? Please advise. Desperately need this working. | cqadupstack-wordpress |
I wanna find out what this sentence means. “ASOT is about as much “trance” as Nelson Mandela is indie punk.” So to generalize: "A" is about as much "B" as "C" is "D" Is this comparing A with B? Is this being sarcasm? | cqadupstack-english |
This question was raised before. But so far I haven't got any satisfactory answer yet. So I raise it again. Suppose we have the linear model $$ y = X \beta + v, \quad v \sim (0, \sigma^2 I), $$ where $X$ has full column rank. The least squares estimator $\hat{\beta}=X^\dagger y$ is claimed to be the best linear unbiased estimator of the true parameter vector $\beta$. I checked all the books and on-line materials I could find for the proof, but found all of them seem to have a derivation problem. To prove it, one assumes $\bar{\beta} = Cy$ is any linear unbiased estimator of $\beta$. Using the fact that $\bar{\beta}$ is an unbiased estimator, we can easily obtain $(CX-I)\beta = 0$. Then all the books and on-line materials just conclude that $CX-I$ must be 0. I don't understand this at all. If $\beta$ were arbitrary, then certainly we would have $CX-I = 0$. But $\beta$ here is a specific parameter vector. Why can one claim $CX-I=0$ ? | cqadupstack-stats |
"Just to add about using debit card as ""credit"" vs ""debit"" way: In addition to the difference of having to enter the PIN when using ""debit"" mode (vs having to sign in ""credit"" mode), for stores that offer cash back (i.e. get cash out of your account at the same time as paying), you can only get cash back when using ""debit"" mode." | fiqa |
> **Possible Duplicate:** > Techniques to re-factor garbage and maintain sanity? > What is a good way to refactor a large, terribly written code base by > myself? Really open question here. I'm not after an answer.. only advice. Any past experience people have had with re-factoring legacy systems that they could pass on would be amazing. Here's some information about the software I am to re-factor (you'll cringe!): * Web application * Database driven (MySQL) * PHP4 and PHP5 * Most of the code is PHP4 * Nearly all the code is procedural * Code that is PHP5 isn't OO.. example: 10,000 line+ file with one class and one function * Global variables used everywhere * No source control was used to write the software (you can see from the comments in the code) * Massive amounts of code repetition * No separation of concerns - user interface and logic is combined everywhere * Application relies on order of database tables * Few code comments * 250,000+ lines of code * Application in heavy use Basically, the software is our core product and I have been hired to do a major re-factor (amongst other things). It's a massive task and I can't just dive in and fix all the little things.. I need an overall strategy. I've written some scripts to tidy indentation up, removed commented-out code everywhere and made the project into a repo but now it's time to do the real stuff. I kind of have a vague idea but not sure how to go about it. I could somehow leave the current code alone and write some layer of software over it that abstracts away from all the horribleness. It would be good if the new layer was some sort of MVC architecture. At the same time I would go into the current code, remove redundancies because otherwise the new layer would be using bad code anyway so the code could slow down even more. As you can see.. need some clues/hints/tips/advice/experiences! Thanks very much :). | cqadupstack-programmers |
> **Possible Duplicate:** > Generating a table of contents How to create a dynamically self-updating table of content for a notebook? The TOC should contain the titles for the section, subsection, subsubsection etc. and should self-update as the new sections are added, and existing ones changed. A "dynamic self-updating" part may be loosen from the question if it's too hard, i.e. a function that can be ran to generate a TOC which i can then manually copy. | cqadupstack-mathematica |
Subsets and Splits